@orangelogic/design-system 2.167.0 → 2.169.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/{asset-link-format.DZxMYHXr.js → asset-link-format.BSo7khRt.js} +5 -5
- package/library/chunks/{button.0_maNYUS.js → button.DDem_XZq.js} +1 -1
- package/library/chunks/{color-swatch-group.Bf3Y6g59.js → color-swatch-group.C_PwK2oY.js} +420 -366
- package/library/chunks/{color-swatch.QsHoy_K1.js → color-swatch.DpzAGKQx.js} +1 -1
- package/library/chunks/{confirm-popover.B0QtiuAB.js → confirm-popover.Cx6BUoTL.js} +3 -3
- package/library/chunks/{dialog.05FgdLBZ.js → dialog.B_v8598F.js} +2 -2
- package/library/chunks/{document-viewer.CLgrca4F.js → document-viewer.BT1kp8Ig.js} +5 -5
- package/library/chunks/{dot-pagination.Pg9O0nIh.js → dot-pagination.BqGFeFXK.js} +1 -1
- package/library/chunks/{folder-select.BSFjkzJr.js → folder-select.B9qqU1CQ.js} +139 -107
- package/library/chunks/{header.DDI0MfJA.js → header.CWlWNree.js} +1 -1
- package/library/chunks/{i18n.Bchq8v1d.js → i18n.DbXTTLXx.js} +1 -0
- package/library/chunks/{icon-button.BwmMJ0bI.js → icon-button.DJvfUmOl.js} +1 -1
- package/library/chunks/{iframe.Cc-xZIm_.js → iframe.-GCTFas1.js} +1 -1
- package/library/chunks/{image.BgODrAzQ.js → image.mG-NXUWX.js} +1 -1
- package/library/chunks/{input.DOorVTYZ.js → input.B-c9KEAH.js} +1 -1
- package/library/chunks/{markdown.I1AJG75v.js → markdown.qQGMz1OY.js} +2 -2
- package/library/chunks/{option.DyNR1vzy.js → option.Bvyag0r1.js} +1 -1
- package/library/chunks/{pagination.CuoIeOp9.js → pagination.TxcRv9BL.js} +5 -5
- package/library/chunks/{tab-group.f6LdzCbP.js → tab-group.BdWDbwBy.js} +3 -3
- package/library/chunks/{tree.vn5sHbdt.js → tree.B0-6Ny9b.js} +31 -31
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +14 -14
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +6 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +18 -18
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +1993 -1977
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/hybrid/table-core/src/table/table.d.ts +5 -4
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/cell/Cell.d.ts +5 -1
- package/library/packages/molecules/src/faceted-filter/components/facet/facet.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +9 -0
- package/library/packages/organisms/src/xml-editor/components/element-tag/element-tag.d.ts +3 -0
- package/library/packages/types/src/table.d.ts +3 -1
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { C as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { C as
|
|
1
|
+
import { C as te } from "./icon.D5iM9wXS.js";
|
|
2
|
+
import { C as me } from "./input.B-c9KEAH.js";
|
|
3
|
+
import re from "../components/line-clamp.js";
|
|
4
|
+
import ye from "../components/select.js";
|
|
5
|
+
import ge from "../components/tag.js";
|
|
6
|
+
import { C as v, a as xe } from "./tree.B0-6Ny9b.js";
|
|
7
7
|
import { n as s, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { h as
|
|
9
|
-
import { M as
|
|
10
|
-
import { c as
|
|
8
|
+
import { h as z, F as be, A as $e } from "./endpoints.CwgTrs4A.js";
|
|
9
|
+
import { M as P } from "./asset-link-format.ClaYu_v8.js";
|
|
10
|
+
import { c as se } from "./component.styles.CRO4Odto.js";
|
|
11
11
|
import { c as N } from "./custom-element.L4WJXn1j.js";
|
|
12
|
-
import { L as W } from "./i18n.
|
|
12
|
+
import { L as W } from "./i18n.DbXTTLXx.js";
|
|
13
13
|
import { w as m } from "./watch.DJF5K-8U.js";
|
|
14
|
-
import {
|
|
14
|
+
import { g as R, p as K, e as q } from "./string.BhJ0Zogu.js";
|
|
15
|
+
import { x as y, i as Se } from "./lit-element.jLBm65_O.js";
|
|
15
16
|
import { r as g } from "./state.CSDxrqLd.js";
|
|
16
|
-
import { e as
|
|
17
|
+
import { e as ie } from "./query.BBf1UFkC.js";
|
|
17
18
|
import { r as ve } from "./choose.BTbF6BAn.js";
|
|
18
|
-
import { C as
|
|
19
|
-
import { d as
|
|
20
|
-
import { g as A, p as J, e as Fe } from "./string.BhJ0Zogu.js";
|
|
19
|
+
import { C as le } from "./button.DDem_XZq.js";
|
|
20
|
+
import { d as Ie } from "./debounce.DaHuiSGU.js";
|
|
21
21
|
import { o as p } from "./if-defined.BRoBj_Rp.js";
|
|
22
22
|
import { c as G } from "./repeat.CFjcER6_.js";
|
|
23
|
-
import { o as
|
|
23
|
+
import { o as ae } from "./style-map.llVFPd__.js";
|
|
24
24
|
import { n as k } from "./when.Dr1es41R.js";
|
|
25
|
-
import
|
|
25
|
+
import Fe from "../components/space.js";
|
|
26
26
|
import { g as Te } from "./template.ClovJacp.js";
|
|
27
27
|
import { e as Ce } from "./class-map.BiVq-cVR.js";
|
|
28
28
|
var b = /* @__PURE__ */ ((e) => (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))(b || {});
|
|
29
29
|
const De = 50;
|
|
30
|
-
async function
|
|
30
|
+
async function H({
|
|
31
31
|
allowedFolders: e,
|
|
32
32
|
baseUrl: t,
|
|
33
33
|
bearerToken: r,
|
|
@@ -37,70 +37,70 @@ async function q({
|
|
|
37
37
|
limit: f = De,
|
|
38
38
|
searchTerm: $,
|
|
39
39
|
self: C,
|
|
40
|
-
start:
|
|
41
|
-
token:
|
|
40
|
+
start: Q = 0,
|
|
41
|
+
token: pe
|
|
42
42
|
}) {
|
|
43
|
-
let
|
|
44
|
-
e && e.length > 0 && !i ? (
|
|
43
|
+
let U = [], j = u ?? !0;
|
|
44
|
+
e && e.length > 0 && !i ? (U = e, C = !0, j = !1) : i && (U = [i]);
|
|
45
45
|
try {
|
|
46
|
-
return (await
|
|
46
|
+
return (await z.request({
|
|
47
47
|
baseURL: t,
|
|
48
48
|
headers: {
|
|
49
49
|
Authorization: `Bearer ${r}`
|
|
50
50
|
},
|
|
51
51
|
method: "GET",
|
|
52
52
|
params: {
|
|
53
|
-
IncludeDirectChild:
|
|
53
|
+
IncludeDirectChild: j,
|
|
54
54
|
IncludeVirtualFolders: !l,
|
|
55
55
|
Limit: f,
|
|
56
|
-
ObjectRecordIDs:
|
|
56
|
+
ObjectRecordIDs: U,
|
|
57
57
|
SeeThru: !!$,
|
|
58
58
|
Self: C,
|
|
59
|
-
Start:
|
|
59
|
+
Start: Q,
|
|
60
60
|
Text: $ || void 0,
|
|
61
|
-
Token:
|
|
61
|
+
Token: pe || void 0
|
|
62
62
|
},
|
|
63
63
|
paramsSerializer: {
|
|
64
64
|
indexes: null
|
|
65
65
|
},
|
|
66
66
|
responseType: "json",
|
|
67
67
|
transformResponse: [
|
|
68
|
-
...Array.isArray(
|
|
69
|
-
(
|
|
68
|
+
...Array.isArray(z.defaults.transformResponse) ? z.defaults.transformResponse : [],
|
|
69
|
+
(I, Oe, E) => {
|
|
70
70
|
if (E !== void 0 && (E < 200 || E >= 300))
|
|
71
71
|
return {
|
|
72
72
|
data: [],
|
|
73
73
|
hasMore: !1,
|
|
74
74
|
totalCount: 0
|
|
75
75
|
};
|
|
76
|
-
if (!
|
|
76
|
+
if (!I || typeof I != "object")
|
|
77
77
|
throw new Error("Invalid response format");
|
|
78
|
-
const
|
|
78
|
+
const fe = I.contentItems?.length ?? 0;
|
|
79
79
|
return {
|
|
80
|
-
data:
|
|
81
|
-
const O = x.fields[b.DocType] ?? "",
|
|
82
|
-
let
|
|
83
|
-
(O ===
|
|
84
|
-
const
|
|
80
|
+
data: I.contentItems?.map((x) => {
|
|
81
|
+
const O = x.fields[b.DocType] ?? "", L = x.fields[b.TitleWithFallback] ?? "", w = x.fields[b.CortexPath] ?? "", M = w.endsWith("/") && w.length > 1 ? w.slice(0, -1) : w;
|
|
82
|
+
let Z = M;
|
|
83
|
+
(O === P.Album || O === P.ProjectDocument) && (Z = M ? `${M}/${L}` : L);
|
|
84
|
+
const J = x.fields[b.DocSubTypeIsFontIcon];
|
|
85
85
|
return {
|
|
86
86
|
docType: O,
|
|
87
|
-
fullPath:
|
|
87
|
+
fullPath: Z,
|
|
88
88
|
hasChildren: x.fields[b.HasBrowserChildren] === "1",
|
|
89
89
|
iconColor: x.fields[b.DocSubTypeIconColor],
|
|
90
90
|
iconImageUrl: x.fields[b.DocSubTypeIconImageUrl],
|
|
91
91
|
iconName: x.fields[b.DocSubTypeIconName],
|
|
92
92
|
id: x.recordID,
|
|
93
|
-
isFontIcon:
|
|
93
|
+
isFontIcon: J === void 0 ? void 0 : J === "1",
|
|
94
94
|
representativeAssetId: x.fields[b.RepresentativeAssetId] ?? "",
|
|
95
|
-
title:
|
|
95
|
+
title: L
|
|
96
96
|
};
|
|
97
97
|
}) ?? [],
|
|
98
|
-
hasMore:
|
|
99
|
-
totalCount:
|
|
98
|
+
hasMore: Q + fe < I.totalCount,
|
|
99
|
+
totalCount: I.totalCount
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
|
-
url:
|
|
103
|
+
url: be
|
|
104
104
|
})).data;
|
|
105
105
|
} catch {
|
|
106
106
|
return {
|
|
@@ -110,7 +110,7 @@ async function q({
|
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const oe = {
|
|
114
114
|
fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
|
|
115
115
|
toAttribute: (e) => e.join(" ")
|
|
116
116
|
};
|
|
@@ -121,7 +121,7 @@ var D = /* @__PURE__ */ ((e) => (e.Input = "input", e.Select = "select", e))(D |
|
|
|
121
121
|
};
|
|
122
122
|
let a = class extends B {
|
|
123
123
|
constructor() {
|
|
124
|
-
super(...arguments), this.localize = new W(this), this.role = "treeitem", this.disabledSyncCheckboxes = !0, this.folderId = "", this.hasChildren = !1, this.selectable = !1, this.fullPath = "", this.docType =
|
|
124
|
+
super(...arguments), this.localize = new W(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.iconName = "", this.iconImageUrl = "", this.iconColor = "", this.isFontIcon = !1, this.data = null, this.hasMore = !1, this.loading = !1;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* 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
|
|
@@ -192,14 +192,14 @@ let a = class extends B {
|
|
|
192
192
|
async syncBoxes() {
|
|
193
193
|
if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem))
|
|
194
194
|
return;
|
|
195
|
-
const e = this.fullPath, t =
|
|
195
|
+
const e = this.fullPath, t = R({ id: this.folderId, path: e }), r = K(e), l = this.currentRootIDsSet.has(t);
|
|
196
196
|
let i = !1;
|
|
197
197
|
if (e)
|
|
198
198
|
for (const f of this.currentRootIDsSet) {
|
|
199
|
-
const $ =
|
|
199
|
+
const $ = q(f);
|
|
200
200
|
if (!$.path.trim() || !$.id.trim())
|
|
201
201
|
continue;
|
|
202
|
-
const C =
|
|
202
|
+
const C = K($.path);
|
|
203
203
|
if (C.startsWith(r) && C !== r) {
|
|
204
204
|
i = !0;
|
|
205
205
|
break;
|
|
@@ -219,14 +219,14 @@ let a = class extends B {
|
|
|
219
219
|
* 4. Default folder icon, keeping the existing docType-driven variant.
|
|
220
220
|
*/
|
|
221
221
|
renderIcon() {
|
|
222
|
-
const e =
|
|
222
|
+
const e = ae(
|
|
223
223
|
this.iconColor ? { color: this.iconColor } : {}
|
|
224
224
|
);
|
|
225
225
|
if (!this.icon && this.isFontIcon === !1 && this.iconImageUrl)
|
|
226
226
|
return y`<cx-icon class="folder-select-tree__item__icon" src=${this.iconImageUrl} style=${e}></cx-icon>`;
|
|
227
227
|
if (!this.icon && this.isFontIcon !== !1 && this.iconName)
|
|
228
228
|
return y`<cx-icon class="folder-select-tree__item__icon" name=${this.iconName} variant="fa" style=${e}></cx-icon>`;
|
|
229
|
-
const t = this.docType ===
|
|
229
|
+
const t = this.docType === P.Album ? "outlined" : "filled";
|
|
230
230
|
return y`<cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${t}></cx-icon>`;
|
|
231
231
|
}
|
|
232
232
|
render() {
|
|
@@ -234,7 +234,9 @@ let a = class extends B {
|
|
|
234
234
|
"folder-select-tree-item": !0
|
|
235
235
|
})} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(
|
|
236
236
|
this.representativeAssetId || void 0
|
|
237
|
-
)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection
|
|
237
|
+
)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(
|
|
238
|
+
R({ id: this.folderId, path: this.fullPath })
|
|
239
|
+
) : 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">${Te(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${G(
|
|
238
240
|
this.data || [],
|
|
239
241
|
(e) => e.id,
|
|
240
242
|
(e) => y`<cx-folder-select-tree-item slot="children" folder-id=${e.id} full-path=${e.fullPath} name=${e.title} doc-type=${e.docType} icon-name=${p(e.iconName || void 0)} icon-image-url=${p(e.iconImageUrl || void 0)} icon-color=${p(e.iconColor || void 0)} representative-asset-id=${e.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?has-children=${e.hasChildren} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(e.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${e.url}></cx-folder-select-tree-item>`
|
|
@@ -245,16 +247,16 @@ let a = class extends B {
|
|
|
245
247
|
)}</cx-tree-item>`;
|
|
246
248
|
}
|
|
247
249
|
};
|
|
248
|
-
a.styles = [
|
|
250
|
+
a.styles = [se];
|
|
249
251
|
a.dependencies = {
|
|
250
|
-
"cx-button":
|
|
251
|
-
"cx-icon":
|
|
252
|
-
"cx-line-clamp":
|
|
253
|
-
"cx-space":
|
|
254
|
-
"cx-tree-item":
|
|
252
|
+
"cx-button": le,
|
|
253
|
+
"cx-icon": te,
|
|
254
|
+
"cx-line-clamp": re,
|
|
255
|
+
"cx-space": Fe,
|
|
256
|
+
"cx-tree-item": v
|
|
255
257
|
};
|
|
256
258
|
h([
|
|
257
|
-
|
|
259
|
+
ie("cx-tree-item")
|
|
258
260
|
], a.prototype, "treeItem", 2);
|
|
259
261
|
h([
|
|
260
262
|
s({ attribute: "folder-id", reflect: !0, type: String })
|
|
@@ -351,16 +353,16 @@ h([
|
|
|
351
353
|
a = h([
|
|
352
354
|
N("cx-folder-select-tree-item")
|
|
353
355
|
], a);
|
|
354
|
-
var ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor,
|
|
356
|
+
var ke = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, ne = (e) => {
|
|
355
357
|
throw TypeError(e);
|
|
356
358
|
}, d = (e, t, r, l) => {
|
|
357
359
|
for (var i = l > 1 ? void 0 : l ? Ve(t, r) : t, u = e.length - 1, f; u >= 0; u--)
|
|
358
360
|
(f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
|
|
359
361
|
return l && i && ke(t, r, i), i;
|
|
360
|
-
},
|
|
362
|
+
}, ce = (e, t, r) => t.has(e) || ne("Cannot " + r), S = (e, t, r) => (ce(e, t, "read from private field"), t.get(e)), A = (e, t, r) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), X = (e, t, r, l) => (ce(e, t, "write to private field"), t.set(e, r), r), _, V, F;
|
|
361
363
|
let n = class extends B {
|
|
362
364
|
constructor() {
|
|
363
|
-
super(...arguments), this.localize = new W(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 =
|
|
365
|
+
super(...arguments), this.localize = new W(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 = H, 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 = [], A(this, _, !1), A(this, V, 10), A(this, F, /* @__PURE__ */ new Set());
|
|
364
366
|
}
|
|
365
367
|
get empty() {
|
|
366
368
|
return !this.loading && this.data.length === 0;
|
|
@@ -383,7 +385,7 @@ let n = class extends B {
|
|
|
383
385
|
return 10;
|
|
384
386
|
}
|
|
385
387
|
runFirstUpdated() {
|
|
386
|
-
this.searchTerm = "", this.autoPageSize &&
|
|
388
|
+
this.searchTerm = "", this.autoPageSize && X(this, V, this.computeInitialLimit()), this.handleFetchFolders();
|
|
387
389
|
}
|
|
388
390
|
handleLoadingStateChange() {
|
|
389
391
|
this.emit("cx-folder-select-loading-change", {
|
|
@@ -430,7 +432,7 @@ let n = class extends B {
|
|
|
430
432
|
)?.fullPath;
|
|
431
433
|
if (await t.updateComplete, !r.trim() || !l?.trim())
|
|
432
434
|
return;
|
|
433
|
-
const i =
|
|
435
|
+
const i = R({ id: r, path: l });
|
|
434
436
|
t.indeterminate && !t.selected || (t.selected ? this.currentRootIDsSet.add(i) : this.currentRootIDsSet.delete(i), this.currentRootIDsSet = new Set(this.currentRootIDsSet));
|
|
435
437
|
}
|
|
436
438
|
async loadMore(e) {
|
|
@@ -455,15 +457,29 @@ let n = class extends B {
|
|
|
455
457
|
}
|
|
456
458
|
async handleFetchFolders() {
|
|
457
459
|
const { data: e, hasMore: t } = await this.fetchFolders();
|
|
458
|
-
|
|
460
|
+
S(this, _) || (e.length > 0 && this.firstFetchCallback?.(e), X(this, _, !0)), this.data = e, this.hasMore = t, this.loading = !1, this.seedSelectionFromValue(e), this.removePreloadedFolders(e), await this.preloadSelectedFolders();
|
|
459
461
|
}
|
|
460
462
|
async handleSelectedValueChange() {
|
|
461
|
-
if (!
|
|
463
|
+
if (!S(this, _))
|
|
462
464
|
return;
|
|
463
465
|
const e = new Set(
|
|
464
466
|
this.selectedValue.split(/[\s,]+/).filter(Boolean)
|
|
465
467
|
), t = this.preloadedFolders.filter((r) => e.has(r.id));
|
|
466
|
-
t.length !== this.preloadedFolders.length && (this.preloadedFolders = t), await this.preloadSelectedFolders();
|
|
468
|
+
t.length !== this.preloadedFolders.length && (this.preloadedFolders = t), this.removeDeselectedRootIDs(e), await this.preloadSelectedFolders();
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Drop any `currentRootIDsSet` key whose id is no longer in `selectedValue`.
|
|
472
|
+
* `seedSelectionFromValue` only ever adds keys, so an externally driven
|
|
473
|
+
* `value` change that removes an id would otherwise leave its tree-item
|
|
474
|
+
* (and cx-select's tag) stuck as selected.
|
|
475
|
+
*/
|
|
476
|
+
removeDeselectedRootIDs(e) {
|
|
477
|
+
const t = new Set(
|
|
478
|
+
[...this.currentRootIDsSet].filter(
|
|
479
|
+
(r) => e.has(q(r).id)
|
|
480
|
+
)
|
|
481
|
+
);
|
|
482
|
+
t.size !== this.currentRootIDsSet.size && (this.currentRootIDsSet = t);
|
|
467
483
|
}
|
|
468
484
|
async fetchFolders() {
|
|
469
485
|
if (!this.api)
|
|
@@ -483,7 +499,7 @@ let n = class extends B {
|
|
|
483
499
|
bearerToken: this.bearerToken,
|
|
484
500
|
excludeVirtualFolders: this.excludeVirtualFolders,
|
|
485
501
|
folderId: "",
|
|
486
|
-
limit:
|
|
502
|
+
limit: S(this, V),
|
|
487
503
|
searchTerm: this.searchTerm,
|
|
488
504
|
seeThru: this.seeThru,
|
|
489
505
|
start: 0,
|
|
@@ -512,7 +528,7 @@ let n = class extends B {
|
|
|
512
528
|
...this.data.map((i) => i.id),
|
|
513
529
|
...this.extraFolderData ? [this.extraFolderData.id] : [],
|
|
514
530
|
...this.preloadedFolders.map((i) => i.id),
|
|
515
|
-
...
|
|
531
|
+
...S(this, F),
|
|
516
532
|
...[
|
|
517
533
|
...this.querySelectorAll(
|
|
518
534
|
"cx-folder-select-tree-item"
|
|
@@ -523,7 +539,7 @@ let n = class extends B {
|
|
|
523
539
|
);
|
|
524
540
|
if (r.length === 0)
|
|
525
541
|
return;
|
|
526
|
-
r.forEach((i) =>
|
|
542
|
+
r.forEach((i) => S(this, F).add(i)), this.preloading = !0;
|
|
527
543
|
const l = [];
|
|
528
544
|
if (await Promise.all(
|
|
529
545
|
r.map(async (i) => {
|
|
@@ -545,7 +561,7 @@ let n = class extends B {
|
|
|
545
561
|
} catch {
|
|
546
562
|
}
|
|
547
563
|
})
|
|
548
|
-
), r.forEach((i) =>
|
|
564
|
+
), r.forEach((i) => S(this, F).delete(i)), this.preloading = S(this, F).size > 0, l.length > 0) {
|
|
549
565
|
const i = new Set(this.preloadedFolders.map((f) => f.id)), u = l.filter((f) => !i.has(f.id));
|
|
550
566
|
u.length > 0 && (this.preloadedFolders = [...this.preloadedFolders, ...u].sort(
|
|
551
567
|
(f, $) => f.title.localeCompare($.title)
|
|
@@ -561,7 +577,7 @@ let n = class extends B {
|
|
|
561
577
|
let r = !1;
|
|
562
578
|
for (const l of e)
|
|
563
579
|
if (l.fullPath && t.has(l.id)) {
|
|
564
|
-
const i =
|
|
580
|
+
const i = R({ id: l.id, path: l.fullPath });
|
|
565
581
|
this.currentRootIDsSet.has(i) || (this.currentRootIDsSet.add(i), r = !0);
|
|
566
582
|
}
|
|
567
583
|
r && (this.currentRootIDsSet = new Set(this.currentRootIDsSet), this.emit("cx-folder-select-selection-seeded"));
|
|
@@ -591,17 +607,17 @@ let n = class extends B {
|
|
|
591
607
|
)}</cx-tree>${G(
|
|
592
608
|
this.preloadedFolders,
|
|
593
609
|
(e) => `preloaded-${e.id}`,
|
|
594
|
-
(e) => y`<cx-folder-select-tree-item style=${
|
|
610
|
+
(e) => y`<cx-folder-select-tree-item style=${ae({ 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=${p(e.fullPath ?? void 0)} icon-name=${p(e.iconName || void 0)} icon-image-url=${p(e.iconImageUrl || void 0)} icon-color=${p(e.iconColor || void 0)} name=${e.title} search-term=${this.searchTerm} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} url=${p(e.url ?? void 0)} ?has-children=${!1} ?is-font-icon=${e.isFontIcon} ?selectable=${this.selection === "multiple"} ?exclude-virtual-folders=${this.excludeVirtualFolders}></cx-folder-select-tree-item>`
|
|
595
611
|
)}`;
|
|
596
612
|
}
|
|
597
613
|
};
|
|
598
614
|
_ = /* @__PURE__ */ new WeakMap();
|
|
599
615
|
V = /* @__PURE__ */ new WeakMap();
|
|
600
|
-
|
|
616
|
+
F = /* @__PURE__ */ new WeakMap();
|
|
601
617
|
n.dependencies = {
|
|
602
|
-
"cx-button":
|
|
618
|
+
"cx-button": le,
|
|
603
619
|
"cx-folder-select-tree-item": a,
|
|
604
|
-
"cx-tree":
|
|
620
|
+
"cx-tree": xe
|
|
605
621
|
};
|
|
606
622
|
d([
|
|
607
623
|
s({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
@@ -625,7 +641,7 @@ d([
|
|
|
625
641
|
s({ attribute: "base-url", reflect: !0, type: String })
|
|
626
642
|
], n.prototype, "baseUrl", 2);
|
|
627
643
|
d([
|
|
628
|
-
s({ attribute: "allowed-folders", converter:
|
|
644
|
+
s({ attribute: "allowed-folders", converter: oe, type: Array })
|
|
629
645
|
], n.prototype, "allowedFolders", 2);
|
|
630
646
|
d([
|
|
631
647
|
s({ attribute: "extra-folder-id", reflect: !0, type: String })
|
|
@@ -692,7 +708,7 @@ d([
|
|
|
692
708
|
m("token", { waitUntilFirstUpdate: !0 }),
|
|
693
709
|
m("searchTerm", { waitUntilFirstUpdate: !0 }),
|
|
694
710
|
m("excludeVirtualFolders", { waitUntilFirstUpdate: !0 }),
|
|
695
|
-
|
|
711
|
+
Ie(500)
|
|
696
712
|
], n.prototype, "handleFetchFolders", 1);
|
|
697
713
|
d([
|
|
698
714
|
m("selectedValue", { waitUntilFirstUpdate: !0 })
|
|
@@ -700,28 +716,28 @@ d([
|
|
|
700
716
|
n = d([
|
|
701
717
|
N("cx-folder-select-tree")
|
|
702
718
|
], n);
|
|
703
|
-
const
|
|
704
|
-
var
|
|
719
|
+
const Pe = Se`: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}`;
|
|
720
|
+
var Re = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, he = (e) => {
|
|
705
721
|
throw TypeError(e);
|
|
706
722
|
}, c = (e, t, r, l) => {
|
|
707
|
-
for (var i = l > 1 ? void 0 : l ?
|
|
723
|
+
for (var i = l > 1 ? void 0 : l ? Ue(t, r) : t, u = e.length - 1, f; u >= 0; u--)
|
|
708
724
|
(f = e[u]) && (i = (l ? f(t, r, i) : f(i)) || i);
|
|
709
|
-
return l && i &&
|
|
710
|
-
},
|
|
725
|
+
return l && i && Re(t, r, i), i;
|
|
726
|
+
}, de = (e, t, r) => t.has(e) || he("Cannot " + r), Y = (e, t, r) => (de(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ee = (e, t, r) => t.has(e) ? he("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, l) => (de(e, t, "write to private field"), t.set(e, r), r), T;
|
|
711
727
|
let o = class extends B {
|
|
712
728
|
constructor() {
|
|
713
|
-
super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant = D.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], this.open = !1, this.token = "", this.bearerToken = "", this.seeThru = !1, this.api =
|
|
729
|
+
super(), this.localize = new W(this), this.minQueryLength = 1, this.selection = "single", this.variant = D.Input, this.value = "", this.name = "", this.selectedLabel = "", this.baseUrl = "", this.allowedFolders = [], 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 = "", this.treeLoading = !1, Ee(this, T), 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();
|
|
714
730
|
}
|
|
715
731
|
updateWrappedApi() {
|
|
716
732
|
if (!this.api) {
|
|
717
|
-
|
|
733
|
+
ee(this, T, void 0);
|
|
718
734
|
return;
|
|
719
735
|
}
|
|
720
|
-
|
|
736
|
+
ee(this, T, async (e) => {
|
|
721
737
|
try {
|
|
722
738
|
return await this.api(e);
|
|
723
739
|
} catch (t) {
|
|
724
|
-
return t instanceof
|
|
740
|
+
return t instanceof $e && t.response?.status === 401 && this.emit("cx-renew-token"), { data: [], hasMore: !1, totalCount: 0 };
|
|
725
741
|
}
|
|
726
742
|
});
|
|
727
743
|
}
|
|
@@ -745,7 +761,19 @@ let o = class extends B {
|
|
|
745
761
|
if (this.searchTerm = "", this.selection !== "multiple")
|
|
746
762
|
return;
|
|
747
763
|
const e = this.shadowRoot?.querySelector("cx-folder-select-tree");
|
|
748
|
-
e && (e.currentRootIDsSet = /* @__PURE__ */ new Set(), e.removedIDs = []);
|
|
764
|
+
e && (e.currentRootIDsSet = /* @__PURE__ */ new Set(), e.removedIDs = []), this.value = "";
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* cx-folder-select-tree owns `currentRootIDsSet` (the real source of
|
|
768
|
+
* truth for multi-select) — a user toggling a tree-item, or removing a
|
|
769
|
+
* tag (which flows through `option.selected = false` → tree-item →
|
|
770
|
+
* tree), only ever mutates that set. Nothing else pushes the result back
|
|
771
|
+
* into our own public `value`, so re-derive it here whenever the tree
|
|
772
|
+
* reports a selection change.
|
|
773
|
+
*/
|
|
774
|
+
syncValueFromTree() {
|
|
775
|
+
const e = this.shadowRoot?.querySelector("cx-folder-select-tree");
|
|
776
|
+
e && (this.value = [...e.currentRootIDsSet].map((t) => q(t).id).filter(Boolean).join(" "));
|
|
749
777
|
}
|
|
750
778
|
/**
|
|
751
779
|
* cx-select's own `value` only reflects our `value` correctly the very
|
|
@@ -776,22 +804,26 @@ let o = class extends B {
|
|
|
776
804
|
* first update), so this is the only signal for that case.
|
|
777
805
|
*/
|
|
778
806
|
async handleTreeSelectedChange() {
|
|
779
|
-
this.selection !== "multiple" || !this.selectEl
|
|
780
|
-
|
|
781
|
-
|
|
807
|
+
if (this.selection !== "multiple" || !this.selectEl)
|
|
808
|
+
return;
|
|
809
|
+
await new Promise(
|
|
810
|
+
(t) => requestAnimationFrame(() => t())
|
|
811
|
+
);
|
|
812
|
+
const e = this.searchTerm;
|
|
813
|
+
this.syncValueFromTree(), this.syncSelectValue(), this.selectEl.handleDefaultSlotChange(), await this.selectEl.updateComplete, this.searchTerm = e, this.selectEl.displayLabel = this.searchTerm;
|
|
782
814
|
}
|
|
783
815
|
selectGetOptionValue(e) {
|
|
784
|
-
return !e || !(e instanceof
|
|
816
|
+
return !e || !(e instanceof v) ? this.value : e.dataset.id || this.value;
|
|
785
817
|
}
|
|
786
818
|
selectGetOptionLabel(e) {
|
|
787
|
-
return !e || !(e instanceof
|
|
819
|
+
return !e || !(e instanceof v) ? this.selectedLabel : e.dataset.name || this.selectedLabel;
|
|
788
820
|
}
|
|
789
821
|
selectGetOptionSelected(e) {
|
|
790
|
-
if (!(!e || !(e instanceof
|
|
822
|
+
if (!(!e || !(e instanceof v)))
|
|
791
823
|
return e.selected;
|
|
792
824
|
}
|
|
793
825
|
selectFilterCallback(e) {
|
|
794
|
-
return !(!e || !(e instanceof
|
|
826
|
+
return !(!e || !(e instanceof v));
|
|
795
827
|
}
|
|
796
828
|
/**
|
|
797
829
|
* Custom tag renderer for cx-select multi mode. Identical visuals to the
|
|
@@ -808,11 +840,11 @@ let o = class extends B {
|
|
|
808
840
|
remove-button:tag__remove-button,
|
|
809
841
|
remove-button__base:tag__remove-button__base
|
|
810
842
|
" removable @cx-remove=${(r) => {
|
|
811
|
-
r.stopPropagation(), e instanceof
|
|
843
|
+
r.stopPropagation(), e instanceof v && (e.selected = !1);
|
|
812
844
|
}}><cx-line-clamp lines="1">${this.selectGetOptionLabel(e)}</cx-line-clamp></cx-tag>`;
|
|
813
845
|
}
|
|
814
846
|
selectSetOptionSelected(e, t) {
|
|
815
|
-
if (!(!e || !(e instanceof
|
|
847
|
+
if (!(!e || !(e instanceof v)) && this.selection !== "multiple") {
|
|
816
848
|
if (t === void 0) {
|
|
817
849
|
e.selected = !e.selected;
|
|
818
850
|
return;
|
|
@@ -842,27 +874,27 @@ let o = class extends B {
|
|
|
842
874
|
return y`<div class="folder-select">${ve(this.variant, [
|
|
843
875
|
[
|
|
844
876
|
D.Input,
|
|
845
|
-
() => y`<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=${
|
|
877
|
+
() => y`<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=${Y(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree>`
|
|
846
878
|
],
|
|
847
879
|
[
|
|
848
880
|
D.Select,
|
|
849
|
-
() => y`<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} 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=${
|
|
881
|
+
() => y`<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} 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=${Y(this, T)} .firstFetchCallback=${this.firstFetchCallback}></cx-folder-select-tree></cx-select>`
|
|
850
882
|
]
|
|
851
883
|
])}</div>`;
|
|
852
884
|
}
|
|
853
885
|
};
|
|
854
886
|
T = /* @__PURE__ */ new WeakMap();
|
|
855
|
-
o.styles = [
|
|
887
|
+
o.styles = [se, Pe];
|
|
856
888
|
o.dependencies = {
|
|
857
889
|
"cx-folder-select-tree": n,
|
|
858
|
-
"cx-icon":
|
|
859
|
-
"cx-input":
|
|
860
|
-
"cx-line-clamp":
|
|
861
|
-
"cx-select":
|
|
862
|
-
"cx-tag":
|
|
890
|
+
"cx-icon": te,
|
|
891
|
+
"cx-input": me,
|
|
892
|
+
"cx-line-clamp": re,
|
|
893
|
+
"cx-select": ye,
|
|
894
|
+
"cx-tag": ge
|
|
863
895
|
};
|
|
864
896
|
c([
|
|
865
|
-
|
|
897
|
+
ie("cx-select")
|
|
866
898
|
], o.prototype, "selectEl", 2);
|
|
867
899
|
c([
|
|
868
900
|
s({ attribute: "min-query-length", reflect: !0, type: Number })
|
|
@@ -886,7 +918,7 @@ c([
|
|
|
886
918
|
s({ attribute: "base-url", reflect: !0, type: String })
|
|
887
919
|
], o.prototype, "baseUrl", 2);
|
|
888
920
|
c([
|
|
889
|
-
s({ attribute: "allowed-folders", converter:
|
|
921
|
+
s({ attribute: "allowed-folders", converter: oe, type: Array })
|
|
890
922
|
], o.prototype, "allowedFolders", 2);
|
|
891
923
|
c([
|
|
892
924
|
s({ reflect: !0, type: Boolean })
|
|
@@ -971,6 +1003,6 @@ o = c([
|
|
|
971
1003
|
export {
|
|
972
1004
|
o as C,
|
|
973
1005
|
D as F,
|
|
974
|
-
|
|
975
|
-
|
|
1006
|
+
H as a,
|
|
1007
|
+
oe as s
|
|
976
1008
|
};
|
|
@@ -3,7 +3,7 @@ import { n as c, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
3
3
|
import { c as k } from "./component.styles.CRO4Odto.js";
|
|
4
4
|
import { i as p } from "./lit-element.jLBm65_O.js";
|
|
5
5
|
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as w } from "./i18n.
|
|
6
|
+
import { L as w } from "./i18n.DbXTTLXx.js";
|
|
7
7
|
import { w as y } from "./watch.DJF5K-8U.js";
|
|
8
8
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
9
9
|
import { e as u } from "./class-map.BiVq-cVR.js";
|
|
@@ -813,6 +813,7 @@ const b = {
|
|
|
813
813
|
noPalette: "No Palette",
|
|
814
814
|
noPreviewAvailable: "No preview available",
|
|
815
815
|
noResults: "No results",
|
|
816
|
+
noResultsFound: "No results found",
|
|
816
817
|
noSavedSearch: "No Saved Search",
|
|
817
818
|
noSlidesAddedYet: "No slides added yet",
|
|
818
819
|
noSourceUrlProvided: "No source URL provided",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as r, C as g } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as p } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as h } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as m } from "./i18n.
|
|
4
|
+
import { L as m } from "./i18n.DbXTTLXx.js";
|
|
5
5
|
import { r as f } from "./state.CSDxrqLd.js";
|
|
6
6
|
import { e as v } from "./query.BBf1UFkC.js";
|
|
7
7
|
import { e as y } from "./class-map.BiVq-cVR.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as r, C as d } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as h } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as u } from "./i18n.
|
|
4
|
+
import { L as u } from "./i18n.DbXTTLXx.js";
|
|
5
5
|
import { w as g } from "./watch.DJF5K-8U.js";
|
|
6
6
|
import { i as b, x as p } from "./lit-element.jLBm65_O.js";
|
|
7
7
|
import { e as v } from "./query.BBf1UFkC.js";
|
|
@@ -3,7 +3,7 @@ import { c as He } from "./component.styles.CRO4Odto.js";
|
|
|
3
3
|
import { a as Te } from "./index.Cpamj0jB.js";
|
|
4
4
|
import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
6
|
-
import { L as je } from "./i18n.
|
|
6
|
+
import { L as je } from "./i18n.DbXTTLXx.js";
|
|
7
7
|
import { w as I } from "./watch.DJF5K-8U.js";
|
|
8
8
|
import { a as Ze } from "./url.Bd5rq4G0.js";
|
|
9
9
|
import { i as se, E as K, x as E } from "./lit-element.jLBm65_O.js";
|
|
@@ -4,7 +4,7 @@ import { f as ot } from "./form-control.styles.CaGWmeAS.js";
|
|
|
4
4
|
import { c as lt } from "./custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as ht } from "./default-value.COZopaet.js";
|
|
6
6
|
import { F as pt } from "./form.CP9KLGjF.js";
|
|
7
|
-
import { L as ct } from "./i18n.
|
|
7
|
+
import { L as ct } from "./i18n.DbXTTLXx.js";
|
|
8
8
|
import { H as dt } from "./slot.j5oheLJC.js";
|
|
9
9
|
import { w as V } from "./watch.DJF5K-8U.js";
|
|
10
10
|
import { i as ft, x as E } from "./lit-element.jLBm65_O.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as qn, I as Yn } from "./icon-button.
|
|
1
|
+
import { C as qn, I as Yn } from "./icon-button.DJvfUmOl.js";
|
|
2
2
|
import { C as jn, n as de } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import { c as Un } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as Gn } from "./i18n.
|
|
4
|
+
import { L as Gn } from "./i18n.DbXTTLXx.js";
|
|
5
5
|
import { w as _e } from "./watch.DJF5K-8U.js";
|
|
6
6
|
import { s as Hn } from "./string.BhJ0Zogu.js";
|
|
7
7
|
import { i as dt, x as Wn } from "./lit-element.jLBm65_O.js";
|