@vkzstudio/muza-ui 1.0.48 → 1.1.0
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/README.md +173 -171
- package/dist/Muza_BP_logo.svg +26 -26
- package/dist/components/Alert/Alert.d.ts +3 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +28 -24
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +10 -11
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +30 -3
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +112 -92
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.d.ts +5 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.js +216 -13
- package/dist/components/Input/Input.js +22 -32
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +1 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.js +70 -54
- package/dist/components/Lightbox/Lightbox.stories.d.ts +1 -0
- package/dist/components/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/LightboxOverrides.css +5 -5
- package/dist/components/LoginScreen/LoginScreen.js +8 -8
- package/dist/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DModel.js +10 -9
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DScene.js +21 -22
- package/dist/components/LoginScreen/LoginScreenItem.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -0
- package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/components/Reorderable/Reorderable.js +74 -78
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.stories.d.ts +1 -0
- package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +37 -42
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TextEditor/LinkBubbleMenu.js +2 -2
- package/dist/components/TextEditor/TextEditor.js +5 -5
- package/dist/components/Toast/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts.map +1 -1
- package/dist/fonts/Objectivity/OFL.txt +92 -92
- package/dist/globals.css +12 -12
- package/dist/index.js +194 -193
- package/dist/muza-ui.css +1 -1
- package/dist/styles/3rd-parties.css +5 -5
- package/dist/styles/animations.css +21 -21
- package/dist/styles/breakpoints.css +4 -4
- package/dist/styles/primitives.css +163 -163
- package/dist/styles/token-colors.css +1445 -1445
- package/dist/styles/token-sizes.css +1553 -1553
- package/dist/styles/typography.css +113 -113
- package/dist/styles/utilities.css +66 -66
- package/dist/styles/white-label.css +26 -26
- package/dist/translations/TranslationContext.js +22 -24
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +3 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +3 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +3 -0
- package/dist/translations/types.d.ts +8 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/llms-full.md +584 -584
- package/llms.txt +37 -37
- package/package.json +165 -171
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/constants.js +0 -5
- package/dist/_virtual/constants2.js +0 -4
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -7
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.production.min.js +0 -4
- package/dist/_virtual/react-dom-server.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server.browser.production.min.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-reconciler-constants.development.js +0 -4
- package/dist/_virtual/react-reconciler-constants.production.min.js +0 -4
- package/dist/_virtual/react-reconciler.development.js +0 -4
- package/dist/_virtual/scheduler.development.js +0 -4
- package/dist/_virtual/scheduler.production.min.js +0 -4
- package/dist/_virtual/server.browser.js +0 -5
- package/dist/_virtual/server.browser2.js +0 -4
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +0 -122
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -23
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -32
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -17
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -35
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -20
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/enums.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -47
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -99
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -26
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -74
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -44
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/popper.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -33
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -15
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/node_modules/@react-three/drei/core/useAnimations.js +0 -34
- package/dist/node_modules/@react-three/drei/core/useGLTF.js +0 -18
- package/dist/node_modules/@react-three/fiber/dist/events-776716bd.esm.js +0 -1311
- package/dist/node_modules/@react-three/fiber/dist/react-three-fiber.esm.js +0 -145
- package/dist/node_modules/@react-three/fiber/node_modules/suspend-react/index.js +0 -47
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -2857
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -45
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +0 -129
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -54
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -136
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -10
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -21
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -25
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -56
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +0 -36
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -59
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -75
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -272
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -53
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -64
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -9
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -709
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -30
- package/dist/node_modules/color/index.js +0 -262
- package/dist/node_modules/color/node_modules/color-convert/conversions.js +0 -421
- package/dist/node_modules/color/node_modules/color-convert/index.js +0 -35
- package/dist/node_modules/color/node_modules/color-convert/route.js +0 -46
- package/dist/node_modules/color/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/color-string/index.js +0 -105
- package/dist/node_modules/color-string/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/constants.js +0 -4
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/isSameWeek.js +0 -14
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
- package/dist/node_modules/date-fns/locale/cs/_lib/formatDistance.js +0 -275
- package/dist/node_modules/date-fns/locale/cs/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/cs/_lib/formatRelative.js +0 -25
- package/dist/node_modules/date-fns/locale/cs/_lib/localize.js +0 -167
- package/dist/node_modules/date-fns/locale/cs/_lib/match.js +0 -109
- package/dist/node_modules/date-fns/locale/cs.js +0 -21
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/locale/sk/_lib/formatDistance.js +0 -158
- package/dist/node_modules/date-fns/locale/sk/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/sk/_lib/formatRelative.js +0 -60
- package/dist/node_modules/date-fns/locale/sk/_lib/localize.js +0 -175
- package/dist/node_modules/date-fns/locale/sk/_lib/match.js +0 -111
- package/dist/node_modules/date-fns/locale/sk.js +0 -21
- package/dist/node_modules/date-fns/startOfWeek.js +0 -11
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/index.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/sequence.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +0 -128
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +0 -46
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +0 -64
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js +0 -70
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-motion-value-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -34
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -48
- package/dist/node_modules/imask/esm/controls/input-history.js +0 -30
- package/dist/node_modules/imask/esm/controls/input.js +0 -222
- package/dist/node_modules/imask/esm/controls/mask-element.js +0 -43
- package/dist/node_modules/imask/esm/core/action-details.js +0 -51
- package/dist/node_modules/imask/esm/core/change-details.js +0 -36
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -42
- package/dist/node_modules/imask/esm/core/holder.js +0 -6
- package/dist/node_modules/imask/esm/core/utils.js +0 -67
- package/dist/node_modules/imask/esm/index.js +0 -50
- package/dist/node_modules/imask/esm/masked/base.js +0 -252
- package/dist/node_modules/imask/esm/masked/date.js +0 -117
- package/dist/node_modules/imask/esm/masked/dynamic.js +0 -222
- package/dist/node_modules/imask/esm/masked/enum.js +0 -69
- package/dist/node_modules/imask/esm/masked/factory.js +0 -46
- package/dist/node_modules/imask/esm/masked/function.js +0 -23
- package/dist/node_modules/imask/esm/masked/number.js +0 -212
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -103
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -100
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -102
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -133
- package/dist/node_modules/imask/esm/masked/pattern.js +0 -322
- package/dist/node_modules/imask/esm/masked/pipe.js +0 -23
- package/dist/node_modules/imask/esm/masked/range.js +0 -78
- package/dist/node_modules/imask/esm/masked/regexp.js +0 -21
- package/dist/node_modules/imask/esm/masked/repeat.js +0 -104
- package/dist/node_modules/its-fine/dist/index.js +0 -116
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -707
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimation.js +0 -76
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -108
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -218
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -20
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/wrap.js +0 -7
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/orderedmap/dist/index.js +0 -103
- package/dist/node_modules/photoswipe/dist/photoswipe.esm.js +0 -2956
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -388
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -86
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -204
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -248
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -62
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -2733
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -88
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -822
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1520
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -3794
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -229
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -222
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -44
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -3621
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -1234
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -3600
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -1255
- package/dist/node_modules/react-dom/server.browser.js +0 -15
- package/dist/node_modules/react-imask/esm/hook.js +0 -75
- package/dist/node_modules/react-imask/esm/input.js +0 -23
- package/dist/node_modules/react-imask/esm/mixin.js +0 -131
- package/dist/node_modules/react-photoswipe-gallery/dist/context.js +0 -17
- package/dist/node_modules/react-photoswipe-gallery/dist/gallery.js +0 -216
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/ensure-ref-passed.js +0 -10
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/entry-item-ref-is-element.js +0 -4
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-base-url.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-value.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-without-gid-and-pid.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-initial-active-slide-index.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-data-source.js +0 -39
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-items-refs.js +0 -31
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-includes-navigation-query-params.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-to-object.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/item-to-slide.js +0 -37
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/object-to-hash.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/sort-nodes.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/hooks.js +0 -22
- package/dist/node_modules/react-photoswipe-gallery/dist/item.js +0 -54
- package/dist/node_modules/react-photoswipe-gallery/dist/lightbox-stub.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/no-ref-error.js +0 -14
- package/dist/node_modules/react-photoswipe-gallery/dist/no-source-id-error.js +0 -18
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +0 -32
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.production.min.js +0 -17
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.development.js +0 -9139
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +0 -3778
- package/dist/node_modules/react-reconciler/constants.js +0 -10
- package/dist/node_modules/react-reconciler/index.js +0 -10
- package/dist/node_modules/react-use-measure/dist/index.js +0 -60
- package/dist/node_modules/rope-sequence/dist/index.js +0 -100
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -277
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -213
- package/dist/node_modules/scheduler/index.js +0 -10
- package/dist/node_modules/three/build/three.module.js +0 -20599
- package/dist/node_modules/three-stdlib/_polyfill/LoaderUtils.js +0 -15
- package/dist/node_modules/three-stdlib/_polyfill/constants.js +0 -5
- package/dist/node_modules/three-stdlib/libs/MeshoptDecoder.js +0 -201
- package/dist/node_modules/three-stdlib/loaders/DRACOLoader.js +0 -246
- package/dist/node_modules/three-stdlib/loaders/GLTFLoader.js +0 -1670
- package/dist/node_modules/three-stdlib/utils/BufferGeometryUtils.js +0 -34
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +0 -813
- package/dist/node_modules/w3c-keyname/index.js +0 -93
- package/dist/node_modules/zustand/esm/index.js +0 -61
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import h from "../core/change-details.js";
|
|
2
|
-
import f from "../core/continuous-tail-details.js";
|
|
3
|
-
import { isString as v, DIRECTION as o, objectIncludes as V, forceDirection as I } from "../core/utils.js";
|
|
4
|
-
import _ from "../core/holder.js";
|
|
5
|
-
class p {
|
|
6
|
-
/** */
|
|
7
|
-
/** */
|
|
8
|
-
/** Transforms value before mask processing */
|
|
9
|
-
/** Transforms each char before mask processing */
|
|
10
|
-
/** Validates if value is acceptable */
|
|
11
|
-
/** Does additional processing at the end of editing */
|
|
12
|
-
/** Format typed value to string */
|
|
13
|
-
/** Parse string to get typed value */
|
|
14
|
-
/** Enable characters overwriting */
|
|
15
|
-
/** */
|
|
16
|
-
/** */
|
|
17
|
-
/** */
|
|
18
|
-
/** */
|
|
19
|
-
constructor(t) {
|
|
20
|
-
this._value = "", this._update({
|
|
21
|
-
...p.DEFAULTS,
|
|
22
|
-
...t
|
|
23
|
-
}), this._initialized = !0;
|
|
24
|
-
}
|
|
25
|
-
/** Sets and applies new options */
|
|
26
|
-
updateOptions(t) {
|
|
27
|
-
this.optionsIsChanged(t) && this.withValueRefresh(this._update.bind(this, t));
|
|
28
|
-
}
|
|
29
|
-
/** Sets new options */
|
|
30
|
-
_update(t) {
|
|
31
|
-
Object.assign(this, t);
|
|
32
|
-
}
|
|
33
|
-
/** Mask state */
|
|
34
|
-
get state() {
|
|
35
|
-
return {
|
|
36
|
-
_value: this.value,
|
|
37
|
-
_rawInputValue: this.rawInputValue
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
set state(t) {
|
|
41
|
-
this._value = t._value;
|
|
42
|
-
}
|
|
43
|
-
/** Resets value */
|
|
44
|
-
reset() {
|
|
45
|
-
this._value = "";
|
|
46
|
-
}
|
|
47
|
-
get value() {
|
|
48
|
-
return this._value;
|
|
49
|
-
}
|
|
50
|
-
set value(t) {
|
|
51
|
-
this.resolve(t, {
|
|
52
|
-
input: !0
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/** Resolve new value */
|
|
56
|
-
resolve(t, e) {
|
|
57
|
-
e === void 0 && (e = {
|
|
58
|
-
input: !0
|
|
59
|
-
}), this.reset(), this.append(t, e, ""), this.doCommit();
|
|
60
|
-
}
|
|
61
|
-
get unmaskedValue() {
|
|
62
|
-
return this.value;
|
|
63
|
-
}
|
|
64
|
-
set unmaskedValue(t) {
|
|
65
|
-
this.resolve(t, {});
|
|
66
|
-
}
|
|
67
|
-
get typedValue() {
|
|
68
|
-
return this.parse ? this.parse(this.value, this) : this.unmaskedValue;
|
|
69
|
-
}
|
|
70
|
-
set typedValue(t) {
|
|
71
|
-
this.format ? this.value = this.format(t, this) : this.unmaskedValue = String(t);
|
|
72
|
-
}
|
|
73
|
-
/** Value that includes raw user input */
|
|
74
|
-
get rawInputValue() {
|
|
75
|
-
return this.extractInput(0, this.displayValue.length, {
|
|
76
|
-
raw: !0
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
set rawInputValue(t) {
|
|
80
|
-
this.resolve(t, {
|
|
81
|
-
raw: !0
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
get displayValue() {
|
|
85
|
-
return this.value;
|
|
86
|
-
}
|
|
87
|
-
get isComplete() {
|
|
88
|
-
return !0;
|
|
89
|
-
}
|
|
90
|
-
get isFilled() {
|
|
91
|
-
return this.isComplete;
|
|
92
|
-
}
|
|
93
|
-
/** Finds nearest input position in direction */
|
|
94
|
-
nearestInputPos(t, e) {
|
|
95
|
-
return t;
|
|
96
|
-
}
|
|
97
|
-
totalInputPositions(t, e) {
|
|
98
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), Math.min(this.displayValue.length, e - t);
|
|
99
|
-
}
|
|
100
|
-
/** Extracts value in range considering flags */
|
|
101
|
-
extractInput(t, e, i) {
|
|
102
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this.displayValue.slice(t, e);
|
|
103
|
-
}
|
|
104
|
-
/** Extracts tail in range */
|
|
105
|
-
extractTail(t, e) {
|
|
106
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new f(this.extractInput(t, e), t);
|
|
107
|
-
}
|
|
108
|
-
/** Appends tail */
|
|
109
|
-
appendTail(t) {
|
|
110
|
-
return v(t) && (t = new f(String(t))), t.appendTo(this);
|
|
111
|
-
}
|
|
112
|
-
/** Appends char */
|
|
113
|
-
_appendCharRaw(t, e) {
|
|
114
|
-
return t ? (this._value += t, new h({
|
|
115
|
-
inserted: t,
|
|
116
|
-
rawInserted: t
|
|
117
|
-
})) : new h();
|
|
118
|
-
}
|
|
119
|
-
/** Appends char */
|
|
120
|
-
_appendChar(t, e, i) {
|
|
121
|
-
e === void 0 && (e = {});
|
|
122
|
-
const s = this.state;
|
|
123
|
-
let a;
|
|
124
|
-
if ([t, a] = this.doPrepareChar(t, e), t && (a = a.aggregate(this._appendCharRaw(t, e)), !a.rawInserted && this.autofix === "pad")) {
|
|
125
|
-
const n = this.state;
|
|
126
|
-
this.state = s;
|
|
127
|
-
let r = this.pad(e);
|
|
128
|
-
const l = this._appendCharRaw(t, e);
|
|
129
|
-
r = r.aggregate(l), l.rawInserted || r.equals(a) ? a = r : this.state = n;
|
|
130
|
-
}
|
|
131
|
-
if (a.inserted) {
|
|
132
|
-
let n, r = this.doValidate(e) !== !1;
|
|
133
|
-
if (r && i != null) {
|
|
134
|
-
const l = this.state;
|
|
135
|
-
if (this.overwrite === !0) {
|
|
136
|
-
n = i.state;
|
|
137
|
-
for (let d = 0; d < a.rawInserted.length; ++d)
|
|
138
|
-
i.unshift(this.displayValue.length - a.tailShift);
|
|
139
|
-
}
|
|
140
|
-
let u = this.appendTail(i);
|
|
141
|
-
if (r = u.rawInserted.length === i.toString().length, !(r && u.inserted) && this.overwrite === "shift") {
|
|
142
|
-
this.state = l, n = i.state;
|
|
143
|
-
for (let d = 0; d < a.rawInserted.length; ++d)
|
|
144
|
-
i.shift();
|
|
145
|
-
u = this.appendTail(i), r = u.rawInserted.length === i.toString().length;
|
|
146
|
-
}
|
|
147
|
-
r && u.inserted && (this.state = l);
|
|
148
|
-
}
|
|
149
|
-
r || (a = new h(), this.state = s, i && n && (i.state = n));
|
|
150
|
-
}
|
|
151
|
-
return a;
|
|
152
|
-
}
|
|
153
|
-
/** Appends optional placeholder at the end */
|
|
154
|
-
_appendPlaceholder() {
|
|
155
|
-
return new h();
|
|
156
|
-
}
|
|
157
|
-
/** Appends optional eager placeholder at the end */
|
|
158
|
-
_appendEager() {
|
|
159
|
-
return new h();
|
|
160
|
-
}
|
|
161
|
-
/** Appends symbols considering flags */
|
|
162
|
-
append(t, e, i) {
|
|
163
|
-
if (!v(t)) throw new Error("value should be string");
|
|
164
|
-
const s = v(i) ? new f(String(i)) : i;
|
|
165
|
-
e != null && e.tail && (e._beforeTailState = this.state);
|
|
166
|
-
let a;
|
|
167
|
-
[t, a] = this.doPrepare(t, e);
|
|
168
|
-
for (let n = 0; n < t.length; ++n) {
|
|
169
|
-
const r = this._appendChar(t[n], e, s);
|
|
170
|
-
if (!r.rawInserted && !this.doSkipInvalid(t[n], e, s)) break;
|
|
171
|
-
a.aggregate(r);
|
|
172
|
-
}
|
|
173
|
-
return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && a.aggregate(this._appendEager()), s != null && (a.tailShift += this.appendTail(s).tailShift), a;
|
|
174
|
-
}
|
|
175
|
-
remove(t, e) {
|
|
176
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), this._value = this.displayValue.slice(0, t) + this.displayValue.slice(e), new h();
|
|
177
|
-
}
|
|
178
|
-
/** Calls function and reapplies current value */
|
|
179
|
-
withValueRefresh(t) {
|
|
180
|
-
if (this._refreshing || !this._initialized) return t();
|
|
181
|
-
this._refreshing = !0;
|
|
182
|
-
const e = this.rawInputValue, i = this.value, s = t();
|
|
183
|
-
return this.rawInputValue = e, this.value && this.value !== i && i.indexOf(this.value) === 0 && (this.append(i.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, s;
|
|
184
|
-
}
|
|
185
|
-
runIsolated(t) {
|
|
186
|
-
if (this._isolated || !this._initialized) return t(this);
|
|
187
|
-
this._isolated = !0;
|
|
188
|
-
const e = this.state, i = t(this);
|
|
189
|
-
return this.state = e, delete this._isolated, i;
|
|
190
|
-
}
|
|
191
|
-
doSkipInvalid(t, e, i) {
|
|
192
|
-
return !!this.skipInvalid;
|
|
193
|
-
}
|
|
194
|
-
/** Prepares string before mask processing */
|
|
195
|
-
doPrepare(t, e) {
|
|
196
|
-
return e === void 0 && (e = {}), h.normalize(this.prepare ? this.prepare(t, this, e) : t);
|
|
197
|
-
}
|
|
198
|
-
/** Prepares each char before mask processing */
|
|
199
|
-
doPrepareChar(t, e) {
|
|
200
|
-
return e === void 0 && (e = {}), h.normalize(this.prepareChar ? this.prepareChar(t, this, e) : t);
|
|
201
|
-
}
|
|
202
|
-
/** Validates if value is acceptable */
|
|
203
|
-
doValidate(t) {
|
|
204
|
-
return (!this.validate || this.validate(this.value, this, t)) && (!this.parent || this.parent.doValidate(t));
|
|
205
|
-
}
|
|
206
|
-
/** Does additional processing at the end of editing */
|
|
207
|
-
doCommit() {
|
|
208
|
-
this.commit && this.commit(this.value, this);
|
|
209
|
-
}
|
|
210
|
-
splice(t, e, i, s, a) {
|
|
211
|
-
i === void 0 && (i = ""), s === void 0 && (s = o.NONE), a === void 0 && (a = {
|
|
212
|
-
input: !0
|
|
213
|
-
});
|
|
214
|
-
const n = t + e, r = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
|
|
215
|
-
let u;
|
|
216
|
-
l && (s = I(s), u = this.extractInput(0, n, {
|
|
217
|
-
raw: !0
|
|
218
|
-
}));
|
|
219
|
-
let d = t;
|
|
220
|
-
const g = new h();
|
|
221
|
-
if (s !== o.NONE && (d = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? o.NONE : s), g.tailShift = d - t), g.aggregate(this.remove(d)), l && s !== o.NONE && u === this.rawInputValue)
|
|
222
|
-
if (s === o.FORCE_LEFT) {
|
|
223
|
-
let w;
|
|
224
|
-
for (; u === this.rawInputValue && (w = this.displayValue.length); )
|
|
225
|
-
g.aggregate(new h({
|
|
226
|
-
tailShift: -1
|
|
227
|
-
})).aggregate(this.remove(w - 1));
|
|
228
|
-
} else s === o.FORCE_RIGHT && r.unshift();
|
|
229
|
-
return g.aggregate(this.append(i, a, r));
|
|
230
|
-
}
|
|
231
|
-
maskEquals(t) {
|
|
232
|
-
return this.mask === t;
|
|
233
|
-
}
|
|
234
|
-
optionsIsChanged(t) {
|
|
235
|
-
return !V(this, t);
|
|
236
|
-
}
|
|
237
|
-
typedValueEquals(t) {
|
|
238
|
-
const e = this.typedValue;
|
|
239
|
-
return t === e || p.EMPTY_VALUES.includes(t) && p.EMPTY_VALUES.includes(e) || (this.format ? this.format(t, this) === this.format(this.typedValue, this) : !1);
|
|
240
|
-
}
|
|
241
|
-
pad(t) {
|
|
242
|
-
return new h();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
p.DEFAULTS = {
|
|
246
|
-
skipInvalid: !0
|
|
247
|
-
};
|
|
248
|
-
p.EMPTY_VALUES = [void 0, null, ""];
|
|
249
|
-
_.Masked = p;
|
|
250
|
-
export {
|
|
251
|
-
p as default
|
|
252
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import u from "./pattern.js";
|
|
2
|
-
import m from "./range.js";
|
|
3
|
-
import l from "../core/holder.js";
|
|
4
|
-
import { isString as o } from "../core/utils.js";
|
|
5
|
-
import "../core/change-details.js";
|
|
6
|
-
import "./base.js";
|
|
7
|
-
import "./factory.js";
|
|
8
|
-
import "./pattern/input-definition.js";
|
|
9
|
-
import "./regexp.js";
|
|
10
|
-
const d = "d{.}`m{.}`Y";
|
|
11
|
-
class r extends u {
|
|
12
|
-
static extractPatternOptions(t) {
|
|
13
|
-
const {
|
|
14
|
-
mask: e,
|
|
15
|
-
pattern: s,
|
|
16
|
-
...n
|
|
17
|
-
} = t;
|
|
18
|
-
return {
|
|
19
|
-
...n,
|
|
20
|
-
mask: o(e) ? e : s
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
/** Pattern mask for date according to {@link MaskedDate#format} */
|
|
24
|
-
/** Start date */
|
|
25
|
-
/** End date */
|
|
26
|
-
/** Format typed value to string */
|
|
27
|
-
/** Parse string to get typed value */
|
|
28
|
-
constructor(t) {
|
|
29
|
-
super(r.extractPatternOptions({
|
|
30
|
-
...r.DEFAULTS,
|
|
31
|
-
...t
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
updateOptions(t) {
|
|
35
|
-
super.updateOptions(t);
|
|
36
|
-
}
|
|
37
|
-
_update(t) {
|
|
38
|
-
const {
|
|
39
|
-
mask: e,
|
|
40
|
-
pattern: s,
|
|
41
|
-
blocks: n,
|
|
42
|
-
...p
|
|
43
|
-
} = {
|
|
44
|
-
...r.DEFAULTS,
|
|
45
|
-
...t
|
|
46
|
-
}, a = Object.assign({}, r.GET_DEFAULT_BLOCKS());
|
|
47
|
-
t.min && (a.Y.from = t.min.getFullYear()), t.max && (a.Y.to = t.max.getFullYear()), t.min && t.max && a.Y.from === a.Y.to && (a.m.from = t.min.getMonth() + 1, a.m.to = t.max.getMonth() + 1, a.m.from === a.m.to && (a.d.from = t.min.getDate(), a.d.to = t.max.getDate())), Object.assign(a, this.blocks, n), super._update({
|
|
48
|
-
...p,
|
|
49
|
-
mask: o(e) ? e : s,
|
|
50
|
-
blocks: a
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
doValidate(t) {
|
|
54
|
-
const e = this.date;
|
|
55
|
-
return super.doValidate(t) && (!this.isComplete || this.isDateExist(this.value) && e != null && (this.min == null || this.min <= e) && (this.max == null || e <= this.max));
|
|
56
|
-
}
|
|
57
|
-
/** Checks if date is exists */
|
|
58
|
-
isDateExist(t) {
|
|
59
|
-
return this.format(this.parse(t, this), this).indexOf(t) >= 0;
|
|
60
|
-
}
|
|
61
|
-
/** Parsed Date */
|
|
62
|
-
get date() {
|
|
63
|
-
return this.typedValue;
|
|
64
|
-
}
|
|
65
|
-
set date(t) {
|
|
66
|
-
this.typedValue = t;
|
|
67
|
-
}
|
|
68
|
-
get typedValue() {
|
|
69
|
-
return this.isComplete ? super.typedValue : null;
|
|
70
|
-
}
|
|
71
|
-
set typedValue(t) {
|
|
72
|
-
super.typedValue = t;
|
|
73
|
-
}
|
|
74
|
-
maskEquals(t) {
|
|
75
|
-
return t === Date || super.maskEquals(t);
|
|
76
|
-
}
|
|
77
|
-
optionsIsChanged(t) {
|
|
78
|
-
return super.optionsIsChanged(r.extractPatternOptions(t));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
r.GET_DEFAULT_BLOCKS = () => ({
|
|
82
|
-
d: {
|
|
83
|
-
mask: m,
|
|
84
|
-
from: 1,
|
|
85
|
-
to: 31,
|
|
86
|
-
maxLength: 2
|
|
87
|
-
},
|
|
88
|
-
m: {
|
|
89
|
-
mask: m,
|
|
90
|
-
from: 1,
|
|
91
|
-
to: 12,
|
|
92
|
-
maxLength: 2
|
|
93
|
-
},
|
|
94
|
-
Y: {
|
|
95
|
-
mask: m,
|
|
96
|
-
from: 1900,
|
|
97
|
-
to: 9999
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
r.DEFAULTS = {
|
|
101
|
-
...u.DEFAULTS,
|
|
102
|
-
mask: Date,
|
|
103
|
-
pattern: d,
|
|
104
|
-
format: (i, t) => {
|
|
105
|
-
if (!i) return "";
|
|
106
|
-
const e = String(i.getDate()).padStart(2, "0"), s = String(i.getMonth() + 1).padStart(2, "0"), n = i.getFullYear();
|
|
107
|
-
return [e, s, n].join(".");
|
|
108
|
-
},
|
|
109
|
-
parse: (i, t) => {
|
|
110
|
-
const [e, s, n] = i.split(".").map(Number);
|
|
111
|
-
return new Date(n, s - 1, e);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
l.MaskedDate = r;
|
|
115
|
-
export {
|
|
116
|
-
r as default
|
|
117
|
-
};
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { DIRECTION as c, objectIncludes as d } from "../core/utils.js";
|
|
2
|
-
import l from "../core/change-details.js";
|
|
3
|
-
import v, { normalizeOpts as _ } from "./factory.js";
|
|
4
|
-
import k from "./base.js";
|
|
5
|
-
import g from "../core/holder.js";
|
|
6
|
-
class h extends k {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
super({
|
|
9
|
-
...h.DEFAULTS,
|
|
10
|
-
...e
|
|
11
|
-
}), this.currentMask = void 0;
|
|
12
|
-
}
|
|
13
|
-
updateOptions(e) {
|
|
14
|
-
super.updateOptions(e);
|
|
15
|
-
}
|
|
16
|
-
_update(e) {
|
|
17
|
-
super._update(e), "mask" in e && (this.exposeMask = void 0, this.compiledMasks = Array.isArray(e.mask) ? e.mask.map((t) => {
|
|
18
|
-
const {
|
|
19
|
-
expose: s,
|
|
20
|
-
...a
|
|
21
|
-
} = _(t), i = v({
|
|
22
|
-
overwrite: this._overwrite,
|
|
23
|
-
eager: this._eager,
|
|
24
|
-
skipInvalid: this._skipInvalid,
|
|
25
|
-
...a
|
|
26
|
-
});
|
|
27
|
-
return s && (this.exposeMask = i), i;
|
|
28
|
-
}) : []);
|
|
29
|
-
}
|
|
30
|
-
_appendCharRaw(e, t) {
|
|
31
|
-
t === void 0 && (t = {});
|
|
32
|
-
const s = this._applyDispatch(e, t);
|
|
33
|
-
return this.currentMask && s.aggregate(this.currentMask._appendChar(e, this.currentMaskFlags(t))), s;
|
|
34
|
-
}
|
|
35
|
-
_applyDispatch(e, t, s) {
|
|
36
|
-
e === void 0 && (e = ""), t === void 0 && (t = {}), s === void 0 && (s = "");
|
|
37
|
-
const a = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, i = this.rawInputValue, r = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : i, u = i.slice(r.length), n = this.currentMask, p = new l(), o = n == null ? void 0 : n.state;
|
|
38
|
-
return this.currentMask = this.doDispatch(e, {
|
|
39
|
-
...t
|
|
40
|
-
}, s), this.currentMask && (this.currentMask !== n ? (this.currentMask.reset(), r && (this.currentMask.append(r, {
|
|
41
|
-
raw: !0
|
|
42
|
-
}), p.tailShift = this.currentMask.value.length - a.length), u && (p.tailShift += this.currentMask.append(u, {
|
|
43
|
-
raw: !0,
|
|
44
|
-
tail: !0
|
|
45
|
-
}).tailShift)) : o && (this.currentMask.state = o)), p;
|
|
46
|
-
}
|
|
47
|
-
_appendPlaceholder() {
|
|
48
|
-
const e = this._applyDispatch();
|
|
49
|
-
return this.currentMask && e.aggregate(this.currentMask._appendPlaceholder()), e;
|
|
50
|
-
}
|
|
51
|
-
_appendEager() {
|
|
52
|
-
const e = this._applyDispatch();
|
|
53
|
-
return this.currentMask && e.aggregate(this.currentMask._appendEager()), e;
|
|
54
|
-
}
|
|
55
|
-
appendTail(e) {
|
|
56
|
-
const t = new l();
|
|
57
|
-
return e && t.aggregate(this._applyDispatch("", {}, e)), t.aggregate(this.currentMask ? this.currentMask.appendTail(e) : super.appendTail(e));
|
|
58
|
-
}
|
|
59
|
-
currentMaskFlags(e) {
|
|
60
|
-
var t, s;
|
|
61
|
-
return {
|
|
62
|
-
...e,
|
|
63
|
-
_beforeTailState: ((t = e._beforeTailState) == null ? void 0 : t.currentMaskRef) === this.currentMask && ((s = e._beforeTailState) == null ? void 0 : s.currentMask) || e._beforeTailState
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
doDispatch(e, t, s) {
|
|
67
|
-
return t === void 0 && (t = {}), s === void 0 && (s = ""), this.dispatch(e, this, t, s);
|
|
68
|
-
}
|
|
69
|
-
doValidate(e) {
|
|
70
|
-
return super.doValidate(e) && (!this.currentMask || this.currentMask.doValidate(this.currentMaskFlags(e)));
|
|
71
|
-
}
|
|
72
|
-
doPrepare(e, t) {
|
|
73
|
-
t === void 0 && (t = {});
|
|
74
|
-
let [s, a] = super.doPrepare(e, t);
|
|
75
|
-
if (this.currentMask) {
|
|
76
|
-
let i;
|
|
77
|
-
[s, i] = super.doPrepare(s, this.currentMaskFlags(t)), a = a.aggregate(i);
|
|
78
|
-
}
|
|
79
|
-
return [s, a];
|
|
80
|
-
}
|
|
81
|
-
doPrepareChar(e, t) {
|
|
82
|
-
t === void 0 && (t = {});
|
|
83
|
-
let [s, a] = super.doPrepareChar(e, t);
|
|
84
|
-
if (this.currentMask) {
|
|
85
|
-
let i;
|
|
86
|
-
[s, i] = super.doPrepareChar(s, this.currentMaskFlags(t)), a = a.aggregate(i);
|
|
87
|
-
}
|
|
88
|
-
return [s, a];
|
|
89
|
-
}
|
|
90
|
-
reset() {
|
|
91
|
-
var e;
|
|
92
|
-
(e = this.currentMask) == null || e.reset(), this.compiledMasks.forEach((t) => t.reset());
|
|
93
|
-
}
|
|
94
|
-
get value() {
|
|
95
|
-
return this.exposeMask ? this.exposeMask.value : this.currentMask ? this.currentMask.value : "";
|
|
96
|
-
}
|
|
97
|
-
set value(e) {
|
|
98
|
-
this.exposeMask ? (this.exposeMask.value = e, this.currentMask = this.exposeMask, this._applyDispatch()) : super.value = e;
|
|
99
|
-
}
|
|
100
|
-
get unmaskedValue() {
|
|
101
|
-
return this.exposeMask ? this.exposeMask.unmaskedValue : this.currentMask ? this.currentMask.unmaskedValue : "";
|
|
102
|
-
}
|
|
103
|
-
set unmaskedValue(e) {
|
|
104
|
-
this.exposeMask ? (this.exposeMask.unmaskedValue = e, this.currentMask = this.exposeMask, this._applyDispatch()) : super.unmaskedValue = e;
|
|
105
|
-
}
|
|
106
|
-
get typedValue() {
|
|
107
|
-
return this.exposeMask ? this.exposeMask.typedValue : this.currentMask ? this.currentMask.typedValue : "";
|
|
108
|
-
}
|
|
109
|
-
set typedValue(e) {
|
|
110
|
-
if (this.exposeMask) {
|
|
111
|
-
this.exposeMask.typedValue = e, this.currentMask = this.exposeMask, this._applyDispatch();
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
let t = String(e);
|
|
115
|
-
this.currentMask && (this.currentMask.typedValue = e, t = this.currentMask.unmaskedValue), this.unmaskedValue = t;
|
|
116
|
-
}
|
|
117
|
-
get displayValue() {
|
|
118
|
-
return this.currentMask ? this.currentMask.displayValue : "";
|
|
119
|
-
}
|
|
120
|
-
get isComplete() {
|
|
121
|
-
var e;
|
|
122
|
-
return !!((e = this.currentMask) != null && e.isComplete);
|
|
123
|
-
}
|
|
124
|
-
get isFilled() {
|
|
125
|
-
var e;
|
|
126
|
-
return !!((e = this.currentMask) != null && e.isFilled);
|
|
127
|
-
}
|
|
128
|
-
remove(e, t) {
|
|
129
|
-
const s = new l();
|
|
130
|
-
return this.currentMask && s.aggregate(this.currentMask.remove(e, t)).aggregate(this._applyDispatch()), s;
|
|
131
|
-
}
|
|
132
|
-
get state() {
|
|
133
|
-
var e;
|
|
134
|
-
return {
|
|
135
|
-
...super.state,
|
|
136
|
-
_rawInputValue: this.rawInputValue,
|
|
137
|
-
compiledMasks: this.compiledMasks.map((t) => t.state),
|
|
138
|
-
currentMaskRef: this.currentMask,
|
|
139
|
-
currentMask: (e = this.currentMask) == null ? void 0 : e.state
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
set state(e) {
|
|
143
|
-
const {
|
|
144
|
-
compiledMasks: t,
|
|
145
|
-
currentMaskRef: s,
|
|
146
|
-
currentMask: a,
|
|
147
|
-
...i
|
|
148
|
-
} = e;
|
|
149
|
-
t && this.compiledMasks.forEach((r, u) => r.state = t[u]), s != null && (this.currentMask = s, this.currentMask.state = a), super.state = i;
|
|
150
|
-
}
|
|
151
|
-
extractInput(e, t, s) {
|
|
152
|
-
return this.currentMask ? this.currentMask.extractInput(e, t, s) : "";
|
|
153
|
-
}
|
|
154
|
-
extractTail(e, t) {
|
|
155
|
-
return this.currentMask ? this.currentMask.extractTail(e, t) : super.extractTail(e, t);
|
|
156
|
-
}
|
|
157
|
-
doCommit() {
|
|
158
|
-
this.currentMask && this.currentMask.doCommit(), super.doCommit();
|
|
159
|
-
}
|
|
160
|
-
nearestInputPos(e, t) {
|
|
161
|
-
return this.currentMask ? this.currentMask.nearestInputPos(e, t) : super.nearestInputPos(e, t);
|
|
162
|
-
}
|
|
163
|
-
get overwrite() {
|
|
164
|
-
return this.currentMask ? this.currentMask.overwrite : this._overwrite;
|
|
165
|
-
}
|
|
166
|
-
set overwrite(e) {
|
|
167
|
-
this._overwrite = e;
|
|
168
|
-
}
|
|
169
|
-
get eager() {
|
|
170
|
-
return this.currentMask ? this.currentMask.eager : this._eager;
|
|
171
|
-
}
|
|
172
|
-
set eager(e) {
|
|
173
|
-
this._eager = e;
|
|
174
|
-
}
|
|
175
|
-
get skipInvalid() {
|
|
176
|
-
return this.currentMask ? this.currentMask.skipInvalid : this._skipInvalid;
|
|
177
|
-
}
|
|
178
|
-
set skipInvalid(e) {
|
|
179
|
-
this._skipInvalid = e;
|
|
180
|
-
}
|
|
181
|
-
get autofix() {
|
|
182
|
-
return this.currentMask ? this.currentMask.autofix : this._autofix;
|
|
183
|
-
}
|
|
184
|
-
set autofix(e) {
|
|
185
|
-
this._autofix = e;
|
|
186
|
-
}
|
|
187
|
-
maskEquals(e) {
|
|
188
|
-
return Array.isArray(e) ? this.compiledMasks.every((t, s) => {
|
|
189
|
-
if (!e[s]) return;
|
|
190
|
-
const {
|
|
191
|
-
mask: a,
|
|
192
|
-
...i
|
|
193
|
-
} = e[s];
|
|
194
|
-
return d(t, i) && t.maskEquals(a);
|
|
195
|
-
}) : super.maskEquals(e);
|
|
196
|
-
}
|
|
197
|
-
typedValueEquals(e) {
|
|
198
|
-
var t;
|
|
199
|
-
return !!((t = this.currentMask) != null && t.typedValueEquals(e));
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
h.DEFAULTS = {
|
|
203
|
-
...k.DEFAULTS,
|
|
204
|
-
dispatch: (M, e, t, s) => {
|
|
205
|
-
if (!e.compiledMasks.length) return;
|
|
206
|
-
const a = e.rawInputValue, i = e.compiledMasks.map((r, u) => {
|
|
207
|
-
const n = e.currentMask === r, p = n ? r.displayValue.length : r.nearestInputPos(r.displayValue.length, c.FORCE_LEFT);
|
|
208
|
-
return r.rawInputValue !== a ? (r.reset(), r.append(a, {
|
|
209
|
-
raw: !0
|
|
210
|
-
})) : n || r.remove(p), r.append(M, e.currentMaskFlags(t)), r.appendTail(s), {
|
|
211
|
-
index: u,
|
|
212
|
-
weight: r.rawInputValue.length,
|
|
213
|
-
totalInputPositions: r.totalInputPositions(0, Math.max(p, r.nearestInputPos(r.displayValue.length, c.FORCE_LEFT)))
|
|
214
|
-
};
|
|
215
|
-
});
|
|
216
|
-
return i.sort((r, u) => u.weight - r.weight || u.totalInputPositions - r.totalInputPositions), e.compiledMasks[i[0].index];
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
g.MaskedDynamic = h;
|
|
220
|
-
export {
|
|
221
|
-
h as default
|
|
222
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import m from "./pattern.js";
|
|
2
|
-
import c from "../core/holder.js";
|
|
3
|
-
import l from "../core/change-details.js";
|
|
4
|
-
import { DIRECTION as p } from "../core/utils.js";
|
|
5
|
-
import d from "../core/continuous-tail-details.js";
|
|
6
|
-
import "./base.js";
|
|
7
|
-
import "./factory.js";
|
|
8
|
-
import "./pattern/input-definition.js";
|
|
9
|
-
import "./regexp.js";
|
|
10
|
-
class r extends m {
|
|
11
|
-
constructor(e) {
|
|
12
|
-
super({
|
|
13
|
-
...r.DEFAULTS,
|
|
14
|
-
...e
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
updateOptions(e) {
|
|
18
|
-
super.updateOptions(e);
|
|
19
|
-
}
|
|
20
|
-
_update(e) {
|
|
21
|
-
const {
|
|
22
|
-
enum: t,
|
|
23
|
-
...s
|
|
24
|
-
} = e;
|
|
25
|
-
if (t) {
|
|
26
|
-
const i = t.map((h) => h.length), a = Math.min(...i), n = Math.max(...i) - a;
|
|
27
|
-
s.mask = "*".repeat(a), n && (s.mask += "[" + "*".repeat(n) + "]"), this.enum = t;
|
|
28
|
-
}
|
|
29
|
-
super._update(s);
|
|
30
|
-
}
|
|
31
|
-
_appendCharRaw(e, t) {
|
|
32
|
-
t === void 0 && (t = {});
|
|
33
|
-
const s = Math.min(this.nearestInputPos(0, p.FORCE_RIGHT), this.value.length), i = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, s));
|
|
34
|
-
if (i.length) {
|
|
35
|
-
i.length === 1 && this._forEachBlocksInRange(0, this.value.length, (n, h) => {
|
|
36
|
-
const u = i[0][h];
|
|
37
|
-
h >= this.value.length || u === n.value || (n.reset(), n._appendChar(u, t));
|
|
38
|
-
});
|
|
39
|
-
const a = super._appendCharRaw(i[0][this.value.length], t);
|
|
40
|
-
return i.length === 1 && i[0].slice(this.unmaskedValue.length).split("").forEach((n) => a.aggregate(super._appendCharRaw(n))), a;
|
|
41
|
-
}
|
|
42
|
-
return new l({
|
|
43
|
-
skip: !this.isComplete
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
extractTail(e, t) {
|
|
47
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new d("", e);
|
|
48
|
-
}
|
|
49
|
-
remove(e, t) {
|
|
50
|
-
if (e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), e === t) return new l();
|
|
51
|
-
const s = Math.min(super.nearestInputPos(0, p.FORCE_RIGHT), this.value.length);
|
|
52
|
-
let i;
|
|
53
|
-
for (i = e; i >= 0 && !(this.enum.filter((h) => this.matchValue(h, this.value.slice(s, i), s)).length > 1); --i)
|
|
54
|
-
;
|
|
55
|
-
const a = super.remove(i, t);
|
|
56
|
-
return a.tailShift += i - e, a;
|
|
57
|
-
}
|
|
58
|
-
get isComplete() {
|
|
59
|
-
return this.enum.indexOf(this.value) >= 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
r.DEFAULTS = {
|
|
63
|
-
...m.DEFAULTS,
|
|
64
|
-
matchValue: (o, e, t) => o.indexOf(e, t) === t
|
|
65
|
-
};
|
|
66
|
-
c.MaskedEnum = r;
|
|
67
|
-
export {
|
|
68
|
-
r as default
|
|
69
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { isObject as t, pick as o, isString as f } from "../core/utils.js";
|
|
2
|
-
import r from "../core/holder.js";
|
|
3
|
-
function d(e) {
|
|
4
|
-
if (e == null) throw new Error("mask property should be defined");
|
|
5
|
-
return e instanceof RegExp ? r.MaskedRegExp : f(e) ? r.MaskedPattern : e === Date ? r.MaskedDate : e === Number ? r.MaskedNumber : Array.isArray(e) || e === Array ? r.MaskedDynamic : r.Masked && e.prototype instanceof r.Masked ? e : r.Masked && e instanceof r.Masked ? e.constructor : e instanceof Function ? r.MaskedFunction : (console.warn("Mask not found for mask", e), r.Masked);
|
|
6
|
-
}
|
|
7
|
-
function k(e) {
|
|
8
|
-
if (!e) throw new Error("Options in not defined");
|
|
9
|
-
if (r.Masked) {
|
|
10
|
-
if (e.prototype instanceof r.Masked) return {
|
|
11
|
-
mask: e
|
|
12
|
-
};
|
|
13
|
-
const {
|
|
14
|
-
mask: n = void 0,
|
|
15
|
-
...a
|
|
16
|
-
} = e instanceof r.Masked ? {
|
|
17
|
-
mask: e
|
|
18
|
-
} : t(e) && e.mask instanceof r.Masked ? e : {};
|
|
19
|
-
if (n) {
|
|
20
|
-
const s = n.mask;
|
|
21
|
-
return {
|
|
22
|
-
...o(n, (c, i) => !i.startsWith("_")),
|
|
23
|
-
mask: n.constructor,
|
|
24
|
-
_mask: s,
|
|
25
|
-
...a
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return t(e) ? {
|
|
30
|
-
...e
|
|
31
|
-
} : {
|
|
32
|
-
mask: e
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function u(e) {
|
|
36
|
-
if (r.Masked && e instanceof r.Masked) return e;
|
|
37
|
-
const n = k(e), a = d(n.mask);
|
|
38
|
-
if (!a) throw new Error("Masked class is not found for provided mask " + n.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
39
|
-
return n.mask === a && delete n.mask, n._mask && (n.mask = n._mask, delete n._mask), new a(n);
|
|
40
|
-
}
|
|
41
|
-
r.createMask = u;
|
|
42
|
-
export {
|
|
43
|
-
u as default,
|
|
44
|
-
d as maskedClass,
|
|
45
|
-
k as normalizeOpts
|
|
46
|
-
};
|