laif-ds 0.2.74 → 0.2.75

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 (151) hide show
  1. package/dist/CHANGELOG.md +431 -0
  2. package/dist/agent-docs/adoption-report.json +614 -0
  3. package/dist/agent-docs/components/Accordion.md +46 -16
  4. package/dist/agent-docs/components/Alert.md +90 -95
  5. package/dist/agent-docs/components/AlertDialog.md +132 -126
  6. package/dist/agent-docs/components/AppEditor.md +90 -90
  7. package/dist/agent-docs/components/AppRadioGroup.md +18 -18
  8. package/dist/agent-docs/components/AppSidebar.md +129 -122
  9. package/dist/agent-docs/components/AppStepper.md +81 -77
  10. package/dist/agent-docs/components/AspectRatio.md +70 -62
  11. package/dist/agent-docs/components/AudioVisualizer.md +5 -5
  12. package/dist/agent-docs/components/Avatar.md +112 -113
  13. package/dist/agent-docs/components/Badge.md +123 -118
  14. package/dist/agent-docs/components/Breadcrumb.md +8 -1
  15. package/dist/agent-docs/components/Button.md +131 -129
  16. package/dist/agent-docs/components/Card.md +172 -147
  17. package/dist/agent-docs/components/Carousel.md +148 -129
  18. package/dist/agent-docs/components/Chat.md +121 -109
  19. package/dist/agent-docs/components/ChatMessage.md +72 -61
  20. package/dist/agent-docs/components/Checkbox.md +150 -135
  21. package/dist/agent-docs/components/CircularProgress.md +53 -49
  22. package/dist/agent-docs/components/CodeHighlighter.md +4 -4
  23. package/dist/agent-docs/components/Collapsible.md +114 -95
  24. package/dist/agent-docs/components/Command.md +141 -142
  25. package/dist/agent-docs/components/Confirmer.md +182 -175
  26. package/dist/agent-docs/components/ContextMenu.md +196 -191
  27. package/dist/agent-docs/components/DataCrossTable.md +114 -94
  28. package/dist/agent-docs/components/DataTable.md +29 -24
  29. package/dist/agent-docs/components/Dialog.md +130 -125
  30. package/dist/agent-docs/components/Drawer.md +141 -127
  31. package/dist/agent-docs/components/FilePreviewer.md +138 -139
  32. package/dist/agent-docs/components/FileUploader.md +143 -129
  33. package/dist/agent-docs/components/Form.md +3 -1
  34. package/dist/agent-docs/components/FormComposer.md +163 -137
  35. package/dist/agent-docs/components/GanttChart.md +125 -122
  36. package/dist/agent-docs/components/HoverCard.md +1 -1
  37. package/dist/agent-docs/components/Icon.md +98 -99
  38. package/dist/agent-docs/components/Input.md +173 -138
  39. package/dist/agent-docs/components/InputOtp.md +6 -1
  40. package/dist/agent-docs/components/InputSelector.md +94 -97
  41. package/dist/agent-docs/components/InterruptPrompt.md +4 -4
  42. package/dist/agent-docs/components/MarkdownRenderer.md +5 -2
  43. package/dist/agent-docs/components/Menubar.md +60 -57
  44. package/dist/agent-docs/components/MessageInput.md +134 -131
  45. package/dist/agent-docs/components/MessageList.md +110 -96
  46. package/dist/agent-docs/components/MultipleSelector.md +147 -146
  47. package/dist/agent-docs/components/NavigationMenu.md +6 -2
  48. package/dist/agent-docs/components/Popover.md +112 -103
  49. package/dist/agent-docs/components/PromptSuggestions.md +5 -5
  50. package/dist/agent-docs/components/RadioGroup.md +97 -90
  51. package/dist/agent-docs/components/Resizable.md +4 -1
  52. package/dist/agent-docs/components/ResizePrompt.md +12 -13
  53. package/dist/agent-docs/components/ScrollArea.md +6 -2
  54. package/dist/agent-docs/components/SecurePdfViewer.md +10 -6
  55. package/dist/agent-docs/components/Select.md +131 -132
  56. package/dist/agent-docs/components/Sheet.md +8 -1
  57. package/dist/agent-docs/components/ShikiHighlighter.md +5 -5
  58. package/dist/agent-docs/components/Sidebar.md +94 -85
  59. package/dist/agent-docs/components/Slider.md +62 -58
  60. package/dist/agent-docs/components/Sonner.md +1 -0
  61. package/dist/agent-docs/components/Spinner.md +14 -14
  62. package/dist/agent-docs/components/Stepper.md +93 -67
  63. package/dist/agent-docs/components/Switch.md +41 -42
  64. package/dist/agent-docs/components/TableSkeleton.md +8 -8
  65. package/dist/agent-docs/components/Tabs.md +106 -86
  66. package/dist/agent-docs/components/TextArea.md +51 -52
  67. package/dist/agent-docs/components/ThemeSwitcher.md +72 -69
  68. package/dist/agent-docs/components/Toaster.md +1 -0
  69. package/dist/agent-docs/components/Tooltip.md +102 -91
  70. package/dist/agent-docs/components/Typo.md +68 -65
  71. package/dist/agent-docs/components/WeeklyCalendar.md +63 -64
  72. package/dist/agent-docs/manifest.json +5979 -0
  73. package/dist/components/editor/editor-hooks/use-update-toolbar.js +6 -6
  74. package/dist/components/editor/plugins/actions/counter-character-plugin.js +6 -6
  75. package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +18 -18
  76. package/dist/components/editor/plugins/toolbar/history-toolbar-plugin.js +10 -10
  77. package/dist/components/editor/plugins/toolbar/toolbar-plugin.js +9 -9
  78. package/dist/components/ui/app-checkbox.js +1 -1
  79. package/dist/components/ui/app-dialog.js +70 -64
  80. package/dist/components/ui/app-editor.js +51 -51
  81. package/dist/components/ui/app-form.js +81 -81
  82. package/dist/components/ui/app-multiple-select-dropdown.js +36 -36
  83. package/dist/components/ui/app-select.js +109 -104
  84. package/dist/components/ui/app-sidebar.js +41 -41
  85. package/dist/components/ui/app-stepper.js +1 -1
  86. package/dist/components/ui/app-time-picker.js +18 -18
  87. package/dist/components/ui/app-tooltip.js +1 -1
  88. package/dist/components/ui/async-select.js +5 -5
  89. package/dist/components/ui/audio-visualizer.js +61 -58
  90. package/dist/components/ui/card.js +1 -1
  91. package/dist/components/ui/carousel.js +2 -2
  92. package/dist/components/ui/chart.js +1 -1
  93. package/dist/components/ui/chat-message.js +8 -8
  94. package/dist/components/ui/chat.js +86 -88
  95. package/dist/components/ui/command.js +2 -2
  96. package/dist/components/ui/copy-button.js +4 -4
  97. package/dist/components/ui/date-picker.js +20 -20
  98. package/dist/components/ui/file-preview/index.js +13 -13
  99. package/dist/components/ui/file-previewer.js +12 -11
  100. package/dist/components/ui/form.js +2 -2
  101. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +56 -56
  102. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +12 -12
  103. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +1 -1
  104. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +4 -4
  105. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +2 -2
  106. package/dist/components/ui/gantt/components/Chart/Chart.js +23 -23
  107. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +1 -1
  108. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +34 -34
  109. package/dist/components/ui/gantt/components/Controls/Controls.js +5 -5
  110. package/dist/components/ui/gantt/components/Gantt/Gantt.js +4 -4
  111. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +25 -18
  112. package/dist/components/ui/input-selector.js +1 -1
  113. package/dist/components/ui/input.js +23 -23
  114. package/dist/components/ui/kanban.js +8 -9
  115. package/dist/components/ui/markdown-renderer.js +41 -35
  116. package/dist/components/ui/message-input.js +45 -44
  117. package/dist/components/ui/multiple-selector.js +91 -82
  118. package/dist/components/ui/secure-pdf-viewer.js +19 -7
  119. package/dist/components/ui/sidebar.js +1 -1
  120. package/dist/components/ui/slider.js +1 -1
  121. package/dist/components/ui/spinner.js +4 -4
  122. package/dist/components/ui/stepper.js +157 -138
  123. package/dist/components/ui/tables/data-cross-table/data-cross-table-buttons.js +29 -29
  124. package/dist/components/ui/tables/data-cross-table/data-cross-table.js +258 -246
  125. package/dist/components/ui/tables/data-table/components/data-table-advanced-filter.js +4 -1
  126. package/dist/components/ui/tables/data-table/components/data-table-body.js +204 -368
  127. package/dist/components/ui/tables/data-table/components/data-table-filter-inputs.js +114 -112
  128. package/dist/components/ui/tables/data-table/components/data-table-filters.js +116 -96
  129. package/dist/components/ui/tables/data-table/components/data-table-header.js +210 -0
  130. package/dist/components/ui/tables/data-table/components/data-table-searchbar.js +8 -8
  131. package/dist/components/ui/tables/data-table/components/data-table-skeleton-rows.js +33 -0
  132. package/dist/components/ui/tables/data-table/data-table.js +256 -250
  133. package/dist/components/ui/tables/data-table/data-table.service.js +112 -97
  134. package/dist/components/ui/tables/data-table/data-table.utils.js +2 -0
  135. package/dist/components/ui/textarea.js +2 -2
  136. package/dist/components/ui/theme-switcher.js +1 -1
  137. package/dist/components/ui/toggle-group.js +2 -2
  138. package/dist/components/ui/weekly-calendar/appointment-card.js +16 -16
  139. package/dist/components/ui/weekly-calendar/calendar-context.js +6 -6
  140. package/dist/components/ui/weekly-calendar/calendar-header.js +12 -12
  141. package/dist/components/ui/weekly-calendar/day-column.js +16 -16
  142. package/dist/components/ui/weekly-calendar/time-column.js +4 -4
  143. package/dist/components/ui/weekly-calendar/weekly-calendar.js +4 -4
  144. package/dist/hooks/use-audio-recording.js +1 -1
  145. package/dist/hooks/use-auto-scroll.js +18 -18
  146. package/dist/hooks/use-autosize-textarea.js +12 -13
  147. package/dist/index.d.ts +67 -43
  148. package/dist/index.js +229 -229
  149. package/dist/lib/utils.js +6 -6
  150. package/dist/styles.v3.css +1 -1
  151. package/package.json +14 -4
@@ -1,44 +1,44 @@
1
1
  "use client";
2
2
  import { jsx as n, jsxs as b, Fragment as G } from "react/jsx-runtime";
3
- import { useContext as L, useRef as i, useState as o, useCallback as _, useMemo as j, useEffect as l } from "react";
4
- import M from "../../../../../_virtual/index8.js";
5
- import N from "../../../../../_virtual/debounce3.js";
6
- import { GanttContext as k } from "../Gantt/GanttContext.js";
7
- import { transformData as y } from "../../utils/transformData.js";
8
- import A from "./Scale/Scale.js";
9
- import B from "./Tree/Tree.js";
10
- import F from "./Bars/Bars.js";
3
+ import L from "../../../../../_virtual/index8.js";
4
+ import _ from "../../../../../_virtual/debounce3.js";
5
+ import { useContext as j, useRef as l, useState as o, useCallback as M, useMemo as N, useEffect as a } from "react";
6
+ import { GanttContext as O } from "../Gantt/GanttContext.js";
7
+ import { transformData as k } from "../../utils/transformData.js";
8
+ import y from "./Scale/Scale.js";
9
+ import A from "./Tree/Tree.js";
10
+ import B from "./Bars/Bars.js";
11
11
  import { GanttConsts as f } from "../../constants/GanttConsts.js";
12
- import { GanttDimensionsSettings as O } from "../../constants/DimensionsSettings.js";
12
+ import { GanttDimensionsSettings as F } from "../../constants/DimensionsSettings.js";
13
13
  const Z = ({
14
14
  data: u,
15
15
  className: E,
16
16
  onBarDoubleClick: H,
17
17
  onBarChange: R
18
18
  }) => {
19
- const { settings: e, scaleDates: s, wrapRef: t, setCurrentDate: m, treeTitle: S } = L(k), d = i(null), p = i(null), h = i(null), [T, c] = o(
19
+ const { settings: e, scaleDates: s, wrapRef: t, setCurrentDate: m, treeTitle: S } = j(O), d = l(null), p = l(null), h = l(null), [T, c] = o(
20
20
  []
21
- ), [a, x] = o(!0), [g, W] = o(0), [D, w] = o(0), C = _(() => {
21
+ ), [i, x] = o(!0), [g, W] = o(0), [D, w] = o(0), C = M(() => {
22
22
  const r = Math.round(
23
- ((t?.current?.scrollLeft || 0) + f.TREE_WIDTH) * O[e.dimension].secondsInPixel
23
+ ((t?.current?.scrollLeft || 0) + f.TREE_WIDTH) * F[e.dimension].secondsInPixel
24
24
  );
25
25
  m(s[0] + r);
26
- }, [s, m, e.dimension, t]), I = j(() => N(C, 100), [C]);
27
- return l(() => {
26
+ }, [s, m, e.dimension, t]), I = N(() => _(C, 100), [C]);
27
+ return a(() => {
28
28
  t?.current?.clientWidth && t?.current?.clientHeight && (W(t.current.clientWidth - f.TREE_WIDTH), w(t.current.clientHeight - f.HEADER_HEIGHT), x(!1));
29
- }, []), l(() => {
30
- !a && t.current && (t.current.scrollLeft = e.initialScrollOffset);
31
- }, [a]), l(() => {
32
- c(y(u));
29
+ }, [t]), a(() => {
30
+ !i && t.current && (t.current.scrollLeft = e.initialScrollOffset);
31
+ }, [i, t, e.initialScrollOffset]), a(() => {
32
+ c(k(u));
33
33
  }, [u]), /* @__PURE__ */ n(
34
34
  "div",
35
35
  {
36
- className: M("gantt-chart-wrap", E),
36
+ className: L("gantt-chart-wrap", E),
37
37
  ref: t,
38
38
  onScroll: (r) => {
39
39
  h.current?.scrollTo(r.currentTarget.scrollTop), p.current?.scrollTo(r.currentTarget.scrollTop), d.current?.scrollTo(r.currentTarget.scrollLeft), I();
40
40
  },
41
- children: a ? /* @__PURE__ */ n(
41
+ children: i ? /* @__PURE__ */ n(
42
42
  "div",
43
43
  {
44
44
  style: {
@@ -46,9 +46,9 @@ const Z = ({
46
46
  }
47
47
  }
48
48
  ) : /* @__PURE__ */ b(G, { children: [
49
- /* @__PURE__ */ n(A, { width: g, wrapRef: t, ref: d }),
49
+ /* @__PURE__ */ n(y, { width: g, wrapRef: t, ref: d }),
50
50
  /* @__PURE__ */ n(
51
- B,
51
+ A,
52
52
  {
53
53
  height: D,
54
54
  data: T,
@@ -58,7 +58,7 @@ const Z = ({
58
58
  }
59
59
  ),
60
60
  /* @__PURE__ */ n(
61
- F,
61
+ B,
62
62
  {
63
63
  ref: h,
64
64
  data: T,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as W } from "react/jsx-runtime";
3
- import { forwardRef as y, useContext as N, useRef as S, useCallback as f, useEffect as Y } from "react";
4
3
  import l from "../../../../../../_virtual/dayjs.min.js";
4
+ import { forwardRef as y, useContext as N, useRef as S, useCallback as f, useEffect as Y } from "react";
5
5
  import { VariableSizeList as E } from "../../../../../../node_modules/react-window/dist/index.esm.js";
6
6
  import { GanttContext as T } from "../../Gantt/GanttContext.js";
7
7
  import { useForwardRef as A } from "../../../hooks/useForwardRef.js";
@@ -1,65 +1,65 @@
1
1
  "use client";
2
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(
9
- ({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, p) => {
10
- const o = f(() => {
3
+ import { forwardRef as g, useMemo as y, useCallback as f } from "react";
4
+ import { VariableSizeList as h } from "../../../../../../node_modules/react-window/dist/index.esm.js";
5
+ import { MinusSquareOutlined as E } from "../../../assets/icons/MinusSquareOutlined.js";
6
+ import { PlusSquareOutlined as b } from "../../../assets/icons/PlusSquareOutlined.js";
7
+ import { GanttConsts as o } from "../../../constants/GanttConsts.js";
8
+ const T = g(
9
+ ({ height: c, data: l, setData: s, treeTitle: p = "Attività" }, m) => {
10
+ const i = y(() => {
11
11
  const t = [];
12
- for (const e of s)
13
- e.hasOwnProperty("expanded") && !e.expanded && t.push(e.key);
14
- return s.filter((e) => !e.parentsKeys.some(
15
- (r) => t.includes(r)
12
+ for (const e of l)
13
+ Object.prototype.hasOwnProperty.call(e, "expanded") && !e.expanded && t.push(e.key);
14
+ return l.filter((e) => !e.parentsKeys.some(
15
+ (n) => t.includes(n)
16
16
  ));
17
- }, [s]), u = h(
17
+ }, [l]), u = f(
18
18
  (t) => {
19
- const e = [...s], n = e.find((r) => r.key === t);
20
- n?.hasOwnProperty("expanded") && (n.expanded = !n.expanded), l(e);
19
+ const e = [...l], r = e.find((n) => n.key === t);
20
+ r && Object.prototype.hasOwnProperty.call(r, "expanded") && (r.expanded = !r.expanded), s(e);
21
21
  },
22
- [s, l]
22
+ [l, s]
23
23
  );
24
24
  return /* @__PURE__ */ a(
25
25
  "div",
26
26
  {
27
27
  className: "gantt-tree-wrap bg-d-background",
28
28
  style: {
29
- width: i.TREE_WIDTH,
30
- marginTop: -i.HEADER_HEIGHT
29
+ width: o.TREE_WIDTH,
30
+ marginTop: -o.HEADER_HEIGHT
31
31
  },
32
32
  children: /* @__PURE__ */ a(
33
- E,
33
+ h,
34
34
  {
35
- ref: p,
35
+ ref: m,
36
36
  className: "gantt-tree-list bg-d-background",
37
37
  layout: "vertical",
38
38
  width: "100%",
39
39
  height: c,
40
- itemCount: o.length,
41
- itemSize: () => i.ROW_HEIGHT,
42
- itemData: o,
40
+ itemCount: i.length,
41
+ itemSize: () => o.ROW_HEIGHT,
42
+ itemData: i,
43
43
  innerElementType: ({ children: t, props: e }) => /* @__PURE__ */ d(
44
44
  "div",
45
45
  {
46
- style: { height: o.length * i.ROW_HEIGHT },
46
+ style: { height: i.length * o.ROW_HEIGHT },
47
47
  ...e,
48
48
  children: [
49
49
  /* @__PURE__ */ a(
50
50
  "div",
51
51
  {
52
52
  className: "gantt-tree-title bg-d-background",
53
- style: { height: i.HEADER_HEIGHT },
54
- children: m
53
+ style: { height: o.HEADER_HEIGHT },
54
+ children: p
55
55
  }
56
56
  ),
57
57
  /* @__PURE__ */ a("div", { className: "gantt-tree-inner-wrap", children: t })
58
58
  ]
59
59
  }
60
60
  ),
61
- children: ({ style: t, index: e, data: n }) => {
62
- const r = n[e];
61
+ children: ({ style: t, index: e, data: r }) => {
62
+ const n = r[e];
63
63
  return /* @__PURE__ */ d(
64
64
  "button",
65
65
  {
@@ -67,12 +67,12 @@ const b = g(
67
67
  style: {
68
68
  ...t,
69
69
  backgroundColor: e % 2 === 0 ? "var(--d-background)" : "var(--d-secondary)",
70
- paddingLeft: i.LEAF_TITLE_PADDING_LEFT + r.level * i.LEAF_CHILDREN_PADDING_LEFT
70
+ paddingLeft: o.LEAF_TITLE_PADDING_LEFT + n.level * o.LEAF_CHILDREN_PADDING_LEFT
71
71
  },
72
- onClick: () => u(r.key),
72
+ onClick: () => u(n.key),
73
73
  children: [
74
- r.hasOwnProperty("expanded") ? r.expanded ? /* @__PURE__ */ a(y, { className: "gantt-tree-icon" }) : /* @__PURE__ */ a(T, { className: "gantt-tree-icon" }) : null,
75
- /* @__PURE__ */ a("div", { children: n[e].title })
74
+ Object.prototype.hasOwnProperty.call(n, "expanded") ? n.expanded ? /* @__PURE__ */ a(E, { className: "gantt-tree-icon" }) : /* @__PURE__ */ a(b, { className: "gantt-tree-icon" }) : null,
75
+ /* @__PURE__ */ a("div", { children: r[e].title })
76
76
  ]
77
77
  }
78
78
  );
@@ -83,7 +83,7 @@ const b = g(
83
83
  );
84
84
  }
85
85
  );
86
- b.displayName = "Tree";
86
+ T.displayName = "Tree";
87
87
  export {
88
- b as default
88
+ T as default
89
89
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
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 a } from "react";
4
- import G from "../../../../../_virtual/dayjs.min.js";
5
- import { cn as P } from "../../../../../lib/utils.js";
3
+ import y from "../../../../../_virtual/dayjs.min.js";
4
+ import { useContext as G, useState as h, useMemo as f, useCallback as a } from "react";
6
5
  import { Button as g } from "../../../button.js";
7
6
  import { Select as S, SelectTrigger as b, SelectValue as x, SelectContent as v, SelectItem as C } from "../../../select.js";
7
+ import { cn as P } from "../../../../../lib/utils.js";
8
8
  import { GanttContext as B } from "../Gantt/GanttContext.js";
9
9
  import { useGanttCalculate as L } from "../../hooks/useGanttCalculate.js";
10
10
  import M from "../../../../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
@@ -12,7 +12,7 @@ import R from "../../../../../node_modules/lucide-react/dist/esm/icons/chevron-r
12
12
  import { GanttDimensionsSettings as l } from "../../constants/DimensionsSettings.js";
13
13
  import { DragStepOptions as u } from "../../constants/DragStepOptions.js";
14
14
  const Y = ({ className: D }) => {
15
- const { calculate: s } = L(), { settings: r, setSettings: p, currentDate: j } = y(B), [z, c] = h(r.dimension), [t, m] = h(
15
+ const { calculate: s } = L(), { settings: r, setSettings: p, currentDate: j } = G(B), [z, c] = h(r.dimension), [t, m] = h(
16
16
  Object.keys(l).findIndex(
17
17
  (e) => e === r.dimension
18
18
  )
@@ -80,7 +80,7 @@ const Y = ({ className: D }) => {
80
80
  children: /* @__PURE__ */ n(R, { className: "h-4 w-4" })
81
81
  }
82
82
  ),
83
- /* @__PURE__ */ n("div", { className: "px-4 text-sm font-medium", children: G.unix(j).format("ddd, ll") }),
83
+ /* @__PURE__ */ n("div", { className: "px-4 text-sm font-medium", children: y.unix(j).format("ddd, ll") }),
84
84
  /* @__PURE__ */ d(S, { value: r.dragStepSize, onValueChange: w, children: [
85
85
  /* @__PURE__ */ n(b, { className: "w-[180px]", children: /* @__PURE__ */ n(x, { placeholder: "Seleziona step" }) }),
86
86
  /* @__PURE__ */ n(v, { children: I.map((e) => /* @__PURE__ */ n(C, { value: e.value, children: e.label }, e.value)) })
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
- import { useMemo as a, useRef as z, useState as e } from "react";
4
3
  import p from "../../../../../_virtual/dayjs.min.js";
5
- import H from "../../../../../_virtual/localizedFormat.js";
4
+ import z from "../../../../../_virtual/localizedFormat.js";
5
+ import { useMemo as a, useRef as H, useState as e } from "react";
6
6
  import { GanttContext as M } from "./GanttContext.js";
7
7
  import N from "../Chart/Chart.js";
8
8
  import P from "../Controls/Controls.js";
@@ -14,7 +14,7 @@ import { DragStepSizes as U } from "../../enums/DragStepSizes.js";
14
14
  import { GanttConsts as _ } from "../../constants/GanttConsts.js";
15
15
  import { GanttDimensionsSettings as s } from "../../constants/DimensionsSettings.js";
16
16
  import { DragStepOptions as b } from "../../constants/DragStepOptions.js";
17
- p.extend(H);
17
+ p.extend(z);
18
18
  const l = ({
19
19
  children: S,
20
20
  draggable: d = !1,
@@ -25,7 +25,7 @@ const l = ({
25
25
  const r = a(() => {
26
26
  const o = t === c.DAY ? m.MONTH : m.DAY;
27
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({
28
+ }, [t]), x = a(() => A(t, r), [t, r]), I = H(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
31
  scaleStepItems: _.HOURS_IN_DAY,
@@ -4,34 +4,41 @@ import { GanttContext as d } from "../components/Gantt/GanttContext.js";
4
4
  import { getScaleDates as D } from "../utils/getScaleDates.js";
5
5
  import { getInitialScrollOffset as z } from "../utils/getInitialScrollOffset.js";
6
6
  import { DragStepOptions as C } from "../constants/DragStepOptions.js";
7
- import { GanttDimensionsSettings as x } from "../constants/DimensionsSettings.js";
7
+ import { GanttDimensionsSettings as b } from "../constants/DimensionsSettings.js";
8
8
  const k = () => {
9
- const { setScaleDates: a, wrapRef: r, settings: t, setSettings: o, currentDate: e } = f(d);
9
+ const { setScaleDates: r, wrapRef: s, settings: t, setSettings: o, currentDate: e } = f(d);
10
10
  return { calculate: u(
11
- (s) => {
11
+ (a) => {
12
12
  const {
13
- stepWidth: l,
13
+ stepWidth: i,
14
14
  itemsCount: S,
15
- scaleStepItems: p,
16
- secondsInPixel: n,
17
- unitOfTime: g
18
- } = x[s], c = D(e, S, g), i = z(
19
- s,
20
- c,
15
+ scaleStepItems: g,
16
+ secondsInPixel: l,
17
+ unitOfTime: p
18
+ } = b[a], n = D(e, S, p), c = z(
19
+ a,
20
+ n,
21
21
  e
22
- ), m = C[t.dragStepSize].seconds / n;
22
+ ), m = C[t.dragStepSize].seconds / l;
23
23
  o({
24
- stepWidth: l,
25
- initialScrollOffset: i,
26
- scaleStepItems: p,
27
- secondsInPixel: n,
28
- dimension: s,
24
+ stepWidth: i,
25
+ initialScrollOffset: c,
26
+ scaleStepItems: g,
27
+ secondsInPixel: l,
28
+ dimension: a,
29
29
  dragStepSize: t.dragStepSize,
30
30
  gridSize: m,
31
31
  draggable: t.draggable
32
- }), a(c), r.current?.scrollTo({ left: i });
32
+ }), r(n), s.current?.scrollTo({ left: c });
33
33
  },
34
- [e, a, o, t.dragStepSize, r]
34
+ [
35
+ e,
36
+ r,
37
+ o,
38
+ t.dragStepSize,
39
+ t.draggable,
40
+ s
41
+ ]
35
42
  ) };
36
43
  };
37
44
  export {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as w } from "react/jsx-runtime";
3
- import { cn as n } from "../../lib/utils.js";
4
3
  import { motion as c } from "framer-motion";
5
4
  import * as s from "react";
5
+ import { cn as n } from "../../lib/utils.js";
6
6
  const x = {
7
7
  container: {
8
8
  initial: { opacity: 0, y: 20 },
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsxs as f, jsx as l } from "react/jsx-runtime";
3
+ import { cva as j } from "../../node_modules/class-variance-authority/dist/index.js";
4
+ import * as a from "react";
3
5
  import { designTokens as o } from "../design-tokens.js";
4
6
  import { Label as se } from "./label.js";
5
7
  import { cn as n } from "../../lib/utils.js";
6
- import { cva as j } from "../../node_modules/class-variance-authority/dist/index.js";
7
- import * as a from "react";
8
8
  import { Icon as N } from "./icon.js";
9
9
  import { Typo as te } from "./typo.js";
10
10
  const ae = j(
@@ -64,7 +64,7 @@ const ae = j(
64
64
  startContent: S,
65
65
  endContent: E,
66
66
  size: g,
67
- disabled: d,
67
+ disabled: c,
68
68
  required: C,
69
69
  onBlur: O,
70
70
  onChange: _,
@@ -76,18 +76,18 @@ const ae = j(
76
76
  validityI18n: e,
77
77
  ...$
78
78
  }, J) => {
79
- const [u, K] = a.useState(!1), [h, k] = a.useState(!0), [Q, L] = a.useState(!1), [U, V] = a.useState(""), X = a.useId(), w = G ?? X, R = `${w}-validity`, x = a.useRef(null), b = p === "password", Y = b ? u ? "text" : "password" : p, W = F ?? (!h && Q ? !0 : void 0), Z = [H, B && R].filter(Boolean).join(" ").trim() || void 0;
79
+ const [d, K] = a.useState(!1), [h, k] = a.useState(!0), [Q, L] = a.useState(!1), [U, V] = a.useState(""), X = a.useId(), w = G ?? X, R = `${w}-validity`, x = a.useRef(null), b = p === "password", Y = b ? d ? "text" : "password" : p, W = F ?? (!h && Q ? !0 : void 0), Z = [H, B && R].filter(Boolean).join(" ").trim() || void 0;
80
80
  a.useImperativeHandle(J, () => x.current);
81
81
  const q = a.useCallback(
82
82
  (t) => {
83
- if (d) return;
83
+ if (c) return;
84
84
  const s = t.target;
85
85
  if (s.tagName === "INPUT" || s.tagName === "BUTTON") return;
86
86
  const r = x.current;
87
87
  r && (r.focus(), !b && p !== "file" && r.select());
88
88
  },
89
- [d, b, p]
90
- ), c = a.useCallback(
89
+ [c, b, p]
90
+ ), u = a.useCallback(
91
91
  (t) => {
92
92
  const s = t.validity, r = t.validationMessage !== "" ? t.validationMessage : "✓";
93
93
  if (s.valid)
@@ -104,28 +104,28 @@ const ae = j(
104
104
  );
105
105
  a.useEffect(() => {
106
106
  if (x.current) {
107
- const { isValid: t, message: s } = c(x.current);
107
+ const { isValid: t, message: s } = u(x.current);
108
108
  k(t), V(s);
109
109
  }
110
- }, [c]);
110
+ }, [u]);
111
111
  const y = a.useCallback(
112
112
  (t) => {
113
113
  L(!0);
114
- const { isValid: s, message: r } = c(t.currentTarget);
114
+ const { isValid: s, message: r } = u(t.currentTarget);
115
115
  k(s), V(r), _?.(t);
116
116
  },
117
- [_, c]
117
+ [_, u]
118
118
  ), I = a.useCallback(
119
119
  (t) => {
120
120
  L(!0), O?.(t);
121
121
  },
122
- [O, c]
122
+ [O]
123
123
  ), ee = a.useCallback(
124
124
  (t) => {
125
- const { isValid: s, message: r } = c(t.currentTarget);
125
+ const { isValid: s, message: r } = u(t.currentTarget);
126
126
  k(s), V(r), z?.(t);
127
127
  },
128
- [z, c]
128
+ [z, u]
129
129
  );
130
130
  return /* @__PURE__ */ f("div", { className: n("flex flex-col gap-1.5", A), children: [
131
131
  T && /* @__PURE__ */ f(se, { htmlFor: w, className: n("gap-0.5", D), children: [
@@ -138,7 +138,7 @@ const ae = j(
138
138
  {
139
139
  className: n(
140
140
  ae({ size: g }),
141
- d ? "cursor-not-allowed opacity-50" : "cursor-text"
141
+ c ? "cursor-not-allowed opacity-50" : "cursor-text"
142
142
  ),
143
143
  "aria-invalid": W,
144
144
  onClick: q,
@@ -155,7 +155,7 @@ const ae = j(
155
155
  "data-slot": "input",
156
156
  className: n(re({ size: g })),
157
157
  ref: x,
158
- disabled: d,
158
+ disabled: c,
159
159
  onChange: y,
160
160
  onBlur: I,
161
161
  onInvalid: ee,
@@ -175,22 +175,22 @@ const ae = j(
175
175
  },
176
176
  className: n(
177
177
  "text-d-muted-foreground flex shrink-0 cursor-pointer items-center",
178
- d && "cursor-not-allowed"
178
+ c && "cursor-not-allowed"
179
179
  ),
180
- "aria-label": u ? m.hide : m.show,
181
- "aria-pressed": u,
180
+ "aria-label": d ? m.hide : m.show,
181
+ "aria-pressed": d,
182
182
  "aria-controls": w,
183
- title: u ? m.hide : m.show,
184
- disabled: d,
183
+ title: d ? m.hide : m.show,
184
+ disabled: c,
185
185
  children: [
186
186
  /* @__PURE__ */ l(
187
187
  N,
188
188
  {
189
- name: u ? "EyeOff" : "Eye",
189
+ name: d ? "EyeOff" : "Eye",
190
190
  size: g === "lg" ? "sm" : "xs"
191
191
  }
192
192
  ),
193
- /* @__PURE__ */ l("span", { className: "sr-only", children: u ? m.hide : m.show })
193
+ /* @__PURE__ */ l("span", { className: "sr-only", children: d ? m.hide : m.show })
194
194
  ]
195
195
  }
196
196
  ) : (M || E) && /* @__PURE__ */ f("div", { className: "text-d-muted-foreground flex shrink-0 items-center gap-2", children: [
@@ -248,10 +248,7 @@ function xe({
248
248
  }, []), c = h(() => {
249
249
  const s = d.current;
250
250
  if (!s) return;
251
- if (t && Object.prototype.hasOwnProperty.call(
252
- t,
253
- "--kanban-column-min-height"
254
- )) {
251
+ if (t && Object.prototype.hasOwnProperty.call(t, "--kanban-column-min-height")) {
255
252
  n(null);
256
253
  return;
257
254
  }
@@ -279,7 +276,9 @@ function xe({
279
276
  x = Math.max(x, k.scrollHeight);
280
277
  b && s.style.setProperty("--kanban-column-min-height", b);
281
278
  const B = Math.ceil(x);
282
- n(Number.isFinite(B) && B > 0 ? B : 0);
279
+ n(
280
+ Number.isFinite(B) && B > 0 ? B : 0
281
+ );
283
282
  }, [n, t]), f = h(() => {
284
283
  i.current === null && (i.current = requestAnimationFrame(() => {
285
284
  i.current = null, c();
@@ -348,8 +347,8 @@ function ye({
348
347
  "aria-labelledby": `column-${r}-title`,
349
348
  className: D(
350
349
  se,
351
- g && "border-d-primary/80 bg-d-primary/10 ring-2 ring-d-primary/30",
352
- m && "border-d-destructive/70 bg-d-destructive/10 ring-2 ring-d-destructive/20",
350
+ g && "border-d-primary/80 bg-d-primary/10 ring-d-primary/30 ring-2",
351
+ m && "border-d-destructive/70 bg-d-destructive/10 ring-d-destructive/20 ring-2",
353
352
  e
354
353
  ),
355
354
  "aria-disabled": l,
@@ -523,7 +522,7 @@ function Te({
523
522
  !a && "bg-d-card/95",
524
523
  le,
525
524
  "focus-visible:ring-d-ring inline-flex w-full touch-manipulation flex-col gap-2 transition-all duration-200 focus-visible:ring-1 focus-visible:outline-none",
526
- t ? "group/card relative cursor-default" : c ? "cursor-grabbing active:cursor-grabbing opacity-40" : "group/card relative cursor-grab hover:-translate-y-0.5 hover:shadow-lg",
525
+ t ? "group/card relative cursor-default" : c ? "cursor-grabbing opacity-40 active:cursor-grabbing" : "group/card relative cursor-grab hover:-translate-y-0.5 hover:shadow-lg",
527
526
  l && "rotate-1 transform shadow-lg",
528
527
  e
529
528
  ),
@@ -539,7 +538,7 @@ function Te({
539
538
  g && g.length > 0 && /* @__PURE__ */ p("div", { className: "mt-1.5 flex flex-wrap gap-1.5", children: g.map((o, b) => /* @__PURE__ */ C(
540
539
  "div",
541
540
  {
542
- className: "text-d-muted-foreground inline-flex items-center gap-1 rounded-full border bg-d-muted/40 px-2 py-0.5 text-[11px]",
541
+ className: "text-d-muted-foreground bg-d-muted/40 inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px]",
543
542
  style: {
544
543
  borderColor: a ? `${a}40` : void 0
545
544
  },