@orangelogic/design-system 4.19.0 → 4.21.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.DGW1KEBN.js → config-manager.CN_u-UFw.js} +3 -3
- package/library/chunks/{config-manager.utils.CpAKaNf4.js → config-manager.utils.C_nIDsZ5.js} +2 -2
- package/library/chunks/{configs-controller.DX8-bPEZ.js → configs-controller.Dea3OymR.js} +1 -1
- package/library/chunks/{folder-select.CmyEyzfA.js → folder-select.DZ27acgw.js} +36 -19
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/types.js +7795 -7777
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-video-active-subclip-change.d.ts +6 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/context.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/hooks/useVideoEditorAnnotation.d.ts +26 -0
- package/library/packages/hybrid/video-advanced/src/react/type.d.ts +12 -0
- package/library/packages/molecules/src/faceted-filter/components/facet/facet.d.ts +2 -0
- 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/organisms/src/content-builder/components/template-manager/template-manager.d.ts +2 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/DownloadManager.d.ts +4 -2
- package/library/packages/organisms/src/downloader/data/core/worker/app/utilities/index.d.ts +2 -1
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts +10 -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 +5 -1
- package/package.json +1 -1
- package/library/packages/hybrid/video-advanced/src/react/@types/react-range-slider-input/index.d.ts +0 -1
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.F15zfy2d.js";
|
|
15
15
|
import { t as S } from "./tooltip.EVa9qa8X.js";
|
|
16
16
|
import { t as ee } from "./line-clamp.DUw4HDNG.js";
|
|
17
|
-
import { C as te, D as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, o 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, D as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, o 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.C_nIDsZ5.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.B60_VW9E.js";
|
|
|
53
53
|
import { t as We } from "./corner-position-input-group.BVPOtopa.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
55
|
import { t as Ge } from "./dynamic-select.C7bnEwn9.js";
|
|
56
|
-
import { r as G } from "./folder-select.
|
|
56
|
+
import { r as G } from "./folder-select.DZ27acgw.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.B-wi80wk.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.Dea3OymR.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.CpAKaNf4.js → config-manager.utils.C_nIDsZ5.js}
RENAMED
|
@@ -70,7 +70,7 @@ import { n as gt, t as _t } from "./confirm-popover.B60_VW9E.js";
|
|
|
70
70
|
import { t as vt } from "./corner-position-input-group.BVPOtopa.js";
|
|
71
71
|
import { t as yt } from "./cropper.D4ymxgab.js";
|
|
72
72
|
import { t as bt } from "./dynamic-select.C7bnEwn9.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.DZ27acgw.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.ClTseaRz.js";
|
|
|
79
79
|
import { t as Ot } from "./size-input-group.D9EWFcr7.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.B-wi80wk.js";
|
|
81
81
|
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.WMinusvs.js";
|
|
82
|
-
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.
|
|
82
|
+
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.Dea3OymR.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.DZ27acgw.js";
|
|
19
19
|
import { a as T, i as E, o as D, r as O, s as we } from "./color-swatch-group.WMinusvs.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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/folder-select.
|
|
1
|
+
import { t as e } from "../chunks/folder-select.DZ27acgw.js";
|
|
2
2
|
export { e as default };
|
|
@@ -5,7 +5,7 @@ import { t as r } from "../chunks/confirm-popover.B60_VW9E.js";
|
|
|
5
5
|
import { t as i } from "../chunks/corner-position-input-group.BVPOtopa.js";
|
|
6
6
|
import { t as a } from "../chunks/cropper.D4ymxgab.js";
|
|
7
7
|
import { t as o } from "../chunks/dynamic-select.C7bnEwn9.js";
|
|
8
|
-
import { t as s } from "../chunks/folder-select.
|
|
8
|
+
import { t as s } from "../chunks/folder-select.DZ27acgw.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";
|