@orangelogic/design-system 2.126.0 → 2.128.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.CQlKsT07.js → color-swatch-group.DPaKBfvX.js} +1 -1
- package/library/chunks/{folder-select.CDFQfcrG.js → folder-select.DMpO7oQF.js} +203 -185
- package/library/chunks/{list-editor.CyHNKjuZ.js → list-editor.C8SaStOE.js} +1 -1
- package/library/chunks/{table.CipCH4U5.js → table.Cf3C72Lv.js} +713 -661
- package/library/components/atoms.js +1 -1
- package/library/components/color-swatch-group.js +2 -2
- package/library/components/divider.js +14 -14
- package/library/components/drawer.js +25 -23
- 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/table.js +1 -1
- package/library/components/types.js +42420 -41562
- package/library/components/video.js +2304 -2291
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +1 -0
- package/library/packages/atoms/src/components/video/video.d.ts +6 -0
- package/library/packages/events/src/cx-table-switch-change.d.ts +10 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/switch.d.ts +3 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/toggle.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.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/folder-select.d.ts +1 -0
- package/library/packages/organisms/src/annotator-comment/annotator-comment.constants.d.ts +6 -0
- package/library/packages/organisms/src/annotator-comment/annotator-comment.d.ts +82 -0
- package/library/packages/organisms/src/annotator-comment/annotator-comment.styles.d.ts +2 -0
- package/library/packages/organisms/src/annotator-comment/components/annotator-comment-menu.d.ts +69 -0
- package/library/packages/organisms/src/annotator-comment/components/annotator-comment-menu.styles.d.ts +2 -0
- package/library/packages/organisms/src/annotator-comment/extensions/history.d.ts +45 -0
- package/library/packages/organisms/src/annotator-comment/extensions/keyboard.d.ts +7 -0
- package/library/packages/organisms/src/annotator-comment/extensions/prosemirror-history.d.ts +19 -0
- package/library/packages/organisms/src/annotator-comment/extensions/time.d.ts +63 -0
- package/library/packages/organisms/src/annotator-comment/marker-controller.d.ts +45 -0
- package/library/packages/organisms/src/capacity-planner/capacity-planner.d.ts +1 -5
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/types/src/folder-select.d.ts +1 -1
- package/library/packages/types/src/table.d.ts +8 -2
- package/library/react-web-component.d.ts +236 -98
- package/package.json +1 -1
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { C as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { C as
|
|
7
|
-
import { n as l, C as
|
|
8
|
-
import { h as L, F as
|
|
9
|
-
import { M as
|
|
10
|
-
import { c as
|
|
11
|
-
import { c as
|
|
12
|
-
import { L as
|
|
1
|
+
import { C as Y } from "./icon.DnBh6-56.js";
|
|
2
|
+
import { C as de } from "./input.BRgVRr2i.js";
|
|
3
|
+
import ee from "../components/line-clamp.js";
|
|
4
|
+
import pe from "../components/select.js";
|
|
5
|
+
import ue from "../components/tag.js";
|
|
6
|
+
import { C as S, a as fe } from "./tree.CbeHY8pn.js";
|
|
7
|
+
import { n as l, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
|
+
import { h as L, F as me, c as ye } from "./endpoints.6E17hFiK.js";
|
|
9
|
+
import { M as P } from "./asset-link-format.QzzboHHE.js";
|
|
10
|
+
import { c as te } from "./component.styles.CRO4Odto.js";
|
|
11
|
+
import { c as W } from "./custom-element.L4WJXn1j.js";
|
|
12
|
+
import { L as q } from "./i18n.NAH4U8Lw.js";
|
|
13
13
|
import { w as f } from "./watch.CThbualB.js";
|
|
14
|
-
import { x as m, i as
|
|
14
|
+
import { x as m, i as xe } from "./lit-element.jLBm65_O.js";
|
|
15
15
|
import { r as x } from "./state.CSDxrqLd.js";
|
|
16
|
-
import { e as
|
|
17
|
-
import { r as
|
|
18
|
-
import { C as
|
|
19
|
-
import { d as
|
|
20
|
-
import { g as
|
|
16
|
+
import { e as re } from "./query.BBf1UFkC.js";
|
|
17
|
+
import { r as ge } from "./choose.BTbF6BAn.js";
|
|
18
|
+
import { C as se } from "./button.DcInI7IV.js";
|
|
19
|
+
import { d as be } from "./debounce.DaHuiSGU.js";
|
|
20
|
+
import { g as G, p as Z, e as $e } from "./string.CbnVBzsd.js";
|
|
21
21
|
import { o as y } from "./if-defined.BRoBj_Rp.js";
|
|
22
|
-
import { c as
|
|
23
|
-
import { o as
|
|
22
|
+
import { c as A } from "./repeat.DbF2p5ae.js";
|
|
23
|
+
import { o as Se } from "./style-map.llVFPd__.js";
|
|
24
24
|
import { n as w } from "./when.Dr1es41R.js";
|
|
25
|
-
import
|
|
26
|
-
import { g as
|
|
27
|
-
import { e as
|
|
25
|
+
import ve from "../components/space.js";
|
|
26
|
+
import { g as Fe } from "./template.ClovJacp.js";
|
|
27
|
+
import { e as Te } from "./class-map.BiVq-cVR.js";
|
|
28
28
|
var v = /* @__PURE__ */ ((e) => (e.CortexPath = "Document.CortexPath", e.DocType = "CoreField.DocType", e.HasBrowserChildren = "Document.HasBrowserChildren", e.RepresentativeAssetId = "Document.DocumentDirectRepresentativeRID", e.TitleWithFallback = "CoreField.TitleWithFallback", e.rawDocSubtype = "Document.RawDocSubType", e))(v || {});
|
|
29
|
-
const
|
|
30
|
-
async function
|
|
29
|
+
const Ie = 50;
|
|
30
|
+
async function H({
|
|
31
31
|
allowedFolders: e,
|
|
32
32
|
baseUrl: t,
|
|
33
33
|
bearerToken: r,
|
|
34
34
|
excludeVirtualFolders: a,
|
|
35
35
|
folderId: s,
|
|
36
36
|
includeDirectChild: p,
|
|
37
|
-
limit: u =
|
|
38
|
-
searchTerm:
|
|
39
|
-
self:
|
|
40
|
-
start:
|
|
41
|
-
token:
|
|
37
|
+
limit: u = Ie,
|
|
38
|
+
searchTerm: g,
|
|
39
|
+
self: C,
|
|
40
|
+
start: N = 0,
|
|
41
|
+
token: ne
|
|
42
42
|
}) {
|
|
43
43
|
let O = [], Q = p ?? !0;
|
|
44
|
-
e && e.length > 0 && !s ? (O = e,
|
|
44
|
+
e && e.length > 0 && !s ? (O = e, C = !0, Q = !1) : s && (O = [s]);
|
|
45
45
|
try {
|
|
46
46
|
return (await L.request({
|
|
47
47
|
baseURL: t,
|
|
@@ -54,11 +54,11 @@ async function W({
|
|
|
54
54
|
IncludeVirtualFolders: !a,
|
|
55
55
|
Limit: u,
|
|
56
56
|
ObjectRecordIDs: O,
|
|
57
|
-
SeeThru: !!
|
|
58
|
-
Self:
|
|
59
|
-
Start:
|
|
60
|
-
Text:
|
|
61
|
-
Token:
|
|
57
|
+
SeeThru: !!g,
|
|
58
|
+
Self: C,
|
|
59
|
+
Start: N,
|
|
60
|
+
Text: g || void 0,
|
|
61
|
+
Token: ne || void 0
|
|
62
62
|
},
|
|
63
63
|
paramsSerializer: {
|
|
64
64
|
indexes: null
|
|
@@ -66,36 +66,36 @@ async function W({
|
|
|
66
66
|
responseType: "json",
|
|
67
67
|
transformResponse: [
|
|
68
68
|
...Array.isArray(L.defaults.transformResponse) ? L.defaults.transformResponse : [],
|
|
69
|
-
(
|
|
70
|
-
if (
|
|
69
|
+
(F, Re, R) => {
|
|
70
|
+
if (R !== void 0 && (R < 200 || R >= 300))
|
|
71
71
|
return {
|
|
72
72
|
data: [],
|
|
73
73
|
hasMore: !1,
|
|
74
74
|
totalCount: 0
|
|
75
75
|
};
|
|
76
|
-
if (!
|
|
76
|
+
if (!F || typeof F != "object")
|
|
77
77
|
throw new Error("Invalid response format");
|
|
78
|
-
const
|
|
78
|
+
const he = F.contentItems?.length ?? 0;
|
|
79
79
|
return {
|
|
80
|
-
data:
|
|
81
|
-
const
|
|
82
|
-
let
|
|
83
|
-
return (
|
|
84
|
-
docType:
|
|
85
|
-
fullPath:
|
|
86
|
-
hasChildren:
|
|
87
|
-
id:
|
|
88
|
-
isShared:
|
|
89
|
-
representativeAssetId:
|
|
90
|
-
title:
|
|
80
|
+
data: F.contentItems?.map((b) => {
|
|
81
|
+
const E = b.fields[v.DocType] ?? "", U = b.fields[v.TitleWithFallback] ?? "", k = b.fields[v.CortexPath] ?? "", M = k.endsWith("/") && k.length > 1 ? k.slice(0, -1) : k;
|
|
82
|
+
let j = M;
|
|
83
|
+
return (E === P.Album || E === P.ProjectDocument) && (j = M ? `${M}/${U}` : U), {
|
|
84
|
+
docType: E,
|
|
85
|
+
fullPath: j,
|
|
86
|
+
hasChildren: b.fields[v.HasBrowserChildren] === "1",
|
|
87
|
+
id: b.recordID,
|
|
88
|
+
isShared: b.fields[v.rawDocSubtype] === "DO_OR1ND000001913488",
|
|
89
|
+
representativeAssetId: b.fields[v.RepresentativeAssetId] ?? "",
|
|
90
|
+
title: U
|
|
91
91
|
};
|
|
92
92
|
}) ?? [],
|
|
93
|
-
hasMore:
|
|
94
|
-
totalCount:
|
|
93
|
+
hasMore: N + he < F.totalCount,
|
|
94
|
+
totalCount: F.totalCount
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
],
|
|
98
|
-
url:
|
|
98
|
+
url: me
|
|
99
99
|
})).data;
|
|
100
100
|
} catch {
|
|
101
101
|
return {
|
|
@@ -105,14 +105,14 @@ async function W({
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
108
|
+
var _ = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(_ || {}), Ce = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, d = (e, t, r, a) => {
|
|
109
|
+
for (var s = a > 1 ? void 0 : a ? _e(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
110
110
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
111
|
-
return a && s &&
|
|
111
|
+
return a && s && Ce(t, r, s), s;
|
|
112
112
|
};
|
|
113
|
-
let o = class extends
|
|
113
|
+
let o = class extends B {
|
|
114
114
|
constructor() {
|
|
115
|
-
super(...arguments), this.localize = new
|
|
115
|
+
super(...arguments), this.localize = new q(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType = P.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 = H, this.excludeVirtualFolders = !1, this.url = "", this.icon = "", this.data = null, this.hasMore = !1, this.loading = !1;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* This is used to render the cx-tree-item inside the cx-folder-item without the shadow root so that the cx-tree can query select the cx-tree-item inside
|
|
@@ -183,15 +183,15 @@ let o = class extends A {
|
|
|
183
183
|
async syncBoxes() {
|
|
184
184
|
if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem))
|
|
185
185
|
return;
|
|
186
|
-
const e = this.fullPath, t =
|
|
186
|
+
const e = this.fullPath, t = G({ id: this.folderId, path: e }), r = Z(e), a = this.currentRootIDsSet.has(t);
|
|
187
187
|
let s = !1;
|
|
188
188
|
if (e)
|
|
189
189
|
for (const u of this.currentRootIDsSet) {
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
190
|
+
const g = $e(u);
|
|
191
|
+
if (!g.path.trim() || !g.id.trim())
|
|
192
192
|
continue;
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
193
|
+
const C = Z(g.path);
|
|
194
|
+
if (C.startsWith(r) && C !== r) {
|
|
195
195
|
s = !0;
|
|
196
196
|
break;
|
|
197
197
|
}
|
|
@@ -201,125 +201,125 @@ let o = class extends A {
|
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
203
|
let e = "filled";
|
|
204
|
-
return this.docType ===
|
|
204
|
+
return this.docType === P.Album && (e = "outlined"), m`<cx-tree-item class=${Te({
|
|
205
205
|
"folder-select-tree-item": !0
|
|
206
206
|
})} data-id=${this.folderId} data-url=${y(this.url)} data-name=${y(this.name?.trim() || void 0)} data-representative-asset-id=${y(
|
|
207
207
|
this.representativeAssetId || void 0
|
|
208
|
-
)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection !== "multiple" && 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"><cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${e}></cx-icon><cx-line-clamp lines="1" class="folder-select-tree-item__title">${
|
|
208
|
+
)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection !== "multiple" && 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"><cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${e}></cx-icon><cx-line-clamp lines="1" class="folder-select-tree-item__title">${Fe(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${A(
|
|
209
209
|
this.data || [],
|
|
210
210
|
(t) => t.id,
|
|
211
211
|
(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>`
|
|
212
|
-
)}
|
|
212
|
+
)}
|
|
213
|
+
${w(
|
|
213
214
|
this.hasMore,
|
|
214
215
|
() => 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>`
|
|
215
|
-
)}
|
|
216
|
-
`;
|
|
216
|
+
)}</cx-tree-item>`;
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
-
o.styles = [
|
|
219
|
+
o.styles = [te];
|
|
220
220
|
o.dependencies = {
|
|
221
|
-
"cx-button":
|
|
222
|
-
"cx-icon":
|
|
223
|
-
"cx-line-clamp":
|
|
224
|
-
"cx-space":
|
|
225
|
-
"cx-tree-item":
|
|
221
|
+
"cx-button": se,
|
|
222
|
+
"cx-icon": Y,
|
|
223
|
+
"cx-line-clamp": ee,
|
|
224
|
+
"cx-space": ve,
|
|
225
|
+
"cx-tree-item": S
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
d([
|
|
228
|
+
re("cx-tree-item")
|
|
229
229
|
], o.prototype, "treeItem", 2);
|
|
230
|
-
|
|
230
|
+
d([
|
|
231
231
|
l({ attribute: "folder-id", reflect: !0, type: String })
|
|
232
232
|
], o.prototype, "folderId", 2);
|
|
233
|
-
|
|
233
|
+
d([
|
|
234
234
|
l({ attribute: "has-children", reflect: !0, type: Boolean })
|
|
235
235
|
], o.prototype, "hasChildren", 2);
|
|
236
|
-
|
|
236
|
+
d([
|
|
237
237
|
l({ reflect: !0, type: Boolean })
|
|
238
238
|
], o.prototype, "selectable", 2);
|
|
239
|
-
|
|
239
|
+
d([
|
|
240
240
|
l({ attribute: "full-path", reflect: !0, type: String })
|
|
241
241
|
], o.prototype, "fullPath", 2);
|
|
242
|
-
|
|
242
|
+
d([
|
|
243
243
|
l({ attribute: "doc-type", reflect: !0, type: String })
|
|
244
244
|
], o.prototype, "docType", 2);
|
|
245
|
-
|
|
245
|
+
d([
|
|
246
246
|
l({ reflect: !0, type: String })
|
|
247
247
|
], o.prototype, "name", 2);
|
|
248
|
-
|
|
248
|
+
d([
|
|
249
249
|
l({
|
|
250
250
|
attribute: "representative-asset-id",
|
|
251
251
|
reflect: !0,
|
|
252
252
|
type: String
|
|
253
253
|
})
|
|
254
254
|
], o.prototype, "representativeAssetId", 2);
|
|
255
|
-
|
|
255
|
+
d([
|
|
256
256
|
l({ attribute: "selected-value", reflect: !0, type: String })
|
|
257
257
|
], o.prototype, "selectedValue", 2);
|
|
258
|
-
|
|
258
|
+
d([
|
|
259
259
|
l({ attribute: "selection", reflect: !0, type: String })
|
|
260
260
|
], o.prototype, "selection", 2);
|
|
261
|
-
|
|
261
|
+
d([
|
|
262
262
|
l({ attribute: !1, type: Object })
|
|
263
263
|
], o.prototype, "currentRootIDsSet", 2);
|
|
264
|
-
|
|
264
|
+
d([
|
|
265
265
|
l({ attribute: !1, type: Array })
|
|
266
266
|
], o.prototype, "removedIDs", 2);
|
|
267
|
-
|
|
267
|
+
d([
|
|
268
268
|
l({ reflect: !0, type: String })
|
|
269
269
|
], o.prototype, "token", 2);
|
|
270
|
-
|
|
270
|
+
d([
|
|
271
271
|
l({ attribute: "bearer-token", reflect: !0, type: String })
|
|
272
272
|
], o.prototype, "bearerToken", 2);
|
|
273
|
-
|
|
273
|
+
d([
|
|
274
274
|
l({ attribute: "base-url", reflect: !0, type: String })
|
|
275
275
|
], o.prototype, "baseUrl", 2);
|
|
276
|
-
|
|
276
|
+
d([
|
|
277
277
|
l({ attribute: "search-term", reflect: !0, type: String })
|
|
278
278
|
], o.prototype, "searchTerm", 2);
|
|
279
|
-
|
|
279
|
+
d([
|
|
280
280
|
l({ type: Function })
|
|
281
281
|
], o.prototype, "api", 2);
|
|
282
|
-
|
|
282
|
+
d([
|
|
283
283
|
l({
|
|
284
284
|
attribute: "exclude-virtual-folders",
|
|
285
285
|
reflect: !0,
|
|
286
286
|
type: Boolean
|
|
287
287
|
})
|
|
288
288
|
], o.prototype, "excludeVirtualFolders", 2);
|
|
289
|
-
|
|
289
|
+
d([
|
|
290
290
|
l({ reflect: !0, type: String })
|
|
291
291
|
], o.prototype, "url", 2);
|
|
292
|
-
|
|
292
|
+
d([
|
|
293
293
|
l({ reflect: !0, type: String })
|
|
294
294
|
], o.prototype, "icon", 2);
|
|
295
|
-
|
|
295
|
+
d([
|
|
296
296
|
x()
|
|
297
297
|
], o.prototype, "data", 2);
|
|
298
|
-
|
|
298
|
+
d([
|
|
299
299
|
x()
|
|
300
300
|
], o.prototype, "hasMore", 2);
|
|
301
|
-
|
|
301
|
+
d([
|
|
302
302
|
x()
|
|
303
303
|
], o.prototype, "loading", 2);
|
|
304
|
-
|
|
304
|
+
d([
|
|
305
305
|
f("currentRootIDsSet"),
|
|
306
306
|
f("removedIDs"),
|
|
307
307
|
f("fullPath"),
|
|
308
308
|
f("folderId")
|
|
309
309
|
], o.prototype, "syncBoxes", 1);
|
|
310
|
-
o =
|
|
311
|
-
|
|
310
|
+
o = d([
|
|
311
|
+
W("cx-folder-select-tree-item")
|
|
312
312
|
], o);
|
|
313
|
-
var
|
|
313
|
+
var De = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, le = (e) => {
|
|
314
314
|
throw TypeError(e);
|
|
315
|
-
},
|
|
316
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
315
|
+
}, h = (e, t, r, a) => {
|
|
316
|
+
for (var s = a > 1 ? void 0 : a ? ke(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
317
317
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
318
|
-
return a && s &&
|
|
319
|
-
},
|
|
320
|
-
let n = class extends
|
|
318
|
+
return a && s && De(t, r, s), s;
|
|
319
|
+
}, ae = (e, t, r) => t.has(e) || le("Cannot " + r), $ = (e, t, r) => (ae(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), J = (e, t, r, a) => (ae(e, t, "write to private field"), t.set(e, r), r), T, V, D;
|
|
320
|
+
let n = class extends B {
|
|
321
321
|
constructor() {
|
|
322
|
-
super(...arguments), this.localize = new
|
|
322
|
+
super(...arguments), this.localize = new q(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 = H, this.excludeVirtualFolders = !1, this.firstFetchCallback = null, this.autoPageSize = !1, this.data = [], this.hasMore = !1, this.loading = !1, this.preloadedFolders = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], z(this, T, !1), z(this, V, 10), z(this, D, /* @__PURE__ */ new Set());
|
|
323
323
|
}
|
|
324
324
|
get empty() {
|
|
325
325
|
return !this.loading && this.data.length === 0;
|
|
@@ -330,8 +330,19 @@ let n = class extends A {
|
|
|
330
330
|
createRenderRoot() {
|
|
331
331
|
return this;
|
|
332
332
|
}
|
|
333
|
+
computeInitialLimit() {
|
|
334
|
+
const t = this.getRootNode();
|
|
335
|
+
let r = t instanceof ShadowRoot ? t.host : this.parentElement;
|
|
336
|
+
for (; r; ) {
|
|
337
|
+
if (r instanceof HTMLElement && r.offsetHeight > 0)
|
|
338
|
+
return Math.max(10, Math.ceil(r.offsetHeight / 32) + 2);
|
|
339
|
+
const a = r.getRootNode();
|
|
340
|
+
r = a instanceof ShadowRoot ? a.host : r.parentElement;
|
|
341
|
+
}
|
|
342
|
+
return 10;
|
|
343
|
+
}
|
|
333
344
|
runFirstUpdated() {
|
|
334
|
-
this.searchTerm = "", this.handleFetchFolders();
|
|
345
|
+
this.searchTerm = "", this.autoPageSize && J(this, V, this.computeInitialLimit()), this.handleFetchFolders();
|
|
335
346
|
}
|
|
336
347
|
async handleExtraFolderIdChange() {
|
|
337
348
|
if (!this.extraFolderId || !this.api) {
|
|
@@ -371,7 +382,7 @@ let n = class extends A {
|
|
|
371
382
|
)?.fullPath;
|
|
372
383
|
if (await t.updateComplete, !r.trim() || !a?.trim())
|
|
373
384
|
return;
|
|
374
|
-
const s =
|
|
385
|
+
const s = G({ id: r, path: a });
|
|
375
386
|
t.indeterminate && !t.selected || (t.selected ? this.currentRootIDsSet.add(s) : this.currentRootIDsSet.delete(s), this.currentRootIDsSet = new Set(this.currentRootIDsSet));
|
|
376
387
|
}
|
|
377
388
|
async loadMore(e) {
|
|
@@ -395,10 +406,10 @@ let n = class extends A {
|
|
|
395
406
|
}
|
|
396
407
|
async handleFetchFolders() {
|
|
397
408
|
const { data: e, hasMore: t } = await this.fetchFolders();
|
|
398
|
-
|
|
409
|
+
$(this, T) || (e.length > 0 && this.firstFetchCallback?.(e), J(this, T, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
|
|
399
410
|
}
|
|
400
411
|
async handleSelectedValueChange() {
|
|
401
|
-
if (
|
|
412
|
+
if (!$(this, T))
|
|
402
413
|
return;
|
|
403
414
|
const e = new Set(
|
|
404
415
|
this.selectedValue.split(/[\s,]+/).filter(Boolean)
|
|
@@ -422,7 +433,7 @@ let n = class extends A {
|
|
|
422
433
|
bearerToken: this.bearerToken,
|
|
423
434
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
424
435
|
folderId: "",
|
|
425
|
-
limit: 10,
|
|
436
|
+
limit: $(this, T) ? 10 : $(this, V),
|
|
426
437
|
searchTerm: this.searchTerm,
|
|
427
438
|
seeThru: this.seeThru,
|
|
428
439
|
start: 0,
|
|
@@ -451,7 +462,7 @@ let n = class extends A {
|
|
|
451
462
|
...this.data.map((s) => s.id),
|
|
452
463
|
...this.extraFolderData ? [this.extraFolderData.id] : [],
|
|
453
464
|
...this.preloadedFolders.map((s) => s.id),
|
|
454
|
-
|
|
465
|
+
...$(this, D),
|
|
455
466
|
...[
|
|
456
467
|
...this.querySelectorAll(
|
|
457
468
|
"cx-folder-select-tree-item"
|
|
@@ -462,7 +473,7 @@ let n = class extends A {
|
|
|
462
473
|
);
|
|
463
474
|
if (r.length === 0)
|
|
464
475
|
return;
|
|
465
|
-
r.forEach((s) =>
|
|
476
|
+
r.forEach((s) => $(this, D).add(s));
|
|
466
477
|
const a = [];
|
|
467
478
|
if (await Promise.all(
|
|
468
479
|
r.map(async (s) => {
|
|
@@ -484,10 +495,10 @@ let n = class extends A {
|
|
|
484
495
|
} catch {
|
|
485
496
|
}
|
|
486
497
|
})
|
|
487
|
-
), r.forEach((s) =>
|
|
498
|
+
), r.forEach((s) => $(this, D).delete(s)), a.length > 0) {
|
|
488
499
|
const s = new Set(this.preloadedFolders.map((u) => u.id)), p = a.filter((u) => !s.has(u.id));
|
|
489
500
|
p.length > 0 && (this.preloadedFolders = [...this.preloadedFolders, ...p].sort(
|
|
490
|
-
(u,
|
|
501
|
+
(u, g) => u.title.localeCompare(g.title)
|
|
491
502
|
), this.seedSelectionFromValue(p));
|
|
492
503
|
}
|
|
493
504
|
}
|
|
@@ -500,7 +511,7 @@ let n = class extends A {
|
|
|
500
511
|
let r = !1;
|
|
501
512
|
for (const a of e)
|
|
502
513
|
if (a.fullPath && t.has(a.id)) {
|
|
503
|
-
const s =
|
|
514
|
+
const s = G({ id: a.id, path: a.fullPath });
|
|
504
515
|
this.currentRootIDsSet.has(s) || (this.currentRootIDsSet.add(s), r = !0);
|
|
505
516
|
}
|
|
506
517
|
r && (this.currentRootIDsSet = new Set(this.currentRootIDsSet));
|
|
@@ -517,7 +528,7 @@ let n = class extends A {
|
|
|
517
528
|
this.extraFolderData,
|
|
518
529
|
() => 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>`
|
|
519
530
|
)}
|
|
520
|
-
${
|
|
531
|
+
${A(
|
|
521
532
|
this.data,
|
|
522
533
|
(e) => e.id,
|
|
523
534
|
(e) => this.renderFolder(e)
|
|
@@ -525,125 +536,129 @@ let n = class extends A {
|
|
|
525
536
|
${w(
|
|
526
537
|
this.hasMore,
|
|
527
538
|
() => m`<cx-button class="folder-select-tree__load-more" variant="text" @click=${this.loadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`
|
|
528
|
-
)}</cx-tree>${
|
|
539
|
+
)}</cx-tree>${A(
|
|
529
540
|
this.preloadedFolders,
|
|
530
541
|
(e) => `preloaded-${e.id}`,
|
|
531
|
-
(e) => m`<cx-folder-select-tree-item style=${
|
|
542
|
+
(e) => m`<cx-folder-select-tree-item style=${Se({ display: "none" })} .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=${!1} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
|
|
532
543
|
)}`;
|
|
533
544
|
}
|
|
534
545
|
};
|
|
546
|
+
T = /* @__PURE__ */ new WeakMap();
|
|
547
|
+
V = /* @__PURE__ */ new WeakMap();
|
|
535
548
|
D = /* @__PURE__ */ new WeakMap();
|
|
536
|
-
_ = /* @__PURE__ */ new WeakMap();
|
|
537
549
|
n.dependencies = {
|
|
538
|
-
"cx-button":
|
|
550
|
+
"cx-button": se,
|
|
539
551
|
"cx-folder-select-tree-item": o,
|
|
540
|
-
"cx-tree":
|
|
552
|
+
"cx-tree": fe
|
|
541
553
|
};
|
|
542
|
-
|
|
554
|
+
h([
|
|
543
555
|
l({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
544
556
|
], n.prototype, "minQueryLength", 2);
|
|
545
|
-
|
|
557
|
+
h([
|
|
546
558
|
l({ attribute: "selection", reflect: !0, type: String })
|
|
547
559
|
], n.prototype, "selection", 2);
|
|
548
|
-
|
|
560
|
+
h([
|
|
549
561
|
l({ attribute: "search-term", reflect: !0, type: String })
|
|
550
562
|
], n.prototype, "searchTerm", 2);
|
|
551
|
-
|
|
563
|
+
h([
|
|
552
564
|
l({ attribute: "selected-value", reflect: !0, type: String })
|
|
553
565
|
], n.prototype, "selectedValue", 2);
|
|
554
|
-
|
|
566
|
+
h([
|
|
555
567
|
l({ reflect: !0, type: String })
|
|
556
568
|
], n.prototype, "token", 2);
|
|
557
|
-
|
|
569
|
+
h([
|
|
558
570
|
l({ attribute: "bearer-token", reflect: !0, type: String })
|
|
559
571
|
], n.prototype, "bearerToken", 2);
|
|
560
|
-
|
|
572
|
+
h([
|
|
561
573
|
l({ attribute: "base-url", reflect: !0, type: String })
|
|
562
574
|
], n.prototype, "baseUrl", 2);
|
|
563
|
-
|
|
575
|
+
h([
|
|
564
576
|
l({ attribute: "extra-folder-id", reflect: !0, type: String })
|
|
565
577
|
], n.prototype, "extraFolderId", 2);
|
|
566
|
-
|
|
578
|
+
h([
|
|
567
579
|
l({ attribute: "extra-folder-title", reflect: !0, type: String })
|
|
568
580
|
], n.prototype, "extraFolderTitle", 2);
|
|
569
|
-
|
|
581
|
+
h([
|
|
570
582
|
l({ attribute: "extra-folder-icon", reflect: !0, type: String })
|
|
571
583
|
], n.prototype, "extraFolderIcon", 2);
|
|
572
|
-
|
|
584
|
+
h([
|
|
573
585
|
l({ attribute: "see-thru", reflect: !0, type: Boolean })
|
|
574
586
|
], n.prototype, "seeThru", 2);
|
|
575
|
-
|
|
587
|
+
h([
|
|
576
588
|
x()
|
|
577
589
|
], n.prototype, "extraFolderData", 2);
|
|
578
|
-
|
|
590
|
+
h([
|
|
579
591
|
l({ type: Function })
|
|
580
592
|
], n.prototype, "api", 2);
|
|
581
|
-
|
|
593
|
+
h([
|
|
582
594
|
l({
|
|
583
595
|
attribute: "exclude-virtual-folders",
|
|
584
596
|
reflect: !0,
|
|
585
597
|
type: Boolean
|
|
586
598
|
})
|
|
587
599
|
], n.prototype, "excludeVirtualFolders", 2);
|
|
588
|
-
|
|
600
|
+
h([
|
|
589
601
|
l({ attribute: "first-fetch-callback", reflect: !1, type: Function })
|
|
590
602
|
], n.prototype, "firstFetchCallback", 2);
|
|
591
|
-
|
|
603
|
+
h([
|
|
604
|
+
l({ attribute: "auto-page-size", reflect: !0, type: Boolean })
|
|
605
|
+
], n.prototype, "autoPageSize", 2);
|
|
606
|
+
h([
|
|
592
607
|
x()
|
|
593
608
|
], n.prototype, "data", 2);
|
|
594
|
-
|
|
609
|
+
h([
|
|
595
610
|
x()
|
|
596
611
|
], n.prototype, "hasMore", 2);
|
|
597
|
-
|
|
612
|
+
h([
|
|
598
613
|
x()
|
|
599
614
|
], n.prototype, "loading", 2);
|
|
600
|
-
|
|
615
|
+
h([
|
|
601
616
|
x()
|
|
602
617
|
], n.prototype, "preloadedFolders", 2);
|
|
603
|
-
|
|
618
|
+
h([
|
|
604
619
|
x()
|
|
605
620
|
], n.prototype, "currentRootIDsSet", 2);
|
|
606
|
-
|
|
621
|
+
h([
|
|
607
622
|
x()
|
|
608
623
|
], n.prototype, "removedIDs", 2);
|
|
609
|
-
|
|
624
|
+
h([
|
|
610
625
|
f("extraFolderId")
|
|
611
626
|
], n.prototype, "handleExtraFolderIdChange", 1);
|
|
612
|
-
|
|
627
|
+
h([
|
|
613
628
|
f("baseUrl", { waitUntilFirstUpdate: !0 }),
|
|
614
629
|
f("token", { waitUntilFirstUpdate: !0 }),
|
|
615
630
|
f("searchTerm", { waitUntilFirstUpdate: !0 }),
|
|
616
631
|
f("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
|
|
617
|
-
|
|
632
|
+
be(500)
|
|
618
633
|
], n.prototype, "handleFetchFolders", 1);
|
|
619
|
-
|
|
634
|
+
h([
|
|
620
635
|
f("selectedValue", { waitUntilFirstUpdate: !0 })
|
|
621
636
|
], n.prototype, "handleSelectedValueChange", 1);
|
|
622
|
-
n =
|
|
623
|
-
|
|
637
|
+
n = h([
|
|
638
|
+
W("cx-folder-select-tree")
|
|
624
639
|
], n);
|
|
625
|
-
const
|
|
626
|
-
var
|
|
640
|
+
const we = xe`: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}`;
|
|
641
|
+
var Ve = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, ie = (e) => {
|
|
627
642
|
throw TypeError(e);
|
|
628
643
|
}, c = (e, t, r, a) => {
|
|
629
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
644
|
+
for (var s = a > 1 ? void 0 : a ? Pe(t, r) : t, p = e.length - 1, u; p >= 0; p--)
|
|
630
645
|
(u = e[p]) && (s = (a ? u(t, r, s) : u(s)) || s);
|
|
631
|
-
return a && s &&
|
|
632
|
-
},
|
|
633
|
-
let i = class extends
|
|
646
|
+
return a && s && Ve(t, r, s), s;
|
|
647
|
+
}, oe = (e, t, r) => t.has(e) || ie("Cannot " + r), K = (e, t, r) => (oe(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? ie("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), X = (e, t, r, a) => (oe(e, t, "write to private field"), t.set(e, r), r), I;
|
|
648
|
+
let i = class extends B {
|
|
634
649
|
constructor() {
|
|
635
|
-
super(), this.localize = new
|
|
650
|
+
super(), this.localize = new q(this), this.minQueryLength = 1, this.selection = "single", this.variant = _.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api = H, this.required = !1, this.form = void 0, this.excludeVirtualFolders = !1, this.extraFolderId = "", this.extraFolderTitle = "", this.extraFolderIcon = "", this.autoPageSize = !1, this.firstFetchCallback = null, this.searchTerm = "", Oe(this, I), 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.selectSetOptionSelected = this.selectSetOptionSelected.bind(this), this.selectGetTag = this.selectGetTag.bind(this), this.updateWrappedApi();
|
|
636
651
|
}
|
|
637
652
|
updateWrappedApi() {
|
|
638
653
|
if (!this.api) {
|
|
639
|
-
|
|
654
|
+
X(this, I, void 0);
|
|
640
655
|
return;
|
|
641
656
|
}
|
|
642
|
-
|
|
657
|
+
X(this, I, async (e) => {
|
|
643
658
|
try {
|
|
644
659
|
return await this.api(e);
|
|
645
660
|
} catch (t) {
|
|
646
|
-
return t instanceof
|
|
661
|
+
return t instanceof ye && t.response?.status === 401 && this.emit("cx-renew-token"), { data: [], hasMore: !1, totalCount: 0 };
|
|
647
662
|
}
|
|
648
663
|
});
|
|
649
664
|
}
|
|
@@ -681,17 +696,17 @@ let i = class extends A {
|
|
|
681
696
|
), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.selectEl.displayLabel = this.searchTerm);
|
|
682
697
|
}
|
|
683
698
|
selectGetOptionValue(e) {
|
|
684
|
-
return !e || !(e instanceof
|
|
699
|
+
return !e || !(e instanceof S) ? this.value : e.dataset.id || this.value;
|
|
685
700
|
}
|
|
686
701
|
selectGetOptionLabel(e) {
|
|
687
|
-
return !e || !(e instanceof
|
|
702
|
+
return !e || !(e instanceof S) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
|
|
688
703
|
}
|
|
689
704
|
selectGetOptionSelected(e) {
|
|
690
|
-
if (!(!e || !(e instanceof
|
|
705
|
+
if (!(!e || !(e instanceof S)))
|
|
691
706
|
return e.selected;
|
|
692
707
|
}
|
|
693
708
|
selectFilterCallback(e) {
|
|
694
|
-
return !(!e || !(e instanceof
|
|
709
|
+
return !(!e || !(e instanceof S));
|
|
695
710
|
}
|
|
696
711
|
/**
|
|
697
712
|
* Custom tag renderer for cx-select multi mode. Identical visuals to the
|
|
@@ -708,11 +723,11 @@ let i = class extends A {
|
|
|
708
723
|
remove-button:tag__remove-button,
|
|
709
724
|
remove-button__base:tag__remove-button__base
|
|
710
725
|
" removable @cx-remove=${(r) => {
|
|
711
|
-
r.stopPropagation(), e instanceof
|
|
726
|
+
r.stopPropagation(), e instanceof S && (e.selected = !1);
|
|
712
727
|
}}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
|
|
713
728
|
}
|
|
714
729
|
selectSetOptionSelected(e, t) {
|
|
715
|
-
if (!(!e || !(e instanceof
|
|
730
|
+
if (!(!e || !(e instanceof S)) && this.selection !== "multiple") {
|
|
716
731
|
if (t === void 0) {
|
|
717
732
|
e.selected = !e.selected;
|
|
718
733
|
return;
|
|
@@ -733,36 +748,36 @@ let i = class extends A {
|
|
|
733
748
|
}
|
|
734
749
|
}
|
|
735
750
|
async handleVariantChange() {
|
|
736
|
-
this.variant ===
|
|
751
|
+
this.variant === _.Select && (await this.updateComplete, this.updateFunctionProps());
|
|
737
752
|
}
|
|
738
753
|
handleValueChange() {
|
|
739
754
|
this.selectEl && (this.searchTerm = "", this.selectEl.getOptionValue = this.selectGetOptionValue, this.selectEl.getOptionLabel = this.selectGetOptionLabel, this.selectEl.getOptionSelected = this.selectGetOptionSelected, this.selectEl.filterCallback = this.selectFilterCallback, this.selectEl.setOptionSelected = this.selectSetOptionSelected, this.selectEl.getTag = this.selectGetTag, this.selectEl.handleDefaultSlotChange());
|
|
740
755
|
}
|
|
741
756
|
render() {
|
|
742
|
-
return m`<div class="folder-select">${
|
|
757
|
+
return m`<div class="folder-select">${ge(this.variant, [
|
|
743
758
|
[
|
|
744
|
-
|
|
745
|
-
() => 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=${
|
|
759
|
+
_.Input,
|
|
760
|
+
() => 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} ?auto-page-size=${this.autoPageSize} .api=${K(this, I)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
746
761
|
],
|
|
747
762
|
[
|
|
748
|
-
|
|
749
|
-
() => m`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} 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} .api=${
|
|
763
|
+
_.Select,
|
|
764
|
+
() => m`<cx-select clearable hoist lazy name=${this.name} value=${this.value} .form=${this.form} ?required=${this.required} ?multiple=${this.selection === "multiple"} @input=${this.handleSearchTermSelectChange} @cx-clear=${this.handleSelectClear} @cx-selected-change=${this.handleTreeSelectedChange} 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} .api=${K(this, I)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
|
|
750
765
|
]
|
|
751
766
|
])}</div>`;
|
|
752
767
|
}
|
|
753
768
|
};
|
|
754
|
-
|
|
755
|
-
i.styles = [
|
|
769
|
+
I = /* @__PURE__ */ new WeakMap();
|
|
770
|
+
i.styles = [te, we];
|
|
756
771
|
i.dependencies = {
|
|
757
772
|
"cx-folder-select-tree": n,
|
|
758
|
-
"cx-icon":
|
|
759
|
-
"cx-input":
|
|
760
|
-
"cx-line-clamp":
|
|
761
|
-
"cx-select":
|
|
762
|
-
"cx-tag":
|
|
773
|
+
"cx-icon": Y,
|
|
774
|
+
"cx-input": de,
|
|
775
|
+
"cx-line-clamp": ee,
|
|
776
|
+
"cx-select": pe,
|
|
777
|
+
"cx-tag": ue
|
|
763
778
|
};
|
|
764
779
|
c([
|
|
765
|
-
|
|
780
|
+
re("cx-select")
|
|
766
781
|
], i.prototype, "selectEl", 2);
|
|
767
782
|
c([
|
|
768
783
|
l({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
@@ -834,6 +849,9 @@ c([
|
|
|
834
849
|
type: String
|
|
835
850
|
})
|
|
836
851
|
], i.prototype, "extraFolderIcon", 2);
|
|
852
|
+
c([
|
|
853
|
+
l({ attribute: "auto-page-size", reflect: !0, type: Boolean })
|
|
854
|
+
], i.prototype, "autoPageSize", 2);
|
|
837
855
|
c([
|
|
838
856
|
l({ attribute: "first-fetch-callback", reflect: !1, type: Function })
|
|
839
857
|
], i.prototype, "firstFetchCallback", 2);
|
|
@@ -857,10 +875,10 @@ c([
|
|
|
857
875
|
f("value", { waitUntilFirstUpdate: !0 })
|
|
858
876
|
], i.prototype, "handleValueChange", 1);
|
|
859
877
|
i = c([
|
|
860
|
-
|
|
878
|
+
W("cx-folder-select")
|
|
861
879
|
], i);
|
|
862
880
|
export {
|
|
863
881
|
i as C,
|
|
864
|
-
|
|
865
|
-
|
|
882
|
+
_ as F,
|
|
883
|
+
H as a
|
|
866
884
|
};
|