@epam/ai-dial-ui-kit 0.6.0-rc.11 → 0.6.0-rc.13
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/dial-ui-kit.cjs.js +3 -3
- package/dist/dial-ui-kit.es.js +191 -187
- package/dist/index.css +2 -2
- package/dist/src/types/button.d.ts +14 -2
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2910,13 +2910,16 @@ const gi = ({
|
|
|
2910
2910
|
]
|
|
2911
2911
|
}
|
|
2912
2912
|
) : null;
|
|
2913
|
-
var
|
|
2913
|
+
var Ie = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Neutral = "neutral", e.Error = "error", e.Success = "Success", e.Secondary = "secondary", e.Tertiary = "tertiary", e))(Ie || {});
|
|
2914
2914
|
const l1 = {
|
|
2915
|
-
[
|
|
2916
|
-
[
|
|
2917
|
-
[
|
|
2918
|
-
[
|
|
2919
|
-
|
|
2915
|
+
[Ie.Primary]: "dial-primary-button",
|
|
2916
|
+
[Ie.Neutral]: "dial-neutral-button",
|
|
2917
|
+
[Ie.Error]: "dial-error-button",
|
|
2918
|
+
[Ie.Secondary]: "dial-secondary-button",
|
|
2919
|
+
[Ie.Tertiary]: "dial-tertiary-button",
|
|
2920
|
+
[Ie.Success]: ""
|
|
2921
|
+
// TODO: add styles for icon button
|
|
2922
|
+
}, Ae = ({
|
|
2920
2923
|
label: e,
|
|
2921
2924
|
variant: t,
|
|
2922
2925
|
className: s,
|
|
@@ -2991,7 +2994,7 @@ const c1 = (e) => ({
|
|
|
2991
2994
|
/* @__PURE__ */ m("div", { className: "text-primary", children: t })
|
|
2992
2995
|
] }),
|
|
2993
2996
|
n && /* @__PURE__ */ m(
|
|
2994
|
-
|
|
2997
|
+
Ae,
|
|
2995
2998
|
{
|
|
2996
2999
|
className: "ml-2 text-secondary hover:text-primary",
|
|
2997
3000
|
"aria-label": "Close alert",
|
|
@@ -3559,7 +3562,7 @@ const y1 = "flex", R1 = "pb-1 mt-2", x1 = {
|
|
|
3559
3562
|
children: [
|
|
3560
3563
|
f && a,
|
|
3561
3564
|
/* @__PURE__ */ m(
|
|
3562
|
-
|
|
3565
|
+
Ae,
|
|
3563
3566
|
{
|
|
3564
3567
|
className: "hover:text-accent-primary p-1",
|
|
3565
3568
|
onClick: w,
|
|
@@ -3621,7 +3624,7 @@ const E1 = {
|
|
|
3621
3624
|
/* @__PURE__ */ m(Ve, { icon: o }),
|
|
3622
3625
|
/* @__PURE__ */ m(bt, { text: e }),
|
|
3623
3626
|
s && /* @__PURE__ */ m(
|
|
3624
|
-
|
|
3627
|
+
Ae,
|
|
3625
3628
|
{
|
|
3626
3629
|
iconAfter: /* @__PURE__ */ m(fo, { size: 16 }),
|
|
3627
3630
|
onClick: (l) => s(l)
|
|
@@ -7323,7 +7326,7 @@ var XS = (e, t, s) => {
|
|
|
7323
7326
|
function W(...e) {
|
|
7324
7327
|
Yd(an, e[0], e[1], !0);
|
|
7325
7328
|
}
|
|
7326
|
-
function
|
|
7329
|
+
function Le(...e) {
|
|
7327
7330
|
Yd(Ki, e[0], e[1], !1);
|
|
7328
7331
|
}
|
|
7329
7332
|
function Jo(e, t, s) {
|
|
@@ -8125,7 +8128,7 @@ var Cy = class {
|
|
|
8125
8128
|
}
|
|
8126
8129
|
}
|
|
8127
8130
|
};
|
|
8128
|
-
function
|
|
8131
|
+
function He(e) {
|
|
8129
8132
|
if (e?.length)
|
|
8130
8133
|
return e[e.length - 1];
|
|
8131
8134
|
}
|
|
@@ -9320,11 +9323,11 @@ var zy = class extends O {
|
|
|
9320
9323
|
};
|
|
9321
9324
|
if (a != null && f(a), l == null && c == null && s != null && f(s), l && r && !Vy(l) && (l = this.agCompUtils?.adaptFunction(t, l)), !l && !c) {
|
|
9322
9325
|
const { validation: b } = this.beans;
|
|
9323
|
-
o && (a !== s || !s) ? a ? b?.isProvidedUserComp(a) ||
|
|
9326
|
+
o && (a !== s || !s) ? a ? b?.isProvidedUserComp(a) || Le(50, { compName: a }) : s ? b || Le(260, {
|
|
9324
9327
|
...this.gos.getModuleErrorParams(),
|
|
9325
9328
|
propName: n,
|
|
9326
9329
|
compName: s
|
|
9327
|
-
}) :
|
|
9330
|
+
}) : Le(216, { name: n }) : s && !b && Le(146, { comp: s });
|
|
9328
9331
|
return;
|
|
9329
9332
|
}
|
|
9330
9333
|
const C = this.mergeParams(
|
|
@@ -9753,7 +9756,7 @@ function wi(e, t = !1, s = !1, i = !1) {
|
|
|
9753
9756
|
e,
|
|
9754
9757
|
i ? ".ag-tab-guard" : null,
|
|
9755
9758
|
s
|
|
9756
|
-
), n = t ?
|
|
9759
|
+
), n = t ? He(o) : o[0];
|
|
9757
9760
|
return n ? (n.focus({ preventScroll: !0 }), !0) : !1;
|
|
9758
9761
|
}
|
|
9759
9762
|
function Ei(e, t, s, i) {
|
|
@@ -10369,7 +10372,7 @@ var ii = class extends zf {
|
|
|
10369
10372
|
let s;
|
|
10370
10373
|
const { listItems: i, highlightedItem: o } = this;
|
|
10371
10374
|
if (!o)
|
|
10372
|
-
s = t ? i[0] :
|
|
10375
|
+
s = t ? i[0] : He(i);
|
|
10373
10376
|
else {
|
|
10374
10377
|
let r = i.indexOf(o) + (t ? 1 : -1);
|
|
10375
10378
|
r = Math.min(Math.max(r, 0), i.length - 1), s = i[r];
|
|
@@ -12305,7 +12308,7 @@ var Sn = class extends O {
|
|
|
12305
12308
|
Qe(e) && e.checkLeft();
|
|
12306
12309
|
if (this.displayedChildren.length > 0)
|
|
12307
12310
|
if (this.gos.get("enableRtl")) {
|
|
12308
|
-
const t =
|
|
12311
|
+
const t = He(this.displayedChildren).getLeft();
|
|
12309
12312
|
this.setLeft(t);
|
|
12310
12313
|
} else {
|
|
12311
12314
|
const e = this.displayedChildren[0].getLeft();
|
|
@@ -12503,7 +12506,7 @@ var Sn = class extends O {
|
|
|
12503
12506
|
};
|
|
12504
12507
|
}
|
|
12505
12508
|
getRowIndexString() {
|
|
12506
|
-
return this.rowIndex == null ? (
|
|
12509
|
+
return this.rowIndex == null ? (Le(13), null) : this.rowPinned === "top" ? ru + this.rowIndex : this.rowPinned === "bottom" ? au + this.rowIndex : this.rowIndex.toString();
|
|
12507
12510
|
}
|
|
12508
12511
|
setDataAndId(e, t) {
|
|
12509
12512
|
const { selectionSvc: s } = this.beans, i = s?.createDaemonNode?.(this), o = this.data;
|
|
@@ -12521,7 +12524,7 @@ var Sn = class extends O {
|
|
|
12521
12524
|
parentKeys: s.length > 0 ? s : void 0,
|
|
12522
12525
|
level: this.level,
|
|
12523
12526
|
rowPinned: this.rowPinned
|
|
12524
|
-
}), this.id.startsWith(Bc) &&
|
|
12527
|
+
}), this.id.startsWith(Bc) && Le(14, {
|
|
12525
12528
|
groupPrefix: Bc
|
|
12526
12529
|
});
|
|
12527
12530
|
} else
|
|
@@ -15478,7 +15481,7 @@ var Yx = class extends O {
|
|
|
15478
15481
|
}
|
|
15479
15482
|
getColumnOrGroup() {
|
|
15480
15483
|
const { beans: e, colsSpanning: t } = this;
|
|
15481
|
-
return e.gos.get("enableRtl") && t ?
|
|
15484
|
+
return e.gos.get("enableRtl") && t ? He(t) : this.columnOrGroup;
|
|
15482
15485
|
}
|
|
15483
15486
|
postConstruct() {
|
|
15484
15487
|
const e = this.onLeftChanged.bind(this);
|
|
@@ -18129,7 +18132,7 @@ var OF = class extends O {
|
|
|
18129
18132
|
return !1;
|
|
18130
18133
|
if (i === 0) {
|
|
18131
18134
|
if (s > 0) {
|
|
18132
|
-
const { visibleCols: o, focusSvc: n } = this.beans, r = o.allCols, a =
|
|
18135
|
+
const { visibleCols: o, focusSvc: n } = this.beans, r = o.allCols, a = He(r);
|
|
18133
18136
|
if (n.focusGridView({ column: a, backwards: !0 }))
|
|
18134
18137
|
return !0;
|
|
18135
18138
|
}
|
|
@@ -18143,8 +18146,8 @@ var OF = class extends O {
|
|
|
18143
18146
|
const s = this.getFocusableContainers(), { focusSvc: i, visibleCols: o } = this.beans, n = o.allCols;
|
|
18144
18147
|
if (e) {
|
|
18145
18148
|
if (s.length > 1)
|
|
18146
|
-
return this.focusContainer(
|
|
18147
|
-
const r =
|
|
18149
|
+
return this.focusContainer(He(s), e);
|
|
18150
|
+
const r = He(n);
|
|
18148
18151
|
if (i.focusGridView({ column: r, backwards: e }))
|
|
18149
18152
|
return !0;
|
|
18150
18153
|
}
|
|
@@ -19764,7 +19767,7 @@ function Am(e) {
|
|
|
19764
19767
|
}
|
|
19765
19768
|
function DE(e, t) {
|
|
19766
19769
|
const s = t.getCols(), i = e.map((l) => s.indexOf(l)).sort((l, c) => l - c), o = i[0];
|
|
19767
|
-
return
|
|
19770
|
+
return He(i) - o !== i.length - 1 ? null : o;
|
|
19768
19771
|
}
|
|
19769
19772
|
function PE(e) {
|
|
19770
19773
|
function t(i) {
|
|
@@ -20015,7 +20018,7 @@ var Kh = 7, Kc = 100, Cr = Kc / 2, IE = 5, AE = 100, kE = class extends O {
|
|
|
20015
20018
|
}
|
|
20016
20019
|
const g = h?.getDisplayedLeafColumns();
|
|
20017
20020
|
if (g.length) {
|
|
20018
|
-
l =
|
|
20021
|
+
l = He(g);
|
|
20019
20022
|
break;
|
|
20020
20023
|
}
|
|
20021
20024
|
}
|
|
@@ -20321,7 +20324,7 @@ var OE = class extends O {
|
|
|
20321
20324
|
let v;
|
|
20322
20325
|
if (h) {
|
|
20323
20326
|
const w = s.getDisplayedLeafColumns();
|
|
20324
|
-
v = p ? w[0] :
|
|
20327
|
+
v = p ? w[0] : He(w);
|
|
20325
20328
|
} else
|
|
20326
20329
|
v = s;
|
|
20327
20330
|
if (n.getScrollFeature().ensureColumnVisible(v, "auto"), (!o.isAlive() || r.get("ensureDomOrder")) && C) {
|
|
@@ -20703,7 +20706,7 @@ var _E = class extends O {
|
|
|
20703
20706
|
let C = !0, v = 0;
|
|
20704
20707
|
for (; C; ) {
|
|
20705
20708
|
if (v++, v > 1e3) {
|
|
20706
|
-
|
|
20709
|
+
Le(31);
|
|
20707
20710
|
break;
|
|
20708
20711
|
}
|
|
20709
20712
|
C = !1;
|
|
@@ -20851,7 +20854,7 @@ var KE = {
|
|
|
20851
20854
|
});
|
|
20852
20855
|
}
|
|
20853
20856
|
onLeafColumnHighlightChanged(e) {
|
|
20854
|
-
const t = this.column.getDisplayedLeafColumns(), s = t[0] === e, i =
|
|
20857
|
+
const t = this.column.getDisplayedLeafColumns(), s = t[0] === e, i = He(t) === e;
|
|
20855
20858
|
if (!s && !i)
|
|
20856
20859
|
return;
|
|
20857
20860
|
const o = e.getHighlighted(), n = !!this.rowCtrl.getHeaderCellCtrls().find((l) => l.column.isMoving());
|
|
@@ -21057,7 +21060,7 @@ var l3 = class extends O {
|
|
|
21057
21060
|
}
|
|
21058
21061
|
setFirstRightAndLastLeftPinned(e, t, s, i) {
|
|
21059
21062
|
let o, n;
|
|
21060
|
-
this.gos.get("enableRtl") ? (o = t ? t[0] : null, n = s ?
|
|
21063
|
+
this.gos.get("enableRtl") ? (o = t ? t[0] : null, n = s ? He(s) : null) : (o = t ? He(t) : null, n = s ? s[0] : null);
|
|
21061
21064
|
for (const r of e.getCols())
|
|
21062
21065
|
r.setLastLeftPinned(r === o, i), r.setFirstRightPinned(r === n, i);
|
|
21063
21066
|
}
|
|
@@ -21202,7 +21205,7 @@ var l3 = class extends O {
|
|
|
21202
21205
|
for (let s = 0; s < t.length; s++) {
|
|
21203
21206
|
const i = this[t[s]];
|
|
21204
21207
|
if (i.length)
|
|
21205
|
-
return e ?
|
|
21208
|
+
return e ? He(i) : i[0];
|
|
21206
21209
|
}
|
|
21207
21210
|
return null;
|
|
21208
21211
|
}
|
|
@@ -21232,10 +21235,10 @@ var l3 = class extends O {
|
|
|
21232
21235
|
const n = e.getDisplayedLeafColumns();
|
|
21233
21236
|
if (!n.length)
|
|
21234
21237
|
return !1;
|
|
21235
|
-
o = i ? n[0] :
|
|
21238
|
+
o = i ? n[0] : He(n);
|
|
21236
21239
|
} else
|
|
21237
21240
|
o = e;
|
|
21238
|
-
return (i ? s[0] :
|
|
21241
|
+
return (i ? s[0] : He(s)) === o;
|
|
21239
21242
|
}
|
|
21240
21243
|
};
|
|
21241
21244
|
function hi(e, t, s) {
|
|
@@ -21311,7 +21314,7 @@ var c3 = class extends O {
|
|
|
21311
21314
|
}), t;
|
|
21312
21315
|
}
|
|
21313
21316
|
getGroupAtDirection(e, t) {
|
|
21314
|
-
const s = e.getProvidedColumnGroup().getLevel() + e.getPaddingLevel(), i = e.getDisplayedLeafColumns(), o = t === "After" ?
|
|
21317
|
+
const s = e.getProvidedColumnGroup().getLevel() + e.getPaddingLevel(), i = e.getDisplayedLeafColumns(), o = t === "After" ? He(i) : i[0], n = `getCol${t}`;
|
|
21315
21318
|
for (; ; ) {
|
|
21316
21319
|
const r = this.beans.visibleCols[n](o);
|
|
21317
21320
|
if (!r)
|
|
@@ -22906,7 +22909,7 @@ var q3 = class extends O {
|
|
|
22906
22909
|
W(e[0], e[1]);
|
|
22907
22910
|
},
|
|
22908
22911
|
error: (...e) => {
|
|
22909
|
-
|
|
22912
|
+
Le(e[0], e[1]);
|
|
22910
22913
|
},
|
|
22911
22914
|
preInitErr: (...e) => {
|
|
22912
22915
|
Jo(e[0], e[2], e[1]);
|
|
@@ -23443,7 +23446,7 @@ var UD = class extends S2 {
|
|
|
23443
23446
|
this.eRootDiv.style.setProperty("--ag-internal-row-border-width", `${e}px`);
|
|
23444
23447
|
}
|
|
23445
23448
|
postProcessThemeChange(e, t) {
|
|
23446
|
-
e && getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded") &&
|
|
23449
|
+
e && getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded") && Le(t ? 106 : 239);
|
|
23447
23450
|
}
|
|
23448
23451
|
getAdditionalCss() {
|
|
23449
23452
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -23453,7 +23456,7 @@ var UD = class extends S2 {
|
|
|
23453
23456
|
return HD;
|
|
23454
23457
|
}
|
|
23455
23458
|
themeError(e) {
|
|
23456
|
-
|
|
23459
|
+
Le(240, { theme: e });
|
|
23457
23460
|
}
|
|
23458
23461
|
}, Ql = 15538, $D = class extends R2 {
|
|
23459
23462
|
postConstruct() {
|
|
@@ -23501,7 +23504,7 @@ var jD = class extends O {
|
|
|
23501
23504
|
const { colModel: i, colGroupSvc: o, ctrlsSvc: n } = this.beans;
|
|
23502
23505
|
if (typeof e == "string" ? (s = i.getCol(e), s || (s = o?.getColumnGroup(e) ?? null)) : s = e, !s)
|
|
23503
23506
|
return null;
|
|
23504
|
-
const a = n.getHeaderRowContainerCtrl()?.getAllCtrls(), l =
|
|
23507
|
+
const a = n.getHeaderRowContainerCtrl()?.getAllCtrls(), l = He(a || []).type === "filter", c = cs(this.beans) - 1;
|
|
23505
23508
|
let d = -1, u = s;
|
|
23506
23509
|
for (; u; )
|
|
23507
23510
|
d++, u = u.getParent();
|
|
@@ -23567,7 +23570,7 @@ var jD = class extends O {
|
|
|
23567
23570
|
if (t === "Before") {
|
|
23568
23571
|
if (o <= 0)
|
|
23569
23572
|
return !1;
|
|
23570
|
-
n =
|
|
23573
|
+
n = He(l), r = o - 1, this.currentHeaderRowWithoutSpan -= 1;
|
|
23571
23574
|
} else
|
|
23572
23575
|
n = l[0], r = o + 1, this.currentHeaderRowWithoutSpan < a ? this.currentHeaderRowWithoutSpan += 1 : this.currentHeaderRowWithoutSpan = -1;
|
|
23573
23576
|
let { column: c, headerRowIndex: d } = Km(this.beans, n, r);
|
|
@@ -23585,7 +23588,7 @@ var jD = class extends O {
|
|
|
23585
23588
|
let s;
|
|
23586
23589
|
if (Qe(e)) {
|
|
23587
23590
|
const i = e.getDisplayedLeafColumns();
|
|
23588
|
-
s = t === "Before" ?
|
|
23591
|
+
s = t === "Before" ? He(i) : i[0];
|
|
23589
23592
|
} else
|
|
23590
23593
|
s = e;
|
|
23591
23594
|
this.gridBodyCon.scrollFeature.ensureColumnVisible(s);
|
|
@@ -23891,7 +23894,7 @@ var YD = class extends O {
|
|
|
23891
23894
|
focusLastHeader(e) {
|
|
23892
23895
|
if (this.overlays?.isExclusive() && this.focusOverlay(!0))
|
|
23893
23896
|
return !0;
|
|
23894
|
-
const t = cs(this.beans) - 1, s =
|
|
23897
|
+
const t = cs(this.beans) - 1, s = He(this.visibleCols.allCols);
|
|
23895
23898
|
return this.focusHeaderPosition({
|
|
23896
23899
|
headerPosition: { headerRowIndex: t, column: s },
|
|
23897
23900
|
rowWithoutSpanValue: -1,
|
|
@@ -25677,7 +25680,7 @@ var mP = {
|
|
|
25677
25680
|
}
|
|
25678
25681
|
assertModuleRegistered(e, t) {
|
|
25679
25682
|
const s = Array.isArray(e) ? e.some((i) => this.isModuleRegistered(i)) : this.isModuleRegistered(e);
|
|
25680
|
-
return s ||
|
|
25683
|
+
return s || Le(200, {
|
|
25681
25684
|
...this.getModuleErrorParams(),
|
|
25682
25685
|
moduleName: e,
|
|
25683
25686
|
reasonOrId: t
|
|
@@ -26296,7 +26299,7 @@ var RP = Zm(!0), xP = Zm(!1), FP = class extends qe {
|
|
|
26296
26299
|
const { beans: t } = this, { visibleCols: s, pagination: i } = t, o = s.allCols;
|
|
26297
26300
|
let n = e.rowIndex, r = e.rowPinned, a = s.getColBefore(e.column);
|
|
26298
26301
|
if (!a) {
|
|
26299
|
-
a =
|
|
26302
|
+
a = He(o);
|
|
26300
26303
|
const l = da(t, { rowIndex: e.rowIndex, rowPinned: e.rowPinned }, !0);
|
|
26301
26304
|
if (Ue(l) || !l.rowPinned && !(i?.isRowInPage(l.rowIndex) ?? !0))
|
|
26302
26305
|
return null;
|
|
@@ -27269,7 +27272,7 @@ var XP = class extends O {
|
|
|
27269
27272
|
}
|
|
27270
27273
|
getCellLeft() {
|
|
27271
27274
|
let e;
|
|
27272
|
-
return this.beans.gos.get("enableRtl") && this.colsSpanning ? e =
|
|
27275
|
+
return this.beans.gos.get("enableRtl") && this.colsSpanning ? e = He(this.colsSpanning) : e = this.column, e.getLeft();
|
|
27273
27276
|
}
|
|
27274
27277
|
modifyLeftForPrintLayout(e) {
|
|
27275
27278
|
if (!this.cellCtrl.printLayout || this.column.getPinned() === "left")
|
|
@@ -28883,7 +28886,7 @@ var d5 = class extends O {
|
|
|
28883
28886
|
if (e instanceof ha) {
|
|
28884
28887
|
if (o = {
|
|
28885
28888
|
...e.getRowPosition(),
|
|
28886
|
-
column: t ? i[0] :
|
|
28889
|
+
column: t ? i[0] : He(i)
|
|
28887
28890
|
}, this.gos.get("embedFullWidthRows") && s) {
|
|
28888
28891
|
const r = e.findFullWidthInfoForEvent(s);
|
|
28889
28892
|
r && (o.column = r.column);
|
|
@@ -29018,7 +29021,7 @@ var d5 = class extends O {
|
|
|
29018
29021
|
const l = o.getFocusedCell(), c = {
|
|
29019
29022
|
rowIndex: e.rowIndex,
|
|
29020
29023
|
rowPinned: e.rowPinned,
|
|
29021
|
-
column: e.column || (t ?
|
|
29024
|
+
column: e.column || (t ? He(r) : r[0])
|
|
29022
29025
|
};
|
|
29023
29026
|
this.focusPosition(c);
|
|
29024
29027
|
const d = t ?? (l != null && sE(c, l));
|
|
@@ -29050,7 +29053,7 @@ var d5 = class extends O {
|
|
|
29050
29053
|
const s = t.getColSpanningList();
|
|
29051
29054
|
return s.length === 1 ? e : {
|
|
29052
29055
|
rowIndex: e.rowIndex,
|
|
29053
|
-
column:
|
|
29056
|
+
column: He(s),
|
|
29054
29057
|
rowPinned: e.rowPinned
|
|
29055
29058
|
};
|
|
29056
29059
|
}
|
|
@@ -29385,7 +29388,7 @@ var P5 = (
|
|
|
29385
29388
|
return;
|
|
29386
29389
|
let i = !1;
|
|
29387
29390
|
e.shiftKey ? i = t.focusSvc.focusGridView({
|
|
29388
|
-
column:
|
|
29391
|
+
column: He(t.visibleCols.allCols),
|
|
29389
29392
|
backwards: !0,
|
|
29390
29393
|
canFocusOverlay: !1
|
|
29391
29394
|
}) : i = ho(t, !1), i && e.preventDefault();
|
|
@@ -30571,7 +30574,7 @@ var W5 = "paste", _5 = class extends O {
|
|
|
30571
30574
|
evaluate(e, t) {
|
|
30572
30575
|
if (typeof e == "string")
|
|
30573
30576
|
return this.evaluateExpression(e, t);
|
|
30574
|
-
|
|
30577
|
+
Le(15, { expression: e });
|
|
30575
30578
|
}
|
|
30576
30579
|
evaluateExpression(e, t) {
|
|
30577
30580
|
try {
|
|
@@ -30591,7 +30594,7 @@ var W5 = "paste", _5 = class extends O {
|
|
|
30591
30594
|
t.columnGroup
|
|
30592
30595
|
);
|
|
30593
30596
|
} catch (s) {
|
|
30594
|
-
return
|
|
30597
|
+
return Le(16, { expression: e, params: t, e: s }), null;
|
|
30595
30598
|
}
|
|
30596
30599
|
}
|
|
30597
30600
|
createExpressionFunction(e) {
|
|
@@ -32296,7 +32299,7 @@ var y4 = {
|
|
|
32296
32299
|
return;
|
|
32297
32300
|
const t = x4[e];
|
|
32298
32301
|
if (t) {
|
|
32299
|
-
|
|
32302
|
+
Le(200, {
|
|
32300
32303
|
reasonOrId: `icon '${e}'`,
|
|
32301
32304
|
moduleName: t,
|
|
32302
32305
|
gridScoped: qd(),
|
|
@@ -32690,7 +32693,7 @@ var M4 = class extends O {
|
|
|
32690
32693
|
function A4(e, t) {
|
|
32691
32694
|
const s = e.colModel.getCol(t);
|
|
32692
32695
|
if (!s) {
|
|
32693
|
-
|
|
32696
|
+
Le(12, { colKey: t });
|
|
32694
32697
|
return;
|
|
32695
32698
|
}
|
|
32696
32699
|
e.menuSvc?.showColumnMenu({
|
|
@@ -32821,7 +32824,7 @@ function _4(e, t, s) {
|
|
|
32821
32824
|
function U4(e, t) {
|
|
32822
32825
|
const s = e.colModel.getCol(t);
|
|
32823
32826
|
if (!s) {
|
|
32824
|
-
|
|
32827
|
+
Le(12, { colKey: t });
|
|
32825
32828
|
return;
|
|
32826
32829
|
}
|
|
32827
32830
|
e.menuSvc?.showFilterMenu({
|
|
@@ -32836,7 +32839,7 @@ function $4(e) {
|
|
|
32836
32839
|
function j4(e, t) {
|
|
32837
32840
|
const s = e.colModel.getCol(t);
|
|
32838
32841
|
if (!s) {
|
|
32839
|
-
|
|
32842
|
+
Le(12, { colKey: t });
|
|
32840
32843
|
return;
|
|
32841
32844
|
}
|
|
32842
32845
|
return e.colFilter?.getHandler(s, !0);
|
|
@@ -33063,7 +33066,7 @@ var q4 = {
|
|
|
33063
33066
|
} else {
|
|
33064
33067
|
const h = c.comp;
|
|
33065
33068
|
if (typeof h.doesFilterPass != "function") {
|
|
33066
|
-
|
|
33069
|
+
Le(91);
|
|
33067
33070
|
continue;
|
|
33068
33071
|
}
|
|
33069
33072
|
if (!h.doesFilterPass({ node: e, data: r }))
|
|
@@ -34017,7 +34020,7 @@ var X4 = class extends O {
|
|
|
34017
34020
|
showPopup(e, t, s, i, o, n) {
|
|
34018
34021
|
const r = e ? this.createBean(new q2(e, "COLUMN_MENU")) : void 0;
|
|
34019
34022
|
if (this.activeMenu = r, !r?.hasFilter() || !e) {
|
|
34020
|
-
|
|
34023
|
+
Le(57);
|
|
34021
34024
|
return;
|
|
34022
34025
|
}
|
|
34023
34026
|
const a = Rt({
|
|
@@ -38171,7 +38174,7 @@ var s6 = class extends xF {
|
|
|
38171
38174
|
};
|
|
38172
38175
|
if (t === "currentPage" || t === "filtered") {
|
|
38173
38176
|
if (!s) {
|
|
38174
|
-
|
|
38177
|
+
Le(102);
|
|
38175
38178
|
return;
|
|
38176
38179
|
}
|
|
38177
38180
|
this.getNodesToSelect(t).forEach(o);
|
|
@@ -38257,7 +38260,7 @@ var s6 = class extends xF {
|
|
|
38257
38260
|
}
|
|
38258
38261
|
setSelectionState(e, t, s) {
|
|
38259
38262
|
if (e || (e = []), !Array.isArray(e)) {
|
|
38260
|
-
|
|
38263
|
+
Le(103);
|
|
38261
38264
|
return;
|
|
38262
38265
|
}
|
|
38263
38266
|
const i = new Set(e), o = [];
|
|
@@ -38436,13 +38439,13 @@ function c6(e, t, s) {
|
|
|
38436
38439
|
if (i) {
|
|
38437
38440
|
if (e.rowGroupColsSvc?.columns.length === 0) {
|
|
38438
38441
|
if (t < 0) {
|
|
38439
|
-
|
|
38442
|
+
Le(238);
|
|
38440
38443
|
return;
|
|
38441
38444
|
}
|
|
38442
38445
|
i.setRowCount(t, s);
|
|
38443
38446
|
return;
|
|
38444
38447
|
}
|
|
38445
|
-
|
|
38448
|
+
Le(28);
|
|
38446
38449
|
return;
|
|
38447
38450
|
}
|
|
38448
38451
|
Oa(e)?.setRowCount(t, s);
|
|
@@ -38478,13 +38481,13 @@ var h6 = {
|
|
|
38478
38481
|
const t = typeof e == "function";
|
|
38479
38482
|
return typeof e == "function" && (e = e()), e.map((i) => {
|
|
38480
38483
|
if (!i) {
|
|
38481
|
-
|
|
38484
|
+
Le(18), t || Le(20);
|
|
38482
38485
|
return;
|
|
38483
38486
|
}
|
|
38484
38487
|
if (this.isGridApi(i))
|
|
38485
38488
|
return i;
|
|
38486
38489
|
const o = i;
|
|
38487
|
-
return "current" in o ? o.current?.api : (o.api ||
|
|
38490
|
+
return "current" in o ? o.current?.api : (o.api || Le(19), o.api);
|
|
38488
38491
|
}).filter((i) => !!i && !i.isDestroyed());
|
|
38489
38492
|
}
|
|
38490
38493
|
isGridApi(e) {
|
|
@@ -38777,7 +38780,7 @@ var h6 = {
|
|
|
38777
38780
|
if (!e)
|
|
38778
38781
|
return w6(this.rootNode._leafs, t);
|
|
38779
38782
|
const s = e({ data: t, level: 0 }), i = this.allNodesMap[s];
|
|
38780
|
-
return i || (
|
|
38783
|
+
return i || (Le(4, { id: s }), null);
|
|
38781
38784
|
}
|
|
38782
38785
|
sanitizeAddIndex(e, t) {
|
|
38783
38786
|
const s = e.length;
|
|
@@ -38805,7 +38808,7 @@ var h6 = {
|
|
|
38805
38808
|
if (o.data === t)
|
|
38806
38809
|
return o;
|
|
38807
38810
|
}
|
|
38808
|
-
return
|
|
38811
|
+
return Le(5, { data: t }), null;
|
|
38809
38812
|
}, b6 = (e, t, s, i, o) => {
|
|
38810
38813
|
t = Math.max(0, t);
|
|
38811
38814
|
for (let n = t, r = e.length; n < r; ++n) {
|
|
@@ -39691,7 +39694,7 @@ var G6 = {
|
|
|
39691
39694
|
) : a = this.beans.colNames.getDisplayNameForColumnGroup(r, "header");
|
|
39692
39695
|
const c = (r.isExpandable() ? r.getLeafColumns() : []).reduce(
|
|
39693
39696
|
(d, u, h, g) => {
|
|
39694
|
-
let p =
|
|
39697
|
+
let p = He(d);
|
|
39695
39698
|
return u.getColumnGroupShow() === "open" ? (!p || p[1] != null) && (p = [h], d.push(p)) : p && p[1] == null && (p[1] = h - 1), h === g.length - 1 && p && p[1] == null && (p[1] = h), d;
|
|
39696
39699
|
},
|
|
39697
39700
|
[]
|
|
@@ -43973,8 +43976,8 @@ var lk = 1e3, ck = class {
|
|
|
43973
43976
|
}, Ee = () => {
|
|
43974
43977
|
const me = () => l == null ? null : Z ? /* @__PURE__ */ q.createElement("span", { role: "presentation", id: `cell-${r}`, className: X, ref: se }, Re()) : Re(), be = ($) => Dk($, oe, k.current, e, R);
|
|
43975
43978
|
return d != null ? d.popup ? /* @__PURE__ */ q.createElement(q.Fragment, null, me(), be(d)) : be(d) : me();
|
|
43976
|
-
},
|
|
43977
|
-
return e.isCellSpanning() ? /* @__PURE__ */ q.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" },
|
|
43979
|
+
}, ke = () => /* @__PURE__ */ q.createElement("div", { ref: K, style: p, role: T, "col-id": n }, Z ? /* @__PURE__ */ q.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: A }, Ee()) : Ee());
|
|
43980
|
+
return e.isCellSpanning() ? /* @__PURE__ */ q.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" }, ke()) : ke();
|
|
43978
43981
|
}, Ik = mt(Mk), Ak = ({ rowCtrl: e, containerType: t }) => {
|
|
43979
43982
|
const { context: s, gos: i, editSvc: o } = st(Ct), n = st(VC) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = I(
|
|
43980
43983
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
@@ -44022,8 +44025,8 @@ var lk = 1e3, ck = class {
|
|
|
44022
44025
|
// if we don't maintain the order, then cols will be ripped out and into the dom
|
|
44023
44026
|
// when cols reordered, which would stop the CSS transitions from working
|
|
44024
44027
|
setCellCtrls: (le, Re) => {
|
|
44025
|
-
const Ee = w.current,
|
|
44026
|
-
|
|
44028
|
+
const Ee = w.current, ke = fa(Ee, le, a.current);
|
|
44029
|
+
ke !== Ee && (w.current = ke, n ? N.current() : Fn(Re, () => S(ke)));
|
|
44027
44030
|
},
|
|
44028
44031
|
showFullWidth: (le) => {
|
|
44029
44032
|
G.current = le.params, R(le);
|
|
@@ -44242,7 +44245,7 @@ var lk = 1e3, ck = class {
|
|
|
44242
44245
|
), Ee = B(
|
|
44243
44246
|
() => Ht("ag-floating-bottom", x ? "ag-invisible" : null, G),
|
|
44244
44247
|
[G, x]
|
|
44245
|
-
),
|
|
44248
|
+
), ke = B(
|
|
44246
44249
|
() => ({
|
|
44247
44250
|
height: n,
|
|
44248
44251
|
minHeight: n,
|
|
@@ -44279,7 +44282,7 @@ var lk = 1e3, ck = class {
|
|
|
44279
44282
|
return /* @__PURE__ */ q.createElement("div", { ref: V, className: A }, /* @__PURE__ */ q.createElement(Sk, null), ve({
|
|
44280
44283
|
section: ue,
|
|
44281
44284
|
className: Ce,
|
|
44282
|
-
style:
|
|
44285
|
+
style: ke,
|
|
44283
44286
|
children: ["topLeft", "topCenter", "topRight", "topFullWidth"]
|
|
44284
44287
|
}), /* @__PURE__ */ q.createElement("div", { className: K, ref: te, role: "presentation" }, ve({
|
|
44285
44288
|
section: Z,
|
|
@@ -44763,7 +44766,7 @@ const Qk = ee(
|
|
|
44763
44766
|
onClose: i,
|
|
44764
44767
|
...o
|
|
44765
44768
|
}) => /* @__PURE__ */ m(
|
|
44766
|
-
|
|
44769
|
+
Ae,
|
|
44767
44770
|
{
|
|
44768
44771
|
"aria-label": e,
|
|
44769
44772
|
className: ge("text-secondary hover:enabled:text-accent-primary", t),
|
|
@@ -45275,7 +45278,7 @@ const QC = ({
|
|
|
45275
45278
|
const Re = le.data ? i?.(le.data) ?? [] : [];
|
|
45276
45279
|
let Ee = null;
|
|
45277
45280
|
typeof K == "function" ? Ee = /* @__PURE__ */ m(K, { ...le }) : Ee = U(le);
|
|
45278
|
-
const
|
|
45281
|
+
const ke = le.data ? p(le.data) : null, me = ke ? l?.has(ke) : !1;
|
|
45279
45282
|
return /* @__PURE__ */ m(
|
|
45280
45283
|
It,
|
|
45281
45284
|
{
|
|
@@ -45592,7 +45595,7 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
45592
45595
|
R.id
|
|
45593
45596
|
)),
|
|
45594
45597
|
children: /* @__PURE__ */ m(
|
|
45595
|
-
|
|
45598
|
+
Ae,
|
|
45596
45599
|
{
|
|
45597
45600
|
iconBefore: /* @__PURE__ */ m(Pn, { size: 18 }),
|
|
45598
45601
|
className: ee(
|
|
@@ -45775,7 +45778,7 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
45775
45778
|
iconClassName: e,
|
|
45776
45779
|
...t
|
|
45777
45780
|
}) => /* @__PURE__ */ m(
|
|
45778
|
-
|
|
45781
|
+
Ae,
|
|
45779
45782
|
{
|
|
45780
45783
|
...t,
|
|
45781
45784
|
iconBefore: /* @__PURE__ */ m(Tn, { ...de, className: e || "" })
|
|
@@ -46225,13 +46228,14 @@ const y8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", R8 = "d
|
|
|
46225
46228
|
var En = /* @__PURE__ */ ((e) => (e.Info = "info", e.Danger = "danger", e))(En || {});
|
|
46226
46229
|
const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-150 px-6 py-4", P8 = "Cancel", T8 = "Ok", kg = {
|
|
46227
46230
|
[En.Info]: {
|
|
46228
|
-
confirmVariant:
|
|
46229
|
-
cancelVariant:
|
|
46231
|
+
confirmVariant: Ie.Primary,
|
|
46232
|
+
cancelVariant: Ie.Secondary
|
|
46230
46233
|
},
|
|
46231
46234
|
[En.Danger]: {
|
|
46235
|
+
// TODO: rename to Error after implement Design system changes
|
|
46232
46236
|
container: "dial-danger-popup",
|
|
46233
|
-
confirmVariant:
|
|
46234
|
-
cancelVariant:
|
|
46237
|
+
confirmVariant: Ie.Error,
|
|
46238
|
+
cancelVariant: Ie.Secondary
|
|
46235
46239
|
}
|
|
46236
46240
|
}, M8 = ({
|
|
46237
46241
|
header: e,
|
|
@@ -46255,15 +46259,15 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46255
46259
|
}) => {
|
|
46256
46260
|
const w = r ? null : /* @__PURE__ */ z("div", { className: E8, children: [
|
|
46257
46261
|
/* @__PURE__ */ m(
|
|
46258
|
-
|
|
46262
|
+
Ae,
|
|
46259
46263
|
{
|
|
46260
|
-
variant:
|
|
46264
|
+
variant: Ie.Secondary,
|
|
46261
46265
|
label: n,
|
|
46262
46266
|
onClick: () => h ? h() : d?.()
|
|
46263
46267
|
}
|
|
46264
46268
|
),
|
|
46265
46269
|
/* @__PURE__ */ m(
|
|
46266
|
-
|
|
46270
|
+
Ae,
|
|
46267
46271
|
{
|
|
46268
46272
|
variant: kg[f].confirmVariant,
|
|
46269
46273
|
className: c,
|
|
@@ -46447,17 +46451,17 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46447
46451
|
size: b,
|
|
46448
46452
|
footer: /* @__PURE__ */ z("div", { className: "flex flex-row items-center justify-end gap-2 px-6 py-4", children: [
|
|
46449
46453
|
/* @__PURE__ */ m(
|
|
46450
|
-
|
|
46454
|
+
Ae,
|
|
46451
46455
|
{
|
|
46452
|
-
variant:
|
|
46456
|
+
variant: Ie.Secondary,
|
|
46453
46457
|
label: g,
|
|
46454
46458
|
onClick: x
|
|
46455
46459
|
}
|
|
46456
46460
|
),
|
|
46457
46461
|
/* @__PURE__ */ m(
|
|
46458
|
-
|
|
46462
|
+
Ae,
|
|
46459
46463
|
{
|
|
46460
|
-
variant:
|
|
46464
|
+
variant: Ie.Primary,
|
|
46461
46465
|
label: p,
|
|
46462
46466
|
onClick: E,
|
|
46463
46467
|
disabled: !f
|
|
@@ -46499,17 +46503,17 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46499
46503
|
}) => {
|
|
46500
46504
|
const f = o ? null : /* @__PURE__ */ z("div", { className: L8, children: [
|
|
46501
46505
|
/* @__PURE__ */ m(
|
|
46502
|
-
|
|
46506
|
+
Ae,
|
|
46503
46507
|
{
|
|
46504
|
-
variant:
|
|
46508
|
+
variant: Ie.Secondary,
|
|
46505
46509
|
label: i,
|
|
46506
46510
|
onClick: () => d ? d() : l?.()
|
|
46507
46511
|
}
|
|
46508
46512
|
),
|
|
46509
46513
|
/* @__PURE__ */ m(
|
|
46510
|
-
|
|
46514
|
+
Ae,
|
|
46511
46515
|
{
|
|
46512
|
-
variant:
|
|
46516
|
+
variant: Ie.Primary,
|
|
46513
46517
|
className: a,
|
|
46514
46518
|
label: s,
|
|
46515
46519
|
disabled: n,
|
|
@@ -46936,14 +46940,14 @@ const $8 = ({
|
|
|
46936
46940
|
const Re = !t && le ? se[0] : void 0, Ee = B(
|
|
46937
46941
|
() => Re ? e.find(($) => $.value === Re) : void 0,
|
|
46938
46942
|
[e, Re]
|
|
46939
|
-
),
|
|
46943
|
+
), ke = D(() => !t || se.length === 0 ? null : /* @__PURE__ */ m(
|
|
46940
46944
|
nv,
|
|
46941
46945
|
{
|
|
46942
46946
|
options: e,
|
|
46943
46947
|
selectedValues: se,
|
|
46944
46948
|
handleRemoveTag: oe
|
|
46945
46949
|
}
|
|
46946
|
-
), [t, e, se, oe]), me = D(() => t ? le ?
|
|
46950
|
+
), [t, e, se, oe]), me = D(() => t ? le ? ke() : /* @__PURE__ */ m("span", { className: "text-secondary truncate", children: c }) : Ee ? /* @__PURE__ */ z(Be, { children: [
|
|
46947
46951
|
Ee.icon && /* @__PURE__ */ m(Ve, { icon: Ee.icon }),
|
|
46948
46952
|
/* @__PURE__ */ m(
|
|
46949
46953
|
bt,
|
|
@@ -46959,7 +46963,7 @@ const $8 = ({
|
|
|
46959
46963
|
a,
|
|
46960
46964
|
i,
|
|
46961
46965
|
c,
|
|
46962
|
-
|
|
46966
|
+
ke,
|
|
46963
46967
|
Ee
|
|
46964
46968
|
]);
|
|
46965
46969
|
Dn(T, () => ({
|
|
@@ -47003,7 +47007,7 @@ const $8 = ({
|
|
|
47003
47007
|
}
|
|
47004
47008
|
),
|
|
47005
47009
|
b && /* @__PURE__ */ m(
|
|
47006
|
-
|
|
47010
|
+
Ae,
|
|
47007
47011
|
{
|
|
47008
47012
|
"aria-label": "Close select",
|
|
47009
47013
|
className: "shrink-0",
|
|
@@ -47862,9 +47866,9 @@ const nL = function(t, s, i) {
|
|
|
47862
47866
|
t && /* @__PURE__ */ m("p", { className: "mb-1", children: t }),
|
|
47863
47867
|
s && /* @__PURE__ */ m("p", { className: "mb-0.5", children: s }),
|
|
47864
47868
|
i && /* @__PURE__ */ m(
|
|
47865
|
-
|
|
47869
|
+
Ae,
|
|
47866
47870
|
{
|
|
47867
|
-
variant:
|
|
47871
|
+
variant: Ie.Tertiary,
|
|
47868
47872
|
label: i,
|
|
47869
47873
|
onClick: () => u.current?.click()
|
|
47870
47874
|
}
|
|
@@ -47981,9 +47985,9 @@ const nL = function(t, s, i) {
|
|
|
47981
47985
|
),
|
|
47982
47986
|
a && !!i?.length && /* @__PURE__ */ z("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
47983
47987
|
/* @__PURE__ */ m(
|
|
47984
|
-
|
|
47988
|
+
Ae,
|
|
47985
47989
|
{
|
|
47986
|
-
variant:
|
|
47990
|
+
variant: Ie.Tertiary,
|
|
47987
47991
|
className: "!text-error",
|
|
47988
47992
|
iconBefore: /* @__PURE__ */ m(Tn, { ...de }),
|
|
47989
47993
|
label: c,
|
|
@@ -47991,9 +47995,9 @@ const nL = function(t, s, i) {
|
|
|
47991
47995
|
}
|
|
47992
47996
|
),
|
|
47993
47997
|
(o ? o > i?.length : !0) && /* @__PURE__ */ m(
|
|
47994
|
-
|
|
47998
|
+
Ae,
|
|
47995
47999
|
{
|
|
47996
|
-
variant:
|
|
48000
|
+
variant: Ie.Tertiary,
|
|
47997
48001
|
iconBefore: /* @__PURE__ */ m(pw, { ...de }),
|
|
47998
48002
|
label: d,
|
|
47999
48003
|
onClick: g
|
|
@@ -48037,11 +48041,11 @@ const nL = function(t, s, i) {
|
|
|
48037
48041
|
items: e.items
|
|
48038
48042
|
},
|
|
48039
48043
|
onOpenChange: (o) => s(o),
|
|
48040
|
-
children: /* @__PURE__ */ m(
|
|
48044
|
+
children: /* @__PURE__ */ m(Ae, { ...e, iconAfter: i })
|
|
48041
48045
|
}
|
|
48042
48046
|
) });
|
|
48043
48047
|
}, uL = "w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-2", Vg = "w-full text-secondary flex items-center gap-2", hL = "flex min-h-0 min-w-0 h-full gap-4 overflow-hidden", gL = "flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4", pL = "w-full h-full rounded bg-layer-3 text-secondary overflow-auto min-w-0", fL = "flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0", mL = 280, CL = "Files", zs = 20, vL = "Files", dc = ".dial_folder", wL = 280, bL = 460, uc = 44, SL = 56, yL = 800;
|
|
48044
|
-
var
|
|
48048
|
+
var Ne = /* @__PURE__ */ ((e) => (e.ITEM = "item", e.FOLDER = "folder", e))(Ne || {}), RL = /* @__PURE__ */ ((e) => (e.FILE = "FILE", e.PROMPT = "PROMPT", e.CONVERSATION = "CONVERSATION", e.APPLICATION = "APPLICATION", e.TOOLSET = "TOOL_SET", e))(RL || {}), xL = /* @__PURE__ */ ((e) => (e.READ = "READ", e.WRITE = "WRITE", e.SHARE = "SHARE", e))(xL || {});
|
|
48045
48049
|
const yi = (e, t) => {
|
|
48046
48050
|
if (!(!e || !e.length || !t))
|
|
48047
48051
|
for (const s of e) {
|
|
@@ -48053,7 +48057,7 @@ const yi = (e, t) => {
|
|
|
48053
48057
|
if (!e?.length) return;
|
|
48054
48058
|
if (!t) return e[0];
|
|
48055
48059
|
const s = yi(e, t);
|
|
48056
|
-
if (s && s.nodeType ===
|
|
48060
|
+
if (s && s.nodeType === Ne.FOLDER) return s;
|
|
48057
48061
|
const i = t.split("/").filter(Boolean);
|
|
48058
48062
|
if (i.length <= 1) return e[0];
|
|
48059
48063
|
const o = "/" + i.slice(0, i.length - 1).join("/");
|
|
@@ -48063,7 +48067,7 @@ const yi = (e, t) => {
|
|
|
48063
48067
|
const t = [], s = (i) => {
|
|
48064
48068
|
const o = i.items ?? [];
|
|
48065
48069
|
for (const n of o)
|
|
48066
|
-
t.push(n), n.nodeType ===
|
|
48070
|
+
t.push(n), n.nodeType === Ne.FOLDER && s(n);
|
|
48067
48071
|
};
|
|
48068
48072
|
return s(e), t;
|
|
48069
48073
|
}, cd = (e) => (e.name ?? e.path.split("/").pop() ?? "").startsWith("."), zr = (e) => {
|
|
@@ -48378,10 +48382,10 @@ const va = ({
|
|
|
48378
48382
|
}), R = (E) => {
|
|
48379
48383
|
p?.(E), y(E.path);
|
|
48380
48384
|
}, x = (E, T) => E.map((k) => {
|
|
48381
|
-
const { path: F, nodeType: P, name: G, items: _ } = k, H = P ===
|
|
48385
|
+
const { path: F, nodeType: P, name: G, items: _ } = k, H = P === Ne.FOLDER;
|
|
48382
48386
|
if (!d && cd(k)) return null;
|
|
48383
48387
|
if (!H && !t) return;
|
|
48384
|
-
const ie = Array.isArray(_) && _.length > 0 && _.some((V) => V.nodeType ===
|
|
48388
|
+
const ie = Array.isArray(_) && _.length > 0 && _.some((V) => V.nodeType === Ne.FOLDER || t), ne = S.has(F), N = r === F, ue = i.has(F), U = u === F, se = o.has(F), te = n.has(F), Z = g && h && F === g && H, X = w && ((V) => w(V, k)), oe = N ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", fe = Z ? [] : f?.(k) ?? [];
|
|
48385
48389
|
return /* @__PURE__ */ m("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ z("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
|
|
48386
48390
|
/* @__PURE__ */ m(
|
|
48387
48391
|
It,
|
|
@@ -48546,10 +48550,10 @@ const va = ({
|
|
|
48546
48550
|
}, [u, S]), x = D(() => {
|
|
48547
48551
|
(!d || String(d).trim() === "") && f?.("");
|
|
48548
48552
|
}, [d, f]), E = D(() => w && S ? /* @__PURE__ */ m(
|
|
48549
|
-
|
|
48553
|
+
Ae,
|
|
48550
48554
|
{
|
|
48551
48555
|
className: "!p-[9px]",
|
|
48552
|
-
variant:
|
|
48556
|
+
variant: Ie.Secondary,
|
|
48553
48557
|
iconBefore: /* @__PURE__ */ m(vw, { ...de }),
|
|
48554
48558
|
onClick: () => {
|
|
48555
48559
|
y(!1), f?.("");
|
|
@@ -48631,7 +48635,7 @@ const pv = () => {
|
|
|
48631
48635
|
areHiddenFilesVisible: i,
|
|
48632
48636
|
onToggleHiddenFiles: o,
|
|
48633
48637
|
isNewButtonVisible: n,
|
|
48634
|
-
newButtonVariant: r =
|
|
48638
|
+
newButtonVariant: r = Ie.Secondary,
|
|
48635
48639
|
newButtonDropdownItems: a = [],
|
|
48636
48640
|
newButtonLabel: l = "New",
|
|
48637
48641
|
hiddenFilesSwitcherLabel: c = "Hidden files",
|
|
@@ -48688,7 +48692,7 @@ const pv = () => {
|
|
|
48688
48692
|
menu: { items: g },
|
|
48689
48693
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
48690
48694
|
children: /* @__PURE__ */ m(
|
|
48691
|
-
|
|
48695
|
+
Ae,
|
|
48692
48696
|
{
|
|
48693
48697
|
className: "h-[38px]",
|
|
48694
48698
|
iconBefore: /* @__PURE__ */ m(
|
|
@@ -48785,11 +48789,11 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48785
48789
|
ref: a,
|
|
48786
48790
|
className: "absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",
|
|
48787
48791
|
children: s.map(({ key: u, icon: h, title: g }) => /* @__PURE__ */ m(
|
|
48788
|
-
|
|
48792
|
+
Ae,
|
|
48789
48793
|
{
|
|
48790
48794
|
iconBefore: h,
|
|
48791
48795
|
label: g,
|
|
48792
|
-
variant:
|
|
48796
|
+
variant: Ie.Secondary,
|
|
48793
48797
|
hideTitleOnMobile: !0
|
|
48794
48798
|
},
|
|
48795
48799
|
u
|
|
@@ -48805,12 +48809,12 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48805
48809
|
"aria-label": "File bulk actions",
|
|
48806
48810
|
children: [
|
|
48807
48811
|
/* @__PURE__ */ m("div", { ref: r, children: /* @__PURE__ */ m(
|
|
48808
|
-
|
|
48812
|
+
Ae,
|
|
48809
48813
|
{
|
|
48810
48814
|
label: d,
|
|
48811
48815
|
onClick: t,
|
|
48812
48816
|
textClassName: "text-accent-primary whitespace-nowrap",
|
|
48813
|
-
variant:
|
|
48817
|
+
variant: Ie.Tertiary,
|
|
48814
48818
|
iconBefore: /* @__PURE__ */ m(fo, { ...de, className: "text-accent-primary" })
|
|
48815
48819
|
}
|
|
48816
48820
|
) }),
|
|
@@ -48821,7 +48825,7 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48821
48825
|
menu: { items: c },
|
|
48822
48826
|
allowedPlacements: ["bottom", "bottom-start"],
|
|
48823
48827
|
children: /* @__PURE__ */ m(
|
|
48824
|
-
|
|
48828
|
+
Ae,
|
|
48825
48829
|
{
|
|
48826
48830
|
className: "h-[38px]",
|
|
48827
48831
|
iconBefore: /* @__PURE__ */ m(
|
|
@@ -48836,12 +48840,12 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48836
48840
|
}
|
|
48837
48841
|
),
|
|
48838
48842
|
l.map(({ key: u, icon: h, title: g, onClick: p, disabled: f }) => /* @__PURE__ */ m(
|
|
48839
|
-
|
|
48843
|
+
Ae,
|
|
48840
48844
|
{
|
|
48841
48845
|
className: "!p-[9px]",
|
|
48842
48846
|
iconBefore: h,
|
|
48843
48847
|
label: g,
|
|
48844
|
-
variant:
|
|
48848
|
+
variant: Ie.Secondary,
|
|
48845
48849
|
hideTitleOnMobile: !0,
|
|
48846
48850
|
disabled: f,
|
|
48847
48851
|
onClick: (C) => p?.({ key: u, domEvent: C })
|
|
@@ -48920,7 +48924,7 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48920
48924
|
sourceUrl: E.path,
|
|
48921
48925
|
destinationUrl: `${w}/${F}`,
|
|
48922
48926
|
overwrite: S && k,
|
|
48923
|
-
nodeType: E.nodeType ??
|
|
48927
|
+
nodeType: E.nodeType ?? Ne.ITEM,
|
|
48924
48928
|
...y ?? {}
|
|
48925
48929
|
};
|
|
48926
48930
|
});
|
|
@@ -48935,7 +48939,7 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48935
48939
|
sourceUrl: T.path,
|
|
48936
48940
|
destinationUrl: `${w}/${G}`,
|
|
48937
48941
|
overwrite: P,
|
|
48938
|
-
nodeType: T.nodeType ??
|
|
48942
|
+
nodeType: T.nodeType ?? Ne.ITEM,
|
|
48939
48943
|
...y ?? {}
|
|
48940
48944
|
};
|
|
48941
48945
|
});
|
|
@@ -49285,7 +49289,7 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49285
49289
|
name: K.name,
|
|
49286
49290
|
folderId: Y,
|
|
49287
49291
|
path: K.name,
|
|
49288
|
-
nodeType:
|
|
49292
|
+
nodeType: Ne.ITEM,
|
|
49289
49293
|
parentPath: Y,
|
|
49290
49294
|
contentLength: K.fileContent.size
|
|
49291
49295
|
})),
|
|
@@ -49295,26 +49299,26 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49295
49299
|
u(void 0), p.current = K;
|
|
49296
49300
|
const Ce = _(A);
|
|
49297
49301
|
if (Ce.length > 0) {
|
|
49298
|
-
const
|
|
49302
|
+
const ke = s ? (s / 1048576).toFixed(2) : 0, me = o.oversizedFiles || `Files exceed maximum size (${ke}MB): ${Ce.join(", ")}`;
|
|
49299
49303
|
return u(me), !1;
|
|
49300
49304
|
}
|
|
49301
49305
|
if (t)
|
|
49302
49306
|
try {
|
|
49303
|
-
const
|
|
49307
|
+
const ke = await t(
|
|
49304
49308
|
A,
|
|
49305
49309
|
K,
|
|
49306
49310
|
Y
|
|
49307
49311
|
);
|
|
49308
|
-
if (!
|
|
49312
|
+
if (!ke.valid)
|
|
49309
49313
|
return u(
|
|
49310
|
-
|
|
49314
|
+
ke.message || o.validationFailed || "Validation failed"
|
|
49311
49315
|
), !1;
|
|
49312
49316
|
} catch {
|
|
49313
49317
|
return u(
|
|
49314
49318
|
o.validationError || "Validation error occurred"
|
|
49315
49319
|
), !1;
|
|
49316
49320
|
}
|
|
49317
|
-
const le = new Map(A.map((
|
|
49321
|
+
const le = new Map(A.map((ke) => [ke.name, ke]));
|
|
49318
49322
|
C(le);
|
|
49319
49323
|
const Re = H(A, Y);
|
|
49320
49324
|
return w({ destinationFolder: Y }), x(Y, Re, {
|
|
@@ -49414,7 +49418,7 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49414
49418
|
}
|
|
49415
49419
|
const Re = le.name.replace(/\.zip$/i, "");
|
|
49416
49420
|
if (Y.some(
|
|
49417
|
-
(
|
|
49421
|
+
(ke) => ke.nodeType === Ne.FOLDER && ke.name.toLowerCase() === Re.toLowerCase()
|
|
49418
49422
|
)) {
|
|
49419
49423
|
u(
|
|
49420
49424
|
o.validationFailed || `Folder with name "${Re}" already exists`
|
|
@@ -49502,7 +49506,7 @@ const t7 = ({
|
|
|
49502
49506
|
n(void 0);
|
|
49503
49507
|
return;
|
|
49504
49508
|
}
|
|
49505
|
-
const p = o.nodeType ===
|
|
49509
|
+
const p = o.nodeType === Ne.ITEM;
|
|
49506
49510
|
let f = g.trim();
|
|
49507
49511
|
if (p) {
|
|
49508
49512
|
const b = _g(o.name);
|
|
@@ -49533,7 +49537,7 @@ const t7 = ({
|
|
|
49533
49537
|
const f = g.trim();
|
|
49534
49538
|
if (!f)
|
|
49535
49539
|
return r.emptyName;
|
|
49536
|
-
const C = p.nodeType ===
|
|
49540
|
+
const C = p.nodeType === Ne.ITEM;
|
|
49537
49541
|
let v = f;
|
|
49538
49542
|
if (C) {
|
|
49539
49543
|
const b = _g(p.name);
|
|
@@ -49555,7 +49559,7 @@ const t7 = ({
|
|
|
49555
49559
|
return null;
|
|
49556
49560
|
},
|
|
49557
49561
|
[t, r, e]
|
|
49558
|
-
), h = D((g) => g.nodeType ===
|
|
49562
|
+
), h = D((g) => g.nodeType === Ne.ITEM ? e7(g.name) : g.name, []);
|
|
49559
49563
|
return {
|
|
49560
49564
|
renamedPath: a,
|
|
49561
49565
|
renamedItem: o,
|
|
@@ -49628,7 +49632,7 @@ const t7 = ({
|
|
|
49628
49632
|
if (!f)
|
|
49629
49633
|
return c.emptyName;
|
|
49630
49634
|
if (e && new Set(
|
|
49631
|
-
(e.items ?? []).filter((v) => v.nodeType ===
|
|
49635
|
+
(e.items ?? []).filter((v) => v.nodeType === Ne.FOLDER).map((v) => v.name.toLowerCase())
|
|
49632
49636
|
).has(f.toLowerCase()))
|
|
49633
49637
|
return c.duplicateName;
|
|
49634
49638
|
if (s && e) {
|
|
@@ -49677,7 +49681,7 @@ const t7 = ({
|
|
|
49677
49681
|
return /* @__PURE__ */ z(Be, { children: [
|
|
49678
49682
|
e,
|
|
49679
49683
|
/* @__PURE__ */ m(
|
|
49680
|
-
|
|
49684
|
+
Ae,
|
|
49681
49685
|
{
|
|
49682
49686
|
disabled: i,
|
|
49683
49687
|
className: n,
|
|
@@ -49856,25 +49860,25 @@ const d7 = ({
|
|
|
49856
49860
|
const {
|
|
49857
49861
|
selectedPaths: Re,
|
|
49858
49862
|
clearSelection: Ee,
|
|
49859
|
-
setSelectedPaths:
|
|
49863
|
+
setSelectedPaths: ke
|
|
49860
49864
|
} = c7({
|
|
49861
49865
|
selectedPaths: a,
|
|
49862
49866
|
defaultSelectedPaths: l,
|
|
49863
49867
|
onSelectedPathsChange: c
|
|
49864
49868
|
}), me = B(() => {
|
|
49865
|
-
const
|
|
49869
|
+
const Oe = /* @__PURE__ */ new Map();
|
|
49866
49870
|
return Re.forEach((kt) => {
|
|
49867
49871
|
const ts = yi(s, kt);
|
|
49868
|
-
ts &&
|
|
49869
|
-
}),
|
|
49872
|
+
ts && Oe.set(kt, ts);
|
|
49873
|
+
}), Oe;
|
|
49870
49874
|
}, [Re, s]), { currentPath: be, setCurrentPath: $, handlePathChange: Se } = jL({
|
|
49871
49875
|
path: o,
|
|
49872
49876
|
defaultPath: n,
|
|
49873
49877
|
onPathChange: S,
|
|
49874
49878
|
onSelectionClear: Ee
|
|
49875
49879
|
}), [ve, Te] = I(), Ze = w?.destinationFolderPath ?? ve, dt = D(
|
|
49876
|
-
(
|
|
49877
|
-
w?.setDestinationFolderPath ? w.setDestinationFolderPath(
|
|
49880
|
+
(Oe) => {
|
|
49881
|
+
w?.setDestinationFolderPath ? w.setDestinationFolderPath(Oe) : Te(Oe);
|
|
49878
49882
|
},
|
|
49879
49883
|
[w]
|
|
49880
49884
|
), { areHiddenFilesVisible: ze, toggleHiddenFilesVisibility: $t } = _L({
|
|
@@ -49933,7 +49937,7 @@ const d7 = ({
|
|
|
49933
49937
|
handleConflictDuplicate: _n,
|
|
49934
49938
|
handleConflictDecideForEach: Un
|
|
49935
49939
|
} = $L({
|
|
49936
|
-
getDestinationFiles: (
|
|
49940
|
+
getDestinationFiles: (Oe) => zg(s, Oe)?.items ?? [],
|
|
49937
49941
|
onCopyFiles: R,
|
|
49938
49942
|
onMoveToFiles: x,
|
|
49939
49943
|
onCopySuccess: Ee,
|
|
@@ -49991,17 +49995,17 @@ const d7 = ({
|
|
|
49991
49995
|
allowedFileTypes: Y,
|
|
49992
49996
|
validationMessages: _
|
|
49993
49997
|
}), rl = D(
|
|
49994
|
-
(
|
|
49998
|
+
(Oe) => {
|
|
49995
49999
|
const kt = be ?? "", ts = Dt?.items ?? [];
|
|
49996
|
-
Ii(
|
|
50000
|
+
Ii(Oe, kt, ts);
|
|
49997
50001
|
},
|
|
49998
50002
|
[be, Dt, Ii]
|
|
49999
50003
|
), No = D(() => {
|
|
50000
|
-
const
|
|
50001
|
-
Lo(
|
|
50004
|
+
const Oe = be ?? "", kt = Dt?.items ?? [];
|
|
50005
|
+
Lo(Oe, kt);
|
|
50002
50006
|
}, [be, Dt, Lo]), al = D(() => {
|
|
50003
|
-
const
|
|
50004
|
-
it(
|
|
50007
|
+
const Oe = be ?? "", kt = Dt?.items ?? [];
|
|
50008
|
+
it(Oe, kt);
|
|
50005
50009
|
}, [be, Dt, it]), {
|
|
50006
50010
|
isCreatingFolder: Ho,
|
|
50007
50011
|
newFolderTempId: Is,
|
|
@@ -50026,7 +50030,7 @@ const d7 = ({
|
|
|
50026
50030
|
id: vt.id ?? vt.path,
|
|
50027
50031
|
name: vt.name ?? vt.path.split("/").pop() ?? "",
|
|
50028
50032
|
updatedAt: vt.updatedAt,
|
|
50029
|
-
size: vt.nodeType ===
|
|
50033
|
+
size: vt.nodeType === Ne.ITEM ? zr(vt.contentLength) : "",
|
|
50030
50034
|
author: vt.author,
|
|
50031
50035
|
path: vt.path,
|
|
50032
50036
|
nodeType: vt.nodeType,
|
|
@@ -50037,7 +50041,7 @@ const d7 = ({
|
|
|
50037
50041
|
id: ut.id ?? ut.path,
|
|
50038
50042
|
name: ut.name ?? ut.path.split("/").pop() ?? "",
|
|
50039
50043
|
updatedAt: ut.updatedAt,
|
|
50040
|
-
size: ut.nodeType ===
|
|
50044
|
+
size: ut.nodeType === Ne.ITEM ? zr(ut.contentLength) : "",
|
|
50041
50045
|
author: ut.author,
|
|
50042
50046
|
path: ut.path,
|
|
50043
50047
|
nodeType: ut.nodeType,
|
|
@@ -50046,14 +50050,14 @@ const d7 = ({
|
|
|
50046
50050
|
owner: ut.owner
|
|
50047
50051
|
}));
|
|
50048
50052
|
}
|
|
50049
|
-
const
|
|
50050
|
-
let ts =
|
|
50053
|
+
const Oe = oo(Do).trim(), kt = Dt?.items ?? [];
|
|
50054
|
+
let ts = Oe ? EL(Dt) : kt;
|
|
50051
50055
|
ze || (ts = ts.filter(($e) => !cd($e)));
|
|
50052
50056
|
const zo = ts.map(($e) => ({
|
|
50053
50057
|
id: $e.id ?? $e.path,
|
|
50054
50058
|
name: $e.name ?? $e.path.split("/").pop() ?? "",
|
|
50055
50059
|
updatedAt: $e.updatedAt,
|
|
50056
|
-
size: $e.nodeType ===
|
|
50060
|
+
size: $e.nodeType === Ne.ITEM ? zr($e.contentLength) : "",
|
|
50057
50061
|
author: $e.author,
|
|
50058
50062
|
path: $e.path,
|
|
50059
50063
|
nodeType: $e.nodeType,
|
|
@@ -50062,19 +50066,19 @@ const d7 = ({
|
|
|
50062
50066
|
owner: $e.owner,
|
|
50063
50067
|
contentType: $e.contentType
|
|
50064
50068
|
}));
|
|
50065
|
-
if (Ho && Is && !
|
|
50069
|
+
if (Ho && Is && !Oe && zo.unshift({
|
|
50066
50070
|
id: Is,
|
|
50067
50071
|
name: "",
|
|
50068
50072
|
updatedAt: void 0,
|
|
50069
50073
|
size: "",
|
|
50070
50074
|
author: void 0,
|
|
50071
50075
|
path: Is,
|
|
50072
|
-
nodeType:
|
|
50076
|
+
nodeType: Ne.FOLDER,
|
|
50073
50077
|
extension: void 0,
|
|
50074
50078
|
isTemporary: !0,
|
|
50075
50079
|
owner: void 0
|
|
50076
|
-
}), !
|
|
50077
|
-
const bv =
|
|
50080
|
+
}), !Oe) return zo;
|
|
50081
|
+
const bv = Oe.split(/\s+/).filter(Boolean);
|
|
50078
50082
|
return zo.filter(($e) => {
|
|
50079
50083
|
if ($e.isTemporary) return !0;
|
|
50080
50084
|
const vt = oo($e.name), ut = oo($e.author), Sv = FL($e.extension);
|
|
@@ -50091,18 +50095,18 @@ const d7 = ({
|
|
|
50091
50095
|
Ho,
|
|
50092
50096
|
Is
|
|
50093
50097
|
]), Pe = D(
|
|
50094
|
-
(
|
|
50095
|
-
Se(
|
|
50098
|
+
(Oe) => {
|
|
50099
|
+
Se(Oe.path);
|
|
50096
50100
|
},
|
|
50097
50101
|
[Se]
|
|
50098
50102
|
), As = D(
|
|
50099
|
-
(
|
|
50100
|
-
Se(
|
|
50103
|
+
(Oe) => {
|
|
50104
|
+
Se(Oe);
|
|
50101
50105
|
},
|
|
50102
50106
|
[Se]
|
|
50103
50107
|
), ks = D(
|
|
50104
|
-
(
|
|
50105
|
-
|
|
50108
|
+
(Oe) => {
|
|
50109
|
+
Oe.nodeType === Ne.FOLDER ? Se(Oe.path) : y?.(Oe);
|
|
50106
50110
|
},
|
|
50107
50111
|
[Se, y]
|
|
50108
50112
|
), { expandedPaths: Ai, setExpandedPaths: dl, collapseAll: ul } = gv({
|
|
@@ -50157,7 +50161,7 @@ const d7 = ({
|
|
|
50157
50161
|
setIsTreeCollapsed: Ge,
|
|
50158
50162
|
selectedPaths: Re,
|
|
50159
50163
|
selectedFiles: me,
|
|
50160
|
-
setSelectedPaths:
|
|
50164
|
+
setSelectedPaths: ke,
|
|
50161
50165
|
clearSelection: Ee,
|
|
50162
50166
|
currentFolder: Dt,
|
|
50163
50167
|
gridRows: j,
|
|
@@ -50373,10 +50377,10 @@ const vv = ({
|
|
|
50373
50377
|
footer: /* @__PURE__ */ z("div", { className: "flex justify-between space-x-2 py-4 px-6", children: [
|
|
50374
50378
|
/* @__PURE__ */ z("div", { className: "flex space-x-4", children: [
|
|
50375
50379
|
/* @__PURE__ */ m(
|
|
50376
|
-
|
|
50380
|
+
Ae,
|
|
50377
50381
|
{
|
|
50378
50382
|
label: n,
|
|
50379
|
-
variant:
|
|
50383
|
+
variant: Ie.Tertiary,
|
|
50380
50384
|
iconBefore: /* @__PURE__ */ m(Sw, { ...de }),
|
|
50381
50385
|
onClick: () => {
|
|
50382
50386
|
w.current?.createFolder();
|
|
@@ -50405,28 +50409,28 @@ const vv = ({
|
|
|
50405
50409
|
] }),
|
|
50406
50410
|
/* @__PURE__ */ z("div", { className: "flex space-x-4", children: [
|
|
50407
50411
|
/* @__PURE__ */ m(
|
|
50408
|
-
|
|
50412
|
+
Ae,
|
|
50409
50413
|
{
|
|
50410
50414
|
onClick: e,
|
|
50411
50415
|
label: "Cancel",
|
|
50412
|
-
variant:
|
|
50416
|
+
variant: Ie.Secondary
|
|
50413
50417
|
}
|
|
50414
50418
|
),
|
|
50415
50419
|
y ? /* @__PURE__ */ m(Es, { tooltip: g, children: /* @__PURE__ */ m(
|
|
50416
|
-
|
|
50420
|
+
Ae,
|
|
50417
50421
|
{
|
|
50418
50422
|
onClick: t,
|
|
50419
50423
|
label: r === "copy" ? i : o,
|
|
50420
|
-
variant:
|
|
50424
|
+
variant: Ie.Primary,
|
|
50421
50425
|
disabled: y,
|
|
50422
50426
|
"aria-disabled": y
|
|
50423
50427
|
}
|
|
50424
50428
|
) }) : /* @__PURE__ */ m(
|
|
50425
|
-
|
|
50429
|
+
Ae,
|
|
50426
50430
|
{
|
|
50427
50431
|
onClick: t,
|
|
50428
50432
|
label: r === "copy" ? i : o,
|
|
50429
|
-
variant:
|
|
50433
|
+
variant: Ie.Primary
|
|
50430
50434
|
}
|
|
50431
50435
|
)
|
|
50432
50436
|
] })
|
|
@@ -50580,7 +50584,7 @@ const vv = ({
|
|
|
50580
50584
|
label: e[he.Rename],
|
|
50581
50585
|
icon: /* @__PURE__ */ m(op, { ...de, className: "text-secondary" }),
|
|
50582
50586
|
onClick: () => n(c.path)
|
|
50583
|
-
}), e[he.Info] && c.nodeType ===
|
|
50587
|
+
}), e[he.Info] && c.nodeType === Ne.ITEM && d.push({
|
|
50584
50588
|
key: he.Info,
|
|
50585
50589
|
label: e[he.Info],
|
|
50586
50590
|
icon: /* @__PURE__ */ m(bd, { ...de, className: "text-secondary" }),
|
|
@@ -50663,7 +50667,7 @@ const vv = ({
|
|
|
50663
50667
|
id: X.path,
|
|
50664
50668
|
name: X.name,
|
|
50665
50669
|
path: X.path,
|
|
50666
|
-
nodeType: X.nodeType ??
|
|
50670
|
+
nodeType: X.nodeType ?? Ne.ITEM,
|
|
50667
50671
|
action: F.get(X.path) || pt.Replace
|
|
50668
50672
|
})), [n, F]), se = B(() => [
|
|
50669
50673
|
{
|
|
@@ -50674,7 +50678,7 @@ const vv = ({
|
|
|
50674
50678
|
floatingFilter: !1,
|
|
50675
50679
|
filter: !1,
|
|
50676
50680
|
resizable: !1,
|
|
50677
|
-
cellRenderer: (X) => X.data?.nodeType ===
|
|
50681
|
+
cellRenderer: (X) => X.data?.nodeType === Ne.FOLDER ? /* @__PURE__ */ m(
|
|
50678
50682
|
Hd,
|
|
50679
50683
|
{
|
|
50680
50684
|
name: X.data.name,
|
|
@@ -50841,19 +50845,19 @@ const vv = ({
|
|
|
50841
50845
|
dividers: !1,
|
|
50842
50846
|
footer: /* @__PURE__ */ z("div", { className: "flex justify-end gap-3 py-4 px-6", children: [
|
|
50843
50847
|
/* @__PURE__ */ m(
|
|
50844
|
-
|
|
50848
|
+
Ae,
|
|
50845
50849
|
{
|
|
50846
50850
|
onClick: t,
|
|
50847
50851
|
label: h,
|
|
50848
|
-
variant:
|
|
50852
|
+
variant: Ie.Secondary
|
|
50849
50853
|
}
|
|
50850
50854
|
),
|
|
50851
50855
|
/* @__PURE__ */ m(
|
|
50852
|
-
|
|
50856
|
+
Ae,
|
|
50853
50857
|
{
|
|
50854
50858
|
onClick: Z,
|
|
50855
50859
|
label: u,
|
|
50856
|
-
variant:
|
|
50860
|
+
variant: Ie.Primary
|
|
50857
50861
|
}
|
|
50858
50862
|
)
|
|
50859
50863
|
] }),
|
|
@@ -50894,7 +50898,7 @@ const vv = ({
|
|
|
50894
50898
|
}) => /* @__PURE__ */ m("div", { className: "flex", children: /* @__PURE__ */ m("div", { className: "flex flex-1 min-w-0", children: /* @__PURE__ */ m(
|
|
50895
50899
|
va,
|
|
50896
50900
|
{
|
|
50897
|
-
type: s ===
|
|
50901
|
+
type: s === Ne.FOLDER ? Zt.Folder : Zt.File,
|
|
50898
50902
|
name: t,
|
|
50899
50903
|
elementId: e,
|
|
50900
50904
|
shared: a,
|
|
@@ -51146,7 +51150,7 @@ const S7 = ({
|
|
|
51146
51150
|
onRenameSave: le,
|
|
51147
51151
|
onRenameCancel: Re,
|
|
51148
51152
|
onRenameValidate: Ee,
|
|
51149
|
-
getDisplayName:
|
|
51153
|
+
getDisplayName: ke,
|
|
51150
51154
|
isDragging: me,
|
|
51151
51155
|
isDraggingOverWindow: be,
|
|
51152
51156
|
handleDragEnter: $,
|
|
@@ -51217,7 +51221,7 @@ const S7 = ({
|
|
|
51217
51221
|
gt.Path,
|
|
51218
51222
|
gt.Actions
|
|
51219
51223
|
] : Zn, [To, Zn]), Oo = D(
|
|
51220
|
-
(j, Pe) => !(j.nodeType ===
|
|
51224
|
+
(j, Pe) => !(j.nodeType === Ne.FOLDER || !j.contentType || hv(Pe, j.contentType, j.name)),
|
|
51221
51225
|
[]
|
|
51222
51226
|
), il = B(() => [
|
|
51223
51227
|
{
|
|
@@ -51249,7 +51253,7 @@ const S7 = ({
|
|
|
51249
51253
|
onCancel: Ai,
|
|
51250
51254
|
inputContainerClassName: ge([
|
|
51251
51255
|
"!h-9",
|
|
51252
|
-
it && Pe ===
|
|
51256
|
+
it && Pe === Ne.ITEM && "!h-10"
|
|
51253
51257
|
])
|
|
51254
51258
|
}
|
|
51255
51259
|
);
|
|
@@ -51260,7 +51264,7 @@ const S7 = ({
|
|
|
51260
51264
|
getDisplayName: tr,
|
|
51261
51265
|
onRenameValidate: pl,
|
|
51262
51266
|
onRenameSave: fl,
|
|
51263
|
-
onRenameCancel:
|
|
51267
|
+
onRenameCancel: Oe
|
|
51264
51268
|
} = j.context;
|
|
51265
51269
|
if (hl === no.Grid && gl === j.data?.path && Vo && j.data) {
|
|
51266
51270
|
const ts = tr(Vo);
|
|
@@ -51268,17 +51272,17 @@ const S7 = ({
|
|
|
51268
51272
|
va,
|
|
51269
51273
|
{
|
|
51270
51274
|
name: ts,
|
|
51271
|
-
type: Pe ===
|
|
51275
|
+
type: Pe === Ne.FOLDER ? Zt.Folder : Zt.File,
|
|
51272
51276
|
elementId: `rename-${j.data.id}`,
|
|
51273
51277
|
editing: !0,
|
|
51274
51278
|
shared: Xs,
|
|
51275
51279
|
iconSize: zs,
|
|
51276
51280
|
validate: (zo) => pl(zo, Vo),
|
|
51277
51281
|
onSave: fl,
|
|
51278
|
-
onCancel:
|
|
51282
|
+
onCancel: Oe,
|
|
51279
51283
|
inputContainerClassName: ge([
|
|
51280
51284
|
"!h-9",
|
|
51281
|
-
it && Pe ===
|
|
51285
|
+
it && Pe === Ne.ITEM && "!h-10"
|
|
51282
51286
|
])
|
|
51283
51287
|
}
|
|
51284
51288
|
);
|
|
@@ -51295,7 +51299,7 @@ const S7 = ({
|
|
|
51295
51299
|
dateLocale: ko,
|
|
51296
51300
|
dateOptions: Ii
|
|
51297
51301
|
}
|
|
51298
|
-
) : Pe ===
|
|
51302
|
+
) : Pe === Ne.FOLDER ? /* @__PURE__ */ m(
|
|
51299
51303
|
Hd,
|
|
51300
51304
|
{
|
|
51301
51305
|
name: j.data.name,
|
|
@@ -51720,12 +51724,12 @@ const S7 = ({
|
|
|
51720
51724
|
headerHeight: uc,
|
|
51721
51725
|
rowHeight: uc,
|
|
51722
51726
|
...it ? {
|
|
51723
|
-
getRowHeight: (j) => j.data?.nodeType ===
|
|
51727
|
+
getRowHeight: (j) => j.data?.nodeType === Ne.FOLDER ? uc : SL
|
|
51724
51728
|
} : {},
|
|
51725
51729
|
context: {
|
|
51726
51730
|
cancelFolderCreation: Ge,
|
|
51727
51731
|
saveFolderCreation: rt,
|
|
51728
|
-
getDisplayName:
|
|
51732
|
+
getDisplayName: ke,
|
|
51729
51733
|
onRenameCancel: Re,
|
|
51730
51734
|
onRenameSave: le,
|
|
51731
51735
|
onRenameValidate: Ee,
|
|
@@ -51847,14 +51851,14 @@ const S7 = ({
|
|
|
51847
51851
|
};
|
|
51848
51852
|
export {
|
|
51849
51853
|
Wi as AlertVariant,
|
|
51850
|
-
|
|
51854
|
+
Ie as ButtonVariant,
|
|
51851
51855
|
En as ConfirmationPopupVariant,
|
|
51852
51856
|
L7 as DialAlert,
|
|
51853
51857
|
j7 as DialAutocompleteInput,
|
|
51854
51858
|
iv as DialAutocompleteInputValue,
|
|
51855
51859
|
f8 as DialBreadcrumb,
|
|
51856
51860
|
br as DialBreadcrumbItem,
|
|
51857
|
-
|
|
51861
|
+
Ae as DialButton,
|
|
51858
51862
|
Bg as DialButtonDropdown,
|
|
51859
51863
|
Wr as DialCheckbox,
|
|
51860
51864
|
ZC as DialCloseButton,
|
|
@@ -51871,7 +51875,7 @@ export {
|
|
|
51871
51875
|
he as DialFileManagerActions,
|
|
51872
51876
|
dd as DialFileManagerTabs,
|
|
51873
51877
|
Nd as DialFileName,
|
|
51874
|
-
|
|
51878
|
+
Ne as DialFileNodeType,
|
|
51875
51879
|
xL as DialFilePermission,
|
|
51876
51880
|
RL as DialFileResourceType,
|
|
51877
51881
|
Hd as DialFolderName,
|