laif-ds 0.2.20 → 0.2.22
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/index.js +5 -3
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/app-stepper.js +212 -0
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/stepper.js +387 -0
- package/dist/index.d.ts +55 -6
- package/dist/index.js +30 -28
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/cmdk/dist/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vaul/dist/index.js +1 -1
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function a(
|
|
2
|
+
function a(c) {
|
|
3
3
|
const e = [];
|
|
4
|
-
return
|
|
5
|
-
const
|
|
6
|
-
return
|
|
7
|
-
}, e);
|
|
4
|
+
return c.reduce((s, t) => {
|
|
5
|
+
const n = t.weeks.reduce((i, r) => i.concat(r.days.slice()), e.slice());
|
|
6
|
+
return s.concat(n.slice());
|
|
7
|
+
}, e.slice());
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
a as getDays
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function
|
|
3
|
-
const { month:
|
|
4
|
-
let t =
|
|
5
|
-
const { differenceInCalendarMonths:
|
|
6
|
-
if (n &&
|
|
7
|
-
const
|
|
8
|
-
t =
|
|
2
|
+
function d(s, o, n, e) {
|
|
3
|
+
const { month: h, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = s;
|
|
4
|
+
let t = h || M || c;
|
|
5
|
+
const { differenceInCalendarMonths: i, addMonths: l, startOfMonth: r } = e;
|
|
6
|
+
if (n && i(n, t) < f - 1) {
|
|
7
|
+
const u = -1 * (f - 1);
|
|
8
|
+
t = l(n, u);
|
|
9
9
|
}
|
|
10
|
-
return o &&
|
|
10
|
+
return o && i(t, o) < 0 && (t = o), r(t);
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
d as getInitialMonth
|
|
14
14
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
2
|
+
function g(a, s, i, t, o = !1) {
|
|
3
|
+
if (!a || !s)
|
|
4
4
|
return;
|
|
5
|
-
const { startOfYear:
|
|
6
|
-
let e =
|
|
7
|
-
for (;
|
|
8
|
-
|
|
9
|
-
return
|
|
10
|
-
const
|
|
5
|
+
const { startOfYear: l, endOfYear: u, addYears: Y, getYear: d, isBefore: c, isSameYear: p } = t, m = l(a), n = u(s), r = [];
|
|
6
|
+
let e = m;
|
|
7
|
+
for (; c(e, n) || p(e, n); )
|
|
8
|
+
r.push(e), e = Y(e, 1);
|
|
9
|
+
return o && r.reverse(), r.map((f) => {
|
|
10
|
+
const O = i.formatYearDropdown(f, t);
|
|
11
11
|
return {
|
|
12
|
-
value:
|
|
13
|
-
label:
|
|
12
|
+
value: d(f),
|
|
13
|
+
label: O,
|
|
14
14
|
disabled: !1
|
|
15
15
|
};
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
g as getYearOptions
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
function n(s, e) {
|
|
3
3
|
const t = e.startOfMonth(s), r = t.getDay();
|
|
4
|
-
return r === 1 ? t : r === 0 ? e.addDays(t, -
|
|
4
|
+
return r === 1 ? t : r === 0 ? e.addDays(t, -6) : e.addDays(t, -1 * (r - 1));
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
n as startOfBroadcastWeek
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { labelDay as o, labelDayButton as l } from "./labelDayButton.js";
|
|
3
|
+
import { labelCaption as t, labelGrid as b } from "./labelGrid.js";
|
|
4
|
+
import { labelGridcell as m } from "./labelGridcell.js";
|
|
5
|
+
import { labelMonthDropdown as f } from "./labelMonthDropdown.js";
|
|
6
|
+
import { labelNav as n } from "./labelNav.js";
|
|
7
7
|
import { labelNext as u } from "./labelNext.js";
|
|
8
8
|
import { labelPrevious as N } from "./labelPrevious.js";
|
|
9
9
|
import { labelWeekday as y } from "./labelWeekday.js";
|
|
@@ -11,13 +11,13 @@ import { labelWeekNumber as c } from "./labelWeekNumber.js";
|
|
|
11
11
|
import { labelWeekNumberHeader as v } from "./labelWeekNumberHeader.js";
|
|
12
12
|
import { labelYearDropdown as G } from "./labelYearDropdown.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
t as labelCaption,
|
|
15
|
+
o as labelDay,
|
|
16
|
+
l as labelDayButton,
|
|
17
|
+
b as labelGrid,
|
|
18
|
+
m as labelGridcell,
|
|
19
|
+
f as labelMonthDropdown,
|
|
20
|
+
n as labelNav,
|
|
21
21
|
u as labelNext,
|
|
22
22
|
N as labelPrevious,
|
|
23
23
|
c as labelWeekNumber,
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useRef as
|
|
2
|
+
import { useRef as k, useLayoutEffect as z } from "react";
|
|
3
3
|
import { Animation as o } from "./UI.js";
|
|
4
|
-
const l = (e) => e instanceof HTMLElement ? e : null,
|
|
4
|
+
const l = (e) => e instanceof HTMLElement ? e : null, q = (e) => [
|
|
5
5
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
6
|
-
], I = (e) => l(e.querySelector("[data-animated-month]")),
|
|
7
|
-
function D(e, M, { classNames: s, months: a, focused: b, dateLib:
|
|
8
|
-
const y =
|
|
6
|
+
], I = (e) => l(e.querySelector("[data-animated-month]")), w = (e) => l(e.querySelector("[data-animated-caption]")), h = (e) => l(e.querySelector("[data-animated-weeks]")), B = (e) => l(e.querySelector("[data-animated-nav]")), P = (e) => l(e.querySelector("[data-animated-weekdays]"));
|
|
7
|
+
function D(e, M, { classNames: s, months: a, focused: b, dateLib: S }) {
|
|
8
|
+
const y = k(null), A = k(a), p = k(!1);
|
|
9
9
|
z(() => {
|
|
10
|
-
const f =
|
|
11
|
-
if (
|
|
10
|
+
const f = A.current;
|
|
11
|
+
if (A.current = a, !M || !e.current || // safety check because the ref can be set to anything by consumers
|
|
12
12
|
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
13
13
|
a.length === 0 || f.length === 0 || a.length !== f.length)
|
|
14
14
|
return;
|
|
15
|
-
const g =
|
|
16
|
-
if (L instanceof HTMLElement ? (
|
|
15
|
+
const g = S.isSameMonth(a[0].date, f[0].date), u = S.isAfter(a[0].date, f[0].date), v = u ? s[o.caption_after_enter] : s[o.caption_before_enter], m = u ? s[o.weeks_after_enter] : s[o.weeks_before_enter], H = y.current, L = e.current.cloneNode(!0);
|
|
16
|
+
if (L instanceof HTMLElement ? (q(L).forEach((t) => {
|
|
17
17
|
if (!(t instanceof HTMLElement))
|
|
18
18
|
return;
|
|
19
19
|
const c = I(t);
|
|
20
20
|
c && t.contains(c) && t.removeChild(c);
|
|
21
|
-
const n =
|
|
21
|
+
const n = w(t);
|
|
22
22
|
n && n.classList.remove(v);
|
|
23
|
-
const r =
|
|
23
|
+
const r = h(t);
|
|
24
24
|
r && r.classList.remove(m);
|
|
25
25
|
}), y.current = L) : y.current = null, p.current || g || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
26
26
|
b)
|
|
27
27
|
return;
|
|
28
|
-
const _ =
|
|
29
|
-
if (
|
|
28
|
+
const _ = H instanceof HTMLElement ? q(H) : [], x = q(e.current);
|
|
29
|
+
if (x?.every((i) => i instanceof HTMLElement) && _ && _.every((i) => i instanceof HTMLElement)) {
|
|
30
30
|
p.current = !0, e.current.style.isolation = "isolate";
|
|
31
31
|
const i = B(e.current);
|
|
32
|
-
i && (i.style.zIndex = "1"),
|
|
32
|
+
i && (i.style.zIndex = "1"), x.forEach((t, c) => {
|
|
33
33
|
const n = _[c];
|
|
34
34
|
if (!n)
|
|
35
35
|
return;
|
|
36
36
|
t.style.position = "relative", t.style.overflow = "hidden";
|
|
37
|
-
const r =
|
|
37
|
+
const r = w(t);
|
|
38
38
|
r && r.classList.add(v);
|
|
39
|
-
const d =
|
|
39
|
+
const d = h(t);
|
|
40
40
|
d && d.classList.add(m);
|
|
41
41
|
const W = () => {
|
|
42
42
|
p.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(v), d && d.classList.remove(m), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
|
|
@@ -44,9 +44,9 @@ function D(e, M, { classNames: s, months: a, focused: b, dateLib: A }) {
|
|
|
44
44
|
n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
|
|
45
45
|
const C = P(n);
|
|
46
46
|
C && (C.style.opacity = "0");
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const T =
|
|
47
|
+
const E = w(n);
|
|
48
|
+
E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
|
|
49
|
+
const T = h(n);
|
|
50
50
|
T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -11,32 +11,32 @@ import { getPreviousMonth as P } from "./helpers/getPreviousMonth.js";
|
|
|
11
11
|
import { getWeeks as S } from "./helpers/getWeeks.js";
|
|
12
12
|
import { useControlledValue as V } from "./helpers/useControlledValue.js";
|
|
13
13
|
function X(t, n) {
|
|
14
|
-
const [i,
|
|
14
|
+
const [i, o] = q(t, n), { startOfMonth: r, endOfMonth: u } = n, f = g(t, i, o, n), [m, h] = V(
|
|
15
15
|
f,
|
|
16
16
|
// initialMonth is always computed from props.month if provided
|
|
17
17
|
t.month ? f : void 0
|
|
18
18
|
);
|
|
19
19
|
E(() => {
|
|
20
|
-
const
|
|
21
|
-
h(
|
|
20
|
+
const e = g(t, i, o, n);
|
|
21
|
+
h(e);
|
|
22
22
|
}, [t.timeZone]);
|
|
23
|
-
const c = k(m,
|
|
23
|
+
const c = k(m, o, t, n), d = I(c, t.endMonth ? u(t.endMonth) : void 0, t, n), a = O(c, d, t, n), M = S(a), y = N(a), v = P(m, i, t, n), D = F(m, o, t, n), { disableNavigation: C, onMonthChange: T } = t, w = (e) => M.some((s) => s.days.some((x) => x.isEqualTo(e))), l = (e) => {
|
|
24
24
|
if (C)
|
|
25
25
|
return;
|
|
26
|
-
let
|
|
27
|
-
i &&
|
|
26
|
+
let s = r(e);
|
|
27
|
+
i && s < r(i) && (s = r(i)), o && s > r(o) && (s = r(o)), h(s), T?.(s);
|
|
28
28
|
};
|
|
29
29
|
return {
|
|
30
30
|
months: a,
|
|
31
31
|
weeks: M,
|
|
32
32
|
days: y,
|
|
33
33
|
navStart: i,
|
|
34
|
-
navEnd:
|
|
34
|
+
navEnd: o,
|
|
35
35
|
previousMonth: v,
|
|
36
36
|
nextMonth: D,
|
|
37
37
|
goToMonth: l,
|
|
38
|
-
goToDay: (
|
|
39
|
-
w(
|
|
38
|
+
goToDay: (e) => {
|
|
39
|
+
w(e) || l(e.date);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { defaultDateLib as D } from "../classes/DateLib.js";
|
|
3
|
-
function w(f, g, n = 0,
|
|
4
|
-
const { from: o, to: i } = g || {}, { isSameDay:
|
|
3
|
+
function w(f, g, n = 0, r = 0, l = !1, u = D) {
|
|
4
|
+
const { from: o, to: i } = g || {}, { isSameDay: s, isAfter: c, isBefore: m } = u;
|
|
5
5
|
let e;
|
|
6
6
|
if (!o && !i)
|
|
7
7
|
e = { from: f, to: n > 0 ? void 0 : f };
|
|
8
8
|
else if (o && !i)
|
|
9
|
-
|
|
9
|
+
s(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : m(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
|
|
10
10
|
else if (o && i)
|
|
11
|
-
if (
|
|
11
|
+
if (s(o, f) && s(i, f))
|
|
12
12
|
l ? e = { from: o, to: i } : e = void 0;
|
|
13
|
-
else if (
|
|
13
|
+
else if (s(o, f))
|
|
14
14
|
e = { from: o, to: n > 0 ? void 0 : f };
|
|
15
|
-
else if (
|
|
15
|
+
else if (s(i, f))
|
|
16
16
|
e = { from: f, to: n > 0 ? void 0 : f };
|
|
17
|
-
else if (c(f, o))
|
|
18
|
-
e = { from: f, to: i };
|
|
19
17
|
else if (m(f, o))
|
|
18
|
+
e = { from: f, to: i };
|
|
19
|
+
else if (c(f, o))
|
|
20
20
|
e = { from: o, to: f };
|
|
21
|
-
else if (
|
|
21
|
+
else if (c(f, i))
|
|
22
22
|
e = { from: o, to: f };
|
|
23
23
|
else
|
|
24
24
|
throw new Error("Invalid range");
|
|
25
25
|
if (e?.from && e?.to) {
|
|
26
26
|
const t = u.differenceInCalendarDays(e.to, e.from);
|
|
27
|
-
|
|
27
|
+
r > 0 && t > r ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
|
|
28
28
|
}
|
|
29
29
|
return e;
|
|
30
30
|
}
|