212 lines
5.8 KiB
JavaScript
212 lines
5.8 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.renderTimeViewClock = exports.renderMultiSectionDigitalClockTimeView = exports.renderDigitalClockTimeView = void 0;
|
|
var React = _interopRequireWildcard(require("react"));
|
|
var _TimeClock = require("../TimeClock");
|
|
var _DigitalClock = require("../DigitalClock");
|
|
var _MultiSectionDigitalClock = require("../MultiSectionDigitalClock");
|
|
var _timeUtils = require("../internals/utils/time-utils");
|
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
const renderTimeViewClock = ({
|
|
view,
|
|
onViewChange,
|
|
focusedView,
|
|
onFocusedViewChange,
|
|
views,
|
|
value,
|
|
defaultValue,
|
|
referenceDate,
|
|
onChange,
|
|
className,
|
|
classes,
|
|
disableFuture,
|
|
disablePast,
|
|
minTime,
|
|
maxTime,
|
|
shouldDisableTime,
|
|
shouldDisableClock,
|
|
minutesStep,
|
|
ampm,
|
|
ampmInClock,
|
|
components,
|
|
componentsProps,
|
|
slots,
|
|
slotProps,
|
|
readOnly,
|
|
disabled,
|
|
sx,
|
|
autoFocus,
|
|
showViewSwitcher,
|
|
disableIgnoringDatePartForTimeValidation,
|
|
timezone
|
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_TimeClock.TimeClock, {
|
|
view: view,
|
|
onViewChange: onViewChange,
|
|
focusedView: focusedView && (0, _timeUtils.isTimeView)(focusedView) ? focusedView : null,
|
|
onFocusedViewChange: onFocusedViewChange,
|
|
views: views.filter(_timeUtils.isTimeView),
|
|
value: value,
|
|
defaultValue: defaultValue,
|
|
referenceDate: referenceDate,
|
|
onChange: onChange,
|
|
className: className,
|
|
classes: classes,
|
|
disableFuture: disableFuture,
|
|
disablePast: disablePast,
|
|
minTime: minTime,
|
|
maxTime: maxTime,
|
|
shouldDisableTime: shouldDisableTime,
|
|
shouldDisableClock: shouldDisableClock,
|
|
minutesStep: minutesStep,
|
|
ampm: ampm,
|
|
ampmInClock: ampmInClock,
|
|
components: components,
|
|
componentsProps: componentsProps,
|
|
slots: slots,
|
|
slotProps: slotProps,
|
|
readOnly: readOnly,
|
|
disabled: disabled,
|
|
sx: sx,
|
|
autoFocus: autoFocus,
|
|
showViewSwitcher: showViewSwitcher,
|
|
disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,
|
|
timezone: timezone
|
|
});
|
|
exports.renderTimeViewClock = renderTimeViewClock;
|
|
const renderDigitalClockTimeView = ({
|
|
view,
|
|
onViewChange,
|
|
focusedView,
|
|
onFocusedViewChange,
|
|
views,
|
|
value,
|
|
defaultValue,
|
|
referenceDate,
|
|
onChange,
|
|
className,
|
|
classes,
|
|
disableFuture,
|
|
disablePast,
|
|
minTime,
|
|
maxTime,
|
|
shouldDisableTime,
|
|
shouldDisableClock,
|
|
minutesStep,
|
|
ampm,
|
|
components,
|
|
componentsProps,
|
|
slots,
|
|
slotProps,
|
|
readOnly,
|
|
disabled,
|
|
sx,
|
|
autoFocus,
|
|
disableIgnoringDatePartForTimeValidation,
|
|
timeSteps,
|
|
skipDisabled,
|
|
timezone
|
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_DigitalClock.DigitalClock, {
|
|
view: view,
|
|
onViewChange: onViewChange,
|
|
focusedView: focusedView,
|
|
onFocusedViewChange: onFocusedViewChange,
|
|
views: views.filter(_timeUtils.isTimeView),
|
|
value: value,
|
|
defaultValue: defaultValue,
|
|
referenceDate: referenceDate,
|
|
onChange: onChange,
|
|
className: className,
|
|
classes: classes,
|
|
disableFuture: disableFuture,
|
|
disablePast: disablePast,
|
|
minTime: minTime,
|
|
maxTime: maxTime,
|
|
shouldDisableTime: shouldDisableTime,
|
|
shouldDisableClock: shouldDisableClock,
|
|
minutesStep: minutesStep,
|
|
ampm: ampm,
|
|
components: components,
|
|
componentsProps: componentsProps,
|
|
slots: slots,
|
|
slotProps: slotProps,
|
|
readOnly: readOnly,
|
|
disabled: disabled,
|
|
sx: sx,
|
|
autoFocus: autoFocus,
|
|
disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,
|
|
timeStep: timeSteps?.minutes,
|
|
skipDisabled: skipDisabled,
|
|
timezone: timezone
|
|
});
|
|
exports.renderDigitalClockTimeView = renderDigitalClockTimeView;
|
|
const renderMultiSectionDigitalClockTimeView = ({
|
|
view,
|
|
onViewChange,
|
|
focusedView,
|
|
onFocusedViewChange,
|
|
views,
|
|
value,
|
|
defaultValue,
|
|
referenceDate,
|
|
onChange,
|
|
className,
|
|
classes,
|
|
disableFuture,
|
|
disablePast,
|
|
minTime,
|
|
maxTime,
|
|
shouldDisableTime,
|
|
shouldDisableClock,
|
|
minutesStep,
|
|
ampm,
|
|
components,
|
|
componentsProps,
|
|
slots,
|
|
slotProps,
|
|
readOnly,
|
|
disabled,
|
|
sx,
|
|
autoFocus,
|
|
disableIgnoringDatePartForTimeValidation,
|
|
timeSteps,
|
|
skipDisabled,
|
|
timezone
|
|
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultiSectionDigitalClock.MultiSectionDigitalClock, {
|
|
view: view,
|
|
onViewChange: onViewChange,
|
|
focusedView: focusedView,
|
|
onFocusedViewChange: onFocusedViewChange,
|
|
views: views.filter(_timeUtils.isTimeView),
|
|
value: value,
|
|
defaultValue: defaultValue,
|
|
referenceDate: referenceDate,
|
|
onChange: onChange,
|
|
className: className,
|
|
classes: classes,
|
|
disableFuture: disableFuture,
|
|
disablePast: disablePast,
|
|
minTime: minTime,
|
|
maxTime: maxTime,
|
|
shouldDisableTime: shouldDisableTime,
|
|
shouldDisableClock: shouldDisableClock,
|
|
minutesStep: minutesStep,
|
|
ampm: ampm,
|
|
components: components,
|
|
componentsProps: componentsProps,
|
|
slots: slots,
|
|
slotProps: slotProps,
|
|
readOnly: readOnly,
|
|
disabled: disabled,
|
|
sx: sx,
|
|
autoFocus: autoFocus,
|
|
disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,
|
|
timeSteps: timeSteps,
|
|
skipDisabled: skipDisabled,
|
|
timezone: timezone
|
|
});
|
|
exports.renderMultiSectionDigitalClockTimeView = renderMultiSectionDigitalClockTimeView; |