laif-ds 0.1.70 → 0.1.72
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/index4.js +5 -2
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -5
- package/dist/_virtual/index7.js +2 -5
- package/dist/_virtual/index8.js +5 -2
- package/dist/_virtual/isoWeek.js +8 -0
- package/dist/_virtual/isoWeek2.js +5 -0
- package/dist/_virtual/it.js +3 -0
- package/dist/_virtual/it2.js +5 -0
- package/dist/_virtual/lodash.js +6 -0
- package/dist/_virtual/lodash2.js +5 -0
- package/dist/components/ui/app-multiple-select-dropdown.js +96 -94
- package/dist/components/ui/command-portal.js +15 -13
- package/dist/components/ui/dialog.js +39 -35
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/tooltip.js +61 -30
- package/dist/components/ui/weekly-calendar/appointment-card.js +97 -0
- package/dist/components/ui/weekly-calendar/calendar-context.js +35 -0
- package/dist/components/ui/weekly-calendar/calendar-header.js +73 -0
- package/dist/components/ui/weekly-calendar/current-timeline.js +26 -0
- package/dist/components/ui/weekly-calendar/day-column.js +108 -0
- package/dist/components/ui/weekly-calendar/time-column.js +34 -0
- package/dist/components/ui/weekly-calendar/weekly-calendar.js +120 -0
- package/dist/index.d.ts +50 -2
- package/dist/index.js +110 -104
- package/dist/lib/utils.js +27 -5
- package/dist/node_modules/dayjs/locale/it.js +22 -0
- package/dist/node_modules/dayjs/plugin/isoWeek.js +34 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/lodash/lodash.js +3678 -0
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +44 -44
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
a as default
|
|
5
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
-
var t = r();
|
|
5
|
-
const x = /* @__PURE__ */ e(t);
|
|
2
|
+
var e = { exports: {} };
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __module
|
|
8
5
|
};
|
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
-
var s = e();
|
|
5
|
-
const o = /* @__PURE__ */ r(s);
|
|
2
|
+
var e = {};
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __exports
|
|
8
5
|
};
|
package/dist/_virtual/index8.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
+
var s = e();
|
|
5
|
+
const o = /* @__PURE__ */ r(s);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
o as default
|
|
5
8
|
};
|
|
@@ -1,171 +1,173 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Label as
|
|
6
|
-
import { Badge as
|
|
2
|
+
import { jsx as r, jsxs as l, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { cn as N } from "../../lib/utils.js";
|
|
5
|
+
import { Label as B } from "./label.js";
|
|
6
|
+
import { Badge as F } from "./badge.js";
|
|
7
7
|
import { Button as C } from "./button.js";
|
|
8
|
-
import { Command as
|
|
9
|
-
import {
|
|
8
|
+
import { Command as E, CommandList as G, CommandEmpty as V, CommandGroup as X, CommandItem as $ } from "./command.js";
|
|
9
|
+
import { inputVariants as q } from "./input.js";
|
|
10
10
|
import { Checkbox as H } from "./checkbox.js";
|
|
11
|
-
import {
|
|
12
|
-
import J from "
|
|
13
|
-
import K from "../../node_modules/lucide-react/dist/esm/icons/
|
|
14
|
-
import Q from "../../node_modules/lucide-react/dist/esm/icons/
|
|
15
|
-
const T =
|
|
16
|
-
function
|
|
17
|
-
options:
|
|
18
|
-
value:
|
|
19
|
-
onChange:
|
|
20
|
-
placeholder:
|
|
21
|
-
disabled:
|
|
22
|
-
size:
|
|
11
|
+
import { Icon as I } from "./icon.js";
|
|
12
|
+
import { CommandPortal as J } from "./command-portal.js";
|
|
13
|
+
import K from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
14
|
+
import Q from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
15
|
+
const T = n.createContext({ size: "default" });
|
|
16
|
+
function oe({
|
|
17
|
+
options: s,
|
|
18
|
+
value: a,
|
|
19
|
+
onChange: o,
|
|
20
|
+
placeholder: y = "Seleziona...",
|
|
21
|
+
disabled: k = !1,
|
|
22
|
+
size: f = "default",
|
|
23
23
|
label: p,
|
|
24
|
-
labelClassName:
|
|
24
|
+
labelClassName: z,
|
|
25
25
|
emptyMessage: M = "Nessun risultato trovato",
|
|
26
|
-
className:
|
|
27
|
-
filterPlaceholder:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
className: j,
|
|
27
|
+
filterPlaceholder: P = "Cerca...",
|
|
28
|
+
filterable: D = !1,
|
|
29
|
+
cancelLabel: L = "Cancella selezione",
|
|
30
|
+
cancelButtonLabel: R = "Cancella",
|
|
31
|
+
maxSelectedItems: t
|
|
31
32
|
}) {
|
|
32
|
-
const
|
|
33
|
+
const m = n.useId(), [u, h] = n.useState(!1), [c, b] = n.useState(""), g = n.useRef(null), v = n.useCallback(
|
|
33
34
|
(e) => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
35
|
+
if (a.includes(e))
|
|
36
|
+
o(a.filter((i) => i !== e));
|
|
36
37
|
else {
|
|
37
|
-
if (
|
|
38
|
+
if (t && a.length >= t)
|
|
38
39
|
return;
|
|
39
|
-
|
|
40
|
+
o([...a, e]);
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
[
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
}, [
|
|
46
|
-
(e) => e.label.toLowerCase().includes(
|
|
47
|
-
) :
|
|
48
|
-
return /* @__PURE__ */ r(T.Provider, { value: { size:
|
|
49
|
-
p && /* @__PURE__ */ r(
|
|
50
|
-
/* @__PURE__ */
|
|
43
|
+
[a, o, t]
|
|
44
|
+
), w = n.useCallback(() => {
|
|
45
|
+
o([]), b("");
|
|
46
|
+
}, [o]), d = n.useMemo(() => s.filter((e) => a.includes(e.value)), [s, a]), S = n.useMemo(() => c ? s.filter(
|
|
47
|
+
(e) => e.label.toLowerCase().includes(c.toLowerCase())
|
|
48
|
+
) : s, [s, c]), x = n.useMemo(() => t ? a.length >= t : !1, [a, t]);
|
|
49
|
+
return /* @__PURE__ */ r(T.Provider, { value: { size: f, id: m }, children: /* @__PURE__ */ l("div", { className: "space-y-1.5", children: [
|
|
50
|
+
p && /* @__PURE__ */ r(B, { htmlFor: m, className: z, children: p }),
|
|
51
|
+
/* @__PURE__ */ l(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
|
-
ref:
|
|
54
|
+
ref: g,
|
|
54
55
|
className: "relative w-full",
|
|
55
56
|
"data-slot": "app-multiple-select-dropdown",
|
|
56
57
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ l(
|
|
58
59
|
C,
|
|
59
60
|
{
|
|
60
|
-
id:
|
|
61
|
+
id: m,
|
|
61
62
|
type: "button",
|
|
62
63
|
variant: "outline",
|
|
63
64
|
role: "combobox",
|
|
64
|
-
"aria-expanded":
|
|
65
|
-
disabled:
|
|
66
|
-
className:
|
|
65
|
+
"aria-expanded": u,
|
|
66
|
+
disabled: k,
|
|
67
|
+
className: N(
|
|
67
68
|
"relative w-full justify-between border bg-transparent font-normal",
|
|
68
69
|
"border-d-input ring-offset-background focus:ring-ring flex items-center rounded-md border !bg-transparent whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
69
70
|
"aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
|
|
70
|
-
|
|
71
|
-
c === "sm" && "h-8 px-2 py-1 text-xs",
|
|
72
|
-
c === "lg" && "h-10 px-4 py-2 text-lg",
|
|
73
|
-
L
|
|
71
|
+
j
|
|
74
72
|
),
|
|
75
|
-
onClick: () => h(!
|
|
73
|
+
onClick: () => h(!u),
|
|
76
74
|
children: [
|
|
77
|
-
/* @__PURE__ */ r("div", { className: "flex w-full items-center gap-2 overflow-hidden", children:
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
75
|
+
/* @__PURE__ */ r("div", { className: "flex w-full items-center gap-2 overflow-hidden", children: d.length > 0 ? /* @__PURE__ */ l(A, { children: [
|
|
76
|
+
/* @__PURE__ */ l(
|
|
77
|
+
F,
|
|
80
78
|
{
|
|
81
79
|
variant: "secondary",
|
|
82
80
|
className: "flex items-center gap-1",
|
|
83
81
|
children: [
|
|
84
|
-
/* @__PURE__ */ r("span", { children:
|
|
85
|
-
|
|
82
|
+
/* @__PURE__ */ r("span", { children: d.length }),
|
|
83
|
+
d.length === 1 ? " elemento selezionato" : " elementi selezionati"
|
|
86
84
|
]
|
|
87
85
|
}
|
|
88
86
|
),
|
|
89
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ l(
|
|
90
88
|
"div",
|
|
91
89
|
{
|
|
92
90
|
className: "hover:bg-d-secondary flex h-5 w-5 items-center justify-center gap-1 rounded-full p-0",
|
|
93
91
|
onClick: (e) => {
|
|
94
|
-
|
|
92
|
+
e.stopPropagation(), e.preventDefault(), w();
|
|
95
93
|
},
|
|
96
94
|
children: [
|
|
97
|
-
/* @__PURE__ */ r(
|
|
98
|
-
/* @__PURE__ */ r("span", { className: "sr-only", children:
|
|
95
|
+
/* @__PURE__ */ r(K, { className: "h-3 w-3" }),
|
|
96
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: L })
|
|
99
97
|
]
|
|
100
98
|
}
|
|
101
99
|
)
|
|
102
|
-
] }) : /* @__PURE__ */ r("span", { className: "text-d-muted-foreground", children:
|
|
103
|
-
/* @__PURE__ */ r(
|
|
100
|
+
] }) : /* @__PURE__ */ r("span", { className: "text-d-muted-foreground", children: y }) }),
|
|
101
|
+
/* @__PURE__ */ r(Q, { className: "ml-1 h-4 w-4 shrink-0 opacity-50" })
|
|
104
102
|
]
|
|
105
103
|
}
|
|
106
104
|
),
|
|
107
105
|
/* @__PURE__ */ r(
|
|
108
|
-
|
|
106
|
+
J,
|
|
109
107
|
{
|
|
110
|
-
open:
|
|
111
|
-
triggerRef:
|
|
108
|
+
open: u,
|
|
109
|
+
triggerRef: g,
|
|
112
110
|
onClose: () => h(!1),
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
111
|
+
children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ l(E, { className: "bg-d-popover w-full rounded-md border shadow-md", children: [
|
|
112
|
+
D && /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-b px-3", children: [
|
|
113
|
+
/* @__PURE__ */ l("div", { className: "flex items-center", children: [
|
|
114
|
+
/* @__PURE__ */ r(I, { name: "Search", className: "text-d-accent", size: "sm" }),
|
|
115
|
+
/* @__PURE__ */ r(
|
|
116
|
+
"input",
|
|
117
|
+
{
|
|
118
|
+
id: "app-multiple-select-dropdown-filter",
|
|
119
|
+
placeholder: P,
|
|
120
|
+
value: c,
|
|
121
|
+
onChange: (e) => b(e.target.value),
|
|
122
|
+
className: `focus-visible:ring-none border-none focus-visible:border-none disabled:opacity-50 ${q({ size: f })} !shadow-none`
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] }),
|
|
126
|
+
d.length > 0 && /* @__PURE__ */ r(
|
|
126
127
|
C,
|
|
127
128
|
{
|
|
128
129
|
variant: "ghost",
|
|
129
130
|
size: "sm",
|
|
130
131
|
className: "h-6 px-2 text-xs",
|
|
131
|
-
onClick:
|
|
132
|
-
children:
|
|
132
|
+
onClick: w,
|
|
133
|
+
children: R
|
|
133
134
|
}
|
|
134
135
|
)
|
|
135
136
|
] }),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */ r(
|
|
138
|
-
/* @__PURE__ */ r(
|
|
139
|
-
const
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
|
|
137
|
+
/* @__PURE__ */ l(G, { className: "max-h-60 w-full overflow-auto", children: [
|
|
138
|
+
/* @__PURE__ */ r(V, { children: M }),
|
|
139
|
+
/* @__PURE__ */ r(X, { children: S.map((e) => {
|
|
140
|
+
const i = a.includes(e.value);
|
|
141
|
+
return /* @__PURE__ */ l(
|
|
142
|
+
$,
|
|
142
143
|
{
|
|
143
144
|
value: e.value,
|
|
144
|
-
disabled: e.disabled || !
|
|
145
|
-
onSelect: () =>
|
|
146
|
-
className:
|
|
145
|
+
disabled: e.disabled || !i && x,
|
|
146
|
+
onSelect: () => v(e.value),
|
|
147
|
+
className: N(
|
|
147
148
|
"aria-selected:bg-d-accent aria-selected:text-d-accent-foreground flex cursor-pointer items-center gap-2 px-2 py-1.5",
|
|
148
|
-
(e.disabled || !
|
|
149
|
+
(e.disabled || !i && x) && "cursor-not-allowed opacity-50"
|
|
149
150
|
),
|
|
151
|
+
onPointerDown: (O) => O.stopPropagation(),
|
|
150
152
|
children: [
|
|
151
153
|
/* @__PURE__ */ r(
|
|
152
154
|
H,
|
|
153
155
|
{
|
|
154
|
-
checked:
|
|
156
|
+
checked: i,
|
|
155
157
|
className: "mr-2 flex-shrink-0",
|
|
156
158
|
onCheckedChange: () => {
|
|
159
|
+
console.log("checkbox change for:", e.value), v(e.value);
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
162
|
),
|
|
160
|
-
/* @__PURE__ */ r("span", { className: "flex-1 truncate", children: e.label })
|
|
161
|
-
s && /* @__PURE__ */ r(Q, { className: "text-d-primary ml-auto h-4 w-4 flex-shrink-0" })
|
|
163
|
+
/* @__PURE__ */ r("span", { className: "flex-1 truncate", children: e.label })
|
|
162
164
|
]
|
|
163
165
|
},
|
|
164
166
|
e.value
|
|
165
167
|
);
|
|
166
168
|
}) })
|
|
167
169
|
] })
|
|
168
|
-
] })
|
|
170
|
+
] }) })
|
|
169
171
|
}
|
|
170
172
|
)
|
|
171
173
|
]
|
|
@@ -174,5 +176,5 @@ function ne({
|
|
|
174
176
|
] }) });
|
|
175
177
|
}
|
|
176
178
|
export {
|
|
177
|
-
|
|
179
|
+
oe as AppMultipleSelectDropdown
|
|
178
180
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import * as f from "react";
|
|
4
|
-
import { useState as h, useEffect as
|
|
4
|
+
import { useState as h, useEffect as i } from "react";
|
|
5
5
|
import { Portal as x } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
6
6
|
import { cn as E } from "../../lib/utils.js";
|
|
7
7
|
function C({
|
|
@@ -11,7 +11,7 @@ function C({
|
|
|
11
11
|
triggerRef: r,
|
|
12
12
|
onClose: s
|
|
13
13
|
}) {
|
|
14
|
-
const l = f.useRef(null), [
|
|
14
|
+
const l = f.useRef(null), [o, c] = h(null), n = f.useCallback(() => {
|
|
15
15
|
if (t && r.current) {
|
|
16
16
|
const e = r.current.getBoundingClientRect();
|
|
17
17
|
c({
|
|
@@ -22,39 +22,41 @@ function C({
|
|
|
22
22
|
} else
|
|
23
23
|
c(null);
|
|
24
24
|
}, [t, r]);
|
|
25
|
-
return
|
|
25
|
+
return i(() => {
|
|
26
26
|
n();
|
|
27
|
-
}, [t, n]),
|
|
27
|
+
}, [t, n]), i(() => {
|
|
28
28
|
if (t)
|
|
29
29
|
return window.addEventListener("resize", n), () => {
|
|
30
30
|
window.removeEventListener("resize", n);
|
|
31
31
|
};
|
|
32
|
-
}, [t, n]),
|
|
32
|
+
}, [t, n]), i(() => {
|
|
33
33
|
if (t) {
|
|
34
34
|
const e = setInterval(n, 100);
|
|
35
35
|
return () => {
|
|
36
36
|
clearInterval(e);
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
}, [t, n]),
|
|
39
|
+
}, [t, n]), i(() => {
|
|
40
40
|
if (!t || !s) return;
|
|
41
41
|
const e = (p) => {
|
|
42
|
-
var
|
|
43
|
-
const
|
|
44
|
-
(
|
|
42
|
+
var u, d;
|
|
43
|
+
const a = p.target;
|
|
44
|
+
(u = r.current) != null && u.contains(a) || (d = l.current) != null && d.contains(a) || s();
|
|
45
45
|
};
|
|
46
46
|
return document.addEventListener("mousedown", e), () => {
|
|
47
47
|
document.removeEventListener("mousedown", e);
|
|
48
48
|
};
|
|
49
|
-
}, [t, s, r]), !t || !
|
|
49
|
+
}, [t, s, r]), !t || !o ? null : /* @__PURE__ */ m(x, { children: /* @__PURE__ */ m(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
ref: l,
|
|
53
53
|
className: E("fixed z-50 mt-1", v),
|
|
54
|
+
"data-command-portal": !0,
|
|
54
55
|
style: {
|
|
55
|
-
top: `${
|
|
56
|
-
left: `${
|
|
57
|
-
width: `${
|
|
56
|
+
top: `${o.top}px`,
|
|
57
|
+
left: `${o.left}px`,
|
|
58
|
+
width: `${o.width}px`,
|
|
59
|
+
pointerEvents: "auto"
|
|
58
60
|
},
|
|
59
61
|
onClick: (e) => e.stopPropagation(),
|
|
60
62
|
children: w
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { Root as
|
|
2
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { Root as r, Trigger as d, Content as c, Close as g, Title as f, Description as u, Portal as m, Overlay as p } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
|
-
import
|
|
6
|
-
function
|
|
5
|
+
import x from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
|
+
function w({
|
|
7
7
|
...t
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ e(r, { "data-slot": "dialog", ...t });
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function z({
|
|
12
12
|
...t
|
|
13
13
|
}) {
|
|
14
|
-
return /* @__PURE__ */ e(
|
|
14
|
+
return /* @__PURE__ */ e(d, { "data-slot": "dialog-trigger", ...t });
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function v({
|
|
17
17
|
...t
|
|
18
18
|
}) {
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
19
|
+
return /* @__PURE__ */ e(m, { "data-slot": "dialog-portal", ...t });
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function D({
|
|
22
22
|
className: t,
|
|
23
23
|
...a
|
|
24
24
|
}) {
|
|
25
25
|
return /* @__PURE__ */ e(
|
|
26
|
-
|
|
26
|
+
p,
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "dialog-overlay",
|
|
29
29
|
className: o(
|
|
@@ -34,26 +34,30 @@ function x({
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function k({
|
|
38
38
|
className: t,
|
|
39
39
|
children: a,
|
|
40
|
-
...
|
|
40
|
+
...l
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */ e(
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
42
|
+
return /* @__PURE__ */ s(v, { "data-slot": "dialog-portal", children: [
|
|
43
|
+
/* @__PURE__ */ e(D, {}),
|
|
44
|
+
/* @__PURE__ */ s(
|
|
45
|
+
c,
|
|
46
46
|
{
|
|
47
47
|
"data-slot": "dialog-content",
|
|
48
|
+
onPointerDownOutside: (i) => {
|
|
49
|
+
const n = i.target;
|
|
50
|
+
n != null && n.closest("[data-command-portal]") && i.preventDefault();
|
|
51
|
+
},
|
|
48
52
|
className: o(
|
|
49
53
|
"bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
50
54
|
t
|
|
51
55
|
),
|
|
52
|
-
...
|
|
56
|
+
...l,
|
|
53
57
|
children: [
|
|
54
58
|
a,
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */ e(
|
|
59
|
+
/* @__PURE__ */ s(g, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-accent data-[state=open]:text-d-secondary-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
60
|
+
/* @__PURE__ */ e(x, {}),
|
|
57
61
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
58
62
|
] })
|
|
59
63
|
]
|
|
@@ -61,7 +65,7 @@ function z({
|
|
|
61
65
|
)
|
|
62
66
|
] });
|
|
63
67
|
}
|
|
64
|
-
function
|
|
68
|
+
function C({ className: t, ...a }) {
|
|
65
69
|
return /* @__PURE__ */ e(
|
|
66
70
|
"div",
|
|
67
71
|
{
|
|
@@ -71,7 +75,7 @@ function w({ className: t, ...a }) {
|
|
|
71
75
|
}
|
|
72
76
|
);
|
|
73
77
|
}
|
|
74
|
-
function
|
|
78
|
+
function T({ className: t, ...a }) {
|
|
75
79
|
return /* @__PURE__ */ e(
|
|
76
80
|
"div",
|
|
77
81
|
{
|
|
@@ -84,12 +88,12 @@ function k({ className: t, ...a }) {
|
|
|
84
88
|
}
|
|
85
89
|
);
|
|
86
90
|
}
|
|
87
|
-
function
|
|
91
|
+
function j({
|
|
88
92
|
className: t,
|
|
89
93
|
...a
|
|
90
94
|
}) {
|
|
91
95
|
return /* @__PURE__ */ e(
|
|
92
|
-
|
|
96
|
+
f,
|
|
93
97
|
{
|
|
94
98
|
"data-slot": "dialog-title",
|
|
95
99
|
className: o("text-lg leading-none font-semibold", t),
|
|
@@ -97,12 +101,12 @@ function C({
|
|
|
97
101
|
}
|
|
98
102
|
);
|
|
99
103
|
}
|
|
100
|
-
function
|
|
104
|
+
function O({
|
|
101
105
|
className: t,
|
|
102
106
|
...a
|
|
103
107
|
}) {
|
|
104
108
|
return /* @__PURE__ */ e(
|
|
105
|
-
|
|
109
|
+
u,
|
|
106
110
|
{
|
|
107
111
|
"data-slot": "dialog-description",
|
|
108
112
|
className: o("text-d-secondary-foreground text-sm", t),
|
|
@@ -111,13 +115,13 @@ function T({
|
|
|
111
115
|
);
|
|
112
116
|
}
|
|
113
117
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
w as Dialog,
|
|
119
|
+
k as DialogContent,
|
|
120
|
+
O as DialogDescription,
|
|
121
|
+
T as DialogFooter,
|
|
122
|
+
C as DialogHeader,
|
|
123
|
+
D as DialogOverlay,
|
|
124
|
+
v as DialogPortal,
|
|
125
|
+
j as DialogTitle,
|
|
126
|
+
z as DialogTrigger
|
|
123
127
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
|
|
4
|
-
import A from "../../../../../_virtual/
|
|
4
|
+
import A from "../../../../../_virtual/index8.js";
|
|
5
5
|
import B from "../../../../../_virtual/debounce.js";
|
|
6
6
|
import { GanttContext as F } from "../Gantt/GanttContext.js";
|
|
7
7
|
import { transformData as O } from "../../utils/transformData.js";
|