laif-ds 0.1.9 → 0.1.11
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- 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 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- 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 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- 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/create.js +0 -16
- 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/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- 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 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- 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 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
const i = ({ className: l }) => /* @__PURE__ */ t(
|
|
4
4
|
"svg",
|
|
5
5
|
{
|
|
6
6
|
className: l,
|
|
@@ -10,7 +10,7 @@ const n = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
10
10
|
fill: "none",
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
children: [
|
|
13
|
-
/* @__PURE__ */ e
|
|
13
|
+
/* @__PURE__ */ e(
|
|
14
14
|
"path",
|
|
15
15
|
{
|
|
16
16
|
fillRule: "evenodd",
|
|
@@ -19,7 +19,7 @@ const n = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
19
19
|
fill: "var(--gantt-control-element-bg)"
|
|
20
20
|
}
|
|
21
21
|
),
|
|
22
|
-
/* @__PURE__ */ e
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
25
|
fillRule: "evenodd",
|
|
@@ -32,5 +32,5 @@ const n = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
i as MinusSquareOutlined
|
|
36
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
const d = ({ className: l }) => /* @__PURE__ */ t(
|
|
4
4
|
"svg",
|
|
5
5
|
{
|
|
6
6
|
className: l,
|
|
@@ -10,7 +10,7 @@ const o = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
10
10
|
fill: "none",
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
children: [
|
|
13
|
-
/* @__PURE__ */ e
|
|
13
|
+
/* @__PURE__ */ e(
|
|
14
14
|
"path",
|
|
15
15
|
{
|
|
16
16
|
fillRule: "evenodd",
|
|
@@ -19,7 +19,7 @@ const o = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
19
19
|
fill: "var(--gantt-control-element-bg)"
|
|
20
20
|
}
|
|
21
21
|
),
|
|
22
|
-
/* @__PURE__ */ e
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
25
|
fillRule: "evenodd",
|
|
@@ -28,7 +28,7 @@ const o = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
28
28
|
fill: "var(--gantt-text-color)"
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
/* @__PURE__ */ e
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
32
|
"path",
|
|
33
33
|
{
|
|
34
34
|
fillRule: "evenodd",
|
|
@@ -41,5 +41,5 @@ const o = ({ className: l }) => /* @__PURE__ */ e.jsxs(
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
d as PlusSquareOutlined
|
|
45
45
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { DndContext as
|
|
5
|
-
import { createSnapModifier as
|
|
2
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as F, useContext as L, useMemo as E, useCallback as P } from "react";
|
|
4
|
+
import { DndContext as N } from "../../../../../../node_modules/@dnd-kit/core/dist/core.esm.js";
|
|
5
|
+
import { createSnapModifier as j, restrictToHorizontalAxis as K } from "../../../../../../node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js";
|
|
6
6
|
import p from "../../../../../../_virtual/dayjs.min.js";
|
|
7
7
|
import { VariableSizeList as O } from "../../../../../../node_modules/react-window/dist/index.esm.js";
|
|
8
8
|
import { GanttContext as B } from "../../Gantt/GanttContext.js";
|
|
@@ -10,33 +10,33 @@ import { getWholeWidth as V } from "../../../utils/getWholeWidth.js";
|
|
|
10
10
|
import q from "./BarsRow/BarsRow.js";
|
|
11
11
|
import { GanttConsts as J } from "../../../constants/GanttConsts.js";
|
|
12
12
|
import { DragTypes as u } from "../../../enums/DragTypes.js";
|
|
13
|
-
const Q = ({ scaleWidth:
|
|
14
|
-
({ width:
|
|
15
|
-
const { settings: n, scaleDates: S } =
|
|
13
|
+
const Q = ({ scaleWidth: D, style: y, children: c, ...h }) => /* @__PURE__ */ T("div", { style: { ...y, width: D, position: "relative" }, ...h, children: c }), U = F(
|
|
14
|
+
({ width: D, height: y, data: c, setData: h, onBarDoubleClick: W, onBarChange: x }, v) => {
|
|
15
|
+
const { settings: n, scaleDates: S } = L(B), H = E(() => V(
|
|
16
16
|
S,
|
|
17
17
|
n.dimension,
|
|
18
18
|
n.scaleStepItems,
|
|
19
19
|
n.stepWidth
|
|
20
|
-
), [S, n.dimension, n.scaleStepItems, n.stepWidth]),
|
|
20
|
+
), [S, n.dimension, n.scaleStepItems, n.stepWidth]), _ = E(() => j(n.gridSize), [n.gridSize]), I = E(() => {
|
|
21
21
|
const l = [];
|
|
22
22
|
for (const o of c)
|
|
23
23
|
o.hasOwnProperty("expanded") && !o.expanded && l.push(o.key);
|
|
24
24
|
return c.filter((o) => !o.parentsKeys.some((m) => l.includes(m)));
|
|
25
|
-
}, [c]),
|
|
25
|
+
}, [c]), Z = P(() => J.ROW_HEIGHT, []), A = P(
|
|
26
26
|
(l) => {
|
|
27
|
-
var R, b,
|
|
27
|
+
var R, b, G, M, g, z, k, C;
|
|
28
28
|
const o = l.delta.x * n.secondsInPixel, i = 3600 * 24, m = n.gridSize * n.secondsInPixel, w = [...c], t = w.find((a) => a.key === l.active.id), r = l.activatorEvent.target;
|
|
29
29
|
if ((R = t == null ? void 0 : t.data) != null && R.repeatType && +((b = r == null ? void 0 : r.dataset) == null ? void 0 : b.dragtype) === u.RESIZE_RIGHT) {
|
|
30
30
|
const { fromTime: a, toTime: s } = t.data;
|
|
31
31
|
let e = s + o;
|
|
32
32
|
s > a && e - a >= i || s < a && e > a ? e = a - 1 : s > a && e < a || s < a && a - e >= i ? e = a + m : e < 0 ? e = e + i : e >= i && (e = e - i), t.data.toTime = Math.round(e);
|
|
33
33
|
}
|
|
34
|
-
if ((
|
|
34
|
+
if ((G = t == null ? void 0 : t.data) != null && G.repeatType && +((M = r == null ? void 0 : r.dataset) == null ? void 0 : M.dragtype) === u.RESIZE_LEFT) {
|
|
35
35
|
const { fromTime: a, toTime: s } = t.data;
|
|
36
36
|
let e = a + o;
|
|
37
37
|
a < s && s - e >= i || a > s && e < s ? e = s + 1 : a < s && e > s || a > s && e - s >= i ? e = s - m : e < 0 ? e = e + i : e >= i && (e = e - i), t.data.fromTime = Math.round(e);
|
|
38
38
|
}
|
|
39
|
-
if ((
|
|
39
|
+
if ((g = t == null ? void 0 : t.data) != null && g.repeatType && +((z = r == null ? void 0 : r.dataset) == null ? void 0 : z.dragtype) === u.DRAG) {
|
|
40
40
|
const { fromTime: a, toTime: s } = t.data;
|
|
41
41
|
let e = a + o, d = s + o;
|
|
42
42
|
for (; e < 0; )
|
|
@@ -49,11 +49,11 @@ const Q = ({ scaleWidth: h, style: D, children: c, ...x }) => /* @__PURE__ */ T.
|
|
|
49
49
|
d = d - i;
|
|
50
50
|
t.data.fromTime = Math.round(e), t.data.toTime = Math.round(d);
|
|
51
51
|
}
|
|
52
|
-
if (t != null && t.data && !((
|
|
52
|
+
if (t != null && t.data && !((k = t == null ? void 0 : t.data) != null && k.repeatType)) {
|
|
53
53
|
const { startDate: a, endDate: s } = t.data;
|
|
54
54
|
if (a && s) {
|
|
55
55
|
const e = p(a).unix(), d = p(s).unix();
|
|
56
|
-
switch (+((
|
|
56
|
+
switch (+((C = r == null ? void 0 : r.dataset) == null ? void 0 : C.dragtype)) {
|
|
57
57
|
case u.RESIZE_LEFT: {
|
|
58
58
|
let f = e + o;
|
|
59
59
|
d - f < m && (f = d - m), t.data.startDate = p.unix(f).format();
|
|
@@ -71,35 +71,35 @@ const Q = ({ scaleWidth: h, style: D, children: c, ...x }) => /* @__PURE__ */ T.
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
x && x(t, w), h(w);
|
|
75
75
|
},
|
|
76
|
-
[c,
|
|
76
|
+
[c, x, h, n.gridSize, n.secondsInPixel]
|
|
77
77
|
);
|
|
78
|
-
return /* @__PURE__ */ T
|
|
79
|
-
|
|
78
|
+
return /* @__PURE__ */ T("div", { className: "gantt-bars-wrap", children: /* @__PURE__ */ T(
|
|
79
|
+
N,
|
|
80
80
|
{
|
|
81
|
-
modifiers: [K,
|
|
82
|
-
onDragEnd:
|
|
81
|
+
modifiers: [K, _],
|
|
82
|
+
onDragEnd: A,
|
|
83
83
|
autoScroll: !1,
|
|
84
|
-
children: /* @__PURE__ */ T
|
|
84
|
+
children: /* @__PURE__ */ T(
|
|
85
85
|
O,
|
|
86
86
|
{
|
|
87
|
-
ref:
|
|
87
|
+
ref: v,
|
|
88
88
|
className: "gantt-bars-list",
|
|
89
89
|
layout: "vertical",
|
|
90
|
-
width:
|
|
91
|
-
height:
|
|
90
|
+
width: D,
|
|
91
|
+
height: y,
|
|
92
92
|
itemCount: I.length,
|
|
93
|
-
itemSize:
|
|
93
|
+
itemSize: Z,
|
|
94
94
|
itemData: I,
|
|
95
|
-
innerElementType: (l) => /* @__PURE__ */ T
|
|
96
|
-
children: ({ style: l, data: o, index: i }) => /* @__PURE__ */ T
|
|
95
|
+
innerElementType: (l) => /* @__PURE__ */ T(Q, { scaleWidth: H, ...l }),
|
|
96
|
+
children: ({ style: l, data: o, index: i }) => /* @__PURE__ */ T(
|
|
97
97
|
q,
|
|
98
98
|
{
|
|
99
99
|
barData: o[i],
|
|
100
100
|
index: i,
|
|
101
101
|
style: l,
|
|
102
|
-
onBarDoubleClick:
|
|
102
|
+
onBarDoubleClick: W
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
}
|
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { memo as
|
|
4
|
-
import { useDraggable as
|
|
5
|
-
import
|
|
6
|
-
import { cn as
|
|
7
|
-
import { TooltipProvider as
|
|
8
|
-
import { BarsRowContext as
|
|
9
|
-
import { GanttContext as
|
|
10
|
-
import { DragTypes as
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
({ title:
|
|
14
|
-
const { scaleDates:
|
|
15
|
-
id:
|
|
2
|
+
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import { memo as W, useContext as D, useMemo as l, useCallback as E } from "react";
|
|
4
|
+
import { useDraggable as H } from "../../../../../../../../node_modules/@dnd-kit/core/dist/core.esm.js";
|
|
5
|
+
import G from "../../../../../../../../_virtual/dayjs.min.js";
|
|
6
|
+
import { cn as P } from "../../../../../../../../lib/utils.js";
|
|
7
|
+
import { TooltipProvider as X, Tooltip as B, TooltipTrigger as M, TooltipContent as O } from "../../../../../../tooltip.js";
|
|
8
|
+
import { BarsRowContext as U } from "../BarsRowContext.js";
|
|
9
|
+
import { GanttContext as q } from "../../../../Gantt/GanttContext.js";
|
|
10
|
+
import { DragTypes as s } from "../../../../../enums/DragTypes.js";
|
|
11
|
+
let R;
|
|
12
|
+
const J = W(
|
|
13
|
+
({ title: L, barKey: A, startDate: d, endDate: x, repetead: N, onBarDoubleClick: T, leftRender: h }) => {
|
|
14
|
+
const { scaleDates: S, settings: n } = D(q), { barData: g } = D(U), e = n.draggable === !0, { attributes: b, listeners: a, transform: w, activatorEvent: c, setNodeRef: k, setActivatorNodeRef: v } = H({
|
|
15
|
+
id: A,
|
|
16
16
|
disabled: !e
|
|
17
|
-
}),
|
|
18
|
-
var
|
|
19
|
-
const
|
|
20
|
-
return +((
|
|
17
|
+
}), f = l(() => (x - d) / n.secondsInPixel, [x, n.secondsInPixel, d]), y = l(() => N ? (24 * 3600 - 1) / n.secondsInPixel : 0, [N, n.secondsInPixel]), C = l(() => (d - S[0]) / n.secondsInPixel, [S, n.secondsInPixel, d]), o = l(() => {
|
|
18
|
+
var m;
|
|
19
|
+
const t = c == null ? void 0 : c.target;
|
|
20
|
+
return +((m = t == null ? void 0 : t.dataset) == null ? void 0 : m.dragtype);
|
|
21
21
|
}, [c == null ? void 0 : c.target]), r = l(() => {
|
|
22
|
-
if (!
|
|
22
|
+
if (!w)
|
|
23
23
|
return 0;
|
|
24
|
-
const
|
|
25
|
-
let u =
|
|
26
|
-
return u !== 0 &&
|
|
27
|
-
}, [
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
d + (
|
|
24
|
+
const t = y ? y - f : null, m = n.gridSize - f;
|
|
25
|
+
let u = o === s.RESIZE_LEFT ? -w.x : w.x;
|
|
26
|
+
return u !== 0 && o !== s.DRAG && (t !== null && u > t && (u = t), u < m && (u = m)), u;
|
|
27
|
+
}, [o, y, n.gridSize, f, w]), I = l(() => o === s.DRAG ? f : f + r, [o, r, f]), Z = l(() => o === s.DRAG ? `translateX(${r}px)` : `translateX(${o === s.RESIZE_LEFT ? -r : 0}px)`, [o, r]), _ = l(() => {
|
|
28
|
+
const t = [s.RESIZE_LEFT, s.DRAG].includes(o) ? r * n.secondsInPixel : 0;
|
|
29
|
+
return G.unix(
|
|
30
|
+
d + (o === s.RESIZE_LEFT ? -t : t)
|
|
31
31
|
).format("L LTS");
|
|
32
|
-
}, [
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
}, [
|
|
36
|
-
|
|
37
|
-
}, [
|
|
38
|
-
(
|
|
39
|
-
e && (
|
|
40
|
-
a != null && a.onPointerDown && a.onPointerDown(
|
|
32
|
+
}, [o, r, n.secondsInPixel, d]), j = l(() => {
|
|
33
|
+
const t = [s.RESIZE_RIGHT, s.DRAG].includes(o) ? r * n.secondsInPixel : 0;
|
|
34
|
+
return G.unix(x + t).format("L LTS");
|
|
35
|
+
}, [o, r, x, n.secondsInPixel]), z = E(() => {
|
|
36
|
+
T && T(g);
|
|
37
|
+
}, [g, T]), F = E(
|
|
38
|
+
(t) => {
|
|
39
|
+
e && (R = setTimeout(() => {
|
|
40
|
+
a != null && a.onPointerDown && a.onPointerDown(t);
|
|
41
41
|
}, 200));
|
|
42
42
|
},
|
|
43
43
|
[a, e]
|
|
44
|
-
),
|
|
45
|
-
|
|
44
|
+
), $ = E(() => {
|
|
45
|
+
R && clearTimeout(R);
|
|
46
46
|
}, []);
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ i(X, { children: /* @__PURE__ */ p(B, { children: [
|
|
48
|
+
/* @__PURE__ */ i(M, { asChild: !0, children: /* @__PURE__ */ i(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: "absolute flex items-center z-10",
|
|
52
52
|
style: {
|
|
53
53
|
height: "40px",
|
|
54
54
|
top: 0,
|
|
55
|
-
left:
|
|
56
|
-
width:
|
|
57
|
-
transform:
|
|
55
|
+
left: C,
|
|
56
|
+
width: I,
|
|
57
|
+
transform: Z
|
|
58
58
|
},
|
|
59
|
-
ref:
|
|
60
|
-
children: /* @__PURE__ */
|
|
59
|
+
ref: k,
|
|
60
|
+
children: /* @__PURE__ */ p(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: "flex justify-between items-center w-full h-6 rounded px-0.5 text-white",
|
|
64
|
-
"data-dragtype":
|
|
64
|
+
"data-dragtype": s.DRAG,
|
|
65
65
|
...e ? a : {},
|
|
66
|
-
...e ?
|
|
67
|
-
onPointerDown:
|
|
68
|
-
onPointerUp:
|
|
69
|
-
onDoubleClick:
|
|
66
|
+
...e ? b : {},
|
|
67
|
+
onPointerDown: F,
|
|
68
|
+
onPointerUp: $,
|
|
69
|
+
onDoubleClick: z,
|
|
70
70
|
style: {
|
|
71
|
-
backgroundColor:
|
|
71
|
+
backgroundColor: g.color,
|
|
72
72
|
...e ? {} : { cursor: "default" }
|
|
73
73
|
},
|
|
74
74
|
children: [
|
|
75
|
-
e && /* @__PURE__ */
|
|
75
|
+
e && /* @__PURE__ */ p(
|
|
76
76
|
"div",
|
|
77
77
|
{
|
|
78
|
-
className:
|
|
78
|
+
className: P(
|
|
79
79
|
"flex-shrink-0 flex justify-between w-2.5 h-full rounded bg-black/25 cursor-w-resize",
|
|
80
|
-
|
|
80
|
+
I < 25 && "hidden group-hover:flex"
|
|
81
81
|
),
|
|
82
|
-
ref: e ?
|
|
83
|
-
"data-dragtype":
|
|
82
|
+
ref: e ? v : void 0,
|
|
83
|
+
"data-dragtype": s.RESIZE_LEFT,
|
|
84
84
|
...e ? a : {},
|
|
85
|
-
...e ?
|
|
85
|
+
...e ? b : {},
|
|
86
86
|
style: {
|
|
87
87
|
...e ? {} : { cursor: "default", pointerEvents: "none" }
|
|
88
88
|
},
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ i("span", { className: "w-0.5 h-full bg-white/60" }),
|
|
91
|
+
/* @__PURE__ */ i("span", { className: "w-0.5 h-full bg-white/60" })
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ p(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
|
-
className:
|
|
98
|
+
className: P(
|
|
99
99
|
"px-2 overflow-hidden whitespace-nowrap text-ellipsis select-none flex items-center gap-2",
|
|
100
|
-
|
|
100
|
+
I < 100 && "hidden"
|
|
101
101
|
),
|
|
102
|
-
"data-dragtype":
|
|
102
|
+
"data-dragtype": s.DRAG,
|
|
103
103
|
children: [
|
|
104
|
-
|
|
104
|
+
h && /* @__PURE__ */ i(
|
|
105
105
|
"div",
|
|
106
106
|
{
|
|
107
107
|
className: "flex-shrink-0",
|
|
108
|
-
onClick: (
|
|
109
|
-
|
|
108
|
+
onClick: (t) => {
|
|
109
|
+
t.stopPropagation();
|
|
110
110
|
},
|
|
111
|
-
children: typeof
|
|
111
|
+
children: typeof h == "function" ? h(g) : h
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ i("div", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: L })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
|
-
e && /* @__PURE__ */
|
|
118
|
+
e && /* @__PURE__ */ p(
|
|
119
119
|
"div",
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
121
|
+
className: P(
|
|
122
122
|
"flex-shrink-0 flex justify-between w-2.5 h-full rounded bg-black/25 cursor-e-resize",
|
|
123
|
-
|
|
123
|
+
I < 25 && "hidden group-hover:flex"
|
|
124
124
|
),
|
|
125
|
-
ref: e ?
|
|
126
|
-
"data-dragtype":
|
|
125
|
+
ref: e ? v : void 0,
|
|
126
|
+
"data-dragtype": s.RESIZE_RIGHT,
|
|
127
127
|
...e ? a : {},
|
|
128
|
-
...e ?
|
|
128
|
+
...e ? b : {},
|
|
129
129
|
style: {
|
|
130
130
|
...e ? {} : { cursor: "default", pointerEvents: "none" }
|
|
131
131
|
},
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ i("span", { className: "w-0.5 h-full bg-white/60" }),
|
|
134
|
+
/* @__PURE__ */ i("span", { className: "w-0.5 h-full bg-white/60" })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
)
|
|
@@ -140,19 +140,19 @@ const q = $(
|
|
|
140
140
|
)
|
|
141
141
|
}
|
|
142
142
|
) }),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
143
|
+
/* @__PURE__ */ i(
|
|
144
|
+
O,
|
|
145
145
|
{
|
|
146
146
|
side: "top",
|
|
147
147
|
className: "min-w-max text-xs",
|
|
148
148
|
sideOffset: 5,
|
|
149
|
-
children: `${
|
|
149
|
+
children: `${_} → ${j}`
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
] }) });
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
|
-
|
|
155
|
+
J.displayName = "BarItem";
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
J as default
|
|
158
158
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as l, useMemo as n } from "react";
|
|
4
|
-
import
|
|
4
|
+
import x from "../../../../../../../../_virtual/dayjs.min.js";
|
|
5
5
|
import { GanttContext as I } from "../../../../Gantt/GanttContext.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
const { scaleDates: r, scaleRenderState: t } = l(I), u = n(() => r[t.overscanStartIndex], [r, t.overscanStartIndex]), p = n(() => r[t.overscanStopIndex], [r, t.overscanStopIndex]),
|
|
10
|
-
return e ? e.repeatType ? /* @__PURE__ */
|
|
11
|
-
|
|
6
|
+
import S from "../RepeteadBars/RepeteadBars.js";
|
|
7
|
+
import v from "../BarItem/BarItem.js";
|
|
8
|
+
const M = ({ data: e, title: s, barKey: o, leftRender: D, onBarDoubleClick: m }) => {
|
|
9
|
+
const { scaleDates: r, scaleRenderState: t } = l(I), u = n(() => r[t.overscanStartIndex], [r, t.overscanStartIndex]), p = n(() => r[t.overscanStopIndex], [r, t.overscanStopIndex]), c = n(() => x(e == null ? void 0 : e.startDate).unix(), [e == null ? void 0 : e.startDate]), f = n(() => x(e == null ? void 0 : e.endDate).unix(), [e == null ? void 0 : e.endDate]);
|
|
10
|
+
return e ? e.repeatType ? /* @__PURE__ */ i(
|
|
11
|
+
S,
|
|
12
12
|
{
|
|
13
13
|
data: e,
|
|
14
14
|
firstRenderedDate: u,
|
|
@@ -17,13 +17,13 @@ const G = ({ data: e, title: s, barKey: o, leftRender: D, onBarDoubleClick: m })
|
|
|
17
17
|
barKey: o,
|
|
18
18
|
onBarDoubleClick: m
|
|
19
19
|
}
|
|
20
|
-
) :
|
|
21
|
-
|
|
20
|
+
) : c > p || f < u ? null : /* @__PURE__ */ i(
|
|
21
|
+
v,
|
|
22
22
|
{
|
|
23
23
|
title: s,
|
|
24
24
|
barKey: o,
|
|
25
|
-
startDate:
|
|
26
|
-
endDate:
|
|
25
|
+
startDate: c,
|
|
26
|
+
endDate: f,
|
|
27
27
|
repetead: !1,
|
|
28
28
|
leftRender: D,
|
|
29
29
|
onBarDoubleClick: m
|
|
@@ -32,5 +32,5 @@ const G = ({ data: e, title: s, barKey: o, leftRender: D, onBarDoubleClick: m })
|
|
|
32
32
|
) : null;
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
M as default
|
|
36
36
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as a, useMemo as
|
|
4
|
-
import { BarsRowContext as
|
|
5
|
-
import { GanttContext as
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as a, useMemo as d } from "react";
|
|
4
|
+
import { BarsRowContext as m } from "./BarsRowContext.js";
|
|
5
|
+
import { GanttContext as p } from "../../../Gantt/GanttContext.js";
|
|
6
6
|
import l from "./BarsItems/BarItems.js";
|
|
7
|
-
const v = ({ barData: t, index: r, style: o, onBarDoubleClick:
|
|
8
|
-
const { settings:
|
|
7
|
+
const v = ({ barData: t, index: r, style: o, onBarDoubleClick: s }) => {
|
|
8
|
+
const { settings: n } = a(p), i = d(() => ({
|
|
9
9
|
...o,
|
|
10
|
-
backgroundImage: `repeating-linear-gradient(to right, var(--border) 0px 1px, ${r % 2 === 0 ? "var(--background)" : "var(--muted)"} 1px ${
|
|
11
|
-
}), [r,
|
|
12
|
-
return /* @__PURE__ */ e
|
|
10
|
+
backgroundImage: `repeating-linear-gradient(to right, var(--border) 0px 1px, ${r % 2 === 0 ? "var(--background)" : "var(--muted)"} 1px ${n.stepWidth}px`
|
|
11
|
+
}), [r, n.stepWidth, o]);
|
|
12
|
+
return /* @__PURE__ */ e(m.Provider, { value: { barData: t }, children: /* @__PURE__ */ e("div", { className: "gantt-bars-row-wrap", style: i, children: /* @__PURE__ */ e(
|
|
13
13
|
l,
|
|
14
14
|
{
|
|
15
15
|
data: t.data,
|
|
16
16
|
title: t.title,
|
|
17
17
|
barKey: t.key,
|
|
18
18
|
leftRender: t.leftRender,
|
|
19
|
-
onBarDoubleClick:
|
|
19
|
+
onBarDoubleClick: s
|
|
20
20
|
}
|
|
21
21
|
) }) });
|
|
22
22
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as h, Fragment as E } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as f } from "react";
|
|
4
4
|
import u from "../../../../../../../../_virtual/dayjs.min.js";
|
|
5
|
-
import { GanttConsts as
|
|
6
|
-
import { DataRepeatTypes as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
5
|
+
import { GanttConsts as c } from "../../../../../constants/GanttConsts.js";
|
|
6
|
+
import { DataRepeatTypes as p } from "../../../../../enums/DataRepeatTimes.js";
|
|
7
|
+
import O from "../BarItem/BarItem.js";
|
|
8
|
+
const k = ({
|
|
9
9
|
data: o,
|
|
10
10
|
firstRenderedDate: t,
|
|
11
11
|
lastRenderedDate: i,
|
|
12
|
-
title:
|
|
13
|
-
barKey:
|
|
14
|
-
leftRender:
|
|
12
|
+
title: N,
|
|
13
|
+
barKey: D,
|
|
14
|
+
leftRender: x,
|
|
15
15
|
onBarDoubleClick: S
|
|
16
16
|
}) => {
|
|
17
17
|
const s = f(() => {
|
|
@@ -24,52 +24,52 @@ const I = ({
|
|
|
24
24
|
return null;
|
|
25
25
|
const e = o.toDate ? u(o.toDate).unix() : i;
|
|
26
26
|
return e < i ? e : i;
|
|
27
|
-
}, [o.toDate, i]), n = f(() => o.toTime < o.fromTime ? o.toTime +
|
|
28
|
-
var
|
|
27
|
+
}, [o.toDate, i]), n = f(() => o.toTime < o.fromTime ? o.toTime + c.SECONDS_IN_DAY - o.fromTime : o.toTime - o.fromTime, [o.fromTime, o.toTime]), _ = f(() => {
|
|
28
|
+
var l, T;
|
|
29
29
|
if (!s || !m || !n)
|
|
30
30
|
return [];
|
|
31
31
|
const e = [];
|
|
32
32
|
let r = u.unix(s).startOf("day").add(o.fromTime, "seconds").unix();
|
|
33
33
|
switch (o.repeatType) {
|
|
34
|
-
case
|
|
34
|
+
case p.DAY: {
|
|
35
35
|
for (; r <= m; )
|
|
36
36
|
e.push({
|
|
37
37
|
startDate: r,
|
|
38
38
|
endDate: r + n
|
|
39
|
-
}), r = r +
|
|
39
|
+
}), r = r + c.SECONDS_IN_DAY;
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
case
|
|
42
|
+
case p.WEEK:
|
|
43
43
|
for (; r <= m; )
|
|
44
|
-
(
|
|
44
|
+
(l = o.weekdays) != null && l.includes(+u.unix(r).format("d")) && e.push({
|
|
45
45
|
startDate: r,
|
|
46
46
|
endDate: r + n
|
|
47
|
-
}), r = r +
|
|
47
|
+
}), r = r + c.SECONDS_IN_DAY;
|
|
48
48
|
break;
|
|
49
|
-
case
|
|
49
|
+
case p.MONTH:
|
|
50
50
|
for (; r <= m; )
|
|
51
|
-
(
|
|
51
|
+
(T = o.monthdays) != null && T.includes(+u.unix(r).format("D")) && e.push({
|
|
52
52
|
startDate: r,
|
|
53
53
|
endDate: r + n
|
|
54
|
-
}), r = r +
|
|
54
|
+
}), r = r + c.SECONDS_IN_DAY;
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
return e;
|
|
58
58
|
}, [o, n, s, m]);
|
|
59
|
-
return !s || !m ? null : /* @__PURE__ */
|
|
60
|
-
|
|
59
|
+
return !s || !m ? null : /* @__PURE__ */ h(E, { children: _.map(({ startDate: e, endDate: r }) => /* @__PURE__ */ h(
|
|
60
|
+
O,
|
|
61
61
|
{
|
|
62
|
-
title:
|
|
63
|
-
barKey:
|
|
62
|
+
title: N,
|
|
63
|
+
barKey: D,
|
|
64
64
|
startDate: e,
|
|
65
65
|
endDate: r,
|
|
66
66
|
repetead: !0,
|
|
67
|
-
leftRender:
|
|
67
|
+
leftRender: x,
|
|
68
68
|
onBarDoubleClick: S
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
D + e
|
|
71
71
|
)) });
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
k as default
|
|
75
75
|
};
|