@orangelogic/design-system 2.172.0 → 2.173.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.BATKDRgD.js → asset-link-format.COCtAbj0.js} +7 -5
- package/library/chunks/{color-swatch-group.CQlgq_I5.js → color-swatch-group.DCw6mJkM.js} +526 -508
- package/library/chunks/{folder-select.C6Sv4jtu.js → folder-select.BgWvY0t0.js} +346 -320
- package/library/components/asset-link-format.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/dynamic-select.js +143 -127
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +7 -7
- package/library/package.json +1 -1
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +13 -1
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +3 -0
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +14 -0
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +16 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +18 -5
- package/library/react-web-component.d.ts +6 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import "../chunks/button.zWaIO1sl.js";
|
|
|
3
3
|
import "./space.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { C as h } from "../chunks/asset-link-format.
|
|
6
|
+
import { C as h } from "../chunks/asset-link-format.COCtAbj0.js";
|
|
7
7
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import "../chunks/asset-link-format.ClaYu_v8.js";
|
|
9
9
|
import "../chunks/position-picker.DjnhxIKF.js";
|
|
@@ -3,7 +3,7 @@ import "../chunks/typography.IqHbnd3C.js";
|
|
|
3
3
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import "../chunks/color-swatch.DpzAGKQx.js";
|
|
5
5
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
6
|
-
import { C as v } from "../chunks/color-swatch-group.
|
|
6
|
+
import { C as v } from "../chunks/color-swatch-group.DCw6mJkM.js";
|
|
7
7
|
import "../chunks/transformation.8uLv6uwG.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
@@ -1,72 +1,76 @@
|
|
|
1
1
|
import { C as g } from "../chunks/button.zWaIO1sl.js";
|
|
2
2
|
import { C as O } from "../chunks/icon-button.DJvfUmOl.js";
|
|
3
|
-
import { C as
|
|
4
|
-
import
|
|
5
|
-
import { n as
|
|
3
|
+
import { C as h, a as C } from "../chunks/option.Bvyag0r1.js";
|
|
4
|
+
import $ from "./select.js";
|
|
5
|
+
import { n as s, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { d as w } from "../chunks/debounce.DaHuiSGU.js";
|
|
8
8
|
import { L as S } from "../chunks/i18n.DbXTTLXx.js";
|
|
9
|
-
import { w as
|
|
10
|
-
import { x as
|
|
11
|
-
import { r as
|
|
9
|
+
import { w as p } from "../chunks/watch.DJF5K-8U.js";
|
|
10
|
+
import { x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
|
+
import { r as c } from "../chunks/state.CSDxrqLd.js";
|
|
12
12
|
import { e as E } from "../chunks/query.BBf1UFkC.js";
|
|
13
|
-
import { e as
|
|
13
|
+
import { e as T } from "../chunks/class-map.BiVq-cVR.js";
|
|
14
14
|
import { o as m } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
15
|
-
import { i as
|
|
15
|
+
import { i as B } from "../chunks/keyed.DdOUTIg-.js";
|
|
16
16
|
import { o as b } from "../chunks/map.D8heArFD.js";
|
|
17
17
|
import { c as y } from "../chunks/repeat.CFjcER6_.js";
|
|
18
|
-
import { o as
|
|
18
|
+
import { o as F } from "../chunks/style-map.llVFPd__.js";
|
|
19
19
|
import { n as f } from "../chunks/when.Dr1es41R.js";
|
|
20
20
|
import { b as D } from "../chunks/_baseIteratee.sC2wLi2m.js";
|
|
21
21
|
import { b as V } from "../chunks/_baseUniq.lwMgmtt2.js";
|
|
22
|
-
function
|
|
23
|
-
return t && t.length ? V(t, D(
|
|
22
|
+
function k(t, i) {
|
|
23
|
+
return t && t.length ? V(t, D(i)) : [];
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
for (var
|
|
27
|
-
(d = t[u]) && (
|
|
28
|
-
return a &&
|
|
25
|
+
var _ = Object.defineProperty, z = Object.getOwnPropertyDescriptor, o = (t, i, l, a) => {
|
|
26
|
+
for (var r = a > 1 ? void 0 : a ? z(i, l) : i, u = t.length - 1, d; u >= 0; u--)
|
|
27
|
+
(d = t[u]) && (r = (a ? d(i, l, r) : d(r)) || r);
|
|
28
|
+
return a && r && _(i, l, r), r;
|
|
29
29
|
};
|
|
30
30
|
let e = class extends v {
|
|
31
31
|
constructor() {
|
|
32
|
-
super(...arguments), this.localize = new S(this), this.name = "", this.value = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = "", this.required = !1, this.useTag = !1, this.inputBehavior = "filter", this.getOptionValue = (t) => !t || !(t instanceof
|
|
33
|
-
if (t instanceof
|
|
34
|
-
if (
|
|
32
|
+
super(...arguments), this.localize = new S(this), this.name = "", this.value = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = "", this.required = !1, this.useTag = !1, this.inputBehavior = "filter", this.getOptionValue = (t) => !t || !(t instanceof h) ? "" : typeof t.value == "string" ? t.value : "", this.setOptionCurrent = (t, i) => {
|
|
33
|
+
if (t instanceof h) {
|
|
34
|
+
if (i === void 0) {
|
|
35
35
|
t.current = !t.current;
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
t.current =
|
|
38
|
+
t.current = i;
|
|
39
39
|
}
|
|
40
|
-
}, this.setOptionSelected = (t,
|
|
41
|
-
if (!(!(t instanceof
|
|
42
|
-
if (
|
|
40
|
+
}, this.setOptionSelected = (t, i) => {
|
|
41
|
+
if (!(!(t instanceof h) || t.getAttribute("role") !== "option")) {
|
|
42
|
+
if (i === void 0) {
|
|
43
43
|
t.selected = !t.selected;
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
t.selected =
|
|
46
|
+
t.selected = i, i && this.selectEl.setCurrentOption(t);
|
|
47
47
|
}
|
|
48
|
-
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.columns = [], this.useSearchTerm = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.iconName = "", this.noDropdown = !1, this.noDropdownOnEmpty = !1, this.noFlip = !1, this.customChangeEvent = "", this.autoFallbackFirstOption = !1, this.options = [], this.start = 0, this.searchTerm = "", this.hasMore = !1, this.loading = !1;
|
|
48
|
+
}, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.columns = [], this.useSearchTerm = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.iconName = "", this.noDropdown = !1, this.noDropdownOnEmpty = !1, this.noFlip = !1, this.customChangeEvent = "", this.autoFallbackFirstOption = !1, this.hasOptions = !1, this.options = [], this.start = 0, this.searchTerm = "", this.hasMore = !1, this.loading = !1, this.fetchToken = 0;
|
|
49
49
|
}
|
|
50
50
|
createRenderRoot() {
|
|
51
51
|
return this;
|
|
52
52
|
}
|
|
53
53
|
async fetchOptions(t = !1) {
|
|
54
|
-
if (this.api)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.loading = !1;
|
|
54
|
+
if (!this.api)
|
|
55
|
+
return;
|
|
56
|
+
const i = ++this.fetchToken;
|
|
57
|
+
try {
|
|
58
|
+
this.loading = !0;
|
|
59
|
+
const l = await this.api({
|
|
60
|
+
searchTerm: this.searchTerm,
|
|
61
|
+
start: this.start
|
|
62
|
+
});
|
|
63
|
+
if (i !== this.fetchToken)
|
|
64
|
+
return;
|
|
65
|
+
if (t ? this.options = l.data : this.options = k([...this.options, ...l.data], "value"), this.hasMore = l.hasMore, await this.updateComplete, this.selectEl) {
|
|
66
|
+
let a, r = !1;
|
|
67
|
+
this.multiple ? a = this.value?.trim() ? this.value.trim().split(/\s+/) : [] : (a = this.getFallbackValue(), r = a !== this.value), this.selectEl.value = a, r && this.selectEl.emit("cx-change");
|
|
69
68
|
}
|
|
69
|
+
} catch {
|
|
70
|
+
i === this.fetchToken && (this.options = []);
|
|
71
|
+
} finally {
|
|
72
|
+
i === this.fetchToken && (this.loading = !1);
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
async handleStartChange() {
|
|
72
76
|
await this.updateComplete, this.api ? await this.fetchOptions() : this.options = [];
|
|
@@ -74,18 +78,21 @@ let e = class extends v {
|
|
|
74
78
|
async handleSearchTermChange() {
|
|
75
79
|
this.api ? (this.start = 0, await this.updateComplete, await this.fetchOptions(!0)) : this.options = [];
|
|
76
80
|
}
|
|
81
|
+
handleOptionsChange() {
|
|
82
|
+
this.hasOptions = this.options.length > 0;
|
|
83
|
+
}
|
|
77
84
|
async handleColumnsChange() {
|
|
78
85
|
await this.updateComplete, this.selectEl && (this.columns.length > 0 ? (this.selectEl.filterCallback = this.tableFilterCallback, this.selectEl.getOptionDisabled = this.tableGetOptionDisabled, this.selectEl.getOptionLabel = this.getOptionLabel ?? this.tableGetOptionLabel, this.selectEl.getOptionSelected = this.tableGetOptionSelected, this.selectEl.getOptionValue = this.tableGetOptionValue, this.selectEl.setOptionCurrent = this.tableSetOptionCurrent, this.selectEl.setOptionSelected = this.tableSetOptionSelected) : (this.selectEl.getOptionValue = this.getOptionValue, this.selectEl.setOptionCurrent = this.setOptionCurrent, this.selectEl.setOptionSelected = this.setOptionSelected));
|
|
79
86
|
}
|
|
80
87
|
tableGetOptionValue(t) {
|
|
81
88
|
return t?.getAttribute("data-value") ?? "";
|
|
82
89
|
}
|
|
83
|
-
tableSetOptionSelected(t,
|
|
84
|
-
const
|
|
85
|
-
t?.toggleAttribute("selected",
|
|
90
|
+
tableSetOptionSelected(t, i) {
|
|
91
|
+
const l = i ?? !t?.hasAttribute("selected");
|
|
92
|
+
t?.toggleAttribute("selected", l), t?.setAttribute("aria-selected", String(l));
|
|
86
93
|
}
|
|
87
|
-
tableSetOptionCurrent(t,
|
|
88
|
-
t?.toggleAttribute("current",
|
|
94
|
+
tableSetOptionCurrent(t, i) {
|
|
95
|
+
t?.toggleAttribute("current", i ?? !t?.hasAttribute("current"));
|
|
89
96
|
}
|
|
90
97
|
tableGetOptionLabel(t) {
|
|
91
98
|
return t?.querySelector("td")?.textContent?.trim() ?? "";
|
|
@@ -96,31 +103,34 @@ let e = class extends v {
|
|
|
96
103
|
tableGetOptionDisabled(t) {
|
|
97
104
|
return t?.hasAttribute("disabled") ?? !1;
|
|
98
105
|
}
|
|
99
|
-
tableFilterCallback(t,
|
|
100
|
-
const
|
|
106
|
+
tableFilterCallback(t, i) {
|
|
107
|
+
const l = i.toLowerCase();
|
|
101
108
|
return [...t?.querySelectorAll("td") || []].some(
|
|
102
|
-
(a) => a.textContent?.toLowerCase().includes(
|
|
109
|
+
(a) => a.textContent?.toLowerCase().includes(l)
|
|
103
110
|
);
|
|
104
111
|
}
|
|
105
|
-
getCellValue(t,
|
|
106
|
-
if (
|
|
107
|
-
const
|
|
108
|
-
return
|
|
112
|
+
getCellValue(t, i) {
|
|
113
|
+
if (i in t) {
|
|
114
|
+
const l = t[i];
|
|
115
|
+
return l == null ? "" : String(l);
|
|
109
116
|
}
|
|
110
|
-
return t.extra?.[
|
|
117
|
+
return t.extra?.[i] ?? "";
|
|
111
118
|
}
|
|
112
119
|
getColWidth(t) {
|
|
113
|
-
const
|
|
114
|
-
return `${((t.flex ?? 1) /
|
|
120
|
+
const i = this.columns.reduce((l, a) => l + (a.flex ?? 1), 0);
|
|
121
|
+
return `${((t.flex ?? 1) / i * 100).toFixed(1)}%`;
|
|
115
122
|
}
|
|
116
123
|
getFallbackValue() {
|
|
117
124
|
return this.autoFallbackFirstOption ? this.options.some(
|
|
118
|
-
(
|
|
125
|
+
(i) => i.value === this.value
|
|
119
126
|
) ? this.value : this.options[0]?.value ?? "" : this.value;
|
|
120
127
|
}
|
|
121
128
|
handleInputChange(t) {
|
|
122
|
-
const { value:
|
|
123
|
-
this.searchTerm =
|
|
129
|
+
const { value: i } = t.target.displayInput;
|
|
130
|
+
this.searchTerm = i, this.selectEl.getOptionLabel = (l) => !l || !(l instanceof h) ? this.searchTerm : l.getTextLabel() || this.searchTerm;
|
|
131
|
+
}
|
|
132
|
+
handleClear() {
|
|
133
|
+
this.fetchToken += 1, this.options = [], this.searchTerm = "";
|
|
124
134
|
}
|
|
125
135
|
handleLoadMore() {
|
|
126
136
|
this.start += 10;
|
|
@@ -128,44 +138,44 @@ let e = class extends v {
|
|
|
128
138
|
handleCustomChange(t) {
|
|
129
139
|
if (!t.target)
|
|
130
140
|
return;
|
|
131
|
-
const
|
|
132
|
-
(a) => a.value ===
|
|
141
|
+
const i = t.target, l = this.options.find(
|
|
142
|
+
(a) => a.value === i.value
|
|
133
143
|
);
|
|
134
|
-
|
|
135
|
-
detail:
|
|
144
|
+
l && this.emit(this.customChangeEvent, {
|
|
145
|
+
detail: l
|
|
136
146
|
});
|
|
137
147
|
}
|
|
138
148
|
renderTableOptions() {
|
|
139
|
-
return
|
|
149
|
+
return n`<table class="table-select__table"><thead class="table-select__thead"><tr>${b(
|
|
140
150
|
this.columns,
|
|
141
|
-
(t) =>
|
|
151
|
+
(t) => n`<th class="table-select__th" style=${F({ width: this.getColWidth(t) })}>${t.header}</th>`
|
|
142
152
|
)}</tr></thead>${y(
|
|
143
153
|
this.options,
|
|
144
154
|
(t) => t.value ?? "",
|
|
145
|
-
(t) =>
|
|
155
|
+
(t) => n`<tr role="option" aria-selected="false" aria-disabled=${t.disabled ? "true" : "false"} data-value=${t.value ?? ""} ?disabled=${t.disabled ?? !1}>${b(
|
|
146
156
|
this.columns,
|
|
147
|
-
(
|
|
157
|
+
(i) => n`<td class="table-select__td">${this.getCellValue(t, i.field)}</td>`
|
|
148
158
|
)}</tr>`
|
|
149
159
|
)}</table>`;
|
|
150
160
|
}
|
|
151
161
|
render() {
|
|
152
|
-
const t = this.noDropdown || this.noDropdownOnEmpty && !this.options.length,
|
|
153
|
-
return
|
|
162
|
+
const t = this.noDropdown || this.noDropdownOnEmpty && !this.options.length, i = this.columns.length > 0;
|
|
163
|
+
return B(i, n`<cx-select auto-size-padding=${this.autosizePadding} class=${T({
|
|
154
164
|
"dynamic-select": !0,
|
|
155
|
-
"table-select":
|
|
156
|
-
})} data-id=${m(this.dataset.id || void 0)} data-label=${m(this.dataset.label || void 0)} form=${this.form} help-text=${this.helpText} input-behavior=${this.inputBehavior} label=${this.label} max-options-visible=${this.maxOptionsVisible} name=${this.name} placeholder=${this.placeholder} placement=${this.placement} size=${this.size} value=${this.value} .syncElement=${this.syncElement} ?allow-default-mouse-down=${this.allowDefaultMouseDown} ?allow-freetext=${this.allowFreetext} ?clearable=${this.clearable} ?close-on-select=${this.closeOnSelect} ?disabled=${this.disabled} ?filled=${this.filled} ?force-on-change=${this.forceOnChange} ?free-width=${this.freeWidth} ?hoist=${this.hoist} ?loading=${this.loading} ?multiple=${this.multiple} ?no-dropdown=${t} ?no-flip=${this.noFlip} ?no-reset-current=${this.noResetCurrent} ?no-select-on-enter=${this.noSelectOnEnter} ?open=${this.open} ?pill=${this.pill} ?required=${this.required} ?stay-open-on-select=${this.stayOpenOnSelect} ?use-tag=${this.useTag} @cx-change=${this.customChangeEvent ? this.handleCustomChange : void 0} @input=${this.useSearchTerm ? this.handleInputChange : void 0}>${f(this.iconName, () =>
|
|
165
|
+
"table-select": i
|
|
166
|
+
})} data-id=${m(this.dataset.id || void 0)} data-label=${m(this.dataset.label || void 0)} form=${this.form} help-text=${this.helpText} input-behavior=${this.inputBehavior} label=${this.label} max-options-visible=${this.maxOptionsVisible} name=${this.name} placeholder=${this.placeholder} placement=${this.placement} size=${this.size} value=${this.value} .syncElement=${this.syncElement} ?allow-default-mouse-down=${this.allowDefaultMouseDown} ?allow-freetext=${this.allowFreetext} ?clearable=${this.clearable} ?close-on-select=${this.closeOnSelect} ?disabled=${this.disabled} ?filled=${this.filled} ?force-on-change=${this.forceOnChange} ?free-width=${this.freeWidth} ?hoist=${this.hoist} ?loading=${this.loading} ?multiple=${this.multiple} ?no-dropdown=${t} ?no-flip=${this.noFlip} ?no-reset-current=${this.noResetCurrent} ?no-select-on-enter=${this.noSelectOnEnter} ?open=${this.open} ?pill=${this.pill} ?required=${this.required} ?stay-open-on-select=${this.stayOpenOnSelect} ?use-tag=${this.useTag} @cx-change=${this.customChangeEvent ? this.handleCustomChange : void 0} @cx-clear=${this.useSearchTerm ? this.handleClear : void 0} @input=${this.useSearchTerm ? this.handleInputChange : void 0}>${f(this.iconName, () => n`<cx-icon-button class="icon-button" tabindex="-1" label=${this.localize.term("search")} name=${this.iconName} slot="prefix"></cx-icon-button>`)}
|
|
157
167
|
${f(
|
|
158
|
-
|
|
168
|
+
i,
|
|
159
169
|
() => this.renderTableOptions(),
|
|
160
|
-
() =>
|
|
170
|
+
() => n`
|
|
161
171
|
${y(
|
|
162
172
|
this.options,
|
|
163
|
-
(
|
|
164
|
-
(
|
|
173
|
+
(l) => l.value ?? "",
|
|
174
|
+
(l) => n`<cx-option value=${l.value ?? ""} ?disabled=${l.disabled} show-check check-placement=${C.Right}>${l.label ?? l.value ?? ""}</cx-option>`
|
|
165
175
|
)}
|
|
166
176
|
${f(
|
|
167
177
|
this.hasMore,
|
|
168
|
-
() =>
|
|
178
|
+
() => n`<cx-option value="load-more" class="tree-item__actions"><cx-button variant="text" ?loading=${this.loading} @click=${this.handleLoadMore}>${this.localize.term("more")}</cx-button></cx-option>`
|
|
169
179
|
)}
|
|
170
180
|
`
|
|
171
181
|
)}</cx-select>`);
|
|
@@ -174,181 +184,187 @@ let e = class extends v {
|
|
|
174
184
|
e.dependencies = {
|
|
175
185
|
"cx-button": g,
|
|
176
186
|
"cx-icon-button": O,
|
|
177
|
-
"cx-option":
|
|
178
|
-
"cx-select":
|
|
187
|
+
"cx-option": h,
|
|
188
|
+
"cx-select": $
|
|
179
189
|
};
|
|
180
190
|
o([
|
|
181
191
|
E("cx-select")
|
|
182
192
|
], e.prototype, "selectEl", 2);
|
|
183
193
|
o([
|
|
184
|
-
|
|
194
|
+
s()
|
|
185
195
|
], e.prototype, "name", 2);
|
|
186
196
|
o([
|
|
187
|
-
|
|
197
|
+
s({ reflect: !0, type: String })
|
|
188
198
|
], e.prototype, "value", 2);
|
|
189
199
|
o([
|
|
190
|
-
|
|
200
|
+
s({ reflect: !0 })
|
|
191
201
|
], e.prototype, "size", 2);
|
|
192
202
|
o([
|
|
193
|
-
|
|
203
|
+
s()
|
|
194
204
|
], e.prototype, "placeholder", 2);
|
|
195
205
|
o([
|
|
196
|
-
|
|
206
|
+
s({ attribute: "allow-freetext", reflect: !0, type: Boolean })
|
|
197
207
|
], e.prototype, "allowFreetext", 2);
|
|
198
208
|
o([
|
|
199
|
-
|
|
209
|
+
s({ reflect: !0, type: Boolean })
|
|
200
210
|
], e.prototype, "multiple", 2);
|
|
201
211
|
o([
|
|
202
|
-
|
|
212
|
+
s({ attribute: "max-options-visible", type: Number })
|
|
203
213
|
], e.prototype, "maxOptionsVisible", 2);
|
|
204
214
|
o([
|
|
205
|
-
|
|
215
|
+
s({ reflect: !0, type: Boolean })
|
|
206
216
|
], e.prototype, "disabled", 2);
|
|
207
217
|
o([
|
|
208
|
-
|
|
218
|
+
s({ type: Boolean })
|
|
209
219
|
], e.prototype, "clearable", 2);
|
|
210
220
|
o([
|
|
211
|
-
|
|
221
|
+
s({ reflect: !0, type: Boolean })
|
|
212
222
|
], e.prototype, "open", 2);
|
|
213
223
|
o([
|
|
214
|
-
|
|
224
|
+
s({ type: Boolean })
|
|
215
225
|
], e.prototype, "hoist", 2);
|
|
216
226
|
o([
|
|
217
|
-
|
|
227
|
+
s({ attribute: "sync-element" })
|
|
218
228
|
], e.prototype, "syncElement", 2);
|
|
219
229
|
o([
|
|
220
|
-
|
|
230
|
+
s({ attribute: "free-width", reflect: !0, type: Boolean })
|
|
221
231
|
], e.prototype, "freeWidth", 2);
|
|
222
232
|
o([
|
|
223
|
-
|
|
233
|
+
s({ attribute: "auto-size-padding", type: Number })
|
|
224
234
|
], e.prototype, "autosizePadding", 2);
|
|
225
235
|
o([
|
|
226
|
-
|
|
236
|
+
s({ reflect: !0, type: Boolean })
|
|
227
237
|
], e.prototype, "filled", 2);
|
|
228
238
|
o([
|
|
229
|
-
|
|
239
|
+
s({ reflect: !0, type: Boolean })
|
|
230
240
|
], e.prototype, "pill", 2);
|
|
231
241
|
o([
|
|
232
|
-
|
|
242
|
+
s()
|
|
233
243
|
], e.prototype, "label", 2);
|
|
234
244
|
o([
|
|
235
|
-
|
|
245
|
+
s({ reflect: !0 })
|
|
236
246
|
], e.prototype, "placement", 2);
|
|
237
247
|
o([
|
|
238
|
-
|
|
248
|
+
s({ attribute: "help-text" })
|
|
239
249
|
], e.prototype, "helpText", 2);
|
|
240
250
|
o([
|
|
241
|
-
|
|
251
|
+
s({ reflect: !0 })
|
|
242
252
|
], e.prototype, "form", 2);
|
|
243
253
|
o([
|
|
244
|
-
|
|
254
|
+
s({ reflect: !0, type: Boolean })
|
|
245
255
|
], e.prototype, "required", 2);
|
|
246
256
|
o([
|
|
247
|
-
|
|
257
|
+
s({ attribute: "use-tag", reflect: !0, type: Boolean })
|
|
248
258
|
], e.prototype, "useTag", 2);
|
|
249
259
|
o([
|
|
250
|
-
|
|
260
|
+
s({ attribute: "input-behavior" })
|
|
251
261
|
], e.prototype, "inputBehavior", 2);
|
|
252
262
|
o([
|
|
253
|
-
|
|
263
|
+
s({ attribute: "get-option-value" })
|
|
254
264
|
], e.prototype, "getOptionValue", 2);
|
|
255
265
|
o([
|
|
256
|
-
|
|
266
|
+
s({ attribute: "get-option-label" })
|
|
257
267
|
], e.prototype, "getOptionLabel", 2);
|
|
258
268
|
o([
|
|
259
|
-
|
|
269
|
+
s({ attribute: "set-option-current" })
|
|
260
270
|
], e.prototype, "setOptionCurrent", 2);
|
|
261
271
|
o([
|
|
262
|
-
|
|
272
|
+
s({ attribute: "set-option-selected" })
|
|
263
273
|
], e.prototype, "setOptionSelected", 2);
|
|
264
274
|
o([
|
|
265
|
-
|
|
275
|
+
s({ attribute: "stay-open-on-select", type: Boolean })
|
|
266
276
|
], e.prototype, "stayOpenOnSelect", 2);
|
|
267
277
|
o([
|
|
268
|
-
|
|
278
|
+
s({ attribute: "close-on-select", type: Boolean })
|
|
269
279
|
], e.prototype, "closeOnSelect", 2);
|
|
270
280
|
o([
|
|
271
|
-
|
|
281
|
+
s({ attribute: "force-on-change", type: Boolean })
|
|
272
282
|
], e.prototype, "forceOnChange", 2);
|
|
273
283
|
o([
|
|
274
|
-
|
|
284
|
+
s({ attribute: "allow-default-mouse-down", type: Boolean })
|
|
275
285
|
], e.prototype, "allowDefaultMouseDown", 2);
|
|
276
286
|
o([
|
|
277
|
-
|
|
287
|
+
s({ attribute: "api", type: Function })
|
|
278
288
|
], e.prototype, "api", 2);
|
|
279
289
|
o([
|
|
280
|
-
|
|
290
|
+
s({ attribute: !1, type: Array })
|
|
281
291
|
], e.prototype, "columns", 2);
|
|
282
292
|
o([
|
|
283
|
-
|
|
293
|
+
s({ attribute: "use-search-term", reflect: !0, type: Boolean })
|
|
284
294
|
], e.prototype, "useSearchTerm", 2);
|
|
285
295
|
o([
|
|
286
|
-
|
|
296
|
+
s({
|
|
287
297
|
attribute: "no-select-on-enter",
|
|
288
298
|
reflect: !0,
|
|
289
299
|
type: Boolean
|
|
290
300
|
})
|
|
291
301
|
], e.prototype, "noSelectOnEnter", 2);
|
|
292
302
|
o([
|
|
293
|
-
|
|
303
|
+
s({
|
|
294
304
|
attribute: "no-reset-current",
|
|
295
305
|
reflect: !0,
|
|
296
306
|
type: Boolean
|
|
297
307
|
})
|
|
298
308
|
], e.prototype, "noResetCurrent", 2);
|
|
299
309
|
o([
|
|
300
|
-
|
|
310
|
+
s({ attribute: "icon-name", reflect: !0, type: String })
|
|
301
311
|
], e.prototype, "iconName", 2);
|
|
302
312
|
o([
|
|
303
|
-
|
|
313
|
+
s({
|
|
304
314
|
attribute: "no-dropdown",
|
|
305
315
|
reflect: !0,
|
|
306
316
|
type: Boolean
|
|
307
317
|
})
|
|
308
318
|
], e.prototype, "noDropdown", 2);
|
|
309
319
|
o([
|
|
310
|
-
|
|
320
|
+
s({
|
|
311
321
|
attribute: "no-dropdown-on-empty",
|
|
312
322
|
reflect: !0,
|
|
313
323
|
type: Boolean
|
|
314
324
|
})
|
|
315
325
|
], e.prototype, "noDropdownOnEmpty", 2);
|
|
316
326
|
o([
|
|
317
|
-
|
|
327
|
+
s({ attribute: "no-flip", reflect: !0, type: Boolean })
|
|
318
328
|
], e.prototype, "noFlip", 2);
|
|
319
329
|
o([
|
|
320
|
-
|
|
330
|
+
s({ attribute: "custom-change-event", type: String })
|
|
321
331
|
], e.prototype, "customChangeEvent", 2);
|
|
322
332
|
o([
|
|
323
|
-
|
|
333
|
+
s({ attribute: "auto-fallback-first-option", reflect: !0, type: Boolean })
|
|
324
334
|
], e.prototype, "autoFallbackFirstOption", 2);
|
|
325
335
|
o([
|
|
326
|
-
|
|
336
|
+
s({ attribute: "has-options", reflect: !0, type: Boolean })
|
|
337
|
+
], e.prototype, "hasOptions", 2);
|
|
338
|
+
o([
|
|
339
|
+
c()
|
|
327
340
|
], e.prototype, "options", 2);
|
|
328
341
|
o([
|
|
329
|
-
|
|
342
|
+
c()
|
|
330
343
|
], e.prototype, "start", 2);
|
|
331
344
|
o([
|
|
332
|
-
|
|
345
|
+
c()
|
|
333
346
|
], e.prototype, "searchTerm", 2);
|
|
334
347
|
o([
|
|
335
|
-
|
|
348
|
+
c()
|
|
336
349
|
], e.prototype, "hasMore", 2);
|
|
337
350
|
o([
|
|
338
|
-
|
|
351
|
+
c()
|
|
339
352
|
], e.prototype, "loading", 2);
|
|
340
353
|
o([
|
|
341
354
|
w(200)
|
|
342
355
|
], e.prototype, "fetchOptions", 1);
|
|
343
356
|
o([
|
|
344
|
-
|
|
345
|
-
|
|
357
|
+
p("api"),
|
|
358
|
+
p("start", { waitUntilFirstUpdate: !0 })
|
|
346
359
|
], e.prototype, "handleStartChange", 1);
|
|
347
360
|
o([
|
|
348
|
-
|
|
361
|
+
p("searchTerm", { waitUntilFirstUpdate: !0 })
|
|
349
362
|
], e.prototype, "handleSearchTermChange", 1);
|
|
350
363
|
o([
|
|
351
|
-
|
|
364
|
+
p("options")
|
|
365
|
+
], e.prototype, "handleOptionsChange", 1);
|
|
366
|
+
o([
|
|
367
|
+
p("columns")
|
|
352
368
|
], e.prototype, "handleColumnsChange", 1);
|
|
353
369
|
e = o([
|
|
354
370
|
x("cx-dynamic-select")
|
|
@@ -5,7 +5,7 @@ import "./select.js";
|
|
|
5
5
|
import "./tag.js";
|
|
6
6
|
import "../chunks/tree.B0-6Ny9b.js";
|
|
7
7
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { C as j } from "../chunks/folder-select.
|
|
8
|
+
import { C as j } from "../chunks/folder-select.BgWvY0t0.js";
|
|
9
9
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
@@ -5,7 +5,7 @@ import { C as u } from "../chunks/confirm-popover.hHcCIzpX.js";
|
|
|
5
5
|
import { default as d } from "./corner-position-input-group.js";
|
|
6
6
|
import { default as l } from "./cropper.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.BgWvY0t0.js";
|
|
9
9
|
import { default as P } from "./masonry.js";
|
|
10
10
|
import { default as I } from "./padding-input-group.js";
|
|
11
11
|
import { default as y } from "./position-picker.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as a } from "../chunks/asset-link-format.
|
|
2
|
-
import { C as t } from "../chunks/color-swatch-group.
|
|
1
|
+
import { C as a } from "../chunks/asset-link-format.COCtAbj0.js";
|
|
2
|
+
import { C as t } from "../chunks/color-swatch-group.DCw6mJkM.js";
|
|
3
3
|
import { default as C } from "./file-on-demand.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|
|
@@ -115,7 +115,7 @@ import { d as ec } from "../chunks/debounce.DaHuiSGU.js";
|
|
|
115
115
|
import { t as jS, c as qI, d as DQ, i as Xk, G as Gg, j as gp, h as IQ, s as WI, T as X4, k as wi, l as wF, u as MQ, f as Jk, m as PQ, F as ky, M as Yb, n as NQ, o as xF, q as GI } from "../chunks/string.BhJ0Zogu.js";
|
|
116
116
|
import { b as XJt, e as JJt, g as ZJt, p as QJt, z as eZt, y as tZt, a as iZt, x as nZt, v as rZt, r as oZt, w as aZt } from "../chunks/string.BhJ0Zogu.js";
|
|
117
117
|
import { c as pi } from "../chunks/repeat.CFjcER6_.js";
|
|
118
|
-
import { a as By, F as $y, i as J4, b as KI, c as YI, d as LQ, e as kF, f as _F, g as Z4, h as Zk, C as RQ, j as XI, k as JI, l as ZI, m as QI, n as e8, o as t8, O as i8, D as HS, p as BQ, q as n8, u as Qk } from "../chunks/asset-link-format.
|
|
118
|
+
import { a as By, F as $y, i as J4, b as KI, c as YI, d as LQ, e as kF, f as _F, g as Z4, h as Zk, C as RQ, j as XI, k as JI, l as ZI, m as QI, n as e8, o as t8, O as i8, D as HS, p as BQ, q as n8, u as Qk } from "../chunks/asset-link-format.COCtAbj0.js";
|
|
119
119
|
import { H as XC } from "../chunks/slot.j5oheLJC.js";
|
|
120
120
|
import { a as lZt, g as cZt } from "../chunks/slot.j5oheLJC.js";
|
|
121
121
|
import { c as Pr, d as $Q, H as Ii, e as Ta, f as ms, a as FQ, b as er } from "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
@@ -141,9 +141,9 @@ import { g as IF, F as XQ } from "../chunks/form.CP9KLGjF.js";
|
|
|
141
141
|
import { c as PZt, f as NZt, v as LZt, a as RZt } from "../chunks/form.CP9KLGjF.js";
|
|
142
142
|
import { d as qS, c as u8, e as JQ, i as p8, h as ZQ, p as QQ, t as eee } from "../chunks/date.iWq_pkIk.js";
|
|
143
143
|
import { b as $Zt, f as FZt, g as zZt, a as jZt, n as HZt } from "../chunks/date.iWq_pkIk.js";
|
|
144
|
-
import { F as MF, a as tee, b as t3, H as iee, c as u0, d as nee, o as Cu } from "../chunks/color-swatch-group.
|
|
145
|
-
import { C as UZt, e as qZt, f as WZt } from "../chunks/color-swatch-group.
|
|
146
|
-
import { F as Gd, C as Q4, s as i3, a as WS } from "../chunks/folder-select.
|
|
144
|
+
import { F as MF, a as tee, b as t3, H as iee, c as u0, d as nee, o as Cu } from "../chunks/color-swatch-group.DCw6mJkM.js";
|
|
145
|
+
import { C as UZt, e as qZt, f as WZt } from "../chunks/color-swatch-group.DCw6mJkM.js";
|
|
146
|
+
import { F as Gd, C as Q4, s as i3, a as WS } from "../chunks/folder-select.BgWvY0t0.js";
|
|
147
147
|
import { b as n3, a as kw, c as ree, r as Ue, j as _e, w as oee, R as aee } from "../chunks/jsx-runtime.CTpPVMxj.js";
|
|
148
148
|
import { j as GS } from "../chunks/index.CrhRU5m8.js";
|
|
149
149
|
import { i as e6, T as KS, t as see } from "../chunks/transform.BuqENXeT.js";
|
|
@@ -36245,7 +36245,7 @@ async function aU({
|
|
|
36245
36245
|
}
|
|
36246
36246
|
}
|
|
36247
36247
|
var kc = /* @__PURE__ */ ((i) => (i.Custom = "custom", i.Large = "large", i.Medium = "medium", i.Small = "small", i))(kc || {}), Au = /* @__PURE__ */ ((i) => (i.Adaptive = "adaptive", i.Fill = "fill", i.Fixed = "fixed", i))(Au || {});
|
|
36248
|
-
const Fvt = ti`:host{--width:100px;--icon-spacing:var(--cx-spacing-x-small);--color:light-dark(var(--cx-color-neutral-1000),var(--cx-color-neutral-0));--border-color:light-dark(var(--cx-color-neutral-0),var(--cx-color-neutral-1000));--background-color:light-dark(#0000,#0000);--search-box-custom-height:32px;--search-box-custom-padding:4px 8px 4px 8px;--search-box-custom-font-size:var(--cx-font-size-medium);width:var(--width);max-width:100%;transition:width .3s ease-in-out;display:block}:host([width-type=fill]),:host([width-type=adaptive][device-type=tablet]),:host([width-type=adaptive][device-type=mobile]),.search-box,.search-box cx-select{width:100%}.search-box cx-select{--cx-input-color:var(--color);--cx-input-color-hover:var(--color);--cx-input-icon-color:var(--color)}.search-box cx-select::part(combobox){color:var(--color);border-color:var(--border-color);background-color:var(--background-color);padding-inline-start:var(--cx-spacing-x-small)}.search-box cx-select[size=large]::part(combobox){padding-inline-start:var(--cx-spacing-small)}:host([size=custom]) .search-box cx-select::part(combobox){min-height:var(--search-box-custom-height);padding:var(--search-box-custom-padding)}:host([size=custom]) .search-box cx-select::part(display-input){font-family:var(--search-box-custom-font-family,var(--cx-input-font-family)), var(--cx-font-sans);font-size:var(--search-box-custom-font-size);font-style:var(--search-box-custom-font-style,normal);font-weight:var(--search-box-custom-font-weight,var(--cx-font-weight-regular))}.icon-button{color:var(--color);margin-inline-end:var(--icon-spacing)}.search-box__icon--enabled .icon-button::part(base){cursor:pointer}.icon-button::part(base){cursor:default;min-width:0;min-height:0;padding:0}.search-box cx-option::part(base){color:var(--color)}`;
|
|
36248
|
+
const Fvt = ti`:host{--width:100px;--icon-spacing:var(--cx-spacing-x-small);--color:light-dark(var(--cx-color-neutral-1000),var(--cx-color-neutral-0));--border-color:light-dark(var(--cx-color-neutral-0),var(--cx-color-neutral-1000));--background-color:light-dark(#0000,#0000);--search-box-custom-height:32px;--search-box-custom-padding:4px 8px 4px 8px;--search-box-custom-font-size:var(--cx-font-size-medium);width:var(--width);max-width:100%;transition:width .3s ease-in-out;display:block}:host([width-type=fill]),:host([width-type=adaptive][device-type=tablet]),:host([width-type=adaptive][device-type=mobile]),.search-box,.search-box cx-select{width:100%}.search-box cx-select{--cx-input-color:var(--color);--cx-input-color-hover:var(--color);--cx-input-icon-color:var(--color)}.search-box cx-select::part(expand-icon){display:none}.search-box[has-options] cx-select::part(expand-icon){display:flex}.search-box cx-select::part(combobox){color:var(--color);border-color:var(--border-color);background-color:var(--background-color);padding-inline-start:var(--cx-spacing-x-small)}.search-box cx-select[size=large]::part(combobox){padding-inline-start:var(--cx-spacing-small)}:host([size=custom]) .search-box cx-select::part(combobox){min-height:var(--search-box-custom-height);padding:var(--search-box-custom-padding)}:host([size=custom]) .search-box cx-select::part(display-input){font-family:var(--search-box-custom-font-family,var(--cx-input-font-family)), var(--cx-font-sans);font-size:var(--search-box-custom-font-size);font-style:var(--search-box-custom-font-style,normal);font-weight:var(--search-box-custom-font-weight,var(--cx-font-weight-regular))}.icon-button{color:var(--color);margin-inline-end:var(--icon-spacing)}.search-box__icon--enabled .icon-button::part(base){cursor:pointer}.icon-button::part(base){cursor:default;min-width:0;min-height:0;padding:0}.search-box cx-option::part(base){color:var(--color)}`;
|
|
36249
36249
|
var zvt = Object.defineProperty, jvt = Object.getOwnPropertyDescriptor, uu = (i, e, t, n) => {
|
|
36250
36250
|
for (var r = n > 1 ? void 0 : n ? jvt(e, t) : e, o = i.length - 1, a; o >= 0; o--)
|
|
36251
36251
|
(a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
|
|
@@ -122216,7 +122216,7 @@ class oPt {
|
|
|
122216
122216
|
else
|
|
122217
122217
|
h = e[l.downloadFormatPickerConfigs?.assetIdsKey ?? ""]?.toString().split(" ") ?? [];
|
|
122218
122218
|
const m = l.pickerConfigs?.nameKey ?? "name";
|
|
122219
|
-
return I`<cx-download-format-picker name=${e[m] ?? ""} .value=${u} .assetIds=${h} .prescribedDocTypes=${l.downloadFormatPickerConfigs?.prescribedDocTypes ?? []} ?required=${l.required ?? !1} @cx-download-format-select=${c} @cx-download-format-delete=${d} .onRequestDownloadFormat=${this.host.onRequestDownloadFormat}>${s}</cx-download-format-picker>`;
|
|
122219
|
+
return I`<cx-download-format-picker name=${e[m] ?? ""} .value=${u} .assetIds=${h} .prescribedDocTypes=${l.downloadFormatPickerConfigs?.prescribedDocTypes ?? []} ?required=${l.required ?? !1} ?disabled=${h.length === 0} @cx-download-format-select=${c} @cx-download-format-delete=${d} .onRequestDownloadFormat=${this.host.onRequestDownloadFormat}>${s}</cx-download-format-picker>`;
|
|
122220
122220
|
}
|
|
122221
122221
|
],
|
|
122222
122222
|
[
|
|
@@ -138299,7 +138299,7 @@ const LFt = q$t.extend({
|
|
|
138299
138299
|
return;
|
|
138300
138300
|
}
|
|
138301
138301
|
}
|
|
138302
|
-
k?.commands.focus();
|
|
138302
|
+
k?.commands.focus("end");
|
|
138303
138303
|
}, u = r.bubbleMenu;
|
|
138304
138304
|
i.setCustomRte({
|
|
138305
138305
|
disable(w, k, T) {
|