@factorialco/f0-react 1.306.4 → 1.308.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/dist/experimental.d.ts +52 -37
- package/dist/experimental.js +3990 -3971
- package/dist/f0.d.ts +113 -56
- package/dist/f0.js +232 -218
- package/dist/{hooks-DRjrmneu.js → hooks-DhJYpAKB.js} +21517 -21419
- package/dist/styles.css +1 -1
- package/icons/app/ClockBack.js +1 -1
- package/icons/app/DropdownDefault.js +1 -1
- package/icons/app/DropdownOpen.js +1 -1
- package/icons/app/EqualApproximately.d.ts.map +1 -1
- package/icons/app/EqualApproximately.js +2 -2
- package/icons/{modules/ITManagement.d.ts → app/Marketplace.d.ts} +1 -1
- package/icons/app/Marketplace.d.ts.map +1 -0
- package/icons/app/Marketplace.js +5 -0
- package/icons/app/index.d.ts +1 -0
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +1 -0
- package/icons/modules/Discover.d.ts.map +1 -1
- package/icons/modules/Discover.js +1 -1
- package/icons/modules/ItManagement.d.ts +4 -0
- package/icons/modules/ItManagement.d.ts.map +1 -0
- package/icons/modules/Marketplace.d.ts +4 -0
- package/icons/modules/Marketplace.d.ts.map +1 -0
- package/icons/modules/Marketplace.js +5 -0
- package/icons/modules/index.d.ts +2 -1
- package/icons/modules/index.d.ts.map +1 -1
- package/icons/modules/index.js +2 -1
- package/package.json +3 -3
- package/icons/modules/ITManagement.d.ts.map +0 -1
- /package/icons/modules/{ITManagement.js → ItManagement.js} +0 -0
package/dist/f0.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as Cn, C as Wr, c as j, a as Di, u as _n, m as Ri, i as En, B as Si, O as Gr, p as $r, w as jr, S as Fe, b as Ur, F as Dn, d as Kr, A as Xr, D as Yr, e as qr, f as Re, g as Vr, h as me, j as Vi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as
|
|
2
|
-
import { bl as
|
|
1
|
+
import { L as Cn, C as Wr, c as j, a as Di, u as _n, m as Ri, i as En, B as Si, O as Gr, p as $r, w as jr, S as Fe, b as Ur, F as Dn, d as Kr, A as Xr, D as Yr, e as qr, f as Re, g as Vr, h as me, j as Vi, k as Jr, l as di, n as lt, o as Zr, q as Qr, r as Ot, s as Rn, E as es, t as zt, v as ts, x as is, y as ns, z as rs, G as Xe, H as Sn, I as ss, J as os, K as as, M as Ji, N as ls, P as Nn, Q as cs, R as On, X as An, Y as vi, T as ds, U as Tn, V as us, W as hs, Z as fs, _ as gs, $ as ps, a0 as ms, a1 as vs, a2 as ys, a3 as Zi, a4 as bs, a5 as ct, a6 as ui, a7 as xs, a8 as ws, a9 as Cs, aa as _s, ab as Es, ac as Ds, ad as Rs, ae as Ss, af as Ns, ag as Os, ah as kn, ai as As, aj as Mt, ak as zn, al as Pn, am as Ts, an as Mn, ao as Ln, ap as In, aq as ks, ar as zs, as as Hn, at as Ps, au as Ms, av as Ls, aw as Is, ax as Hs, ay as Bs, az as Bn, aA as Ve, aB as Fn, aC as Fs, aD as Ws, aE as Qi, aF as Gs, aG as Wn, aH as $s, aI as js, aJ as Us, aK as Ks, aL as Xs, aM as Ys, aN as qs, aO as Vs, aP as Js, aQ as Zs, aR as Qs, aS as eo } from "./hooks-DhJYpAKB.js";
|
|
2
|
+
import { bl as Zc, by as Qc, bH as ed, aT as td, aU as id, aV as nd, aW as rd, aX as sd, aY as od, aZ as ad, a_ as ld, b0 as cd, b1 as dd, b2 as ud, b3 as hd, b4 as fd, b5 as gd, b6 as pd, bD as md, b8 as vd, b9 as yd, bd, be as xd, bf as wd, bg as Cd, bi as _d, bj as Ed, bk as Dd, bn as Rd, bb as Sd, bm as Nd, bc as Od, bh as Ad, bE as Td, bx as kd, bs as zd, bv as Pd, br as Md, bI as Ld, bq as Id, bp as Hd, a$ as Bd, b7 as Fd, ba as Wd, bo as Gd, bt as $d, bz as jd, bA as Ud, bB as Kd, bJ as Xd, bu as Yd, bC as qd, bG as Vd, bw as Jd, bF as Zd } from "./hooks-DhJYpAKB.js";
|
|
3
3
|
import { jsx as g, jsxs as M, Fragment as Vt } from "react/jsx-runtime";
|
|
4
4
|
import L, { forwardRef as le, useRef as I, useImperativeHandle as to, Children as Lt, createContext as Ne, useContext as we, useState as W, useMemo as B, useEffect as H, useCallback as K, useLayoutEffect as yi, createElement as en, isValidElement as Gn, Fragment as io, memo as no, useReducer as ro, cloneElement as so, PureComponent as oo } from "react";
|
|
5
5
|
import { createPortal as $n, unstable_batchedUpdates as At } from "react-dom";
|
|
6
|
-
import { defaultTranslations as
|
|
6
|
+
import { defaultTranslations as eu } from "./i18n-provider-defaults.js";
|
|
7
7
|
import './f0.css';const ao = {
|
|
8
8
|
xs: 1,
|
|
9
9
|
sm: 2,
|
|
@@ -279,10 +279,10 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
279
279
|
}), _;
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
282
|
+
const k = y.filter((A) => R.includes(A.id));
|
|
283
|
+
if (k.length > 0) {
|
|
284
284
|
const A = [];
|
|
285
|
-
|
|
285
|
+
k.forEach((m) => {
|
|
286
286
|
const _ = C.find((P) => P.id === m.id);
|
|
287
287
|
if (!_)
|
|
288
288
|
return;
|
|
@@ -304,7 +304,7 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
}),
|
|
307
|
+
}), k.forEach((m) => {
|
|
308
308
|
m.content && h.current.set(m.id, m.content), m._originalContent !== void 0 && v.current.set(m.id, m._originalContent);
|
|
309
309
|
}), A.forEach(({ element: m, updateOptions: _ }) => {
|
|
310
310
|
try {
|
|
@@ -314,18 +314,18 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
314
314
|
}
|
|
315
315
|
}), S((m) => {
|
|
316
316
|
const _ = new Map(m);
|
|
317
|
-
return
|
|
317
|
+
return k.forEach((O) => {
|
|
318
318
|
const P = Ye(O);
|
|
319
319
|
_.set(O.id, P);
|
|
320
320
|
}), _;
|
|
321
321
|
}), d((m) => {
|
|
322
322
|
const _ = new Map(m);
|
|
323
|
-
return
|
|
323
|
+
return k.forEach((O) => {
|
|
324
324
|
O.content && _.set(O.id, O.content);
|
|
325
325
|
}), _;
|
|
326
326
|
}), x((m) => {
|
|
327
327
|
const _ = new Map(m);
|
|
328
|
-
return
|
|
328
|
+
return k.forEach((O) => {
|
|
329
329
|
O._originalContent !== void 0 && _.set(O.id, O._originalContent);
|
|
330
330
|
}), _;
|
|
331
331
|
});
|
|
@@ -352,7 +352,7 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
352
352
|
const R = C.map((y) => {
|
|
353
353
|
const b = y.id;
|
|
354
354
|
if (!b) return null;
|
|
355
|
-
const D = h.current.get(b), E = v.current.get(b),
|
|
355
|
+
const D = h.current.get(b), E = v.current.get(b), k = y;
|
|
356
356
|
return {
|
|
357
357
|
...y,
|
|
358
358
|
id: b,
|
|
@@ -360,7 +360,7 @@ function mo({ children: n, options: e, onResizeStop: t, onChange: i, widgets: r
|
|
|
360
360
|
h: y.h ?? 1,
|
|
361
361
|
x: y.x ?? 0,
|
|
362
362
|
y: y.y ?? 0,
|
|
363
|
-
meta:
|
|
363
|
+
meta: k.meta,
|
|
364
364
|
_originalContent: E,
|
|
365
365
|
content: D ?? g("div", {
|
|
366
366
|
children: "No content"
|
|
@@ -2336,7 +2336,7 @@ class _o {
|
|
|
2336
2336
|
* see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
|
|
2337
2337
|
*/
|
|
2338
2338
|
const Q = new _o();
|
|
2339
|
-
class
|
|
2339
|
+
class T {
|
|
2340
2340
|
/**
|
|
2341
2341
|
* initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
|
|
2342
2342
|
* simply return the existing instance (ignore any passed options). There is also an initAll() version that support
|
|
@@ -2353,8 +2353,8 @@ class k {
|
|
|
2353
2353
|
static init(e = {}, t = ".grid-stack") {
|
|
2354
2354
|
if (typeof document > "u")
|
|
2355
2355
|
return null;
|
|
2356
|
-
const i =
|
|
2357
|
-
return i ? (i.gridstack || (i.gridstack = new
|
|
2356
|
+
const i = T.getGridElement(t);
|
|
2357
|
+
return i ? (i.gridstack || (i.gridstack = new T(i, p.cloneDeep(e))), i.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
|
|
2358
2358
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.` : "GridStack.init() no grid element was passed."), null);
|
|
2359
2359
|
}
|
|
2360
2360
|
/**
|
|
@@ -2368,8 +2368,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2368
2368
|
*/
|
|
2369
2369
|
static initAll(e = {}, t = ".grid-stack") {
|
|
2370
2370
|
const i = [];
|
|
2371
|
-
return typeof document > "u" || (
|
|
2372
|
-
r.gridstack || (r.gridstack = new
|
|
2371
|
+
return typeof document > "u" || (T.getGridElements(t).forEach((r) => {
|
|
2372
|
+
r.gridstack || (r.gridstack = new T(r, p.cloneDeep(e))), i.push(r.gridstack);
|
|
2373
2373
|
}), i.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
|
|
2374
2374
|
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)), i;
|
|
2375
2375
|
}
|
|
@@ -2388,14 +2388,14 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2388
2388
|
const o = i.gridstack;
|
|
2389
2389
|
return t && (o.opts = { ...o.opts, ...t }), t.children !== void 0 && o.load(t.children), o;
|
|
2390
2390
|
}
|
|
2391
|
-
return (!e.classList.contains("grid-stack") ||
|
|
2391
|
+
return (!e.classList.contains("grid-stack") || T.addRemoveCB) && (T.addRemoveCB ? i = T.addRemoveCB(e, t, !0, !0) : i = p.createDiv(["grid-stack", t.class], e)), T.init(t, i);
|
|
2392
2392
|
}
|
|
2393
2393
|
/** call this method to register your engine instead of the default one.
|
|
2394
2394
|
* See instead `GridStackOptions.engineClass` if you only need to
|
|
2395
2395
|
* replace just one instance.
|
|
2396
2396
|
*/
|
|
2397
2397
|
static registerEngine(e) {
|
|
2398
|
-
|
|
2398
|
+
T.engineClass = e;
|
|
2399
2399
|
}
|
|
2400
2400
|
/**
|
|
2401
2401
|
* @internal create placeholder DIV as needed
|
|
@@ -2449,7 +2449,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2449
2449
|
delete t.cellHeight, this.cellHeight(c);
|
|
2450
2450
|
}
|
|
2451
2451
|
t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = fe), this._setStaticClass();
|
|
2452
|
-
const l = t.engineClass ||
|
|
2452
|
+
const l = t.engineClass || T.engineClass || Se;
|
|
2453
2453
|
if (this.engine = new l({
|
|
2454
2454
|
column: this.getColumn(),
|
|
2455
2455
|
float: t.float,
|
|
@@ -2492,7 +2492,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2492
2492
|
if (e.ELEMENT_NODE)
|
|
2493
2493
|
return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(e);
|
|
2494
2494
|
let t, i = e;
|
|
2495
|
-
if (i.grid = this, i.el ? t = i.el :
|
|
2495
|
+
if (i.grid = this, i.el ? t = i.el : T.addRemoveCB ? t = T.addRemoveCB(this.el, e, !0, !1) : t = this.createWidgetDivs(i), !t)
|
|
2496
2496
|
return;
|
|
2497
2497
|
if (i = t.gridstackNode, i && t.parentElement === this.el && this.engine.nodes.find((s) => s._id === i._id))
|
|
2498
2498
|
return t;
|
|
@@ -2512,11 +2512,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2512
2512
|
const t = p.createDiv(["grid-stack-item", this.opts.itemClass]), i = p.createDiv(["grid-stack-item-content"], t);
|
|
2513
2513
|
return p.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([r]) => {
|
|
2514
2514
|
var s, o;
|
|
2515
|
-
r.isIntersecting && ((s = e.visibleObservable) == null || s.disconnect(), delete e.visibleObservable,
|
|
2515
|
+
r.isIntersecting && ((s = e.visibleObservable) == null || s.disconnect(), delete e.visibleObservable, T.renderCB(i, e), (o = e.grid) == null || o.prepareDragDrop(e.el));
|
|
2516
2516
|
}), window.setTimeout(() => {
|
|
2517
2517
|
var r;
|
|
2518
2518
|
return (r = e.visibleObservable) == null ? void 0 : r.observe(t);
|
|
2519
|
-
})) :
|
|
2519
|
+
})) : T.renderCB(i, e), t;
|
|
2520
2520
|
}
|
|
2521
2521
|
/**
|
|
2522
2522
|
* Convert an existing gridItem element into a sub-grid with the given (optional) options, else inherit them
|
|
@@ -2550,11 +2550,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2550
2550
|
let l;
|
|
2551
2551
|
t.column === "auto" && (l = !0, t.column = Math.max(s.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
|
|
2552
2552
|
let u = s.el.querySelector(".grid-stack-item-content"), c, d;
|
|
2553
|
-
if (r && (this._removeDD(s.el), d = { ...s, x: 0, y: 0 }, p.removeInternalForSave(d), delete d.subGridOpts, s.content && (d.content = s.content, delete s.content),
|
|
2553
|
+
if (r && (this._removeDD(s.el), d = { ...s, x: 0, y: 0 }, p.removeInternalForSave(d), delete d.subGridOpts, s.content && (d.content = s.content, delete s.content), T.addRemoveCB ? c = T.addRemoveCB(this.el, d, !0, !1) : (c = p.createDiv(["grid-stack-item"]), c.appendChild(u), u = p.createDiv(["grid-stack-item-content"], s.el)), this.prepareDragDrop(s.el)), i) {
|
|
2554
2554
|
const w = l ? t.column : s.w, S = s.h + i.h, N = s.el.style;
|
|
2555
2555
|
N.transition = "none", this.update(s.el, { w, h: S }), setTimeout(() => N.transition = null);
|
|
2556
2556
|
}
|
|
2557
|
-
const h = s.subGrid =
|
|
2557
|
+
const h = s.subGrid = T.addGrid(u, t);
|
|
2558
2558
|
return i != null && i._moving && (h._isTemp = !0), l && (h._autoColumn = !0), r && h.makeWidget(c, d), i && (i._moving ? window.setTimeout(() => p.simulateMouseEvent(i._event, "mouseenter", h.el), 0) : h.makeWidget(s.el, s)), this.resizeToContentCheck(!1, s), h;
|
|
2559
2559
|
}
|
|
2560
2560
|
/**
|
|
@@ -2581,7 +2581,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2581
2581
|
* NOTE2: nested grids will ALWAYS save to the container size to be in sync with parent.
|
|
2582
2582
|
* @returns list of widgets or full grid option, including .children list of widgets
|
|
2583
2583
|
*/
|
|
2584
|
-
save(e = !0, t = !1, i =
|
|
2584
|
+
save(e = !0, t = !1, i = T.saveCB, r) {
|
|
2585
2585
|
const s = this.engine.save(e, i, r);
|
|
2586
2586
|
if (s.forEach((o) => {
|
|
2587
2587
|
var a;
|
|
@@ -2636,7 +2636,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2636
2636
|
*
|
|
2637
2637
|
* @see {@link http://gridstackjs.com/demo/serialization.html} for complete example
|
|
2638
2638
|
*/
|
|
2639
|
-
load(e, t =
|
|
2639
|
+
load(e, t = T.addRemoveCB || !0) {
|
|
2640
2640
|
e = p.cloneDeep(e);
|
|
2641
2641
|
const i = this.getColumn();
|
|
2642
2642
|
e.forEach((c) => {
|
|
@@ -2646,15 +2646,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2646
2646
|
e.forEach((c) => {
|
|
2647
2647
|
r = Math.max(r, (c.x || 0) + c.w);
|
|
2648
2648
|
}), r > this.engine.defaultColumn && (this.engine.defaultColumn = r), r > i && (this.engine.nodes.length === 0 && this.responseLayout ? (this.engine.nodes = e, this.engine.columnChanged(r, i, this.responseLayout), e = this.engine.nodes, this.engine.nodes = [], delete this.responseLayout) : this.engine.cacheLayout(e, r, !0));
|
|
2649
|
-
const s =
|
|
2650
|
-
typeof t == "function" && (
|
|
2649
|
+
const s = T.addRemoveCB;
|
|
2650
|
+
typeof t == "function" && (T.addRemoveCB = t);
|
|
2651
2651
|
const o = [];
|
|
2652
2652
|
this.batchUpdate();
|
|
2653
2653
|
const a = !this.engine.nodes.length, l = a && this.opts.animate;
|
|
2654
2654
|
l && this.setAnimation(!1), !a && t && [...this.engine.nodes].forEach((d) => {
|
|
2655
2655
|
if (!d.id)
|
|
2656
2656
|
return;
|
|
2657
|
-
p.find(e, d.id) || (
|
|
2657
|
+
p.find(e, d.id) || (T.addRemoveCB && T.addRemoveCB(this.el, d, !1, !1), o.push(d), this.removeWidget(d.el, !0, !1));
|
|
2658
2658
|
}), this.engine._loading = !0;
|
|
2659
2659
|
const u = [];
|
|
2660
2660
|
return this.engine.nodes = this.engine.nodes.filter((c) => p.find(e, c.id) ? (u.push(c), !1) : !0), e.forEach((c) => {
|
|
@@ -2666,7 +2666,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2666
2666
|
f && f.gridstack && f.gridstack.load(c.subGridOpts.children);
|
|
2667
2667
|
}
|
|
2668
2668
|
} else t && this.addWidget(c);
|
|
2669
|
-
}), delete this.engine._loading, this.engine.removedNodes = o, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, s ?
|
|
2669
|
+
}), delete this.engine._loading, this.engine.removedNodes = o, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, s ? T.addRemoveCB = s : delete T.addRemoveCB, l && this.setAnimation(!0, !0), this;
|
|
2670
2670
|
}
|
|
2671
2671
|
/**
|
|
2672
2672
|
* use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient)
|
|
@@ -2982,7 +2982,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
2982
2982
|
* grid.makeWidget(element, {x: 0, y: 1, w: 4, h: 2});
|
|
2983
2983
|
*/
|
|
2984
2984
|
makeWidget(e, t) {
|
|
2985
|
-
const i =
|
|
2985
|
+
const i = T.getElement(e);
|
|
2986
2986
|
if (!i || i.gridstackNode)
|
|
2987
2987
|
return i;
|
|
2988
2988
|
i.parentElement || this.el.appendChild(i), this._prepareElement(i, !0, t);
|
|
@@ -3021,11 +3021,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3021
3021
|
* @param triggerEvent if `false` (quiet mode) element will not be added to removed list and no 'removed' callbacks will be called (Default? true).
|
|
3022
3022
|
*/
|
|
3023
3023
|
removeWidget(e, t = !0, i = !0) {
|
|
3024
|
-
return e ? (
|
|
3024
|
+
return e ? (T.getElements(e).forEach((r) => {
|
|
3025
3025
|
if (r.parentElement && r.parentElement !== this.el)
|
|
3026
3026
|
return;
|
|
3027
3027
|
let s = r.gridstackNode;
|
|
3028
|
-
s || (s = this.engine.nodes.find((o) => r === o.el)), s && (t &&
|
|
3028
|
+
s || (s = this.engine.nodes.find((o) => r === o.el)), s && (t && T.addRemoveCB && T.addRemoveCB(this.el, s, !1, !1), delete r.gridstackNode, this._removeDD(r), this.engine.removeNode(s, t, i), t && r.parentElement && r.remove());
|
|
3029
3029
|
}), i && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
|
|
3030
3030
|
}
|
|
3031
3031
|
/**
|
|
@@ -3035,7 +3035,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3035
3035
|
*/
|
|
3036
3036
|
removeAll(e = !0, t = !0) {
|
|
3037
3037
|
return this.engine.nodes.forEach((i) => {
|
|
3038
|
-
e &&
|
|
3038
|
+
e && T.addRemoveCB && T.addRemoveCB(this.el, i, !1, !1), delete i.el.gridstackNode, this.opts.staticGrid || this._removeDD(i.el);
|
|
3039
3039
|
}), this.engine.removeAll(e, t), t && this._triggerRemoveEvent(), this;
|
|
3040
3040
|
}
|
|
3041
3041
|
/**
|
|
@@ -3101,7 +3101,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3101
3101
|
* });
|
|
3102
3102
|
*/
|
|
3103
3103
|
update(e, t) {
|
|
3104
|
-
return
|
|
3104
|
+
return T.getElements(e).forEach((i) => {
|
|
3105
3105
|
var c;
|
|
3106
3106
|
const r = i == null ? void 0 : i.gridstackNode;
|
|
3107
3107
|
if (!r)
|
|
@@ -3114,7 +3114,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3114
3114
|
a[d] = s[d] !== void 0 ? s[d] : r[d], delete s[d];
|
|
3115
3115
|
})), !a && (s.minW || s.minH || s.maxW || s.maxH) && (a = {}), s.content !== void 0) {
|
|
3116
3116
|
const d = i.querySelector(".grid-stack-item-content");
|
|
3117
|
-
d && d.textContent !== s.content && (r.content = s.content,
|
|
3117
|
+
d && d.textContent !== s.content && (r.content = s.content, T.renderCB(d, s), (c = r.subGrid) != null && c.el && (d.appendChild(r.subGrid.el), r.subGrid._updateContainerHeight())), delete s.content;
|
|
3118
3118
|
}
|
|
3119
3119
|
let l = !1, u = !1;
|
|
3120
3120
|
for (const d in s)
|
|
@@ -3123,7 +3123,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3123
3123
|
const d = a.w !== void 0 && a.w !== r.w;
|
|
3124
3124
|
this.moveNode(r, a), d && r.subGrid ? r.subGrid.onResize(this.hasAnimationCSS() ? r.w : void 0) : this.resizeToContentCheck(d, r), delete r._orig;
|
|
3125
3125
|
}
|
|
3126
|
-
(a || l) && this._writeAttr(i, r), u && this.prepareDragDrop(r.el),
|
|
3126
|
+
(a || l) && this._writeAttr(i, r), u && this.prepareDragDrop(r.el), T.updateCB && T.updateCB(r);
|
|
3127
3127
|
}), this;
|
|
3128
3128
|
}
|
|
3129
3129
|
moveNode(e, t) {
|
|
@@ -3162,7 +3162,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3162
3162
|
if (!r)
|
|
3163
3163
|
return;
|
|
3164
3164
|
let s = t.h ? t.h * r : e.clientHeight, o;
|
|
3165
|
-
if (t.resizeToContentParent && (o = e.querySelector(t.resizeToContentParent)), o || (o = e.querySelector(
|
|
3165
|
+
if (t.resizeToContentParent && (o = e.querySelector(t.resizeToContentParent)), o || (o = e.querySelector(T.resizeToContentParent)), !o)
|
|
3166
3166
|
return;
|
|
3167
3167
|
const a = e.clientHeight - o.clientHeight, l = t.h ? t.h * r - a : o.clientHeight;
|
|
3168
3168
|
let u;
|
|
@@ -3176,7 +3176,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3176
3176
|
{
|
|
3177
3177
|
const x = o.firstElementChild;
|
|
3178
3178
|
if (!x) {
|
|
3179
|
-
console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${
|
|
3179
|
+
console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${T.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
|
|
3180
3180
|
return;
|
|
3181
3181
|
}
|
|
3182
3182
|
u = x.getBoundingClientRect().height || l;
|
|
@@ -3191,7 +3191,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3191
3191
|
}
|
|
3192
3192
|
/** call the user resize (so they can do extra work) else our build in version */
|
|
3193
3193
|
resizeToContentCBCheck(e) {
|
|
3194
|
-
|
|
3194
|
+
T.resizeToContentCB ? T.resizeToContentCB(e) : this.resizeToContent(e);
|
|
3195
3195
|
}
|
|
3196
3196
|
/**
|
|
3197
3197
|
* Rotate widgets by swapping their width and height. This is typically called when the user presses 'r' during dragging.
|
|
@@ -3209,7 +3209,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3209
3209
|
* grid.rotate(widget, { left: 50, top: 30 });
|
|
3210
3210
|
*/
|
|
3211
3211
|
rotate(e, t) {
|
|
3212
|
-
return
|
|
3212
|
+
return T.getElements(e).forEach((i) => {
|
|
3213
3213
|
const r = i.gridstackNode;
|
|
3214
3214
|
if (!p.canBeRotated(r))
|
|
3215
3215
|
return;
|
|
@@ -3434,7 +3434,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3434
3434
|
}
|
|
3435
3435
|
/** @internal */
|
|
3436
3436
|
static getGridElement(e) {
|
|
3437
|
-
return
|
|
3437
|
+
return T.getElement(e);
|
|
3438
3438
|
}
|
|
3439
3439
|
/** @internal */
|
|
3440
3440
|
static getGridElements(e) {
|
|
@@ -3500,7 +3500,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3500
3500
|
* grid.movable('#fixed-widget', false);
|
|
3501
3501
|
*/
|
|
3502
3502
|
movable(e, t) {
|
|
3503
|
-
return this.opts.staticGrid ? this : (
|
|
3503
|
+
return this.opts.staticGrid ? this : (T.getElements(e).forEach((i) => {
|
|
3504
3504
|
const r = i.gridstackNode;
|
|
3505
3505
|
r && (t ? delete r.noMove : r.noMove = !0, this.prepareDragDrop(r.el));
|
|
3506
3506
|
}), this);
|
|
@@ -3521,7 +3521,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3521
3521
|
* grid.resizable('#fixed-size-widget', false);
|
|
3522
3522
|
*/
|
|
3523
3523
|
resizable(e, t) {
|
|
3524
|
-
return this.opts.staticGrid ? this : (
|
|
3524
|
+
return this.opts.staticGrid ? this : (T.getElements(e).forEach((i) => {
|
|
3525
3525
|
const r = i.gridstackNode;
|
|
3526
3526
|
r && (t ? delete r.noResize : r.noResize = !0, this.prepareDragDrop(r.el));
|
|
3527
3527
|
}), this);
|
|
@@ -3626,7 +3626,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3626
3626
|
cancelDrag() {
|
|
3627
3627
|
var t;
|
|
3628
3628
|
const e = (t = this._placeholder) == null ? void 0 : t.gridstackNode;
|
|
3629
|
-
e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove &&
|
|
3629
|
+
e && (e._isExternal ? (e._isAboutToRemove = !0, this.engine.removeNode(e)) : e._isAboutToRemove && T._itemRemoving(e.el, !1), this.engine.restoreInitial());
|
|
3630
3630
|
}
|
|
3631
3631
|
/** @internal removes any drag&drop present (called during destroy) */
|
|
3632
3632
|
_removeDD(e) {
|
|
@@ -3708,7 +3708,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3708
3708
|
a.grid || (a.el || (a = { ...a }), a._isExternal = !0, o.gridstackNode = a);
|
|
3709
3709
|
const l = a.w || Math.round(o.offsetWidth / t) || 1, u = a.h || Math.round(o.offsetHeight / e) || 1;
|
|
3710
3710
|
return a.grid && a.grid !== this ? (s._gridstackNodeOrig || (s._gridstackNodeOrig = a), s.gridstackNode = a = { ...a, w: l, h: u, grid: this }, delete a.x, delete a.y, this.engine.cleanupNode(a).nodeBoundFix(a), a._initDD = a._isExternal = // DOM needs to be re-parented on a drop
|
|
3711
|
-
a._temporaryRemoved = !0) : (a.w = l, a.h = u, a._temporaryRemoved = !0),
|
|
3711
|
+
a._temporaryRemoved = !0) : (a.w = l, a.h = u, a._temporaryRemoved = !0), T._itemRemoving(a.el, !1), Q.on(s, "drag", i), i(r, s, o), !1;
|
|
3712
3712
|
}).on(this.el, "dropout", (r, s, o) => {
|
|
3713
3713
|
const a = (o == null ? void 0 : o.gridstackNode) || s.gridstackNode;
|
|
3714
3714
|
return a && (!a.grid || a.grid === this) && (this._leave(s, o), this._isTemp && this.removeAsSubGrid(a)), !1;
|
|
@@ -3727,7 +3727,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3727
3727
|
if (!a || (l && (this.engine.cleanupNode(a), a.grid = this), (h = a.grid) == null || delete h._isTemp, Q.off(s, "drag"), o !== s ? (o.remove(), s = o) : s.remove(), this._removeDD(s), !l))
|
|
3728
3728
|
return !1;
|
|
3729
3729
|
const d = (x = (f = a.subGrid) == null ? void 0 : f.el) == null ? void 0 : x.gridstack;
|
|
3730
|
-
return p.copyPos(a, this._readAttr(this.placeholder)), p.removePositioningStyles(s), u && (a.content || a.subGridOpts ||
|
|
3730
|
+
return p.copyPos(a, this._readAttr(this.placeholder)), p.removePositioningStyles(s), u && (a.content || a.subGridOpts || T.addRemoveCB) ? (delete a.el, s = this.addWidget(a)) : (this._prepareElement(s, !0, a), this.el.appendChild(s), this.resizeToContentCheck(!1, a), d && (d.parentGridNode = a), this._updateContainerHeight()), this.engine.addedNodes.push(a), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...r, type: "dropped" }, c && c.grid ? c : void 0, a), !1;
|
|
3731
3731
|
}), this;
|
|
3732
3732
|
}
|
|
3733
3733
|
/** @internal mark item for removal */
|
|
@@ -3742,7 +3742,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3742
3742
|
if (typeof this.opts.removable != "string")
|
|
3743
3743
|
return this;
|
|
3744
3744
|
const e = document.querySelector(this.opts.removable);
|
|
3745
|
-
return e ? (!this.opts.staticGrid && !Q.isDroppable(e) && Q.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) =>
|
|
3745
|
+
return e ? (!this.opts.staticGrid && !Q.isDroppable(e) && Q.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => T._itemRemoving(i, !0)).on(e, "dropout", (t, i) => T._itemRemoving(i, !1)), this) : this;
|
|
3746
3746
|
}
|
|
3747
3747
|
/**
|
|
3748
3748
|
* prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
|
|
@@ -3864,31 +3864,31 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
|
|
|
3864
3864
|
return;
|
|
3865
3865
|
i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
|
|
3866
3866
|
const r = i._sidebarOrig;
|
|
3867
|
-
i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = r, this.opts.removable === !0 &&
|
|
3867
|
+
i._isExternal && this.engine.cleanupNode(i), i._sidebarOrig = r, this.opts.removable === !0 && T._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial();
|
|
3868
3868
|
}
|
|
3869
3869
|
// legacy method removed
|
|
3870
3870
|
commit() {
|
|
3871
3871
|
return xo(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
|
|
3874
|
+
T.renderCB = (n, e) => {
|
|
3875
3875
|
n && (e != null && e.content) && (n.textContent = e.content);
|
|
3876
3876
|
};
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
const
|
|
3877
|
+
T.resizeToContentParent = ".grid-stack-item-content";
|
|
3878
|
+
T.Utils = p;
|
|
3879
|
+
T.Engine = Se;
|
|
3880
|
+
T.GDRev = "12.3.2";
|
|
3881
|
+
const Tt = /* @__PURE__ */ new WeakMap();
|
|
3882
3882
|
function Eo({ children: n }) {
|
|
3883
3883
|
const { _gridStack: { value: e, set: t }, options: i } = Kn(), r = I(/* @__PURE__ */ new Map()), s = I(null), o = I(i), a = K((c, d) => {
|
|
3884
3884
|
if (d.id && d.grid) {
|
|
3885
|
-
let h =
|
|
3886
|
-
h || (h = /* @__PURE__ */ new Map(),
|
|
3885
|
+
let h = Tt.get(d.grid);
|
|
3886
|
+
h || (h = /* @__PURE__ */ new Map(), Tt.set(d.grid, h)), h.set(d.id, c), r.current.set(d.id, c);
|
|
3887
3887
|
}
|
|
3888
3888
|
}, []), l = K(() => {
|
|
3889
3889
|
if (s.current) {
|
|
3890
|
-
|
|
3891
|
-
const c =
|
|
3890
|
+
T.renderCB = a;
|
|
3891
|
+
const c = T.init(o.current, s.current);
|
|
3892
3892
|
return c && o.current.handle && c.opts && (c.opts.handle = o.current.handle), c;
|
|
3893
3893
|
}
|
|
3894
3894
|
return null;
|
|
@@ -3899,7 +3899,7 @@ function Eo({ children: n }) {
|
|
|
3899
3899
|
return yi(() => {
|
|
3900
3900
|
if (!u(i, o.current) && e)
|
|
3901
3901
|
try {
|
|
3902
|
-
e.removeAll(!1), e.destroy(!1), r.current.clear(),
|
|
3902
|
+
e.removeAll(!1), e.destroy(!1), r.current.clear(), Tt.delete(e), o.current = i, t(null);
|
|
3903
3903
|
} catch (c) {
|
|
3904
3904
|
console.error("Error destroying gridstack", c);
|
|
3905
3905
|
}
|
|
@@ -3915,7 +3915,7 @@ function Eo({ children: n }) {
|
|
|
3915
3915
|
value: B(() => ({
|
|
3916
3916
|
getWidgetContainer: (c) => {
|
|
3917
3917
|
if (e) {
|
|
3918
|
-
const d =
|
|
3918
|
+
const d = Tt.get(e);
|
|
3919
3919
|
if (d != null && d.has(c))
|
|
3920
3920
|
return d.get(c) || null;
|
|
3921
3921
|
}
|
|
@@ -4042,7 +4042,7 @@ const Do = (n, e, t) => g("div", {
|
|
|
4042
4042
|
}
|
|
4043
4043
|
return typeof y.content == "function" ? null : y.content;
|
|
4044
4044
|
}, u = (y, b, D) => y.map((E) => {
|
|
4045
|
-
const
|
|
4045
|
+
const k = l(E, D), A = {
|
|
4046
4046
|
id: E.id,
|
|
4047
4047
|
h: E.h ?? 1,
|
|
4048
4048
|
w: E.w ?? 1,
|
|
@@ -4051,8 +4051,8 @@ const Do = (n, e, t) => g("div", {
|
|
|
4051
4051
|
noResize: !b,
|
|
4052
4052
|
locked: E.locked,
|
|
4053
4053
|
meta: E.meta,
|
|
4054
|
-
_originalContent:
|
|
4055
|
-
content: o(
|
|
4054
|
+
_originalContent: k,
|
|
4055
|
+
content: o(k, E.meta, b)
|
|
4056
4056
|
};
|
|
4057
4057
|
return E.x !== void 0 && (A.x = E.x), E.y !== void 0 && (A.y = E.y), A;
|
|
4058
4058
|
}), [c, d] = W(u(n, e)), h = I(e), f = I(n), x = I(!1), v = I(/* @__PURE__ */ new Map()), w = I(n);
|
|
@@ -4093,9 +4093,9 @@ const Do = (n, e, t) => g("div", {
|
|
|
4093
4093
|
E.set(m.id, R(_, O)), O ? v.current.set(m.id, O) : v.current.delete(m.id);
|
|
4094
4094
|
}
|
|
4095
4095
|
});
|
|
4096
|
-
const
|
|
4096
|
+
const k = new Set(n.map((m) => m.id));
|
|
4097
4097
|
v.current.forEach((m, _) => {
|
|
4098
|
-
|
|
4098
|
+
k.has(_) || v.current.delete(_);
|
|
4099
4099
|
});
|
|
4100
4100
|
const A = Array.from(E.values()).some((m) => m) || D;
|
|
4101
4101
|
y && !b && !A ? (x.current = !0, d((m) => m.map((_) => {
|
|
@@ -4232,7 +4232,7 @@ const hi = Di({
|
|
|
4232
4232
|
"positive-strong": "p",
|
|
4233
4233
|
"info-strong": "p",
|
|
4234
4234
|
code: "code"
|
|
4235
|
-
},
|
|
4235
|
+
}, Ti = le(({ content: n, variant: e, align: t, className: i, as: r, ellipsis: s, noEllipsisTooltip: o, markdown: a, ...l }, u) => {
|
|
4236
4236
|
const c = r ?? Ao[e ?? "body"];
|
|
4237
4237
|
if (s !== void 0)
|
|
4238
4238
|
return g(Gr, {
|
|
@@ -4271,8 +4271,8 @@ const hi = Di({
|
|
|
4271
4271
|
ref: u
|
|
4272
4272
|
}, n);
|
|
4273
4273
|
});
|
|
4274
|
-
|
|
4275
|
-
const Jn = le((n, e) => g(
|
|
4274
|
+
Ti.displayName = "Text";
|
|
4275
|
+
const Jn = le((n, e) => g(Ti, {
|
|
4276
4276
|
ref: e,
|
|
4277
4277
|
markdown: n.markdown ?? !0,
|
|
4278
4278
|
...n
|
|
@@ -4367,7 +4367,7 @@ const wc = [
|
|
|
4367
4367
|
children: a
|
|
4368
4368
|
})]
|
|
4369
4369
|
});
|
|
4370
|
-
},
|
|
4370
|
+
}, To = () => M("div", {
|
|
4371
4371
|
className: "relative flex h-full w-full cursor-progress flex-col rounded-xl border border-solid border-f1-border-secondary bg-f1-background",
|
|
4372
4372
|
children: [g("div", {
|
|
4373
4373
|
className: "flex h-12 w-full items-center px-4",
|
|
@@ -4392,7 +4392,7 @@ const wc = [
|
|
|
4392
4392
|
})]
|
|
4393
4393
|
});
|
|
4394
4394
|
Zn.displayName = "F0Widget";
|
|
4395
|
-
const
|
|
4395
|
+
const ko = jr(Zn, To), zo = ({ children: n, title: e, draggable: t = !1, actions: i, aiButton: r }) => g(ko, {
|
|
4396
4396
|
title: e,
|
|
4397
4397
|
draggable: t,
|
|
4398
4398
|
actions: i,
|
|
@@ -4489,7 +4489,7 @@ const Ho = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4489
4489
|
`${n}: Children components must inherit from PageLayoutBlock or PageLayoutGroup. Found:`,
|
|
4490
4490
|
r
|
|
4491
4491
|
);
|
|
4492
|
-
},
|
|
4492
|
+
}, ki = le(({ children: n, onSort: e, ...t }, i) => {
|
|
4493
4493
|
er("GroupLinear", n, ["block"]);
|
|
4494
4494
|
const [r, s] = W(Lt.toArray(n));
|
|
4495
4495
|
return H(() => {
|
|
@@ -4504,8 +4504,8 @@ const Ho = ({ title: n = "", description: e, titleLevel: t = "h2", children: i,
|
|
|
4504
4504
|
}, a))
|
|
4505
4505
|
});
|
|
4506
4506
|
});
|
|
4507
|
-
|
|
4508
|
-
|
|
4507
|
+
ki.displayName = "GroupLinear";
|
|
4508
|
+
ki.__isPageLayoutGroup = !0;
|
|
4509
4509
|
function Go() {
|
|
4510
4510
|
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
4511
4511
|
e[t] = arguments[t];
|
|
@@ -5476,8 +5476,8 @@ class Li {
|
|
|
5476
5476
|
} = ur(v), D = xa(v), E = {
|
|
5477
5477
|
x: Math.min(w === F.Right ? D.right - D.width / 2 : D.right, Math.max(w === F.Right ? D.left : D.left + D.width / 2, d.x)),
|
|
5478
5478
|
y: Math.min(w === F.Down ? D.bottom - D.height / 2 : D.bottom, Math.max(w === F.Down ? D.top : D.top + D.height / 2, d.y))
|
|
5479
|
-
},
|
|
5480
|
-
if (
|
|
5479
|
+
}, k = w === F.Right && !N || w === F.Left && !C, A = w === F.Down && !R || w === F.Up && !S;
|
|
5480
|
+
if (k && E.x !== d.x) {
|
|
5481
5481
|
const m = v.scrollLeft + h.x, _ = w === F.Right && m <= y.x || w === F.Left && m >= b.x;
|
|
5482
5482
|
if (_ && !h.y) {
|
|
5483
5483
|
v.scrollTo({
|
|
@@ -5784,7 +5784,7 @@ var Kt;
|
|
|
5784
5784
|
(function(n) {
|
|
5785
5785
|
n[n.TreeOrder = 0] = "TreeOrder", n[n.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
5786
5786
|
})(Kt || (Kt = {}));
|
|
5787
|
-
function
|
|
5787
|
+
function Ta(n) {
|
|
5788
5788
|
let {
|
|
5789
5789
|
acceleration: e,
|
|
5790
5790
|
activator: t = ut.Pointer,
|
|
@@ -5840,13 +5840,13 @@ function ka(n) {
|
|
|
5840
5840
|
if (!E)
|
|
5841
5841
|
continue;
|
|
5842
5842
|
const {
|
|
5843
|
-
direction:
|
|
5843
|
+
direction: k,
|
|
5844
5844
|
speed: A
|
|
5845
5845
|
} = ba(b, E, N, e, h);
|
|
5846
5846
|
for (const m of ["x", "y"])
|
|
5847
|
-
f[m][
|
|
5847
|
+
f[m][k[m]] || (A[m] = 0, k[m] = 0);
|
|
5848
5848
|
if (A.x > 0 || A.y > 0) {
|
|
5849
|
-
v(), C.current = b, x(R, o), w.current = A, S.current =
|
|
5849
|
+
v(), C.current = b, x(R, o), w.current = A, S.current = k;
|
|
5850
5850
|
return;
|
|
5851
5851
|
}
|
|
5852
5852
|
}
|
|
@@ -5879,7 +5879,7 @@ function ka(n) {
|
|
|
5879
5879
|
]
|
|
5880
5880
|
);
|
|
5881
5881
|
}
|
|
5882
|
-
const
|
|
5882
|
+
const ka = {
|
|
5883
5883
|
x: {
|
|
5884
5884
|
[q.Backward]: !1,
|
|
5885
5885
|
[q.Forward]: !1
|
|
@@ -5897,7 +5897,7 @@ function za(n) {
|
|
|
5897
5897
|
const i = $t(e);
|
|
5898
5898
|
return wt((r) => {
|
|
5899
5899
|
if (t || !i || !r)
|
|
5900
|
-
return
|
|
5900
|
+
return ka;
|
|
5901
5901
|
const s = {
|
|
5902
5902
|
x: Math.sign(e.x - i.x),
|
|
5903
5903
|
y: Math.sign(e.y - i.y)
|
|
@@ -6555,7 +6555,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6555
6555
|
draggable: {
|
|
6556
6556
|
active: D,
|
|
6557
6557
|
nodes: E,
|
|
6558
|
-
translate:
|
|
6558
|
+
translate: k
|
|
6559
6559
|
},
|
|
6560
6560
|
droppable: {
|
|
6561
6561
|
containers: A
|
|
@@ -6577,7 +6577,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6577
6577
|
measuringScheduled: it
|
|
6578
6578
|
} = La(Dt, {
|
|
6579
6579
|
dragging: b,
|
|
6580
|
-
dependencies: [
|
|
6580
|
+
dependencies: [k.x, k.y],
|
|
6581
6581
|
config: ie.droppable
|
|
6582
6582
|
}), ce = Pa(E, D), Rt = B(() => U ? jt(U) : null, [U]), Oe = Fr(), _e = Ia(ce, ie.draggable.measure);
|
|
6583
6583
|
el({
|
|
@@ -6604,8 +6604,8 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6604
6604
|
measure: ie.dragOverlay.measure
|
|
6605
6605
|
}), Ge = (i = Ee.nodeRef.current) != null ? i : ce, $e = b ? (r = Ee.rect) != null ? r : $ : null, Gi = !!(Ee.nodeRef.current && Ee.rect), $i = Fa(Gi ? null : $), ai = pr(Ge ? ee(Ge) : null), Ae = Wa(b ? We ?? ce : null), St = Ua(Ae), Nt = br(f, {
|
|
6606
6606
|
transform: {
|
|
6607
|
-
x:
|
|
6608
|
-
y:
|
|
6607
|
+
x: k.x - $i.x,
|
|
6608
|
+
y: k.y - $i.y,
|
|
6609
6609
|
scaleX: 1,
|
|
6610
6610
|
scaleY: 1
|
|
6611
6611
|
},
|
|
@@ -6619,17 +6619,17 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6619
6619
|
scrollableAncestors: Ae,
|
|
6620
6620
|
scrollableAncestorRects: St,
|
|
6621
6621
|
windowRect: ai
|
|
6622
|
-
}), ji = Rt ? qe(Rt,
|
|
6622
|
+
}), ji = Rt ? qe(Rt, k) : null, Ui = Ga(Ae), zr = gn(Ui), Pr = gn(Ui, [$]), je = qe(Nt, zr), Ue = $e ? ha($e, Nt) : null, rt = O && Ue ? d({
|
|
6623
6623
|
active: O,
|
|
6624
6624
|
collisionRect: Ue,
|
|
6625
6625
|
droppableRects: Ce,
|
|
6626
6626
|
droppableContainers: Dt,
|
|
6627
6627
|
pointerCoordinates: ji
|
|
6628
|
-
}) : null, Ki = rr(rt, "id"), [
|
|
6628
|
+
}) : null, Ki = rr(rt, "id"), [Te, Xi] = W(null), Mr = Gi ? Nt : qe(Nt, Pr), Lr = da(Mr, (s = Te == null ? void 0 : Te.rect) != null ? s : null, $), li = I(null), Yi = K(
|
|
6629
6629
|
(Z, re) => {
|
|
6630
6630
|
let {
|
|
6631
6631
|
sensor: se,
|
|
6632
|
-
options:
|
|
6632
|
+
options: ke
|
|
6633
6633
|
} = re;
|
|
6634
6634
|
if (P.current == null)
|
|
6635
6635
|
return;
|
|
@@ -6640,7 +6640,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6640
6640
|
active: P.current,
|
|
6641
6641
|
activeNode: de,
|
|
6642
6642
|
event: oe,
|
|
6643
|
-
options:
|
|
6643
|
+
options: ke,
|
|
6644
6644
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
6645
6645
|
// otherwise they are frozen in time with the stale arguments
|
|
6646
6646
|
context: ve,
|
|
@@ -6750,8 +6750,8 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6750
6750
|
},
|
|
6751
6751
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6752
6752
|
[E]
|
|
6753
|
-
), Ir = K((Z, re) => (se,
|
|
6754
|
-
const de = se.nativeEvent, oe = E.get(
|
|
6753
|
+
), Ir = K((Z, re) => (se, ke) => {
|
|
6754
|
+
const de = se.nativeEvent, oe = E.get(ke);
|
|
6755
6755
|
if (
|
|
6756
6756
|
// Another sensor is already instantiating
|
|
6757
6757
|
P.current !== null || // No active draggable
|
|
@@ -6764,7 +6764,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6764
6764
|
};
|
|
6765
6765
|
Z(se, re.options, ye) === !0 && (de.dndKit = {
|
|
6766
6766
|
capturedBy: re.sensor
|
|
6767
|
-
}, P.current =
|
|
6767
|
+
}, P.current = ke, Yi(se, re));
|
|
6768
6768
|
}, [E, Yi]), qi = Ma(c, Ir);
|
|
6769
6769
|
$a(c), ge(() => {
|
|
6770
6770
|
$ && R === Le.Initializing && y(Le.Initialized);
|
|
@@ -6775,7 +6775,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6775
6775
|
} = G.current, {
|
|
6776
6776
|
active: re,
|
|
6777
6777
|
activatorEvent: se,
|
|
6778
|
-
collisions:
|
|
6778
|
+
collisions: ke,
|
|
6779
6779
|
over: de
|
|
6780
6780
|
} = ve.current;
|
|
6781
6781
|
if (!re || !se)
|
|
@@ -6783,7 +6783,7 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6783
6783
|
const oe = {
|
|
6784
6784
|
active: re,
|
|
6785
6785
|
activatorEvent: se,
|
|
6786
|
-
collisions:
|
|
6786
|
+
collisions: ke,
|
|
6787
6787
|
delta: {
|
|
6788
6788
|
x: je.x,
|
|
6789
6789
|
y: je.y
|
|
@@ -6805,14 +6805,14 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6805
6805
|
active: Z,
|
|
6806
6806
|
activatorEvent: re,
|
|
6807
6807
|
collisions: se,
|
|
6808
|
-
droppableContainers:
|
|
6808
|
+
droppableContainers: ke,
|
|
6809
6809
|
scrollAdjustedTranslate: de
|
|
6810
6810
|
} = ve.current;
|
|
6811
6811
|
if (!Z || P.current == null || !re || !de)
|
|
6812
6812
|
return;
|
|
6813
6813
|
const {
|
|
6814
6814
|
onDragOver: oe
|
|
6815
|
-
} = G.current, ye =
|
|
6815
|
+
} = G.current, ye = ke.get(Ki), Ke = ye && ye.rect.current ? {
|
|
6816
6816
|
id: ye.id,
|
|
6817
6817
|
rect: ye.rect.current,
|
|
6818
6818
|
data: ye.data,
|
|
@@ -6848,16 +6848,16 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6848
6848
|
draggingNode: Ge,
|
|
6849
6849
|
draggingNodeRect: $e,
|
|
6850
6850
|
droppableContainers: A,
|
|
6851
|
-
over:
|
|
6851
|
+
over: Te,
|
|
6852
6852
|
scrollableAncestors: Ae,
|
|
6853
6853
|
scrollAdjustedTranslate: je
|
|
6854
6854
|
}, _.current = {
|
|
6855
6855
|
initial: $e,
|
|
6856
6856
|
translated: Ue
|
|
6857
6857
|
};
|
|
6858
|
-
}, [O, ce, rt, Ue, E, Ge, $e, Ce, A,
|
|
6858
|
+
}, [O, ce, rt, Ue, E, Ge, $e, Ce, A, Te, Ae, je]), Ta({
|
|
6859
6859
|
...Oe,
|
|
6860
|
-
delta:
|
|
6860
|
+
delta: k,
|
|
6861
6861
|
draggingRect: Ue,
|
|
6862
6862
|
pointerCoordinates: ji,
|
|
6863
6863
|
scrollableAncestors: Ae,
|
|
@@ -6874,14 +6874,14 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6874
6874
|
draggableNodes: E,
|
|
6875
6875
|
droppableContainers: A,
|
|
6876
6876
|
droppableRects: Ce,
|
|
6877
|
-
over:
|
|
6877
|
+
over: Te,
|
|
6878
6878
|
measureDroppableContainers: Be,
|
|
6879
6879
|
scrollableAncestors: Ae,
|
|
6880
6880
|
scrollableAncestorRects: St,
|
|
6881
6881
|
measuringConfiguration: ie,
|
|
6882
6882
|
measuringScheduled: it,
|
|
6883
6883
|
windowRect: ai
|
|
6884
|
-
}), [O, ce, $, U, rt, nt, Ee, E, A, Ce,
|
|
6884
|
+
}), [O, ce, $, U, rt, nt, Ee, E, A, Ce, Te, Be, Ae, St, ie, it, ai]), Br = B(() => ({
|
|
6885
6885
|
activatorEvent: U,
|
|
6886
6886
|
activators: qi,
|
|
6887
6887
|
active: O,
|
|
@@ -6891,9 +6891,9 @@ const tl = /* @__PURE__ */ no(function(e) {
|
|
|
6891
6891
|
},
|
|
6892
6892
|
dispatch: S,
|
|
6893
6893
|
draggableNodes: E,
|
|
6894
|
-
over:
|
|
6894
|
+
over: Te,
|
|
6895
6895
|
measureDroppableContainers: Be
|
|
6896
|
-
}), [U, qi, O, $, S, ne, E,
|
|
6896
|
+
}), [U, qi, O, $, S, ne, E, Te, Be]);
|
|
6897
6897
|
return L.createElement(nr.Provider, {
|
|
6898
6898
|
value: C
|
|
6899
6899
|
}, L.createElement(_t.Provider, {
|
|
@@ -6946,8 +6946,8 @@ function rl(n) {
|
|
|
6946
6946
|
activatorNode: R,
|
|
6947
6947
|
data: D
|
|
6948
6948
|
}), () => {
|
|
6949
|
-
const
|
|
6950
|
-
|
|
6949
|
+
const k = d.get(e);
|
|
6950
|
+
k && k.key === s && d.delete(e);
|
|
6951
6951
|
}),
|
|
6952
6952
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6953
6953
|
[d, e]
|
|
@@ -7016,8 +7016,8 @@ function al(n) {
|
|
|
7016
7016
|
), C = ri({
|
|
7017
7017
|
callback: N,
|
|
7018
7018
|
disabled: x || !o
|
|
7019
|
-
}), R = K((E,
|
|
7020
|
-
C && (
|
|
7019
|
+
}), R = K((E, k) => {
|
|
7020
|
+
C && (k && (C.unobserve(k), d.current = !1), E && C.observe(E));
|
|
7021
7021
|
}, [C]), [y, b] = Gt(R), D = vt(e);
|
|
7022
7022
|
return H(() => {
|
|
7023
7023
|
!C || !y.current || (C.disconnect(), d.current = !1, C.observe(y.current));
|
|
@@ -7316,12 +7316,12 @@ const xl = /* @__PURE__ */ L.memo((n) => {
|
|
|
7316
7316
|
scrollableAncestorRects: R,
|
|
7317
7317
|
transform: b,
|
|
7318
7318
|
windowRect: y
|
|
7319
|
-
}),
|
|
7319
|
+
}), k = Bi(h), A = vl({
|
|
7320
7320
|
config: i,
|
|
7321
7321
|
draggableNodes: x,
|
|
7322
7322
|
droppableContainers: v,
|
|
7323
7323
|
measuringConfiguration: N
|
|
7324
|
-
}), m =
|
|
7324
|
+
}), m = k ? w.setRef : void 0;
|
|
7325
7325
|
return L.createElement(dl, null, L.createElement(ll, {
|
|
7326
7326
|
animation: A
|
|
7327
7327
|
}, d && D ? L.createElement(fl, {
|
|
@@ -7333,7 +7333,7 @@ const xl = /* @__PURE__ */ L.memo((n) => {
|
|
|
7333
7333
|
adjustScale: e,
|
|
7334
7334
|
className: l,
|
|
7335
7335
|
transition: s,
|
|
7336
|
-
rect:
|
|
7336
|
+
rect: k,
|
|
7337
7337
|
style: {
|
|
7338
7338
|
zIndex: u,
|
|
7339
7339
|
...r
|
|
@@ -7351,7 +7351,7 @@ function wl(n, e) {
|
|
|
7351
7351
|
return s && (t[r] = s), t;
|
|
7352
7352
|
}, Array(n.length));
|
|
7353
7353
|
}
|
|
7354
|
-
function
|
|
7354
|
+
function kt(n) {
|
|
7355
7355
|
return n !== null && n >= 0;
|
|
7356
7356
|
}
|
|
7357
7357
|
function Cl(n, e) {
|
|
@@ -7496,7 +7496,7 @@ function Al(n) {
|
|
|
7496
7496
|
s && o(null);
|
|
7497
7497
|
}, [s]), s;
|
|
7498
7498
|
}
|
|
7499
|
-
function
|
|
7499
|
+
function Tl(n) {
|
|
7500
7500
|
let {
|
|
7501
7501
|
animateLayoutChanges: e = Rl,
|
|
7502
7502
|
attributes: t,
|
|
@@ -7518,7 +7518,7 @@ function kl(n) {
|
|
|
7518
7518
|
overIndex: w,
|
|
7519
7519
|
useDragOverlay: S,
|
|
7520
7520
|
strategy: N
|
|
7521
|
-
} = we(_r), C =
|
|
7521
|
+
} = we(_r), C = kl(i, f), R = c.indexOf(o), y = B(() => ({
|
|
7522
7522
|
sortable: {
|
|
7523
7523
|
containerId: d,
|
|
7524
7524
|
index: R,
|
|
@@ -7528,7 +7528,7 @@ function kl(n) {
|
|
|
7528
7528
|
}), [d, r, R, c]), b = B(() => c.slice(c.indexOf(o)), [c, o]), {
|
|
7529
7529
|
rect: D,
|
|
7530
7530
|
node: E,
|
|
7531
|
-
isOver:
|
|
7531
|
+
isOver: k,
|
|
7532
7532
|
setNodeRef: A
|
|
7533
7533
|
} = al({
|
|
7534
7534
|
id: o,
|
|
@@ -7557,13 +7557,13 @@ function kl(n) {
|
|
|
7557
7557
|
...t
|
|
7558
7558
|
},
|
|
7559
7559
|
disabled: C.draggable
|
|
7560
|
-
}), Dt = Go(A, V), ie = !!m, Ce = ie && !x &&
|
|
7560
|
+
}), Dt = Go(A, V), ie = !!m, Ce = ie && !x && kt(h) && kt(w), Be = !S && U, it = Be && Ce ? ne : null, Rt = Ce ? it ?? (a ?? N)({
|
|
7561
7561
|
rects: v,
|
|
7562
7562
|
activeNodeRect: O,
|
|
7563
7563
|
activeIndex: h,
|
|
7564
7564
|
overIndex: w,
|
|
7565
7565
|
index: R
|
|
7566
|
-
}) : null, Oe =
|
|
7566
|
+
}) : null, Oe = kt(h) && kt(w) ? s({
|
|
7567
7567
|
id: o,
|
|
7568
7568
|
items: c,
|
|
7569
7569
|
activeIndex: h,
|
|
@@ -7614,7 +7614,7 @@ function kl(n) {
|
|
|
7614
7614
|
index: R,
|
|
7615
7615
|
newIndex: Oe,
|
|
7616
7616
|
items: c,
|
|
7617
|
-
isOver:
|
|
7617
|
+
isOver: k,
|
|
7618
7618
|
isSorting: ie,
|
|
7619
7619
|
isDragging: U,
|
|
7620
7620
|
listeners: X,
|
|
@@ -7642,7 +7642,7 @@ function kl(n) {
|
|
|
7642
7642
|
});
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
|
-
function
|
|
7645
|
+
function kl(n, e) {
|
|
7646
7646
|
var t, i;
|
|
7647
7647
|
return typeof n == "boolean" ? {
|
|
7648
7648
|
draggable: n,
|
|
@@ -7725,7 +7725,7 @@ function Ml(n, e) {
|
|
|
7725
7725
|
return !Xt(n) || !Xt(e) || !Dr(n, e) ? !1 : n.data.current.sortable.index < e.data.current.sortable.index;
|
|
7726
7726
|
}
|
|
7727
7727
|
const yn = ({ id: n, children: e }) => {
|
|
7728
|
-
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } =
|
|
7728
|
+
const { attributes: t, listeners: i, setNodeRef: r, transform: s, transition: o } = Tl({
|
|
7729
7729
|
id: n
|
|
7730
7730
|
}), a = {
|
|
7731
7731
|
transform: He.Translate.toString(s),
|
|
@@ -7810,7 +7810,7 @@ const Ll = le(function({ children: e, aside: t, header: i, variant: r = "main-as
|
|
|
7810
7810
|
Page: Re("Page", Ll),
|
|
7811
7811
|
Block: Re("Block", Qt),
|
|
7812
7812
|
BlockContent: Re("BlockContent", Bo),
|
|
7813
|
-
Group: Re("Group",
|
|
7813
|
+
Group: Re("Group", ki),
|
|
7814
7814
|
GroupGrid: Re("GroupGrid", Zt),
|
|
7815
7815
|
GroupMasonry: Re("GroupMasonry", Wi)
|
|
7816
7816
|
}, Ec = me({
|
|
@@ -8289,7 +8289,7 @@ Ie(Et, "getComposedData", function(n) {
|
|
|
8289
8289
|
dataKey: f,
|
|
8290
8290
|
type: u
|
|
8291
8291
|
});
|
|
8292
|
-
var
|
|
8292
|
+
var k = Ji({
|
|
8293
8293
|
axis: e,
|
|
8294
8294
|
ticks: o,
|
|
8295
8295
|
bandSize: w,
|
|
@@ -8305,9 +8305,9 @@ Ie(Et, "getComposedData", function(n) {
|
|
|
8305
8305
|
dataKey: h
|
|
8306
8306
|
}), m = D !== "-" ? i.scale(D) : v, _ = Math.sqrt(Math.max(m, 0) / Math.PI);
|
|
8307
8307
|
return ue(ue({}, C), {}, {
|
|
8308
|
-
cx:
|
|
8308
|
+
cx: k,
|
|
8309
8309
|
cy: A,
|
|
8310
|
-
x:
|
|
8310
|
+
x: k - _,
|
|
8311
8311
|
y: A - _,
|
|
8312
8312
|
xAxis: e,
|
|
8313
8313
|
yAxis: t,
|
|
@@ -8322,7 +8322,7 @@ Ie(Et, "getComposedData", function(n) {
|
|
|
8322
8322
|
},
|
|
8323
8323
|
tooltipPayload: E,
|
|
8324
8324
|
tooltipPosition: {
|
|
8325
|
-
x:
|
|
8325
|
+
x: k,
|
|
8326
8326
|
y: A
|
|
8327
8327
|
},
|
|
8328
8328
|
payload: C
|
|
@@ -8374,7 +8374,7 @@ const nc = (n) => {
|
|
|
8374
8374
|
}, rc = ({ dataConfig: n, data: e, xAxis: t, yAxis: i = {
|
|
8375
8375
|
hide: !0
|
|
8376
8376
|
}, label: r = !1, hideTooltip: s = !1, hideGrid: o = !1, aspect: a, legend: l, showValueUnderLabel: u = !1, bar: c, line: d, scatter: h, onClick: f }, x) => {
|
|
8377
|
-
var D, E,
|
|
8377
|
+
var D, E, k, A;
|
|
8378
8378
|
const v = us(e), w = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], S = d != null && d.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], N = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], C = [...w, ...S, ...N], R = Math.max(...v.flatMap((m) => C.map((_) => hs(i != null && i.tickFormatter ? i.tickFormatter(`${m[_]}`) : `${m[_]}`)))), y = [c, d, h].filter((m) => (m == null ? void 0 : m.axisPosition) === "left"), b = [c, d, h].filter((m) => (m == null ? void 0 : m.axisPosition) === "right");
|
|
8379
8379
|
return g(fs, {
|
|
8380
8380
|
config: n,
|
|
@@ -8423,7 +8423,7 @@ const nc = (n) => {
|
|
|
8423
8423
|
yAxisId: "right",
|
|
8424
8424
|
orientation: "right",
|
|
8425
8425
|
tick: !0,
|
|
8426
|
-
width: i.width ?? R + 20 + (y.length > 0 && ((
|
|
8426
|
+
width: i.width ?? R + 20 + (y.length > 0 && ((k = b[0]) != null && k.axisLabel) ? 20 : 0),
|
|
8427
8427
|
hide: i.hide || b.some((m) => m == null ? void 0 : m.hideAxis),
|
|
8428
8428
|
label: (A = b[0]) != null && A.axisLabel ? {
|
|
8429
8429
|
value: b[0].axisLabel,
|
|
@@ -8493,7 +8493,7 @@ const nc = (n) => {
|
|
|
8493
8493
|
})]
|
|
8494
8494
|
})
|
|
8495
8495
|
});
|
|
8496
|
-
}, sc =
|
|
8496
|
+
}, sc = Tn(rc), oc = ({ value: n, max: e = 100, label: t, color: i }, r) => {
|
|
8497
8497
|
const s = i ? ct(i) : ct("categorical-1"), o = n / e * 100;
|
|
8498
8498
|
return M("div", {
|
|
8499
8499
|
className: "flex items-center space-x-2",
|
|
@@ -8514,7 +8514,7 @@ const nc = (n) => {
|
|
|
8514
8514
|
children: t
|
|
8515
8515
|
})]
|
|
8516
8516
|
});
|
|
8517
|
-
}, ac =
|
|
8517
|
+
}, ac = Tn(oc), Sc = me(
|
|
8518
8518
|
{
|
|
8519
8519
|
name: "AreaChart",
|
|
8520
8520
|
type: "info"
|
|
@@ -8538,13 +8538,13 @@ const nc = (n) => {
|
|
|
8538
8538
|
type: "info"
|
|
8539
8539
|
},
|
|
8540
8540
|
Rs
|
|
8541
|
-
),
|
|
8541
|
+
), Tc = me(
|
|
8542
8542
|
{
|
|
8543
8543
|
name: "PieChart",
|
|
8544
8544
|
type: "info"
|
|
8545
8545
|
},
|
|
8546
8546
|
Ss
|
|
8547
|
-
),
|
|
8547
|
+
), kc = me(
|
|
8548
8548
|
{
|
|
8549
8549
|
name: "VerticalBarChart",
|
|
8550
8550
|
type: "info"
|
|
@@ -8564,7 +8564,19 @@ const nc = (n) => {
|
|
|
8564
8564
|
sc
|
|
8565
8565
|
), Mc = Os.filter(
|
|
8566
8566
|
(n) => n !== "ai"
|
|
8567
|
-
), Lc =
|
|
8567
|
+
), Lc = kn, Ic = ["default", "outline", "neutral"], Hc = kn, Bc = ["sm", "md", "lg"], Fc = ["compact", "expanded"], Wc = As, Gc = [
|
|
8568
|
+
"viridian",
|
|
8569
|
+
"malibu",
|
|
8570
|
+
"yellow",
|
|
8571
|
+
"purple",
|
|
8572
|
+
"lilac",
|
|
8573
|
+
"barbie",
|
|
8574
|
+
"smoke",
|
|
8575
|
+
"army",
|
|
8576
|
+
"flubber",
|
|
8577
|
+
"indigo",
|
|
8578
|
+
"camel"
|
|
8579
|
+
], Ei = ({ count: n, list: e }) => {
|
|
8568
8580
|
const [t, i] = W(!1), r = g(Mt, {
|
|
8569
8581
|
label: `+${n}`
|
|
8570
8582
|
});
|
|
@@ -8574,7 +8586,7 @@ const nc = (n) => {
|
|
|
8574
8586
|
children: [g(Pn, {
|
|
8575
8587
|
asChild: !0,
|
|
8576
8588
|
children: g("button", {
|
|
8577
|
-
className:
|
|
8589
|
+
className: Ts("inline-flex flex-shrink-0 items-center"),
|
|
8578
8590
|
children: r
|
|
8579
8591
|
})
|
|
8580
8592
|
}), g(Mn, {
|
|
@@ -8596,9 +8608,9 @@ const nc = (n) => {
|
|
|
8596
8608
|
}) : r;
|
|
8597
8609
|
};
|
|
8598
8610
|
Ei.displayName = "ChipCounter";
|
|
8599
|
-
const
|
|
8611
|
+
const Tr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" }) => {
|
|
8600
8612
|
if (i === "fill")
|
|
8601
|
-
return g(
|
|
8613
|
+
return g(ks, {
|
|
8602
8614
|
items: n,
|
|
8603
8615
|
renderListItem: (l) => g(Mt, {
|
|
8604
8616
|
...l
|
|
@@ -8623,14 +8635,14 @@ const kr = ({ chips: n, max: e = 4, remainingCount: t, layout: i = "compact" })
|
|
|
8623
8635
|
})]
|
|
8624
8636
|
});
|
|
8625
8637
|
};
|
|
8626
|
-
|
|
8627
|
-
const
|
|
8638
|
+
Tr.displayName = "F0ChipList";
|
|
8639
|
+
const $c = Re("F0ChipList", Tr), jc = zs, lc = le((n, e) => g(Ti, {
|
|
8628
8640
|
ref: e,
|
|
8629
8641
|
variant: "heading",
|
|
8630
8642
|
...n
|
|
8631
8643
|
}));
|
|
8632
8644
|
lc.displayName = "F0Heading";
|
|
8633
|
-
const
|
|
8645
|
+
const Uc = Re(
|
|
8634
8646
|
"F0GridStack",
|
|
8635
8647
|
Ai
|
|
8636
8648
|
), cc = ({ benefits: n }) => g("div", {
|
|
@@ -8647,7 +8659,7 @@ const $c = Re(
|
|
|
8647
8659
|
}), g("span", {
|
|
8648
8660
|
children: n
|
|
8649
8661
|
})]
|
|
8650
|
-
}),
|
|
8662
|
+
}), kr = le(({ title: n, image: e, benefits: t, actions: i, withShadow: r = !0, module: s, moduleName: o, tag: a, promoTag: l }, u) => M("div", {
|
|
8651
8663
|
ref: u,
|
|
8652
8664
|
className: j("bg-white flex flex-row rounded-xl border border-f1-border-secondary", r && "shadow-md"),
|
|
8653
8665
|
children: [g("div", {
|
|
@@ -8693,7 +8705,7 @@ const $c = Re(
|
|
|
8693
8705
|
})]
|
|
8694
8706
|
})]
|
|
8695
8707
|
}));
|
|
8696
|
-
|
|
8708
|
+
kr.displayName = "ProductBlankslate";
|
|
8697
8709
|
function uc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalContainer: s }) {
|
|
8698
8710
|
const [o, a] = W(n);
|
|
8699
8711
|
return H(() => {
|
|
@@ -8732,7 +8744,7 @@ function uc({ isOpen: n, onClose: e, title: t, children: i, module: r, portalCon
|
|
|
8732
8744
|
})
|
|
8733
8745
|
});
|
|
8734
8746
|
}
|
|
8735
|
-
function
|
|
8747
|
+
function Kc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessage: s, successMessage: o, loadingState: a, nextSteps: l, closeLabel: u, primaryAction: c, modalTitle: d, modalModule: h, secondaryAction: f, portalContainer: x, tag: v, promoTag: w, showResponseDialog: S = !0 }) {
|
|
8736
8748
|
const [N, C] = W(n), [R, y] = W(null), [b, D] = W(!1), E = async () => {
|
|
8737
8749
|
if (c != null && c.onClick) {
|
|
8738
8750
|
D(!0);
|
|
@@ -8744,19 +8756,19 @@ function jc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8744
8756
|
D(!1);
|
|
8745
8757
|
}
|
|
8746
8758
|
}
|
|
8747
|
-
},
|
|
8759
|
+
}, k = () => {
|
|
8748
8760
|
C(!1), e == null || e();
|
|
8749
8761
|
}, A = b;
|
|
8750
8762
|
return M(Vt, {
|
|
8751
8763
|
children: [g(uc, {
|
|
8752
8764
|
isOpen: N,
|
|
8753
|
-
onClose:
|
|
8765
|
+
onClose: k,
|
|
8754
8766
|
title: d,
|
|
8755
8767
|
module: h,
|
|
8756
8768
|
portalContainer: x,
|
|
8757
8769
|
children: g("div", {
|
|
8758
8770
|
className: "pb-4 pl-4",
|
|
8759
|
-
children: g(
|
|
8771
|
+
children: g(kr, {
|
|
8760
8772
|
title: t,
|
|
8761
8773
|
image: i,
|
|
8762
8774
|
benefits: r,
|
|
@@ -8785,7 +8797,7 @@ function jc({ isOpen: n, onClose: e, title: t, image: i, benefits: r, errorMessa
|
|
|
8785
8797
|
}), R && S && g(Fn, {
|
|
8786
8798
|
open: !0,
|
|
8787
8799
|
onClose: () => {
|
|
8788
|
-
|
|
8800
|
+
k(), y(null);
|
|
8789
8801
|
},
|
|
8790
8802
|
success: R === "success",
|
|
8791
8803
|
errorMessage: s,
|
|
@@ -8897,7 +8909,7 @@ const fc = le(function({ primaryAction: e, secondaryAction: t, ...i }, r) {
|
|
|
8897
8909
|
});
|
|
8898
8910
|
});
|
|
8899
8911
|
fc.displayName = "UpsellingBanner";
|
|
8900
|
-
function
|
|
8912
|
+
function Xc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r = "md", showIcon: s = !0, side: o = "right", align: a = "center", icon: l = js, mediaUrl: u, title: c, description: d, width: h = "300px", trackVisibility: f, actions: x, onClick: v, hideLabel: w = !1 }) {
|
|
8901
8913
|
const [S, N] = W(!1), [C, R] = W(null), [y, b] = W(null), D = (_) => {
|
|
8902
8914
|
e(_), v && v();
|
|
8903
8915
|
}, E = async (_) => {
|
|
@@ -8909,7 +8921,7 @@ function Uc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8909
8921
|
N(!0), R("error");
|
|
8910
8922
|
}
|
|
8911
8923
|
}
|
|
8912
|
-
},
|
|
8924
|
+
}, k = () => {
|
|
8913
8925
|
R(null), N(!1), b(null), e(!1);
|
|
8914
8926
|
}, A = n && !S, m = x == null ? void 0 : x.map((_) => _.type === "upsell" ? {
|
|
8915
8927
|
..._,
|
|
@@ -8947,7 +8959,7 @@ function Uc({ isOpen: n, setIsOpen: e, label: t, variant: i = "promote", size: r
|
|
|
8947
8959
|
})]
|
|
8948
8960
|
}), (y == null ? void 0 : y.type) === "upsell" && y.showConfirmation && C && g(Fn, {
|
|
8949
8961
|
open: !0,
|
|
8950
|
-
onClose:
|
|
8962
|
+
onClose: k,
|
|
8951
8963
|
success: C === "success",
|
|
8952
8964
|
errorMessage: y.errorMessage,
|
|
8953
8965
|
successMessage: y.successMessage,
|
|
@@ -8977,7 +8989,7 @@ const gc = Ne(null), pc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
8977
8989
|
}, mc = ({ children: n }) => g(Qs, {
|
|
8978
8990
|
reducedMotion: "user",
|
|
8979
8991
|
children: n
|
|
8980
|
-
}),
|
|
8992
|
+
}), Yc = ({ children: n, layout: e, link: t, privacyModeInitiallyEnabled: i, image: r, i18n: s, l10n: o, isDev: a = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: u = !1 }) => g(mc, {
|
|
8981
8993
|
children: g(Us, {
|
|
8982
8994
|
isDev: a,
|
|
8983
8995
|
showExperimentalWarnings: u,
|
|
@@ -9006,7 +9018,7 @@ const gc = Ne(null), pc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9006
9018
|
})
|
|
9007
9019
|
})
|
|
9008
9020
|
})
|
|
9009
|
-
}), wn = (n) => `datacollection-${n}`,
|
|
9021
|
+
}), wn = (n) => `datacollection-${n}`, qc = {
|
|
9010
9022
|
get: async (n) => JSON.parse(
|
|
9011
9023
|
localStorage.getItem(wn(n)) ?? "{}"
|
|
9012
9024
|
),
|
|
@@ -9016,102 +9028,104 @@ const gc = Ne(null), pc = ({ children: n, fullScreen: e = !0 }) => {
|
|
|
9016
9028
|
};
|
|
9017
9029
|
export {
|
|
9018
9030
|
Sc as AreaChart,
|
|
9019
|
-
|
|
9031
|
+
Zc as Await,
|
|
9020
9032
|
Nc as BarChart,
|
|
9021
9033
|
Oc as CategoryBarChart,
|
|
9022
9034
|
Pc as ComboChart,
|
|
9023
9035
|
Cc as Dashboard,
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9036
|
+
Qc as DndProvider,
|
|
9037
|
+
ed as EmojiImage,
|
|
9038
|
+
td as F0Avatar,
|
|
9039
|
+
id as F0AvatarAlert,
|
|
9040
|
+
nd as F0AvatarCompany,
|
|
9041
|
+
rd as F0AvatarDate,
|
|
9042
|
+
sd as F0AvatarEmoji,
|
|
9043
|
+
od as F0AvatarFile,
|
|
9044
|
+
ad as F0AvatarIcon,
|
|
9045
|
+
ld as F0AvatarList,
|
|
9034
9046
|
Hn as F0AvatarModule,
|
|
9035
|
-
|
|
9036
|
-
|
|
9047
|
+
cd as F0AvatarPerson,
|
|
9048
|
+
dd as F0AvatarTeam,
|
|
9037
9049
|
Ve as F0Button,
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9050
|
+
ud as F0ButtonDropdown,
|
|
9051
|
+
hd as F0ButtonToggle,
|
|
9052
|
+
fd as F0Card,
|
|
9053
|
+
gd as F0Checkbox,
|
|
9054
|
+
$c as F0ChipList,
|
|
9055
|
+
pd as F0DatePicker,
|
|
9056
|
+
md as F0EventCatcherProvider,
|
|
9057
|
+
Uc as F0GridStack,
|
|
9046
9058
|
lc as F0Heading,
|
|
9047
9059
|
Dn as F0Icon,
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9060
|
+
vd as F0Link,
|
|
9061
|
+
Yc as F0Provider,
|
|
9062
|
+
yd as F0Select,
|
|
9063
|
+
bd as F0TagAlert,
|
|
9064
|
+
xd as F0TagBalance,
|
|
9065
|
+
wd as F0TagCompany,
|
|
9066
|
+
Cd as F0TagDot,
|
|
9067
|
+
_d as F0TagList,
|
|
9068
|
+
Ed as F0TagPerson,
|
|
9057
9069
|
Ps as F0TagRaw,
|
|
9058
9070
|
Ms as F0TagStatus,
|
|
9059
|
-
|
|
9071
|
+
Dd as F0TagTeam,
|
|
9060
9072
|
Jn as F0Text,
|
|
9061
|
-
|
|
9073
|
+
Rd as GROUP_ID_SYMBOL,
|
|
9062
9074
|
Rc as HomeLayout,
|
|
9063
9075
|
_c as Layout,
|
|
9064
9076
|
Ac as LineChart,
|
|
9065
|
-
|
|
9066
|
-
|
|
9077
|
+
Sd as OneFilterPicker,
|
|
9078
|
+
Tc as PieChart,
|
|
9067
9079
|
Vs as PrivacyModeProvider,
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9080
|
+
kr as ProductBlankslate,
|
|
9081
|
+
Nd as ProductCard,
|
|
9082
|
+
Kc as ProductModal,
|
|
9071
9083
|
hc as ProductWidget,
|
|
9072
9084
|
zc as ProgressBarChart,
|
|
9073
9085
|
Ec as StandardLayout,
|
|
9074
|
-
|
|
9086
|
+
Od as Tag,
|
|
9087
|
+
Ad as TagCounter,
|
|
9075
9088
|
Dc as TwoColumnLayout,
|
|
9076
9089
|
Fn as UpsellRequestResponseDialog,
|
|
9077
9090
|
fc as UpsellingBanner,
|
|
9078
9091
|
Wn as UpsellingButton,
|
|
9079
|
-
|
|
9080
|
-
|
|
9092
|
+
Xc as UpsellingPopover,
|
|
9093
|
+
kc as VerticalBarChart,
|
|
9081
9094
|
wc as avatarVariants,
|
|
9082
|
-
|
|
9095
|
+
Td as buildTranslations,
|
|
9083
9096
|
Hc as buttonDropdownSizes,
|
|
9084
9097
|
Ic as buttonDropdownVariants,
|
|
9085
9098
|
Lc as buttonSizes,
|
|
9086
9099
|
Bc as buttonToggleSizes,
|
|
9100
|
+
Fc as buttonToggleVariants,
|
|
9087
9101
|
Mc as buttonVariants,
|
|
9088
|
-
|
|
9089
|
-
|
|
9102
|
+
kd as createAtlaskitDriver,
|
|
9103
|
+
zd as createDataSourceDefinition,
|
|
9090
9104
|
Ro as createPageLayoutBlock,
|
|
9091
9105
|
So as createPageLayoutBlockGroup,
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9106
|
+
qc as dataCollectionLocalStorageHandler,
|
|
9107
|
+
jc as datepickerSizes,
|
|
9108
|
+
eu as defaultTranslations,
|
|
9095
9109
|
Re as experimental,
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9110
|
+
Pd as getAnimationVariants,
|
|
9111
|
+
Md as getDataSourcePaginationType,
|
|
9112
|
+
Ld as getEmojiLabel,
|
|
9113
|
+
Id as isInfiniteScrollPagination,
|
|
9114
|
+
Hd as isPageBasedPagination,
|
|
9115
|
+
Wc as linkVariants,
|
|
9116
|
+
Bd as modules,
|
|
9117
|
+
Fd as predefinedPresets,
|
|
9118
|
+
Wd as selectSizes,
|
|
9119
|
+
Gc as tagDotColors,
|
|
9120
|
+
Gd as useData,
|
|
9121
|
+
$d as useDataSource,
|
|
9122
|
+
jd as useDndEvents,
|
|
9123
|
+
Ud as useDraggable,
|
|
9124
|
+
Kd as useDroppableList,
|
|
9125
|
+
Xd as useEmojiConfetti,
|
|
9126
|
+
Yd as useGroups,
|
|
9127
|
+
qd as usePrivacyMode,
|
|
9128
|
+
Vd as useReducedMotion,
|
|
9129
|
+
Jd as useSelectable,
|
|
9130
|
+
Zd as useXRay
|
|
9117
9131
|
};
|