@orangelogic/design-system 3.39.0 → 3.40.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/{config-manager.X27bi3ys.js → config-manager.C-zxaCbo.js} +3 -3
- package/library/chunks/{config-manager.utils.B5LZtovC.js → config-manager.utils.Cwh2oohu.js} +3 -3
- package/library/chunks/{configs-controller.CsNhRt6H.js → configs-controller.CCJxfSjT.js} +1 -1
- package/library/chunks/{folder-select.9UjTzuiN.js → folder-select.B1gyfanN.js} +36 -19
- package/library/components/atoms.js +6 -6
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/types.js +16 -16
- package/library/package.json +1 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +2 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +3 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +2 -0
- package/library/packages/services/src/api/folder/folder.d.ts +1 -1
- package/library/packages/types/src/folder-select.d.ts +1 -0
- package/library/react-web-component.d.ts +4 -0
- package/package.json +1 -1
- package/library/chunks/{src.DNowxJH9.js → src.B0uws0rG.js} +2 -2
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.BE-fTtOZ.js";
|
|
15
15
|
import { t as S } from "./tooltip.EVa9qa8X.js";
|
|
16
16
|
import { t as ee } from "./line-clamp.CUDArhQk.js";
|
|
17
|
-
import { C as te, S as ne, T as re, _ as ie, a as ae, b as oe, c as se, g as ce, h as le, i as ue, m as de, o as fe, p as pe, r as me, s as he, t as C, v as w, w as T, x as E, y as D } from "./config-manager.utils.
|
|
17
|
+
import { C as te, S as ne, T as re, _ as ie, a as ae, b as oe, c as se, g as ce, h as le, i as ue, m as de, o as fe, p as pe, r as me, s as he, t as C, v as w, w as T, x as E, y as D } from "./config-manager.utils.Cwh2oohu.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -53,7 +53,7 @@ import { n as Ue, t as U } from "./confirm-popover.Difhn86O.js";
|
|
|
53
53
|
import { t as We } from "./corner-position-input-group.80bovr6F.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
55
|
import { t as Ge } from "./dynamic-select.CyzcAHU5.js";
|
|
56
|
-
import { r as G } from "./folder-select.
|
|
56
|
+
import { r as G } from "./folder-select.B1gyfanN.js";
|
|
57
57
|
import { t as Ke } from "./choose.C2vpqhLc.js";
|
|
58
58
|
import { t as qe } from "./padding-input-group.DYHH1M0o.js";
|
|
59
59
|
import { t as Je } from "./position-picker.B3klGTsy.js";
|
|
@@ -63,7 +63,7 @@ import { T as K } from "./asset-link-format.1oRTjzY2.js";
|
|
|
63
63
|
import { n as Ze } from "./_baseXor.Ca5K0ORC.js";
|
|
64
64
|
import { n as Qe, s as $e, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
|
|
65
65
|
import { i as et } from "./_baseClone.CnI5Vpqn.js";
|
|
66
|
-
import { C as tt, i as nt, o as J, t as rt } from "./configs-controller.
|
|
66
|
+
import { C as tt, i as nt, o as J, t as rt } from "./configs-controller.CCJxfSjT.js";
|
|
67
67
|
import { t as it } from "./isEmpty.D3QQduJ5.js";
|
|
68
68
|
import { i as at } from "./cloneDeep.C6x5LNv3.js";
|
|
69
69
|
//#region ../../node_modules/lodash-es/difference.js
|
package/library/chunks/{config-manager.utils.B5LZtovC.js → config-manager.utils.Cwh2oohu.js}
RENAMED
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.DXFJTymk.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.B0uws0rG.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as b } from "./button.BE-fTtOZ.js";
|
|
21
21
|
import { E as x, S as le, r as ue } from "./string.DamEXDH2.js";
|
|
@@ -70,7 +70,7 @@ import { n as gt, t as _t } from "./confirm-popover.Difhn86O.js";
|
|
|
70
70
|
import { t as vt } from "./corner-position-input-group.80bovr6F.js";
|
|
71
71
|
import { t as yt } from "./cropper.D4ymxgab.js";
|
|
72
72
|
import { t as bt } from "./dynamic-select.CyzcAHU5.js";
|
|
73
|
-
import { i as xt, n as P, r as St, t as F } from "./folder-select.
|
|
73
|
+
import { i as xt, n as P, r as St, t as F } from "./folder-select.B1gyfanN.js";
|
|
74
74
|
import { t as Ct } from "./choose.C2vpqhLc.js";
|
|
75
75
|
import { t as wt } from "./masonry.MH1B7um_.js";
|
|
76
76
|
import { t as Tt } from "./padding-input-group.DYHH1M0o.js";
|
|
@@ -79,7 +79,7 @@ import { t as Dt } from "./shadow-input-group.ByN6pEvN.js";
|
|
|
79
79
|
import { t as Ot } from "./size-input-group.PcWfpR6-.js";
|
|
80
80
|
import { C as kt, S as At, T as jt, _ as Mt, b as Nt, c as Pt, f as Ft, g as It, h as Lt, i as Rt, l as zt, n as Bt, o as Vt, p as Ht, r as Ut, s as Wt, t as Gt, u as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "./asset-link-format.1oRTjzY2.js";
|
|
81
81
|
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.CWPweLjs.js";
|
|
82
|
-
import { B as nn, C as rn, H as an, J as I, L as on, N as sn, O as L, R as cn, V as ln, X as R, Y as un, Z as dn, f as fn, g as pn, p as mn, q as hn, y as gn, z as _n } from "./configs-controller.
|
|
82
|
+
import { B as nn, C as rn, H as an, J as I, L as on, N as sn, O as L, R as cn, V as ln, X as R, Y as un, Z as dn, f as fn, g as pn, p as mn, q as hn, y as gn, z as _n } from "./configs-controller.CCJxfSjT.js";
|
|
83
83
|
import { a as vn } from "./cloneDeep.C6x5LNv3.js";
|
|
84
84
|
//#region ../../packages/types/src/icon-picker.ts
|
|
85
85
|
var yn = /* @__PURE__ */ function(e) {
|
|
@@ -15,7 +15,7 @@ import { _ as pe, g as me, p as he, v as ge } from "./color.CIOzHtLK.js";
|
|
|
15
15
|
import { g as _e, m as ve, p as ye, s as b } from "./responsive.L9Csz2w2.js";
|
|
16
16
|
import { n as be, r as xe } from "./header.Ny2fWwyt.js";
|
|
17
17
|
import { d as Se, f as x, l as S, o as C, s as Ce } from "./endpoints.jOHOmF_t.js";
|
|
18
|
-
import { n as w } from "./folder-select.
|
|
18
|
+
import { n as w } from "./folder-select.B1gyfanN.js";
|
|
19
19
|
import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.CWPweLjs.js";
|
|
20
20
|
import { n as Te } from "./isEmpty.D3QQduJ5.js";
|
|
21
21
|
import { a as k } from "./cloneDeep.C6x5LNv3.js";
|
|
@@ -28,24 +28,25 @@ import { t as F } from "./choose.C2vpqhLc.js";
|
|
|
28
28
|
var { Axios: I, AxiosError: L, CanceledError: R, isCancel: z, CancelToken: B, VERSION: V, all: H, Cancel: ee, isAxiosError: te, spread: ne, toFormData: re, AxiosHeaders: ie, HttpStatusCode: ae, formToJSON: oe, getAdapter: se, mergeConfig: ce } = P, U = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.CortexPath = "Document.CortexPath", e.DocSubTypeIconColor = "DocSubTypeIconColor", e.DocSubTypeIconImageUrl = "DocSubTypeIconImageUrl", e.DocSubTypeIconName = "DocSubTypeIconName", e.DocSubTypeIsFontIcon = "DocSubTypeIsFontIcon", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e;
|
|
30
30
|
}({});
|
|
31
|
-
async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtualFolders: r, folderId: i, includeDirectChild: a, limit: o = 50,
|
|
32
|
-
let
|
|
33
|
-
e && e.length > 0 && !i ? (
|
|
31
|
+
async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtualFolders: r, folderId: i, includeDirectChild: a, limit: o = 50, noCache: s, searchTerm: c, self: l, start: u = 0, token: d }) {
|
|
32
|
+
let f = [], p = a ?? !0;
|
|
33
|
+
e && e.length > 0 && !i ? (f = e, l = !0, p = !1) : i && (f = [i]);
|
|
34
34
|
try {
|
|
35
35
|
return (await N.request({
|
|
36
36
|
baseURL: t,
|
|
37
|
+
cache: !s && void 0,
|
|
37
38
|
headers: { Authorization: `Bearer ${n}` },
|
|
38
39
|
method: "GET",
|
|
39
40
|
params: {
|
|
40
|
-
IncludeDirectChild:
|
|
41
|
+
IncludeDirectChild: p,
|
|
41
42
|
IncludeVirtualFolders: !r,
|
|
42
43
|
Limit: o,
|
|
43
|
-
ObjectRecordIDs:
|
|
44
|
-
SeeThru: !!
|
|
45
|
-
Self:
|
|
46
|
-
Start:
|
|
47
|
-
Text:
|
|
48
|
-
Token:
|
|
44
|
+
ObjectRecordIDs: f,
|
|
45
|
+
SeeThru: !!c,
|
|
46
|
+
Self: l,
|
|
47
|
+
Start: u,
|
|
48
|
+
Text: c || void 0,
|
|
49
|
+
Token: d || void 0
|
|
49
50
|
},
|
|
50
51
|
paramsSerializer: { indexes: null },
|
|
51
52
|
responseType: "json",
|
|
@@ -75,7 +76,7 @@ async function W({ allowedFolders: e, baseUrl: t, bearerToken: n, excludeVirtual
|
|
|
75
76
|
title: n
|
|
76
77
|
};
|
|
77
78
|
}) ?? [],
|
|
78
|
-
hasMore:
|
|
79
|
+
hasMore: u + r < e.totalCount,
|
|
79
80
|
totalCount: e.totalCount
|
|
80
81
|
};
|
|
81
82
|
}],
|
|
@@ -98,7 +99,7 @@ var G = {
|
|
|
98
99
|
return e.Input = "input", e.Select = "select", e;
|
|
99
100
|
}({}), q = class extends o {
|
|
100
101
|
constructor(...e) {
|
|
101
|
-
super(...e), this.localize = new u(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = k.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = W, this.excludeVirtualFolders = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
|
|
102
|
+
super(...e), this.localize = new u(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = k.Story, this.name = "", this.representativeAssetId = "", this.selectedValue = "", this.selection = "single", this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.token = "", this.bearerToken = "", this.baseUrl = "", this.searchTerm = "", this.api = W, this.excludeVirtualFolders = !1, this.reloadOnExpand = !1, this.url = "", this.icon = "", this.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
|
|
102
103
|
}
|
|
103
104
|
static #e = this.styles = [c];
|
|
104
105
|
static #t = this.dependencies = {
|
|
@@ -123,6 +124,7 @@ var G = {
|
|
|
123
124
|
bearerToken: this.bearerToken,
|
|
124
125
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
125
126
|
folderId: e,
|
|
127
|
+
noCache: this.reloadOnExpand,
|
|
126
128
|
start: t,
|
|
127
129
|
token: this.token
|
|
128
130
|
});
|
|
@@ -166,6 +168,9 @@ var G = {
|
|
|
166
168
|
this.treeItem.expanded = !1;
|
|
167
169
|
}
|
|
168
170
|
}
|
|
171
|
+
handleAfterCollapse(e) {
|
|
172
|
+
this.reloadOnExpand && e.target === this.treeItem && (this.data = null);
|
|
173
|
+
}
|
|
169
174
|
async syncBoxes() {
|
|
170
175
|
if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem)) return;
|
|
171
176
|
let e = this.fullPath, t = v({
|
|
@@ -195,7 +200,7 @@ var G = {
|
|
|
195
200
|
return e`<cx-tree-item class=${f({ "folder-select-tree-item": !0 })} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(this.representativeAssetId || void 0)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(v({
|
|
196
201
|
id: this.folderId,
|
|
197
202
|
path: this.fullPath
|
|
198
|
-
})) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${O(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${w(this.data || [], (e) => e.id, (t) => e`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} doc-type=${t.docType} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} 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} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`)}
|
|
203
|
+
})) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad} @cx-after-collapse=${this.handleAfterCollapse}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${O(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${w(this.data || [], (e) => e.id, (t) => e`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} doc-type=${t.docType} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`)}
|
|
199
204
|
${m(this.hasMore, () => e`<div slot="children" class="load-more-button"><cx-button variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button></div>`)}</cx-tree-item>`;
|
|
200
205
|
}
|
|
201
206
|
};
|
|
@@ -259,6 +264,10 @@ i([s("cx-tree-item"), a("design:type", A === void 0 ? Object : A)], q.prototype,
|
|
|
259
264
|
reflect: !0,
|
|
260
265
|
type: Boolean
|
|
261
266
|
}), a("design:type", Boolean)], q.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
267
|
+
attribute: "reload-on-expand",
|
|
268
|
+
reflect: !0,
|
|
269
|
+
type: Boolean
|
|
270
|
+
}), a("design:type", Boolean)], q.prototype, "reloadOnExpand", void 0), i([n({
|
|
262
271
|
reflect: !0,
|
|
263
272
|
type: String
|
|
264
273
|
}), a("design:type", String)], q.prototype, "url", void 0), i([n({
|
|
@@ -291,7 +300,7 @@ i([s("cx-tree-item"), a("design:type", A === void 0 ? Object : A)], q.prototype,
|
|
|
291
300
|
], q.prototype, "syncBoxes", null), q = i([l("cx-folder-select-tree-item")], q);
|
|
292
301
|
var J = q, Y = class extends o {
|
|
293
302
|
constructor(...e) {
|
|
294
|
-
super(...e), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = W, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.#t = !1, this.#n = 10, this.#r = /* @__PURE__ */ new Set();
|
|
303
|
+
super(...e), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.searchTerm = "", this.selectedValue = "", this.token = "", this.bearerToken = "", this.baseUrl = "", this.allowedFolders = [], this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.seeThru = !1, this.extraFolderData = null, this.api = W, this.excludeVirtualFolders = !1, this.reloadOnExpand = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.#t = !1, this.#n = 10, this.#r = /* @__PURE__ */ new Set();
|
|
295
304
|
}
|
|
296
305
|
static #e = this.dependencies = {
|
|
297
306
|
"cx-button": _,
|
|
@@ -459,14 +468,14 @@ var J = q, Y = class extends o {
|
|
|
459
468
|
return r ? (this.currentRootIDsSet = new Set(this.currentRootIDsSet), t || this.emit("cx-folder-select-selection-seeded"), !0) : !1;
|
|
460
469
|
}
|
|
461
470
|
renderFolder(t) {
|
|
462
|
-
return e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`;
|
|
471
|
+
return e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`;
|
|
463
472
|
}
|
|
464
473
|
render() {
|
|
465
474
|
return e`<cx-tree class="folder-select-tree" selection=${this.selection} force-on-change disabled-auto-expand disabled-sync-checkboxes @cx-selected-change=${this.handleSelectedChange} @cx-folder-select-children-loaded=${this.handleChildrenLoaded}>${m(this.empty, () => e`<div class="folder-select-tree__empty-message" role="status" aria-live="polite"><cx-typography variant="body3">${this.localize.term("noResults")}</cx-typography></div>`)}
|
|
466
|
-
${m(this.extraFolderData, () => e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${p(this.extraFolderData?.docType ?? void 0)} folder-id=${p(this.extraFolderData?.id ?? void 0)} full-path=${p(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${p(this.extraFolderData?.iconName || void 0)} icon-image-url=${p(this.extraFolderData?.iconImageUrl || void 0)} icon-color=${p(this.extraFolderData?.iconColor || void 0)} 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=${p(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`)}
|
|
475
|
+
${m(this.extraFolderData, () => e`<cx-folder-select-tree-item .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${p(this.extraFolderData?.docType ?? void 0)} folder-id=${p(this.extraFolderData?.id ?? void 0)} full-path=${p(this.extraFolderData?.fullPath ?? void 0)} icon=${this.extraFolderIcon} icon-name=${p(this.extraFolderData?.iconName || void 0)} icon-image-url=${p(this.extraFolderData?.iconImageUrl || void 0)} icon-color=${p(this.extraFolderData?.iconColor || void 0)} 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=${p(this.extraFolderData?.url ?? void 0)} ?has-children=${this.extraFolderData?.hasChildren} ?is-font-icon=${this.extraFolderData?.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`)}
|
|
467
476
|
${w(this.data, (e) => e.id, (e) => this.renderFolder(e))}
|
|
468
477
|
${m(this.hasMore, () => e`<cx-button class="folder-select-tree__load-more" variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`)}
|
|
469
|
-
${w(this.preloadedFolders, (e) => `preloaded-${e.id}`, (t) => e`<cx-folder-select-tree-item style=${g({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`)}</cx-tree>`;
|
|
478
|
+
${w(this.preloadedFolders, (e) => `preloaded-${e.id}`, (t) => e`<cx-folder-select-tree-item style=${g({ display: "none" })} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} base-url=${this.baseUrl} doc-type=${t.docType} folder-id=${t.id} full-path=${p(t.fullPath ?? void 0)} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} name=${t.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(t.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand}></cx-folder-select-tree-item>`)}</cx-tree>`;
|
|
470
479
|
}
|
|
471
480
|
};
|
|
472
481
|
i([n({
|
|
@@ -521,6 +530,10 @@ i([n({
|
|
|
521
530
|
reflect: !0,
|
|
522
531
|
type: Boolean
|
|
523
532
|
}), a("design:type", Boolean)], Y.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
533
|
+
attribute: "reload-on-expand",
|
|
534
|
+
reflect: !0,
|
|
535
|
+
type: Boolean
|
|
536
|
+
}), a("design:type", Boolean)], Y.prototype, "reloadOnExpand", void 0), i([n({
|
|
524
537
|
attribute: "first-fetch-callback",
|
|
525
538
|
reflect: !1,
|
|
526
539
|
type: Function
|
|
@@ -567,7 +580,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
|
|
|
567
580
|
};
|
|
568
581
|
#n;
|
|
569
582
|
constructor() {
|
|
570
|
-
super(), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.variant = K.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = W, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
583
|
+
super(), this.localize = new u(this), this.minQueryLength = 1, this.selection = "single", this.variant = K.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = W, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.reloadOnExpand = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", this.treeLoading = !1, this.selectGetOptionValue = this.selectGetOptionValue.bind(this), this.selectGetOptionLabel = this.selectGetOptionLabel.bind(this), this.selectGetOptionSelected = this.selectGetOptionSelected.bind(this), this.selectFilterCallback = this.selectFilterCallback.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
571
584
|
}
|
|
572
585
|
updateWrappedApi() {
|
|
573
586
|
if (!this.api) {
|
|
@@ -664,7 +677,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
|
|
|
664
677
|
this.selectEl && (this.searchTerm = "", this.updateFunctionProps());
|
|
665
678
|
}
|
|
666
679
|
render() {
|
|
667
|
-
return e`<div class="folder-select">${F(this.variant, [[K.Input, () => e`<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} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`], [K.Select, () => e`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} ?loading=${this.treeLoading} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} @cx-folder-select-loading-change=${this.handleTreeLoadingChange} @cx-folder-select-children-loaded=${this.handleTreeChildrenLoaded} allow-freetext><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} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`]])}</div>`;
|
|
680
|
+
return e`<div class="folder-select">${F(this.variant, [[K.Input, () => e`<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} ?reload-on-expand=${this.reloadOnExpand} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`], [K.Select, () => e`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} ?loading=${this.treeLoading} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} @cx-folder-select-selection-seeded=${this.handleTreeSelectedChange} @cx-folder-select-loading-change=${this.handleTreeLoadingChange} @cx-folder-select-children-loaded=${this.handleTreeChildrenLoaded} allow-freetext><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} ?reload-on-expand=${this.reloadOnExpand} ?see-thru=${this.seeThru} ?auto-page-size=${this.autoPageSize} .allowedFolders=${this.allowedFolders} .api=${this.#n} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`]])}</div>`;
|
|
668
681
|
}
|
|
669
682
|
};
|
|
670
683
|
i([s("cx-select"), a("design:type", D === void 0 ? Object : D)], Q.prototype, "selectEl", void 0), i([s("cx-folder-select-tree"), a("design:type", X === void 0 ? Object : X)], Q.prototype, "treeEl", void 0), i([n({
|
|
@@ -719,6 +732,10 @@ i([s("cx-select"), a("design:type", D === void 0 ? Object : D)], Q.prototype, "s
|
|
|
719
732
|
reflect: !0,
|
|
720
733
|
type: Boolean
|
|
721
734
|
}), a("design:type", Boolean)], Q.prototype, "excludeVirtualFolders", void 0), i([n({
|
|
735
|
+
attribute: "reload-on-expand",
|
|
736
|
+
reflect: !0,
|
|
737
|
+
type: Boolean
|
|
738
|
+
}), a("design:type", Boolean)], Q.prototype, "reloadOnExpand", void 0), i([n({
|
|
722
739
|
attribute: "extra-folder-id",
|
|
723
740
|
reflect: !0,
|
|
724
741
|
type: String
|
|
@@ -8,7 +8,7 @@ import { t as c } from "../chunks/alert.C-yzkTnx.js";
|
|
|
8
8
|
import { t as l } from "../chunks/am-chart.COOKOvT1.js";
|
|
9
9
|
import { t as u } from "../chunks/animated-image.w6VdagCh.js";
|
|
10
10
|
import { t as d } from "../chunks/animation.CRLxJUWm.js";
|
|
11
|
-
import { n as f, r as p, t as m } from "../chunks/src.
|
|
11
|
+
import { n as f, r as p, t as m } from "../chunks/src.B0uws0rG.js";
|
|
12
12
|
import { t as h } from "../chunks/button.BE-fTtOZ.js";
|
|
13
13
|
import { t as g } from "../chunks/tooltip.EVa9qa8X.js";
|
|
14
14
|
import { t as _ } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
@@ -17,10 +17,10 @@ import { t as y } from "../chunks/tag.pKuKheLJ.js";
|
|
|
17
17
|
import { t as b } from "../chunks/array-line-clamp.C1AjzjRt.js";
|
|
18
18
|
import { t as x } from "../chunks/typography.B0mkhqTB.js";
|
|
19
19
|
import { t as S } from "../chunks/audio.DILTfO5v.js";
|
|
20
|
-
import { t as C } from "../chunks/
|
|
21
|
-
import { t as w } from "../chunks/
|
|
22
|
-
import { t as T } from "../chunks/
|
|
23
|
-
import { t as E } from "../chunks/
|
|
20
|
+
import { t as C } from "../chunks/avatar.Ce0OZHBT.js";
|
|
21
|
+
import { t as w } from "../chunks/box.DvLxXaBD.js";
|
|
22
|
+
import { t as T } from "../chunks/badge.H_UuxPXn.js";
|
|
23
|
+
import { t as E } from "../chunks/breadcrumb.CtZqzMBY.js";
|
|
24
24
|
import { t as D } from "../chunks/breadcrumb-item.nHAFmgtO.js";
|
|
25
25
|
import { t as O } from "../chunks/button-group.CPfXrqyq.js";
|
|
26
26
|
import { t as k } from "../chunks/card.3c-X4hqR.js";
|
|
@@ -86,4 +86,4 @@ import { t as Pe } from "../chunks/switch.D6KXmWnC.js";
|
|
|
86
86
|
import { t as Fe } from "../chunks/timecode.Bte9Ww5o.js";
|
|
87
87
|
import { a as Ie, i as Le } from "../chunks/tree.0n9ApKdO.js";
|
|
88
88
|
import { n as Re } from "../chunks/video.BVMZglAW.js";
|
|
89
|
-
export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio,
|
|
89
|
+
export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio, C as CxAvatar, T as CxBadge, w as CxBox, E as CxBreadcrumb, D as CxBreadcrumbItem, h as CxButton, O as CxButtonGroup, k as CxCard, A as CxCheckbox, U as CxColorPicker, W as CxCopyButton, G as CxDateCalendar, K as CxDetails, q as CxDialog, Y as CxDiff, J as CxDivider, Q as CxDocumentViewer, te as CxDotPagination, ne as CxDotStatus, X as CxDrawer, j as CxDropdown, re as CxEChart, ie as CxElementClamp, ae as CxFormatBytes, oe as CxFormatDate, se as CxFormatNumber, ce as CxFormatTime, le as CxGrid, ue as CxGridItem, de as CxHeader, fe as CxHubConnection, o as CxIcon, a as CxIconButton, pe as CxIframe, $ as CxImage, me as CxImageComparer, he as CxInclude, M as CxInput, ge as CxInputGroup, v as CxLineClamp, _e as CxMarkdown, N as CxMenu, P as CxMenuItem, ve as CxMenuLabel, ye as CxMenuSection, be as CxMutationObserver, I as CxOption, xe as CxPagination, e as CxPopup, Z as CxProgressBar, Se as CxProgressRing, Ce as CxQrCode, we as CxRadio, Te as CxRadioButton, Ee as CxRadioCard, De as CxRadioGroup, Oe as CxRange, ke as CxRating, Ae as CxRelativeTime, _ as CxResizeObserver, R as CxSelect, ee as CxSkeleton, L as CxSpace, s as CxSpinner, je as CxSplitPanel, Me as CxStep, Ne as CxStepper, Pe as CxSwitch, z as CxTab, B as CxTabGroup, V as CxTabPanel, y as CxTag, F as CxTextarea, Fe as CxTimecode, g as CxTooltip, Le as CxTree, Ie as CxTreeItem, x as CxTypography, Re as CxVideo, H as CxVisuallyHidden, t as componentStyles, m as fontAwesomeIconNames, i as getAnimation, f as getAnimationNames, p as getEasingNames, n as setAnimation, r as setDefaultAnimation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/folder-select.
|
|
1
|
+
import { t as e } from "../chunks/folder-select.B1gyfanN.js";
|
|
2
2
|
export { e as default };
|
|
@@ -5,7 +5,7 @@ import { t as r } from "../chunks/confirm-popover.Difhn86O.js";
|
|
|
5
5
|
import { t as i } from "../chunks/corner-position-input-group.80bovr6F.js";
|
|
6
6
|
import { t as a } from "../chunks/cropper.D4ymxgab.js";
|
|
7
7
|
import { t as o } from "../chunks/dynamic-select.CyzcAHU5.js";
|
|
8
|
-
import { t as s } from "../chunks/folder-select.
|
|
8
|
+
import { t as s } from "../chunks/folder-select.B1gyfanN.js";
|
|
9
9
|
import { t as c } from "../chunks/masonry.MH1B7um_.js";
|
|
10
10
|
import { t as l } from "../chunks/padding-input-group.DYHH1M0o.js";
|
|
11
11
|
import { t as u } from "../chunks/position-picker.B3klGTsy.js";
|
|
@@ -24,7 +24,7 @@ import { t as ue } from "../chunks/alert.C-yzkTnx.js";
|
|
|
24
24
|
import { t as de } from "../chunks/am-chart.COOKOvT1.js";
|
|
25
25
|
import { t as fe } from "../chunks/animated-image.w6VdagCh.js";
|
|
26
26
|
import { t as I } from "../chunks/animation.CRLxJUWm.js";
|
|
27
|
-
import { n as pe, r as me, t as he } from "../chunks/src.
|
|
27
|
+
import { n as pe, r as me, t as he } from "../chunks/src.B0uws0rG.js";
|
|
28
28
|
import { t as ge } from "../chunks/style-map.DPGQIxip.js";
|
|
29
29
|
import { n as _e, t as ve } from "../chunks/button.BE-fTtOZ.js";
|
|
30
30
|
import { c as ye, i as be, l as xe, o as Se, r as Ce, s as we } from "../chunks/resizable-component.styles.v9pbLDG5.js";
|
|
@@ -38,7 +38,7 @@ import { t as kt } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
|
38
38
|
import { t as At } from "../chunks/line-clamp.CUDArhQk.js";
|
|
39
39
|
import { t as jt } from "../chunks/tag.pKuKheLJ.js";
|
|
40
40
|
import { t as Mt } from "../chunks/array-line-clamp.C1AjzjRt.js";
|
|
41
|
-
import { C as Nt, D as Pt, E as Ft, S as It, T as Lt, a as Rt, b as zt, d as Bt, f as Vt, l as Ht, n as Ut, o as Wt, u as Gt, v as Kt, w as qt, x as Jt, y as Yt } from "../chunks/config-manager.utils.
|
|
41
|
+
import { C as Nt, D as Pt, E as Ft, S as It, T as Lt, a as Rt, b as zt, d as Bt, f as Vt, l as Ht, n as Ut, o as Wt, u as Gt, v as Kt, w as qt, x as Jt, y as Yt } from "../chunks/config-manager.utils.Cwh2oohu.js";
|
|
42
42
|
import { n as Xt, t as Zt } from "../chunks/position-picker.dY_vgF_H.js";
|
|
43
43
|
import { a as Qt, i as $t, n as en, o as tn, r as nn, s as rn, t as an } from "../chunks/src.BJhIYoMP.js";
|
|
44
44
|
import { a as on, c as sn, i as cn, n as ln, o as un, r as dn, t as fn, u as pn } from "../chunks/time.p1t0NCwj.js";
|
|
@@ -47,10 +47,10 @@ import { a as Cn, c as wn, i as Tn, l as En, n as Dn, o as On, r as kn, s as An,
|
|
|
47
47
|
import { n as Mn, t as Nn } from "../chunks/waveform.BFEuRt2_.js";
|
|
48
48
|
import { n as Pn, t as Fn } from "../chunks/typography.B0mkhqTB.js";
|
|
49
49
|
import { t as In } from "../chunks/audio.DILTfO5v.js";
|
|
50
|
-
import { t as Ln } from "../chunks/
|
|
51
|
-
import { t as Rn } from "../chunks/
|
|
52
|
-
import { t as zn } from "../chunks/
|
|
53
|
-
import { t as Bn } from "../chunks/
|
|
50
|
+
import { t as Ln } from "../chunks/avatar.Ce0OZHBT.js";
|
|
51
|
+
import { t as Rn } from "../chunks/box.DvLxXaBD.js";
|
|
52
|
+
import { t as zn } from "../chunks/badge.H_UuxPXn.js";
|
|
53
|
+
import { t as Bn } from "../chunks/breadcrumb.CtZqzMBY.js";
|
|
54
54
|
import { t as Vn } from "../chunks/breadcrumb-item.nHAFmgtO.js";
|
|
55
55
|
import { t as Hn } from "../chunks/button-group.CPfXrqyq.js";
|
|
56
56
|
import { t as Un } from "../chunks/card.3c-X4hqR.js";
|
|
@@ -154,7 +154,7 @@ import { t as js } from "../chunks/toNumber.BBjIwSoo.js";
|
|
|
154
154
|
import { t as Ms } from "../chunks/debounce.DrhImrNP.js";
|
|
155
155
|
import { t as Ns } from "../chunks/dynamic-select.CyzcAHU5.js";
|
|
156
156
|
import { f as Ps, i as Fs } from "../chunks/endpoints.jOHOmF_t.js";
|
|
157
|
-
import { r as Is, t as Ls } from "../chunks/folder-select.
|
|
157
|
+
import { r as Is, t as Ls } from "../chunks/folder-select.B1gyfanN.js";
|
|
158
158
|
import { t as Rs } from "../chunks/choose.C2vpqhLc.js";
|
|
159
159
|
import { t as zs } from "../chunks/masonry.MH1B7um_.js";
|
|
160
160
|
import { t as Bs } from "../chunks/padding-input-group.DYHH1M0o.js";
|
|
@@ -170,7 +170,7 @@ import { c as sc, h as cc, l as lc, m as uc, p as dc, t as fc, u as pc } from ".
|
|
|
170
170
|
import { n as mc } from "../chunks/isArrayLikeObject.Da3IzQeH.js";
|
|
171
171
|
import { t as hc } from "../chunks/file-on-demand.7OPAGIG4.js";
|
|
172
172
|
import "../events.js";
|
|
173
|
-
import { $ as gc, A as _c, D as vc, E as yc, F as bc, G as xc, I as Sc, K as Cc, M as eee, N as tee, O as nee, P as ree, Q as wc, S as Tc, T as iee, U as aee, W as Ec, Z as Dc, _ as oee, a as see, b as Oc, c as kc, d as Ac, et as jc, h as Mc, i as Nc, j as cee, k as lee, l as uee, m as dee, nt as fee, r as pee, s as Pc, t as Fc, tt as Ic, u as Lc, v as Rc, w as zc, x as Bc } from "../chunks/configs-controller.
|
|
173
|
+
import { $ as gc, A as _c, D as vc, E as yc, F as bc, G as xc, I as Sc, K as Cc, M as eee, N as tee, O as nee, P as ree, Q as wc, S as Tc, T as iee, U as aee, W as Ec, Z as Dc, _ as oee, a as see, b as Oc, c as kc, d as Ac, et as jc, h as Mc, i as Nc, j as cee, k as lee, l as uee, m as dee, nt as fee, r as pee, s as Pc, t as Fc, tt as Ic, u as Lc, v as Rc, w as zc, x as Bc } from "../chunks/configs-controller.CCJxfSjT.js";
|
|
174
174
|
import { i as Vc } from "../chunks/timer.M6Aa3L_j.js";
|
|
175
175
|
import { a as Hc, c as Uc, d as Wc, f as Gc, i as Kc, l as qc, n as Jc, o as Yc, r as Xc, s as Zc, t as Qc, u as $c } from "../chunks/src.CLGAM3OO.js";
|
|
176
176
|
import { t as el } from "../chunks/value.C4_tUrAq.js";
|
|
@@ -14450,7 +14450,7 @@ var T_ = class extends d {
|
|
|
14450
14450
|
`
|
|
14451
14451
|
];
|
|
14452
14452
|
static #t = this.dependencies = {
|
|
14453
|
-
"cx-badge":
|
|
14453
|
+
"cx-badge": zn,
|
|
14454
14454
|
"cx-card": Un,
|
|
14455
14455
|
"cx-divider": mi,
|
|
14456
14456
|
"cx-dropdown": ar,
|
|
@@ -26895,7 +26895,7 @@ var $D = QD, eO = i`
|
|
|
26895
26895
|
}
|
|
26896
26896
|
static #e = this.styles = eO;
|
|
26897
26897
|
static #t = this.dependencies = {
|
|
26898
|
-
"cx-badge":
|
|
26898
|
+
"cx-badge": zn,
|
|
26899
26899
|
"cx-icon": ce,
|
|
26900
26900
|
"cx-menu": dr,
|
|
26901
26901
|
"cx-menu-item": mr,
|
|
@@ -27882,7 +27882,7 @@ var wse = dO, Tse = i`:host{display:contents}cx-dialog{--width:var(--publish-pag
|
|
|
27882
27882
|
}
|
|
27883
27883
|
static #e = this.styles = [g, Tse];
|
|
27884
27884
|
static #t = this.dependencies = {
|
|
27885
|
-
"cx-badge":
|
|
27885
|
+
"cx-badge": zn,
|
|
27886
27886
|
"cx-button": ve,
|
|
27887
27887
|
"cx-checkbox": Wn,
|
|
27888
27888
|
"cx-dialog": fi,
|
|
@@ -39096,7 +39096,7 @@ var _R = gR(), vR = r`<svg xmlns="http://www.w3.org/2000/svg" width="14mm" heigh
|
|
|
39096
39096
|
}
|
|
39097
39097
|
static #e = this.styles = [g, ER];
|
|
39098
39098
|
static #t = this.dependencies = {
|
|
39099
|
-
"cx-badge":
|
|
39099
|
+
"cx-badge": zn,
|
|
39100
39100
|
"cx-icon": ce,
|
|
39101
39101
|
"cx-tooltip": Ot
|
|
39102
39102
|
};
|
|
@@ -39183,7 +39183,7 @@ var jR = AR, MR = {
|
|
|
39183
39183
|
}, NR = class extends d {
|
|
39184
39184
|
static #e = this.styles = [g, CR];
|
|
39185
39185
|
static #t = this.dependencies = {
|
|
39186
|
-
"cx-badge":
|
|
39186
|
+
"cx-badge": zn,
|
|
39187
39187
|
"cx-chatbot-footer": jR,
|
|
39188
39188
|
"cx-chatbot-popup": OR,
|
|
39189
39189
|
"cx-checkbox": Wn,
|
|
@@ -94938,7 +94938,7 @@ var ITe = [
|
|
|
94938
94938
|
return this.mappedSupportedLanguages.length > 1;
|
|
94939
94939
|
}
|
|
94940
94940
|
ensureConfigUi() {
|
|
94941
|
-
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.
|
|
94941
|
+
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.C-zxaCbo.js"), import("../chunks/configs-controller.CCJxfSjT.js").then((e) => e.n)]).then(async ([, e]) => {
|
|
94942
94942
|
this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
|
|
94943
94943
|
});
|
|
94944
94944
|
}
|
|
@@ -103155,7 +103155,7 @@ var n9 = {
|
|
|
103155
103155
|
}, r9 = class extends d {
|
|
103156
103156
|
static #e = this.styles = DDe;
|
|
103157
103157
|
static #t = this.dependencies = {
|
|
103158
|
-
"cx-badge":
|
|
103158
|
+
"cx-badge": zn,
|
|
103159
103159
|
"cx-button": ve,
|
|
103160
103160
|
"cx-checkbox": Wn,
|
|
103161
103161
|
"cx-confirm-popover": Os,
|
|
@@ -110997,4 +110997,4 @@ l([s({ type: String }), u("design:type", Object)], $9.prototype, "value", void 0
|
|
|
110997
110997
|
], $9.prototype, "handleValueChange", null), $9 = Q9 = l([C("cx-xml-editor")], $9);
|
|
110998
110998
|
var cke = $9;
|
|
110999
110999
|
//#endregion
|
|
111000
|
-
export { fa as AUTO_FALLBACK_FORMAT, pa as AUTO_FORMAT_EXTENSION, ma as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Ki as CMYK_VALIDATION_REGEX, oi as CalendarGrid, Vi as ColorType, an as CornerPosition, d as CortexElement, ha as CortexPopupController, Cee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Du as CxAnnotator, fle as CxAnnotatorComment, Mt as CxArrayLineClamp, Pu as CxAssetDataDisplay, zt as CxAssetFormatPicker, ac as CxAssetLinkFormat, Lt as CxAssetPicker, Yt as CxAssetTransformationDialog, In as CxAudio,
|
|
111000
|
+
export { fa as AUTO_FALLBACK_FORMAT, pa as AUTO_FORMAT_EXTENSION, ma as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Ki as CMYK_VALIDATION_REGEX, oi as CalendarGrid, Vi as ColorType, an as CornerPosition, d as CortexElement, ha as CortexPopupController, Cee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Du as CxAnnotator, fle as CxAnnotatorComment, Mt as CxArrayLineClamp, Pu as CxAssetDataDisplay, zt as CxAssetFormatPicker, ac as CxAssetLinkFormat, Lt as CxAssetPicker, Yt as CxAssetTransformationDialog, In as CxAudio, Ln as CxAvatar, zn as CxBadge, Ale as CxBentoGrid, Ts as CxBicolorPicker, Es as CxBorderInputGroup, Rn as CxBox, Bn as CxBreadcrumb, Vn as CxBreadcrumbItem, ve as CxButton, Hn as CxButtonGroup, Vle as CxCapacityPlanner, Un as CxCard, KP as CxCarousel, vz as CxChartPlanBuilder, PR as CxChatbot, Wn as CxCheckbox, wz as CxClusterManagement, Br as CxColorPicker, Ds as CxColorSwatch, fc as CxColorSwatchGroup, nP as CxComment, Oz as CxCommentV1, Os as CxConfirmPopover, UTe as CxContentBuilder, $Te as CxContentBuilderViewer, Vr as CxCopyButton, ks as CxCornerPositionInputGroup, As as CxCropper, Rt as CxDamCustomToolbarButtonsEditor, mle as CxDashboardFilter, Lu as CxDashboardIframe, yle as CxDashboardTable, Bu as CxDataTabGroup, ui as CxDateCalendar, di as CxDetails, Wu as CxDetailsGroup, fi as CxDialog, hi as CxDiff, mi as CxDivider, Xu as CxDocsExample, yi as CxDocumentViewer, ko as CxDotPagination, Ao as CxDotStatus, qt as CxDownloadFormatPicker, ADe as CxDownloader, _i as CxDrawer, ar as CxDropdown, Ns as CxDynamicSelect, jo as CxEChart, Mo as CxElementClamp, td as CxEstimatedReadingTime, sd as CxFacetDatePicker, pd as CxFacetDateRange, dc as CxFacetedFilter, vd as CxFacetedFilterFacet, hc as CxFileOnDemand, MDe as CxFindAndReplace, Ls as CxFolderSelect, Nt as CxFontPicker, No as CxFormatBytes, Po as CxFormatDate, Fo as CxFormatNumber, Io as CxFormatTime, Sd as CxGalleryItem, E_ as CxGraphView, Lo as CxGrid, Ro as CxGridItem, zo as CxHeader, Ho as CxHubConnection, ce as CxIcon, oe as CxIconButton, It as CxIconPicker, Wo as CxIframe, To as CxImage, Go as CxImageComparer, Ko as CxInclude, ur as CxInput, id as CxInputDatePicker, ud as CxInputDateRangePicker, qo as CxInputGroup, PDe as CxLightbox, At as CxLineClamp, Wt as CxListEditor, $o as CxMarkdown, $D as CxMarkdownViewer, zs as CxMasonry, nO as CxMentions, dr as CxMenu, mr as CxMenuItem, es as CxMenuLabel, ts as CxMenuSection, lc as CxMultiSelect, ns as CxMutationObserver, vr as CxOption, Bs as CxPaddingInputGroup, hse as CxPageOutline, rs as CxPagination, wse as CxPdfViewerToolbar, h as CxPopup, Vs as CxPositionPicker, vi as CxProgressBar, is as CxProgressRing, Ese as CxPublishPage, as as CxQrCode, ss as CxRadio, cs as CxRadioButton, ls as CxRadioCard, us as CxRadioGroup, ds as CxRange, fs as CxRating, ps as CxRelativeTime, kt as CxResizeObserver, Or as CxSelect, Hs as CxShadowInputGroup, Us as CxShareOptionList, Ws as CxSidebar, Gs as CxSizeInputGroup, Do as CxSkeleton, yr as CxSpace, IDe as CxSpaceSelector, z3 as CxSpecialCharactersDialog, le as CxSpinner, ms as CxSplitPanel, Ose as CxStatCard, hs as CxStep, gs as CxStepper, Ks as CxStepperWizard, jse as CxStorybook, _s as CxSwitch, kr as CxTab, Pr as CxTabGroup, Rr as CxTabPanel, jt as CxTag, UDe as CxTemplateSwitcher, YOe as CxTextToSpeech, _r as CxTextarea, vs as CxTimecode, Ot as CxTooltip, bs as CxTree, ys as CxTreeItem, Jt as CxTypeSubtypeSelect, qs as CxTypeface, Fn as CxTypography, Cs as CxVideo, EO as CxViewAndSort, zr as CxVisuallyHidden, cke as CxXmlEditor, oa as DEFAULT_BREAKPOINTS, ai as DateRangePresets, ga as DragScroll, en as Easing, nn as EasingFunction, _t as FormControlController, $t as GsapEasing, Wi as HEX_ALPHA_VALIDATION_REGEX, Ri as HEX_VALIDATION_REGEX, O as HasSlotController, _a as HistoryManager, Pt as IconPickerVariant, va as KeyboardKey, T as LocalizeController, er as MIN_GRADIENT_STOPS, Zt as OBJECT_POSITION_BY_CROP_FOCUS, Qt as ObjectFit, tn as Orientation, ya as PRECISION, Xt as PositionPickerValue, ji as RELATIVE_URL_REGEX, Ni as RGB_VALIDATION_REGEX, ba as SRCSET_WIDTH_LADDER, rn as TransitionType, Ei as URL_DOMAIN_VALIDATION_REGEX, ki as URL_INTRANET_DOMAIN_VALIDATION_REGEX, wi as URL_PROTOCOL_VALIDATION_REGEX, bi as URL_VALIDATION_REGEX, xr as activeElements, qr as addMonths, xa as adjustRelativeValues, y as animateTo, Di as appendProtocol, Ai as appendQueryParam, Sa as applyTransformationsToUrl, Ca as applyWidthToAssetUrl, wa as buildAssetSrcset, Ta as buildSizesFromDisplayWidth, Ea as buildTransformationString, Nn as buildWaveformPath, jn as calculateAspectRatioFit, rr as clamp, Dn as cleanImageFileName, fn as clearZeroDurationParts, g as componentStyles, Hi as convertColor, Sn as convertDataUnits, vn as convertDurationToMilliseconds, bn as convertPixelsToAspectRatio, kn as convertSrcToBlob, Xn as createStopId, Tn as cropImage, ut as cssValueToPx, C as customElement, mt as customErrorValidityState, Dt as debounce, Gn as defaultValue, Da as downloadAsset, tr as drag, Ge as emptyToSpace, Be as escapeXML, Gi as extractColor, Ue as extractExtension, Oa as extractFrames, Le as extractRootData, gn as extractValueAndUnit, Mn as extractWaveformPeaks, ka as fetchCortexApi, Tt as findAncestorWithBuggyStyle, xt as findContainingBlock, Ct as findCuttingAncestor, Aa as findFrameByColAndRow, ja as findIndexByProp, or as focusWhenVisible, he as fontAwesomeIconNames, gt as formCollections, mn as formatAspectRatioString, Pi as formatColorCodeSeparator, ln as formatDurationPartsManually, zi as formatHexCode, Jr as formatIsoToDisplay, ni as formatMonthYearLabel, yn as formatNumberWithGrouping, Me as formatSecondsToTime, Ve as formatTimeToSeconds, dn as formatWithIntlDurationFormat, xn as gcd, at as getActiveElement, pi as getActiveModals, ie as getAnimation, pe as getAnimationNames, pt as getAssociatedForm, ct as getAttributes, We as getAttributesString, na as getBreakpointsFromCSS, Ma as getBrowserFontVariants, qi as getColorType, Cn as getContainedImageSize, nt as getCortexPopupLayer, Ze as getCurrentZIndex, $r as getDateMask, br as getDeepestActiveElement, ia as getDeviceType, cn as getDurationPartsByUnitsFormat, me as getEasingNames, ot as getElementFromHTMLString, lt as getElementFromTemplate, Xr as getFirstDayOfWeek, Na as getFontFamilyOptionValue, Pa as getFontFamilyVariants, Fa as getFormControls, ua as getHighlightedTitle, la as getHighlightedTitleHtml, E as getInnerHTML, Ia as getInterval, Fi as getLightDarkCssString, On as getNaturalWidthHeight, Qe as getNeededPaddingForBoxShadow, yt as getNextAncestor, Sr as getOffset, rt as getRelativeClickPercentage, L as getRootIDString, cr as getTabbableBoundary, sr as getTabbableElements, D as getTextContent, Yr as getTodayIsoDate, La as getTypefaceOptionValue, Ra as groupBy, za as hasTransformSegment, Re as htmlToPlainText, Ba as insertAtIndex, Va as insertFrameToCache, Ha as insertMultipleAtIndex, Qn as interpolateStopColor, vt as isChrome, Er as isCortexAdobePlugin, dt as isDomElement, $e as isElementInHorizontalView, xi as isExpiredAssetUrl, St as isFirefox, Ua as isFontFamilyAvailable, Wa as isFormInteracted, Ke as isGalleryItemCardType, Jn as isGradientString, wt as isIOS, et as isInElement, Ga as isModKey, z as isSafari, An as isSaveSrcValid, Ti as isValidDomainOrIntranetUrl, Ur as isValidIsoDate, Mi as isValidUrl, si as isoToDate, Ka as isoWeekNumber, st as loadScript, Tr as lockBodyScrolling, Ii as luminanceTextColor, qa as moveMultipleToIndex, Ja as moveToIndex, Ya as multiSelectTo, Kn as normalizeAngle, li as normalizeToIsoDate, Xa as omit, Za as openAssetOverview, Qa as openFolderOverview, $a as openLink, Pe as padPath, Fe as parseBooleanString, Ui as parseBorder, Gr as parseDisplayToIso, x as parseDuration, eo as parseFileSizeToBytes, Zn as parseGradient, ci as parseIsoDate, to as parseJsonString, Bi as parseLightDark, no as parseListString, Li as parseShadow, ro as parseTransformations, io as pick, bt as popoverSupported, v as prefersReducedMotion, nr as quantizeLargestRemainder, ao as quoteFontFamily, oo as readLocalStorageValue, it as readSearchConsistency, He as reducePathToDirectChild, w as registerTranslation, so as removeAtIndex, co as removeMultipleAtIndex, wn as resizeImage, lo as resolveAutoFormat, uo as resolveAutoMaxWidth, Si as resolveSpaceUrl, hn as rotateBox, En as rotateImage, ze as safeExtension, R as safeString, Ie as sanitizeHTML, _n as sanitizeRotation, Cr as scrollIntoView, fo as serialize, $n as serializeGradient, M as setAnimation, re as setDefaultAnimation, po as shareAsset, _ as shimKeyframesHeightAuto, tt as sortByTopPosition, qn as sortStops, mo as sortTypefaceVariants, Fr as splitBoxValues, je as splitCamelCaseFormatted, Yn as splitTopLevel, b as stopAnimations, Et as supportHLS, ho as testFontAvailability, Ji as timecodeConverter, qe as toCamelCase, Hr as toIsoDate, Xe as toKebabCase, Ne as toPascalCase, Ci as toRelativeUrl, Ye as toTitleCase, Oi as toUrlPathKey, go as toast, ke as truncateTextMiddle, Te as unescapeXML, wr as unlockBodyScrolling, _o as unquoteFontFamily, Je as upperFirst, ft as validValidityState, ht as valueMissingValidityState, S as waitForEvent, A as watch, vo as writeLocalStorageValue };
|
package/library/package.json
CHANGED
|
@@ -34,6 +34,8 @@ export default class CxFolderSelectTree extends CortexElement {
|
|
|
34
34
|
extraFolderData: Folder | null;
|
|
35
35
|
api?: FolderSelectApi;
|
|
36
36
|
excludeVirtualFolders: boolean;
|
|
37
|
+
/** Refetches a folder's children on every expand, not just the first. */
|
|
38
|
+
reloadOnExpand: boolean;
|
|
37
39
|
firstFetchCallback: ((data: Folder[]) => void) | null;
|
|
38
40
|
autoPageSize: boolean;
|
|
39
41
|
data: Folder[];
|
|
@@ -63,6 +63,8 @@ export default class CxFolderSelectTreeItem extends CortexElement {
|
|
|
63
63
|
searchTerm: string;
|
|
64
64
|
api?: FolderSelectApi;
|
|
65
65
|
excludeVirtualFolders: boolean;
|
|
66
|
+
/** Refetches the children on every expand, not just the first. */
|
|
67
|
+
reloadOnExpand: boolean;
|
|
66
68
|
url: string;
|
|
67
69
|
/** Overrides the default `folder` icon name when set. */
|
|
68
70
|
icon: string;
|
|
@@ -100,6 +102,7 @@ export default class CxFolderSelectTreeItem extends CortexElement {
|
|
|
100
102
|
}): Promise<GetFolderResponse>;
|
|
101
103
|
loadMore(event: MouseEvent): Promise<void>;
|
|
102
104
|
private handleLazyLoad;
|
|
105
|
+
private handleAfterCollapse;
|
|
103
106
|
/**
|
|
104
107
|
* Recompute this tree-item's selected/indeterminate state from the
|
|
105
108
|
* top-level selection set, purely declaratively. This lets us:
|
|
@@ -41,6 +41,8 @@ export default class CxFolderSelect extends CortexElement {
|
|
|
41
41
|
required: boolean;
|
|
42
42
|
form: string | HTMLElement | undefined;
|
|
43
43
|
excludeVirtualFolders: boolean;
|
|
44
|
+
/** Refetches a folder's children on every expand, not just the first. */
|
|
45
|
+
reloadOnExpand: boolean;
|
|
44
46
|
extraFolderId: string;
|
|
45
47
|
extraFolderTitle: string;
|
|
46
48
|
extraFolderIcon: string;
|
|
@@ -9,7 +9,7 @@ export type GetContentResponse = {
|
|
|
9
9
|
}>;
|
|
10
10
|
totalCount: number;
|
|
11
11
|
};
|
|
12
|
-
export declare function apiGetFolders({ allowedFolders, baseUrl, bearerToken, excludeVirtualFolders, folderId, includeDirectChild, limit, searchTerm, self, start, token, }: GetFolderRequest): Promise<GetFolderResponse>;
|
|
12
|
+
export declare function apiGetFolders({ allowedFolders, baseUrl, bearerToken, excludeVirtualFolders, folderId, includeDirectChild, limit, noCache, searchTerm, self, start, token, }: GetFolderRequest): Promise<GetFolderResponse>;
|
|
13
13
|
export type GetCollectionsRequest = {
|
|
14
14
|
baseUrl?: string;
|
|
15
15
|
bearerToken?: string;
|
package/package.json
CHANGED
|
@@ -15,10 +15,10 @@ import "./tag.pKuKheLJ.js";
|
|
|
15
15
|
import "./array-line-clamp.C1AjzjRt.js";
|
|
16
16
|
import "./typography.B0mkhqTB.js";
|
|
17
17
|
import "./audio.DILTfO5v.js";
|
|
18
|
-
import "./badge.H_UuxPXn.js";
|
|
19
18
|
import "./avatar.Ce0OZHBT.js";
|
|
20
|
-
import "./breadcrumb.CtZqzMBY.js";
|
|
21
19
|
import "./box.DvLxXaBD.js";
|
|
20
|
+
import "./badge.H_UuxPXn.js";
|
|
21
|
+
import "./breadcrumb.CtZqzMBY.js";
|
|
22
22
|
import "./breadcrumb-item.nHAFmgtO.js";
|
|
23
23
|
import "./button-group.CPfXrqyq.js";
|
|
24
24
|
import "./card.3c-X4hqR.js";
|