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,59 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { GanttContext as
|
|
7
|
-
import { transformData as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
2
|
+
import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
|
|
4
|
+
import A from "../../../../../_virtual/index6.js";
|
|
5
|
+
import B from "../../../../../_virtual/debounce.js";
|
|
6
|
+
import { GanttContext as F } from "../Gantt/GanttContext.js";
|
|
7
|
+
import { transformData as O } from "../../utils/transformData.js";
|
|
8
|
+
import P from "./Scale/Scale.js";
|
|
9
|
+
import q from "./Tree/Tree.js";
|
|
10
|
+
import v from "./Bars/Bars.js";
|
|
11
11
|
import { GanttConsts as m } from "../../constants/GanttConsts.js";
|
|
12
|
-
import { GanttDimensionsSettings as
|
|
13
|
-
const
|
|
14
|
-
const { settings: n, scaleDates: c, wrapRef: t, setCurrentDate: d, treeTitle:
|
|
12
|
+
import { GanttDimensionsSettings as z } from "../../constants/DimensionsSettings.js";
|
|
13
|
+
const et = ({ data: f, className: x, onBarDoubleClick: W, onBarChange: I }) => {
|
|
14
|
+
const { settings: n, scaleDates: c, wrapRef: t, setCurrentDate: d, treeTitle: b } = R(F), h = a(null), T = a(null), g = a(null), [D, i] = s([]), [l, G] = s(!0), [p, L] = s(0), [C, _] = s(0), E = k(() => {
|
|
15
15
|
var r;
|
|
16
16
|
const e = Math.round(
|
|
17
|
-
((((r = t == null ? void 0 : t.current) == null ? void 0 : r.scrollLeft) || 0) + m.TREE_WIDTH) *
|
|
17
|
+
((((r = t == null ? void 0 : t.current) == null ? void 0 : r.scrollLeft) || 0) + m.TREE_WIDTH) * z[n.dimension].secondsInPixel
|
|
18
18
|
);
|
|
19
19
|
d(c[0] + e);
|
|
20
|
-
}, [c, d, n.dimension, t]),
|
|
20
|
+
}, [c, d, n.dimension, t]), j = y(() => B(E, 100), [E]);
|
|
21
21
|
return u(() => {
|
|
22
22
|
var e, r;
|
|
23
|
-
(e = t == null ? void 0 : t.current) != null && e.clientWidth && ((r = t == null ? void 0 : t.current) != null && r.clientHeight) && (
|
|
23
|
+
(e = t == null ? void 0 : t.current) != null && e.clientWidth && ((r = t == null ? void 0 : t.current) != null && r.clientHeight) && (L(t.current.clientWidth - m.TREE_WIDTH), _(t.current.clientHeight - m.HEADER_HEIGHT), G(!1));
|
|
24
24
|
}, []), u(() => {
|
|
25
25
|
!l && t.current && (t.current.scrollLeft = n.initialScrollOffset);
|
|
26
26
|
}, [l]), u(() => {
|
|
27
|
-
i(
|
|
28
|
-
}, [f]), /* @__PURE__ */
|
|
27
|
+
i(O(f));
|
|
28
|
+
}, [f]), /* @__PURE__ */ o(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
31
|
+
className: A("gantt-chart-wrap", x),
|
|
32
32
|
ref: t,
|
|
33
33
|
onScroll: (e) => {
|
|
34
|
-
var r,
|
|
35
|
-
(r = g.current) == null || r.scrollTo(e.currentTarget.scrollTop), (
|
|
34
|
+
var r, H, S;
|
|
35
|
+
(r = g.current) == null || r.scrollTo(e.currentTarget.scrollTop), (H = T.current) == null || H.scrollTo(e.currentTarget.scrollTop), (S = h.current) == null || S.scrollTo(e.currentTarget.scrollLeft), j();
|
|
36
36
|
},
|
|
37
|
-
children: l ? /* @__PURE__ */
|
|
37
|
+
children: l ? /* @__PURE__ */ o(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
style: {
|
|
41
41
|
width: n.scaleStepItems * n.stepWidth * c.length
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
) : /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
44
|
+
) : /* @__PURE__ */ M(N, { children: [
|
|
45
|
+
/* @__PURE__ */ o(P, { width: p, wrapRef: t, ref: h }),
|
|
46
|
+
/* @__PURE__ */ o(q, { height: C, data: D, setData: i, ref: T, treeTitle: b }),
|
|
47
|
+
/* @__PURE__ */ o(
|
|
48
|
+
v,
|
|
49
49
|
{
|
|
50
50
|
ref: g,
|
|
51
51
|
data: D,
|
|
52
52
|
setData: i,
|
|
53
53
|
width: p,
|
|
54
|
-
height:
|
|
55
|
-
onBarDoubleClick:
|
|
56
|
-
onBarChange:
|
|
54
|
+
height: C,
|
|
55
|
+
onBarDoubleClick: W,
|
|
56
|
+
onBarChange: I
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] })
|
|
@@ -61,5 +61,5 @@ const w = ({ data: f, className: H, onBarDoubleClick: S, onBarChange: W }) => {
|
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
et as default
|
|
65
65
|
};
|
|
@@ -1,87 +1,87 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
2
|
+
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as C, useContext as O, useRef as M, useCallback as u, useEffect as _ } from "react";
|
|
4
4
|
import c from "../../../../../../_virtual/dayjs.min.js";
|
|
5
|
-
import { VariableSizeList as
|
|
6
|
-
import { GanttContext as
|
|
7
|
-
import { useForwardRef as
|
|
8
|
-
import { getScaleItems as
|
|
5
|
+
import { VariableSizeList as v } from "../../../../../../node_modules/react-window/dist/index.esm.js";
|
|
6
|
+
import { GanttContext as w } from "../../Gantt/GanttContext.js";
|
|
7
|
+
import { useForwardRef as F } from "../../../hooks/useForwardRef.js";
|
|
8
|
+
import { getScaleItems as G } from "../../../utils/getScaleItems.js";
|
|
9
9
|
import { GanttDimensions as p } from "../../../enums/GanttDimensions.js";
|
|
10
|
-
import { GanttDimensionsSettings as
|
|
10
|
+
import { GanttDimensionsSettings as L } from "../../../constants/DimensionsSettings.js";
|
|
11
11
|
import { GanttConsts as m } from "../../../constants/GanttConsts.js";
|
|
12
|
-
const
|
|
13
|
-
const { scaleDates:
|
|
14
|
-
(
|
|
15
|
-
const i = c.unix(n
|
|
12
|
+
const R = C(({ width: W, wrapRef: f }, y) => {
|
|
13
|
+
const { scaleDates: s, setScaleDates: d, setScaleRenderState: h, settings: t } = O(w), e = F(y), l = M(null), N = M(null), Y = u(
|
|
14
|
+
(n) => {
|
|
15
|
+
const i = c.unix(s[n]);
|
|
16
16
|
return t.dimension === p.DAY ? i.daysInMonth() * t.stepWidth : t.scaleStepItems * t.stepWidth;
|
|
17
17
|
},
|
|
18
|
-
[
|
|
19
|
-
),
|
|
20
|
-
({ scrollOffset:
|
|
21
|
-
var r,
|
|
22
|
-
const i =
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
18
|
+
[s, t.dimension, t.scaleStepItems, t.stepWidth]
|
|
19
|
+
), E = u(
|
|
20
|
+
({ scrollOffset: n }) => {
|
|
21
|
+
var r, a, S, I, g;
|
|
22
|
+
const i = L[t.dimension].unitOfTime;
|
|
23
|
+
if (n < m.MIN_SCROLL_OFFSET) {
|
|
24
|
+
const x = c.unix(s[0]).subtract(1, i);
|
|
25
25
|
let D = t.scaleStepItems * t.stepWidth;
|
|
26
|
-
t.dimension === p.DAY && (D =
|
|
26
|
+
t.dimension === p.DAY && (D = x.daysInMonth() * t.stepWidth), d([x.unix(), ...s]), (r = f.current) == null || r.scrollTo({ left: n + D }), (a = e == null ? void 0 : e.current) == null || a.resetAfterIndex(0);
|
|
27
27
|
}
|
|
28
|
-
(((S = l.current) == null ? void 0 : S.scrollWidth) || 0) - (((
|
|
29
|
-
...
|
|
30
|
-
c.unix(
|
|
31
|
-
]), (
|
|
28
|
+
(((S = l.current) == null ? void 0 : S.scrollWidth) || 0) - (((I = l.current) == null ? void 0 : I.clientWidth) || 0) - n - m.TREE_WIDTH < m.MIN_SCROLL_OFFSET && (d([
|
|
29
|
+
...s,
|
|
30
|
+
c.unix(s[s.length - 1]).add(1, i).unix()
|
|
31
|
+
]), (g = e == null ? void 0 : e.current) == null || g.resetAfterIndex(0));
|
|
32
32
|
},
|
|
33
33
|
[
|
|
34
34
|
e,
|
|
35
|
-
|
|
35
|
+
s,
|
|
36
36
|
d,
|
|
37
37
|
t.dimension,
|
|
38
38
|
t.scaleStepItems,
|
|
39
39
|
t.stepWidth,
|
|
40
40
|
f
|
|
41
41
|
]
|
|
42
|
-
),
|
|
43
|
-
(
|
|
44
|
-
h(
|
|
42
|
+
), T = u(
|
|
43
|
+
(n) => {
|
|
44
|
+
h(n);
|
|
45
45
|
},
|
|
46
46
|
[h]
|
|
47
47
|
);
|
|
48
|
-
return
|
|
49
|
-
var
|
|
50
|
-
(
|
|
51
|
-
}, [e, t.dimension]), /* @__PURE__ */
|
|
52
|
-
|
|
48
|
+
return _(() => {
|
|
49
|
+
var n;
|
|
50
|
+
(n = e == null ? void 0 : e.current) == null || n.resetAfterIndex(0);
|
|
51
|
+
}, [e, t.dimension]), /* @__PURE__ */ o("div", { className: "gantt-scale-wrap", children: /* @__PURE__ */ o(
|
|
52
|
+
v,
|
|
53
53
|
{
|
|
54
54
|
className: "gantt-scale-list",
|
|
55
55
|
layout: "horizontal",
|
|
56
56
|
width: W,
|
|
57
57
|
height: m.HEADER_HEIGHT,
|
|
58
|
-
itemCount:
|
|
59
|
-
itemSize:
|
|
60
|
-
itemData:
|
|
58
|
+
itemCount: s.length,
|
|
59
|
+
itemSize: Y,
|
|
60
|
+
itemData: s,
|
|
61
61
|
ref: e,
|
|
62
62
|
outerRef: l,
|
|
63
|
-
innerRef:
|
|
63
|
+
innerRef: N,
|
|
64
64
|
initialScrollOffset: t.initialScrollOffset,
|
|
65
|
-
onScroll:
|
|
66
|
-
onItemsRendered:
|
|
67
|
-
children: ({ style:
|
|
68
|
-
/* @__PURE__ */
|
|
65
|
+
onScroll: E,
|
|
66
|
+
onItemsRendered: T,
|
|
67
|
+
children: ({ style: n, index: i, data: r }) => /* @__PURE__ */ A("div", { className: "gantt-scale-item", style: n, children: [
|
|
68
|
+
/* @__PURE__ */ o("div", { className: "gantt-scale-title", children: c.unix(r[i]).format(
|
|
69
69
|
t.dimension === p.DAY ? "MMMM, YYYY" : "ddd, D MMMM, YY"
|
|
70
70
|
) }),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ o("div", { className: "gantt-scale-steps", children: G(t.dimension, r[i]).map((a) => /* @__PURE__ */ o(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
74
|
className: "gantt-scale-step",
|
|
75
75
|
style: { width: t.stepWidth },
|
|
76
|
-
children:
|
|
76
|
+
children: a
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
a
|
|
79
79
|
)) })
|
|
80
80
|
] })
|
|
81
81
|
}
|
|
82
82
|
) });
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
R.displayName = "Scale";
|
|
85
85
|
export {
|
|
86
|
-
|
|
86
|
+
R as default
|
|
87
87
|
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { VariableSizeList as
|
|
5
|
-
import { MinusSquareOutlined as
|
|
6
|
-
import { PlusSquareOutlined as
|
|
7
|
-
import { GanttConsts as
|
|
8
|
-
const
|
|
9
|
-
const o =
|
|
10
|
-
const
|
|
11
|
-
for (const e of
|
|
12
|
-
e.hasOwnProperty("expanded") && !e.expanded &&
|
|
13
|
-
return
|
|
14
|
-
}, [
|
|
15
|
-
(
|
|
16
|
-
const e = [...
|
|
2
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as g, useMemo as f, useCallback as h } from "react";
|
|
4
|
+
import { VariableSizeList as E } from "../../../../../../node_modules/react-window/dist/index.esm.js";
|
|
5
|
+
import { MinusSquareOutlined as y } from "../../../assets/icons/MinusSquareOutlined.js";
|
|
6
|
+
import { PlusSquareOutlined as T } from "../../../assets/icons/PlusSquareOutlined.js";
|
|
7
|
+
import { GanttConsts as i } from "../../../constants/GanttConsts.js";
|
|
8
|
+
const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u) => {
|
|
9
|
+
const o = f(() => {
|
|
10
|
+
const r = [];
|
|
11
|
+
for (const e of s)
|
|
12
|
+
e.hasOwnProperty("expanded") && !e.expanded && r.push(e.key);
|
|
13
|
+
return s.filter((e) => !e.parentsKeys.some((n) => r.includes(n)));
|
|
14
|
+
}, [s]), p = h(
|
|
15
|
+
(r) => {
|
|
16
|
+
const e = [...s], t = e.find((n) => n.key === r);
|
|
17
17
|
t != null && t.hasOwnProperty("expanded") && (t.expanded = !t.expanded), l(e);
|
|
18
18
|
},
|
|
19
|
-
[
|
|
19
|
+
[s, l]
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
24
|
className: "gantt-tree-wrap bg-background",
|
|
25
25
|
style: {
|
|
26
|
-
width:
|
|
27
|
-
marginTop: -
|
|
26
|
+
width: i.TREE_WIDTH,
|
|
27
|
+
marginTop: -i.HEADER_HEIGHT
|
|
28
28
|
},
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
children: /* @__PURE__ */ a(
|
|
30
|
+
E,
|
|
31
31
|
{
|
|
32
|
-
ref:
|
|
32
|
+
ref: u,
|
|
33
33
|
className: "gantt-tree-list bg-background",
|
|
34
34
|
layout: "vertical",
|
|
35
35
|
width: "100%",
|
|
36
|
-
height:
|
|
36
|
+
height: c,
|
|
37
37
|
itemCount: o.length,
|
|
38
|
-
itemSize: () =>
|
|
38
|
+
itemSize: () => i.ROW_HEIGHT,
|
|
39
39
|
itemData: o,
|
|
40
|
-
innerElementType: ({ children:
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
40
|
+
innerElementType: ({ children: r, props: e }) => /* @__PURE__ */ d("div", { style: { height: o.length * i.ROW_HEIGHT }, ...e, children: [
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "gantt-tree-title bg-background", style: { height: i.HEADER_HEIGHT }, children: m }),
|
|
42
|
+
/* @__PURE__ */ a("div", { className: "gantt-tree-inner-wrap", children: r })
|
|
43
43
|
] }),
|
|
44
|
-
children: ({ style:
|
|
45
|
-
const
|
|
46
|
-
return /* @__PURE__ */
|
|
44
|
+
children: ({ style: r, index: e, data: t }) => {
|
|
45
|
+
const n = t[e];
|
|
46
|
+
return /* @__PURE__ */ d(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
49
|
className: "gantt-tree-list-item bg-background text-foreground",
|
|
50
50
|
style: {
|
|
51
|
-
...
|
|
51
|
+
...r,
|
|
52
52
|
backgroundColor: e % 2 === 0 ? "var(--background)" : "var(--muted)",
|
|
53
|
-
paddingLeft:
|
|
53
|
+
paddingLeft: i.LEAF_TITLE_PADDING_LEFT + n.level * i.LEAF_CHILDREN_PADDING_LEFT
|
|
54
54
|
},
|
|
55
|
-
onClick: () =>
|
|
55
|
+
onClick: () => p(n.key),
|
|
56
56
|
children: [
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
n.hasOwnProperty("expanded") ? n.expanded ? /* @__PURE__ */ a(y, { className: "gantt-tree-icon" }) : /* @__PURE__ */ a(T, { className: "gantt-tree-icon" }) : null,
|
|
58
|
+
/* @__PURE__ */ a("div", { children: t[e].title })
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
);
|
|
@@ -65,7 +65,7 @@ const y = p(({ height: d, data: i, setData: l, treeTitle: c = "Attività" }, m)
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
b.displayName = "Tree";
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
b as default
|
|
71
71
|
};
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as
|
|
4
|
-
import
|
|
5
|
-
import { cn as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Select as
|
|
8
|
-
import { GanttContext as
|
|
9
|
-
import { useGanttCalculate as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
2
|
+
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as y, useState as h, useMemo as f, useCallback as r } from "react";
|
|
4
|
+
import G from "../../../../../_virtual/dayjs.min.js";
|
|
5
|
+
import { cn as P } from "../../../../../lib/utils.js";
|
|
6
|
+
import { Button as g } from "../../../button.js";
|
|
7
|
+
import { Select as S, SelectTrigger as x, SelectValue as v, SelectContent as b, SelectItem as C } from "../../../select.js";
|
|
8
|
+
import { GanttContext as B } from "../Gantt/GanttContext.js";
|
|
9
|
+
import { useGanttCalculate as L } from "../../hooks/useGanttCalculate.js";
|
|
10
|
+
import M from "../../../../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
11
|
+
import R from "../../../../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
12
12
|
import { GanttDimensionsSettings as o } from "../../constants/DimensionsSettings.js";
|
|
13
|
-
import { DragStepOptions as
|
|
14
|
-
const
|
|
15
|
-
const { calculate:
|
|
13
|
+
import { DragStepOptions as u } from "../../constants/DragStepOptions.js";
|
|
14
|
+
const Y = ({ className: D }) => {
|
|
15
|
+
const { calculate: s } = L(), { settings: a, setSettings: p, currentDate: j } = y(B), [z, c] = h(a.dimension), [t, m] = h(
|
|
16
16
|
Object.keys(o).findIndex((e) => e === a.dimension)
|
|
17
|
-
), l =
|
|
17
|
+
), l = f(() => Object.keys(o).map((e, i) => ({
|
|
18
18
|
label: o[e].label,
|
|
19
19
|
value: e,
|
|
20
|
-
index:
|
|
21
|
-
})), []),
|
|
20
|
+
index: i
|
|
21
|
+
})), []), N = r(
|
|
22
22
|
(e) => {
|
|
23
|
-
const
|
|
24
|
-
c(e), m(
|
|
23
|
+
const i = l.findIndex((V) => V.value === e);
|
|
24
|
+
c(e), m(i), s(e);
|
|
25
25
|
},
|
|
26
|
-
[
|
|
27
|
-
),
|
|
28
|
-
if (
|
|
29
|
-
const e = Object.keys(o)[
|
|
30
|
-
c(e), m(
|
|
26
|
+
[s, l]
|
|
27
|
+
), O = r(() => {
|
|
28
|
+
if (t < l.length - 1) {
|
|
29
|
+
const e = Object.keys(o)[t + 1];
|
|
30
|
+
c(e), m(t + 1), s(e);
|
|
31
31
|
}
|
|
32
|
-
}, [
|
|
33
|
-
if (
|
|
34
|
-
const e = Object.keys(o)[
|
|
35
|
-
c(e), m(
|
|
32
|
+
}, [s, l.length, t]), k = r(() => {
|
|
33
|
+
if (t > 0) {
|
|
34
|
+
const e = Object.keys(o)[t - 1];
|
|
35
|
+
c(e), m(t - 1), s(e);
|
|
36
36
|
}
|
|
37
|
-
}, [
|
|
38
|
-
label:
|
|
37
|
+
}, [s, t]), I = f(() => Object.keys(u).map((e) => ({
|
|
38
|
+
label: u[e].label,
|
|
39
39
|
value: e
|
|
40
|
-
})), []),
|
|
40
|
+
})), []), w = r(
|
|
41
41
|
(e) => {
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
p(() => {
|
|
43
|
+
const i = { ...a };
|
|
44
|
+
return i.dragStepSize = e, i.gridSize = u[e].seconds / o[i.dimension].secondsInPixel, i;
|
|
45
45
|
});
|
|
46
46
|
},
|
|
47
|
-
[
|
|
47
|
+
[p, a]
|
|
48
48
|
);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */ n
|
|
51
|
-
|
|
49
|
+
return /* @__PURE__ */ d("div", { className: P("flex items-center gap-2 p-4 border-b", D), children: [
|
|
50
|
+
/* @__PURE__ */ n(
|
|
51
|
+
g,
|
|
52
52
|
{
|
|
53
53
|
variant: "outline",
|
|
54
54
|
size: "icon",
|
|
55
|
-
onClick:
|
|
56
|
-
disabled:
|
|
57
|
-
children: /* @__PURE__ */ n
|
|
55
|
+
onClick: k,
|
|
56
|
+
disabled: t <= 0,
|
|
57
|
+
children: /* @__PURE__ */ n(M, { className: "h-4 w-4" })
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */ n
|
|
62
|
-
/* @__PURE__ */ n
|
|
60
|
+
/* @__PURE__ */ d(S, { value: z, onValueChange: N, children: [
|
|
61
|
+
/* @__PURE__ */ n(x, { className: "w-[180px]", children: /* @__PURE__ */ n(v, { placeholder: "Seleziona dimensione" }) }),
|
|
62
|
+
/* @__PURE__ */ n(b, { className: "z-100", children: l.map((e) => /* @__PURE__ */ n(C, { value: e.value, children: e.label }, e.value)) })
|
|
63
63
|
] }),
|
|
64
|
-
/* @__PURE__ */ n
|
|
65
|
-
|
|
64
|
+
/* @__PURE__ */ n(
|
|
65
|
+
g,
|
|
66
66
|
{
|
|
67
67
|
variant: "outline",
|
|
68
68
|
size: "icon",
|
|
69
|
-
onClick:
|
|
70
|
-
disabled:
|
|
71
|
-
children: /* @__PURE__ */ n
|
|
69
|
+
onClick: O,
|
|
70
|
+
disabled: t >= l.length - 1,
|
|
71
|
+
children: /* @__PURE__ */ n(R, { className: "h-4 w-4" })
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
|
-
/* @__PURE__ */ n
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */ n
|
|
77
|
-
/* @__PURE__ */ n
|
|
74
|
+
/* @__PURE__ */ n("div", { className: "px-4 text-sm font-medium", children: G.unix(j).format("ddd, ll") }),
|
|
75
|
+
/* @__PURE__ */ d(S, { value: a.dragStepSize, onValueChange: w, children: [
|
|
76
|
+
/* @__PURE__ */ n(x, { className: "w-[180px]", children: /* @__PURE__ */ n(v, { placeholder: "Seleziona step" }) }),
|
|
77
|
+
/* @__PURE__ */ n(b, { children: I.map((e) => /* @__PURE__ */ n(C, { value: e.value, children: e.label }, e.value)) })
|
|
78
78
|
] })
|
|
79
79
|
] });
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
Y as default
|
|
83
83
|
};
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useMemo as a, useRef as
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as a, useRef as z, useState as e } from "react";
|
|
4
4
|
import p from "../../../../../_virtual/dayjs.min.js";
|
|
5
|
-
import
|
|
6
|
-
import { GanttContext as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import H from "../../../../../_virtual/localizedFormat.js";
|
|
6
|
+
import { GanttContext as M } from "./GanttContext.js";
|
|
7
|
+
import N from "../Chart/Chart.js";
|
|
8
|
+
import P from "../Controls/Controls.js";
|
|
9
9
|
import { GanttDimensions as c } from "../../enums/GanttDimensions.js";
|
|
10
10
|
import { GanttUnitOfTimes as m } from "../../enums/GanttUnitOfTimes.js";
|
|
11
|
-
import { getScaleDates as
|
|
12
|
-
import { getInitialScrollOffset as
|
|
13
|
-
import { DragStepSizes as
|
|
14
|
-
import { GanttConsts as
|
|
11
|
+
import { getScaleDates as Y } from "../../utils/getScaleDates.js";
|
|
12
|
+
import { getInitialScrollOffset as A } from "../../utils/getInitialScrollOffset.js";
|
|
13
|
+
import { DragStepSizes as U } from "../../enums/DragStepSizes.js";
|
|
14
|
+
import { GanttConsts as _ } from "../../constants/GanttConsts.js";
|
|
15
15
|
import { GanttDimensionsSettings as s } from "../../constants/DimensionsSettings.js";
|
|
16
|
-
import { DragStepOptions as
|
|
17
|
-
p.extend(
|
|
16
|
+
import { DragStepOptions as b } from "../../constants/DragStepOptions.js";
|
|
17
|
+
p.extend(H);
|
|
18
18
|
const l = ({
|
|
19
19
|
children: S,
|
|
20
20
|
draggable: d = !1,
|
|
21
21
|
defaultDimension: t = c.HOUR,
|
|
22
|
-
defaultDragStepSize: n =
|
|
22
|
+
defaultDragStepSize: n = U.THIRTY_MIN,
|
|
23
23
|
treeTitle: f
|
|
24
24
|
}) => {
|
|
25
25
|
const r = a(() => {
|
|
26
26
|
const o = t === c.DAY ? m.MONTH : m.DAY;
|
|
27
|
-
return
|
|
28
|
-
}, [t]), x = a(() =>
|
|
27
|
+
return Y(void 0, void 0, o);
|
|
28
|
+
}, [t]), x = a(() => A(t, r), [t, r]), I = z(null), [g, v] = e(p().unix()), [u, O] = e(r), [C, G] = e({
|
|
29
29
|
stepWidth: s[t].stepWidth,
|
|
30
30
|
secondsInPixel: s[t].secondsInPixel,
|
|
31
|
-
scaleStepItems:
|
|
31
|
+
scaleStepItems: _.HOURS_IN_DAY,
|
|
32
32
|
initialScrollOffset: x,
|
|
33
33
|
dimension: t,
|
|
34
34
|
draggable: d,
|
|
35
35
|
dragStepSize: n,
|
|
36
36
|
gridSize: (() => {
|
|
37
|
-
const o =
|
|
38
|
-
return Math.max(
|
|
37
|
+
const o = b[n].seconds, D = s[t].secondsInPixel, T = o / D;
|
|
38
|
+
return Math.max(T, 1);
|
|
39
39
|
})()
|
|
40
|
-
}), [
|
|
40
|
+
}), [R, h] = e({
|
|
41
41
|
overscanStartIndex: 0,
|
|
42
42
|
overscanStopIndex: 0,
|
|
43
43
|
visibleStartIndex: 0,
|
|
44
44
|
visibleStopIndex: 0
|
|
45
45
|
});
|
|
46
|
-
return /* @__PURE__ */ i
|
|
47
|
-
|
|
46
|
+
return /* @__PURE__ */ i(
|
|
47
|
+
M.Provider,
|
|
48
48
|
{
|
|
49
49
|
value: {
|
|
50
50
|
wrapRef: I,
|
|
51
|
-
scaleDates:
|
|
51
|
+
scaleDates: u,
|
|
52
52
|
setScaleDates: O,
|
|
53
|
-
settings:
|
|
54
|
-
setSettings:
|
|
55
|
-
scaleRenderState:
|
|
53
|
+
settings: C,
|
|
54
|
+
setSettings: G,
|
|
55
|
+
scaleRenderState: R,
|
|
56
56
|
setScaleRenderState: h,
|
|
57
57
|
currentDate: g,
|
|
58
|
-
setCurrentDate:
|
|
58
|
+
setCurrentDate: v,
|
|
59
59
|
treeTitle: f
|
|
60
60
|
},
|
|
61
|
-
children: /* @__PURE__ */ i
|
|
61
|
+
children: /* @__PURE__ */ i("div", { className: "gantt-wrap", children: S })
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
|
-
l.Chart =
|
|
66
|
-
l.Controls =
|
|
65
|
+
l.Chart = N;
|
|
66
|
+
l.Controls = P;
|
|
67
67
|
export {
|
|
68
68
|
l as default
|
|
69
69
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { Root as d, Trigger as n, Portal as i, Content as s } from "../../node_modules/@radix-ui/react-hover-card/dist/index.js";
|
|
4
4
|
import { cn as m } from "../../lib/utils.js";
|
|
5
5
|
function p({
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ o
|
|
8
|
+
return /* @__PURE__ */ o(d, { "data-slot": "hover-card", ...t });
|
|
9
9
|
}
|
|
10
10
|
function u({
|
|
11
11
|
...t
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ o
|
|
13
|
+
return /* @__PURE__ */ o(n, { "data-slot": "hover-card-trigger", ...t });
|
|
14
14
|
}
|
|
15
15
|
function g({
|
|
16
16
|
className: t,
|
|
@@ -18,7 +18,7 @@ function g({
|
|
|
18
18
|
sideOffset: a = 4,
|
|
19
19
|
...r
|
|
20
20
|
}) {
|
|
21
|
-
return /* @__PURE__ */ o
|
|
21
|
+
return /* @__PURE__ */ o(i, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o(
|
|
22
22
|
s,
|
|
23
23
|
{
|
|
24
24
|
"data-slot": "hover-card-content",
|