@orangelogic/design-system 2.90.0 → 2.92.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/{color-swatch-group.BaMEIlzq.js → color-swatch-group.CpuPC0u3.js} +1 -1
- package/library/chunks/{folder-select.BFme962J.js → folder-select.D6NkbExX.js} +71 -71
- package/library/chunks/{list-editor.DsI3-bUG.js → list-editor.T0Lrm0Yo.js} +1 -1
- package/library/chunks/{table.CGTmaN_x.js → table.Da1P5WrI.js} +5 -0
- package/library/components/atoms.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/folder-select.js +1 -1
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +1 -1
- package/library/components/popup.js +29 -42
- package/library/components/table.js +1 -1
- package/library/components/types.js +5 -5
- package/library/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.Da1P5WrI.js";
|
|
3
3
|
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { C, a as g } from "./color-swatch.hsIcIXE-.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import N from "../components/icon.js";
|
|
2
2
|
import oe from "../components/input.js";
|
|
3
3
|
import H from "../components/line-clamp.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import ce from "../components/select.js";
|
|
5
|
+
import ne from "../components/tag.js";
|
|
6
6
|
import { C as g, a as he } from "./tree.D5Fv7i1r.js";
|
|
7
7
|
import { n as r, C as U } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as E, F as de, b as pe } from "./endpoints.BpAhLyZw.js";
|
|
@@ -19,7 +19,7 @@ import { d as me } from "./debounce.DaHuiSGU.js";
|
|
|
19
19
|
import { g as X, p as W, e as ye } from "./string.B_mXTq0K.js";
|
|
20
20
|
import { o as y } from "./if-defined.BRoBj_Rp.js";
|
|
21
21
|
import { c as Y } from "./repeat.DbF2p5ae.js";
|
|
22
|
-
import { n as
|
|
22
|
+
import { n as _ } from "./when.Dr1es41R.js";
|
|
23
23
|
import xe from "../components/space.js";
|
|
24
24
|
import { M as q } from "./asset-link-format.BSRDqHg7.js";
|
|
25
25
|
import { g as be } from "./template.CsJd8Pb_.js";
|
|
@@ -208,7 +208,7 @@ let o = class extends U {
|
|
|
208
208
|
this.data || [],
|
|
209
209
|
(t) => t.id,
|
|
210
210
|
(t) => m`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${t.hasChildren} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${y(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`
|
|
211
|
-
)}</cx-tree-item>${
|
|
211
|
+
)}</cx-tree-item>${_(
|
|
212
212
|
this.hasMore,
|
|
213
213
|
() => m`<div slot="children" class="load-more-button"><cx-button variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button></div>`
|
|
214
214
|
)}
|
|
@@ -315,10 +315,10 @@ var Fe = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, ee = (e) =
|
|
|
315
315
|
for (var a = l > 1 ? void 0 : l ? Te(t, s) : t, p = e.length - 1, u; p >= 0; p--)
|
|
316
316
|
(u = e[p]) && (a = (l ? u(t, s, a) : u(a)) || a);
|
|
317
317
|
return l && a && Fe(t, s, a), a;
|
|
318
|
-
}, te = (e, t, s) => t.has(e) || ee("Cannot " + s), Ce = (e, t, s) => (te(e, t, "read from private field"), t.get(e)), Ie = (e, t, s) => t.has(e) ? ee("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s),
|
|
319
|
-
let
|
|
318
|
+
}, te = (e, t, s) => t.has(e) || ee("Cannot " + s), Ce = (e, t, s) => (te(e, t, "read from private field"), t.get(e)), Ie = (e, t, s) => t.has(e) ? ee("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, s), _e = (e, t, s, l) => (te(e, t, "write to private field"), t.set(e, s), s), D;
|
|
319
|
+
let n = class extends U {
|
|
320
320
|
constructor() {
|
|
321
|
-
super(...arguments), this.localize = new M(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = A, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.data = [], this.hasMore = !1, this.loading = !1, this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], Ie(this,
|
|
321
|
+
super(...arguments), this.localize = new M(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = A, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.data = [], this.hasMore = !1, this.loading = !1, this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], Ie(this, D, !1);
|
|
322
322
|
}
|
|
323
323
|
get empty() {
|
|
324
324
|
return !this.loading && this.data.length === 0;
|
|
@@ -394,7 +394,7 @@ let c = class extends U {
|
|
|
394
394
|
}
|
|
395
395
|
async handleFetchFolders() {
|
|
396
396
|
const { data: e, hasMore: t } = await this.fetchFolders();
|
|
397
|
-
Ce(this,
|
|
397
|
+
Ce(this, D) || e.length > 0 && (this.firstFetchCallback?.(e), _e(this, D, !0)), this.data = e, this.hasMore = t, this.loading = !1;
|
|
398
398
|
}
|
|
399
399
|
async fetchFolders() {
|
|
400
400
|
if (!this.api)
|
|
@@ -428,11 +428,11 @@ let c = class extends U {
|
|
|
428
428
|
return m`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${e.docType} folder-id=${e.id} full-path=${y(e.fullPath ?? void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${y(e.url ?? void 0)} ?has-children=${e.hasChildren} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
|
|
429
429
|
}
|
|
430
430
|
render() {
|
|
431
|
-
return m`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange}>${
|
|
431
|
+
return m`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange}>${_(
|
|
432
432
|
this.empty,
|
|
433
433
|
() => m`<div class="folder-select-tree__empty-message" role="status" aria-live="polite"><cx-typography variant="body3">${this.localize.term("noResults")}</cx-typography></div>`
|
|
434
434
|
)}
|
|
435
|
-
${
|
|
435
|
+
${_(
|
|
436
436
|
this.extraFolderData,
|
|
437
437
|
() => m`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${y(this.extraFolderData?.docType ?? void 0)} folder-id=${y(this.extraFolderData?.id ?? void 0)} full-path=${y(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} name=${this.extraFolderTitle || this.extraFolderData?.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${y(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
|
|
438
438
|
)}
|
|
@@ -441,99 +441,99 @@ let c = class extends U {
|
|
|
441
441
|
(e) => e.id,
|
|
442
442
|
(e) => this.renderFolder(e)
|
|
443
443
|
)}
|
|
444
|
-
${
|
|
444
|
+
${_(
|
|
445
445
|
this.hasMore,
|
|
446
446
|
() => m`<cx-button class="folder-select-tree__load-more" variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`
|
|
447
447
|
)}</cx-tree>`;
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
D = /* @__PURE__ */ new WeakMap();
|
|
451
|
+
n.dependencies = {
|
|
452
452
|
"cx-button": K,
|
|
453
453
|
"cx-folder-select-tree-item": o,
|
|
454
454
|
"cx-tree": he
|
|
455
455
|
};
|
|
456
456
|
d([
|
|
457
457
|
r({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
458
|
-
],
|
|
458
|
+
], n.prototype, "minQueryLength", 2);
|
|
459
459
|
d([
|
|
460
460
|
r({ attribute: "selection", reflect: !0, type: String })
|
|
461
|
-
],
|
|
461
|
+
], n.prototype, "selection", 2);
|
|
462
462
|
d([
|
|
463
463
|
r({ attribute: "search-term", reflect: !0, type: String })
|
|
464
|
-
],
|
|
464
|
+
], n.prototype, "searchTerm", 2);
|
|
465
465
|
d([
|
|
466
466
|
r({ attribute: "selected-value", reflect: !0, type: String })
|
|
467
|
-
],
|
|
467
|
+
], n.prototype, "selectedValue", 2);
|
|
468
468
|
d([
|
|
469
469
|
r({ reflect: !0, type: String })
|
|
470
|
-
],
|
|
470
|
+
], n.prototype, "token", 2);
|
|
471
471
|
d([
|
|
472
472
|
r({ attribute: "bearer-token", reflect: !0, type: String })
|
|
473
|
-
],
|
|
473
|
+
], n.prototype, "bearerToken", 2);
|
|
474
474
|
d([
|
|
475
475
|
r({ attribute: "base-url", reflect: !0, type: String })
|
|
476
|
-
],
|
|
476
|
+
], n.prototype, "baseUrl", 2);
|
|
477
477
|
d([
|
|
478
478
|
r({ attribute: "extra-folder-id", reflect: !0, type: String })
|
|
479
|
-
],
|
|
479
|
+
], n.prototype, "extraFolderId", 2);
|
|
480
480
|
d([
|
|
481
481
|
r({ attribute: "extra-folder-title", reflect: !0, type: String })
|
|
482
|
-
],
|
|
482
|
+
], n.prototype, "extraFolderTitle", 2);
|
|
483
483
|
d([
|
|
484
484
|
r({ attribute: "extra-folder-icon", reflect: !0, type: String })
|
|
485
|
-
],
|
|
485
|
+
], n.prototype, "extraFolderIcon", 2);
|
|
486
486
|
d([
|
|
487
487
|
r({ attribute: "see-thru", reflect: !0, type: Boolean })
|
|
488
|
-
],
|
|
488
|
+
], n.prototype, "seeThru", 2);
|
|
489
489
|
d([
|
|
490
490
|
x()
|
|
491
|
-
],
|
|
491
|
+
], n.prototype, "extraFolderData", 2);
|
|
492
492
|
d([
|
|
493
493
|
r({ type: Function })
|
|
494
|
-
],
|
|
494
|
+
], n.prototype, "api", 2);
|
|
495
495
|
d([
|
|
496
496
|
r({
|
|
497
497
|
attribute: "exclude-virtual-folders",
|
|
498
498
|
reflect: !0,
|
|
499
499
|
type: Boolean
|
|
500
500
|
})
|
|
501
|
-
],
|
|
501
|
+
], n.prototype, "excludeVirtualFolders", 2);
|
|
502
502
|
d([
|
|
503
503
|
r({ attribute: "first-fetch-callback", reflect: !1, type: Function })
|
|
504
|
-
],
|
|
504
|
+
], n.prototype, "firstFetchCallback", 2);
|
|
505
505
|
d([
|
|
506
506
|
x()
|
|
507
|
-
],
|
|
507
|
+
], n.prototype, "data", 2);
|
|
508
508
|
d([
|
|
509
509
|
x()
|
|
510
|
-
],
|
|
510
|
+
], n.prototype, "hasMore", 2);
|
|
511
511
|
d([
|
|
512
512
|
x()
|
|
513
|
-
],
|
|
513
|
+
], n.prototype, "loading", 2);
|
|
514
514
|
d([
|
|
515
515
|
x()
|
|
516
|
-
],
|
|
516
|
+
], n.prototype, "currentRootIDsSet", 2);
|
|
517
517
|
d([
|
|
518
518
|
x()
|
|
519
|
-
],
|
|
519
|
+
], n.prototype, "removedIDs", 2);
|
|
520
520
|
d([
|
|
521
521
|
f("extraFolderId")
|
|
522
|
-
],
|
|
522
|
+
], n.prototype, "handleExtraFolderIdChange", 1);
|
|
523
523
|
d([
|
|
524
524
|
f("baseUrl", { waitUntilFirstUpdate: !0 }),
|
|
525
525
|
f("token", { waitUntilFirstUpdate: !0 }),
|
|
526
526
|
f("searchTerm", { waitUntilFirstUpdate: !0 }),
|
|
527
527
|
f("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
|
|
528
528
|
me(500)
|
|
529
|
-
],
|
|
530
|
-
|
|
529
|
+
], n.prototype, "handleFetchFolders", 1);
|
|
530
|
+
n = d([
|
|
531
531
|
L("cx-folder-select-tree")
|
|
532
|
-
],
|
|
533
|
-
const
|
|
532
|
+
], n);
|
|
533
|
+
const De = ue`:host{flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex}.folder-select{gap:var(--cx-spacing-x-small);flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.folder-select__search{flex-shrink:0}.folder-select__tree{flex-direction:column;flex:1;min-height:0;display:flex}.folder-select-tree{flex:1;min-height:0;overflow:auto}.folder-select-tree__item__icon{color:var(--cx-color-primary)}.folder-select-tree__empty-message{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:center;cursor:default;user-select:none}.folder-select-tree__load-more{margin-inline:var(--cx-spacing-small)}.folder-select-tree-item::part(label),.folder-select-tree-item__label,.folder-select-tree-item__title{overflow:hidden}`;
|
|
534
534
|
var ke = Object.defineProperty, we = Object.getOwnPropertyDescriptor, re = (e) => {
|
|
535
535
|
throw TypeError(e);
|
|
536
|
-
},
|
|
536
|
+
}, c = (e, t, s, l) => {
|
|
537
537
|
for (var a = l > 1 ? void 0 : l ? we(t, s) : t, p = e.length - 1, u; p >= 0; p--)
|
|
538
538
|
(u = e[p]) && (a = (l ? u(t, s, a) : u(a)) || a);
|
|
539
539
|
return l && a && ke(t, s, a), a;
|
|
@@ -650,7 +650,7 @@ let i = class extends U {
|
|
|
650
650
|
return m`<div class="folder-select">${fe(this.variant, [
|
|
651
651
|
[
|
|
652
652
|
C.Input,
|
|
653
|
-
() => m`<cx-input aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} .api=${Q(this, F)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
653
|
+
() => m`<cx-input class="folder-select__search" aria-label=${this.localize.term("searchFolders")} placeholder=${`${this.localize.term("searchFolders")}...`} value=${this.searchTerm} clearable @cx-input=${this.handleSearchTermInputChange}><cx-icon name="search" slot="prefix"></cx-icon></cx-input><cx-folder-select-tree class="folder-select__tree" base-url=${this.baseUrl} extra-folder-id=${this.extraFolderId} extra-folder-title=${this.extraFolderTitle} extra-folder-icon=${this.extraFolderIcon} min-query-length=${this.minQueryLength} search-term=${this.searchTerm} selected-value=${this.value} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?see-thru=${this.seeThru} .api=${Q(this, F)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
654
654
|
],
|
|
655
655
|
[
|
|
656
656
|
C.Select,
|
|
@@ -660,111 +660,111 @@ let i = class extends U {
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
F = /* @__PURE__ */ new WeakMap();
|
|
663
|
-
i.styles = [Z,
|
|
663
|
+
i.styles = [Z, De];
|
|
664
664
|
i.dependencies = {
|
|
665
|
-
"cx-folder-select-tree":
|
|
665
|
+
"cx-folder-select-tree": n,
|
|
666
666
|
"cx-icon": N,
|
|
667
667
|
"cx-input": oe,
|
|
668
668
|
"cx-line-clamp": H,
|
|
669
|
-
"cx-select":
|
|
670
|
-
"cx-tag":
|
|
669
|
+
"cx-select": ce,
|
|
670
|
+
"cx-tag": ne
|
|
671
671
|
};
|
|
672
|
-
|
|
672
|
+
c([
|
|
673
673
|
J("cx-select")
|
|
674
674
|
], i.prototype, "selectEl", 2);
|
|
675
|
-
|
|
675
|
+
c([
|
|
676
676
|
r({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
677
677
|
], i.prototype, "minQueryLength", 2);
|
|
678
|
-
|
|
678
|
+
c([
|
|
679
679
|
r({ attribute: "selection", reflect: !0, type: String })
|
|
680
680
|
], i.prototype, "selection", 2);
|
|
681
|
-
|
|
681
|
+
c([
|
|
682
682
|
r({ attribute: "variant", reflect: !0, type: String })
|
|
683
683
|
], i.prototype, "variant", 2);
|
|
684
|
-
|
|
684
|
+
c([
|
|
685
685
|
r({ reflect: !0, type: String })
|
|
686
686
|
], i.prototype, "value", 2);
|
|
687
|
-
|
|
687
|
+
c([
|
|
688
688
|
r({ reflect: !0, type: String })
|
|
689
689
|
], i.prototype, "name", 2);
|
|
690
|
-
|
|
690
|
+
c([
|
|
691
691
|
r({ attribute: "selected-label", reflect: !0, type: String })
|
|
692
692
|
], i.prototype, "selectedLabel", 2);
|
|
693
|
-
|
|
693
|
+
c([
|
|
694
694
|
r({ attribute: "base-url", reflect: !0, type: String })
|
|
695
695
|
], i.prototype, "baseUrl", 2);
|
|
696
|
-
|
|
696
|
+
c([
|
|
697
697
|
r({ reflect: !0, type: Boolean })
|
|
698
698
|
], i.prototype, "open", 2);
|
|
699
|
-
|
|
699
|
+
c([
|
|
700
700
|
r({ reflect: !1, type: String })
|
|
701
701
|
], i.prototype, "token", 2);
|
|
702
|
-
|
|
702
|
+
c([
|
|
703
703
|
r({ attribute: "bearer-token", reflect: !0, type: String })
|
|
704
704
|
], i.prototype, "bearerToken", 2);
|
|
705
|
-
|
|
705
|
+
c([
|
|
706
706
|
r({ attribute: "see-thru", reflect: !0, type: Boolean })
|
|
707
707
|
], i.prototype, "seeThru", 2);
|
|
708
|
-
|
|
708
|
+
c([
|
|
709
709
|
r({ type: Function })
|
|
710
710
|
], i.prototype, "api", 2);
|
|
711
|
-
|
|
711
|
+
c([
|
|
712
712
|
r({ reflect: !0, type: Boolean })
|
|
713
713
|
], i.prototype, "required", 2);
|
|
714
|
-
|
|
714
|
+
c([
|
|
715
715
|
r({ reflect: !1 })
|
|
716
716
|
], i.prototype, "form", 2);
|
|
717
|
-
|
|
717
|
+
c([
|
|
718
718
|
r({
|
|
719
719
|
attribute: "exclude-virtual-folders",
|
|
720
720
|
reflect: !0,
|
|
721
721
|
type: Boolean
|
|
722
722
|
})
|
|
723
723
|
], i.prototype, "excludeVirtualFolders", 2);
|
|
724
|
-
|
|
724
|
+
c([
|
|
725
725
|
r({
|
|
726
726
|
attribute: "extra-folder-id",
|
|
727
727
|
reflect: !0,
|
|
728
728
|
type: String
|
|
729
729
|
})
|
|
730
730
|
], i.prototype, "extraFolderId", 2);
|
|
731
|
-
|
|
731
|
+
c([
|
|
732
732
|
r({
|
|
733
733
|
attribute: "extra-folder-title",
|
|
734
734
|
reflect: !0,
|
|
735
735
|
type: String
|
|
736
736
|
})
|
|
737
737
|
], i.prototype, "extraFolderTitle", 2);
|
|
738
|
-
|
|
738
|
+
c([
|
|
739
739
|
r({
|
|
740
740
|
attribute: "extra-folder-icon",
|
|
741
741
|
reflect: !0,
|
|
742
742
|
type: String
|
|
743
743
|
})
|
|
744
744
|
], i.prototype, "extraFolderIcon", 2);
|
|
745
|
-
|
|
745
|
+
c([
|
|
746
746
|
r({ attribute: "first-fetch-callback", reflect: !1, type: Function })
|
|
747
747
|
], i.prototype, "firstFetchCallback", 2);
|
|
748
|
-
|
|
748
|
+
c([
|
|
749
749
|
x()
|
|
750
750
|
], i.prototype, "searchTerm", 2);
|
|
751
|
-
|
|
751
|
+
c([
|
|
752
752
|
f("api")
|
|
753
753
|
], i.prototype, "updateWrappedApi", 1);
|
|
754
|
-
|
|
754
|
+
c([
|
|
755
755
|
f("searchTerm", { waitUntilFirstUpdate: !0 })
|
|
756
756
|
], i.prototype, "handleSearchTermChange", 1);
|
|
757
|
-
|
|
757
|
+
c([
|
|
758
758
|
f("open")
|
|
759
759
|
], i.prototype, "handleOpenChange", 1);
|
|
760
|
-
|
|
760
|
+
c([
|
|
761
761
|
f("variant")
|
|
762
762
|
], i.prototype, "handleVariantChange", 1);
|
|
763
|
-
|
|
763
|
+
c([
|
|
764
764
|
f("selectedLabel", { waitUntilFirstUpdate: !0 }),
|
|
765
765
|
f("value", { waitUntilFirstUpdate: !0 })
|
|
766
766
|
], i.prototype, "handleValueChange", 1);
|
|
767
|
-
i =
|
|
767
|
+
i = c([
|
|
768
768
|
L("cx-folder-select")
|
|
769
769
|
], i);
|
|
770
770
|
export {
|
|
@@ -9,7 +9,7 @@ import B from "../components/radio.js";
|
|
|
9
9
|
import K from "../components/radio-group.js";
|
|
10
10
|
import U from "../components/select.js";
|
|
11
11
|
import E from "../components/space.js";
|
|
12
|
-
import { C as H, H as V } from "./table.
|
|
12
|
+
import { C as H, H as V } from "./table.Da1P5WrI.js";
|
|
13
13
|
import { C as L } from "./typography.DJC_UXgs.js";
|
|
14
14
|
import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import W from "../components/dynamic-select.js";
|
|
@@ -16966,6 +16966,11 @@ const Dl = E`<cx-table-row-actions></cx-table-row-actions>`, _e = class _e exten
|
|
|
16966
16966
|
this.hoverMenuField = this.table.options.hoverMenuField || "hoverMenu", this.subscribe(
|
|
16967
16967
|
"row-layout",
|
|
16968
16968
|
this.layoutRow.bind(this)
|
|
16969
|
+
), this.subscribe(
|
|
16970
|
+
"row-data-changed",
|
|
16971
|
+
(e, t, i) => {
|
|
16972
|
+
Object.hasOwn(i, this.hoverMenuField) && this.layoutRow(e);
|
|
16973
|
+
}
|
|
16969
16974
|
), this.subscribe(
|
|
16970
16975
|
"row-mouseenter",
|
|
16971
16976
|
this.handleRowMouseEnter.bind(this)
|
|
@@ -70,7 +70,7 @@ import { default as ka } from "./stepper.js";
|
|
|
70
70
|
import { default as Ea } from "./switch.js";
|
|
71
71
|
import { default as La } from "./tab.js";
|
|
72
72
|
import { C as ja } from "../chunks/tab-group.B6olTWpV.js";
|
|
73
|
-
import { C as za } from "../chunks/table.
|
|
73
|
+
import { C as za } from "../chunks/table.Da1P5WrI.js";
|
|
74
74
|
import { default as qa } from "./tab-panel.js";
|
|
75
75
|
import { default as Ka } from "./tag.js";
|
|
76
76
|
import { default as Wa } from "./textarea.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./space.js";
|
|
2
|
-
import "../chunks/table.
|
|
2
|
+
import "../chunks/table.Da1P5WrI.js";
|
|
3
3
|
import "../chunks/typography.DJC_UXgs.js";
|
|
4
4
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import "../chunks/color-swatch.hsIcIXE-.js";
|
|
6
6
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
7
|
-
import { C as w } from "../chunks/color-swatch-group.
|
|
7
|
+
import { C as w } from "../chunks/color-swatch-group.CpuPC0u3.js";
|
|
8
8
|
import "../chunks/content-builder.B4Tqoc6M.js";
|
|
9
9
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
10
10
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
@@ -5,7 +5,7 @@ import "./select.js";
|
|
|
5
5
|
import "./tag.js";
|
|
6
6
|
import "../chunks/tree.D5Fv7i1r.js";
|
|
7
7
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { C as h } from "../chunks/folder-select.
|
|
8
|
+
import { C as h } from "../chunks/folder-select.D6NkbExX.js";
|
|
9
9
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import "../chunks/i18n.CgwQHLcP.js";
|
|
@@ -9,7 +9,7 @@ import "./radio.js";
|
|
|
9
9
|
import "./radio-group.js";
|
|
10
10
|
import "./select.js";
|
|
11
11
|
import "./space.js";
|
|
12
|
-
import "../chunks/table.
|
|
12
|
+
import "../chunks/table.Da1P5WrI.js";
|
|
13
13
|
import "../chunks/typography.DJC_UXgs.js";
|
|
14
14
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import "./dynamic-select.js";
|
|
@@ -18,7 +18,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
18
18
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
19
19
|
import "../chunks/i18n.CgwQHLcP.js";
|
|
20
20
|
import "../chunks/watch.BCJD77bD.js";
|
|
21
|
-
import { c as E, C as F } from "../chunks/list-editor.
|
|
21
|
+
import { c as E, C as F } from "../chunks/list-editor.T0Lrm0Yo.js";
|
|
22
22
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
23
23
|
import "../chunks/state.CSDxrqLd.js";
|
|
24
24
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -5,8 +5,8 @@ import { C } from "../chunks/confirm-popover.Bk0_yxOs.js";
|
|
|
5
5
|
import { default as u } from "./corner-position-input-group.js";
|
|
6
6
|
import { C as m } from "../chunks/cropper.DTokTzP9.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
9
|
-
import { C as P } from "../chunks/list-editor.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.D6NkbExX.js";
|
|
9
|
+
import { C as P } from "../chunks/list-editor.T0Lrm0Yo.js";
|
|
10
10
|
import { default as I } from "./masonry.js";
|
|
11
11
|
import { default as y } from "./padding-input-group.js";
|
|
12
12
|
import { default as w } from "./position-picker.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as a } from "./asset-link-format.js";
|
|
2
|
-
import { C as t } from "../chunks/color-swatch-group.
|
|
2
|
+
import { C as t } from "../chunks/color-swatch-group.CpuPC0u3.js";
|
|
3
3
|
import { C } from "../chunks/file-on-demand.CTJQ6P_F.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|
|
@@ -2762,54 +2762,41 @@ let b = class extends Be {
|
|
|
2762
2762
|
({ rects: t }) => -t.reference.height / 2 - t.floating.height / 2
|
|
2763
2763
|
) : It({ crossAxis: this.skidding, mainAxis: this.distance })
|
|
2764
2764
|
];
|
|
2765
|
-
|
|
2765
|
+
this.sync ? e.push(
|
|
2766
2766
|
qt({
|
|
2767
2767
|
apply: ({ rects: t }) => {
|
|
2768
2768
|
const o = this.sync === "width" || this.sync === "both", i = this.sync === "height" || this.sync === "both", s = this.syncElement ? this.syncElement.getBoundingClientRect() : t.reference;
|
|
2769
2769
|
this.popup.style.width = o ? `${s.width}px` : "", this.popup.style.height = i ? `${s.height}px` : "";
|
|
2770
2770
|
}
|
|
2771
2771
|
})
|
|
2772
|
-
) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
`${o}px`
|
|
2801
|
-
) : this.style.removeProperty("--auto-size-available-height"), this.autoSize === "horizontal" || this.autoSize === "both" ? this.style.setProperty(
|
|
2802
|
-
"--auto-size-available-width",
|
|
2803
|
-
`${i * this.autoWidthFactor}px`
|
|
2804
|
-
) : this.style.removeProperty("--auto-size-available-width");
|
|
2805
|
-
},
|
|
2806
|
-
boundary: t,
|
|
2807
|
-
padding: this.autoSizePadding
|
|
2808
|
-
})
|
|
2809
|
-
);
|
|
2810
|
-
} else
|
|
2811
|
-
this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height");
|
|
2812
|
-
this.arrow && e.push(
|
|
2772
|
+
) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip && e.push(
|
|
2773
|
+
Wt({
|
|
2774
|
+
boundary: this.flipBoundary,
|
|
2775
|
+
// @ts-expect-error - We're converting a string attribute to an array here
|
|
2776
|
+
fallbackPlacements: this.flipFallbackPlacements,
|
|
2777
|
+
fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
|
|
2778
|
+
padding: this.flipPadding
|
|
2779
|
+
})
|
|
2780
|
+
), this.shift && e.push(
|
|
2781
|
+
Te({
|
|
2782
|
+
boundary: this.shiftBoundary,
|
|
2783
|
+
padding: this.shiftPadding
|
|
2784
|
+
})
|
|
2785
|
+
), this.autoSize ? e.push(
|
|
2786
|
+
qt({
|
|
2787
|
+
apply: ({ availableHeight: t, availableWidth: o }) => {
|
|
2788
|
+
this.autoSize === "vertical" || this.autoSize === "both" ? this.style.setProperty(
|
|
2789
|
+
"--auto-size-available-height",
|
|
2790
|
+
`${t}px`
|
|
2791
|
+
) : this.style.removeProperty("--auto-size-available-height"), this.autoSize === "horizontal" || this.autoSize === "both" ? this.style.setProperty(
|
|
2792
|
+
"--auto-size-available-width",
|
|
2793
|
+
`${o * this.autoWidthFactor}px`
|
|
2794
|
+
) : this.style.removeProperty("--auto-size-available-width");
|
|
2795
|
+
},
|
|
2796
|
+
boundary: this.autoSizeBoundary,
|
|
2797
|
+
padding: this.autoSizePadding
|
|
2798
|
+
})
|
|
2799
|
+
) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(
|
|
2813
2800
|
De({
|
|
2814
2801
|
element: this.arrowEl,
|
|
2815
2802
|
padding: this.arrowPadding
|
|
@@ -9,7 +9,7 @@ import "./spinner.js";
|
|
|
9
9
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
10
10
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
11
11
|
import "../chunks/overlayscrollbars.BMav4RQ4.js";
|
|
12
|
-
import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.
|
|
12
|
+
import { A as F, i as P, j as S, d as g, g as v, b as y, k as A, l as D, c as I, a0 as f, a1 as h, D as E, m as G, E as j, n as H, F as K, o as L, p as V, q as k, G as q, r as B, s as J, t as N, I as O, u as Q, K as U, v as W, M as X, w as Y, x as Z, y as _, z as $, B as oo, J as eo, L as ao, P as so, e as lo, N as to, h as uo, O as ro, Q as Mo, U as io, V as po, f as mo, R as no, X as Co, W as Ro, S as co, Y as bo, Z as wo, T as To, a as xo, _ as zo, $ as Fo, C as Po } from "../chunks/table.Da1P5WrI.js";
|
|
13
13
|
import "../chunks/pagination.DC9JIt4s.js";
|
|
14
14
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
15
15
|
import "../chunks/i18n.CgwQHLcP.js";
|
|
@@ -71,7 +71,7 @@ import { default as uqt } from "./stepper.js";
|
|
|
71
71
|
import Kb from "./switch.js";
|
|
72
72
|
import G2 from "./tab.js";
|
|
73
73
|
import { C as K2, T as e9, a as t9, b as n9, g as TO } from "../chunks/tab-group.B6olTWpV.js";
|
|
74
|
-
import { C as r9 } from "../chunks/table.
|
|
74
|
+
import { C as r9 } from "../chunks/table.Da1P5WrI.js";
|
|
75
75
|
import i9 from "./tab-panel.js";
|
|
76
76
|
import { default as hqt } from "./tag.js";
|
|
77
77
|
import uR from "./textarea.js";
|
|
@@ -112,7 +112,7 @@ import { H as wR } from "../chunks/slot.j5oheLJC.js";
|
|
|
112
112
|
import { a as lVt, g as dVt } from "../chunks/slot.j5oheLJC.js";
|
|
113
113
|
import { c as LO, G as mh, d as Yd, T as xR, h as fn, i as kR, j as nY, t as RO, u as rY, f as y1, k as iY, F as Cf, M as Vv } from "../chunks/string.B_mXTq0K.js";
|
|
114
114
|
import { b as pVt, a as hVt, e as gVt, g as mVt, p as fVt, r as vVt, s as yVt, n as bVt, l as wVt, m as xVt, o as kVt } from "../chunks/string.B_mXTq0K.js";
|
|
115
|
-
import { a as l9, u as tp, I as _R, C as oY } from "../chunks/list-editor.
|
|
115
|
+
import { a as l9, u as tp, I as _R, C as oY } from "../chunks/list-editor.T0Lrm0Yo.js";
|
|
116
116
|
import aY from "./bicolor-picker.js";
|
|
117
117
|
import CR from "./border-input-group.js";
|
|
118
118
|
import { C as CVt } from "../chunks/color-swatch.hsIcIXE-.js";
|
|
@@ -126,7 +126,7 @@ import { c as Hn } from "../chunks/repeat.DbF2p5ae.js";
|
|
|
126
126
|
import p9 from "./dynamic-select.js";
|
|
127
127
|
import { D as AR, M as gY, U as mY, F as fY } from "../chunks/time.D_uFZqqe.js";
|
|
128
128
|
import { c as AVt, a as OVt, f as IVt, g as DVt } from "../chunks/time.D_uFZqqe.js";
|
|
129
|
-
import { F as Jd, C as h9, a as B_, M as vY } from "../chunks/folder-select.
|
|
129
|
+
import { F as Jd, C as h9, a as B_, M as vY } from "../chunks/folder-select.D6NkbExX.js";
|
|
130
130
|
import { a as Ro, E as Fn, b as Xm, O as jd, T as Ku, G as zO } from "../chunks/index.Cpamj0jB.js";
|
|
131
131
|
import { C as PVt } from "../chunks/index.Cpamj0jB.js";
|
|
132
132
|
import { S as FO, r as yY, c as bY, i as $O, a as jO, b as wY, d as HO, e as z_ } from "../chunks/index.DcjJFMlq.js";
|
|
@@ -165,8 +165,8 @@ import { c as hg } from "../chunks/math.DqTA6ya4.js";
|
|
|
165
165
|
import { b as YO, e as $Y } from "../chunks/number.CjNxU7Xs.js";
|
|
166
166
|
import { a as rWt, c as iWt, f as oWt, r as aWt, s as sWt } from "../chunks/number.CjNxU7Xs.js";
|
|
167
167
|
import { t as LR } from "../chunks/event-options.CYHYGOd8.js";
|
|
168
|
-
import { a as Uw } from "../chunks/color-swatch-group.
|
|
169
|
-
import { C as lWt } from "../chunks/color-swatch-group.
|
|
168
|
+
import { a as Uw } from "../chunks/color-swatch-group.CpuPC0u3.js";
|
|
169
|
+
import { C as lWt } from "../chunks/color-swatch-group.CpuPC0u3.js";
|
|
170
170
|
import { t as jY } from "../chunks/converters.DkDtLstb.js";
|
|
171
171
|
import { i as HY } from "../chunks/user-agent.D9aPuOyL.js";
|
|
172
172
|
import { a as RR, U as f9, t as UY } from "../chunks/url.Cj9cIQXJ.js";
|
package/library/package.json
CHANGED