laif-ds 0.2.21 → 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.
Files changed (246) hide show
  1. package/dist/_virtual/index.js +5 -3
  2. package/dist/_virtual/index3.js +2 -5
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index6.js +5 -2
  5. package/dist/components/ui/app-select.js +92 -109
  6. package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
  7. package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
  8. package/dist/components/ui/message-input.js +23 -23
  9. package/dist/components/ui/sidebar.js +1 -1
  10. package/dist/index.d.ts +4 -6
  11. package/dist/lib/audio-utils.js +2 -2
  12. package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
  13. package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
  14. package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
  15. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
  16. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
  17. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  18. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  19. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
  20. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
  21. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
  22. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
  23. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
  24. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
  25. package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
  26. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
  27. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
  28. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
  29. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
  30. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
  31. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
  32. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
  33. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
  34. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
  35. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
  36. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
  37. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
  38. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
  39. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
  40. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
  41. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
  42. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
  43. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
  44. package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
  45. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  46. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
  47. package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
  48. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
  49. package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
  50. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  51. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
  52. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
  53. package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
  54. package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
  55. package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
  56. package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
  57. package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
  58. package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
  59. package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
  60. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
  61. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
  62. package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
  63. package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
  64. package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
  65. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
  66. package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
  67. package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
  68. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
  69. package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
  70. package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
  71. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
  72. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
  73. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
  74. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
  75. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
  76. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
  77. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
  78. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
  79. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
  80. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
  81. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
  82. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
  83. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
  84. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  85. package/dist/node_modules/classnames/index.js +2 -2
  86. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  87. package/dist/node_modules/dayjs/dayjs.min.js +14 -14
  88. package/dist/node_modules/dayjs/locale/it.js +4 -4
  89. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
  90. package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
  91. package/dist/node_modules/decimal.js-light/decimal.js +2 -2
  92. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
  93. package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
  94. package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
  95. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
  96. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
  97. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
  98. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
  99. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
  100. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
  101. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
  102. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
  103. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
  104. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
  105. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  106. package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
  107. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
  108. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
  109. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
  110. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
  111. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
  112. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
  113. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
  114. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
  115. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
  116. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
  117. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
  118. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
  119. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
  120. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
  121. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
  122. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
  123. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
  124. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
  125. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
  126. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
  127. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
  128. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
  129. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
  130. package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
  131. package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
  132. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
  133. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
  134. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
  135. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
  136. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
  137. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
  138. package/dist/node_modules/eventemitter3/index.js +1 -1
  139. package/dist/node_modules/eventemitter3/index2.js +3 -3
  140. package/dist/node_modules/immer/dist/immer.js +213 -216
  141. package/dist/node_modules/lexical/Lexical.prod.js +212 -212
  142. package/dist/node_modules/lodash/_baseCreate.js +2 -2
  143. package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
  144. package/dist/node_modules/lodash/_defineProperty.js +2 -2
  145. package/dist/node_modules/lodash/_isMasked.js +2 -2
  146. package/dist/node_modules/lodash/_nodeUtil.js +4 -4
  147. package/dist/node_modules/lodash/isArguments.js +2 -2
  148. package/dist/node_modules/lodash/isBuffer.js +2 -2
  149. package/dist/node_modules/lodash/lodash.js +16 -16
  150. package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
  151. package/dist/node_modules/prismjs/components/prism-java.js +2 -2
  152. package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
  153. package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
  154. package/dist/node_modules/prismjs/prism.js +8 -8
  155. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
  156. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
  157. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
  158. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
  159. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
  160. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
  161. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
  162. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
  163. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  164. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
  165. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
  166. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
  167. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
  168. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
  169. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
  170. package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
  171. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
  172. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
  173. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
  174. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
  175. package/dist/node_modules/react-window/dist/index.esm.js +2 -2
  176. package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
  177. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
  178. package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
  179. package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
  182. package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
  183. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
  184. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
  185. package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
  186. package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
  187. package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
  188. package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
  189. package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
  190. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
  191. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
  192. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
  193. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
  194. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
  195. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
  196. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
  197. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
  198. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
  199. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
  200. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
  201. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
  202. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
  203. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
  204. package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
  205. package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
  206. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  207. package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
  208. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
  209. package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
  210. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
  211. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
  212. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
  213. package/dist/node_modules/recharts/es6/util/types.js +22 -332
  214. package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
  215. package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
  216. package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
  217. package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
  218. package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
  219. package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
  220. package/dist/node_modules/shiki/dist/langs.js +225 -220
  221. package/dist/node_modules/shiki/dist/themes.js +60 -60
  222. package/dist/node_modules/sonner/dist/index.js +309 -305
  223. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
  224. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  225. package/dist/node_modules/unified/lib/index.js +1 -1
  226. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  227. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
  228. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
  229. package/dist/node_modules/vfile-message/lib/index.js +1 -1
  230. package/dist/styles.v3.css +1 -1
  231. package/package.json +1 -1
  232. package/dist/_virtual/isEqual.js +0 -8
  233. package/dist/_virtual/isEqual2.js +0 -5
  234. package/dist/_virtual/isEqualWith.js +0 -5
  235. package/dist/_virtual/isPlainObject.js +0 -5
  236. package/dist/_virtual/noop.js +0 -5
  237. package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
  238. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
  239. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
  240. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
  241. package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
  242. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
  243. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
  244. package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
  245. package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
  246. package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- function a(t) {
2
+ function a(c) {
3
3
  const e = [];
4
- return t.reduce((n, r) => {
5
- const s = r.weeks.reduce((u, c) => [...u, ...c.days], e);
6
- return [...n, ...s];
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 l(h, e) {
3
- const { month: s, defaultMonth: a, today: i = e.today(), numberOfMonths: M = 1, endMonth: n, startMonth: o } = h;
4
- let t = s || a || i;
5
- const { differenceInCalendarMonths: f, addMonths: r, startOfMonth: d } = e;
6
- if (n && f(n, t) < 0) {
7
- const c = -1 * (M - 1);
8
- t = r(n, c);
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 && f(t, o) < 0 && (t = o), d(t);
10
+ return o && i(t, o) < 0 && (t = o), r(t);
11
11
  }
12
12
  export {
13
- l as getInitialMonth
13
+ d as getInitialMonth
14
14
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  function i(e) {
3
3
  const t = [];
4
- return e.reduce((n, r) => [...n, ...r.weeks], t);
4
+ return e.reduce((c, n) => c.concat(n.weeks.slice()), t.slice());
5
5
  }
6
6
  export {
7
7
  i as getWeeks
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- function O(r, a, f, t) {
3
- if (!r || !a)
2
+ function g(a, s, i, t, o = !1) {
3
+ if (!a || !s)
4
4
  return;
5
- const { startOfYear: i, endOfYear: u, addYears: l, getYear: Y, isBefore: d, isSameYear: c } = t, p = i(r), s = u(a), n = [];
6
- let e = p;
7
- for (; d(e, s) || c(e, s); )
8
- n.push(e), e = l(e, 1);
9
- return n.map((o) => {
10
- const m = f.formatYearDropdown(o, t);
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: Y(o),
13
- label: m,
12
+ value: d(f),
13
+ label: O,
14
14
  disabled: !1
15
15
  };
16
16
  });
17
17
  }
18
18
  export {
19
- O as getYearOptions
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, -1 * 6) : e.addDays(t, -1 * (r - 1));
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 { labelCaption as o, labelGrid as l } from "./labelGrid.js";
3
- import { labelGridcell as t } from "./labelGridcell.js";
4
- import { labelDay as p, labelDayButton as m } from "./labelDayButton.js";
5
- import { labelNav as f } from "./labelNav.js";
6
- import { labelMonthDropdown as n } from "./labelMonthDropdown.js";
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
- o as labelCaption,
15
- p as labelDay,
16
- m as labelDayButton,
17
- l as labelGrid,
18
- t as labelGridcell,
19
- n as labelMonthDropdown,
20
- f as labelNav,
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 q, useLayoutEffect as z } from "react";
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, w = (e) => [
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]")), h = (e) => l(e.querySelector("[data-animated-caption]")), S = (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: A }) {
8
- const y = q(null), H = q(a), p = q(!1);
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 = H.current;
11
- if (H.current = a, !M || !e.current || // safety check because the ref can be set to anything by consumers
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 = A.isSameMonth(a[0].date, f[0].date), u = A.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], x = y.current, L = e.current.cloneNode(!0);
16
- if (L instanceof HTMLElement ? (w(L).forEach((t) => {
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 = h(t);
21
+ const n = w(t);
22
22
  n && n.classList.remove(v);
23
- const r = S(t);
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 _ = x instanceof HTMLElement ? w(x) : [], E = w(e.current);
29
- if (E && E.every((i) => i instanceof HTMLElement) && _ && _.every((i) => i instanceof HTMLElement)) {
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"), E.forEach((t, c) => {
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 = h(t);
37
+ const r = w(t);
38
38
  r && r.classList.add(v);
39
- const d = S(t);
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 k = h(n);
48
- k && (k.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), k.addEventListener("animationend", W));
49
- const T = S(n);
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, s] = q(t, n), { startOfMonth: r, endOfMonth: u } = n, f = g(t, n), [m, h] = V(
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 o = g(t, n);
21
- h(o);
20
+ const e = g(t, i, o, n);
21
+ h(e);
22
22
  }, [t.timeZone]);
23
- const c = k(m, s, 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, s, t, n), { disableNavigation: C, onMonthChange: T } = t, w = (o) => M.some((e) => e.days.some((x) => x.isEqualTo(o))), l = (o) => {
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 e = r(o);
27
- i && e < r(i) && (e = r(i)), s && e > r(s) && (e = r(s)), h(e), T?.(e);
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: s,
34
+ navEnd: o,
35
35
  previousMonth: v,
36
36
  nextMonth: D,
37
37
  goToMonth: l,
38
- goToDay: (o) => {
39
- w(o) || l(o.date);
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, s = 0, l = !1, u = D) {
4
- const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
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
- r(o, f) ? l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
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 (r(o, f) && r(i, f))
11
+ if (s(o, f) && s(i, f))
12
12
  l ? e = { from: o, to: i } : e = void 0;
13
- else if (r(o, f))
13
+ else if (s(o, f))
14
14
  e = { from: o, to: n > 0 ? void 0 : f };
15
- else if (r(i, f))
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 (m(f, i))
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
- s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
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
  }