bitz-react-admin-ui 2.7.4 → 2.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/@ant-design/colors/es/generate.mjs +93 -0
- package/dist/node_modules/@ant-design/colors/es/presets.mjs +72 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.mjs +40 -0
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.mjs +18 -0
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.mjs +38 -0
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.mjs +51 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs +92 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs +15 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs +27 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.mjs +47 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs +210 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.mjs +7 -0
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.mjs +20 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs +104 -0
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs +10 -0
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs +4 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.mjs +42 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/css-variables.mjs +28 -0
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.mjs +52 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.browser.esm.mjs +22 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Enum.mjs +9 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Serializer.mjs +29 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Tokenizer.mjs +127 -0
- package/dist/node_modules/@ant-design/cssinjs/node_modules/stylis/src/Utility.mjs +37 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.mjs +63 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/hooks/useCSP.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.mjs +59 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.mjs +44 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/calculator.mjs +8 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/index.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/genStyleUtils.mjs +156 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getCompVarPrefix.mjs +6 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.mjs +26 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getDefaultComponentToken.mjs +11 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/maxmin.mjs +36 -0
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/statistic.mjs +55 -0
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.mjs +327 -0
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.mjs +42 -0
- package/dist/node_modules/@ant-design/icons/es/components/Context.mjs +6 -0
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.mjs +46 -0
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.mjs +18 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AlignCenterOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EditOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FileTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuFoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MenuUnfoldOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PaperClipOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PauseCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PictureTwoTone.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlayCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusCircleFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/PlusOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingFilled.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/SwapRightOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/icons/UploadOutlined.mjs +15 -0
- package/dist/node_modules/@ant-design/icons/es/utils.mjs +127 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AlignCenterOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/AppstoreOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowLeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ArrowRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CaretDownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DeleteOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EditOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FileTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenExitOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/FullscreenOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuFoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MenuUnfoldOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PaperClipOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PauseCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PictureTwoTone.mjs +7 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlayCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusCircleFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ReloadOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingFilled.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SwapRightOutlined.mjs +5 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.mjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.mjs +26 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/construct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.mjs +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.mjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeFunction.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.mjs +29 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.mjs +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.mjs +315 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.mjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.mjs +32 -0
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/objectSpread2.mjs +31 -0
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.mjs +22 -0
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.mjs +15 -0
- package/dist/node_modules/@babel/runtime/helpers/typeof.mjs +16 -0
- package/dist/node_modules/@better-scroll/core/dist/core.esm.mjs +1377 -0
- package/dist/node_modules/@better-scroll/wheel/dist/wheel.esm.mjs +253 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.mjs +115 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.mjs +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.mjs +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.mjs +183 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.mjs +32 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2524 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +251 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.mjs +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.mjs +7 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.mjs +134 -0
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +53 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.mjs +45 -0
- package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.mjs +51 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
- package/dist/node_modules/@fullcalendar/core/index.mjs +1365 -0
- package/dist/node_modules/@fullcalendar/core/internal-common.mjs +4823 -0
- package/dist/node_modules/@fullcalendar/core/locales/zh-cn.mjs +28 -0
- package/dist/node_modules/@fullcalendar/daygrid/index.mjs +32 -0
- package/dist/node_modules/@fullcalendar/daygrid/internal.mjs +746 -0
- package/dist/node_modules/@fullcalendar/interaction/index.mjs +842 -0
- package/dist/node_modules/@fullcalendar/list/index.mjs +54 -0
- package/dist/node_modules/@fullcalendar/list/internal.mjs +207 -0
- package/dist/node_modules/@fullcalendar/react/dist/index.mjs +71 -0
- package/dist/node_modules/@fullcalendar/timegrid/index.mjs +31 -0
- package/dist/node_modules/@fullcalendar/timegrid/internal.mjs +900 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.mjs +159 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.mjs +58 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/enum.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/index.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/range.mjs +10 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/required.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.mjs +63 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/rule/whitespace.mjs +7 -0
- package/dist/node_modules/@rc-component/async-validator/es/util.mjs +167 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/any.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/array.mjs +13 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/boolean.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/date.mjs +17 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/enum.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/float.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.mjs +37 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/integer.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/method.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/number.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/object.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/pattern.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/regexp.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/required.mjs +9 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/string.mjs +14 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/type.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/ColorPicker.mjs +103 -0
- package/dist/node_modules/@rc-component/color-picker/es/color.mjs +47 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/ColorBlock.mjs +18 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Gradient.mjs +22 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Handler.mjs +15 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Palette.mjs +14 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Picker.mjs +58 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Slider.mjs +76 -0
- package/dist/node_modules/@rc-component/color-picker/es/components/Transform.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorDrag.mjs +41 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useColorState.mjs +17 -0
- package/dist/node_modules/@rc-component/color-picker/es/hooks/useComponent.mjs +11 -0
- package/dist/node_modules/@rc-component/color-picker/es/util.mjs +50 -0
- package/dist/node_modules/@rc-component/portal/es/Context.mjs +5 -0
- package/dist/node_modules/@rc-component/portal/es/Portal.mjs +45 -0
- package/dist/node_modules/@rc-component/portal/es/index.mjs +4 -0
- package/dist/node_modules/@rc-component/portal/es/mock.mjs +8 -0
- package/dist/node_modules/@rc-component/portal/es/useDom.mjs +37 -0
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.mjs +29 -0
- package/dist/node_modules/@rc-component/portal/es/util.mjs +6 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.mjs +22 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.mjs +24 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/PopupContent.mjs +11 -0
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.mjs +92 -0
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.mjs +14 -0
- package/dist/node_modules/@rc-component/trigger/es/context.mjs +5 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.mjs +13 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.mjs +187 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWinClick.mjs +27 -0
- package/dist/node_modules/@rc-component/trigger/es/index.mjs +213 -0
- package/dist/node_modules/@rc-component/trigger/es/util.mjs +61 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.mjs +20 -0
- package/dist/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/ahooks/es/useControllableValue/index.mjs +23 -0
- package/dist/node_modules/ahooks/es/useInterval/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.mjs +12 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/useUpdateLayoutEffect/index.mjs +6 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +18 -0
- package/dist/node_modules/ahooks/es/utils/index.mjs +9 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/node_modules/antd/es/_util/ActionButton.mjs +70 -0
- package/dist/node_modules/antd/es/_util/ContextIsolator.mjs +20 -0
- package/dist/node_modules/antd/es/_util/PurePanel.mjs +16 -0
- package/dist/node_modules/antd/es/_util/colors.mjs +9 -0
- package/dist/node_modules/antd/es/_util/hooks/useClosable.mjs +66 -0
- package/dist/node_modules/antd/es/_util/hooks/useForceUpdate.mjs +8 -0
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.mjs +11 -0
- package/dist/node_modules/antd/es/_util/hooks/useZIndex.mjs +45 -0
- package/dist/node_modules/antd/es/_util/motion.mjs +34 -0
- package/dist/node_modules/antd/es/_util/placements.mjs +150 -0
- package/dist/node_modules/antd/es/_util/reactNode.mjs +13 -0
- package/dist/node_modules/antd/es/_util/styleChecker.mjs +5 -0
- package/dist/node_modules/antd/es/_util/toList.mjs +6 -0
- package/dist/node_modules/antd/es/_util/warning.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.mjs +96 -0
- package/dist/node_modules/antd/es/_util/wave/index.mjs +40 -0
- package/dist/node_modules/antd/es/_util/wave/interface.mjs +6 -0
- package/dist/node_modules/antd/es/_util/wave/style.mjs +47 -0
- package/dist/node_modules/antd/es/_util/wave/useWave.mjs +38 -0
- package/dist/node_modules/antd/es/_util/wave/util.mjs +16 -0
- package/dist/node_modules/antd/es/_util/zindexContext.mjs +7 -0
- package/dist/node_modules/antd/es/button/IconWrapper.mjs +18 -0
- package/dist/node_modules/antd/es/button/LoadingIcon.mjs +70 -0
- package/dist/node_modules/antd/es/button/button-group.mjs +65 -0
- package/dist/node_modules/antd/es/button/button.mjs +177 -0
- package/dist/node_modules/antd/es/button/buttonHelpers.mjs +44 -0
- package/dist/node_modules/antd/es/button/index.mjs +4 -0
- package/dist/node_modules/antd/es/button/style/compactCmp.mjs +75 -0
- package/dist/node_modules/antd/es/button/style/group.mjs +70 -0
- package/dist/node_modules/antd/es/button/style/index.mjs +373 -0
- package/dist/node_modules/antd/es/button/style/token.mjs +81 -0
- package/dist/node_modules/antd/es/calendar/locale/en_US.mjs +4 -0
- package/dist/node_modules/antd/es/color-picker/color.mjs +96 -0
- package/dist/node_modules/antd/es/color-picker/components/ColorPresets.mjs +17 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.mjs +32 -0
- package/dist/node_modules/antd/es/config-provider/PropWarning.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/SizeContext.mjs +15 -0
- package/dist/node_modules/antd/es/config-provider/context.mjs +11 -0
- package/dist/node_modules/antd/es/config-provider/cssVariables.mjs +39 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useCSSVarCls.mjs +23 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.mjs +13 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.mjs +9 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.mjs +41 -0
- package/dist/node_modules/antd/es/config-provider/hooks/useThemeKey.mjs +7 -0
- package/dist/node_modules/antd/es/config-provider/index.mjs +327 -0
- package/dist/node_modules/antd/es/date-picker/locale/en_US.mjs +20 -0
- package/dist/node_modules/antd/es/form/context.mjs +23 -0
- package/dist/node_modules/antd/es/form/validateMessagesContext.mjs +5 -0
- package/dist/node_modules/antd/es/locale/context.mjs +5 -0
- package/dist/node_modules/antd/es/locale/en_US.mjs +146 -0
- package/dist/node_modules/antd/es/locale/index.mjs +28 -0
- package/dist/node_modules/antd/es/locale/useLocale.mjs +17 -0
- package/dist/node_modules/antd/es/modal/ConfirmDialog.mjs +175 -0
- package/dist/node_modules/antd/es/modal/Modal.mjs +137 -0
- package/dist/node_modules/antd/es/modal/PurePanel.mjs +60 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmCancelBtn.mjs +29 -0
- package/dist/node_modules/antd/es/modal/components/ConfirmOkBtn.mjs +30 -0
- package/dist/node_modules/antd/es/modal/components/NormalCancelBtn.mjs +16 -0
- package/dist/node_modules/antd/es/modal/components/NormalOkBtn.mjs +20 -0
- package/dist/node_modules/antd/es/modal/confirm.mjs +122 -0
- package/dist/node_modules/antd/es/modal/context.mjs +8 -0
- package/dist/node_modules/antd/es/modal/destroyFns.mjs +4 -0
- package/dist/node_modules/antd/es/modal/index.mjs +37 -0
- package/dist/node_modules/antd/es/modal/locale.mjs +19 -0
- package/dist/node_modules/antd/es/modal/shared.mjs +51 -0
- package/dist/node_modules/antd/es/modal/style/confirm.mjs +113 -0
- package/dist/node_modules/antd/es/modal/style/index.mjs +292 -0
- package/dist/node_modules/antd/es/modal/useModal/HookModal.mjs +60 -0
- package/dist/node_modules/antd/es/modal/useModal/index.mjs +73 -0
- package/dist/node_modules/antd/es/progress/Circle.mjs +60 -0
- package/dist/node_modules/antd/es/progress/Line.mjs +109 -0
- package/dist/node_modules/antd/es/progress/Steps.mjs +38 -0
- package/dist/node_modules/antd/es/progress/index.mjs +4 -0
- package/dist/node_modules/antd/es/progress/progress.mjs +120 -0
- package/dist/node_modules/antd/es/progress/style/index.mjs +313 -0
- package/dist/node_modules/antd/es/progress/utils.mjs +51 -0
- package/dist/node_modules/antd/es/skeleton/Avatar.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Button.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Element.mjs +29 -0
- package/dist/node_modules/antd/es/skeleton/Image.mjs +34 -0
- package/dist/node_modules/antd/es/skeleton/Input.mjs +31 -0
- package/dist/node_modules/antd/es/skeleton/Node.mjs +28 -0
- package/dist/node_modules/antd/es/skeleton/Paragraph.mjs +35 -0
- package/dist/node_modules/antd/es/skeleton/Skeleton.mjs +108 -0
- package/dist/node_modules/antd/es/skeleton/Title.mjs +22 -0
- package/dist/node_modules/antd/es/skeleton/index.mjs +4 -0
- package/dist/node_modules/antd/es/skeleton/style/index.mjs +311 -0
- package/dist/node_modules/antd/es/slider/Context.mjs +5 -0
- package/dist/node_modules/antd/es/slider/SliderTooltip.mjs +30 -0
- package/dist/node_modules/antd/es/slider/index.mjs +153 -0
- package/dist/node_modules/antd/es/slider/style/index.mjs +325 -0
- package/dist/node_modules/antd/es/slider/useRafLock.mjs +15 -0
- package/dist/node_modules/antd/es/space/Compact.mjs +37 -0
- package/dist/node_modules/antd/es/style/compact-item-vertical.mjs +44 -0
- package/dist/node_modules/antd/es/style/compact-item.mjs +61 -0
- package/dist/node_modules/antd/es/style/index.mjs +125 -0
- package/dist/node_modules/antd/es/style/motion/collapse.mjs +20 -0
- package/dist/node_modules/antd/es/style/motion/fade.mjs +50 -0
- package/dist/node_modules/antd/es/style/motion/motion.mjs +35 -0
- package/dist/node_modules/antd/es/style/motion/zoom.mjs +195 -0
- package/dist/node_modules/antd/es/style/placementArrow.mjs +164 -0
- package/dist/node_modules/antd/es/style/roundedArrow.mjs +74 -0
- package/dist/node_modules/antd/es/table/ExpandIcon.mjs +29 -0
- package/dist/node_modules/antd/es/theme/context.mjs +25 -0
- package/dist/node_modules/antd/es/theme/getDesignToken.mjs +23 -0
- package/dist/node_modules/antd/es/theme/interface/presetColors.mjs +4 -0
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/compact/index.mjs +16 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/dark/colors.mjs +51 -0
- package/dist/node_modules/antd/es/theme/themes/dark/index.mjs +21 -0
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.mjs +6 -0
- package/dist/node_modules/antd/es/theme/themes/default/colors.mjs +49 -0
- package/dist/node_modules/antd/es/theme/themes/default/index.mjs +23 -0
- package/dist/node_modules/antd/es/theme/themes/seed.mjs +69 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.mjs +78 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.mjs +20 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.mjs +17 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.mjs +13 -0
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.mjs +29 -0
- package/dist/node_modules/antd/es/theme/useToken.mjs +118 -0
- package/dist/node_modules/antd/es/theme/util/alias.mjs +162 -0
- package/dist/node_modules/antd/es/theme/util/genPresetColor.mjs +15 -0
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.mjs +50 -0
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.mjs +38 -0
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.mjs +36 -0
- package/dist/node_modules/antd/es/time-picker/locale/en_US.mjs +7 -0
- package/dist/node_modules/antd/es/tooltip/PurePanel.mjs +33 -0
- package/dist/node_modules/antd/es/tooltip/index.mjs +148 -0
- package/dist/node_modules/antd/es/tooltip/style/index.mjs +139 -0
- package/dist/node_modules/antd/es/tooltip/util.mjs +15 -0
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.mjs +64 -0
- package/dist/node_modules/antd/es/upload/Dragger.mjs +32 -0
- package/dist/node_modules/antd/es/upload/Upload.mjs +304 -0
- package/dist/node_modules/antd/es/upload/UploadList/ListItem.mjs +156 -0
- package/dist/node_modules/antd/es/upload/UploadList/index.mjs +167 -0
- package/dist/node_modules/antd/es/upload/index.mjs +9 -0
- package/dist/node_modules/antd/es/upload/style/dragger.mjs +84 -0
- package/dist/node_modules/antd/es/upload/style/index.mjs +65 -0
- package/dist/node_modules/antd/es/upload/style/list.mjs +115 -0
- package/dist/node_modules/antd/es/upload/style/motion.mjs +54 -0
- package/dist/node_modules/antd/es/upload/style/picture.mjs +240 -0
- package/dist/node_modules/antd/es/upload/style/rtl.mjs +13 -0
- package/dist/node_modules/antd/es/upload/utils.mjs +79 -0
- package/dist/node_modules/antd/es/version/index.mjs +4 -0
- package/dist/node_modules/antd/es/version/version.mjs +4 -0
- package/dist/node_modules/antd/es/watermark/context.mjs +25 -0
- package/dist/node_modules/antd/lib/calendar/locale/en_US.mjs +11 -0
- package/dist/node_modules/antd/lib/date-picker/locale/en_US.mjs +28 -0
- package/dist/node_modules/antd/lib/locale/en_US.mjs +157 -0
- package/dist/node_modules/antd/lib/time-picker/locale/en_US.mjs +10 -0
- package/dist/node_modules/antd/locale/en_US.mjs +8 -0
- package/dist/node_modules/antd-img-crop/dist/antd-img-crop.esm.mjs +137 -0
- package/dist/node_modules/better-scroll/dist/better-scroll.esm.mjs +3670 -0
- package/dist/node_modules/classnames/index.mjs +42 -0
- package/dist/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/dayjs/dayjs.min.mjs +297 -0
- package/dist/node_modules/dayjs/locale/zh-cn.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isBetween.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isSameOrAfter.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isSameOrBefore.mjs +18 -0
- package/dist/node_modules/dayjs/plugin/isToday.mjs +19 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.mjs +34 -0
- package/dist/node_modules/dayjs/plugin/objectSupport.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.mjs +49 -0
- package/dist/node_modules/dayjs/plugin/utc.mjs +87 -0
- package/dist/node_modules/dayjs/plugin/weekOfYear.mjs +31 -0
- package/dist/node_modules/immer/dist/immer.mjs +473 -0
- package/dist/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
- package/dist/node_modules/lodash-es/_Hash.mjs +20 -0
- package/dist/node_modules/lodash-es/_ListCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Map.mjs +7 -0
- package/dist/node_modules/lodash-es/_MapCache.mjs +20 -0
- package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
- package/dist/node_modules/lodash-es/_Set.mjs +7 -0
- package/dist/node_modules/lodash-es/_Stack.mjs +18 -0
- package/dist/node_modules/lodash-es/_Symbol.mjs +6 -0
- package/dist/node_modules/lodash-es/_Uint8Array.mjs +6 -0
- package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
- package/dist/node_modules/lodash-es/_apply.mjs +16 -0
- package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.mjs +20 -0
- package/dist/node_modules/lodash-es/_arrayMap.mjs +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.mjs +8 -0
- package/dist/node_modules/lodash-es/_assignValue.mjs +10 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseAt.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
- package/dist/node_modules/lodash-es/_baseCreate.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseFlatten.mjs +13 -0
- package/dist/node_modules/lodash-es/_baseFor.mjs +6 -0
- package/dist/node_modules/lodash-es/_baseGet.mjs +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.mjs +16 -0
- package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.mjs +12 -0
- package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.mjs +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.mjs +31 -0
- package/dist/node_modules/lodash-es/_baseRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.mjs +15 -0
- package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
- package/dist/node_modules/lodash-es/_baseTimes.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseToString.mjs +18 -0
- package/dist/node_modules/lodash-es/_baseUnary.mjs +8 -0
- package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
- package/dist/node_modules/lodash-es/_castPath.mjs +10 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.mjs +11 -0
- package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_copyArray.mjs +9 -0
- package/dist/node_modules/lodash-es/_copyObject.mjs +14 -0
- package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.mjs +6 -0
- package/dist/node_modules/lodash-es/_createAssigner.mjs +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.mjs +13 -0
- package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
- package/dist/node_modules/lodash-es/_defineProperty.mjs +12 -0
- package/dist/node_modules/lodash-es/_flatRest.mjs +9 -0
- package/dist/node_modules/lodash-es/_freeGlobal.mjs +5 -0
- package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/_getMapData.mjs +8 -0
- package/dist/node_modules/lodash-es/_getNative.mjs +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.mjs +6 -0
- package/dist/node_modules/lodash-es/_getRawTag.mjs +15 -0
- package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
- package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
- package/dist/node_modules/lodash-es/_getValue.mjs +6 -0
- package/dist/node_modules/lodash-es/_hashClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_hashGet.mjs +13 -0
- package/dist/node_modules/lodash-es/_hashHas.mjs +9 -0
- package/dist/node_modules/lodash-es/_hashSet.mjs +9 -0
- package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
- package/dist/node_modules/lodash-es/_initCloneObject.mjs +9 -0
- package/dist/node_modules/lodash-es/_isFlattenable.mjs +10 -0
- package/dist/node_modules/lodash-es/_isIndex.mjs +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.mjs +13 -0
- package/dist/node_modules/lodash-es/_isKey.mjs +12 -0
- package/dist/node_modules/lodash-es/_isKeyable.mjs +7 -0
- package/dist/node_modules/lodash-es/_isMasked.mjs +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.mjs +6 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.mjs +12 -0
- package/dist/node_modules/lodash-es/_listCacheGet.mjs +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.mjs +13 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.mjs +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.mjs +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.mjs +11 -0
- package/dist/node_modules/lodash-es/_nativeCreate.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.mjs +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.mjs +12 -0
- package/dist/node_modules/lodash-es/_objectToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_overArg.mjs +8 -0
- package/dist/node_modules/lodash-es/_overRest.mjs +15 -0
- package/dist/node_modules/lodash-es/_parent.mjs +8 -0
- package/dist/node_modules/lodash-es/_root.mjs +6 -0
- package/dist/node_modules/lodash-es/_safeGet.mjs +7 -0
- package/dist/node_modules/lodash-es/_setToString.mjs +7 -0
- package/dist/node_modules/lodash-es/_shortOut.mjs +16 -0
- package/dist/node_modules/lodash-es/_stackClear.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.mjs +7 -0
- package/dist/node_modules/lodash-es/_stackGet.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackHas.mjs +6 -0
- package/dist/node_modules/lodash-es/_stackSet.mjs +17 -0
- package/dist/node_modules/lodash-es/_stringToPath.mjs +11 -0
- package/dist/node_modules/lodash-es/_toKey.mjs +11 -0
- package/dist/node_modules/lodash-es/_toSource.mjs +17 -0
- package/dist/node_modules/lodash-es/at.mjs +7 -0
- package/dist/node_modules/lodash-es/constant.mjs +8 -0
- package/dist/node_modules/lodash-es/eq.mjs +6 -0
- package/dist/node_modules/lodash-es/flatten.mjs +8 -0
- package/dist/node_modules/lodash-es/get.mjs +8 -0
- package/dist/node_modules/lodash-es/identity.mjs +6 -0
- package/dist/node_modules/lodash-es/isArguments.mjs +11 -0
- package/dist/node_modules/lodash-es/isArray.mjs +5 -0
- package/dist/node_modules/lodash-es/isArrayLike.mjs +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
- package/dist/node_modules/lodash-es/isBoolean.mjs +9 -0
- package/dist/node_modules/lodash-es/isBuffer.mjs +7 -0
- package/dist/node_modules/lodash-es/isFunction.mjs +12 -0
- package/dist/node_modules/lodash-es/isLength.mjs +7 -0
- package/dist/node_modules/lodash-es/isMap.mjs +8 -0
- package/dist/node_modules/lodash-es/isObject.mjs +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.mjs +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.mjs +16 -0
- package/dist/node_modules/lodash-es/isSet.mjs +8 -0
- package/dist/node_modules/lodash-es/isSymbol.mjs +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.mjs +8 -0
- package/dist/node_modules/lodash-es/keys.mjs +9 -0
- package/dist/node_modules/lodash-es/keysIn.mjs +9 -0
- package/dist/node_modules/lodash-es/last.mjs +7 -0
- package/dist/node_modules/lodash-es/memoize.mjs +18 -0
- package/dist/node_modules/lodash-es/merge.mjs +9 -0
- package/dist/node_modules/lodash-es/omit.mjs +24 -0
- package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
- package/dist/node_modules/lodash-es/stubFalse.mjs +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.mjs +8 -0
- package/dist/node_modules/lodash-es/toString.mjs +7 -0
- package/dist/node_modules/normalize-wheel/index.mjs +7 -0
- package/dist/node_modules/normalize-wheel/src/ExecutionEnvironment.mjs +11 -0
- package/dist/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.mjs +142 -0
- package/dist/node_modules/normalize-wheel/src/isEventSupported.mjs +33 -0
- package/dist/node_modules/normalize-wheel/src/normalizeWheel.mjs +19 -0
- package/dist/node_modules/object-assign/index.mjs +55 -0
- package/dist/node_modules/preact/compat/dist/compat.module.mjs +202 -0
- package/dist/node_modules/preact/dist/preact.module.mjs +343 -0
- package/dist/node_modules/preact/hooks/dist/hooks.module.mjs +63 -0
- package/dist/node_modules/prop-types/checkPropTypes.mjs +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.mjs +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.mjs +330 -0
- package/dist/node_modules/prop-types/index.mjs +16 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +11 -0
- package/dist/node_modules/prop-types/lib/has.mjs +7 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.mjs +11 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.mjs +93 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.mjs +43 -0
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.mjs +25 -0
- package/dist/node_modules/rc-dialog/es/Dialog/index.mjs +114 -0
- package/dist/node_modules/rc-dialog/es/DialogWrap.mjs +32 -0
- package/dist/node_modules/rc-dialog/es/context.mjs +5 -0
- package/dist/node_modules/rc-dialog/es/index.mjs +6 -0
- package/dist/node_modules/rc-dialog/es/util.mjs +23 -0
- package/dist/node_modules/rc-field-form/es/Field.mjs +300 -0
- package/dist/node_modules/rc-field-form/es/FieldContext.mjs +41 -0
- package/dist/node_modules/rc-field-form/es/Form.mjs +78 -0
- package/dist/node_modules/rc-field-form/es/FormContext.mjs +46 -0
- package/dist/node_modules/rc-field-form/es/List.mjs +82 -0
- package/dist/node_modules/rc-field-form/es/ListContext.mjs +5 -0
- package/dist/node_modules/rc-field-form/es/index.mjs +22 -0
- package/dist/node_modules/rc-field-form/es/useForm.mjs +541 -0
- package/dist/node_modules/rc-field-form/es/useWatch.mjs +53 -0
- package/dist/node_modules/rc-field-form/es/utils/NameMap.mjs +66 -0
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.mjs +15 -0
- package/dist/node_modules/rc-field-form/es/utils/messages.mjs +50 -0
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.mjs +10 -0
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.mjs +203 -0
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.mjs +60 -0
- package/dist/node_modules/rc-motion/es/CSSMotion.mjs +73 -0
- package/dist/node_modules/rc-motion/es/CSSMotionList.mjs +95 -0
- package/dist/node_modules/rc-motion/es/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-motion/es/context.mjs +13 -0
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.mjs +20 -0
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.mjs +6 -0
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.mjs +28 -0
- package/dist/node_modules/rc-motion/es/hooks/useStatus.mjs +91 -0
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.mjs +38 -0
- package/dist/node_modules/rc-motion/es/index.mjs +7 -0
- package/dist/node_modules/rc-motion/es/interface.mjs +13 -0
- package/dist/node_modules/rc-motion/es/util/diff.mjs +65 -0
- package/dist/node_modules/rc-motion/es/util/motion.mjs +51 -0
- package/dist/node_modules/rc-pagination/es/locale/en_US.mjs +18 -0
- package/dist/node_modules/rc-pagination/lib/locale/en_US.mjs +21 -0
- package/dist/node_modules/rc-picker/es/locale/common.mjs +9 -0
- package/dist/node_modules/rc-picker/es/locale/en_US.mjs +31 -0
- package/dist/node_modules/rc-picker/lib/locale/common.mjs +14 -0
- package/dist/node_modules/rc-picker/lib/locale/en_US.mjs +37 -0
- package/dist/node_modules/rc-progress/es/Circle/PtgCircle.mjs +52 -0
- package/dist/node_modules/rc-progress/es/Circle/index.mjs +83 -0
- package/dist/node_modules/rc-progress/es/Circle/util.mjs +23 -0
- package/dist/node_modules/rc-progress/es/Line.mjs +3 -0
- package/dist/node_modules/rc-progress/es/common.mjs +27 -0
- package/dist/node_modules/rc-progress/es/hooks/useId.mjs +18 -0
- package/dist/node_modules/rc-resize-observer/es/Collection.mjs +22 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.mjs +21 -0
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.mjs +59 -0
- package/dist/node_modules/rc-resize-observer/es/index.mjs +24 -0
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.mjs +23 -0
- package/dist/node_modules/rc-slider/es/Handles/Handle.mjs +103 -0
- package/dist/node_modules/rc-slider/es/Handles/index.mjs +69 -0
- package/dist/node_modules/rc-slider/es/Marks/Mark.mjs +22 -0
- package/dist/node_modules/rc-slider/es/Marks/index.mjs +20 -0
- package/dist/node_modules/rc-slider/es/Slider.mjs +225 -0
- package/dist/node_modules/rc-slider/es/Steps/Dot.mjs +16 -0
- package/dist/node_modules/rc-slider/es/Steps/index.mjs +28 -0
- package/dist/node_modules/rc-slider/es/Tracks/Track.mjs +34 -0
- package/dist/node_modules/rc-slider/es/Tracks/index.mjs +50 -0
- package/dist/node_modules/rc-slider/es/context.mjs +17 -0
- package/dist/node_modules/rc-slider/es/hooks/useDrag.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useOffset.mjs +104 -0
- package/dist/node_modules/rc-slider/es/hooks/useRange.mjs +13 -0
- package/dist/node_modules/rc-slider/es/index.mjs +5 -0
- package/dist/node_modules/rc-slider/es/util.mjs +29 -0
- package/dist/node_modules/rc-tooltip/es/Popup.mjs +17 -0
- package/dist/node_modules/rc-tooltip/es/Tooltip.mjs +52 -0
- package/dist/node_modules/rc-tooltip/es/index.mjs +6 -0
- package/dist/node_modules/rc-tooltip/es/placements.mjs +84 -0
- package/dist/node_modules/rc-upload/es/AjaxUploader.mjs +284 -0
- package/dist/node_modules/rc-upload/es/Upload.mjs +57 -0
- package/dist/node_modules/rc-upload/es/attr-accept.mjs +22 -0
- package/dist/node_modules/rc-upload/es/index.mjs +4 -0
- package/dist/node_modules/rc-upload/es/request.mjs +46 -0
- package/dist/node_modules/rc-upload/es/traverseFileTree.mjs +137 -0
- package/dist/node_modules/rc-upload/es/uid.mjs +7 -0
- package/dist/node_modules/rc-util/es/Children/toArray.mjs +11 -0
- package/dist/node_modules/rc-util/es/Dom/canUseDom.mjs +6 -0
- package/dist/node_modules/rc-util/es/Dom/contains.mjs +15 -0
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.mjs +87 -0
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.mjs +24 -0
- package/dist/node_modules/rc-util/es/Dom/isVisible.mjs +22 -0
- package/dist/node_modules/rc-util/es/Dom/shadow.mjs +14 -0
- package/dist/node_modules/rc-util/es/KeyCode.mjs +517 -0
- package/dist/node_modules/rc-util/es/React/render.mjs +81 -0
- package/dist/node_modules/rc-util/es/getScrollBarSize.mjs +38 -0
- package/dist/node_modules/rc-util/es/hooks/useEvent.mjs +14 -0
- package/dist/node_modules/rc-util/es/hooks/useId.mjs +27 -0
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.mjs +21 -0
- package/dist/node_modules/rc-util/es/hooks/useMemo.mjs +8 -0
- package/dist/node_modules/rc-util/es/hooks/useMergedState.mjs +25 -0
- package/dist/node_modules/rc-util/es/hooks/useState.mjs +17 -0
- package/dist/node_modules/rc-util/es/hooks/useSyncState.mjs +16 -0
- package/dist/node_modules/rc-util/es/isEqual.mjs +35 -0
- package/dist/node_modules/rc-util/es/isMobile.mjs +9 -0
- package/dist/node_modules/rc-util/es/omit.mjs +9 -0
- package/dist/node_modules/rc-util/es/pickAttrs.mjs +42 -0
- package/dist/node_modules/rc-util/es/raf.mjs +40 -0
- package/dist/node_modules/rc-util/es/ref.mjs +39 -0
- package/dist/node_modules/rc-util/es/utils/get.mjs +11 -0
- package/dist/node_modules/rc-util/es/utils/set.mjs +47 -0
- package/dist/node_modules/rc-util/es/warning.mjs +44 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.mjs +103 -0
- package/dist/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.mjs +82 -0
- package/dist/node_modules/rc-util/node_modules/react-is/index.mjs +8 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +616 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/react-device-detect/dist/lib.mjs +721 -0
- package/dist/node_modules/react-dom/client.mjs +26 -0
- package/dist/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/react-draggable/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/react-easy-crop/index.module.mjs +543 -0
- package/dist/node_modules/react-i18next/dist/es/context.mjs +19 -0
- package/dist/node_modules/react-i18next/dist/es/defaults.mjs +17 -0
- package/dist/node_modules/react-i18next/dist/es/i18nInstance.mjs +7 -0
- package/dist/node_modules/react-i18next/dist/es/unescape.mjs +25 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.mjs +74 -0
- package/dist/node_modules/react-i18next/dist/es/utils.mjs +61 -0
- package/dist/node_modules/react-is/cjs/react-is.development.mjs +95 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.mjs +79 -0
- package/dist/node_modules/react-is/index.mjs +10 -0
- package/dist/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +290 -0
- package/dist/node_modules/screenfull/index.mjs +122 -0
- package/dist/node_modules/stylis/src/Enum.mjs +12 -0
- package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
- package/dist/node_modules/stylis/src/Parser.mjs +114 -0
- package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
- package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
- package/dist/node_modules/stylis/src/Utility.mjs +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.mjs +35 -0
- package/dist/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/node_modules/tslib/tslib.es6.mjs +97 -0
- package/dist/node_modules/ua-parser-js/dist/ua-parser.min.mjs +86 -0
- package/dist/node_modules/use-immer/dist/use-immer.module.mjs +13 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +61 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +60 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +85 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +50 -0
- package/dist/node_modules/use-sync-external-store/shim/index.mjs +10 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +10 -0
- package/dist/node_modules/zustand/esm/index.mjs +24 -0
- package/dist/node_modules/zustand/esm/vanilla.mjs +16 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +13 -13
- package/package.json +1 -1
|
@@ -0,0 +1,1365 @@
|
|
|
1
|
+
import { a9 as Ce, aa as Z, ad as Oe, D as G, i as M, ae as De, g as ue, v as ye, z as E, A as N, F as Ie, G as Pe, H as F, I as k, J as Ae, K as Ve, L as $, M as j, N as Y, O as J, P as K, Q as I, e as A, R as xe, ac as He, ab as Ne, f as ce, h as W, j as je, p as _e, u as Le, l as de, n as V, r as Me, d as x, s as Fe, o as Ue, q as Be, t as Ge, w as We, S as ze, U as qe, a as z, W as X, X as Ze, a3 as ke, a4 as $e, a5 as Ye, a6 as Je, a7 as Q, a8 as Ke, V as fe, m as Xe, T as Qe, c as et, k as _, x as tt, y as nt, E as rt, B as H, Y as st, C as it, b as at, Z as pe, _ as U, $ as lt, a0 as he, a1 as ot, a2 as ut } from "./internal-common.mjs";
|
|
2
|
+
import { ag as Vn } from "./internal-common.mjs";
|
|
3
|
+
import { render as ee, createElement as m, createRef as te, Fragment as ct } from "../../preact/dist/preact.module.mjs";
|
|
4
|
+
import "../../preact/compat/dist/compat.module.mjs";
|
|
5
|
+
const dt = [], ge = {
|
|
6
|
+
code: "en",
|
|
7
|
+
week: {
|
|
8
|
+
dow: 0,
|
|
9
|
+
doy: 4
|
|
10
|
+
// 4 days need to be within the year to be considered the first week
|
|
11
|
+
},
|
|
12
|
+
direction: "ltr",
|
|
13
|
+
buttonText: {
|
|
14
|
+
prev: "prev",
|
|
15
|
+
next: "next",
|
|
16
|
+
prevYear: "prev year",
|
|
17
|
+
nextYear: "next year",
|
|
18
|
+
year: "year",
|
|
19
|
+
today: "today",
|
|
20
|
+
month: "month",
|
|
21
|
+
week: "week",
|
|
22
|
+
day: "day",
|
|
23
|
+
list: "list"
|
|
24
|
+
},
|
|
25
|
+
weekText: "W",
|
|
26
|
+
weekTextLong: "Week",
|
|
27
|
+
closeHint: "Close",
|
|
28
|
+
timeHint: "Time",
|
|
29
|
+
eventHint: "Event",
|
|
30
|
+
allDayText: "all-day",
|
|
31
|
+
moreLinkText: "more",
|
|
32
|
+
noEventsText: "No events to display"
|
|
33
|
+
}, me = Object.assign(Object.assign({}, ge), {
|
|
34
|
+
// Includes things we don't want other locales to inherit,
|
|
35
|
+
// things that derive from other translatable strings.
|
|
36
|
+
buttonHints: {
|
|
37
|
+
prev: "Previous $0",
|
|
38
|
+
next: "Next $0",
|
|
39
|
+
today(t, e) {
|
|
40
|
+
return e === "day" ? "Today" : `This ${t}`;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
viewHint: "$0 view",
|
|
44
|
+
navLinkHint: "Go to $0",
|
|
45
|
+
moreLinkHint(t) {
|
|
46
|
+
return `Show ${t} more event${t === 1 ? "" : "s"}`;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function ft(t) {
|
|
50
|
+
let e = t.length > 0 ? t[0].code : "en", n = dt.concat(t), r = {
|
|
51
|
+
en: me
|
|
52
|
+
};
|
|
53
|
+
for (let s of n)
|
|
54
|
+
r[s.code] = s;
|
|
55
|
+
return {
|
|
56
|
+
map: r,
|
|
57
|
+
defaultCode: e
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ve(t, e) {
|
|
61
|
+
return typeof t == "object" && !Array.isArray(t) ? be(t.code, [t.code], t) : pt(t, e);
|
|
62
|
+
}
|
|
63
|
+
function pt(t, e) {
|
|
64
|
+
let n = [].concat(t || []), r = ht(n, e) || me;
|
|
65
|
+
return be(t, n, r);
|
|
66
|
+
}
|
|
67
|
+
function ht(t, e) {
|
|
68
|
+
for (let n = 0; n < t.length; n += 1) {
|
|
69
|
+
let r = t[n].toLocaleLowerCase().split("-");
|
|
70
|
+
for (let s = r.length; s > 0; s -= 1) {
|
|
71
|
+
let a = r.slice(0, s).join("-");
|
|
72
|
+
if (e[a])
|
|
73
|
+
return e[a];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
function be(t, e, n) {
|
|
79
|
+
let r = Xe([ge, n], ["buttonText"]);
|
|
80
|
+
delete r.code;
|
|
81
|
+
let { week: s } = r;
|
|
82
|
+
return delete r.week, {
|
|
83
|
+
codeArg: t,
|
|
84
|
+
codes: e,
|
|
85
|
+
week: s,
|
|
86
|
+
simpleNumberFormat: new Intl.NumberFormat(t),
|
|
87
|
+
options: r
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function P(t) {
|
|
91
|
+
return {
|
|
92
|
+
id: ue(),
|
|
93
|
+
name: t.name,
|
|
94
|
+
premiumReleaseDate: t.premiumReleaseDate ? new Date(t.premiumReleaseDate) : void 0,
|
|
95
|
+
deps: t.deps || [],
|
|
96
|
+
reducers: t.reducers || [],
|
|
97
|
+
isLoadingFuncs: t.isLoadingFuncs || [],
|
|
98
|
+
contextInit: [].concat(t.contextInit || []),
|
|
99
|
+
eventRefiners: t.eventRefiners || {},
|
|
100
|
+
eventDefMemberAdders: t.eventDefMemberAdders || [],
|
|
101
|
+
eventSourceRefiners: t.eventSourceRefiners || {},
|
|
102
|
+
isDraggableTransformers: t.isDraggableTransformers || [],
|
|
103
|
+
eventDragMutationMassagers: t.eventDragMutationMassagers || [],
|
|
104
|
+
eventDefMutationAppliers: t.eventDefMutationAppliers || [],
|
|
105
|
+
dateSelectionTransformers: t.dateSelectionTransformers || [],
|
|
106
|
+
datePointTransforms: t.datePointTransforms || [],
|
|
107
|
+
dateSpanTransforms: t.dateSpanTransforms || [],
|
|
108
|
+
views: t.views || {},
|
|
109
|
+
viewPropsTransformers: t.viewPropsTransformers || [],
|
|
110
|
+
isPropsValid: t.isPropsValid || null,
|
|
111
|
+
externalDefTransforms: t.externalDefTransforms || [],
|
|
112
|
+
viewContainerAppends: t.viewContainerAppends || [],
|
|
113
|
+
eventDropTransformers: t.eventDropTransformers || [],
|
|
114
|
+
componentInteractions: t.componentInteractions || [],
|
|
115
|
+
calendarInteractions: t.calendarInteractions || [],
|
|
116
|
+
themeClasses: t.themeClasses || {},
|
|
117
|
+
eventSourceDefs: t.eventSourceDefs || [],
|
|
118
|
+
cmdFormatter: t.cmdFormatter,
|
|
119
|
+
recurringTypes: t.recurringTypes || [],
|
|
120
|
+
namedTimeZonedImpl: t.namedTimeZonedImpl,
|
|
121
|
+
initialView: t.initialView || "",
|
|
122
|
+
elementDraggingImpl: t.elementDraggingImpl,
|
|
123
|
+
optionChangeHandlers: t.optionChangeHandlers || {},
|
|
124
|
+
scrollGridImpl: t.scrollGridImpl || null,
|
|
125
|
+
listenerRefiners: t.listenerRefiners || {},
|
|
126
|
+
optionRefiners: t.optionRefiners || {},
|
|
127
|
+
propSetHandlers: t.propSetHandlers || {}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function gt(t, e) {
|
|
131
|
+
let n = {}, r = {
|
|
132
|
+
premiumReleaseDate: void 0,
|
|
133
|
+
reducers: [],
|
|
134
|
+
isLoadingFuncs: [],
|
|
135
|
+
contextInit: [],
|
|
136
|
+
eventRefiners: {},
|
|
137
|
+
eventDefMemberAdders: [],
|
|
138
|
+
eventSourceRefiners: {},
|
|
139
|
+
isDraggableTransformers: [],
|
|
140
|
+
eventDragMutationMassagers: [],
|
|
141
|
+
eventDefMutationAppliers: [],
|
|
142
|
+
dateSelectionTransformers: [],
|
|
143
|
+
datePointTransforms: [],
|
|
144
|
+
dateSpanTransforms: [],
|
|
145
|
+
views: {},
|
|
146
|
+
viewPropsTransformers: [],
|
|
147
|
+
isPropsValid: null,
|
|
148
|
+
externalDefTransforms: [],
|
|
149
|
+
viewContainerAppends: [],
|
|
150
|
+
eventDropTransformers: [],
|
|
151
|
+
componentInteractions: [],
|
|
152
|
+
calendarInteractions: [],
|
|
153
|
+
themeClasses: {},
|
|
154
|
+
eventSourceDefs: [],
|
|
155
|
+
cmdFormatter: null,
|
|
156
|
+
recurringTypes: [],
|
|
157
|
+
namedTimeZonedImpl: null,
|
|
158
|
+
initialView: "",
|
|
159
|
+
elementDraggingImpl: null,
|
|
160
|
+
optionChangeHandlers: {},
|
|
161
|
+
scrollGridImpl: null,
|
|
162
|
+
listenerRefiners: {},
|
|
163
|
+
optionRefiners: {},
|
|
164
|
+
propSetHandlers: {}
|
|
165
|
+
};
|
|
166
|
+
function s(a) {
|
|
167
|
+
for (let i of a) {
|
|
168
|
+
const l = i.name, o = n[l];
|
|
169
|
+
o === void 0 ? (n[l] = i.id, s(i.deps), r = vt(r, i)) : o !== i.id && console.warn(`Duplicate plugin '${l}'`);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return t && s(t), s(e), r;
|
|
173
|
+
}
|
|
174
|
+
function mt() {
|
|
175
|
+
let t = [], e = [], n;
|
|
176
|
+
return (r, s) => ((!n || !M(r, t) || !M(s, e)) && (n = gt(r, s)), t = r, e = s, n);
|
|
177
|
+
}
|
|
178
|
+
function vt(t, e) {
|
|
179
|
+
return {
|
|
180
|
+
premiumReleaseDate: bt(t.premiumReleaseDate, e.premiumReleaseDate),
|
|
181
|
+
reducers: t.reducers.concat(e.reducers),
|
|
182
|
+
isLoadingFuncs: t.isLoadingFuncs.concat(e.isLoadingFuncs),
|
|
183
|
+
contextInit: t.contextInit.concat(e.contextInit),
|
|
184
|
+
eventRefiners: Object.assign(Object.assign({}, t.eventRefiners), e.eventRefiners),
|
|
185
|
+
eventDefMemberAdders: t.eventDefMemberAdders.concat(e.eventDefMemberAdders),
|
|
186
|
+
eventSourceRefiners: Object.assign(Object.assign({}, t.eventSourceRefiners), e.eventSourceRefiners),
|
|
187
|
+
isDraggableTransformers: t.isDraggableTransformers.concat(e.isDraggableTransformers),
|
|
188
|
+
eventDragMutationMassagers: t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),
|
|
189
|
+
eventDefMutationAppliers: t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),
|
|
190
|
+
dateSelectionTransformers: t.dateSelectionTransformers.concat(e.dateSelectionTransformers),
|
|
191
|
+
datePointTransforms: t.datePointTransforms.concat(e.datePointTransforms),
|
|
192
|
+
dateSpanTransforms: t.dateSpanTransforms.concat(e.dateSpanTransforms),
|
|
193
|
+
views: Object.assign(Object.assign({}, t.views), e.views),
|
|
194
|
+
viewPropsTransformers: t.viewPropsTransformers.concat(e.viewPropsTransformers),
|
|
195
|
+
isPropsValid: e.isPropsValid || t.isPropsValid,
|
|
196
|
+
externalDefTransforms: t.externalDefTransforms.concat(e.externalDefTransforms),
|
|
197
|
+
viewContainerAppends: t.viewContainerAppends.concat(e.viewContainerAppends),
|
|
198
|
+
eventDropTransformers: t.eventDropTransformers.concat(e.eventDropTransformers),
|
|
199
|
+
calendarInteractions: t.calendarInteractions.concat(e.calendarInteractions),
|
|
200
|
+
componentInteractions: t.componentInteractions.concat(e.componentInteractions),
|
|
201
|
+
themeClasses: Object.assign(Object.assign({}, t.themeClasses), e.themeClasses),
|
|
202
|
+
eventSourceDefs: t.eventSourceDefs.concat(e.eventSourceDefs),
|
|
203
|
+
cmdFormatter: e.cmdFormatter || t.cmdFormatter,
|
|
204
|
+
recurringTypes: t.recurringTypes.concat(e.recurringTypes),
|
|
205
|
+
namedTimeZonedImpl: e.namedTimeZonedImpl || t.namedTimeZonedImpl,
|
|
206
|
+
initialView: t.initialView || e.initialView,
|
|
207
|
+
elementDraggingImpl: t.elementDraggingImpl || e.elementDraggingImpl,
|
|
208
|
+
optionChangeHandlers: Object.assign(Object.assign({}, t.optionChangeHandlers), e.optionChangeHandlers),
|
|
209
|
+
scrollGridImpl: e.scrollGridImpl || t.scrollGridImpl,
|
|
210
|
+
listenerRefiners: Object.assign(Object.assign({}, t.listenerRefiners), e.listenerRefiners),
|
|
211
|
+
optionRefiners: Object.assign(Object.assign({}, t.optionRefiners), e.optionRefiners),
|
|
212
|
+
propSetHandlers: Object.assign(Object.assign({}, t.propSetHandlers), e.propSetHandlers)
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function bt(t, e) {
|
|
216
|
+
return t === void 0 ? e : e === void 0 ? t : new Date(Math.max(t.valueOf(), e.valueOf()));
|
|
217
|
+
}
|
|
218
|
+
class O extends Qe {
|
|
219
|
+
}
|
|
220
|
+
O.prototype.classes = {
|
|
221
|
+
root: "fc-theme-standard",
|
|
222
|
+
tableCellShaded: "fc-cell-shaded",
|
|
223
|
+
buttonGroup: "fc-button-group",
|
|
224
|
+
button: "fc-button fc-button-primary",
|
|
225
|
+
buttonActive: "fc-button-active"
|
|
226
|
+
};
|
|
227
|
+
O.prototype.baseIconClass = "fc-icon";
|
|
228
|
+
O.prototype.iconClasses = {
|
|
229
|
+
close: "fc-icon-x",
|
|
230
|
+
prev: "fc-icon-chevron-left",
|
|
231
|
+
next: "fc-icon-chevron-right",
|
|
232
|
+
prevYear: "fc-icon-chevrons-left",
|
|
233
|
+
nextYear: "fc-icon-chevrons-right"
|
|
234
|
+
};
|
|
235
|
+
O.prototype.rtlIconClasses = {
|
|
236
|
+
prev: "fc-icon-chevron-right",
|
|
237
|
+
next: "fc-icon-chevron-left",
|
|
238
|
+
prevYear: "fc-icon-chevrons-right",
|
|
239
|
+
nextYear: "fc-icon-chevrons-left"
|
|
240
|
+
};
|
|
241
|
+
O.prototype.iconOverrideOption = "buttonIcons";
|
|
242
|
+
O.prototype.iconOverrideCustomButtonOption = "icon";
|
|
243
|
+
O.prototype.iconOverridePrefix = "fc-icon-";
|
|
244
|
+
function Et(t, e) {
|
|
245
|
+
let n = {}, r;
|
|
246
|
+
for (r in t)
|
|
247
|
+
B(r, n, t, e);
|
|
248
|
+
for (r in e)
|
|
249
|
+
B(r, n, t, e);
|
|
250
|
+
return n;
|
|
251
|
+
}
|
|
252
|
+
function B(t, e, n, r) {
|
|
253
|
+
if (e[t])
|
|
254
|
+
return e[t];
|
|
255
|
+
let s = Rt(t, e, n, r);
|
|
256
|
+
return s && (e[t] = s), s;
|
|
257
|
+
}
|
|
258
|
+
function Rt(t, e, n, r) {
|
|
259
|
+
let s = n[t], a = r[t], i = (d) => s && s[d] !== null ? s[d] : a && a[d] !== null ? a[d] : null, l = i("component"), o = i("superType"), u = null;
|
|
260
|
+
if (o) {
|
|
261
|
+
if (o === t)
|
|
262
|
+
throw new Error("Can't have a custom view type that references itself");
|
|
263
|
+
u = B(o, e, n, r);
|
|
264
|
+
}
|
|
265
|
+
return !l && u && (l = u.component), l ? {
|
|
266
|
+
type: t,
|
|
267
|
+
component: l,
|
|
268
|
+
defaults: Object.assign(Object.assign({}, u ? u.defaults : {}), s ? s.rawOptions : {}),
|
|
269
|
+
overrides: Object.assign(Object.assign({}, u ? u.overrides : {}), a ? a.rawOptions : {})
|
|
270
|
+
} : null;
|
|
271
|
+
}
|
|
272
|
+
function ne(t) {
|
|
273
|
+
return z(t, Tt);
|
|
274
|
+
}
|
|
275
|
+
function Tt(t) {
|
|
276
|
+
let e = typeof t == "function" ? { component: t } : t, { component: n } = e;
|
|
277
|
+
return e.content ? n = re(e) : n && !(n.prototype instanceof H) && (n = re(Object.assign(Object.assign({}, e), { content: n }))), {
|
|
278
|
+
superType: e.type,
|
|
279
|
+
component: n,
|
|
280
|
+
rawOptions: e
|
|
281
|
+
// includes type and component too :(
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
function re(t) {
|
|
285
|
+
return (e) => m(fe.Consumer, null, (n) => m(it, { elTag: "div", elClasses: at(n.viewSpec), renderProps: Object.assign(Object.assign({}, e), { nextDayThreshold: n.options.nextDayThreshold }), generatorName: void 0, customGenerator: t.content, classNameGenerator: t.classNames, didMount: t.didMount, willUnmount: t.willUnmount }));
|
|
286
|
+
}
|
|
287
|
+
function wt(t, e, n, r) {
|
|
288
|
+
let s = ne(t), a = ne(e.views), i = Et(s, a);
|
|
289
|
+
return z(i, (l) => St(l, a, e, n, r));
|
|
290
|
+
}
|
|
291
|
+
function St(t, e, n, r, s) {
|
|
292
|
+
let a = t.overrides.duration || t.defaults.duration || r.duration || n.duration, i = null, l = "", o = "", u = {};
|
|
293
|
+
if (a && (i = Ct(a), i)) {
|
|
294
|
+
let p = et(i);
|
|
295
|
+
l = p.unit, p.value === 1 && (o = l, u = e[l] ? e[l].rawOptions : {});
|
|
296
|
+
}
|
|
297
|
+
let d = (p) => {
|
|
298
|
+
let c = p.buttonText || {}, v = t.defaults.buttonTextKey;
|
|
299
|
+
return v != null && c[v] != null ? c[v] : c[t.type] != null ? c[t.type] : c[o] != null ? c[o] : null;
|
|
300
|
+
}, f = (p) => {
|
|
301
|
+
let c = p.buttonHints || {}, v = t.defaults.buttonTextKey;
|
|
302
|
+
return v != null && c[v] != null ? c[v] : c[t.type] != null ? c[t.type] : c[o] != null ? c[o] : null;
|
|
303
|
+
};
|
|
304
|
+
return {
|
|
305
|
+
type: t.type,
|
|
306
|
+
component: t.component,
|
|
307
|
+
duration: i,
|
|
308
|
+
durationUnit: l,
|
|
309
|
+
singleUnit: o,
|
|
310
|
+
optionDefaults: t.defaults,
|
|
311
|
+
optionOverrides: Object.assign(Object.assign({}, u), t.overrides),
|
|
312
|
+
buttonTextOverride: d(r) || d(n) || // constructor-specified buttonText lookup hash takes precedence
|
|
313
|
+
t.overrides.buttonText,
|
|
314
|
+
buttonTextDefault: d(s) || t.defaults.buttonText || d(A) || t.type,
|
|
315
|
+
// not DRY
|
|
316
|
+
buttonTitleOverride: f(r) || f(n) || t.overrides.buttonHint,
|
|
317
|
+
buttonTitleDefault: f(s) || t.defaults.buttonHint || f(A)
|
|
318
|
+
// will eventually fall back to buttonText
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
let se = {};
|
|
322
|
+
function Ct(t) {
|
|
323
|
+
let e = JSON.stringify(t), n = se[e];
|
|
324
|
+
return n === void 0 && (n = x(t), se[e] = n), n;
|
|
325
|
+
}
|
|
326
|
+
function Ot(t, e) {
|
|
327
|
+
switch (e.type) {
|
|
328
|
+
case "CHANGE_VIEW_TYPE":
|
|
329
|
+
t = e.viewType;
|
|
330
|
+
}
|
|
331
|
+
return t;
|
|
332
|
+
}
|
|
333
|
+
function Dt(t, e) {
|
|
334
|
+
switch (e.type) {
|
|
335
|
+
case "SET_OPTION":
|
|
336
|
+
return Object.assign(Object.assign({}, t), { [e.optionName]: e.rawOptionValue });
|
|
337
|
+
default:
|
|
338
|
+
return t;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function yt(t, e, n, r) {
|
|
342
|
+
let s;
|
|
343
|
+
switch (e.type) {
|
|
344
|
+
case "CHANGE_VIEW_TYPE":
|
|
345
|
+
return r.build(e.dateMarker || n);
|
|
346
|
+
case "CHANGE_DATE":
|
|
347
|
+
return r.build(e.dateMarker);
|
|
348
|
+
case "PREV":
|
|
349
|
+
if (s = r.buildPrev(t, n), s.isValid)
|
|
350
|
+
return s;
|
|
351
|
+
break;
|
|
352
|
+
case "NEXT":
|
|
353
|
+
if (s = r.buildNext(t, n), s.isValid)
|
|
354
|
+
return s;
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
return t;
|
|
358
|
+
}
|
|
359
|
+
function It(t, e, n) {
|
|
360
|
+
let r = e ? e.activeRange : null;
|
|
361
|
+
return Re({}, jt(t, n), r, n);
|
|
362
|
+
}
|
|
363
|
+
function Pt(t, e, n, r) {
|
|
364
|
+
let s = n ? n.activeRange : null;
|
|
365
|
+
switch (e.type) {
|
|
366
|
+
case "ADD_EVENT_SOURCES":
|
|
367
|
+
return Re(t, e.sources, s, r);
|
|
368
|
+
case "REMOVE_EVENT_SOURCE":
|
|
369
|
+
return Vt(t, e.sourceId);
|
|
370
|
+
case "PREV":
|
|
371
|
+
case "NEXT":
|
|
372
|
+
case "CHANGE_DATE":
|
|
373
|
+
case "CHANGE_VIEW_TYPE":
|
|
374
|
+
return n ? Te(t, s, r) : t;
|
|
375
|
+
case "FETCH_EVENT_SOURCES":
|
|
376
|
+
return q(t, e.sourceIds ? (
|
|
377
|
+
// why no type?
|
|
378
|
+
ce(e.sourceIds)
|
|
379
|
+
) : we(t, r), s, e.isRefetch || !1, r);
|
|
380
|
+
case "RECEIVE_EVENTS":
|
|
381
|
+
case "RECEIVE_EVENT_ERROR":
|
|
382
|
+
return Nt(t, e.sourceId, e.fetchId, e.fetchRange);
|
|
383
|
+
case "REMOVE_ALL_EVENT_SOURCES":
|
|
384
|
+
return {};
|
|
385
|
+
default:
|
|
386
|
+
return t;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function At(t, e, n) {
|
|
390
|
+
let r = e ? e.activeRange : null;
|
|
391
|
+
return q(t, we(t, n), r, !0, n);
|
|
392
|
+
}
|
|
393
|
+
function Ee(t) {
|
|
394
|
+
for (let e in t)
|
|
395
|
+
if (t[e].isFetching)
|
|
396
|
+
return !0;
|
|
397
|
+
return !1;
|
|
398
|
+
}
|
|
399
|
+
function Re(t, e, n, r) {
|
|
400
|
+
let s = {};
|
|
401
|
+
for (let a of e)
|
|
402
|
+
s[a.sourceId] = a;
|
|
403
|
+
return n && (s = Te(s, n, r)), Object.assign(Object.assign({}, t), s);
|
|
404
|
+
}
|
|
405
|
+
function Vt(t, e) {
|
|
406
|
+
return W(t, (n) => n.sourceId !== e);
|
|
407
|
+
}
|
|
408
|
+
function Te(t, e, n) {
|
|
409
|
+
return q(t, W(t, (r) => xt(r, e, n)), e, !1, n);
|
|
410
|
+
}
|
|
411
|
+
function xt(t, e, n) {
|
|
412
|
+
return Se(t, n) ? !n.options.lazyFetching || !t.fetchRange || t.isFetching || // always cancel outdated in-progress fetches
|
|
413
|
+
e.start < t.fetchRange.start || e.end > t.fetchRange.end : !t.latestFetchId;
|
|
414
|
+
}
|
|
415
|
+
function q(t, e, n, r, s) {
|
|
416
|
+
let a = {};
|
|
417
|
+
for (let i in t) {
|
|
418
|
+
let l = t[i];
|
|
419
|
+
e[i] ? a[i] = Ht(l, n, r, s) : a[i] = l;
|
|
420
|
+
}
|
|
421
|
+
return a;
|
|
422
|
+
}
|
|
423
|
+
function Ht(t, e, n, r) {
|
|
424
|
+
let { options: s, calendarApi: a } = r, i = r.pluginHooks.eventSourceDefs[t.sourceDefId], l = ue();
|
|
425
|
+
return i.fetch({
|
|
426
|
+
eventSource: t,
|
|
427
|
+
range: e,
|
|
428
|
+
isRefetch: n,
|
|
429
|
+
context: r
|
|
430
|
+
}, (o) => {
|
|
431
|
+
let { rawEvents: u } = o;
|
|
432
|
+
s.eventSourceSuccess && (u = s.eventSourceSuccess.call(a, u, o.response) || u), t.success && (u = t.success.call(a, u, o.response) || u), r.dispatch({
|
|
433
|
+
type: "RECEIVE_EVENTS",
|
|
434
|
+
sourceId: t.sourceId,
|
|
435
|
+
fetchId: l,
|
|
436
|
+
fetchRange: e,
|
|
437
|
+
rawEvents: u
|
|
438
|
+
});
|
|
439
|
+
}, (o) => {
|
|
440
|
+
let u = !1;
|
|
441
|
+
s.eventSourceFailure && (s.eventSourceFailure.call(a, o), u = !0), t.failure && (t.failure(o), u = !0), u || console.warn(o.message, o), r.dispatch({
|
|
442
|
+
type: "RECEIVE_EVENT_ERROR",
|
|
443
|
+
sourceId: t.sourceId,
|
|
444
|
+
fetchId: l,
|
|
445
|
+
fetchRange: e,
|
|
446
|
+
error: o
|
|
447
|
+
});
|
|
448
|
+
}), Object.assign(Object.assign({}, t), { isFetching: !0, latestFetchId: l });
|
|
449
|
+
}
|
|
450
|
+
function Nt(t, e, n, r) {
|
|
451
|
+
let s = t[e];
|
|
452
|
+
return s && // not already removed
|
|
453
|
+
n === s.latestFetchId ? Object.assign(Object.assign({}, t), { [e]: Object.assign(Object.assign({}, s), { isFetching: !1, fetchRange: r }) }) : t;
|
|
454
|
+
}
|
|
455
|
+
function we(t, e) {
|
|
456
|
+
return W(t, (n) => Se(n, e));
|
|
457
|
+
}
|
|
458
|
+
function jt(t, e) {
|
|
459
|
+
let n = je(e), r = [].concat(t.eventSources || []), s = [];
|
|
460
|
+
t.initialEvents && r.unshift(t.initialEvents), t.events && r.unshift(t.events);
|
|
461
|
+
for (let a of r) {
|
|
462
|
+
let i = _e(a, e, n);
|
|
463
|
+
i && s.push(i);
|
|
464
|
+
}
|
|
465
|
+
return s;
|
|
466
|
+
}
|
|
467
|
+
function Se(t, e) {
|
|
468
|
+
return !e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange;
|
|
469
|
+
}
|
|
470
|
+
function _t(t, e) {
|
|
471
|
+
switch (e.type) {
|
|
472
|
+
case "UNSELECT_DATES":
|
|
473
|
+
return null;
|
|
474
|
+
case "SELECT_DATES":
|
|
475
|
+
return e.selection;
|
|
476
|
+
default:
|
|
477
|
+
return t;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function Lt(t, e) {
|
|
481
|
+
switch (e.type) {
|
|
482
|
+
case "UNSELECT_EVENT":
|
|
483
|
+
return "";
|
|
484
|
+
case "SELECT_EVENT":
|
|
485
|
+
return e.eventInstanceId;
|
|
486
|
+
default:
|
|
487
|
+
return t;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function Mt(t, e) {
|
|
491
|
+
let n;
|
|
492
|
+
switch (e.type) {
|
|
493
|
+
case "UNSET_EVENT_DRAG":
|
|
494
|
+
return null;
|
|
495
|
+
case "SET_EVENT_DRAG":
|
|
496
|
+
return n = e.state, {
|
|
497
|
+
affectedEvents: n.affectedEvents,
|
|
498
|
+
mutatedEvents: n.mutatedEvents,
|
|
499
|
+
isEvent: n.isEvent
|
|
500
|
+
};
|
|
501
|
+
default:
|
|
502
|
+
return t;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function Ft(t, e) {
|
|
506
|
+
let n;
|
|
507
|
+
switch (e.type) {
|
|
508
|
+
case "UNSET_EVENT_RESIZE":
|
|
509
|
+
return null;
|
|
510
|
+
case "SET_EVENT_RESIZE":
|
|
511
|
+
return n = e.state, {
|
|
512
|
+
affectedEvents: n.affectedEvents,
|
|
513
|
+
mutatedEvents: n.mutatedEvents,
|
|
514
|
+
isEvent: n.isEvent
|
|
515
|
+
};
|
|
516
|
+
default:
|
|
517
|
+
return t;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function Ut(t, e, n, r, s) {
|
|
521
|
+
let a = t.headerToolbar ? ie(t.headerToolbar, t, e, n, r, s) : null, i = t.footerToolbar ? ie(t.footerToolbar, t, e, n, r, s) : null;
|
|
522
|
+
return { header: a, footer: i };
|
|
523
|
+
}
|
|
524
|
+
function ie(t, e, n, r, s, a) {
|
|
525
|
+
let i = {}, l = [], o = !1;
|
|
526
|
+
for (let u in t) {
|
|
527
|
+
let d = t[u], f = Bt(d, e, n, r, s, a);
|
|
528
|
+
i[u] = f.widgets, l.push(...f.viewsWithButtons), o = o || f.hasTitle;
|
|
529
|
+
}
|
|
530
|
+
return { sectionWidgets: i, viewsWithButtons: l, hasTitle: o };
|
|
531
|
+
}
|
|
532
|
+
function Bt(t, e, n, r, s, a) {
|
|
533
|
+
let i = e.direction === "rtl", l = e.customButtons || {}, o = n.buttonText || {}, u = e.buttonText || {}, d = n.buttonHints || {}, f = e.buttonHints || {}, p = t ? t.split(" ") : [], c = [], v = !1;
|
|
534
|
+
return { widgets: p.map((g) => g.split(",").map((h) => {
|
|
535
|
+
if (h === "title")
|
|
536
|
+
return v = !0, { buttonName: h };
|
|
537
|
+
let R, T, w, D, S, C;
|
|
538
|
+
if (R = l[h])
|
|
539
|
+
w = (b) => {
|
|
540
|
+
R.click && R.click.call(b.target, b, b.target);
|
|
541
|
+
}, (D = r.getCustomButtonIconClass(R)) || (D = r.getIconClass(h, i)) || (S = R.text), C = R.hint || R.text;
|
|
542
|
+
else if (T = s[h]) {
|
|
543
|
+
c.push(h), w = () => {
|
|
544
|
+
a.changeView(h);
|
|
545
|
+
}, (S = T.buttonTextOverride) || (D = r.getIconClass(h, i)) || (S = T.buttonTextDefault);
|
|
546
|
+
let b = T.buttonTextOverride || T.buttonTextDefault;
|
|
547
|
+
C = _(
|
|
548
|
+
T.buttonTitleOverride || T.buttonTitleDefault || e.viewHint,
|
|
549
|
+
[b, h],
|
|
550
|
+
// view-name = buttonName
|
|
551
|
+
b
|
|
552
|
+
);
|
|
553
|
+
} else if (a[h])
|
|
554
|
+
if (w = () => {
|
|
555
|
+
a[h]();
|
|
556
|
+
}, (S = o[h]) || (D = r.getIconClass(h, i)) || (S = u[h]), h === "prevYear" || h === "nextYear") {
|
|
557
|
+
let b = h === "prevYear" ? "prev" : "next";
|
|
558
|
+
C = _(d[b] || f[b], [
|
|
559
|
+
u.year || "year",
|
|
560
|
+
"year"
|
|
561
|
+
], u[h]);
|
|
562
|
+
} else
|
|
563
|
+
C = (b) => _(d[h] || f[h], [
|
|
564
|
+
u[b] || b,
|
|
565
|
+
b
|
|
566
|
+
], u[h]);
|
|
567
|
+
return { buttonName: h, buttonClick: w, buttonIcon: D, buttonText: S, buttonHint: C };
|
|
568
|
+
})), viewsWithButtons: c, hasTitle: v };
|
|
569
|
+
}
|
|
570
|
+
class Gt {
|
|
571
|
+
constructor(e, n, r) {
|
|
572
|
+
this.type = e, this.getCurrentData = n, this.dateEnv = r;
|
|
573
|
+
}
|
|
574
|
+
get calendar() {
|
|
575
|
+
return this.getCurrentData().calendarApi;
|
|
576
|
+
}
|
|
577
|
+
get title() {
|
|
578
|
+
return this.getCurrentData().viewTitle;
|
|
579
|
+
}
|
|
580
|
+
get activeStart() {
|
|
581
|
+
return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start);
|
|
582
|
+
}
|
|
583
|
+
get activeEnd() {
|
|
584
|
+
return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end);
|
|
585
|
+
}
|
|
586
|
+
get currentStart() {
|
|
587
|
+
return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start);
|
|
588
|
+
}
|
|
589
|
+
get currentEnd() {
|
|
590
|
+
return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end);
|
|
591
|
+
}
|
|
592
|
+
getOption(e) {
|
|
593
|
+
return this.getCurrentData().options[e];
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
let Wt = {
|
|
597
|
+
ignoreRange: !0,
|
|
598
|
+
parseMeta(t) {
|
|
599
|
+
return Array.isArray(t.events) ? t.events : null;
|
|
600
|
+
},
|
|
601
|
+
fetch(t, e) {
|
|
602
|
+
e({
|
|
603
|
+
rawEvents: t.eventSource.meta
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
const zt = P({
|
|
608
|
+
name: "array-event-source",
|
|
609
|
+
eventSourceDefs: [Wt]
|
|
610
|
+
});
|
|
611
|
+
let qt = {
|
|
612
|
+
parseMeta(t) {
|
|
613
|
+
return typeof t.events == "function" ? t.events : null;
|
|
614
|
+
},
|
|
615
|
+
fetch(t, e, n) {
|
|
616
|
+
const { dateEnv: r } = t.context, s = t.eventSource.meta;
|
|
617
|
+
Le(s.bind(null, de(t.range, r)), (a) => e({ rawEvents: a }), n);
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
const Zt = P({
|
|
621
|
+
name: "func-event-source",
|
|
622
|
+
eventSourceDefs: [qt]
|
|
623
|
+
}), kt = {
|
|
624
|
+
method: String,
|
|
625
|
+
extraParams: V,
|
|
626
|
+
startParam: String,
|
|
627
|
+
endParam: String,
|
|
628
|
+
timeZoneParam: String
|
|
629
|
+
};
|
|
630
|
+
let $t = {
|
|
631
|
+
parseMeta(t) {
|
|
632
|
+
return t.url && (t.format === "json" || !t.format) ? {
|
|
633
|
+
url: t.url,
|
|
634
|
+
format: "json",
|
|
635
|
+
method: (t.method || "GET").toUpperCase(),
|
|
636
|
+
extraParams: t.extraParams,
|
|
637
|
+
startParam: t.startParam,
|
|
638
|
+
endParam: t.endParam,
|
|
639
|
+
timeZoneParam: t.timeZoneParam
|
|
640
|
+
} : null;
|
|
641
|
+
},
|
|
642
|
+
fetch(t, e, n) {
|
|
643
|
+
const { meta: r } = t.eventSource, s = Jt(r, t.range, t.context);
|
|
644
|
+
Me(r.method, r.url, s).then(([a, i]) => {
|
|
645
|
+
e({ rawEvents: a, response: i });
|
|
646
|
+
}, n);
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
const Yt = P({
|
|
650
|
+
name: "json-event-source",
|
|
651
|
+
eventSourceRefiners: kt,
|
|
652
|
+
eventSourceDefs: [$t]
|
|
653
|
+
});
|
|
654
|
+
function Jt(t, e, n) {
|
|
655
|
+
let { dateEnv: r, options: s } = n, a, i, l, o, u = {};
|
|
656
|
+
return a = t.startParam, a == null && (a = s.startParam), i = t.endParam, i == null && (i = s.endParam), l = t.timeZoneParam, l == null && (l = s.timeZoneParam), typeof t.extraParams == "function" ? o = t.extraParams() : o = t.extraParams || {}, Object.assign(u, o), u[a] = r.formatIso(e.start), u[i] = r.formatIso(e.end), r.timeZone !== "local" && (u[l] = r.timeZone), u;
|
|
657
|
+
}
|
|
658
|
+
const Kt = {
|
|
659
|
+
daysOfWeek: V,
|
|
660
|
+
startTime: x,
|
|
661
|
+
endTime: x,
|
|
662
|
+
duration: x,
|
|
663
|
+
startRecur: V,
|
|
664
|
+
endRecur: V
|
|
665
|
+
};
|
|
666
|
+
let Xt = {
|
|
667
|
+
parse(t, e) {
|
|
668
|
+
if (t.daysOfWeek || t.startTime || t.endTime || t.startRecur || t.endRecur) {
|
|
669
|
+
let n = {
|
|
670
|
+
daysOfWeek: t.daysOfWeek || null,
|
|
671
|
+
startTime: t.startTime || null,
|
|
672
|
+
endTime: t.endTime || null,
|
|
673
|
+
startRecur: t.startRecur ? e.createMarker(t.startRecur) : null,
|
|
674
|
+
endRecur: t.endRecur ? e.createMarker(t.endRecur) : null
|
|
675
|
+
}, r;
|
|
676
|
+
return t.duration && (r = t.duration), !r && t.startTime && t.endTime && (r = Fe(t.endTime, t.startTime)), {
|
|
677
|
+
allDayGuess: !t.startTime && !t.endTime,
|
|
678
|
+
duration: r,
|
|
679
|
+
typeData: n
|
|
680
|
+
// doesn't need endTime anymore but oh well
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
return null;
|
|
684
|
+
},
|
|
685
|
+
expand(t, e, n) {
|
|
686
|
+
let r = Ue(e, { start: t.startRecur, end: t.endRecur });
|
|
687
|
+
return r ? en(t.daysOfWeek, t.startTime, r, n) : [];
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
const Qt = P({
|
|
691
|
+
name: "simple-recurring-event",
|
|
692
|
+
recurringTypes: [Xt],
|
|
693
|
+
eventRefiners: Kt
|
|
694
|
+
});
|
|
695
|
+
function en(t, e, n, r) {
|
|
696
|
+
let s = t ? ce(t) : null, a = Be(n.start), i = n.end, l = [];
|
|
697
|
+
for (; a < i; ) {
|
|
698
|
+
let o;
|
|
699
|
+
(!s || s[a.getUTCDay()]) && (e ? o = r.add(a, e) : o = a, l.push(o)), a = Ge(a, 1);
|
|
700
|
+
}
|
|
701
|
+
return l;
|
|
702
|
+
}
|
|
703
|
+
const tn = P({
|
|
704
|
+
name: "change-handler",
|
|
705
|
+
optionChangeHandlers: {
|
|
706
|
+
events(t, e) {
|
|
707
|
+
ae([t], e);
|
|
708
|
+
},
|
|
709
|
+
eventSources: ae
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
function ae(t, e) {
|
|
713
|
+
let n = ye(e.getCurrentData().eventSources);
|
|
714
|
+
if (n.length === 1 && t.length === 1 && Array.isArray(n[0]._raw) && Array.isArray(t[0])) {
|
|
715
|
+
e.dispatch({
|
|
716
|
+
type: "RESET_RAW_EVENTS",
|
|
717
|
+
sourceId: n[0].sourceId,
|
|
718
|
+
rawEvents: t[0]
|
|
719
|
+
});
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
let r = [];
|
|
723
|
+
for (let s of t) {
|
|
724
|
+
let a = !1;
|
|
725
|
+
for (let i = 0; i < n.length; i += 1)
|
|
726
|
+
if (n[i]._raw === s) {
|
|
727
|
+
n.splice(i, 1), a = !0;
|
|
728
|
+
break;
|
|
729
|
+
}
|
|
730
|
+
a || r.push(s);
|
|
731
|
+
}
|
|
732
|
+
for (let s of n)
|
|
733
|
+
e.dispatch({
|
|
734
|
+
type: "REMOVE_EVENT_SOURCE",
|
|
735
|
+
sourceId: s.sourceId
|
|
736
|
+
});
|
|
737
|
+
for (let s of r)
|
|
738
|
+
e.calendarApi.addEventSource(s);
|
|
739
|
+
}
|
|
740
|
+
function nn(t, e) {
|
|
741
|
+
e.emitter.trigger("datesSet", Object.assign(Object.assign({}, de(t.activeRange, e.dateEnv)), { view: e.viewApi }));
|
|
742
|
+
}
|
|
743
|
+
function rn(t, e) {
|
|
744
|
+
let { emitter: n } = e;
|
|
745
|
+
n.hasHandlers("eventsSet") && n.trigger("eventsSet", We(t, e));
|
|
746
|
+
}
|
|
747
|
+
const sn = [
|
|
748
|
+
zt,
|
|
749
|
+
Zt,
|
|
750
|
+
Yt,
|
|
751
|
+
Qt,
|
|
752
|
+
tn,
|
|
753
|
+
P({
|
|
754
|
+
name: "misc",
|
|
755
|
+
isLoadingFuncs: [
|
|
756
|
+
(t) => Ee(t.eventSources)
|
|
757
|
+
],
|
|
758
|
+
propSetHandlers: {
|
|
759
|
+
dateProfile: nn,
|
|
760
|
+
eventStore: rn
|
|
761
|
+
}
|
|
762
|
+
})
|
|
763
|
+
];
|
|
764
|
+
class an {
|
|
765
|
+
constructor(e, n) {
|
|
766
|
+
this.runTaskOption = e, this.drainedOption = n, this.queue = [], this.delayedRunner = new G(this.drain.bind(this));
|
|
767
|
+
}
|
|
768
|
+
request(e, n) {
|
|
769
|
+
this.queue.push(e), this.delayedRunner.request(n);
|
|
770
|
+
}
|
|
771
|
+
pause(e) {
|
|
772
|
+
this.delayedRunner.pause(e);
|
|
773
|
+
}
|
|
774
|
+
resume(e, n) {
|
|
775
|
+
this.delayedRunner.resume(e, n);
|
|
776
|
+
}
|
|
777
|
+
drain() {
|
|
778
|
+
let { queue: e } = this;
|
|
779
|
+
for (; e.length; ) {
|
|
780
|
+
let n = [], r;
|
|
781
|
+
for (; r = e.shift(); )
|
|
782
|
+
this.runTask(r), n.push(r);
|
|
783
|
+
this.drained(n);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
runTask(e) {
|
|
787
|
+
this.runTaskOption && this.runTaskOption(e);
|
|
788
|
+
}
|
|
789
|
+
drained(e) {
|
|
790
|
+
this.drainedOption && this.drainedOption(e);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function ln(t, e, n) {
|
|
794
|
+
let r;
|
|
795
|
+
return /^(year|month)$/.test(t.currentRangeUnit) ? r = t.currentRange : r = t.activeRange, n.formatRange(r.start, r.end, tt(e.titleFormat || on(t)), {
|
|
796
|
+
isEndExclusive: t.isRangeAllDay,
|
|
797
|
+
defaultSeparator: e.titleRangeSeparator
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
function on(t) {
|
|
801
|
+
let { currentRangeUnit: e } = t;
|
|
802
|
+
if (e === "year")
|
|
803
|
+
return { year: "numeric" };
|
|
804
|
+
if (e === "month")
|
|
805
|
+
return { year: "numeric", month: "long" };
|
|
806
|
+
let n = nt(t.currentRange.start, t.currentRange.end);
|
|
807
|
+
return n !== null && n > 1 ? { year: "numeric", month: "short", day: "numeric" } : { year: "numeric", month: "long", day: "numeric" };
|
|
808
|
+
}
|
|
809
|
+
class un {
|
|
810
|
+
constructor(e) {
|
|
811
|
+
this.computeCurrentViewData = E(this._computeCurrentViewData), this.organizeRawLocales = E(ft), this.buildLocale = E(ve), this.buildPluginHooks = mt(), this.buildDateEnv = E(cn), this.buildTheme = E(dn), this.parseToolbars = E(Ut), this.buildViewSpecs = E(wt), this.buildDateProfileGenerator = N(fn), this.buildViewApi = E(pn), this.buildViewUiProps = N(mn), this.buildEventUiBySource = E(hn, rt), this.buildEventUiBases = E(gn), this.parseContextBusinessHours = N(vn), this.buildTitle = E(ln), this.emitter = new Ie(), this.actionRunner = new an(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (p) => {
|
|
812
|
+
this.actionRunner.request(p);
|
|
813
|
+
}, this.props = e, this.actionRunner.pause();
|
|
814
|
+
let n = {}, r = this.computeOptionsData(e.optionOverrides, n, e.calendarApi), s = r.calendarOptions.initialView || r.pluginHooks.initialView, a = this.computeCurrentViewData(s, r, e.optionOverrides, n);
|
|
815
|
+
e.calendarApi.currentDataManager = this, this.emitter.setThisContext(e.calendarApi), this.emitter.setOptions(a.options);
|
|
816
|
+
let i = Pe(r.calendarOptions, r.dateEnv), l = a.dateProfileGenerator.build(i);
|
|
817
|
+
F(l.activeRange, i) || (i = l.currentRange.start);
|
|
818
|
+
let o = {
|
|
819
|
+
dateEnv: r.dateEnv,
|
|
820
|
+
options: r.calendarOptions,
|
|
821
|
+
pluginHooks: r.pluginHooks,
|
|
822
|
+
calendarApi: e.calendarApi,
|
|
823
|
+
dispatch: this.dispatch,
|
|
824
|
+
emitter: this.emitter,
|
|
825
|
+
getCurrentData: this.getCurrentData
|
|
826
|
+
};
|
|
827
|
+
for (let p of r.pluginHooks.contextInit)
|
|
828
|
+
p(o);
|
|
829
|
+
let u = It(r.calendarOptions, l, o), d = {
|
|
830
|
+
dynamicOptionOverrides: n,
|
|
831
|
+
currentViewType: s,
|
|
832
|
+
currentDate: i,
|
|
833
|
+
dateProfile: l,
|
|
834
|
+
businessHours: this.parseContextBusinessHours(o),
|
|
835
|
+
eventSources: u,
|
|
836
|
+
eventUiBases: {},
|
|
837
|
+
eventStore: k(),
|
|
838
|
+
renderableEventStore: k(),
|
|
839
|
+
dateSelection: null,
|
|
840
|
+
eventSelection: "",
|
|
841
|
+
eventDrag: null,
|
|
842
|
+
eventResize: null,
|
|
843
|
+
selectionConfig: this.buildViewUiProps(o).selectionConfig
|
|
844
|
+
}, f = Object.assign(Object.assign({}, o), d);
|
|
845
|
+
for (let p of r.pluginHooks.reducers)
|
|
846
|
+
Object.assign(d, p(null, null, f));
|
|
847
|
+
L(d, o) && this.emitter.trigger("loading", !0), this.state = d, this.updateData(), this.actionRunner.resume();
|
|
848
|
+
}
|
|
849
|
+
resetOptions(e, n) {
|
|
850
|
+
let { props: r } = this;
|
|
851
|
+
n === void 0 ? r.optionOverrides = e : (r.optionOverrides = Object.assign(Object.assign({}, r.optionOverrides || {}), e), this.optionsForRefining.push(...n)), (n === void 0 || n.length) && this.actionRunner.request({
|
|
852
|
+
type: "NOTHING"
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
_handleAction(e) {
|
|
856
|
+
let { props: n, state: r, emitter: s } = this, a = Dt(r.dynamicOptionOverrides, e), i = this.computeOptionsData(n.optionOverrides, a, n.calendarApi), l = Ot(r.currentViewType, e), o = this.computeCurrentViewData(l, i, n.optionOverrides, a);
|
|
857
|
+
n.calendarApi.currentDataManager = this, s.setThisContext(n.calendarApi), s.setOptions(o.options);
|
|
858
|
+
let u = {
|
|
859
|
+
dateEnv: i.dateEnv,
|
|
860
|
+
options: i.calendarOptions,
|
|
861
|
+
pluginHooks: i.pluginHooks,
|
|
862
|
+
calendarApi: n.calendarApi,
|
|
863
|
+
dispatch: this.dispatch,
|
|
864
|
+
emitter: s,
|
|
865
|
+
getCurrentData: this.getCurrentData
|
|
866
|
+
}, { currentDate: d, dateProfile: f } = r;
|
|
867
|
+
this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (f = o.dateProfileGenerator.build(d)), d = Ae(d, e), f = yt(f, e, d, o.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
868
|
+
e.type === "NEXT" || // "
|
|
869
|
+
!F(f.currentRange, d)) && (d = f.currentRange.start);
|
|
870
|
+
let p = Pt(r.eventSources, e, f, u), c = Ve(r.eventStore, e, p, f, u), y = Ee(p) && !o.options.progressiveEventRendering && r.renderableEventStore || c, { eventUiSingleBase: g, selectionConfig: h } = this.buildViewUiProps(u), R = this.buildEventUiBySource(p), T = this.buildEventUiBases(y.defs, g, R), w = {
|
|
871
|
+
dynamicOptionOverrides: a,
|
|
872
|
+
currentViewType: l,
|
|
873
|
+
currentDate: d,
|
|
874
|
+
dateProfile: f,
|
|
875
|
+
eventSources: p,
|
|
876
|
+
eventStore: c,
|
|
877
|
+
renderableEventStore: y,
|
|
878
|
+
selectionConfig: h,
|
|
879
|
+
eventUiBases: T,
|
|
880
|
+
businessHours: this.parseContextBusinessHours(u),
|
|
881
|
+
dateSelection: _t(r.dateSelection, e),
|
|
882
|
+
eventSelection: Lt(r.eventSelection, e),
|
|
883
|
+
eventDrag: Mt(r.eventDrag, e),
|
|
884
|
+
eventResize: Ft(r.eventResize, e)
|
|
885
|
+
}, D = Object.assign(Object.assign({}, u), w);
|
|
886
|
+
for (let b of i.pluginHooks.reducers)
|
|
887
|
+
Object.assign(w, b(r, e, D));
|
|
888
|
+
let S = L(r, u), C = L(w, u);
|
|
889
|
+
!S && C ? s.trigger("loading", !0) : S && !C && s.trigger("loading", !1), this.state = w, n.onAction && n.onAction(e);
|
|
890
|
+
}
|
|
891
|
+
updateData() {
|
|
892
|
+
let { props: e, state: n } = this, r = this.data, s = this.computeOptionsData(e.optionOverrides, n.dynamicOptionOverrides, e.calendarApi), a = this.computeCurrentViewData(n.currentViewType, s, e.optionOverrides, n.dynamicOptionOverrides), i = this.data = Object.assign(Object.assign(Object.assign({ viewTitle: this.buildTitle(n.dateProfile, a.options, s.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, s), a), n), l = s.pluginHooks.optionChangeHandlers, o = r && r.calendarOptions, u = s.calendarOptions;
|
|
893
|
+
if (o && o !== u) {
|
|
894
|
+
o.timeZone !== u.timeZone && (n.eventSources = i.eventSources = At(i.eventSources, n.dateProfile, i), n.eventStore = i.eventStore = $(i.eventStore, r.dateEnv, i.dateEnv), n.renderableEventStore = i.renderableEventStore = $(i.renderableEventStore, r.dateEnv, i.dateEnv));
|
|
895
|
+
for (let d in l)
|
|
896
|
+
(this.optionsForHandling.indexOf(d) !== -1 || o[d] !== u[d]) && l[d](u[d], i);
|
|
897
|
+
}
|
|
898
|
+
this.optionsForHandling = [], e.onData && e.onData(i);
|
|
899
|
+
}
|
|
900
|
+
computeOptionsData(e, n, r) {
|
|
901
|
+
if (!this.optionsForRefining.length && e === this.stableOptionOverrides && n === this.stableDynamicOptionOverrides)
|
|
902
|
+
return this.stableCalendarOptionsData;
|
|
903
|
+
let { refinedOptions: s, pluginHooks: a, localeDefaults: i, availableLocaleData: l, extra: o } = this.processRawCalendarOptions(e, n);
|
|
904
|
+
le(o);
|
|
905
|
+
let u = this.buildDateEnv(s.timeZone, s.locale, s.weekNumberCalculation, s.firstDay, s.weekText, a, l, s.defaultRangeSeparator), d = this.buildViewSpecs(a.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, i), f = this.buildTheme(s, a), p = this.parseToolbars(s, this.stableOptionOverrides, f, d, r);
|
|
906
|
+
return this.stableCalendarOptionsData = {
|
|
907
|
+
calendarOptions: s,
|
|
908
|
+
pluginHooks: a,
|
|
909
|
+
dateEnv: u,
|
|
910
|
+
viewSpecs: d,
|
|
911
|
+
theme: f,
|
|
912
|
+
toolbarConfig: p,
|
|
913
|
+
localeDefaults: i,
|
|
914
|
+
availableRawLocales: l.map
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
// always called from behind a memoizer
|
|
918
|
+
processRawCalendarOptions(e, n) {
|
|
919
|
+
let { locales: r, locale: s } = j([
|
|
920
|
+
A,
|
|
921
|
+
e,
|
|
922
|
+
n
|
|
923
|
+
]), a = this.organizeRawLocales(r), i = a.map, l = this.buildLocale(s || a.defaultCode, i).options, o = this.buildPluginHooks(e.plugins || [], sn), u = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Y), J), K), o.listenerRefiners), o.optionRefiners), d = {}, f = j([
|
|
924
|
+
A,
|
|
925
|
+
l,
|
|
926
|
+
e,
|
|
927
|
+
n
|
|
928
|
+
]), p = {}, c = this.currentCalendarOptionsInput, v = this.currentCalendarOptionsRefined, y = !1;
|
|
929
|
+
for (let g in f)
|
|
930
|
+
this.optionsForRefining.indexOf(g) === -1 && (f[g] === c[g] || I[g] && g in c && I[g](c[g], f[g])) ? p[g] = v[g] : u[g] ? (p[g] = u[g](f[g]), y = !0) : d[g] = c[g];
|
|
931
|
+
return y && (this.currentCalendarOptionsInput = f, this.currentCalendarOptionsRefined = p, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = n), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
932
|
+
rawOptions: this.currentCalendarOptionsInput,
|
|
933
|
+
refinedOptions: this.currentCalendarOptionsRefined,
|
|
934
|
+
pluginHooks: o,
|
|
935
|
+
availableLocaleData: a,
|
|
936
|
+
localeDefaults: l,
|
|
937
|
+
extra: d
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
_computeCurrentViewData(e, n, r, s) {
|
|
941
|
+
let a = n.viewSpecs[e];
|
|
942
|
+
if (!a)
|
|
943
|
+
throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);
|
|
944
|
+
let { refinedOptions: i, extra: l } = this.processRawViewOptions(a, n.pluginHooks, n.localeDefaults, r, s);
|
|
945
|
+
le(l);
|
|
946
|
+
let o = this.buildDateProfileGenerator({
|
|
947
|
+
dateProfileGeneratorClass: a.optionDefaults.dateProfileGeneratorClass,
|
|
948
|
+
duration: a.duration,
|
|
949
|
+
durationUnit: a.durationUnit,
|
|
950
|
+
usesMinMaxTime: a.optionDefaults.usesMinMaxTime,
|
|
951
|
+
dateEnv: n.dateEnv,
|
|
952
|
+
calendarApi: this.props.calendarApi,
|
|
953
|
+
slotMinTime: i.slotMinTime,
|
|
954
|
+
slotMaxTime: i.slotMaxTime,
|
|
955
|
+
showNonCurrentDates: i.showNonCurrentDates,
|
|
956
|
+
dayCount: i.dayCount,
|
|
957
|
+
dateAlignment: i.dateAlignment,
|
|
958
|
+
dateIncrement: i.dateIncrement,
|
|
959
|
+
hiddenDays: i.hiddenDays,
|
|
960
|
+
weekends: i.weekends,
|
|
961
|
+
nowInput: i.now,
|
|
962
|
+
validRangeInput: i.validRange,
|
|
963
|
+
visibleRangeInput: i.visibleRange,
|
|
964
|
+
fixedWeekCount: i.fixedWeekCount
|
|
965
|
+
}), u = this.buildViewApi(e, this.getCurrentData, n.dateEnv);
|
|
966
|
+
return { viewSpec: a, options: i, dateProfileGenerator: o, viewApi: u };
|
|
967
|
+
}
|
|
968
|
+
processRawViewOptions(e, n, r, s, a) {
|
|
969
|
+
let i = j([
|
|
970
|
+
A,
|
|
971
|
+
e.optionDefaults,
|
|
972
|
+
r,
|
|
973
|
+
s,
|
|
974
|
+
e.optionOverrides,
|
|
975
|
+
a
|
|
976
|
+
]), l = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Y), J), K), xe), n.listenerRefiners), n.optionRefiners), o = {}, u = this.currentViewOptionsInput, d = this.currentViewOptionsRefined, f = !1, p = {};
|
|
977
|
+
for (let c in i)
|
|
978
|
+
i[c] === u[c] || I[c] && I[c](i[c], u[c]) ? o[c] = d[c] : (i[c] === this.currentCalendarOptionsInput[c] || I[c] && I[c](i[c], this.currentCalendarOptionsInput[c]) ? c in this.currentCalendarOptionsRefined && (o[c] = this.currentCalendarOptionsRefined[c]) : l[c] ? o[c] = l[c](i[c]) : p[c] = i[c], f = !0);
|
|
979
|
+
return f && (this.currentViewOptionsInput = i, this.currentViewOptionsRefined = o), {
|
|
980
|
+
rawOptions: this.currentViewOptionsInput,
|
|
981
|
+
refinedOptions: this.currentViewOptionsRefined,
|
|
982
|
+
extra: p
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function cn(t, e, n, r, s, a, i, l) {
|
|
987
|
+
let o = ve(e || i.defaultCode, i.map);
|
|
988
|
+
return new ze({
|
|
989
|
+
calendarSystem: "gregory",
|
|
990
|
+
timeZone: t,
|
|
991
|
+
namedTimeZoneImpl: a.namedTimeZonedImpl,
|
|
992
|
+
locale: o,
|
|
993
|
+
weekNumberCalculation: n,
|
|
994
|
+
firstDay: r,
|
|
995
|
+
weekText: s,
|
|
996
|
+
cmdFormatter: a.cmdFormatter,
|
|
997
|
+
defaultSeparator: l
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
function dn(t, e) {
|
|
1001
|
+
let n = e.themeClasses[t.themeSystem] || O;
|
|
1002
|
+
return new n(t);
|
|
1003
|
+
}
|
|
1004
|
+
function fn(t) {
|
|
1005
|
+
let e = t.dateProfileGeneratorClass || qe;
|
|
1006
|
+
return new e(t);
|
|
1007
|
+
}
|
|
1008
|
+
function pn(t, e, n) {
|
|
1009
|
+
return new Gt(t, e, n);
|
|
1010
|
+
}
|
|
1011
|
+
function hn(t) {
|
|
1012
|
+
return z(t, (e) => e.ui);
|
|
1013
|
+
}
|
|
1014
|
+
function gn(t, e, n) {
|
|
1015
|
+
let r = { "": e };
|
|
1016
|
+
for (let s in t) {
|
|
1017
|
+
let a = t[s];
|
|
1018
|
+
a.sourceId && n[a.sourceId] && (r[s] = n[a.sourceId]);
|
|
1019
|
+
}
|
|
1020
|
+
return r;
|
|
1021
|
+
}
|
|
1022
|
+
function mn(t) {
|
|
1023
|
+
let { options: e } = t;
|
|
1024
|
+
return {
|
|
1025
|
+
eventUiSingleBase: X({
|
|
1026
|
+
display: e.eventDisplay,
|
|
1027
|
+
editable: e.editable,
|
|
1028
|
+
startEditable: e.eventStartEditable,
|
|
1029
|
+
durationEditable: e.eventDurationEditable,
|
|
1030
|
+
constraint: e.eventConstraint,
|
|
1031
|
+
overlap: typeof e.eventOverlap == "boolean" ? e.eventOverlap : void 0,
|
|
1032
|
+
allow: e.eventAllow,
|
|
1033
|
+
backgroundColor: e.eventBackgroundColor,
|
|
1034
|
+
borderColor: e.eventBorderColor,
|
|
1035
|
+
textColor: e.eventTextColor,
|
|
1036
|
+
color: e.eventColor
|
|
1037
|
+
// classNames: options.eventClassNames // render hook will handle this
|
|
1038
|
+
}, t),
|
|
1039
|
+
selectionConfig: X({
|
|
1040
|
+
constraint: e.selectConstraint,
|
|
1041
|
+
overlap: typeof e.selectOverlap == "boolean" ? e.selectOverlap : void 0,
|
|
1042
|
+
allow: e.selectAllow
|
|
1043
|
+
}, t)
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
function L(t, e) {
|
|
1047
|
+
for (let n of e.pluginHooks.isLoadingFuncs)
|
|
1048
|
+
if (n(t))
|
|
1049
|
+
return !0;
|
|
1050
|
+
return !1;
|
|
1051
|
+
}
|
|
1052
|
+
function vn(t) {
|
|
1053
|
+
return Ze(t.options.businessHours, t);
|
|
1054
|
+
}
|
|
1055
|
+
function le(t, e) {
|
|
1056
|
+
for (let n in t)
|
|
1057
|
+
console.warn(`Unknown option '${n}'` + (e ? ` for view '${e}'` : ""));
|
|
1058
|
+
}
|
|
1059
|
+
class bn extends H {
|
|
1060
|
+
render() {
|
|
1061
|
+
let e = this.props.widgetGroups.map((n) => this.renderWidgetGroup(n));
|
|
1062
|
+
return m("div", { className: "fc-toolbar-chunk" }, ...e);
|
|
1063
|
+
}
|
|
1064
|
+
renderWidgetGroup(e) {
|
|
1065
|
+
let { props: n } = this, { theme: r } = this.context, s = [], a = !0;
|
|
1066
|
+
for (let i of e) {
|
|
1067
|
+
let { buttonName: l, buttonClick: o, buttonText: u, buttonIcon: d, buttonHint: f } = i;
|
|
1068
|
+
if (l === "title")
|
|
1069
|
+
a = !1, s.push(m("h2", { className: "fc-toolbar-title", id: n.titleId }, n.title));
|
|
1070
|
+
else {
|
|
1071
|
+
let p = l === n.activeButton, c = !n.isTodayEnabled && l === "today" || !n.isPrevEnabled && l === "prev" || !n.isNextEnabled && l === "next", v = [`fc-${l}-button`, r.getClass("button")];
|
|
1072
|
+
p && v.push(r.getClass("buttonActive")), s.push(m("button", { type: "button", title: typeof f == "function" ? f(n.navUnit) : f, disabled: c, "aria-pressed": p, className: v.join(" "), onClick: o }, u || (d ? m("span", { className: d, role: "img" }) : "")));
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
if (s.length > 1) {
|
|
1076
|
+
let i = a && r.getClass("buttonGroup") || "";
|
|
1077
|
+
return m("div", { className: i }, ...s);
|
|
1078
|
+
}
|
|
1079
|
+
return s[0];
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
class oe extends H {
|
|
1083
|
+
render() {
|
|
1084
|
+
let { model: e, extraClassName: n } = this.props, r = !1, s, a, i = e.sectionWidgets, l = i.center;
|
|
1085
|
+
return i.left ? (r = !0, s = i.left) : s = i.start, i.right ? (r = !0, a = i.right) : a = i.end, m(
|
|
1086
|
+
"div",
|
|
1087
|
+
{ className: [
|
|
1088
|
+
n || "",
|
|
1089
|
+
"fc-toolbar",
|
|
1090
|
+
r ? "fc-toolbar-ltr" : ""
|
|
1091
|
+
].join(" ") },
|
|
1092
|
+
this.renderSection("start", s || []),
|
|
1093
|
+
this.renderSection("center", l || []),
|
|
1094
|
+
this.renderSection("end", a || [])
|
|
1095
|
+
);
|
|
1096
|
+
}
|
|
1097
|
+
renderSection(e, n) {
|
|
1098
|
+
let { props: r } = this;
|
|
1099
|
+
return m(bn, { key: e, widgetGroups: n, title: r.title, navUnit: r.navUnit, activeButton: r.activeButton, isTodayEnabled: r.isTodayEnabled, isPrevEnabled: r.isPrevEnabled, isNextEnabled: r.isNextEnabled, titleId: r.titleId });
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
class En extends H {
|
|
1103
|
+
constructor() {
|
|
1104
|
+
super(...arguments), this.state = {
|
|
1105
|
+
availableWidth: null
|
|
1106
|
+
}, this.handleEl = (e) => {
|
|
1107
|
+
this.el = e, st(this.props.elRef, e), this.updateAvailableWidth();
|
|
1108
|
+
}, this.handleResize = () => {
|
|
1109
|
+
this.updateAvailableWidth();
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
render() {
|
|
1113
|
+
let { props: e, state: n } = this, { aspectRatio: r } = e, s = [
|
|
1114
|
+
"fc-view-harness",
|
|
1115
|
+
r || e.liquid || e.height ? "fc-view-harness-active" : "fc-view-harness-passive"
|
|
1116
|
+
// let the view do the height
|
|
1117
|
+
], a = "", i = "";
|
|
1118
|
+
return r ? n.availableWidth !== null ? a = n.availableWidth / r : i = `${1 / r * 100}%` : a = e.height || "", m("div", { "aria-labelledby": e.labeledById, ref: this.handleEl, className: s.join(" "), style: { height: a, paddingBottom: i } }, e.children);
|
|
1119
|
+
}
|
|
1120
|
+
componentDidMount() {
|
|
1121
|
+
this.context.addResizeHandler(this.handleResize);
|
|
1122
|
+
}
|
|
1123
|
+
componentWillUnmount() {
|
|
1124
|
+
this.context.removeResizeHandler(this.handleResize);
|
|
1125
|
+
}
|
|
1126
|
+
updateAvailableWidth() {
|
|
1127
|
+
this.el && // needed. but why?
|
|
1128
|
+
this.props.aspectRatio && this.setState({ availableWidth: this.el.offsetWidth });
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
class Rn extends pe {
|
|
1132
|
+
constructor(e) {
|
|
1133
|
+
super(e), this.handleSegClick = (n, r) => {
|
|
1134
|
+
let { component: s } = this, { context: a } = s, i = U(r);
|
|
1135
|
+
if (i && // might be the <div> surrounding the more link
|
|
1136
|
+
s.isValidSegDownEl(n.target)) {
|
|
1137
|
+
let l = lt(n.target, ".fc-event-forced-url"), o = l ? l.querySelector("a[href]").href : "";
|
|
1138
|
+
a.emitter.trigger("eventClick", {
|
|
1139
|
+
el: r,
|
|
1140
|
+
event: new he(s.context, i.eventRange.def, i.eventRange.instance),
|
|
1141
|
+
jsEvent: n,
|
|
1142
|
+
view: a.viewApi
|
|
1143
|
+
}), o && !n.defaultPrevented && (window.location.href = o);
|
|
1144
|
+
}
|
|
1145
|
+
}, this.destroy = ot(
|
|
1146
|
+
e.el,
|
|
1147
|
+
"click",
|
|
1148
|
+
".fc-event",
|
|
1149
|
+
// on both fg and bg events
|
|
1150
|
+
this.handleSegClick
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
class Tn extends pe {
|
|
1155
|
+
constructor(e) {
|
|
1156
|
+
super(e), this.handleEventElRemove = (n) => {
|
|
1157
|
+
n === this.currentSegEl && this.handleSegLeave(null, this.currentSegEl);
|
|
1158
|
+
}, this.handleSegEnter = (n, r) => {
|
|
1159
|
+
U(r) && (this.currentSegEl = r, this.triggerEvent("eventMouseEnter", n, r));
|
|
1160
|
+
}, this.handleSegLeave = (n, r) => {
|
|
1161
|
+
this.currentSegEl && (this.currentSegEl = null, this.triggerEvent("eventMouseLeave", n, r));
|
|
1162
|
+
}, this.removeHoverListeners = ut(
|
|
1163
|
+
e.el,
|
|
1164
|
+
".fc-event",
|
|
1165
|
+
// on both fg and bg events
|
|
1166
|
+
this.handleSegEnter,
|
|
1167
|
+
this.handleSegLeave
|
|
1168
|
+
);
|
|
1169
|
+
}
|
|
1170
|
+
destroy() {
|
|
1171
|
+
this.removeHoverListeners();
|
|
1172
|
+
}
|
|
1173
|
+
triggerEvent(e, n, r) {
|
|
1174
|
+
let { component: s } = this, { context: a } = s, i = U(r);
|
|
1175
|
+
(!n || s.isValidSegDownEl(n.target)) && a.emitter.trigger(e, {
|
|
1176
|
+
el: r,
|
|
1177
|
+
event: new he(a, i.eventRange.def, i.eventRange.instance),
|
|
1178
|
+
jsEvent: n,
|
|
1179
|
+
view: a.viewApi
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
class wn extends ke {
|
|
1184
|
+
constructor() {
|
|
1185
|
+
super(...arguments), this.buildViewContext = E($e), this.buildViewPropTransformers = E(Cn), this.buildToolbarProps = E(Sn), this.headerRef = te(), this.footerRef = te(), this.interactionsStore = {}, this.state = {
|
|
1186
|
+
viewLabelId: Ye()
|
|
1187
|
+
}, this.registerInteractiveComponent = (e, n) => {
|
|
1188
|
+
let r = Je(e, n), i = [
|
|
1189
|
+
Rn,
|
|
1190
|
+
Tn
|
|
1191
|
+
].concat(this.props.pluginHooks.componentInteractions).map((l) => new l(r));
|
|
1192
|
+
this.interactionsStore[e.uid] = i, Q[e.uid] = r;
|
|
1193
|
+
}, this.unregisterInteractiveComponent = (e) => {
|
|
1194
|
+
let n = this.interactionsStore[e.uid];
|
|
1195
|
+
if (n) {
|
|
1196
|
+
for (let r of n)
|
|
1197
|
+
r.destroy();
|
|
1198
|
+
delete this.interactionsStore[e.uid];
|
|
1199
|
+
}
|
|
1200
|
+
delete Q[e.uid];
|
|
1201
|
+
}, this.resizeRunner = new G(() => {
|
|
1202
|
+
this.props.emitter.trigger("_resize", !0), this.props.emitter.trigger("windowResize", { view: this.props.viewApi });
|
|
1203
|
+
}), this.handleWindowResize = (e) => {
|
|
1204
|
+
let { options: n } = this.props;
|
|
1205
|
+
n.handleWindowResize && e.target === window && this.resizeRunner.request(n.windowResizeDelay);
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
/*
|
|
1209
|
+
renders INSIDE of an outer div
|
|
1210
|
+
*/
|
|
1211
|
+
render() {
|
|
1212
|
+
let { props: e } = this, { toolbarConfig: n, options: r } = e, s = this.buildToolbarProps(
|
|
1213
|
+
e.viewSpec,
|
|
1214
|
+
e.dateProfile,
|
|
1215
|
+
e.dateProfileGenerator,
|
|
1216
|
+
e.currentDate,
|
|
1217
|
+
Ke(e.options.now, e.dateEnv),
|
|
1218
|
+
// TODO: use NowTimer????
|
|
1219
|
+
e.viewTitle
|
|
1220
|
+
), a = !1, i = "", l;
|
|
1221
|
+
e.isHeightAuto || e.forPrint ? i = "" : r.height != null ? a = !0 : r.contentHeight != null ? i = r.contentHeight : l = Math.max(r.aspectRatio, 0.5);
|
|
1222
|
+
let o = this.buildViewContext(e.viewSpec, e.viewApi, e.options, e.dateProfileGenerator, e.dateEnv, e.theme, e.pluginHooks, e.dispatch, e.getCurrentData, e.emitter, e.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent), u = n.header && n.header.hasTitle ? this.state.viewLabelId : void 0;
|
|
1223
|
+
return m(
|
|
1224
|
+
fe.Provider,
|
|
1225
|
+
{ value: o },
|
|
1226
|
+
n.header && m(oe, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: n.header, titleId: u }, s)),
|
|
1227
|
+
m(
|
|
1228
|
+
En,
|
|
1229
|
+
{ liquid: a, height: i, aspectRatio: l, labeledById: u },
|
|
1230
|
+
this.renderView(e),
|
|
1231
|
+
this.buildAppendContent()
|
|
1232
|
+
),
|
|
1233
|
+
n.footer && m(oe, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: n.footer, titleId: "" }, s))
|
|
1234
|
+
);
|
|
1235
|
+
}
|
|
1236
|
+
componentDidMount() {
|
|
1237
|
+
let { props: e } = this;
|
|
1238
|
+
this.calendarInteractions = e.pluginHooks.calendarInteractions.map((r) => new r(e)), window.addEventListener("resize", this.handleWindowResize);
|
|
1239
|
+
let { propSetHandlers: n } = e.pluginHooks;
|
|
1240
|
+
for (let r in n)
|
|
1241
|
+
n[r](e[r], e);
|
|
1242
|
+
}
|
|
1243
|
+
componentDidUpdate(e) {
|
|
1244
|
+
let { props: n } = this, { propSetHandlers: r } = n.pluginHooks;
|
|
1245
|
+
for (let s in r)
|
|
1246
|
+
n[s] !== e[s] && r[s](n[s], n);
|
|
1247
|
+
}
|
|
1248
|
+
componentWillUnmount() {
|
|
1249
|
+
window.removeEventListener("resize", this.handleWindowResize), this.resizeRunner.clear();
|
|
1250
|
+
for (let e of this.calendarInteractions)
|
|
1251
|
+
e.destroy();
|
|
1252
|
+
this.props.emitter.trigger("_unmount");
|
|
1253
|
+
}
|
|
1254
|
+
buildAppendContent() {
|
|
1255
|
+
let { props: e } = this, n = e.pluginHooks.viewContainerAppends.map((r) => r(e));
|
|
1256
|
+
return m(ct, {}, ...n);
|
|
1257
|
+
}
|
|
1258
|
+
renderView(e) {
|
|
1259
|
+
let { pluginHooks: n } = e, { viewSpec: r } = e, s = {
|
|
1260
|
+
dateProfile: e.dateProfile,
|
|
1261
|
+
businessHours: e.businessHours,
|
|
1262
|
+
eventStore: e.renderableEventStore,
|
|
1263
|
+
eventUiBases: e.eventUiBases,
|
|
1264
|
+
dateSelection: e.dateSelection,
|
|
1265
|
+
eventSelection: e.eventSelection,
|
|
1266
|
+
eventDrag: e.eventDrag,
|
|
1267
|
+
eventResize: e.eventResize,
|
|
1268
|
+
isHeightAuto: e.isHeightAuto,
|
|
1269
|
+
forPrint: e.forPrint
|
|
1270
|
+
}, a = this.buildViewPropTransformers(n.viewPropsTransformers);
|
|
1271
|
+
for (let l of a)
|
|
1272
|
+
Object.assign(s, l.transform(s, e));
|
|
1273
|
+
let i = r.component;
|
|
1274
|
+
return m(i, Object.assign({}, s));
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
function Sn(t, e, n, r, s, a) {
|
|
1278
|
+
let i = n.build(s, void 0, !1), l = n.buildPrev(e, r, !1), o = n.buildNext(e, r, !1);
|
|
1279
|
+
return {
|
|
1280
|
+
title: a,
|
|
1281
|
+
activeButton: t.type,
|
|
1282
|
+
navUnit: t.singleUnit,
|
|
1283
|
+
isTodayEnabled: i.isValid && !F(e.currentRange, s),
|
|
1284
|
+
isPrevEnabled: l.isValid,
|
|
1285
|
+
isNextEnabled: o.isValid
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
function Cn(t) {
|
|
1289
|
+
return t.map((e) => new e());
|
|
1290
|
+
}
|
|
1291
|
+
class In extends Ce {
|
|
1292
|
+
constructor(e, n = {}) {
|
|
1293
|
+
super(), this.isRendering = !1, this.isRendered = !1, this.currentClassNames = [], this.customContentRenderId = 0, this.handleAction = (r) => {
|
|
1294
|
+
switch (r.type) {
|
|
1295
|
+
case "SET_EVENT_DRAG":
|
|
1296
|
+
case "SET_EVENT_RESIZE":
|
|
1297
|
+
this.renderRunner.tryDrain();
|
|
1298
|
+
}
|
|
1299
|
+
}, this.handleData = (r) => {
|
|
1300
|
+
this.currentData = r, this.renderRunner.request(r.calendarOptions.rerenderDelay);
|
|
1301
|
+
}, this.handleRenderRequest = () => {
|
|
1302
|
+
if (this.isRendering) {
|
|
1303
|
+
this.isRendered = !0;
|
|
1304
|
+
let { currentData: r } = this;
|
|
1305
|
+
Z(() => {
|
|
1306
|
+
ee(m(Ne, { options: r.calendarOptions, theme: r.theme, emitter: r.emitter }, (s, a, i, l) => (this.setClassNames(s), this.setHeight(a), m(
|
|
1307
|
+
He.Provider,
|
|
1308
|
+
{ value: this.customContentRenderId },
|
|
1309
|
+
m(wn, Object.assign({ isHeightAuto: i, forPrint: l }, r))
|
|
1310
|
+
))), this.el);
|
|
1311
|
+
});
|
|
1312
|
+
} else
|
|
1313
|
+
this.isRendered && (this.isRendered = !1, ee(null, this.el), this.setClassNames([]), this.setHeight(""));
|
|
1314
|
+
}, Oe(e), this.el = e, this.renderRunner = new G(this.handleRenderRequest), new un({
|
|
1315
|
+
optionOverrides: n,
|
|
1316
|
+
calendarApi: this,
|
|
1317
|
+
onAction: this.handleAction,
|
|
1318
|
+
onData: this.handleData
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
render() {
|
|
1322
|
+
let e = this.isRendering;
|
|
1323
|
+
e ? this.customContentRenderId += 1 : this.isRendering = !0, this.renderRunner.request(), e && this.updateSize();
|
|
1324
|
+
}
|
|
1325
|
+
destroy() {
|
|
1326
|
+
this.isRendering && (this.isRendering = !1, this.renderRunner.request());
|
|
1327
|
+
}
|
|
1328
|
+
updateSize() {
|
|
1329
|
+
Z(() => {
|
|
1330
|
+
super.updateSize();
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
batchRendering(e) {
|
|
1334
|
+
this.renderRunner.pause("batchRendering"), e(), this.renderRunner.resume("batchRendering");
|
|
1335
|
+
}
|
|
1336
|
+
pauseRendering() {
|
|
1337
|
+
this.renderRunner.pause("pauseRendering");
|
|
1338
|
+
}
|
|
1339
|
+
resumeRendering() {
|
|
1340
|
+
this.renderRunner.resume("pauseRendering", !0);
|
|
1341
|
+
}
|
|
1342
|
+
resetOptions(e, n) {
|
|
1343
|
+
this.currentDataManager.resetOptions(e, n);
|
|
1344
|
+
}
|
|
1345
|
+
setClassNames(e) {
|
|
1346
|
+
if (!M(e, this.currentClassNames)) {
|
|
1347
|
+
let { classList: n } = this.el;
|
|
1348
|
+
for (let r of this.currentClassNames)
|
|
1349
|
+
n.remove(r);
|
|
1350
|
+
for (let r of e)
|
|
1351
|
+
n.add(r);
|
|
1352
|
+
this.currentClassNames = e;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
setHeight(e) {
|
|
1356
|
+
De(this.el, "height", e);
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
export {
|
|
1360
|
+
In as Calendar,
|
|
1361
|
+
Vn as JsonRequestError,
|
|
1362
|
+
P as createPlugin,
|
|
1363
|
+
dt as globalLocales,
|
|
1364
|
+
sn as globalPlugins
|
|
1365
|
+
};
|