@umriss-ui/dashboard 0.45.0 → 0.47.0
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/CHANGELOG.md +25 -1
- package/README.md +16 -3
- package/dist/dashboard.js +336 -330
- package/dist/index.d.ts +9 -1
- package/docs/llms-full.md +323 -34
- package/package.json +3 -3
package/dist/dashboard.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./dashboard.css";
|
|
3
|
-
import { Component as
|
|
4
|
-
import { useWording as
|
|
5
|
-
import { jsx as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
const
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
let
|
|
13
|
-
for (;
|
|
14
|
-
return `${e}-${
|
|
15
|
-
},
|
|
16
|
-
root:
|
|
17
|
-
bar:
|
|
18
|
-
mode:
|
|
19
|
-
head:
|
|
20
|
-
editingHead:
|
|
21
|
-
grip:
|
|
22
|
-
title:
|
|
23
|
-
size:
|
|
24
|
-
item:
|
|
25
|
-
placeholder:
|
|
26
|
-
grid:
|
|
27
|
-
headingRow:
|
|
28
|
-
headingHead:
|
|
29
|
-
heading:
|
|
30
|
-
body:
|
|
31
|
-
options:
|
|
32
|
-
catalogue:
|
|
33
|
-
entry:
|
|
34
|
-
footprint:
|
|
35
|
-
entryText:
|
|
3
|
+
import { Component as He, useState as J, useRef as q, useLayoutEffect as ue, useMemo as ie, Children as Ee, isValidElement as he, useEffect as re, Suspense as Re, useSyncExternalStore as fe, createElement as qe } from "react";
|
|
4
|
+
import { useWording as de, FormField as Le, Input as Te, Button as B, Text as Q, GripGlyph as pe, Heading as De, Card as Ae, Skeleton as Ie, Drawer as $e, ModalHeader as Fe, ModalBody as Pe, Popover as Be, announce as U, Menu as je, MenuItem as j, MenuSeparator as te } from "@umriss-ui/core";
|
|
5
|
+
import { jsx as r, jsxs as R, Fragment as ne } from "react/jsx-runtime";
|
|
6
|
+
const ze = (t, e) => t.widgets.some((o) => o.id === e && o.locked !== !0), Ue = (t, e) => (o) => {
|
|
7
|
+
const i = o.widgets.findIndex((a) => a.id === t), S = Math.max(0, Math.min(o.widgets.length - 1, e));
|
|
8
|
+
if (i < 0 || i === S) return o;
|
|
9
|
+
const w = [...o.widgets];
|
|
10
|
+
return w.splice(S, 0, ...w.splice(i, 1)), { ...o, widgets: w };
|
|
11
|
+
}, Ve = (t, e) => (o) => o.widgets.some((i) => i.id === t && i.locked !== !0 && i.size !== e) ? { ...o, widgets: o.widgets.map((i) => i.id === t ? { ...i, size: e } : i) } : o, We = (t) => (e) => ze(e, t) ? { ...e, widgets: e.widgets.filter((o) => o.id !== t) } : e, Ge = (t, e) => {
|
|
12
|
+
let o = 1;
|
|
13
|
+
for (; t.widgets.some((i) => i.id === `${e}-${o}`); ) o++;
|
|
14
|
+
return `${e}-${o}`;
|
|
15
|
+
}, Ye = (t) => (e) => ({ ...e, widgets: [...e.widgets, t] }), Xe = (t, e) => (o) => ze(o, t) ? { ...o, widgets: o.widgets.map((i) => i.id === t ? { ...i, options: e } : i) } : o, Je = "_root_2b0q1_17", Ke = "_bar_2b0q1_34", Qe = "_mode_2b0q1_43", Ze = "_head_2b0q1_58", et = "_editingHead_2b0q1_77", tt = "_grip_2b0q1_85", nt = "_title_2b0q1_90", st = "_size_2b0q1_102", rt = "_item_2b0q1_110", ot = "_placeholder_2b0q1_120", at = "_grid_2b0q1_126", it = "_headingRow_2b0q1_143", dt = "_headingHead_2b0q1_73", ct = "_heading_2b0q1_73", lt = "_body_2b0q1_173", ut = "_options_2b0q1_201", ht = "_catalogue_2b0q1_206", ft = "_entry_2b0q1_214", pt = "_footprint_2b0q1_221", gt = "_entryText_2b0q1_233", _ = {
|
|
16
|
+
root: Je,
|
|
17
|
+
bar: Ke,
|
|
18
|
+
mode: Qe,
|
|
19
|
+
head: Ze,
|
|
20
|
+
editingHead: et,
|
|
21
|
+
grip: tt,
|
|
22
|
+
title: nt,
|
|
23
|
+
size: st,
|
|
24
|
+
item: rt,
|
|
25
|
+
placeholder: ot,
|
|
26
|
+
grid: at,
|
|
27
|
+
headingRow: it,
|
|
28
|
+
headingHead: dt,
|
|
29
|
+
heading: ct,
|
|
30
|
+
body: lt,
|
|
31
|
+
options: ut,
|
|
32
|
+
catalogue: ht,
|
|
33
|
+
entry: ft,
|
|
34
|
+
footprint: pt,
|
|
35
|
+
entryText: gt
|
|
36
36
|
};
|
|
37
|
-
class
|
|
37
|
+
class bt extends He {
|
|
38
38
|
state = { failed: !1 };
|
|
39
39
|
static getDerivedStateFromError() {
|
|
40
40
|
return { failed: !0 };
|
|
@@ -46,403 +46,409 @@ class lt extends ve {
|
|
|
46
46
|
return this.state.failed ? this.props.fallback : this.props.children;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
return
|
|
52
|
-
};
|
|
53
|
-
function
|
|
54
|
-
const
|
|
49
|
+
const ce = (t) => typeof t == "object" && t !== null && !Array.isArray(t), ge = (t) => ce(t) && Array.isArray(t.widgets), le = (t) => t.widgets.filter((e) => ce(e) && typeof e.id == "string" && typeof e.type == "string"), mt = (t) => ({ ...t, widgets: le(t) }), wt = (t, e) => {
|
|
50
|
+
const o = new Set(e.widgets.map((i) => i.id));
|
|
51
|
+
return le(t).filter((i) => !o.has(i.id));
|
|
52
|
+
}, be = (t) => ce(t) && [Object.prototype, null].includes(Object.getPrototypeOf(t)), yt = (t, e) => be(e) ? be(t) ? { ...e, ...t } : e : t === void 0 ? e : t;
|
|
53
|
+
function xe(t, e) {
|
|
54
|
+
const o = /* @__PURE__ */ new Set();
|
|
55
55
|
return {
|
|
56
|
-
...
|
|
57
|
-
widgets:
|
|
58
|
-
const
|
|
59
|
-
return !
|
|
56
|
+
...t,
|
|
57
|
+
widgets: le(t).flatMap((i) => {
|
|
58
|
+
const S = e.get(i.type);
|
|
59
|
+
return !S || o.has(i.id) ? [] : (o.add(i.id), [{ ...i, size: S.sizes[i.size] ? i.size : S.start, options: yt(i.options, S.defaultOptions) }]);
|
|
60
60
|
})
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
for (let
|
|
63
|
+
function Me(t, e) {
|
|
64
|
+
const o = /* @__PURE__ */ new Set(), i = (w, a, s, u) => {
|
|
65
|
+
for (let c = w; c < w + u; c++) for (let z = a; z < a + s; z++) if (o.has(c * e + z)) return !1;
|
|
66
66
|
return !0;
|
|
67
67
|
};
|
|
68
|
-
let
|
|
69
|
-
return
|
|
70
|
-
const
|
|
71
|
-
for (let
|
|
72
|
-
const
|
|
73
|
-
if (!(
|
|
74
|
-
for (let
|
|
75
|
-
return
|
|
68
|
+
let S = 0;
|
|
69
|
+
return t.map((w) => {
|
|
70
|
+
const a = Math.min(w.columns, e);
|
|
71
|
+
for (let s = S; ; s++) {
|
|
72
|
+
const u = Math.floor(s / e), c = s % e;
|
|
73
|
+
if (!(c + a > e || !i(u, c, a, w.rows))) {
|
|
74
|
+
for (let z = u; z < u + w.rows; z++) for (let b = c; b < c + a; b++) o.add(z * e + b);
|
|
75
|
+
return S = s, { column: c, row: u, columns: a, rows: w.rows };
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
let
|
|
82
|
-
for (let
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
80
|
+
function _t(t, e, o, i, S, { cell: w, unit: a, gap: s }) {
|
|
81
|
+
let u = o, c = 1 / 0;
|
|
82
|
+
for (let z = 0; z < t.length; z++) {
|
|
83
|
+
const b = [...t];
|
|
84
|
+
b.splice(z, 0, ...b.splice(o, 1));
|
|
85
|
+
const v = Me(b, e)[z], V = (v.column * (w + s) - i) ** 2 + (v.row * (a + s) - S) ** 2;
|
|
86
|
+
V < c && (c = V, u = z);
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return u;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
91
|
-
function
|
|
92
|
-
const [
|
|
90
|
+
const zt = { 3: "¼", 4: "⅓", 6: "½", 8: "⅔", 9: "¾" }, xt = ({ columns: t }) => t >= 12 ? "" : zt[t] ?? `${t}/12`;
|
|
91
|
+
function Mt({ grid: t, cards: e, shown: o, drop: i, cancelled: S }) {
|
|
92
|
+
const [w, a] = J(null), s = q(null), u = q({}), c = q(/* @__PURE__ */ new Map()), z = q(null), b = q({ update: () => {
|
|
93
93
|
}, finish: () => {
|
|
94
|
-
} }),
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
-
const
|
|
98
|
-
|
|
94
|
+
} }), v = () => {
|
|
95
|
+
const d = s.current, l = d && e.get(d.id);
|
|
96
|
+
if (!d || !z.current || !l) return;
|
|
97
|
+
const m = z.current.getBoundingClientRect();
|
|
98
|
+
l.style.transform = `translate(${d.x - d.dx - m.left}px, ${d.y - d.dy - m.top}px)`;
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
for (const [
|
|
103
|
-
const
|
|
104
|
-
|
|
100
|
+
ue(() => {
|
|
101
|
+
const d = /* @__PURE__ */ new Map(), l = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
102
|
+
for (const [m, h] of e) {
|
|
103
|
+
const p = c.current.get(m);
|
|
104
|
+
d.set(m, [h.offsetLeft, h.offsetTop]), w && !l && p && m !== w.id && (p[0] !== h.offsetLeft || p[1] !== h.offsetTop) && h.animate([{ transform: `translate(${p[0] - h.offsetLeft}px, ${p[1] - h.offsetTop}px)` }, { transform: "none" }], { duration: 150, easing: "ease-out" });
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
c.current = d, w && v();
|
|
107
107
|
});
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
if (!
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
if (!
|
|
118
|
-
|
|
108
|
+
const V = () => {
|
|
109
|
+
const d = s.current, l = t.current, m = d && e.get(d.id);
|
|
110
|
+
if (!d || !l || !m) return;
|
|
111
|
+
const h = getComputedStyle(l), p = parseFloat(h.columnGap), H = h.gridTemplateColumns.split(" ").length, E = l.getBoundingClientRect(), G = o[d.from].span, Y = { cell: (E.width - (H - 1) * p) / H, gap: p, unit: (m.offsetHeight - (G.rows - 1) * p) / G.rows }, D = _t(o.map(($) => $.span), H, d.from, d.x - d.dx - E.left, d.y - d.dy - E.top, Y);
|
|
112
|
+
if (D === d.target) return v();
|
|
113
|
+
d.target = D, a({ id: d.id, target: D });
|
|
114
|
+
}, K = (d) => {
|
|
115
|
+
const l = s.current;
|
|
116
|
+
if (s.current = null, window.clearInterval(u.current.timer), u.current.escape && document.removeEventListener("keydown", u.current.escape), l && e.get(l.id)?.style.removeProperty("transform"), a(null), !!l?.started) {
|
|
117
|
+
if (!d) return S(o[l.from].title);
|
|
118
|
+
i(l.id, o[l.target].id);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
ue(() => {
|
|
122
|
+
b.current = { update: V, finish: K };
|
|
123
123
|
});
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
if (
|
|
133
|
-
if (Math.hypot(
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
124
|
+
const W = (d, l) => (m) => {
|
|
125
|
+
const h = m.target;
|
|
126
|
+
if (m.button > 0 || h.closest("button") || !m.currentTarget.contains(h)) return;
|
|
127
|
+
const p = e.get(d).getBoundingClientRect();
|
|
128
|
+
s.current = { id: d, from: l, x0: m.clientX, y0: m.clientY, x: m.clientX, y: m.clientY, dx: m.clientX - p.left, dy: m.clientY - p.top, started: !1, target: l }, m.currentTarget.setPointerCapture(m.pointerId);
|
|
129
|
+
}, A = (d) => {
|
|
130
|
+
const l = s.current;
|
|
131
|
+
if (l) {
|
|
132
|
+
if (l.x = d.clientX, l.y = d.clientY, !l.started) {
|
|
133
|
+
if (Math.hypot(l.x - l.x0, l.y - l.y0) <= 4) return;
|
|
134
|
+
l.started = !0, a({ id: l.id, target: l.from }), u.current.escape = (m) => m.key === "Escape" && b.current.finish(!1), document.addEventListener("keydown", u.current.escape), u.current.timer = window.setInterval(() => {
|
|
135
|
+
const h = s.current?.y ?? window.innerHeight / 2, p = Math.ceil((64 - Math.min(h, window.innerHeight - h)) / 4);
|
|
136
|
+
p <= 0 || (window.scrollBy(0, h < window.innerHeight / 2 ? -p : p), b.current.update());
|
|
137
137
|
}, 16);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
b.current.update();
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
return {
|
|
143
|
-
drag:
|
|
143
|
+
drag: w,
|
|
144
144
|
/** To go on the placeholder. */
|
|
145
|
-
placeholder:
|
|
145
|
+
placeholder: z,
|
|
146
146
|
/** The pointer handlers of a widget's head. */
|
|
147
|
-
handlers: (
|
|
148
|
-
onPointerDown:
|
|
149
|
-
onPointerMove:
|
|
150
|
-
onPointerUp: () =>
|
|
151
|
-
onPointerCancel: () =>
|
|
147
|
+
handlers: (d, l) => ({
|
|
148
|
+
onPointerDown: W(d, l),
|
|
149
|
+
onPointerMove: A,
|
|
150
|
+
onPointerUp: () => b.current.finish(!0),
|
|
151
|
+
onPointerCancel: () => b.current.finish(!1)
|
|
152
152
|
})
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Se(t) {
|
|
156
156
|
return null;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function St() {
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
|
-
const
|
|
162
|
-
function
|
|
163
|
-
const
|
|
164
|
-
return /* @__PURE__ */
|
|
161
|
+
const vt = "heading", Z = (t, e) => t.title?.(e) ?? t.label;
|
|
162
|
+
function Ct({ options: t, change: e }) {
|
|
163
|
+
const o = de();
|
|
164
|
+
return /* @__PURE__ */ r(Le, { label: o.dashboardHeadingField, children: /* @__PURE__ */ r(Te, { value: t.text, onChange: (i) => e({ text: i.target.value }) }) });
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function kt(t) {
|
|
167
167
|
return {
|
|
168
|
-
name:
|
|
169
|
-
label:
|
|
170
|
-
sentence:
|
|
168
|
+
name: vt,
|
|
169
|
+
label: t.dashboardHeadingLabel,
|
|
170
|
+
sentence: t.dashboardHeadingSentence,
|
|
171
171
|
sizes: { full: { columns: 12, rows: 1 } },
|
|
172
172
|
start: "full",
|
|
173
|
-
defaultOptions: { text:
|
|
174
|
-
title: (e) => e.text ||
|
|
175
|
-
form:
|
|
173
|
+
defaultOptions: { text: t.dashboardHeadingText },
|
|
174
|
+
title: (e) => e.text || t.dashboardHeadingLabel,
|
|
175
|
+
form: Ct,
|
|
176
176
|
children: () => null
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
return
|
|
179
|
+
const ee = (...t) => t.filter(Boolean).join(" "), me = 12;
|
|
180
|
+
function Nt({ render: t, ...e }) {
|
|
181
|
+
return t(e);
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
if (!
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
for (const
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
return
|
|
195
|
-
|
|
183
|
+
const we = (t, e) => ({ "--_dashboard-column": t.column + 1, "--_dashboard-row": t.row + 1, "--_dashboard-columns": t.columns, "--_dashboard-rows": t.rows, "--_dashboard-order": e }), ye = (t) => t.columns * t.rows;
|
|
184
|
+
function Ot({ title: t, editing: e, children: o }) {
|
|
185
|
+
const i = q(null), [S, w] = J(!1);
|
|
186
|
+
re(() => {
|
|
187
|
+
const s = i.current;
|
|
188
|
+
if (!s) return;
|
|
189
|
+
const u = () => w(s.scrollHeight > s.clientHeight || s.scrollWidth > s.clientWidth), c = new ResizeObserver(u), z = () => {
|
|
190
|
+
c.disconnect(), c.observe(s);
|
|
191
|
+
for (const v of s.children) c.observe(v);
|
|
192
|
+
u();
|
|
193
|
+
}, b = new MutationObserver(z);
|
|
194
|
+
return b.observe(s, { childList: !0 }), z(), () => {
|
|
195
|
+
c.disconnect(), b.disconnect();
|
|
196
196
|
};
|
|
197
197
|
}, []);
|
|
198
|
-
const
|
|
199
|
-
return /* @__PURE__ */
|
|
198
|
+
const a = S && !e;
|
|
199
|
+
return /* @__PURE__ */ r("div", { ref: i, className: _.body, inert: e, ...a ? { role: "group", tabIndex: 0, "aria-label": t } : {}, children: o });
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
|
|
201
|
+
const se = (t, e) => (o) => {
|
|
202
|
+
o ? t.set(e, o) : t.delete(e);
|
|
203
203
|
};
|
|
204
|
-
function
|
|
205
|
-
const
|
|
206
|
-
for (const
|
|
207
|
-
|
|
208
|
-
const { register:
|
|
209
|
-
|
|
210
|
-
const b =
|
|
211
|
-
const f = c.get(
|
|
212
|
-
return f && x ? [{ widget:
|
|
213
|
-
}),
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
}, { drag:
|
|
217
|
-
grid:
|
|
218
|
-
cards:
|
|
219
|
-
shown:
|
|
220
|
-
drop: (
|
|
221
|
-
const x =
|
|
222
|
-
|
|
204
|
+
function Ht({ view: t, editor: e, className: o, children: i, catalogue: S, headingLevel: w = 2, ...a }) {
|
|
205
|
+
const s = de(), u = ie(() => kt(s), [s]), c = /* @__PURE__ */ new Map();
|
|
206
|
+
for (const n of Ee.toArray(i))
|
|
207
|
+
he(n) && n.type === Se ? c.set(n.props.name, n.props) : he(n) && n.type === St && c.set(u.name, u);
|
|
208
|
+
const { register: z } = e;
|
|
209
|
+
re(() => z(c));
|
|
210
|
+
const b = xe(t, c), v = b.widgets.flatMap((n) => {
|
|
211
|
+
const f = c.get(n.type), x = f?.sizes[n.size];
|
|
212
|
+
return f && x ? [{ widget: n, type: f, span: x }] : [];
|
|
213
|
+
}), K = `h${Math.min(6, w + (v.some(({ type: n }) => n === u) ? 1 : 0))}`, W = q(null), [A] = J(() => /* @__PURE__ */ new Map()), [d] = J(() => /* @__PURE__ */ new Map()), [l] = J(() => /* @__PURE__ */ new Map()), m = q(null), { editing: h } = e, p = b.widgets.length, H = (n, f, x) => {
|
|
214
|
+
const k = b.widgets.findIndex((N) => N.id === n), C = Math.max(0, Math.min(p - 1, x));
|
|
215
|
+
k !== C && (e.step(Ue(n, C)), U(s.dashboardMoved(f, k + 1, C + 1, p)));
|
|
216
|
+
}, { drag: E, placeholder: G, handlers: Y } = Mt({
|
|
217
|
+
grid: W,
|
|
218
|
+
cards: A,
|
|
219
|
+
shown: v.map(({ widget: n, type: f, span: x }) => ({ id: n.id, span: x, title: Z(f, n.options) })),
|
|
220
|
+
drop: (n, f) => {
|
|
221
|
+
const x = v.find((k) => k.widget.id === n);
|
|
222
|
+
H(n, Z(x.type, x.widget.options), b.widgets.findIndex((k) => k.id === f));
|
|
223
223
|
},
|
|
224
|
-
cancelled: (
|
|
225
|
-
}),
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
cancelled: (n) => U(s.dashboardDragCancelled(n))
|
|
225
|
+
}), D = E ? v.findIndex((n) => n.widget.id === E.id) : -1, $ = v.map((n, f) => f);
|
|
226
|
+
D >= 0 && $.splice(E.target, 0, ...$.splice(D, 1));
|
|
227
|
+
const y = Me($.map((n) => v[n].span), me), g = v.map((n, f) => y[$.indexOf(f)]), [M, O] = J(null), F = q(null), P = q(null);
|
|
228
|
+
re(() => {
|
|
229
|
+
P.current && (A.get(P.current)?.scrollIntoView?.({ block: "nearest" }), P.current = null);
|
|
230
230
|
});
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
const L = q(!1);
|
|
232
|
+
re(() => {
|
|
233
|
+
L.current !== !1 && ((L.current === null ? m.current : d.get(L.current))?.focus(), L.current = !1);
|
|
234
234
|
});
|
|
235
|
-
const
|
|
236
|
-
const f = { id:
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
ref:
|
|
240
|
-
className:
|
|
241
|
-
...
|
|
235
|
+
const ve = [...c.values()].filter((n) => !S || S.includes(n.name)), Ce = (n) => {
|
|
236
|
+
const f = { id: Ge(b, n.name), type: n.name, size: n.start, options: n.defaultOptions };
|
|
237
|
+
P.current = f.id, e.step(Ye(f)), U(s.dashboardAdded(Z(n, f.options), p + 1, p + 1));
|
|
238
|
+
}, oe = M ? c.get(b.widgets.find((n) => n.id === M)?.type ?? "") : void 0, ae = b.widgets.find((n) => n.id === M), ke = (n, f, x, k, C) => h ? {
|
|
239
|
+
ref: se(d, n.id),
|
|
240
|
+
className: ee(_.head, _.editingHead),
|
|
241
|
+
...Y(n.id, x),
|
|
242
242
|
role: "group",
|
|
243
243
|
tabIndex: 0,
|
|
244
|
-
"aria-label":
|
|
245
|
-
onKeyDown: (
|
|
246
|
-
if (
|
|
247
|
-
const
|
|
248
|
-
|
|
244
|
+
"aria-label": (C ? s.dashboardHeadLocked : s.dashboardHead)(f, k + 1, p),
|
|
245
|
+
onKeyDown: (N) => {
|
|
246
|
+
if (N.target !== N.currentTarget) return;
|
|
247
|
+
const I = { ArrowLeft: k - 1, ArrowUp: k - 1, ArrowRight: k + 1, ArrowDown: k + 1, Home: 0, End: p - 1 }[N.key];
|
|
248
|
+
I !== void 0 && (N.preventDefault(), H(n.id, f, I));
|
|
249
249
|
}
|
|
250
|
-
} : { className:
|
|
251
|
-
const
|
|
250
|
+
} : { className: _.head }, Ne = (n, f, x, k, C, N) => {
|
|
251
|
+
const I = Object.entries(f.sizes).sort(([, T], [, X]) => ye(T) - ye(X));
|
|
252
252
|
return /* @__PURE__ */ R(
|
|
253
|
-
|
|
253
|
+
je,
|
|
254
254
|
{
|
|
255
255
|
align: "end",
|
|
256
|
-
trigger: /* @__PURE__ */
|
|
256
|
+
trigger: /* @__PURE__ */ r(B, { ref: se(l, n.id), size: "sm", variant: "ghost", "aria-label": s.dashboardMenu(x), children: /* @__PURE__ */ r("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M1.5 5h.01M5 5h.01M8.5 5h.01" }) }) }),
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
|
|
266
|
-
|
|
258
|
+
/* @__PURE__ */ r(j, { disabled: !0, children: s.dashboardPlace(C + 1, p) }),
|
|
259
|
+
/* @__PURE__ */ r(j, { disabled: C === 0, onSelect: () => H(n.id, x, 0), children: s.dashboardMoveStart }),
|
|
260
|
+
/* @__PURE__ */ r(j, { disabled: C === 0, onSelect: () => H(n.id, x, C - 1), children: s.dashboardMoveEarlier }),
|
|
261
|
+
/* @__PURE__ */ r(j, { disabled: C === p - 1, onSelect: () => H(n.id, x, C + 1), children: s.dashboardMoveLater }),
|
|
262
|
+
/* @__PURE__ */ r(j, { disabled: C === p - 1, onSelect: () => H(n.id, x, p - 1), children: s.dashboardMoveEnd }),
|
|
263
|
+
N && /* @__PURE__ */ R(ne, { children: [
|
|
264
|
+
/* @__PURE__ */ r(te, {}),
|
|
265
|
+
/* @__PURE__ */ r(j, { disabled: !0, children: s.dashboardLockedLine })
|
|
266
|
+
] }),
|
|
267
|
+
!N && I.length > 1 && /* @__PURE__ */ R(ne, { children: [
|
|
268
|
+
/* @__PURE__ */ r(te, {}),
|
|
269
|
+
I.map(([T, X]) => /* @__PURE__ */ r(
|
|
270
|
+
j,
|
|
267
271
|
{
|
|
268
|
-
"aria-current":
|
|
272
|
+
"aria-current": T === n.size || void 0,
|
|
269
273
|
onSelect: () => {
|
|
270
|
-
e.step(
|
|
274
|
+
e.step(Ve(n.id, T)), U(s.dashboardResized(x, s.dashboardSizes[T]));
|
|
271
275
|
},
|
|
272
|
-
children:
|
|
276
|
+
children: s.dashboardSizeEntry(s.dashboardSizes[T], xt(X), T === n.size)
|
|
273
277
|
},
|
|
274
|
-
|
|
278
|
+
T
|
|
275
279
|
))
|
|
276
280
|
] }),
|
|
277
|
-
f.form && /* @__PURE__ */ R(
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
|
|
281
|
+
!N && f.form && /* @__PURE__ */ R(ne, { children: [
|
|
282
|
+
/* @__PURE__ */ r(te, {}),
|
|
283
|
+
/* @__PURE__ */ r(
|
|
284
|
+
j,
|
|
281
285
|
{
|
|
282
286
|
onSelect: () => {
|
|
283
|
-
|
|
287
|
+
F.current = l.get(n.id) ?? null, O(n.id);
|
|
284
288
|
},
|
|
285
|
-
children:
|
|
289
|
+
children: s.dashboardOptions
|
|
286
290
|
}
|
|
287
291
|
)
|
|
288
292
|
] }),
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
|
|
293
|
+
!N && /* @__PURE__ */ r(te, {}),
|
|
294
|
+
!N && /* @__PURE__ */ r(
|
|
295
|
+
j,
|
|
292
296
|
{
|
|
293
297
|
tone: "danger",
|
|
294
298
|
onSelect: () => {
|
|
295
|
-
|
|
299
|
+
L.current = (v[k + 1] ?? v[k - 1])?.widget.id ?? null, e.step(We(n.id)), U(s.dashboardRemoved(x));
|
|
296
300
|
},
|
|
297
|
-
children:
|
|
301
|
+
children: s.dashboardRemove
|
|
298
302
|
}
|
|
299
303
|
)
|
|
300
304
|
]
|
|
301
305
|
}
|
|
302
306
|
);
|
|
303
307
|
};
|
|
304
|
-
return /* @__PURE__ */ R("div", { role: "group", className:
|
|
305
|
-
e.allowed && /* @__PURE__ */
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
] }) : /* @__PURE__ */
|
|
314
|
-
|
|
315
|
-
!
|
|
316
|
-
/* @__PURE__ */ R("div", { className:
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
return f ===
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ R("div", { role: "group", className: ee(_.root, o), "data-editing": h || void 0, ...a, children: [
|
|
309
|
+
e.allowed && /* @__PURE__ */ r("div", { className: _.bar, children: h ? /* @__PURE__ */ R(ne, { children: [
|
|
310
|
+
/* @__PURE__ */ r("span", { className: _.mode, children: s.dashboardEditing }),
|
|
311
|
+
/* @__PURE__ */ r(B, { size: "sm", disabled: !e.canUndo, onClick: e.undo, children: s.dashboardUndo }),
|
|
312
|
+
/* @__PURE__ */ r(B, { size: "sm", disabled: !e.canRedo, onClick: e.redo, children: s.dashboardRedo }),
|
|
313
|
+
/* @__PURE__ */ r(B, { size: "sm", disabled: !e.canReset, onClick: e.reset, children: s.dashboardReset }),
|
|
314
|
+
/* @__PURE__ */ r(B, { ref: m, size: "sm", onClick: () => e.setCatalogue(!0), children: s.dashboardAddWidget }),
|
|
315
|
+
/* @__PURE__ */ r(B, { size: "sm", onClick: e.cancel, children: s.dashboardCancel }),
|
|
316
|
+
/* @__PURE__ */ r(B, { size: "sm", variant: "primary", onClick: e.done, children: s.dashboardDone })
|
|
317
|
+
] }) : /* @__PURE__ */ r(B, { size: "sm", onClick: e.edit, children: s.dashboardEdit }) }),
|
|
318
|
+
h && p === 0 && /* @__PURE__ */ r(Q, { children: s.dashboardEmptyEditing }),
|
|
319
|
+
!h && p === 0 && /* @__PURE__ */ r(Q, { children: s.dashboardEmpty }),
|
|
320
|
+
/* @__PURE__ */ R("div", { className: _.grid, ref: W, children: [
|
|
321
|
+
v.map(({ widget: n, type: f }, x) => {
|
|
322
|
+
const k = we(g[x], $.indexOf(x)), C = Z(f, n.options), N = b.widgets.findIndex((Oe) => Oe.id === n.id), I = n.locked === !0, T = ke(n, C, x, N, I), X = h && Ne(n, f, C, x, N, I);
|
|
323
|
+
return f === u ? /* @__PURE__ */ r("div", { ref: se(A, n.id), className: ee(_.item, _.headingRow), style: k, "data-widget": n.id, "data-editing": h || void 0, "data-dragging": E?.id === n.id || void 0, children: /* @__PURE__ */ R("div", { ...T, className: ee(T.className, _.headingHead), children: [
|
|
324
|
+
h && /* @__PURE__ */ r(pe, { className: _.grip }),
|
|
325
|
+
/* @__PURE__ */ r(De, { level: w, size: "lg", className: _.heading, children: n.options.text }),
|
|
326
|
+
h && I && /* @__PURE__ */ r("span", { className: _.size, children: s.dashboardLocked }),
|
|
322
327
|
X
|
|
323
|
-
] }) },
|
|
324
|
-
/* @__PURE__ */ R("div", { ...
|
|
325
|
-
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
|
|
328
|
+
] }) }, n.id) : /* @__PURE__ */ R(Ae, { ref: se(A, n.id), className: _.item, style: k, "data-widget": n.id, "data-editing": h || void 0, "data-dragging": E?.id === n.id || void 0, "aria-label": C, children: [
|
|
329
|
+
/* @__PURE__ */ R("div", { ...T, children: [
|
|
330
|
+
h && /* @__PURE__ */ r(pe, { className: _.grip }),
|
|
331
|
+
/* @__PURE__ */ r(K, { className: _.title, children: C }),
|
|
332
|
+
h && /* @__PURE__ */ r("span", { className: _.size, children: s.dashboardSizes[n.size] }),
|
|
333
|
+
h && I && /* @__PURE__ */ r("span", { className: _.size, children: s.dashboardLocked }),
|
|
328
334
|
X
|
|
329
335
|
] }),
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
] },
|
|
336
|
+
/* @__PURE__ */ r(Ot, { title: C, editing: h, children: /* @__PURE__ */ r(bt, { size: n.size, options: n.options, fallback: /* @__PURE__ */ r(Q, { tone: "secondary", children: s.dashboardFailed }), children: /* @__PURE__ */ r(Re, { fallback: /* @__PURE__ */ r(Ie, { width: "100%", height: "100%" }), children: /* @__PURE__ */ r(Nt, { render: f.children, size: n.size, options: n.options }) }) }) })
|
|
337
|
+
] }, n.id);
|
|
332
338
|
}),
|
|
333
|
-
|
|
339
|
+
D >= 0 && /* @__PURE__ */ r("div", { ref: G, "aria-hidden": "true", "data-placeholder": !0, className: ee(_.item, _.placeholder), style: we(g[D], E.target) })
|
|
334
340
|
] }),
|
|
335
|
-
/* @__PURE__ */ R(
|
|
336
|
-
/* @__PURE__ */
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
const f =
|
|
339
|
-
return /* @__PURE__ */ R("li", { className:
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */ R("div", { className:
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ R($e, { open: e.catalogue, onClose: () => e.setCatalogue(!1), children: [
|
|
342
|
+
/* @__PURE__ */ r(Fe, { title: s.dashboardCatalogue, description: s.dashboardCatalogueSentence }),
|
|
343
|
+
/* @__PURE__ */ r(Pe, { children: /* @__PURE__ */ r("ul", { className: _.catalogue, children: ve.map((n) => {
|
|
344
|
+
const f = n.sizes[n.start];
|
|
345
|
+
return /* @__PURE__ */ R("li", { className: _.entry, children: [
|
|
346
|
+
/* @__PURE__ */ r("div", { className: _.footprint, role: "img", "aria-label": s.dashboardFootprint(f.columns, f.rows), children: /* @__PURE__ */ r("span", { style: { width: `${f.columns / me * 100}%`, height: `${Math.min(1, f.rows / 4) * 100}%` } }) }),
|
|
347
|
+
/* @__PURE__ */ R("div", { className: _.entryText, children: [
|
|
348
|
+
/* @__PURE__ */ r(Q, { as: "strong", weight: "semibold", children: n.label }),
|
|
349
|
+
/* @__PURE__ */ r(Q, { as: "span", size: "sm", tone: "secondary", children: n.sentence })
|
|
344
350
|
] }),
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
] },
|
|
351
|
+
/* @__PURE__ */ r(B, { size: "sm", "aria-label": s.dashboardAddType(n.label), onClick: () => Ce(n), children: s.dashboardAdd })
|
|
352
|
+
] }, n.name);
|
|
347
353
|
}) }) })
|
|
348
354
|
] }),
|
|
349
|
-
|
|
350
|
-
options:
|
|
351
|
-
change: (
|
|
352
|
-
e.step(
|
|
355
|
+
oe?.form && ae && /* @__PURE__ */ r(Be, { open: !0, anchorRef: F, align: "end", onOpenChange: () => O(null), role: "dialog", "aria-label": s.dashboardOptions, children: /* @__PURE__ */ r("div", { className: _.options, children: oe.form({
|
|
356
|
+
options: ae.options,
|
|
357
|
+
change: (n) => {
|
|
358
|
+
e.step(Xe(ae.id, n)), U(s.dashboardOptionsChanged(Z(oe, n)));
|
|
353
359
|
}
|
|
354
360
|
}) }) })
|
|
355
361
|
] });
|
|
356
362
|
}
|
|
357
|
-
const
|
|
358
|
-
function
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
!
|
|
368
|
-
},
|
|
369
|
-
const { view: g, draft:
|
|
370
|
-
if (!
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
const { wording:
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
const { draft: g } =
|
|
363
|
+
const _e = (t, e) => JSON.stringify(t) === JSON.stringify(e);
|
|
364
|
+
function Lt({ defaultView: t, initialView: e, allowEdit: o = !0, onViewChange: i, onDraftChange: S }) {
|
|
365
|
+
const w = q(null);
|
|
366
|
+
w.current ??= { state: { view: ge(e) ? e : t, draft: null, known: 0 }, listeners: /* @__PURE__ */ new Set(), types: /* @__PURE__ */ new Map(), signature: "" };
|
|
367
|
+
const a = w.current, s = de(), u = q({ defaultView: t, allowEdit: o, onViewChange: i, onDraftChange: S, wording: s });
|
|
368
|
+
u.current = { defaultView: t, allowEdit: o, onViewChange: i, onDraftChange: S, wording: s };
|
|
369
|
+
const c = ie(() => {
|
|
370
|
+
const W = (y) => (a.listeners.add(y), () => void a.listeners.delete(y)), A = () => a.state, d = (y) => {
|
|
371
|
+
a.state = y, a.listeners.forEach((g) => g());
|
|
372
|
+
}, l = (y) => a.types.size ? xe(y, a.types) : mt(y), m = () => {
|
|
373
|
+
!u.current.allowEdit || a.state.draft || (d({ ...a.state, draft: { steps: [l(a.state.view)], at: 0 } }), u.current.onDraftChange?.(!0));
|
|
374
|
+
}, h = (y) => {
|
|
375
|
+
const { view: g, draft: M } = a.state;
|
|
376
|
+
if (!M) return;
|
|
377
|
+
const O = M.steps[M.at], F = y && !_e(O, l(g)), P = { ...O, widgets: [...O.widgets, ...wt(g, M.steps[0])] };
|
|
378
|
+
d({ ...a.state, view: F ? P : g, draft: null, catalogue: !1 }), u.current.onDraftChange?.(!1);
|
|
379
|
+
const { wording: L } = u.current;
|
|
380
|
+
U(y ? F ? L.dashboardKept : L.dashboardLeft : L.dashboardCancelled), F && u.current.onViewChange?.(P);
|
|
381
|
+
}, p = (y) => {
|
|
382
|
+
a.state.draft && d({ ...a.state, catalogue: y });
|
|
383
|
+
}, H = (y) => {
|
|
384
|
+
const { draft: g } = a.state;
|
|
379
385
|
if (!g) return;
|
|
380
|
-
const
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
const { draft:
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
},
|
|
388
|
-
allowed:
|
|
386
|
+
const M = g.steps[g.at], O = y(M);
|
|
387
|
+
O !== M && d({ ...a.state, draft: { steps: [...g.steps.slice(0, g.at + 1), O], at: g.at + 1 } });
|
|
388
|
+
}, E = (y, g) => {
|
|
389
|
+
const { draft: M } = a.state;
|
|
390
|
+
M?.steps[M.at + y] && (d({ ...a.state, draft: { ...M, at: M.at + y } }), U(g));
|
|
391
|
+
}, G = () => E(-1, u.current.wording.dashboardUndone), Y = () => E(1, u.current.wording.dashboardRedone), D = () => {
|
|
392
|
+
a.state.draft && (H(() => l(u.current.defaultView)), U(u.current.wording.dashboardResetDone));
|
|
393
|
+
}, $ = (y, g, M) => ({
|
|
394
|
+
allowed: y,
|
|
389
395
|
editing: g !== null,
|
|
390
|
-
edit:
|
|
391
|
-
done: () =>
|
|
392
|
-
cancel: () =>
|
|
393
|
-
catalogue:
|
|
394
|
-
setCatalogue:
|
|
395
|
-
register: (
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
|
|
396
|
+
edit: m,
|
|
397
|
+
done: () => h(!0),
|
|
398
|
+
cancel: () => h(!1),
|
|
399
|
+
catalogue: M,
|
|
400
|
+
setCatalogue: p,
|
|
401
|
+
register: (O) => {
|
|
402
|
+
a.types = O;
|
|
403
|
+
const F = [...O].map(([P, L]) => `${P}:${L.start}:${JSON.stringify(L.sizes)}`).join("|");
|
|
404
|
+
F !== a.signature && (a.signature = F, d({ ...a.state, known: a.state.known + 1 }));
|
|
399
405
|
},
|
|
400
|
-
step:
|
|
401
|
-
undo:
|
|
402
|
-
redo:
|
|
403
|
-
reset:
|
|
406
|
+
step: H,
|
|
407
|
+
undo: G,
|
|
408
|
+
redo: Y,
|
|
409
|
+
reset: D,
|
|
404
410
|
canUndo: !!g && g.at > 0,
|
|
405
411
|
canRedo: !!g && g.at < g.steps.length - 1,
|
|
406
|
-
canReset: !!g && !
|
|
412
|
+
canReset: !!g && !_e(g.steps[g.at], l(u.current.defaultView))
|
|
407
413
|
});
|
|
408
414
|
return {
|
|
409
|
-
get:
|
|
410
|
-
subscribe:
|
|
411
|
-
edit:
|
|
412
|
-
done: () =>
|
|
413
|
-
cancel: () =>
|
|
414
|
-
undo:
|
|
415
|
-
redo:
|
|
416
|
-
reset:
|
|
417
|
-
catalogue: () =>
|
|
418
|
-
read:
|
|
419
|
-
setView: (
|
|
420
|
-
const g =
|
|
421
|
-
|
|
415
|
+
get: A,
|
|
416
|
+
subscribe: W,
|
|
417
|
+
edit: m,
|
|
418
|
+
done: () => h(!0),
|
|
419
|
+
cancel: () => h(!1),
|
|
420
|
+
undo: G,
|
|
421
|
+
redo: Y,
|
|
422
|
+
reset: D,
|
|
423
|
+
catalogue: () => p(!0),
|
|
424
|
+
read: l,
|
|
425
|
+
setView: (y) => {
|
|
426
|
+
const g = ge(y) ? y : u.current.defaultView;
|
|
427
|
+
d({ ...a.state, view: g, draft: a.state.draft ? { steps: [l(g)], at: 0 } : null });
|
|
422
428
|
},
|
|
423
|
-
Dashboard: (
|
|
424
|
-
const { view: g, draft:
|
|
425
|
-
return
|
|
429
|
+
Dashboard: (y) => {
|
|
430
|
+
const { view: g, draft: M, catalogue: O } = fe(W, A, A);
|
|
431
|
+
return qe(Ht, { ...y, view: M ? M.steps[M.at] : g, editor: $(u.current.allowEdit, M, !!O) });
|
|
426
432
|
}
|
|
427
433
|
};
|
|
428
|
-
}, [
|
|
434
|
+
}, [a]), { view: z, draft: b, known: v } = fe(c.subscribe, c.get, c.get), V = b ? b.steps[b.at] : z, K = ie(() => c.read(V), [c, V, v]);
|
|
429
435
|
return {
|
|
430
|
-
Dashboard:
|
|
431
|
-
WidgetType:
|
|
432
|
-
view:
|
|
433
|
-
setView:
|
|
434
|
-
editing:
|
|
435
|
-
edit:
|
|
436
|
-
done:
|
|
437
|
-
cancel:
|
|
438
|
-
catalogue:
|
|
439
|
-
undo:
|
|
440
|
-
redo:
|
|
441
|
-
reset:
|
|
436
|
+
Dashboard: c.Dashboard,
|
|
437
|
+
WidgetType: Se,
|
|
438
|
+
view: K,
|
|
439
|
+
setView: c.setView,
|
|
440
|
+
editing: b !== null,
|
|
441
|
+
edit: c.edit,
|
|
442
|
+
done: c.done,
|
|
443
|
+
cancel: c.cancel,
|
|
444
|
+
catalogue: c.catalogue,
|
|
445
|
+
undo: c.undo,
|
|
446
|
+
redo: c.redo,
|
|
447
|
+
reset: c.reset
|
|
442
448
|
};
|
|
443
449
|
}
|
|
444
450
|
export {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
451
|
+
St as HeadingType,
|
|
452
|
+
Se as WidgetType,
|
|
453
|
+
Lt as useDashboard
|
|
448
454
|
};
|