@carto/ps-react-ui 6.5.0 → 6.5.1
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/types/widgets/wrapper/collapsed-context.d.ts +7 -0
- package/dist/widgets.js +218 -212
- package/dist/widgets.js.map +1 -1
- package/package.json +3 -3
- package/src/widgets/toolbox/toolbox.test.tsx +28 -0
- package/src/widgets/toolbox/toolbox.tsx +9 -0
- package/src/widgets/wrapper/collapsed-context.ts +12 -0
- package/src/widgets/wrapper/widget-wrapper.tsx +6 -1
package/dist/widgets.js
CHANGED
|
@@ -14,12 +14,12 @@ import { n as k, r as A } from "./range-BpU2zBmq.js";
|
|
|
14
14
|
import { i as te, r as j } from "./category-UIGvFN3D.js";
|
|
15
15
|
import { d as M, i as N } from "./table-Col_FRvb.js";
|
|
16
16
|
import { c as P } from "react/compiler-runtime";
|
|
17
|
-
import { Children as ne, Component as F,
|
|
18
|
-
import { Accordion as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { Close as
|
|
21
|
-
import { WidgetOptions as
|
|
22
|
-
import { createPortal as
|
|
17
|
+
import { Children as ne, Component as F, createContext as I, isValidElement as L, useContext as R, useEffect as z, useLayoutEffect as re, useRef as B, useState as V } from "react";
|
|
18
|
+
import { Accordion as H, AccordionDetails as U, AccordionSummary as ie, Alert as W, AlertTitle as G, Box as K, Button as q, Divider as J, Grow as ae, IconButton as oe, LinearProgress as se, Link as Y, Paper as ce, Popper as le, Typography as X } from "@mui/material";
|
|
19
|
+
import { Fragment as ue, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
20
|
+
import { Close as de, ExpandMore as fe } from "@mui/icons-material";
|
|
21
|
+
import { WidgetOptions as pe } from "@carto/meridian-ds/custom-icons";
|
|
22
|
+
import { createPortal as me } from "react-dom";
|
|
23
23
|
//#region src/widgets/wrapper/style.ts
|
|
24
24
|
var $ = {
|
|
25
25
|
root: {
|
|
@@ -135,50 +135,53 @@ var $ = {
|
|
|
135
135
|
};
|
|
136
136
|
//#endregion
|
|
137
137
|
//#region src/widgets/wrapper/widget-actions.tsx
|
|
138
|
-
function
|
|
138
|
+
function he(e) {
|
|
139
139
|
let t = P(5), { sx: n, children: r } = e, i;
|
|
140
140
|
t[0] === n ? i = t[1] : (i = {
|
|
141
141
|
...$.actions,
|
|
142
142
|
...n
|
|
143
143
|
}, t[0] = n, t[1] = i);
|
|
144
144
|
let a;
|
|
145
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(
|
|
145
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(K, {
|
|
146
146
|
className: "widget-wrapper-actions",
|
|
147
|
-
onClick:
|
|
147
|
+
onClick: ge,
|
|
148
148
|
sx: i,
|
|
149
149
|
children: r
|
|
150
150
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function ge(e) {
|
|
153
153
|
return e.stopPropagation();
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function _e(e) {
|
|
156
156
|
let t = P(5), { sx: n, children: r } = e, i;
|
|
157
157
|
t[0] === n ? i = t[1] : (i = {
|
|
158
158
|
...$.options,
|
|
159
159
|
...n
|
|
160
160
|
}, t[0] = n, t[1] = i);
|
|
161
161
|
let a;
|
|
162
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(
|
|
163
|
-
onClick:
|
|
162
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(K, {
|
|
163
|
+
onClick: ve,
|
|
164
164
|
sx: i,
|
|
165
165
|
children: r
|
|
166
166
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ve(e) {
|
|
169
169
|
return e.stopPropagation();
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/widgets/wrapper/labels.ts
|
|
173
|
-
var
|
|
173
|
+
var ye = {
|
|
174
174
|
collapse: "Collapse",
|
|
175
175
|
expand: "Expand",
|
|
176
176
|
errorFallbackTitle: "Widget failed to render"
|
|
177
|
-
};
|
|
177
|
+
}, be = I(!1);
|
|
178
|
+
function xe() {
|
|
179
|
+
return R(be);
|
|
180
|
+
}
|
|
178
181
|
//#endregion
|
|
179
182
|
//#region src/widgets/wrapper/widget-wrapper.tsx
|
|
180
|
-
function
|
|
181
|
-
let t = P(
|
|
183
|
+
function Se(e) {
|
|
184
|
+
let t = P(51), { title: r, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? fe : f, b = i(), x = a(b, Ce), S = o !== void 0, [ee, C] = V(g), w = S ? o : ee, T;
|
|
182
185
|
t[0] !== _ || t[1] !== s ? (T = (e, t) => {
|
|
183
186
|
if (_) return;
|
|
184
187
|
let n = !t;
|
|
@@ -186,11 +189,11 @@ function ve(e) {
|
|
|
186
189
|
}, t[0] = _, t[1] = s, t[2] = T) : T = t[2];
|
|
187
190
|
let E = T, D;
|
|
188
191
|
t[3] === d ? D = t[4] : (D = {
|
|
189
|
-
...
|
|
192
|
+
...ye,
|
|
190
193
|
...d
|
|
191
194
|
}, t[3] = d, t[4] = D);
|
|
192
195
|
let O = D, k;
|
|
193
|
-
t[5] === h ? k = t[6] : (k =
|
|
196
|
+
t[5] === h ? k = t[6] : (k = we(h), t[5] = h, t[6] = k);
|
|
194
197
|
let { summary: A, details: te } = k, j = w ? O.expand : O.collapse, M = !w, N;
|
|
195
198
|
t[7] !== M || t[8] !== E ? (N = () => E(null, !M), t[7] = M, t[8] = E, t[9] = N) : N = t[9];
|
|
196
199
|
let ne = N, F = w ? "true" : void 0, I;
|
|
@@ -198,49 +201,49 @@ function ve(e) {
|
|
|
198
201
|
...$.root,
|
|
199
202
|
...m
|
|
200
203
|
}, t[10] = m, t[11] = I);
|
|
201
|
-
let
|
|
202
|
-
t[12] ===
|
|
204
|
+
let L = _ && $.headerNoIcon, R;
|
|
205
|
+
t[12] === L ? R = t[13] : (R = {
|
|
203
206
|
...$.header,
|
|
204
|
-
...
|
|
205
|
-
}, t[12] =
|
|
206
|
-
let
|
|
207
|
-
t[14] === x ?
|
|
207
|
+
...L
|
|
208
|
+
}, t[12] = L, t[13] = R);
|
|
209
|
+
let z;
|
|
210
|
+
t[14] === x ? z = t[15] : (z = x ? /* @__PURE__ */ Z(se, {
|
|
208
211
|
sx: $.loading,
|
|
209
212
|
color: "primary"
|
|
210
|
-
}) : null, t[14] = x, t[15] =
|
|
211
|
-
let
|
|
212
|
-
t[16] === B ?
|
|
213
|
+
}) : null, t[14] = x, t[15] = z);
|
|
214
|
+
let re = _ || void 0, B = _ ? $.summaryDisabled : null, W;
|
|
215
|
+
t[16] === B ? W = t[17] : (W = {
|
|
213
216
|
...$.summary,
|
|
214
217
|
...B
|
|
215
|
-
}, t[16] = B, t[17] =
|
|
216
|
-
let
|
|
217
|
-
t[18] === r ?
|
|
218
|
+
}, t[16] = B, t[17] = W);
|
|
219
|
+
let G;
|
|
220
|
+
t[18] === r ? G = t[19] : (G = (e) => {
|
|
218
221
|
let { ref: t } = e;
|
|
219
|
-
return /* @__PURE__ */ Z(
|
|
222
|
+
return /* @__PURE__ */ Z(K, {
|
|
220
223
|
sx: $.titleCell,
|
|
221
|
-
children: /* @__PURE__ */ Z(
|
|
224
|
+
children: /* @__PURE__ */ Z(X, {
|
|
222
225
|
ref: t,
|
|
223
226
|
variant: "subtitle1",
|
|
224
227
|
sx: [{ textTransform: "none" }, $.titleText],
|
|
225
228
|
children: r
|
|
226
229
|
})
|
|
227
230
|
});
|
|
228
|
-
}, t[18] = r, t[19] =
|
|
229
|
-
let
|
|
230
|
-
t[20] !==
|
|
231
|
+
}, t[18] = r, t[19] = G);
|
|
232
|
+
let q;
|
|
233
|
+
t[20] !== G || t[21] !== r ? (q = /* @__PURE__ */ Z(n, {
|
|
231
234
|
title: r,
|
|
232
|
-
children:
|
|
233
|
-
}), t[20] =
|
|
234
|
-
let
|
|
235
|
-
t[23] !== j || t[24] !==
|
|
235
|
+
children: G
|
|
236
|
+
}), t[20] = G, t[21] = r, t[22] = q) : q = t[22];
|
|
237
|
+
let J;
|
|
238
|
+
t[23] !== j || t[24] !== re || t[25] !== W || t[26] !== q ? (J = /* @__PURE__ */ Z(ie, {
|
|
236
239
|
expandIcon: null,
|
|
237
240
|
"aria-label": j,
|
|
238
|
-
"aria-disabled":
|
|
239
|
-
sx:
|
|
240
|
-
children:
|
|
241
|
-
}), t[23] = j, t[24] =
|
|
242
|
-
let
|
|
243
|
-
t[28] !== y || t[29] !== _ || t[30] !== M || t[31] !== p || t[32] !== ne ? (
|
|
241
|
+
"aria-disabled": re,
|
|
242
|
+
sx: W,
|
|
243
|
+
children: q
|
|
244
|
+
}), t[23] = j, t[24] = re, t[25] = W, t[26] = q, t[27] = J) : J = t[27];
|
|
245
|
+
let ae;
|
|
246
|
+
t[28] !== y || t[29] !== _ || t[30] !== M || t[31] !== p || t[32] !== ne ? (ae = _ ? null : /* @__PURE__ */ Z(K, {
|
|
244
247
|
"aria-hidden": !0,
|
|
245
248
|
onClick: ne,
|
|
246
249
|
sx: {
|
|
@@ -251,25 +254,28 @@ function ve(e) {
|
|
|
251
254
|
fontSize: "small",
|
|
252
255
|
...p
|
|
253
256
|
})
|
|
254
|
-
}), t[28] = y, t[29] = _, t[30] = M, t[31] = p, t[32] = ne, t[33] =
|
|
255
|
-
let
|
|
256
|
-
t[34] !== A || t[35] !==
|
|
257
|
+
}), t[28] = y, t[29] = _, t[30] = M, t[31] = p, t[32] = ne, t[33] = ae) : ae = t[33];
|
|
258
|
+
let oe;
|
|
259
|
+
t[34] !== A || t[35] !== R || t[36] !== z || t[37] !== J || t[38] !== ae ? (oe = /* @__PURE__ */ Q(K, {
|
|
257
260
|
className: "widget-wrapper-header",
|
|
258
|
-
sx:
|
|
261
|
+
sx: R,
|
|
259
262
|
children: [
|
|
260
|
-
|
|
261
|
-
|
|
263
|
+
z,
|
|
264
|
+
J,
|
|
262
265
|
A,
|
|
263
|
-
|
|
266
|
+
ae
|
|
264
267
|
]
|
|
265
|
-
}), t[34] = A, t[35] =
|
|
266
|
-
let
|
|
267
|
-
t[40]
|
|
268
|
+
}), t[34] = A, t[35] = R, t[36] = z, t[37] = J, t[38] = ae, t[39] = oe) : oe = t[39];
|
|
269
|
+
let Y;
|
|
270
|
+
t[40] !== te || t[41] !== w ? (Y = /* @__PURE__ */ Z(U, {
|
|
268
271
|
sx: $.detail,
|
|
269
|
-
children:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
272
|
+
children: /* @__PURE__ */ Z(be.Provider, {
|
|
273
|
+
value: w,
|
|
274
|
+
children: te
|
|
275
|
+
})
|
|
276
|
+
}), t[40] = te, t[41] = w, t[42] = Y) : Y = t[42];
|
|
277
|
+
let ce;
|
|
278
|
+
return t[43] !== M || t[44] !== E || t[45] !== I || t[46] !== oe || t[47] !== Y || t[48] !== F || t[49] !== v ? (ce = /* @__PURE__ */ Q(H, {
|
|
273
279
|
"data-collapsed": F,
|
|
274
280
|
expanded: M,
|
|
275
281
|
onChange: E,
|
|
@@ -278,46 +284,46 @@ function ve(e) {
|
|
|
278
284
|
variant: v,
|
|
279
285
|
square: !0,
|
|
280
286
|
sx: I,
|
|
281
|
-
children: [
|
|
282
|
-
}), t[
|
|
287
|
+
children: [oe, Y]
|
|
288
|
+
}), t[43] = M, t[44] = E, t[45] = I, t[46] = oe, t[47] = Y, t[48] = F, t[49] = v, t[50] = ce) : ce = t[50], ce;
|
|
283
289
|
}
|
|
284
|
-
function
|
|
290
|
+
function Ce(e) {
|
|
285
291
|
return e.isFetching;
|
|
286
292
|
}
|
|
287
|
-
function
|
|
293
|
+
function we(e) {
|
|
288
294
|
let t = [], n = [];
|
|
289
|
-
for (let r of ne.toArray(e))
|
|
295
|
+
for (let r of ne.toArray(e)) Te(r, he) || Te(r, _e) ? t.push(r) : n.push(r);
|
|
290
296
|
return {
|
|
291
297
|
summary: t,
|
|
292
298
|
details: n
|
|
293
299
|
};
|
|
294
300
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
301
|
+
function Te(e, t) {
|
|
302
|
+
return L(e) && e.type === t;
|
|
297
303
|
}
|
|
298
304
|
//#endregion
|
|
299
305
|
//#region src/widgets/wrapper/widget-content.tsx
|
|
300
|
-
function
|
|
306
|
+
function Ee(e) {
|
|
301
307
|
let t = P(5), { sx: n, children: r } = e, i;
|
|
302
308
|
t[0] === n ? i = t[1] : (i = {
|
|
303
309
|
...$.content,
|
|
304
310
|
...n
|
|
305
311
|
}, t[0] = n, t[1] = i);
|
|
306
312
|
let a;
|
|
307
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(
|
|
313
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(K, {
|
|
308
314
|
"data-slot": "content",
|
|
309
315
|
sx: i,
|
|
310
316
|
children: r
|
|
311
317
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
312
318
|
}
|
|
313
|
-
function
|
|
319
|
+
function De(e) {
|
|
314
320
|
let t = P(5), { sx: n, children: r } = e, i;
|
|
315
321
|
t[0] === n ? i = t[1] : (i = {
|
|
316
322
|
...$.footer,
|
|
317
323
|
...n
|
|
318
324
|
}, t[0] = n, t[1] = i);
|
|
319
325
|
let a;
|
|
320
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(
|
|
326
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(K, {
|
|
321
327
|
"data-slot": "footer",
|
|
322
328
|
sx: i,
|
|
323
329
|
children: r
|
|
@@ -325,7 +331,7 @@ function Ce(e) {
|
|
|
325
331
|
}
|
|
326
332
|
//#endregion
|
|
327
333
|
//#region src/widgets/subheader/style.ts
|
|
328
|
-
var
|
|
334
|
+
var Oe = { root: {
|
|
329
335
|
display: "grid",
|
|
330
336
|
gridTemplateColumns: "1fr auto",
|
|
331
337
|
alignItems: "center",
|
|
@@ -335,21 +341,21 @@ var we = { root: {
|
|
|
335
341
|
} };
|
|
336
342
|
//#endregion
|
|
337
343
|
//#region src/widgets/subheader/subheader.tsx
|
|
338
|
-
function
|
|
344
|
+
function ke(e) {
|
|
339
345
|
let t = P(5), { sx: n, children: r } = e, i;
|
|
340
346
|
t[0] === n ? i = t[1] : (i = {
|
|
341
|
-
...
|
|
347
|
+
...Oe.root,
|
|
342
348
|
...n
|
|
343
349
|
}, t[0] = n, t[1] = i);
|
|
344
350
|
let a;
|
|
345
|
-
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(
|
|
351
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(K, {
|
|
346
352
|
sx: i,
|
|
347
353
|
children: r
|
|
348
354
|
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
349
355
|
}
|
|
350
356
|
//#endregion
|
|
351
357
|
//#region src/widgets/state/style.ts
|
|
352
|
-
var
|
|
358
|
+
var Ae = {
|
|
353
359
|
emptyRoot: {
|
|
354
360
|
display: "flex",
|
|
355
361
|
flexDirection: "column",
|
|
@@ -367,33 +373,33 @@ var Ee = {
|
|
|
367
373
|
flexDirection: "column",
|
|
368
374
|
flex: 1
|
|
369
375
|
}
|
|
370
|
-
},
|
|
376
|
+
}, je = {
|
|
371
377
|
errorTitle: "Something went wrong",
|
|
372
378
|
errorMessage: (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "Unknown error",
|
|
373
379
|
emptyTitle: "No data",
|
|
374
380
|
emptyDescription: "Try adjusting filters or wait for data to load."
|
|
375
|
-
},
|
|
381
|
+
}, Me = (e) => ({
|
|
376
382
|
isLoading: e.isLoading,
|
|
377
383
|
isFetching: e.isFetching,
|
|
378
384
|
error: e.error,
|
|
379
385
|
rawData: e.rawData
|
|
380
386
|
});
|
|
381
|
-
function
|
|
382
|
-
let t = P(17), { skeleton: n, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ?
|
|
387
|
+
function Ne(e) {
|
|
388
|
+
let t = P(17), { skeleton: n, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Re : o, u = i(), d = r(u, Me), f;
|
|
383
389
|
t[0] === c ? f = t[1] : (f = {
|
|
384
|
-
...
|
|
390
|
+
...je,
|
|
385
391
|
...c
|
|
386
392
|
}, t[0] = c, t[1] = f);
|
|
387
393
|
let p = f;
|
|
388
394
|
if (d.isLoading) {
|
|
389
395
|
let e;
|
|
390
|
-
return t[2] === n ? e = t[3] : (e = /* @__PURE__ */ Z(
|
|
396
|
+
return t[2] === n ? e = t[3] : (e = /* @__PURE__ */ Z(ue, { children: n }), t[2] = n, t[3] = e), e;
|
|
391
397
|
}
|
|
392
398
|
if (d.error !== void 0 && d.error !== null) {
|
|
393
399
|
let e;
|
|
394
400
|
if (t[4] !== p || t[5] !== s || t[6] !== d.error) {
|
|
395
|
-
let n =
|
|
396
|
-
e = s ? /* @__PURE__ */ Z(
|
|
401
|
+
let n = ze(d.error);
|
|
402
|
+
e = s ? /* @__PURE__ */ Z(ue, { children: s(n) }) : /* @__PURE__ */ Z(Fe, {
|
|
397
403
|
error: n,
|
|
398
404
|
labels: p
|
|
399
405
|
}), t[4] = p, t[5] = s, t[6] = d.error, t[7] = e;
|
|
@@ -402,46 +408,46 @@ function ke(e) {
|
|
|
402
408
|
}
|
|
403
409
|
if (l(d.rawData)) {
|
|
404
410
|
let e;
|
|
405
|
-
return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(
|
|
411
|
+
return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(Ie, { labels: p }), t[8] = p, t[9] = e), e;
|
|
406
412
|
}
|
|
407
413
|
let m;
|
|
408
|
-
t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(
|
|
414
|
+
t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(Pe, {
|
|
409
415
|
id: u,
|
|
410
416
|
children: a
|
|
411
417
|
}), t[10] = a, t[11] = u, t[12] = m) : m = t[12];
|
|
412
418
|
let h;
|
|
413
|
-
return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(
|
|
419
|
+
return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(Le, {
|
|
414
420
|
fallback: s,
|
|
415
421
|
labels: p,
|
|
416
422
|
children: m
|
|
417
423
|
}), t[13] = p, t[14] = s, t[15] = m, t[16] = h) : h = t[16], h;
|
|
418
424
|
}
|
|
419
|
-
function
|
|
425
|
+
function Pe(e) {
|
|
420
426
|
let t = P(5), { id: n, children: r } = e, i;
|
|
421
427
|
t[0] === n ? i = t[1] : (i = (e) => o(n, e), t[0] = n, t[1] = i);
|
|
422
428
|
let a = i, s;
|
|
423
|
-
return t[2] !== r || t[3] !== a ? (s = /* @__PURE__ */ Z(
|
|
429
|
+
return t[2] !== r || t[3] !== a ? (s = /* @__PURE__ */ Z(K, {
|
|
424
430
|
ref: a,
|
|
425
|
-
sx:
|
|
431
|
+
sx: Ae.captureBox,
|
|
426
432
|
children: r
|
|
427
433
|
}), t[2] = r, t[3] = a, t[4] = s) : s = t[4], s;
|
|
428
434
|
}
|
|
429
|
-
function
|
|
435
|
+
function Fe(e) {
|
|
430
436
|
let t = P(8), { error: n, labels: r } = e, i;
|
|
431
|
-
t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(
|
|
437
|
+
t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(G, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
|
|
432
438
|
let a;
|
|
433
439
|
t[2] !== n || t[3] !== r ? (a = r.errorMessage(n), t[2] = n, t[3] = r, t[4] = a) : a = t[4];
|
|
434
440
|
let o;
|
|
435
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(
|
|
441
|
+
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(W, {
|
|
436
442
|
severity: "error",
|
|
437
443
|
children: [i, a]
|
|
438
444
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
439
445
|
}
|
|
440
|
-
function
|
|
446
|
+
function Ie(e) {
|
|
441
447
|
let t = P(9), { labels: n } = e, r;
|
|
442
448
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { color: "text.primary" }, t[0] = r) : r = t[0];
|
|
443
449
|
let i;
|
|
444
|
-
t[1] === n.emptyTitle ? i = t[2] : (i = /* @__PURE__ */ Z(
|
|
450
|
+
t[1] === n.emptyTitle ? i = t[2] : (i = /* @__PURE__ */ Z(X, {
|
|
445
451
|
variant: "body2",
|
|
446
452
|
sx: r,
|
|
447
453
|
children: n.emptyTitle
|
|
@@ -449,18 +455,18 @@ function Me(e) {
|
|
|
449
455
|
let a;
|
|
450
456
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (a = { color: "text.secondary" }, t[3] = a) : a = t[3];
|
|
451
457
|
let o;
|
|
452
|
-
t[4] === n.emptyDescription ? o = t[5] : (o = /* @__PURE__ */ Z(
|
|
458
|
+
t[4] === n.emptyDescription ? o = t[5] : (o = /* @__PURE__ */ Z(X, {
|
|
453
459
|
variant: "caption",
|
|
454
460
|
sx: a,
|
|
455
461
|
children: n.emptyDescription
|
|
456
462
|
}), t[4] = n.emptyDescription, t[5] = o);
|
|
457
463
|
let s;
|
|
458
|
-
return t[6] !== i || t[7] !== o ? (s = /* @__PURE__ */ Q(
|
|
459
|
-
sx:
|
|
464
|
+
return t[6] !== i || t[7] !== o ? (s = /* @__PURE__ */ Q(K, {
|
|
465
|
+
sx: Ae.emptyRoot,
|
|
460
466
|
children: [i, o]
|
|
461
467
|
}), t[6] = i, t[7] = o, t[8] = s) : s = t[8], s;
|
|
462
468
|
}
|
|
463
|
-
var
|
|
469
|
+
var Le = class extends F {
|
|
464
470
|
state = { error: null };
|
|
465
471
|
static getDerivedStateFromError(e) {
|
|
466
472
|
return { error: e };
|
|
@@ -472,7 +478,7 @@ var Ne = class extends F {
|
|
|
472
478
|
let { error: e } = this.state;
|
|
473
479
|
if (e !== null) {
|
|
474
480
|
let { fallback: t, labels: n } = this.props;
|
|
475
|
-
return t ? t(e) : /* @__PURE__ */ Z(
|
|
481
|
+
return t ? t(e) : /* @__PURE__ */ Z(Fe, {
|
|
476
482
|
error: e,
|
|
477
483
|
labels: n
|
|
478
484
|
});
|
|
@@ -480,15 +486,15 @@ var Ne = class extends F {
|
|
|
480
486
|
return this.props.children;
|
|
481
487
|
}
|
|
482
488
|
};
|
|
483
|
-
function
|
|
489
|
+
function Re(e) {
|
|
484
490
|
return e == null ? !0 : Array.isArray(e) ? !!(e.length === 0 || e.every((e) => Array.isArray(e) && e.length === 0)) : typeof e == "object" && Object.keys(e).length === 0;
|
|
485
491
|
}
|
|
486
|
-
function
|
|
492
|
+
function ze(e) {
|
|
487
493
|
return e instanceof Error ? e : typeof e == "string" ? Error(e) : e && typeof e == "object" && "message" in e ? Error(String(e.message)) : /* @__PURE__ */ Error("Unknown error");
|
|
488
494
|
}
|
|
489
495
|
//#endregion
|
|
490
496
|
//#region src/widgets/selection-summary/labels.ts
|
|
491
|
-
var
|
|
497
|
+
var Be = { clear: "Clear" }, Ve = {
|
|
492
498
|
root: {
|
|
493
499
|
display: "flex",
|
|
494
500
|
alignItems: "center",
|
|
@@ -520,36 +526,36 @@ var Ie = { clear: "Clear" }, Le = {
|
|
|
520
526
|
};
|
|
521
527
|
//#endregion
|
|
522
528
|
//#region src/widgets/selection-summary/selection-summary.tsx
|
|
523
|
-
function
|
|
529
|
+
function He(e) {
|
|
524
530
|
let t = P(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
|
|
525
531
|
if (!r) return null;
|
|
526
532
|
let c, l, u, d, f, p, m, h, g;
|
|
527
533
|
if (t[0] !== o || t[1] !== n || t[2] !== s || t[3] !== a || t[4] !== r) {
|
|
528
534
|
u = {
|
|
529
|
-
...
|
|
535
|
+
...Be,
|
|
530
536
|
...a
|
|
531
537
|
};
|
|
532
538
|
let e = n === 0 ? r : n;
|
|
533
|
-
l =
|
|
539
|
+
l = K, h = Ve.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ Z(o, {
|
|
534
540
|
fontSize: "small",
|
|
535
541
|
...s
|
|
536
|
-
}) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c =
|
|
537
|
-
/* @__PURE__ */ Z(
|
|
542
|
+
}) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = K, d = "span", f = Ve.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Q(ue, { children: [
|
|
543
|
+
/* @__PURE__ */ Z(X, {
|
|
538
544
|
component: "span",
|
|
539
545
|
variant: "caption",
|
|
540
|
-
sx:
|
|
546
|
+
sx: Ve.selected,
|
|
541
547
|
children: e
|
|
542
548
|
}),
|
|
543
|
-
/* @__PURE__ */ Z(
|
|
549
|
+
/* @__PURE__ */ Z(X, {
|
|
544
550
|
component: "span",
|
|
545
551
|
variant: "caption",
|
|
546
|
-
sx:
|
|
552
|
+
sx: Ve.separator,
|
|
547
553
|
children: "/"
|
|
548
554
|
}),
|
|
549
|
-
/* @__PURE__ */ Z(
|
|
555
|
+
/* @__PURE__ */ Z(X, {
|
|
550
556
|
component: "span",
|
|
551
557
|
variant: "caption",
|
|
552
|
-
sx:
|
|
558
|
+
sx: Ve.total,
|
|
553
559
|
children: r
|
|
554
560
|
})
|
|
555
561
|
] }), t[0] = o, t[1] = n, t[2] = s, t[3] = a, t[4] = r, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = f, t[10] = p, t[11] = m, t[12] = h, t[13] = g;
|
|
@@ -562,7 +568,7 @@ function Re(e) {
|
|
|
562
568
|
children: m
|
|
563
569
|
}), t[17] = c, t[18] = d, t[19] = f, t[20] = p, t[21] = m, t[22] = _) : _ = t[22];
|
|
564
570
|
let v;
|
|
565
|
-
t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(
|
|
571
|
+
t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(q, {
|
|
566
572
|
size: "small",
|
|
567
573
|
variant: "text",
|
|
568
574
|
onClick: i,
|
|
@@ -580,10 +586,10 @@ function Re(e) {
|
|
|
580
586
|
}
|
|
581
587
|
//#endregion
|
|
582
588
|
//#region src/widgets/toolbox/labels.ts
|
|
583
|
-
var
|
|
589
|
+
var Ue = {
|
|
584
590
|
trigger: "More actions",
|
|
585
591
|
close: "Close"
|
|
586
|
-
},
|
|
592
|
+
}, We = {
|
|
587
593
|
root: {
|
|
588
594
|
display: "flex",
|
|
589
595
|
alignItems: "center",
|
|
@@ -613,14 +619,14 @@ var ze = {
|
|
|
613
619
|
};
|
|
614
620
|
//#endregion
|
|
615
621
|
//#region src/widgets/toolbox/toolbox.tsx
|
|
616
|
-
function
|
|
617
|
-
let n = P(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = e, u = a === void 0 ?
|
|
622
|
+
function Ge(e) {
|
|
623
|
+
let n = P(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = e, u = a === void 0 ? pe : a, d = s === void 0 ? "right" : s, f;
|
|
618
624
|
n[0] === i ? f = n[1] : (f = {
|
|
619
|
-
...
|
|
625
|
+
...Ue,
|
|
620
626
|
...i
|
|
621
627
|
}, n[0] = i, n[1] = f);
|
|
622
|
-
let p = f, [m, h] =
|
|
623
|
-
n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(
|
|
628
|
+
let p = f, [m, h] = V(!1), [g, _] = V(null), [v, y] = V(null), [b, x] = V(null), S;
|
|
629
|
+
n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(Ye), n[2] = S) : S = n[2];
|
|
624
630
|
let ee = S, C;
|
|
625
631
|
n[3] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) => {
|
|
626
632
|
_(e);
|
|
@@ -632,9 +638,9 @@ function Ve(e) {
|
|
|
632
638
|
e.key === "Escape" && h(!1);
|
|
633
639
|
};
|
|
634
640
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
635
|
-
}, E = [m], n[4] = m, n[5] = T, n[6] = E),
|
|
636
|
-
let [D] =
|
|
637
|
-
n[7] === l ? (O = n[8], k = n[9]) : (O = ne.toArray(l).filter(
|
|
641
|
+
}, E = [m], n[4] = m, n[5] = T, n[6] = E), z(T, E);
|
|
642
|
+
let [D] = V(Je), O, k;
|
|
643
|
+
n[7] === l ? (O = n[8], k = n[9]) : (O = ne.toArray(l).filter(qe), k = O.reduce(Ke, 0), n[7] = l, n[8] = O, n[9] = k);
|
|
638
644
|
let A = r !== void 0 && k > r, te;
|
|
639
645
|
bb0: {
|
|
640
646
|
if (!A || r === void 0) {
|
|
@@ -642,10 +648,10 @@ function Ve(e) {
|
|
|
642
648
|
break bb0;
|
|
643
649
|
}
|
|
644
650
|
let e;
|
|
645
|
-
n[10] !== O || n[11] !== r ? (e =
|
|
651
|
+
n[10] !== O || n[11] !== r ? (e = Ze(O, r), n[10] = O, n[11] = r, n[12] = e) : e = n[12], te = e;
|
|
646
652
|
}
|
|
647
653
|
let j = te;
|
|
648
|
-
!A && m && h(!1);
|
|
654
|
+
!A && m && h(!1), xe() && m && h(!1);
|
|
649
655
|
let M, N;
|
|
650
656
|
if (n[13] !== D || n[14] !== v || n[15] !== m || n[16] !== b ? (M = () => {
|
|
651
657
|
let e = m && b ? b : v;
|
|
@@ -655,41 +661,41 @@ function Ve(e) {
|
|
|
655
661
|
v,
|
|
656
662
|
b,
|
|
657
663
|
D
|
|
658
|
-
], n[13] = D, n[14] = v, n[15] = m, n[16] = b, n[17] = M, n[18] = N) : (M = n[17], N = n[18]),
|
|
664
|
+
], n[13] = D, n[14] = v, n[15] = m, n[16] = b, n[17] = M, n[18] = N) : (M = n[17], N = n[18]), re(M, N), O.length === 0) return null;
|
|
659
665
|
let F = m ? p.close : p.trigger, I = d === "left" ? "row-reverse" : "row", L;
|
|
660
666
|
n[19] !== I || n[20] !== c ? (L = {
|
|
661
|
-
...
|
|
667
|
+
...We.root,
|
|
662
668
|
flexDirection: I,
|
|
663
669
|
...c
|
|
664
670
|
}, n[19] = I, n[20] = c, n[21] = L) : L = n[21];
|
|
665
|
-
let
|
|
666
|
-
n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== A || n[26] !== F ? (
|
|
671
|
+
let R;
|
|
672
|
+
n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== A || n[26] !== F ? (R = A && /* @__PURE__ */ Q(ue, { children: [/* @__PURE__ */ Z(t, {
|
|
667
673
|
title: F,
|
|
668
|
-
children: /* @__PURE__ */ Z(
|
|
674
|
+
children: /* @__PURE__ */ Z(oe, {
|
|
669
675
|
ref: w,
|
|
670
676
|
size: "small",
|
|
671
677
|
"aria-label": F,
|
|
672
678
|
"aria-pressed": m,
|
|
673
679
|
onClick: ee,
|
|
674
680
|
className: m ? "active" : void 0,
|
|
675
|
-
sx: { ...m &&
|
|
676
|
-
children: m ? /* @__PURE__ */ Z(
|
|
681
|
+
sx: { ...m && We.triggerActive },
|
|
682
|
+
children: m ? /* @__PURE__ */ Z(de, { fontSize: "small" }) : /* @__PURE__ */ Z(u, {
|
|
677
683
|
fontSize: "small",
|
|
678
684
|
...o
|
|
679
685
|
})
|
|
680
686
|
})
|
|
681
|
-
}), /* @__PURE__ */ Z(
|
|
687
|
+
}), /* @__PURE__ */ Z(J, {
|
|
682
688
|
orientation: "vertical",
|
|
683
689
|
flexItem: !0,
|
|
684
690
|
sx: { mx: .5 }
|
|
685
|
-
})] }), n[22] = u, n[23] = o, n[24] = m, n[25] = A, n[26] = F, n[27] =
|
|
686
|
-
let
|
|
687
|
-
n[28] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
691
|
+
})] }), n[22] = u, n[23] = o, n[24] = m, n[25] = A, n[26] = F, n[27] = R) : R = n[27];
|
|
692
|
+
let B;
|
|
693
|
+
n[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(K, {
|
|
688
694
|
ref: y,
|
|
689
|
-
sx:
|
|
690
|
-
}), n[28] =
|
|
691
|
-
let
|
|
692
|
-
n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== A ? (
|
|
695
|
+
sx: We.preview
|
|
696
|
+
}), n[28] = B) : B = n[28];
|
|
697
|
+
let H;
|
|
698
|
+
n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== A ? (H = A && /* @__PURE__ */ Z(le, {
|
|
693
699
|
open: m,
|
|
694
700
|
anchorEl: g,
|
|
695
701
|
placement: d === "left" ? "left" : "right",
|
|
@@ -704,65 +710,65 @@ function Ve(e) {
|
|
|
704
710
|
},
|
|
705
711
|
children: (e) => {
|
|
706
712
|
let { TransitionProps: t } = e;
|
|
707
|
-
return /* @__PURE__ */ Z(
|
|
713
|
+
return /* @__PURE__ */ Z(ae, {
|
|
708
714
|
...t,
|
|
709
715
|
style: { transformOrigin: d === "left" ? "right center" : "left center" },
|
|
710
|
-
children: /* @__PURE__ */ Z(
|
|
716
|
+
children: /* @__PURE__ */ Z(ce, {
|
|
711
717
|
ref: x,
|
|
712
|
-
sx:
|
|
718
|
+
sx: We.paper
|
|
713
719
|
})
|
|
714
720
|
});
|
|
715
721
|
}
|
|
716
|
-
}), n[29] = g, n[30] = d, n[31] = m, n[32] = A, n[33] =
|
|
717
|
-
let
|
|
718
|
-
n[34] !== D || n[35] !== j || n[36] !== O || n[37] !== m ? (
|
|
722
|
+
}), n[29] = g, n[30] = d, n[31] = m, n[32] = A, n[33] = H) : H = n[33];
|
|
723
|
+
let U;
|
|
724
|
+
n[34] !== D || n[35] !== j || n[36] !== O || n[37] !== m ? (U = D ? me(O.map((e, t) => {
|
|
719
725
|
let n = m || !j || j.has(t), r = e.key ?? t;
|
|
720
726
|
return /* @__PURE__ */ Z("div", {
|
|
721
727
|
"data-toolbox-item-visible": n ? "true" : "false",
|
|
722
728
|
style: { display: n ? "contents" : "none" },
|
|
723
729
|
children: e
|
|
724
730
|
}, r);
|
|
725
|
-
}), D) : null, n[34] = D, n[35] = j, n[36] = O, n[37] = m, n[38] =
|
|
726
|
-
let
|
|
727
|
-
return n[39] !== L || n[40] !==
|
|
731
|
+
}), D) : null, n[34] = D, n[35] = j, n[36] = O, n[37] = m, n[38] = U) : U = n[38];
|
|
732
|
+
let ie;
|
|
733
|
+
return n[39] !== L || n[40] !== R || n[41] !== H || n[42] !== U ? (ie = /* @__PURE__ */ Q(K, {
|
|
728
734
|
sx: L,
|
|
729
735
|
children: [
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
736
|
+
R,
|
|
737
|
+
B,
|
|
738
|
+
H,
|
|
739
|
+
U
|
|
734
740
|
]
|
|
735
|
-
}), n[39] = L, n[40] =
|
|
741
|
+
}), n[39] = L, n[40] = R, n[41] = H, n[42] = U, n[43] = ie) : ie = n[43], ie;
|
|
736
742
|
}
|
|
737
|
-
function
|
|
738
|
-
return e + +!
|
|
743
|
+
function Ke(e, t) {
|
|
744
|
+
return e + +!Xe(t);
|
|
739
745
|
}
|
|
740
|
-
function
|
|
741
|
-
return
|
|
746
|
+
function qe(e) {
|
|
747
|
+
return L(e);
|
|
742
748
|
}
|
|
743
|
-
function
|
|
749
|
+
function Je() {
|
|
744
750
|
if (typeof document > "u") return null;
|
|
745
751
|
let e = document.createElement("div");
|
|
746
752
|
return e.style.display = "contents", e;
|
|
747
753
|
}
|
|
748
|
-
function
|
|
754
|
+
function Ye(e) {
|
|
749
755
|
return !e;
|
|
750
756
|
}
|
|
751
|
-
function
|
|
757
|
+
function Xe(e) {
|
|
752
758
|
return e.props["data-toolbar-hidden"] === !0;
|
|
753
759
|
}
|
|
754
|
-
function
|
|
760
|
+
function Ze(e, t) {
|
|
755
761
|
let n = [], r = 0;
|
|
756
|
-
for (let i = 0; i < e.length && !(r >= t); i++) n.push(i),
|
|
757
|
-
for (; n.length > 0 &&
|
|
762
|
+
for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Xe(e[i]) || r++;
|
|
763
|
+
for (; n.length > 0 && Xe(e[n[n.length - 1]]);) n.pop();
|
|
758
764
|
return new Set(n);
|
|
759
765
|
}
|
|
760
766
|
//#endregion
|
|
761
767
|
//#region src/widgets/note/labels.ts
|
|
762
|
-
var
|
|
768
|
+
var Qe = {
|
|
763
769
|
showMore: "Show more",
|
|
764
770
|
showLess: "Show less"
|
|
765
|
-
},
|
|
771
|
+
}, $e = {
|
|
766
772
|
root: {
|
|
767
773
|
display: "flex",
|
|
768
774
|
flexDirection: "column",
|
|
@@ -788,29 +794,29 @@ var Je = {
|
|
|
788
794
|
};
|
|
789
795
|
//#endregion
|
|
790
796
|
//#region src/widgets/note/widget-note.tsx
|
|
791
|
-
function
|
|
797
|
+
function et(e) {
|
|
792
798
|
let t = P(3), { children: n } = e, r;
|
|
793
799
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
794
800
|
color: "inherit",
|
|
795
801
|
m: 0
|
|
796
802
|
}, t[0] = r) : r = t[0];
|
|
797
803
|
let i;
|
|
798
|
-
return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(
|
|
804
|
+
return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(X, {
|
|
799
805
|
variant: "caption",
|
|
800
806
|
component: "p",
|
|
801
807
|
sx: r,
|
|
802
808
|
children: n
|
|
803
809
|
}), t[1] = n, t[2] = i), i;
|
|
804
810
|
}
|
|
805
|
-
var
|
|
806
|
-
h1:
|
|
807
|
-
h2:
|
|
808
|
-
h3:
|
|
809
|
-
h4:
|
|
810
|
-
h5:
|
|
811
|
-
h6:
|
|
812
|
-
p:
|
|
813
|
-
a: ({ children: e, href: t }) => /* @__PURE__ */ Z(
|
|
811
|
+
var tt = {
|
|
812
|
+
h1: et,
|
|
813
|
+
h2: et,
|
|
814
|
+
h3: et,
|
|
815
|
+
h4: et,
|
|
816
|
+
h5: et,
|
|
817
|
+
h6: et,
|
|
818
|
+
p: et,
|
|
819
|
+
a: ({ children: e, href: t }) => /* @__PURE__ */ Z(Y, {
|
|
814
820
|
href: t,
|
|
815
821
|
target: "_blank",
|
|
816
822
|
rel: "noopener noreferrer",
|
|
@@ -819,49 +825,49 @@ var Ze = {
|
|
|
819
825
|
children: e
|
|
820
826
|
})
|
|
821
827
|
};
|
|
822
|
-
function
|
|
828
|
+
function nt(e) {
|
|
823
829
|
let t = P(8), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
|
|
824
830
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = { color: "inherit" }, t[0] = o) : o = t[0];
|
|
825
831
|
let s;
|
|
826
|
-
t[1] === i ? s = t[2] : (s = /* @__PURE__ */ Z(
|
|
832
|
+
t[1] === i ? s = t[2] : (s = /* @__PURE__ */ Z(X, {
|
|
827
833
|
variant: "caption",
|
|
828
834
|
component: "div",
|
|
829
835
|
sx: o,
|
|
830
836
|
children: i
|
|
831
837
|
}), t[1] = i, t[2] = s);
|
|
832
838
|
let c;
|
|
833
|
-
return t[3] !== i || t[4] !== r || t[5] !== a || t[6] !== s ? (c = /* @__PURE__ */ Z(
|
|
839
|
+
return t[3] !== i || t[4] !== r || t[5] !== a || t[6] !== s ? (c = /* @__PURE__ */ Z(at, {
|
|
834
840
|
lineClamp: a,
|
|
835
841
|
labels: r,
|
|
836
842
|
dependency: i,
|
|
837
843
|
children: s
|
|
838
844
|
}), t[3] = i, t[4] = r, t[5] = a, t[6] = s, t[7] = c) : c = t[7], c;
|
|
839
845
|
}
|
|
840
|
-
function
|
|
846
|
+
function rt(t) {
|
|
841
847
|
let n = P(7), { content: r, lineClamp: i, labels: a } = t, o = i === void 0 ? 3 : i, s;
|
|
842
|
-
n[0] === r ? s = n[1] : (s = /* @__PURE__ */ Z(
|
|
848
|
+
n[0] === r ? s = n[1] : (s = /* @__PURE__ */ Z(K, {
|
|
843
849
|
sx: e,
|
|
844
850
|
children: /* @__PURE__ */ Z(x, {
|
|
845
851
|
content: r,
|
|
846
|
-
components:
|
|
852
|
+
components: tt
|
|
847
853
|
})
|
|
848
854
|
}), n[0] = r, n[1] = s);
|
|
849
855
|
let c;
|
|
850
|
-
return n[2] !== r || n[3] !== a || n[4] !== o || n[5] !== s ? (c = /* @__PURE__ */ Z(
|
|
856
|
+
return n[2] !== r || n[3] !== a || n[4] !== o || n[5] !== s ? (c = /* @__PURE__ */ Z(at, {
|
|
851
857
|
lineClamp: o,
|
|
852
858
|
labels: a,
|
|
853
859
|
dependency: r,
|
|
854
860
|
children: s
|
|
855
861
|
}), n[2] = r, n[3] = a, n[4] = o, n[5] = s, n[6] = c) : c = n[6], c;
|
|
856
862
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
863
|
+
var it = Object.assign(nt, { Markdown: rt });
|
|
864
|
+
function at(e) {
|
|
859
865
|
let t = P(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
|
|
860
866
|
t[0] === r ? o = t[1] : (o = {
|
|
861
|
-
...
|
|
867
|
+
...Qe,
|
|
862
868
|
...r
|
|
863
869
|
}, t[0] = r, t[1] = o);
|
|
864
|
-
let s = o, c =
|
|
870
|
+
let s = o, c = B(null), [l, u] = V(!1), [d, f] = V(!1), p = n <= 0, m;
|
|
865
871
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
|
|
866
872
|
let e = c.current;
|
|
867
873
|
e && u(e.scrollHeight > e.clientHeight + 1);
|
|
@@ -877,59 +883,59 @@ function tt(e) {
|
|
|
877
883
|
h,
|
|
878
884
|
i,
|
|
879
885
|
p
|
|
880
|
-
], t[5] = p, t[6] = i, t[7] = _) : _ = t[7],
|
|
886
|
+
], t[5] = p, t[6] = i, t[7] = _) : _ = t[7], z(g, _);
|
|
881
887
|
let v;
|
|
882
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (v = () => f(
|
|
888
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (v = () => f(ot), t[8] = v) : v = t[8];
|
|
883
889
|
let b = v, x = !d && !p, S;
|
|
884
890
|
t[9] !== x || t[10] !== n ? (S = x ? {
|
|
885
|
-
|
|
891
|
+
...$e.clamped,
|
|
886
892
|
WebkitLineClamp: n
|
|
887
893
|
} : null, t[9] = x, t[10] = n, t[11] = S) : S = t[11];
|
|
888
894
|
let ee = S, C;
|
|
889
895
|
t[12] === ee ? C = t[13] : (C = ee ?? {}, t[12] = ee, t[13] = C);
|
|
890
896
|
let w;
|
|
891
897
|
t[14] === C ? w = t[15] : (w = {
|
|
892
|
-
|
|
898
|
+
...$e.text,
|
|
893
899
|
...C
|
|
894
900
|
}, t[14] = C, t[15] = w);
|
|
895
901
|
let T;
|
|
896
|
-
t[16] !== a || t[17] !== w ? (T = /* @__PURE__ */ Z(
|
|
902
|
+
t[16] !== a || t[17] !== w ? (T = /* @__PURE__ */ Z(K, {
|
|
897
903
|
ref: c,
|
|
898
904
|
sx: w,
|
|
899
905
|
children: a
|
|
900
906
|
}), t[16] = a, t[17] = w, t[18] = T) : T = t[18];
|
|
901
907
|
let E;
|
|
902
|
-
t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (E = !p && (l || d) && /* @__PURE__ */ Z(
|
|
908
|
+
t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (E = !p && (l || d) && /* @__PURE__ */ Z(Y, {
|
|
903
909
|
component: "button",
|
|
904
910
|
variant: "caption",
|
|
905
911
|
underline: "none",
|
|
906
912
|
onClick: b,
|
|
907
|
-
sx:
|
|
913
|
+
sx: $e.toggle,
|
|
908
914
|
children: d ? s.showLess : s.showMore
|
|
909
915
|
}), t[19] = s, t[20] = p, t[21] = d, t[22] = l, t[23] = E) : E = t[23];
|
|
910
916
|
let D;
|
|
911
|
-
return t[24] !== E || t[25] !== T ? (D = /* @__PURE__ */ Q(
|
|
912
|
-
sx:
|
|
917
|
+
return t[24] !== E || t[25] !== T ? (D = /* @__PURE__ */ Q(K, {
|
|
918
|
+
sx: $e.root,
|
|
913
919
|
children: [T, E]
|
|
914
920
|
}), t[24] = E, t[25] = T, t[26] = D) : D = t[26], D;
|
|
915
921
|
}
|
|
916
|
-
function
|
|
922
|
+
function ot(e) {
|
|
917
923
|
return !e;
|
|
918
924
|
}
|
|
919
925
|
//#endregion
|
|
920
926
|
//#region src/widgets/index.ts
|
|
921
|
-
var
|
|
927
|
+
var st = {
|
|
922
928
|
Provider: c,
|
|
923
|
-
Wrapper:
|
|
924
|
-
Actions:
|
|
925
|
-
Options:
|
|
926
|
-
Content:
|
|
927
|
-
Footer:
|
|
928
|
-
Subheader:
|
|
929
|
-
State:
|
|
930
|
-
SelectionSummary:
|
|
931
|
-
Toolbox:
|
|
932
|
-
Note:
|
|
929
|
+
Wrapper: Se,
|
|
930
|
+
Actions: he,
|
|
931
|
+
Options: _e,
|
|
932
|
+
Content: Ee,
|
|
933
|
+
Footer: De,
|
|
934
|
+
Subheader: ke,
|
|
935
|
+
State: Ne,
|
|
936
|
+
SelectionSummary: He,
|
|
937
|
+
Toolbox: Ge,
|
|
938
|
+
Note: it,
|
|
933
939
|
Echart: v,
|
|
934
940
|
EchartUI: _,
|
|
935
941
|
Searcher: l,
|
|
@@ -957,6 +963,6 @@ var rt = {
|
|
|
957
963
|
TableUI: M
|
|
958
964
|
};
|
|
959
965
|
//#endregion
|
|
960
|
-
export { b as DEFAULT_INIT_OPTS,
|
|
966
|
+
export { b as DEFAULT_INIT_OPTS, Qe as DEFAULT_NOTE_LABELS, Be as DEFAULT_SELECTION_SUMMARY_LABELS, je as DEFAULT_STATE_LABELS, Ue as DEFAULT_TOOLBOX_LABELS, ye as DEFAULT_WRAPPER_LABELS, st as Widget };
|
|
961
967
|
|
|
962
968
|
//# sourceMappingURL=widgets.js.map
|