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,842 @@
|
|
|
1
|
+
import { createPlugin as ee } from "../core/index.mjs";
|
|
2
|
+
import { bH as te, ar as ie, at as ne, as as se, au as re, Z as I, bG as Y, b_ as le, aw as N, ax as V, cu as oe, _ as A, aV as q, $ as S, a0 as m, bX as F, bZ as k, I as R, w as M, a7 as ae, q as he, aA as z, d as O, aR as ce, n as E, F as G, bI as U, aP as x, b2 as de, aO as ge, b6 as B, aG as ue, aE as pe, aH as ve, aI as fe, a as Ee, b9 as me, bf as Se, av as De, bc as we, b3 as ye, bd as be, b5 as Te, aF as Re, bb as Me } from "../core/internal-common.mjs";
|
|
3
|
+
U.touchMouseIgnoreWait = 500;
|
|
4
|
+
let H = 0, C = 0, X = !1;
|
|
5
|
+
class Z {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
this.subjectEl = null, this.selector = "", this.handleSelector = "", this.shouldIgnoreMove = !1, this.shouldWatchScroll = !0, this.isDragging = !1, this.isTouchDragging = !1, this.wasTouchScroll = !1, this.handleMouseDown = (t) => {
|
|
8
|
+
if (!this.shouldIgnoreMouse() && Ce(t) && this.tryStart(t)) {
|
|
9
|
+
let i = this.createEventFromMouse(t, !0);
|
|
10
|
+
this.emitter.trigger("pointerdown", i), this.initScrollWatch(i), this.shouldIgnoreMove || document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("mouseup", this.handleMouseUp);
|
|
11
|
+
}
|
|
12
|
+
}, this.handleMouseMove = (t) => {
|
|
13
|
+
let i = this.createEventFromMouse(t);
|
|
14
|
+
this.recordCoords(i), this.emitter.trigger("pointermove", i);
|
|
15
|
+
}, this.handleMouseUp = (t) => {
|
|
16
|
+
document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("mouseup", this.handleMouseUp), this.emitter.trigger("pointerup", this.createEventFromMouse(t)), this.cleanup();
|
|
17
|
+
}, this.handleTouchStart = (t) => {
|
|
18
|
+
if (this.tryStart(t)) {
|
|
19
|
+
this.isTouchDragging = !0;
|
|
20
|
+
let i = this.createEventFromTouch(t, !0);
|
|
21
|
+
this.emitter.trigger("pointerdown", i), this.initScrollWatch(i);
|
|
22
|
+
let n = t.target;
|
|
23
|
+
this.shouldIgnoreMove || n.addEventListener("touchmove", this.handleTouchMove), n.addEventListener("touchend", this.handleTouchEnd), n.addEventListener("touchcancel", this.handleTouchEnd), window.addEventListener("scroll", this.handleTouchScroll, !0);
|
|
24
|
+
}
|
|
25
|
+
}, this.handleTouchMove = (t) => {
|
|
26
|
+
let i = this.createEventFromTouch(t);
|
|
27
|
+
this.recordCoords(i), this.emitter.trigger("pointermove", i);
|
|
28
|
+
}, this.handleTouchEnd = (t) => {
|
|
29
|
+
if (this.isDragging) {
|
|
30
|
+
let i = t.target;
|
|
31
|
+
i.removeEventListener("touchmove", this.handleTouchMove), i.removeEventListener("touchend", this.handleTouchEnd), i.removeEventListener("touchcancel", this.handleTouchEnd), window.removeEventListener("scroll", this.handleTouchScroll, !0), this.emitter.trigger("pointerup", this.createEventFromTouch(t)), this.cleanup(), this.isTouchDragging = !1, Ie();
|
|
32
|
+
}
|
|
33
|
+
}, this.handleTouchScroll = () => {
|
|
34
|
+
this.wasTouchScroll = !0;
|
|
35
|
+
}, this.handleScroll = (t) => {
|
|
36
|
+
if (!this.shouldIgnoreMove) {
|
|
37
|
+
let i = window.scrollX - this.prevScrollX + this.prevPageX, n = window.scrollY - this.prevScrollY + this.prevPageY;
|
|
38
|
+
this.emitter.trigger("pointermove", {
|
|
39
|
+
origEvent: t,
|
|
40
|
+
isTouch: this.isTouchDragging,
|
|
41
|
+
subjectEl: this.subjectEl,
|
|
42
|
+
pageX: i,
|
|
43
|
+
pageY: n,
|
|
44
|
+
deltaX: i - this.origPageX,
|
|
45
|
+
deltaY: n - this.origPageY
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}, this.containerEl = e, this.emitter = new G(), e.addEventListener("mousedown", this.handleMouseDown), e.addEventListener("touchstart", this.handleTouchStart, { passive: !0 }), Pe();
|
|
49
|
+
}
|
|
50
|
+
destroy() {
|
|
51
|
+
this.containerEl.removeEventListener("mousedown", this.handleMouseDown), this.containerEl.removeEventListener("touchstart", this.handleTouchStart, { passive: !0 }), je();
|
|
52
|
+
}
|
|
53
|
+
tryStart(e) {
|
|
54
|
+
let t = this.querySubjectEl(e), i = e.target;
|
|
55
|
+
return t && (!this.handleSelector || S(i, this.handleSelector)) ? (this.subjectEl = t, this.isDragging = !0, this.wasTouchScroll = !1, !0) : !1;
|
|
56
|
+
}
|
|
57
|
+
cleanup() {
|
|
58
|
+
X = !1, this.isDragging = !1, this.subjectEl = null, this.destroyScrollWatch();
|
|
59
|
+
}
|
|
60
|
+
querySubjectEl(e) {
|
|
61
|
+
return this.selector ? S(e.target, this.selector) : this.containerEl;
|
|
62
|
+
}
|
|
63
|
+
shouldIgnoreMouse() {
|
|
64
|
+
return H || this.isTouchDragging;
|
|
65
|
+
}
|
|
66
|
+
// can be called by user of this class, to cancel touch-based scrolling for the current drag
|
|
67
|
+
cancelTouchScroll() {
|
|
68
|
+
this.isDragging && (X = !0);
|
|
69
|
+
}
|
|
70
|
+
// Scrolling that simulates pointermoves
|
|
71
|
+
// ----------------------------------------------------------------------------------------------------
|
|
72
|
+
initScrollWatch(e) {
|
|
73
|
+
this.shouldWatchScroll && (this.recordCoords(e), window.addEventListener("scroll", this.handleScroll, !0));
|
|
74
|
+
}
|
|
75
|
+
recordCoords(e) {
|
|
76
|
+
this.shouldWatchScroll && (this.prevPageX = e.pageX, this.prevPageY = e.pageY, this.prevScrollX = window.scrollX, this.prevScrollY = window.scrollY);
|
|
77
|
+
}
|
|
78
|
+
destroyScrollWatch() {
|
|
79
|
+
this.shouldWatchScroll && window.removeEventListener("scroll", this.handleScroll, !0);
|
|
80
|
+
}
|
|
81
|
+
// Event Normalization
|
|
82
|
+
// ----------------------------------------------------------------------------------------------------
|
|
83
|
+
createEventFromMouse(e, t) {
|
|
84
|
+
let i = 0, n = 0;
|
|
85
|
+
return t ? (this.origPageX = e.pageX, this.origPageY = e.pageY) : (i = e.pageX - this.origPageX, n = e.pageY - this.origPageY), {
|
|
86
|
+
origEvent: e,
|
|
87
|
+
isTouch: !1,
|
|
88
|
+
subjectEl: this.subjectEl,
|
|
89
|
+
pageX: e.pageX,
|
|
90
|
+
pageY: e.pageY,
|
|
91
|
+
deltaX: i,
|
|
92
|
+
deltaY: n
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
createEventFromTouch(e, t) {
|
|
96
|
+
let i = e.touches, n, l, s = 0, r = 0;
|
|
97
|
+
return i && i.length ? (n = i[0].pageX, l = i[0].pageY) : (n = e.pageX, l = e.pageY), t ? (this.origPageX = n, this.origPageY = l) : (s = n - this.origPageX, r = l - this.origPageY), {
|
|
98
|
+
origEvent: e,
|
|
99
|
+
isTouch: !0,
|
|
100
|
+
subjectEl: this.subjectEl,
|
|
101
|
+
pageX: n,
|
|
102
|
+
pageY: l,
|
|
103
|
+
deltaX: s,
|
|
104
|
+
deltaY: r
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function Ce(h) {
|
|
109
|
+
return h.button === 0 && !h.ctrlKey;
|
|
110
|
+
}
|
|
111
|
+
function Ie() {
|
|
112
|
+
H += 1, setTimeout(() => {
|
|
113
|
+
H -= 1;
|
|
114
|
+
}, U.touchMouseIgnoreWait);
|
|
115
|
+
}
|
|
116
|
+
function Pe() {
|
|
117
|
+
C += 1, C === 1 && window.addEventListener("touchmove", Q, { passive: !1 });
|
|
118
|
+
}
|
|
119
|
+
function je() {
|
|
120
|
+
C -= 1, C || window.removeEventListener("touchmove", Q, { passive: !1 });
|
|
121
|
+
}
|
|
122
|
+
function Q(h) {
|
|
123
|
+
X && h.preventDefault();
|
|
124
|
+
}
|
|
125
|
+
class Le {
|
|
126
|
+
constructor() {
|
|
127
|
+
this.isVisible = !1, this.sourceEl = null, this.mirrorEl = null, this.sourceElRect = null, this.parentNode = document.body, this.zIndex = 9999, this.revertDuration = 0;
|
|
128
|
+
}
|
|
129
|
+
start(e, t, i) {
|
|
130
|
+
this.sourceEl = e, this.sourceElRect = this.sourceEl.getBoundingClientRect(), this.origScreenX = t - window.scrollX, this.origScreenY = i - window.scrollY, this.deltaX = 0, this.deltaY = 0, this.updateElPosition();
|
|
131
|
+
}
|
|
132
|
+
handleMove(e, t) {
|
|
133
|
+
this.deltaX = e - window.scrollX - this.origScreenX, this.deltaY = t - window.scrollY - this.origScreenY, this.updateElPosition();
|
|
134
|
+
}
|
|
135
|
+
// can be called before start
|
|
136
|
+
setIsVisible(e) {
|
|
137
|
+
e ? this.isVisible || (this.mirrorEl && (this.mirrorEl.style.display = ""), this.isVisible = e, this.updateElPosition()) : this.isVisible && (this.mirrorEl && (this.mirrorEl.style.display = "none"), this.isVisible = e);
|
|
138
|
+
}
|
|
139
|
+
// always async
|
|
140
|
+
stop(e, t) {
|
|
141
|
+
let i = () => {
|
|
142
|
+
this.cleanup(), t();
|
|
143
|
+
};
|
|
144
|
+
e && this.mirrorEl && this.isVisible && this.revertDuration && // if 0, transition won't work
|
|
145
|
+
(this.deltaX || this.deltaY) ? this.doRevertAnimation(i, this.revertDuration) : setTimeout(i, 0);
|
|
146
|
+
}
|
|
147
|
+
doRevertAnimation(e, t) {
|
|
148
|
+
let i = this.mirrorEl, n = this.sourceEl.getBoundingClientRect();
|
|
149
|
+
i.style.transition = "top " + t + "ms,left " + t + "ms", x(i, {
|
|
150
|
+
left: n.left,
|
|
151
|
+
top: n.top
|
|
152
|
+
}), de(i, () => {
|
|
153
|
+
i.style.transition = "", e();
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
cleanup() {
|
|
157
|
+
this.mirrorEl && (ge(this.mirrorEl), this.mirrorEl = null), this.sourceEl = null;
|
|
158
|
+
}
|
|
159
|
+
updateElPosition() {
|
|
160
|
+
this.sourceEl && this.isVisible && x(this.getMirrorEl(), {
|
|
161
|
+
left: this.sourceElRect.left + this.deltaX,
|
|
162
|
+
top: this.sourceElRect.top + this.deltaY
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
getMirrorEl() {
|
|
166
|
+
let e = this.sourceElRect, t = this.mirrorEl;
|
|
167
|
+
return t || (t = this.mirrorEl = this.sourceEl.cloneNode(!0), t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.style.pointerEvents = "none", t.classList.add("fc-event-dragging"), x(t, {
|
|
168
|
+
position: "fixed",
|
|
169
|
+
zIndex: this.zIndex,
|
|
170
|
+
visibility: "",
|
|
171
|
+
boxSizing: "border-box",
|
|
172
|
+
width: e.right - e.left,
|
|
173
|
+
height: e.bottom - e.top,
|
|
174
|
+
right: "auto",
|
|
175
|
+
bottom: "auto",
|
|
176
|
+
margin: 0
|
|
177
|
+
}), this.parentNode.appendChild(t)), t;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
class $ extends Me {
|
|
181
|
+
constructor(e, t) {
|
|
182
|
+
super(), this.handleScroll = () => {
|
|
183
|
+
this.scrollTop = this.scrollController.getScrollTop(), this.scrollLeft = this.scrollController.getScrollLeft(), this.handleScrollChange();
|
|
184
|
+
}, this.scrollController = e, this.doesListening = t, this.scrollTop = this.origScrollTop = e.getScrollTop(), this.scrollLeft = this.origScrollLeft = e.getScrollLeft(), this.scrollWidth = e.getScrollWidth(), this.scrollHeight = e.getScrollHeight(), this.clientWidth = e.getClientWidth(), this.clientHeight = e.getClientHeight(), this.clientRect = this.computeClientRect(), this.doesListening && this.getEventTarget().addEventListener("scroll", this.handleScroll);
|
|
185
|
+
}
|
|
186
|
+
destroy() {
|
|
187
|
+
this.doesListening && this.getEventTarget().removeEventListener("scroll", this.handleScroll);
|
|
188
|
+
}
|
|
189
|
+
getScrollTop() {
|
|
190
|
+
return this.scrollTop;
|
|
191
|
+
}
|
|
192
|
+
getScrollLeft() {
|
|
193
|
+
return this.scrollLeft;
|
|
194
|
+
}
|
|
195
|
+
setScrollTop(e) {
|
|
196
|
+
this.scrollController.setScrollTop(e), this.doesListening || (this.scrollTop = Math.max(Math.min(e, this.getMaxScrollTop()), 0), this.handleScrollChange());
|
|
197
|
+
}
|
|
198
|
+
setScrollLeft(e) {
|
|
199
|
+
this.scrollController.setScrollLeft(e), this.doesListening || (this.scrollLeft = Math.max(Math.min(e, this.getMaxScrollLeft()), 0), this.handleScrollChange());
|
|
200
|
+
}
|
|
201
|
+
getClientWidth() {
|
|
202
|
+
return this.clientWidth;
|
|
203
|
+
}
|
|
204
|
+
getClientHeight() {
|
|
205
|
+
return this.clientHeight;
|
|
206
|
+
}
|
|
207
|
+
getScrollWidth() {
|
|
208
|
+
return this.scrollWidth;
|
|
209
|
+
}
|
|
210
|
+
getScrollHeight() {
|
|
211
|
+
return this.scrollHeight;
|
|
212
|
+
}
|
|
213
|
+
handleScrollChange() {
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
class K extends $ {
|
|
217
|
+
constructor(e, t) {
|
|
218
|
+
super(new we(e), t);
|
|
219
|
+
}
|
|
220
|
+
getEventTarget() {
|
|
221
|
+
return this.scrollController.el;
|
|
222
|
+
}
|
|
223
|
+
computeClientRect() {
|
|
224
|
+
return ye(this.scrollController.el);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
class xe extends $ {
|
|
228
|
+
constructor(e) {
|
|
229
|
+
super(new be(), e);
|
|
230
|
+
}
|
|
231
|
+
getEventTarget() {
|
|
232
|
+
return window;
|
|
233
|
+
}
|
|
234
|
+
computeClientRect() {
|
|
235
|
+
return {
|
|
236
|
+
left: this.scrollLeft,
|
|
237
|
+
right: this.scrollLeft + this.clientWidth,
|
|
238
|
+
top: this.scrollTop,
|
|
239
|
+
bottom: this.scrollTop + this.clientHeight
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
// the window is the only scroll object that changes it's rectangle relative
|
|
243
|
+
// to the document's topleft as it scrolls
|
|
244
|
+
handleScrollChange() {
|
|
245
|
+
this.clientRect = this.computeClientRect();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
const W = typeof performance == "function" ? performance.now : Date.now;
|
|
249
|
+
class Ae {
|
|
250
|
+
constructor() {
|
|
251
|
+
this.isEnabled = !0, this.scrollQuery = [window, ".fc-scroller"], this.edgeThreshold = 50, this.maxVelocity = 300, this.pointerScreenX = null, this.pointerScreenY = null, this.isAnimating = !1, this.scrollCaches = null, this.everMovedUp = !1, this.everMovedDown = !1, this.everMovedLeft = !1, this.everMovedRight = !1, this.animate = () => {
|
|
252
|
+
if (this.isAnimating) {
|
|
253
|
+
let e = this.computeBestEdge(this.pointerScreenX + window.scrollX, this.pointerScreenY + window.scrollY);
|
|
254
|
+
if (e) {
|
|
255
|
+
let t = W();
|
|
256
|
+
this.handleSide(e, (t - this.msSinceRequest) / 1e3), this.requestAnimation(t);
|
|
257
|
+
} else
|
|
258
|
+
this.isAnimating = !1;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
start(e, t, i) {
|
|
263
|
+
this.isEnabled && (this.scrollCaches = this.buildCaches(i), this.pointerScreenX = null, this.pointerScreenY = null, this.everMovedUp = !1, this.everMovedDown = !1, this.everMovedLeft = !1, this.everMovedRight = !1, this.handleMove(e, t));
|
|
264
|
+
}
|
|
265
|
+
handleMove(e, t) {
|
|
266
|
+
if (this.isEnabled) {
|
|
267
|
+
let i = e - window.scrollX, n = t - window.scrollY, l = this.pointerScreenY === null ? 0 : n - this.pointerScreenY, s = this.pointerScreenX === null ? 0 : i - this.pointerScreenX;
|
|
268
|
+
l < 0 ? this.everMovedUp = !0 : l > 0 && (this.everMovedDown = !0), s < 0 ? this.everMovedLeft = !0 : s > 0 && (this.everMovedRight = !0), this.pointerScreenX = i, this.pointerScreenY = n, this.isAnimating || (this.isAnimating = !0, this.requestAnimation(W()));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
stop() {
|
|
272
|
+
if (this.isEnabled) {
|
|
273
|
+
this.isAnimating = !1;
|
|
274
|
+
for (let e of this.scrollCaches)
|
|
275
|
+
e.destroy();
|
|
276
|
+
this.scrollCaches = null;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
requestAnimation(e) {
|
|
280
|
+
this.msSinceRequest = e, requestAnimationFrame(this.animate);
|
|
281
|
+
}
|
|
282
|
+
handleSide(e, t) {
|
|
283
|
+
let { scrollCache: i } = e, { edgeThreshold: n } = this, l = n - e.distance, s = (
|
|
284
|
+
// the closer to the edge, the faster we scroll
|
|
285
|
+
l * l / (n * n) * // quadratic
|
|
286
|
+
this.maxVelocity * t
|
|
287
|
+
), r = 1;
|
|
288
|
+
switch (e.name) {
|
|
289
|
+
case "left":
|
|
290
|
+
r = -1;
|
|
291
|
+
case "right":
|
|
292
|
+
i.setScrollLeft(i.getScrollLeft() + s * r);
|
|
293
|
+
break;
|
|
294
|
+
case "top":
|
|
295
|
+
r = -1;
|
|
296
|
+
case "bottom":
|
|
297
|
+
i.setScrollTop(i.getScrollTop() + s * r);
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// left/top are relative to document topleft
|
|
302
|
+
computeBestEdge(e, t) {
|
|
303
|
+
let { edgeThreshold: i } = this, n = null, l = this.scrollCaches || [];
|
|
304
|
+
for (let s of l) {
|
|
305
|
+
let r = s.clientRect, o = e - r.left, a = r.right - e, d = t - r.top, c = r.bottom - t;
|
|
306
|
+
o >= 0 && a >= 0 && d >= 0 && c >= 0 && (d <= i && this.everMovedUp && s.canScrollUp() && (!n || n.distance > d) && (n = { scrollCache: s, name: "top", distance: d }), c <= i && this.everMovedDown && s.canScrollDown() && (!n || n.distance > c) && (n = { scrollCache: s, name: "bottom", distance: c }), o <= i && this.everMovedLeft && s.canScrollLeft() && (!n || n.distance > o) && (n = { scrollCache: s, name: "left", distance: o }), a <= i && this.everMovedRight && s.canScrollRight() && (!n || n.distance > a) && (n = { scrollCache: s, name: "right", distance: a }));
|
|
307
|
+
}
|
|
308
|
+
return n;
|
|
309
|
+
}
|
|
310
|
+
buildCaches(e) {
|
|
311
|
+
return this.queryScrollEls(e).map((t) => t === window ? new xe(!1) : new K(t, !1));
|
|
312
|
+
}
|
|
313
|
+
queryScrollEls(e) {
|
|
314
|
+
let t = [];
|
|
315
|
+
for (let i of this.scrollQuery)
|
|
316
|
+
typeof i == "object" ? t.push(i) : t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));
|
|
317
|
+
return t;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
class w extends te {
|
|
321
|
+
constructor(e, t) {
|
|
322
|
+
super(e), this.containerEl = e, this.delay = null, this.minDistance = 0, this.touchScrollAllowed = !0, this.mirrorNeedsRevert = !1, this.isInteracting = !1, this.isDragging = !1, this.isDelayEnded = !1, this.isDistanceSurpassed = !1, this.delayTimeoutId = null, this.onPointerDown = (n) => {
|
|
323
|
+
this.isDragging || (this.isInteracting = !0, this.isDelayEnded = !1, this.isDistanceSurpassed = !1, ie(document.body), ne(document.body), n.isTouch || n.origEvent.preventDefault(), this.emitter.trigger("pointerdown", n), this.isInteracting && // not destroyed via pointerdown handler
|
|
324
|
+
!this.pointer.shouldIgnoreMove && (this.mirror.setIsVisible(!1), this.mirror.start(n.subjectEl, n.pageX, n.pageY), this.startDelay(n), this.minDistance || this.handleDistanceSurpassed(n)));
|
|
325
|
+
}, this.onPointerMove = (n) => {
|
|
326
|
+
if (this.isInteracting) {
|
|
327
|
+
if (this.emitter.trigger("pointermove", n), !this.isDistanceSurpassed) {
|
|
328
|
+
let l = this.minDistance, s, { deltaX: r, deltaY: o } = n;
|
|
329
|
+
s = r * r + o * o, s >= l * l && this.handleDistanceSurpassed(n);
|
|
330
|
+
}
|
|
331
|
+
this.isDragging && (n.origEvent.type !== "scroll" && (this.mirror.handleMove(n.pageX, n.pageY), this.autoScroller.handleMove(n.pageX, n.pageY)), this.emitter.trigger("dragmove", n));
|
|
332
|
+
}
|
|
333
|
+
}, this.onPointerUp = (n) => {
|
|
334
|
+
this.isInteracting && (this.isInteracting = !1, se(document.body), re(document.body), this.emitter.trigger("pointerup", n), this.isDragging && (this.autoScroller.stop(), this.tryStopDrag(n)), this.delayTimeoutId && (clearTimeout(this.delayTimeoutId), this.delayTimeoutId = null));
|
|
335
|
+
};
|
|
336
|
+
let i = this.pointer = new Z(e);
|
|
337
|
+
i.emitter.on("pointerdown", this.onPointerDown), i.emitter.on("pointermove", this.onPointerMove), i.emitter.on("pointerup", this.onPointerUp), t && (i.selector = t), this.mirror = new Le(), this.autoScroller = new Ae();
|
|
338
|
+
}
|
|
339
|
+
destroy() {
|
|
340
|
+
this.pointer.destroy(), this.onPointerUp({});
|
|
341
|
+
}
|
|
342
|
+
startDelay(e) {
|
|
343
|
+
typeof this.delay == "number" ? this.delayTimeoutId = setTimeout(() => {
|
|
344
|
+
this.delayTimeoutId = null, this.handleDelayEnd(e);
|
|
345
|
+
}, this.delay) : this.handleDelayEnd(e);
|
|
346
|
+
}
|
|
347
|
+
handleDelayEnd(e) {
|
|
348
|
+
this.isDelayEnded = !0, this.tryStartDrag(e);
|
|
349
|
+
}
|
|
350
|
+
handleDistanceSurpassed(e) {
|
|
351
|
+
this.isDistanceSurpassed = !0, this.tryStartDrag(e);
|
|
352
|
+
}
|
|
353
|
+
tryStartDrag(e) {
|
|
354
|
+
this.isDelayEnded && this.isDistanceSurpassed && (!this.pointer.wasTouchScroll || this.touchScrollAllowed) && (this.isDragging = !0, this.mirrorNeedsRevert = !1, this.autoScroller.start(e.pageX, e.pageY, this.containerEl), this.emitter.trigger("dragstart", e), this.touchScrollAllowed === !1 && this.pointer.cancelTouchScroll());
|
|
355
|
+
}
|
|
356
|
+
tryStopDrag(e) {
|
|
357
|
+
this.mirror.stop(this.mirrorNeedsRevert, this.stopDrag.bind(this, e));
|
|
358
|
+
}
|
|
359
|
+
stopDrag(e) {
|
|
360
|
+
this.isDragging = !1, this.emitter.trigger("dragend", e);
|
|
361
|
+
}
|
|
362
|
+
// fill in the implementations...
|
|
363
|
+
setIgnoreMove(e) {
|
|
364
|
+
this.pointer.shouldIgnoreMove = e;
|
|
365
|
+
}
|
|
366
|
+
setMirrorIsVisible(e) {
|
|
367
|
+
this.mirror.setIsVisible(e);
|
|
368
|
+
}
|
|
369
|
+
setMirrorNeedsRevert(e) {
|
|
370
|
+
this.mirrorNeedsRevert = e;
|
|
371
|
+
}
|
|
372
|
+
setAutoScrollEnabled(e) {
|
|
373
|
+
this.autoScroller.isEnabled = e;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
class He {
|
|
377
|
+
constructor(e) {
|
|
378
|
+
this.el = e, this.origRect = B(e), this.scrollCaches = Te(e).map((t) => new K(t, !0));
|
|
379
|
+
}
|
|
380
|
+
destroy() {
|
|
381
|
+
for (let e of this.scrollCaches)
|
|
382
|
+
e.destroy();
|
|
383
|
+
}
|
|
384
|
+
computeLeft() {
|
|
385
|
+
let e = this.origRect.left;
|
|
386
|
+
for (let t of this.scrollCaches)
|
|
387
|
+
e += t.origScrollLeft - t.getScrollLeft();
|
|
388
|
+
return e;
|
|
389
|
+
}
|
|
390
|
+
computeTop() {
|
|
391
|
+
let e = this.origRect.top;
|
|
392
|
+
for (let t of this.scrollCaches)
|
|
393
|
+
e += t.origScrollTop - t.getScrollTop();
|
|
394
|
+
return e;
|
|
395
|
+
}
|
|
396
|
+
isWithinClipping(e, t) {
|
|
397
|
+
let i = { left: e, top: t };
|
|
398
|
+
for (let n of this.scrollCaches)
|
|
399
|
+
if (!Xe(n.getEventTarget()) && !Re(i, n.clientRect))
|
|
400
|
+
return !1;
|
|
401
|
+
return !0;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function Xe(h) {
|
|
405
|
+
let e = h.tagName;
|
|
406
|
+
return e === "HTML" || e === "BODY";
|
|
407
|
+
}
|
|
408
|
+
class P {
|
|
409
|
+
constructor(e, t) {
|
|
410
|
+
this.useSubjectCenter = !1, this.requireInitial = !0, this.disablePointCheck = !1, this.initialHit = null, this.movingHit = null, this.finalHit = null, this.handlePointerDown = (i) => {
|
|
411
|
+
let { dragging: n } = this;
|
|
412
|
+
this.initialHit = null, this.movingHit = null, this.finalHit = null, this.prepareHits(), this.processFirstCoord(i), this.initialHit || !this.requireInitial ? (n.setIgnoreMove(!1), this.emitter.trigger("pointerdown", i)) : n.setIgnoreMove(!0);
|
|
413
|
+
}, this.handleDragStart = (i) => {
|
|
414
|
+
this.emitter.trigger("dragstart", i), this.handleMove(i, !0);
|
|
415
|
+
}, this.handleDragMove = (i) => {
|
|
416
|
+
this.emitter.trigger("dragmove", i), this.handleMove(i);
|
|
417
|
+
}, this.handlePointerUp = (i) => {
|
|
418
|
+
this.releaseHits(), this.emitter.trigger("pointerup", i);
|
|
419
|
+
}, this.handleDragEnd = (i) => {
|
|
420
|
+
this.movingHit && this.emitter.trigger("hitupdate", null, !0, i), this.finalHit = this.movingHit, this.movingHit = null, this.emitter.trigger("dragend", i);
|
|
421
|
+
}, this.droppableStore = t, e.emitter.on("pointerdown", this.handlePointerDown), e.emitter.on("dragstart", this.handleDragStart), e.emitter.on("dragmove", this.handleDragMove), e.emitter.on("pointerup", this.handlePointerUp), e.emitter.on("dragend", this.handleDragEnd), this.dragging = e, this.emitter = new G();
|
|
422
|
+
}
|
|
423
|
+
// sets initialHit
|
|
424
|
+
// sets coordAdjust
|
|
425
|
+
processFirstCoord(e) {
|
|
426
|
+
let t = { left: e.pageX, top: e.pageY }, i = t, n = e.subjectEl, l;
|
|
427
|
+
n instanceof HTMLElement && (l = B(n), i = ue(i, l));
|
|
428
|
+
let s = this.initialHit = this.queryHitForOffset(i.left, i.top);
|
|
429
|
+
if (s) {
|
|
430
|
+
if (this.useSubjectCenter && l) {
|
|
431
|
+
let r = pe(l, s.rect);
|
|
432
|
+
r && (i = ve(r));
|
|
433
|
+
}
|
|
434
|
+
this.coordAdjust = fe(i, t);
|
|
435
|
+
} else
|
|
436
|
+
this.coordAdjust = { left: 0, top: 0 };
|
|
437
|
+
}
|
|
438
|
+
handleMove(e, t) {
|
|
439
|
+
let i = this.queryHitForOffset(e.pageX + this.coordAdjust.left, e.pageY + this.coordAdjust.top);
|
|
440
|
+
(t || !j(this.movingHit, i)) && (this.movingHit = i, this.emitter.trigger("hitupdate", i, !1, e));
|
|
441
|
+
}
|
|
442
|
+
prepareHits() {
|
|
443
|
+
this.offsetTrackers = Ee(this.droppableStore, (e) => (e.component.prepareHits(), new He(e.el)));
|
|
444
|
+
}
|
|
445
|
+
releaseHits() {
|
|
446
|
+
let { offsetTrackers: e } = this;
|
|
447
|
+
for (let t in e)
|
|
448
|
+
e[t].destroy();
|
|
449
|
+
this.offsetTrackers = {};
|
|
450
|
+
}
|
|
451
|
+
queryHitForOffset(e, t) {
|
|
452
|
+
let { droppableStore: i, offsetTrackers: n } = this, l = null;
|
|
453
|
+
for (let s in i) {
|
|
454
|
+
let r = i[s].component, o = n[s];
|
|
455
|
+
if (o && // wasn't destroyed mid-drag
|
|
456
|
+
o.isWithinClipping(e, t)) {
|
|
457
|
+
let a = o.computeLeft(), d = o.computeTop(), c = e - a, g = t - d, { origRect: p } = o, f = p.right - p.left, u = p.bottom - p.top;
|
|
458
|
+
if (
|
|
459
|
+
// must be within the element's bounds
|
|
460
|
+
c >= 0 && c < f && g >= 0 && g < u
|
|
461
|
+
) {
|
|
462
|
+
let v = r.queryHit(c, g, f, u);
|
|
463
|
+
v && // make sure the hit is within activeRange, meaning it's not a dead cell
|
|
464
|
+
me(v.dateProfile.activeRange, v.dateSpan.range) && // Ensure the component we are querying for the hit is accessibly my the pointer
|
|
465
|
+
// Prevents obscured calendars (ex: under a modal dialog) from accepting hit
|
|
466
|
+
// https://github.com/fullcalendar/fullcalendar/issues/5026
|
|
467
|
+
(this.disablePointCheck || o.el.contains(o.el.getRootNode().elementFromPoint(
|
|
468
|
+
// add-back origins to get coordinate relative to top-left of window viewport
|
|
469
|
+
c + a - window.scrollX,
|
|
470
|
+
g + d - window.scrollY
|
|
471
|
+
))) && (!l || v.layer > l.layer) && (v.componentId = s, v.context = r.context, v.rect.left += a, v.rect.right += a, v.rect.top += d, v.rect.bottom += d, l = v);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return l;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function j(h, e) {
|
|
479
|
+
return !h && !e ? !0 : !!h != !!e ? !1 : Se(h.dateSpan, e.dateSpan);
|
|
480
|
+
}
|
|
481
|
+
function J(h, e) {
|
|
482
|
+
let t = {};
|
|
483
|
+
for (let i of e.pluginHooks.datePointTransforms)
|
|
484
|
+
Object.assign(t, i(h, e));
|
|
485
|
+
return Object.assign(t, Ye(h, e.dateEnv)), t;
|
|
486
|
+
}
|
|
487
|
+
function Ye(h, e) {
|
|
488
|
+
return {
|
|
489
|
+
date: e.toDate(h.range.start),
|
|
490
|
+
dateStr: e.formatIso(h.range.start, { omitTime: h.allDay }),
|
|
491
|
+
allDay: h.allDay
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
class Ne extends I {
|
|
495
|
+
constructor(e) {
|
|
496
|
+
super(e), this.handlePointerDown = (i) => {
|
|
497
|
+
let { dragging: n } = this, l = i.origEvent.target;
|
|
498
|
+
n.setIgnoreMove(!this.component.isValidDateDownEl(l));
|
|
499
|
+
}, this.handleDragEnd = (i) => {
|
|
500
|
+
let { component: n } = this, { pointer: l } = this.dragging;
|
|
501
|
+
if (!l.wasTouchScroll) {
|
|
502
|
+
let { initialHit: s, finalHit: r } = this.hitDragging;
|
|
503
|
+
if (s && r && j(s, r)) {
|
|
504
|
+
let { context: o } = n, a = Object.assign(Object.assign({}, J(s.dateSpan, o)), { dayEl: s.dayEl, jsEvent: i.origEvent, view: o.viewApi || o.calendarApi.view });
|
|
505
|
+
o.emitter.trigger("dateClick", a);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}, this.dragging = new w(e.el), this.dragging.autoScroller.isEnabled = !1;
|
|
509
|
+
let t = this.hitDragging = new P(this.dragging, Y(e));
|
|
510
|
+
t.emitter.on("pointerdown", this.handlePointerDown), t.emitter.on("dragend", this.handleDragEnd);
|
|
511
|
+
}
|
|
512
|
+
destroy() {
|
|
513
|
+
this.dragging.destroy();
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
class Ve extends I {
|
|
517
|
+
constructor(e) {
|
|
518
|
+
super(e), this.dragSelection = null, this.handlePointerDown = (s) => {
|
|
519
|
+
let { component: r, dragging: o } = this, { options: a } = r.context, d = a.selectable && r.isValidDateDownEl(s.origEvent.target);
|
|
520
|
+
o.setIgnoreMove(!d), o.delay = s.isTouch ? Ue(r) : null;
|
|
521
|
+
}, this.handleDragStart = (s) => {
|
|
522
|
+
this.component.context.calendarApi.unselect(s);
|
|
523
|
+
}, this.handleHitUpdate = (s, r) => {
|
|
524
|
+
let { context: o } = this.component, a = null, d = !1;
|
|
525
|
+
if (s) {
|
|
526
|
+
let c = this.hitDragging.initialHit;
|
|
527
|
+
s.componentId === c.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(c, s) || (a = _e(c, s, o.pluginHooks.dateSelectionTransformers)), (!a || !le(a, s.dateProfile, o)) && (d = !0, a = null);
|
|
528
|
+
}
|
|
529
|
+
a ? o.dispatch({ type: "SELECT_DATES", selection: a }) : r || o.dispatch({ type: "UNSELECT_DATES" }), d ? V() : N(), r || (this.dragSelection = a);
|
|
530
|
+
}, this.handlePointerUp = (s) => {
|
|
531
|
+
this.dragSelection && (oe(this.dragSelection, s, this.component.context), this.dragSelection = null);
|
|
532
|
+
};
|
|
533
|
+
let { component: t } = e, { options: i } = t.context, n = this.dragging = new w(e.el);
|
|
534
|
+
n.touchScrollAllowed = !1, n.minDistance = i.selectMinDistance || 0, n.autoScroller.isEnabled = i.dragScroll;
|
|
535
|
+
let l = this.hitDragging = new P(this.dragging, Y(e));
|
|
536
|
+
l.emitter.on("pointerdown", this.handlePointerDown), l.emitter.on("dragstart", this.handleDragStart), l.emitter.on("hitupdate", this.handleHitUpdate), l.emitter.on("pointerup", this.handlePointerUp);
|
|
537
|
+
}
|
|
538
|
+
destroy() {
|
|
539
|
+
this.dragging.destroy();
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function Ue(h) {
|
|
543
|
+
let { options: e } = h.context, t = e.selectLongPressDelay;
|
|
544
|
+
return t == null && (t = e.longPressDelay), t;
|
|
545
|
+
}
|
|
546
|
+
function _e(h, e, t) {
|
|
547
|
+
let i = h.dateSpan, n = e.dateSpan, l = [
|
|
548
|
+
i.range.start,
|
|
549
|
+
i.range.end,
|
|
550
|
+
n.range.start,
|
|
551
|
+
n.range.end
|
|
552
|
+
];
|
|
553
|
+
l.sort(De);
|
|
554
|
+
let s = {};
|
|
555
|
+
for (let r of t) {
|
|
556
|
+
let o = r(h, e);
|
|
557
|
+
if (o === !1)
|
|
558
|
+
return null;
|
|
559
|
+
o && Object.assign(s, o);
|
|
560
|
+
}
|
|
561
|
+
return s.range = { start: l[0], end: l[3] }, s.allDay = i.allDay, s;
|
|
562
|
+
}
|
|
563
|
+
class y extends I {
|
|
564
|
+
constructor(e) {
|
|
565
|
+
super(e), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (s) => {
|
|
566
|
+
let r = s.origEvent.target, { component: o, dragging: a } = this, { mirror: d } = a, { options: c } = o.context, g = o.context;
|
|
567
|
+
this.subjectEl = s.subjectEl;
|
|
568
|
+
let p = this.subjectSeg = A(s.subjectEl), u = (this.eventRange = p.eventRange).instance.instanceId;
|
|
569
|
+
this.relevantEvents = q(g.getCurrentData().eventStore, u), a.minDistance = s.isTouch ? 0 : c.eventDragMinDistance, a.delay = // only do a touch delay if touch and this event hasn't been selected yet
|
|
570
|
+
s.isTouch && u !== o.props.eventSelection ? We(o) : null, c.fixedMirrorParent ? d.parentNode = c.fixedMirrorParent : d.parentNode = S(r, ".fc"), d.revertDuration = c.dragRevertDuration;
|
|
571
|
+
let v = o.isValidSegDownEl(r) && !S(r, ".fc-event-resizer");
|
|
572
|
+
a.setIgnoreMove(!v), this.isDragging = v && s.subjectEl.classList.contains("fc-event-draggable");
|
|
573
|
+
}, this.handleDragStart = (s) => {
|
|
574
|
+
let r = this.component.context, o = this.eventRange, a = o.instance.instanceId;
|
|
575
|
+
s.isTouch ? a !== this.component.props.eventSelection && r.dispatch({ type: "SELECT_EVENT", eventInstanceId: a }) : r.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (r.calendarApi.unselect(s), r.emitter.trigger("eventDragStart", {
|
|
576
|
+
el: this.subjectEl,
|
|
577
|
+
event: new m(r, o.def, o.instance),
|
|
578
|
+
jsEvent: s.origEvent,
|
|
579
|
+
view: r.viewApi
|
|
580
|
+
}));
|
|
581
|
+
}, this.handleHitUpdate = (s, r) => {
|
|
582
|
+
if (!this.isDragging)
|
|
583
|
+
return;
|
|
584
|
+
let o = this.relevantEvents, a = this.hitDragging.initialHit, d = this.component.context, c = null, g = null, p = null, f = !1, u = {
|
|
585
|
+
affectedEvents: o,
|
|
586
|
+
mutatedEvents: R(),
|
|
587
|
+
isEvent: !0
|
|
588
|
+
};
|
|
589
|
+
if (s) {
|
|
590
|
+
c = s.context;
|
|
591
|
+
let v = c.options;
|
|
592
|
+
d === c || v.editable && v.droppable ? (g = Oe(a, s, this.eventRange.instance.range.start, c.getCurrentData().pluginHooks.eventDragMutationMassagers), g && (p = F(o, c.getCurrentData().eventUiBases, g, c), u.mutatedEvents = p, k(u, s.dateProfile, c) || (f = !0, g = null, p = null, u.mutatedEvents = R()))) : c = null;
|
|
593
|
+
}
|
|
594
|
+
this.displayDrag(c, u), f ? V() : N(), r || (d === c && // TODO: write test for this
|
|
595
|
+
j(a, s) && (g = null), this.dragging.setMirrorNeedsRevert(!g), this.dragging.setMirrorIsVisible(!s || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = c, this.validMutation = g, this.mutatedRelevantEvents = p);
|
|
596
|
+
}, this.handlePointerUp = () => {
|
|
597
|
+
this.isDragging || this.cleanup();
|
|
598
|
+
}, this.handleDragEnd = (s) => {
|
|
599
|
+
if (this.isDragging) {
|
|
600
|
+
let r = this.component.context, o = r.viewApi, { receivingContext: a, validMutation: d } = this, c = this.eventRange.def, g = this.eventRange.instance, p = new m(r, c, g), f = this.relevantEvents, u = this.mutatedRelevantEvents, { finalHit: v } = this.hitDragging;
|
|
601
|
+
if (this.clearDrag(), r.emitter.trigger("eventDragStop", {
|
|
602
|
+
el: this.subjectEl,
|
|
603
|
+
event: p,
|
|
604
|
+
jsEvent: s.origEvent,
|
|
605
|
+
view: o
|
|
606
|
+
}), d) {
|
|
607
|
+
if (a === r) {
|
|
608
|
+
let b = new m(r, u.defs[c.defId], g ? u.instances[g.instanceId] : null);
|
|
609
|
+
r.dispatch({
|
|
610
|
+
type: "MERGE_EVENTS",
|
|
611
|
+
eventStore: u
|
|
612
|
+
});
|
|
613
|
+
let T = {
|
|
614
|
+
oldEvent: p,
|
|
615
|
+
event: b,
|
|
616
|
+
relatedEvents: M(u, r, g),
|
|
617
|
+
revert() {
|
|
618
|
+
r.dispatch({
|
|
619
|
+
type: "MERGE_EVENTS",
|
|
620
|
+
eventStore: f
|
|
621
|
+
// the pre-change data
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}, D = {};
|
|
625
|
+
for (let L of r.getCurrentData().pluginHooks.eventDropTransformers)
|
|
626
|
+
Object.assign(D, L(d, r));
|
|
627
|
+
r.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, T), D), { el: s.subjectEl, delta: d.datesDelta, jsEvent: s.origEvent, view: o })), r.emitter.trigger("eventChange", T);
|
|
628
|
+
} else if (a) {
|
|
629
|
+
let b = {
|
|
630
|
+
event: p,
|
|
631
|
+
relatedEvents: M(f, r, g),
|
|
632
|
+
revert() {
|
|
633
|
+
r.dispatch({
|
|
634
|
+
type: "MERGE_EVENTS",
|
|
635
|
+
eventStore: f
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
r.emitter.trigger("eventLeave", Object.assign(Object.assign({}, b), { draggedEl: s.subjectEl, view: o })), r.dispatch({
|
|
640
|
+
type: "REMOVE_EVENTS",
|
|
641
|
+
eventStore: f
|
|
642
|
+
}), r.emitter.trigger("eventRemove", b);
|
|
643
|
+
let T = u.defs[c.defId], D = u.instances[g.instanceId], L = new m(a, T, D);
|
|
644
|
+
a.dispatch({
|
|
645
|
+
type: "MERGE_EVENTS",
|
|
646
|
+
eventStore: u
|
|
647
|
+
});
|
|
648
|
+
let _ = {
|
|
649
|
+
event: L,
|
|
650
|
+
relatedEvents: M(u, a, D),
|
|
651
|
+
revert() {
|
|
652
|
+
a.dispatch({
|
|
653
|
+
type: "REMOVE_EVENTS",
|
|
654
|
+
eventStore: u
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
a.emitter.trigger("eventAdd", _), s.isTouch && a.dispatch({
|
|
659
|
+
type: "SELECT_EVENT",
|
|
660
|
+
eventInstanceId: g.instanceId
|
|
661
|
+
}), a.emitter.trigger("drop", Object.assign(Object.assign({}, J(v.dateSpan, a)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: v.context.viewApi })), a.emitter.trigger("eventReceive", Object.assign(Object.assign({}, _), { draggedEl: s.subjectEl, view: v.context.viewApi }));
|
|
662
|
+
}
|
|
663
|
+
} else
|
|
664
|
+
r.emitter.trigger("_noEventDrop");
|
|
665
|
+
}
|
|
666
|
+
this.cleanup();
|
|
667
|
+
};
|
|
668
|
+
let { component: t } = this, { options: i } = t.context, n = this.dragging = new w(e.el);
|
|
669
|
+
n.pointer.selector = y.SELECTOR, n.touchScrollAllowed = !1, n.autoScroller.isEnabled = i.dragScroll;
|
|
670
|
+
let l = this.hitDragging = new P(this.dragging, ae);
|
|
671
|
+
l.useSubjectCenter = e.useEventCenter, l.emitter.on("pointerdown", this.handlePointerDown), l.emitter.on("dragstart", this.handleDragStart), l.emitter.on("hitupdate", this.handleHitUpdate), l.emitter.on("pointerup", this.handlePointerUp), l.emitter.on("dragend", this.handleDragEnd);
|
|
672
|
+
}
|
|
673
|
+
destroy() {
|
|
674
|
+
this.dragging.destroy();
|
|
675
|
+
}
|
|
676
|
+
// render a drag state on the next receivingCalendar
|
|
677
|
+
displayDrag(e, t) {
|
|
678
|
+
let i = this.component.context, n = this.receivingContext;
|
|
679
|
+
n && n !== e && (n === i ? n.dispatch({
|
|
680
|
+
type: "SET_EVENT_DRAG",
|
|
681
|
+
state: {
|
|
682
|
+
affectedEvents: t.affectedEvents,
|
|
683
|
+
mutatedEvents: R(),
|
|
684
|
+
isEvent: !0
|
|
685
|
+
}
|
|
686
|
+
}) : n.dispatch({ type: "UNSET_EVENT_DRAG" })), e && e.dispatch({ type: "SET_EVENT_DRAG", state: t });
|
|
687
|
+
}
|
|
688
|
+
clearDrag() {
|
|
689
|
+
let e = this.component.context, { receivingContext: t } = this;
|
|
690
|
+
t && t.dispatch({ type: "UNSET_EVENT_DRAG" }), e !== t && e.dispatch({ type: "UNSET_EVENT_DRAG" });
|
|
691
|
+
}
|
|
692
|
+
cleanup() {
|
|
693
|
+
this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
y.SELECTOR = ".fc-event-draggable, .fc-event-resizable";
|
|
697
|
+
function Oe(h, e, t, i) {
|
|
698
|
+
let n = h.dateSpan, l = e.dateSpan, s = n.range.start, r = l.range.start, o = {};
|
|
699
|
+
n.allDay !== l.allDay && (o.allDay = l.allDay, o.hasEnd = e.context.options.allDayMaintainDuration, l.allDay ? s = he(t) : s = t);
|
|
700
|
+
let a = z(s, r, h.context.dateEnv, h.componentId === e.componentId ? h.largeUnit : null);
|
|
701
|
+
a.milliseconds && (o.allDay = !1);
|
|
702
|
+
let d = {
|
|
703
|
+
datesDelta: a,
|
|
704
|
+
standardProps: o
|
|
705
|
+
};
|
|
706
|
+
for (let c of i)
|
|
707
|
+
c(d, h, e);
|
|
708
|
+
return d;
|
|
709
|
+
}
|
|
710
|
+
function We(h) {
|
|
711
|
+
let { options: e } = h.context, t = e.eventLongPressDelay;
|
|
712
|
+
return t == null && (t = e.longPressDelay), t;
|
|
713
|
+
}
|
|
714
|
+
class qe extends I {
|
|
715
|
+
constructor(e) {
|
|
716
|
+
super(e), this.draggingSegEl = null, this.draggingSeg = null, this.eventRange = null, this.relevantEvents = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (l) => {
|
|
717
|
+
let { component: s } = this, r = this.querySegEl(l), o = A(r), a = this.eventRange = o.eventRange;
|
|
718
|
+
this.dragging.minDistance = s.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target) || l.isTouch && this.component.props.eventSelection !== a.instance.instanceId);
|
|
719
|
+
}, this.handleDragStart = (l) => {
|
|
720
|
+
let { context: s } = this.component, r = this.eventRange;
|
|
721
|
+
this.relevantEvents = q(s.getCurrentData().eventStore, this.eventRange.instance.instanceId);
|
|
722
|
+
let o = this.querySegEl(l);
|
|
723
|
+
this.draggingSegEl = o, this.draggingSeg = A(o), s.calendarApi.unselect(), s.emitter.trigger("eventResizeStart", {
|
|
724
|
+
el: o,
|
|
725
|
+
event: new m(s, r.def, r.instance),
|
|
726
|
+
jsEvent: l.origEvent,
|
|
727
|
+
view: s.viewApi
|
|
728
|
+
});
|
|
729
|
+
}, this.handleHitUpdate = (l, s, r) => {
|
|
730
|
+
let { context: o } = this.component, a = this.relevantEvents, d = this.hitDragging.initialHit, c = this.eventRange.instance, g = null, p = null, f = !1, u = {
|
|
731
|
+
affectedEvents: a,
|
|
732
|
+
mutatedEvents: R(),
|
|
733
|
+
isEvent: !0
|
|
734
|
+
};
|
|
735
|
+
l && (l.componentId === d.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(d, l) || (g = Fe(d, l, r.subjectEl.classList.contains("fc-event-resizer-start"), c.range))), g && (p = F(a, o.getCurrentData().eventUiBases, g, o), u.mutatedEvents = p, k(u, l.dateProfile, o) || (f = !0, g = null, p = null, u.mutatedEvents = null)), p ? o.dispatch({
|
|
736
|
+
type: "SET_EVENT_RESIZE",
|
|
737
|
+
state: u
|
|
738
|
+
}) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), f ? V() : N(), s || (g && j(d, l) && (g = null), this.validMutation = g, this.mutatedRelevantEvents = p);
|
|
739
|
+
}, this.handleDragEnd = (l) => {
|
|
740
|
+
let { context: s } = this.component, r = this.eventRange.def, o = this.eventRange.instance, a = new m(s, r, o), d = this.relevantEvents, c = this.mutatedRelevantEvents;
|
|
741
|
+
if (s.emitter.trigger("eventResizeStop", {
|
|
742
|
+
el: this.draggingSegEl,
|
|
743
|
+
event: a,
|
|
744
|
+
jsEvent: l.origEvent,
|
|
745
|
+
view: s.viewApi
|
|
746
|
+
}), this.validMutation) {
|
|
747
|
+
let g = new m(s, c.defs[r.defId], o ? c.instances[o.instanceId] : null);
|
|
748
|
+
s.dispatch({
|
|
749
|
+
type: "MERGE_EVENTS",
|
|
750
|
+
eventStore: c
|
|
751
|
+
});
|
|
752
|
+
let p = {
|
|
753
|
+
oldEvent: a,
|
|
754
|
+
event: g,
|
|
755
|
+
relatedEvents: M(c, s, o),
|
|
756
|
+
revert() {
|
|
757
|
+
s.dispatch({
|
|
758
|
+
type: "MERGE_EVENTS",
|
|
759
|
+
eventStore: d
|
|
760
|
+
// the pre-change events
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
s.emitter.trigger("eventResize", Object.assign(Object.assign({}, p), { el: this.draggingSegEl, startDelta: this.validMutation.startDelta || O(0), endDelta: this.validMutation.endDelta || O(0), jsEvent: l.origEvent, view: s.viewApi })), s.emitter.trigger("eventChange", p);
|
|
765
|
+
} else
|
|
766
|
+
s.emitter.trigger("_noEventResize");
|
|
767
|
+
this.draggingSeg = null, this.relevantEvents = null, this.validMutation = null;
|
|
768
|
+
};
|
|
769
|
+
let { component: t } = e, i = this.dragging = new w(e.el);
|
|
770
|
+
i.pointer.selector = ".fc-event-resizer", i.touchScrollAllowed = !1, i.autoScroller.isEnabled = t.context.options.dragScroll;
|
|
771
|
+
let n = this.hitDragging = new P(this.dragging, Y(e));
|
|
772
|
+
n.emitter.on("pointerdown", this.handlePointerDown), n.emitter.on("dragstart", this.handleDragStart), n.emitter.on("hitupdate", this.handleHitUpdate), n.emitter.on("dragend", this.handleDragEnd);
|
|
773
|
+
}
|
|
774
|
+
destroy() {
|
|
775
|
+
this.dragging.destroy();
|
|
776
|
+
}
|
|
777
|
+
querySegEl(e) {
|
|
778
|
+
return S(e.subjectEl, ".fc-event");
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function Fe(h, e, t, i) {
|
|
782
|
+
let n = h.context.dateEnv, l = h.dateSpan.range.start, s = e.dateSpan.range.start, r = z(l, s, n, h.largeUnit);
|
|
783
|
+
if (t) {
|
|
784
|
+
if (n.add(i.start, r) < i.end)
|
|
785
|
+
return { startDelta: r };
|
|
786
|
+
} else if (n.add(i.end, r) > i.start)
|
|
787
|
+
return { endDelta: r };
|
|
788
|
+
return null;
|
|
789
|
+
}
|
|
790
|
+
class ke {
|
|
791
|
+
constructor(e) {
|
|
792
|
+
this.context = e, this.isRecentPointerDateSelect = !1, this.matchesCancel = !1, this.matchesEvent = !1, this.onSelect = (i) => {
|
|
793
|
+
i.jsEvent && (this.isRecentPointerDateSelect = !0);
|
|
794
|
+
}, this.onDocumentPointerDown = (i) => {
|
|
795
|
+
let n = this.context.options.unselectCancel, l = ce(i.origEvent);
|
|
796
|
+
this.matchesCancel = !!S(l, n), this.matchesEvent = !!S(l, y.SELECTOR);
|
|
797
|
+
}, this.onDocumentPointerUp = (i) => {
|
|
798
|
+
let { context: n } = this, { documentPointer: l } = this, s = n.getCurrentData();
|
|
799
|
+
if (!l.wasTouchScroll) {
|
|
800
|
+
if (s.dateSelection && // an existing date selection?
|
|
801
|
+
!this.isRecentPointerDateSelect) {
|
|
802
|
+
let r = n.options.unselectAuto;
|
|
803
|
+
r && (!r || !this.matchesCancel) && n.calendarApi.unselect(i);
|
|
804
|
+
}
|
|
805
|
+
s.eventSelection && // an existing event selected?
|
|
806
|
+
!this.matchesEvent && n.dispatch({ type: "UNSELECT_EVENT" });
|
|
807
|
+
}
|
|
808
|
+
this.isRecentPointerDateSelect = !1;
|
|
809
|
+
};
|
|
810
|
+
let t = this.documentPointer = new Z(document);
|
|
811
|
+
t.shouldIgnoreMove = !0, t.shouldWatchScroll = !1, t.emitter.on("pointerdown", this.onDocumentPointerDown), t.emitter.on("pointerup", this.onDocumentPointerUp), e.emitter.on("select", this.onSelect);
|
|
812
|
+
}
|
|
813
|
+
destroy() {
|
|
814
|
+
this.context.emitter.off("select", this.onSelect), this.documentPointer.destroy();
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
const ze = {
|
|
818
|
+
fixedMirrorParent: E
|
|
819
|
+
}, Ge = {
|
|
820
|
+
dateClick: E,
|
|
821
|
+
eventDragStart: E,
|
|
822
|
+
eventDragStop: E,
|
|
823
|
+
eventDrop: E,
|
|
824
|
+
eventResizeStart: E,
|
|
825
|
+
eventResizeStop: E,
|
|
826
|
+
eventResize: E,
|
|
827
|
+
drop: E,
|
|
828
|
+
eventReceive: E,
|
|
829
|
+
eventLeave: E
|
|
830
|
+
};
|
|
831
|
+
U.dataAttrPrefix = "";
|
|
832
|
+
var Qe = ee({
|
|
833
|
+
name: "@fullcalendar/interaction",
|
|
834
|
+
componentInteractions: [Ne, Ve, y, qe],
|
|
835
|
+
calendarInteractions: [ke],
|
|
836
|
+
elementDraggingImpl: w,
|
|
837
|
+
optionRefiners: ze,
|
|
838
|
+
listenerRefiners: Ge
|
|
839
|
+
});
|
|
840
|
+
export {
|
|
841
|
+
Qe as default
|
|
842
|
+
};
|