@orangelogic/design-system 2.53.0 → 2.54.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/library/chunks/{file-on-demand.UNUgyyno.js → file-on-demand.Cr7E_KqH.js} +61 -39
- package/library/components/checkbox.js +1 -4
- package/library/components/file-on-demand.js +1 -1
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +52 -57
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +1 -2
- package/library/packages/events/src/cx-clear-upload.d.ts +6 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@ import { C as pt, s as ht, a as ut, b as Q } from "./tree.82OigIgE.js";
|
|
|
4
4
|
import { n as p, C as Y, x as r, c as K, i as gt, E as bt } from "./custom-element.vnXBMQxc.js";
|
|
5
5
|
import { c as xt } from "./component.styles.CI-v8BZa.js";
|
|
6
6
|
import { L as Z } from "./i18n.C3Z8Xe8q.js";
|
|
7
|
-
import { k as $t, h as mt, i as
|
|
7
|
+
import { k as $t, h as mt, i as _t, w as L, j as wt, l as St, f as It, g as Ct, d as At, m as Dt, n as Tt } from "./watch.BCJD77bD.js";
|
|
8
8
|
import { p as P } from "./string.D6poLUEC.js";
|
|
9
9
|
import { r as x } from "./state.Cw55xXlb.js";
|
|
10
10
|
import { e as R } from "./query.BBf1UFkC.js";
|
|
11
11
|
import { e as A } from "./class-map.CoZTSvbM.js";
|
|
12
12
|
import { c as F } from "./repeat.CauKaXyy.js";
|
|
13
13
|
import { n as g } from "./when.Dr1es41R.js";
|
|
14
|
-
import { a as zt, i as
|
|
14
|
+
import { a as zt, i as ft, c as Et, b as tt } from "./_baseUniq.BUihBa8c.js";
|
|
15
15
|
import Lt from "../components/avatar.js";
|
|
16
16
|
import { C as Rt } from "./button.CiWlWCNb.js";
|
|
17
17
|
import { C as Pt } from "./dialog.C28qzMSQ.js";
|
|
@@ -75,7 +75,7 @@ function re(t, e, i, o) {
|
|
|
75
75
|
}
|
|
76
76
|
function ne(t, e) {
|
|
77
77
|
return function(i, o) {
|
|
78
|
-
var s =
|
|
78
|
+
var s = _t(i) ? te : re, a = e ? e() : {};
|
|
79
79
|
return s(i, t, zt(o), a);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
@@ -142,7 +142,7 @@ const le = {
|
|
|
142
142
|
return { data: [], totalCount: 0 };
|
|
143
143
|
let h = d;
|
|
144
144
|
h.endsWith("/") && (h = h.slice(0, -1));
|
|
145
|
-
const
|
|
145
|
+
const f = de.GET_CONTENT, _ = [
|
|
146
146
|
["Token", u],
|
|
147
147
|
[
|
|
148
148
|
"extraFilters",
|
|
@@ -162,8 +162,8 @@ const le = {
|
|
|
162
162
|
["seeThru", a?.trim() || l ? "true" : "false"],
|
|
163
163
|
["limit", s.toString()],
|
|
164
164
|
["start", m.toString()]
|
|
165
|
-
], z = new URL(`${h}${
|
|
166
|
-
|
|
165
|
+
], z = new URL(`${h}${f}`);
|
|
166
|
+
_.forEach(([S, E]) => {
|
|
167
167
|
z.searchParams.append(S, E);
|
|
168
168
|
});
|
|
169
169
|
const I = await fetch(z.toString(), {
|
|
@@ -251,14 +251,14 @@ const q = "-", $ = (t) => {
|
|
|
251
251
|
s && e.add(s);
|
|
252
252
|
}
|
|
253
253
|
return e;
|
|
254
|
-
},
|
|
254
|
+
}, _e = (t, e) => {
|
|
255
255
|
const i = t.split("/"), o = e.split("/");
|
|
256
256
|
return i.slice(0, o.length + 1).join("/");
|
|
257
257
|
};
|
|
258
|
-
var
|
|
258
|
+
var fe = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, D = (t, e, i, o) => {
|
|
259
259
|
for (var s = o > 1 ? void 0 : o ? ve(e, i) : e, a = t.length - 1, l; a >= 0; a--)
|
|
260
260
|
(l = t[a]) && (s = (o ? l(e, i, s) : l(s)) || s);
|
|
261
|
-
return o && s &&
|
|
261
|
+
return o && s && fe(e, i, s), s;
|
|
262
262
|
};
|
|
263
263
|
let v = class extends Y {
|
|
264
264
|
constructor() {
|
|
@@ -327,12 +327,12 @@ let v = class extends Y {
|
|
|
327
327
|
return;
|
|
328
328
|
let t = !1;
|
|
329
329
|
const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), o = ot(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet], a = (u, h) => {
|
|
330
|
-
u.forEach((
|
|
331
|
-
const
|
|
332
|
-
if (!
|
|
330
|
+
u.forEach((f) => {
|
|
331
|
+
const _ = $(f);
|
|
332
|
+
if (!_.path.trim() || !_.id.trim())
|
|
333
333
|
return !1;
|
|
334
|
-
const z = P(
|
|
335
|
-
o && z.startsWith(I) && z !== I && h.add(
|
|
334
|
+
const z = P(_.path), I = P(o);
|
|
335
|
+
o && z.startsWith(I) && z !== I && h.add(_e(_.path, o));
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
338
|
a(this.removedIDs, i), a(s, e);
|
|
@@ -340,10 +340,10 @@ let v = class extends Y {
|
|
|
340
340
|
const h = $(u);
|
|
341
341
|
if (!h.path.trim() || !h.id.trim())
|
|
342
342
|
return !1;
|
|
343
|
-
const
|
|
343
|
+
const f = k({
|
|
344
344
|
id: this.folder?.id ?? "",
|
|
345
345
|
path: o
|
|
346
|
-
}),
|
|
346
|
+
}), _ = P(h.path), z = P(o), I = h.id === this.folder?.id, j = !this.removedIDs.includes(f) && z.startsWith(_);
|
|
347
347
|
return I || j;
|
|
348
348
|
});
|
|
349
349
|
const d = this.folder?.childCount && e.size === this.folder?.childCount;
|
|
@@ -735,7 +735,7 @@ var nt = function() {
|
|
|
735
735
|
value: Ae(e),
|
|
736
736
|
writable: !0
|
|
737
737
|
});
|
|
738
|
-
} :
|
|
738
|
+
} : ft, Te = 800, ze = 16, Ee = Date.now;
|
|
739
739
|
function Le(t) {
|
|
740
740
|
var e = 0, i = 0;
|
|
741
741
|
return function() {
|
|
@@ -750,7 +750,7 @@ function Le(t) {
|
|
|
750
750
|
}
|
|
751
751
|
var Re = Le(De);
|
|
752
752
|
function Pe(t, e) {
|
|
753
|
-
return Re(Ce(t, e,
|
|
753
|
+
return Re(Ce(t, e, ft), t + "");
|
|
754
754
|
}
|
|
755
755
|
var Fe = 200;
|
|
756
756
|
function Ue(t, e, i, o) {
|
|
@@ -760,19 +760,19 @@ function Ue(t, e, i, o) {
|
|
|
760
760
|
i && (e = Jt(e, St(i))), e.length >= Fe && (a = Ct, l = !1, e = new It(e));
|
|
761
761
|
t:
|
|
762
762
|
for (; ++s < d; ) {
|
|
763
|
-
var h = t[s],
|
|
764
|
-
if (h = h !== 0 ? h : 0, l &&
|
|
765
|
-
for (var
|
|
766
|
-
if (e[
|
|
763
|
+
var h = t[s], f = i == null ? h : i(h);
|
|
764
|
+
if (h = h !== 0 ? h : 0, l && f === f) {
|
|
765
|
+
for (var _ = u; _--; )
|
|
766
|
+
if (e[_] === f)
|
|
767
767
|
continue t;
|
|
768
768
|
m.push(h);
|
|
769
|
-
} else a(e,
|
|
769
|
+
} else a(e, f, o) || m.push(h);
|
|
770
770
|
}
|
|
771
771
|
return m;
|
|
772
772
|
}
|
|
773
773
|
var ct = et ? et.isConcatSpreadable : void 0;
|
|
774
774
|
function ke(t) {
|
|
775
|
-
return
|
|
775
|
+
return _t(t) || At(t) || !!(ct && t && t[ct]);
|
|
776
776
|
}
|
|
777
777
|
function Oe(t, e, i, o, s) {
|
|
778
778
|
var a = -1, l = t.length;
|
|
@@ -1238,6 +1238,17 @@ const Me = gt`
|
|
|
1238
1238
|
line-height: var(--cx-line-height-medium);
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
|
+
.uploads__list .asset-group__label {
|
|
1242
|
+
display: flex;
|
|
1243
|
+
justify-content: space-between;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
.asset-group__clear-button::part(base) {
|
|
1248
|
+
color: var(--cx-color-primary-500);
|
|
1249
|
+
font-size: var(--cx-font-size-x-small);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1241
1252
|
.asset-group__label {
|
|
1242
1253
|
padding: var(--cx-spacing-x-small) var(--cx-spacing-small);
|
|
1243
1254
|
color: var(--cx-color-neutral-400);
|
|
@@ -1680,6 +1691,9 @@ let n = class extends Y {
|
|
|
1680
1691
|
}
|
|
1681
1692
|
});
|
|
1682
1693
|
}
|
|
1694
|
+
clearUpload() {
|
|
1695
|
+
this.emit("cx-clear-upload");
|
|
1696
|
+
}
|
|
1683
1697
|
saveSettings() {
|
|
1684
1698
|
this.emit("cx-save-settings", {
|
|
1685
1699
|
detail: {
|
|
@@ -1934,9 +1948,9 @@ let n = class extends Y {
|
|
|
1934
1948
|
</cx-tooltip>`
|
|
1935
1949
|
)} `, h = () => {
|
|
1936
1950
|
t.uploadId && this.retryUpload(t.uploadId);
|
|
1937
|
-
},
|
|
1951
|
+
}, f = () => {
|
|
1938
1952
|
t.uploadId && (t.isPaused ? this.resumeUpload(t.uploadId) : this.pauseUpload(t.uploadId));
|
|
1939
|
-
},
|
|
1953
|
+
}, _ = r`</cx-tooltip
|
|
1940
1954
|
><cx-tooltip content=${this.localize.term("retry")} hoist>
|
|
1941
1955
|
<cx-icon-button
|
|
1942
1956
|
data-testid="asset__retry-button"
|
|
@@ -1951,7 +1965,7 @@ let n = class extends Y {
|
|
|
1951
1965
|
data-testid=${t.isPaused ? "asset__resume-button" : "asset__pause-button"}
|
|
1952
1966
|
name=${t.isPaused ? "play_arrow" : "pause"}
|
|
1953
1967
|
variant="filled"
|
|
1954
|
-
@click=${
|
|
1968
|
+
@click=${f}
|
|
1955
1969
|
></cx-icon-button>
|
|
1956
1970
|
</cx-tooltip>`;
|
|
1957
1971
|
return r`
|
|
@@ -2006,7 +2020,7 @@ let n = class extends Y {
|
|
|
2006
2020
|
)}
|
|
2007
2021
|
${g(
|
|
2008
2022
|
[T.Failed].includes(t.uploadStatus),
|
|
2009
|
-
() =>
|
|
2023
|
+
() => _
|
|
2010
2024
|
)}
|
|
2011
2025
|
</div>
|
|
2012
2026
|
</div>
|
|
@@ -2168,7 +2182,7 @@ let n = class extends Y {
|
|
|
2168
2182
|
</cx-line-clamp>
|
|
2169
2183
|
</cx-typography>
|
|
2170
2184
|
</div>
|
|
2171
|
-
`,
|
|
2185
|
+
`, f = r`
|
|
2172
2186
|
<div class="completed-progress">
|
|
2173
2187
|
<cx-icon name="check"></cx-icon>
|
|
2174
2188
|
<cx-typography variant="small">
|
|
@@ -2184,7 +2198,7 @@ let n = class extends Y {
|
|
|
2184
2198
|
</cx-line-clamp>
|
|
2185
2199
|
</cx-typography>
|
|
2186
2200
|
</div>
|
|
2187
|
-
`,
|
|
2201
|
+
`, _ = r`
|
|
2188
2202
|
<div class="failed-progress">
|
|
2189
2203
|
<cx-typography variant="small">
|
|
2190
2204
|
<cx-line-clamp lines="1">
|
|
@@ -2236,8 +2250,8 @@ let n = class extends Y {
|
|
|
2236
2250
|
l === T.PendingComplete,
|
|
2237
2251
|
() => h
|
|
2238
2252
|
)}
|
|
2239
|
-
${g(l === T.Success, () =>
|
|
2240
|
-
${g(l === T.Failed, () =>
|
|
2253
|
+
${g(l === T.Success, () => f)}
|
|
2254
|
+
${g(l === T.Failed, () => _)}
|
|
2241
2255
|
${g(l === T.Canceled, () => z)}
|
|
2242
2256
|
`;
|
|
2243
2257
|
}
|
|
@@ -2264,6 +2278,14 @@ let n = class extends Y {
|
|
|
2264
2278
|
<cx-typography variant="small">
|
|
2265
2279
|
${this.localize.term("today")}
|
|
2266
2280
|
</cx-typography>
|
|
2281
|
+
<cx-button
|
|
2282
|
+
class="asset-group__clear-button"
|
|
2283
|
+
variant="text"
|
|
2284
|
+
size="small"
|
|
2285
|
+
@click=${this.clearUpload}
|
|
2286
|
+
>
|
|
2287
|
+
${this.localize.term("clearAll")}
|
|
2288
|
+
</cx-button>
|
|
2267
2289
|
</div>
|
|
2268
2290
|
${F(
|
|
2269
2291
|
e,
|
|
@@ -2385,18 +2407,18 @@ let n = class extends Y {
|
|
|
2385
2407
|
);
|
|
2386
2408
|
if (u.length > 0) {
|
|
2387
2409
|
const { totalCount: h } = await this.fetchFolders({
|
|
2388
|
-
excludes: u.map((
|
|
2410
|
+
excludes: u.map((_) => $(_).id),
|
|
2389
2411
|
folderId: $(d).id,
|
|
2390
2412
|
start: 0
|
|
2391
|
-
}), { data:
|
|
2392
|
-
excludes: u.map((
|
|
2413
|
+
}), { data: f } = await this.fetchFolders({
|
|
2414
|
+
excludes: u.map((_) => $(_).id),
|
|
2393
2415
|
folderId: $(d).id,
|
|
2394
2416
|
limit: h || 10,
|
|
2395
2417
|
start: 0
|
|
2396
2418
|
});
|
|
2397
|
-
|
|
2419
|
+
f.forEach((_) => {
|
|
2398
2420
|
a.add(
|
|
2399
|
-
k({ id:
|
|
2421
|
+
k({ id: _.id, path: _.fullPath })
|
|
2400
2422
|
);
|
|
2401
2423
|
}), a.delete(d);
|
|
2402
2424
|
}
|
|
@@ -2404,8 +2426,8 @@ let n = class extends Y {
|
|
|
2404
2426
|
const l = Array.from(a);
|
|
2405
2427
|
this.updateActiveFolderIdentifiers(l), this.removedIds = l.filter(
|
|
2406
2428
|
(d) => [...l].some((m) => {
|
|
2407
|
-
const u = $(d), h = $(m),
|
|
2408
|
-
return m !== d && u.path.startsWith(
|
|
2429
|
+
const u = $(d), h = $(m), f = P(h.path);
|
|
2430
|
+
return m !== d && u.path.startsWith(f);
|
|
2409
2431
|
})
|
|
2410
2432
|
), e(), this.isAddingRootIDs = !1;
|
|
2411
2433
|
}, o = (s) => {
|
|
@@ -238,14 +238,11 @@ let t = class extends f {
|
|
|
238
238
|
this.input.click();
|
|
239
239
|
}
|
|
240
240
|
handleChange() {
|
|
241
|
-
this.checked = !this.checked, this.indeterminate = !1, this.emit("cx-change");
|
|
241
|
+
this.checked = !this.checked, this.indeterminate = !1, this.emit("cx-input"), this.emit("cx-change");
|
|
242
242
|
}
|
|
243
243
|
handleBlur() {
|
|
244
244
|
this.hasFocus = !1, this.emit("cx-blur");
|
|
245
245
|
}
|
|
246
|
-
handleInput() {
|
|
247
|
-
this.emit("cx-input");
|
|
248
|
-
}
|
|
249
246
|
handleInvalid(e) {
|
|
250
247
|
this.formControlController.setValidity(!1), this.formControlController.emitInvalidEvent(e);
|
|
251
248
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as a } from "./asset-link-format.js";
|
|
2
2
|
import { C as t } from "../chunks/color-swatch-group.CG_PUG1X.js";
|
|
3
|
-
import { C } from "../chunks/file-on-demand.
|
|
3
|
+
import { C } from "../chunks/file-on-demand.Cr7E_KqH.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|
|
6
6
|
t as CxColorSwatchGroup,
|
|
@@ -114,8 +114,8 @@ import { F as Ku, C as O9, a as Y_ } from "../chunks/folder-select.ELghy6Qk.js";
|
|
|
114
114
|
import { a as Io, E as Fn, b as qm, O as Ld, T as Fu, G as aO } from "../chunks/index.Cpamj0jB.js";
|
|
115
115
|
import { C as jGt } from "../chunks/index.Cpamj0jB.js";
|
|
116
116
|
import { g as I9, c as iy } from "../chunks/_commonjsHelpers.ByX85dGu.js";
|
|
117
|
-
import { b as ev, a as WR, d as sO, c as ck, s as QY, o as eX, U as D9, e as GR, i as Kd, f as tX } from "../chunks/file-on-demand.
|
|
118
|
-
import { C as UGt } from "../chunks/file-on-demand.
|
|
117
|
+
import { b as ev, a as WR, d as sO, c as ck, s as QY, o as eX, U as D9, e as GR, i as Kd, f as tX } from "../chunks/file-on-demand.Cr7E_KqH.js";
|
|
118
|
+
import { C as UGt } from "../chunks/file-on-demand.Cr7E_KqH.js";
|
|
119
119
|
import { e as nX, t as rX } from "../chunks/directive.oAbCiebi.js";
|
|
120
120
|
import { f as iX, n as kl, e as _l } from "../chunks/ref.BaCjlzLO.js";
|
|
121
121
|
import oX from "./masonry.js";
|
|
@@ -11637,8 +11637,10 @@ const cg = 30, pC = 75, Ek = {
|
|
|
11637
11637
|
--checked-icon-display: none;
|
|
11638
11638
|
--submenu-icon-display: none;
|
|
11639
11639
|
|
|
11640
|
-
|
|
11640
|
+
align-items: center;
|
|
11641
11641
|
display: flex;
|
|
11642
|
+
flex: 1;
|
|
11643
|
+
gap: var(--cx-spacing-small);
|
|
11642
11644
|
justify-content: flex-end;
|
|
11643
11645
|
}
|
|
11644
11646
|
|
|
@@ -11651,7 +11653,7 @@ const cg = 30, pC = 75, Ek = {
|
|
|
11651
11653
|
transition: opacity 0.1s;
|
|
11652
11654
|
}
|
|
11653
11655
|
|
|
11654
|
-
.node:hover > .header > .actions
|
|
11656
|
+
.node:hover > .header > .actions .actions__dropdown > .actions__dropdown-trigger {
|
|
11655
11657
|
opacity: 1;
|
|
11656
11658
|
}
|
|
11657
11659
|
|
|
@@ -13513,11 +13515,12 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
|
|
|
13513
13515
|
default: {
|
|
13514
13516
|
b.current?.emit("cx-node-action-select", {
|
|
13515
13517
|
detail: { id: B, targetNode: n.id }
|
|
13516
|
-
});
|
|
13518
|
+
}), b.current?.hide();
|
|
13517
13519
|
break;
|
|
13518
13520
|
}
|
|
13519
13521
|
}
|
|
13520
|
-
}
|
|
13522
|
+
} else
|
|
13523
|
+
b.current?.hide();
|
|
13521
13524
|
}, [n, D]), $ = qe.useCallback((q) => {
|
|
13522
13525
|
const B = b.current;
|
|
13523
13526
|
q.target === B && (B?.emit("cx-action-dropdown-show", {
|
|
@@ -13597,16 +13600,8 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
|
|
|
13597
13600
|
),
|
|
13598
13601
|
/* @__PURE__ */ _e.jsx("div", { className: "description", children: /* @__PURE__ */ _e.jsx("cx-line-clamp", { lines: 1, children: n.description }, n.description) })
|
|
13599
13602
|
] }),
|
|
13600
|
-
|
|
13601
|
-
/* @__PURE__ */ _e.jsx(
|
|
13602
|
-
"div",
|
|
13603
|
-
{
|
|
13604
|
-
style: {
|
|
13605
|
-
flex: 1
|
|
13606
|
-
}
|
|
13607
|
-
}
|
|
13608
|
-
),
|
|
13609
|
-
/* @__PURE__ */ _e.jsx(
|
|
13603
|
+
/* @__PURE__ */ _e.jsxs("div", { className: "actions", children: [
|
|
13604
|
+
s && /* @__PURE__ */ _e.jsx(
|
|
13610
13605
|
"cx-icon",
|
|
13611
13606
|
{
|
|
13612
13607
|
class: "icon",
|
|
@@ -13615,48 +13610,48 @@ const hae = (n) => n.data?.unordered && n.data?.unorderedText ? {
|
|
|
13615
13610
|
"--color": "var(--cx-color-danger-500)"
|
|
13616
13611
|
}
|
|
13617
13612
|
}
|
|
13618
|
-
)
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13613
|
+
),
|
|
13614
|
+
n.actions && n.actions.length > 0 && A && A.length > 0 && /* @__PURE__ */ _e.jsxs(
|
|
13615
|
+
"cx-dropdown",
|
|
13616
|
+
{
|
|
13617
|
+
ref: b,
|
|
13618
|
+
class: "actions__dropdown",
|
|
13619
|
+
placement: "bottom-start",
|
|
13620
|
+
"stay-open-on-select": !0,
|
|
13621
|
+
hoist: !0,
|
|
13622
|
+
"oncx-select": F,
|
|
13623
|
+
"oncx-show": $,
|
|
13624
|
+
"oncx-hide": j,
|
|
13625
|
+
children: [
|
|
13626
|
+
/* @__PURE__ */ _e.jsx("cx-icon-button", { slot: "trigger", class: "actions__dropdown-trigger", name: "more_horiz", style: w ? { opacity: 1 } : {} }),
|
|
13627
|
+
/* @__PURE__ */ _e.jsx("cx-menu", { role: "menu", variant: "default", children: A.map((q) => "type" in q && q.type === "divider" ? /* @__PURE__ */ _e.jsx("cx-divider", {}, q.key) : "id" in q ? /* @__PURE__ */ _e.jsxs(
|
|
13628
|
+
"cx-menu-item",
|
|
13629
|
+
{
|
|
13630
|
+
"data-id": q.id,
|
|
13631
|
+
style: {
|
|
13632
|
+
"--label-color": q.style?.color,
|
|
13633
|
+
"--prefix-color": q.style?.color
|
|
13634
|
+
},
|
|
13635
|
+
children: [
|
|
13636
|
+
/* @__PURE__ */ _e.jsx("cx-icon", { slot: "prefix", name: q.icon }),
|
|
13637
|
+
q.name,
|
|
13638
|
+
q.controlType === "switch" && /* @__PURE__ */ _e.jsx(
|
|
13639
|
+
"cx-switch",
|
|
13640
|
+
{
|
|
13641
|
+
slot: "suffix",
|
|
13642
|
+
checked: !!n[q.id] || !1,
|
|
13643
|
+
"show-icon": !0,
|
|
13644
|
+
onClick: L
|
|
13645
|
+
}
|
|
13646
|
+
)
|
|
13647
|
+
]
|
|
13640
13648
|
},
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
slot: "suffix",
|
|
13648
|
-
checked: !!n[q.id] || !1,
|
|
13649
|
-
"show-icon": !0,
|
|
13650
|
-
onClick: L
|
|
13651
|
-
}
|
|
13652
|
-
)
|
|
13653
|
-
]
|
|
13654
|
-
},
|
|
13655
|
-
q.id
|
|
13656
|
-
) : null) })
|
|
13657
|
-
]
|
|
13658
|
-
}
|
|
13659
|
-
) })
|
|
13649
|
+
q.id
|
|
13650
|
+
) : null) })
|
|
13651
|
+
]
|
|
13652
|
+
}
|
|
13653
|
+
)
|
|
13654
|
+
] })
|
|
13660
13655
|
] }),
|
|
13661
13656
|
a && /* @__PURE__ */ _e.jsx("div", { className: "metadata", children: (n.summaries || []).map((q, B) => /* @__PURE__ */ _e.jsxs(
|
|
13662
13657
|
"div",
|
package/library/package.json
CHANGED
|
@@ -73,9 +73,8 @@ export default class CxCheckbox extends CortexElement implements CortexFormContr
|
|
|
73
73
|
connectedCallback(): void;
|
|
74
74
|
private handleHostKeydown;
|
|
75
75
|
private handleHostClick;
|
|
76
|
-
handleChange
|
|
76
|
+
private handleChange;
|
|
77
77
|
private handleBlur;
|
|
78
|
-
private handleInput;
|
|
79
78
|
private handleInvalid;
|
|
80
79
|
private handleFocus;
|
|
81
80
|
handleDisabledChange(): void;
|
|
@@ -24,6 +24,7 @@ export * from './cx-cancel-upload';
|
|
|
24
24
|
export * from './cx-change';
|
|
25
25
|
export * from './cx-clear';
|
|
26
26
|
export * from './cx-clear-cache';
|
|
27
|
+
export * from './cx-clear-upload';
|
|
27
28
|
export * from './cx-close';
|
|
28
29
|
export * from './cx-collapse';
|
|
29
30
|
export * from './cx-color-swatch-picker-add';
|