@orangelogic/design-system 2.56.0 → 2.57.0-ci.1
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/{button.CiWlWCNb.js → button.2-Io1Wm4.js} +80 -66
- package/library/chunks/{color-swatch-group.Bsa_Z57a.js → color-swatch-group.VXPK-2tU.js} +167 -157
- package/library/chunks/{color-swatch.CsKJgvVf.js → color-swatch.8OhqVqb6.js} +2 -2
- package/library/chunks/{confirm-popover.Bfuw361W.js → confirm-popover.DGvyB12c.js} +3 -3
- package/library/chunks/{content-builder.UlVFSATk.js → content-builder.WranV3P4.js} +6 -5
- package/library/chunks/{dialog.C28qzMSQ.js → dialog.CIeu0rVD.js} +2 -2
- package/library/chunks/{dot-pagination.D3RYAiHL.js → dot-pagination.CyCA3kSP.js} +1 -1
- package/library/chunks/{file-on-demand.Cr7E_KqH.js → file-on-demand.aux9gsvH.js} +10 -10
- package/library/chunks/{folder-select.ELghy6Qk.js → folder-select.B7u40ijN.js} +5 -5
- package/library/chunks/{format-time.HdcgoabZ.js → format-time.C56HetWv.js} +1 -1
- package/library/chunks/{header.oyZxakKM.js → header.RvymymCe.js} +1 -1
- package/library/chunks/{i18n.C3Z8Xe8q.js → i18n.dCiJrmqj.js} +74 -83
- package/library/chunks/{iframe.C6CLUrTT.js → iframe.Cwqniwf2.js} +1 -1
- package/library/chunks/{image.BJfasRY_.js → image.gpleN29o.js} +3 -3
- package/library/chunks/list-editor.BToq5cqp.js +1641 -0
- package/library/chunks/{option.BOHZB9Sv.js → option.CJ1p2V0m.js} +1 -1
- package/library/chunks/{popup.Ba501Rgg.js → popup.BE5MfEQJ.js} +1 -1
- package/library/chunks/purify.es.BGaRrCfO.js +553 -0
- package/library/chunks/{select.oVg7uA-M.js → select.xBh4yerC.js} +3 -3
- package/library/chunks/string.DPf4puTr.js +136 -0
- package/library/chunks/{tab-group.BWYMMhrE.js → tab-group.CjvHb3OJ.js} +3 -3
- package/library/chunks/{table.-ecyjIUr.js → table.CrX_NJiY.js} +2019 -1744
- package/library/chunks/{timecode.PY1bymeS.js → timecode.XXmVg6tU.js} +1 -1
- package/library/chunks/{tree.82OigIgE.js → tree.CDaFhGjU.js} +1 -1
- package/library/components/alert.js +1 -1
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +14 -14
- package/library/components/border-input-group.js +1 -1
- 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 +6 -6
- package/library/components/color-swatch.js +3 -3
- 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/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +5 -5
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- 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 +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +31 -23
- package/library/components/list-editor.js +9 -8
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +4 -4
- package/library/components/popup.js +2 -2
- 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 +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +4 -4
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/tab.js +1 -1
- package/library/components/table.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +30808 -30016
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +4 -0
- package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +3 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-saved-search-dropdown.d.ts +60 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +38 -5
- package/library/packages/atoms/src/components/table/table.d.ts +28 -5
- package/library/packages/atoms/src/components/table/tabulator-tables/core/row/Row.d.ts +2 -2
- package/library/packages/events/src/cx-content-builder-translatable-value-change.d.ts +13 -0
- package/library/packages/events/src/cx-table-export.d.ts +1 -1
- package/library/packages/events/src/cx-table-save-search-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +2 -0
- package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +1 -0
- package/library/packages/molecules/src/details-group/details-group.d.ts +1 -0
- package/library/packages/molecules/src/list-editor/list-editor.d.ts +14 -0
- package/library/packages/molecules/src/timeline/timeline.d.ts +4 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -0
- package/library/packages/organisms/src/comment/comment.d.ts +13 -0
- package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +21 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +19 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +28 -8
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +28 -1
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +19 -2
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +0 -7
- package/library/packages/organisms/src/content-builder/plugins/plugin-factory.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +3 -1
- package/library/packages/types/src/color-swatch.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +7 -0
- package/library/packages/types/src/table.d.ts +13 -1
- package/library/packages/utils/src/custom-element/i18n-utils.d.ts +2 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +32 -9
- package/library/packages/utils/src/string/string.d.ts +2 -0
- package/library/react-web-component.d.ts +115 -58
- package/package.json +1 -1
- package/library/chunks/list-editor.Ct803qvF.js +0 -737
- package/library/chunks/string.D6poLUEC.js +0 -678
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as r, C as v, c as g } from "./custom-element.vnXBMQxc.js";
|
|
2
2
|
import { c as C } from "./component.styles.CI-v8BZa.js";
|
|
3
3
|
import { F as x, v as w } from "./form.DycFDdkp.js";
|
|
4
|
-
import { L as $ } from "./i18n.
|
|
5
|
-
import { H as
|
|
4
|
+
import { L as $ } from "./i18n.dCiJrmqj.js";
|
|
5
|
+
import { H as S, g as O } from "./slot.DJLm4Dig.js";
|
|
6
6
|
import { w as m } from "./watch.BCJD77bD.js";
|
|
7
|
-
import { r as
|
|
8
|
-
import { e as
|
|
9
|
-
import { e as
|
|
10
|
-
import { o
|
|
7
|
+
import { r as u } from "./state.Cw55xXlb.js";
|
|
8
|
+
import { e as L } from "./query.BBf1UFkC.js";
|
|
9
|
+
import { e as D } from "./class-map.CoZTSvbM.js";
|
|
10
|
+
import { o } from "./if-defined.MfEgpxEN.js";
|
|
11
11
|
import { n as f } from "./when.Dr1es41R.js";
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import { u as h, i as b } from "./static.BjNkqt7_.js";
|
|
13
|
+
import B from "../components/icon.js";
|
|
14
|
+
import F from "../components/spinner.js";
|
|
15
15
|
import { b as _ } from "./button.styles.C8AIO8fd.js";
|
|
16
16
|
var y = /* @__PURE__ */ ((t) => (t.Adaptive = "adaptive", t.Fill = "fill", t.Hug = "hug", t))(y || {}), l = /* @__PURE__ */ ((t) => (t.Custom = "custom", t.Large = "large", t.Medium = "medium", t.Small = "small", t.XLarge = "x-large", t))(l || {}), k = Object.defineProperty, V = Object.getOwnPropertyDescriptor, i = (t, s, p, n) => {
|
|
17
|
-
for (var a = n > 1 ? void 0 : n ? V(s, p) : s,
|
|
18
|
-
(
|
|
17
|
+
for (var a = n > 1 ? void 0 : n ? V(s, p) : s, d = t.length - 1, c; d >= 0; d--)
|
|
18
|
+
(c = t[d]) && (a = (n ? c(s, p, a) : c(a)) || a);
|
|
19
19
|
return n && a && k(s, p, a), a;
|
|
20
20
|
};
|
|
21
21
|
let e = class extends v {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments), this.formControlController = new x(this, {
|
|
24
24
|
assumeInteractionOn: ["click"]
|
|
25
|
-
}), this.hasSlotController = new
|
|
25
|
+
}), this.hasSlotController = new S(
|
|
26
26
|
this,
|
|
27
27
|
"[default]",
|
|
28
28
|
"prefix",
|
|
@@ -37,6 +37,15 @@ let e = class extends v {
|
|
|
37
37
|
get validationMessage() {
|
|
38
38
|
return this.isButton() ? this.button.validationMessage : "";
|
|
39
39
|
}
|
|
40
|
+
get hasPrefix() {
|
|
41
|
+
return this.hasSlotController.test("prefix");
|
|
42
|
+
}
|
|
43
|
+
get hasSuffix() {
|
|
44
|
+
return this.hasSlotController.test("suffix");
|
|
45
|
+
}
|
|
46
|
+
get hasLabel() {
|
|
47
|
+
return this.hasSlotController.test("[default]");
|
|
48
|
+
}
|
|
40
49
|
runFirstUpdated() {
|
|
41
50
|
this.isButton() && this.formControlController.updateValidity();
|
|
42
51
|
}
|
|
@@ -80,7 +89,7 @@ let e = class extends v {
|
|
|
80
89
|
return this.link || this.href;
|
|
81
90
|
}
|
|
82
91
|
handleLabelSlotChange() {
|
|
83
|
-
this.mappedLabel =
|
|
92
|
+
this.mappedLabel = O(
|
|
84
93
|
this.shadowRoot?.querySelector('slot[part="label"]')
|
|
85
94
|
).trim() || this.label || "";
|
|
86
95
|
}
|
|
@@ -115,12 +124,17 @@ let e = class extends v {
|
|
|
115
124
|
setCustomValidity(t) {
|
|
116
125
|
this.isButton() && (this.button.setCustomValidity(t), this.formControlController.updateValidity());
|
|
117
126
|
}
|
|
127
|
+
renderLabel() {
|
|
128
|
+
return h`
|
|
129
|
+
<slot part="label" class="button__label" @slotchange=${this.handleLabelSlotChange}></slot>
|
|
130
|
+
`;
|
|
131
|
+
}
|
|
118
132
|
render() {
|
|
119
133
|
const t = this.isLink() && !this.forceButtonNavigation, s = t ? b`a` : b`button`;
|
|
120
|
-
return
|
|
134
|
+
return h`
|
|
121
135
|
<${s}
|
|
122
136
|
part="base"
|
|
123
|
-
class=${
|
|
137
|
+
class=${D({
|
|
124
138
|
button: !0,
|
|
125
139
|
"button--caret": this.caret,
|
|
126
140
|
"button--circle": this.circle,
|
|
@@ -130,9 +144,9 @@ let e = class extends v {
|
|
|
130
144
|
"button--default": this.variant === "default" || this.variant === "neutral",
|
|
131
145
|
"button--disabled": this.disabled,
|
|
132
146
|
"button--focused": this.hasFocus || this.isParentDropdownOpened,
|
|
133
|
-
"button--has-label": this.
|
|
134
|
-
"button--has-prefix": this.
|
|
135
|
-
"button--has-suffix": this.
|
|
147
|
+
"button--has-label": this.hasLabel,
|
|
148
|
+
"button--has-prefix": this.hasPrefix,
|
|
149
|
+
"button--has-suffix": this.hasSuffix,
|
|
136
150
|
"button--large": this.size === l.Large,
|
|
137
151
|
"button--loading": this.loading,
|
|
138
152
|
"button--medium": this.size === l.Medium,
|
|
@@ -148,18 +162,18 @@ let e = class extends v {
|
|
|
148
162
|
"button--warning": this.variant === "warning",
|
|
149
163
|
"button--x-large": this.size === l.XLarge
|
|
150
164
|
})}
|
|
151
|
-
?disabled=${
|
|
152
|
-
type=${
|
|
153
|
-
title=${
|
|
154
|
-
name=${
|
|
155
|
-
value=${
|
|
156
|
-
href=${
|
|
157
|
-
target=${
|
|
158
|
-
download=${
|
|
159
|
-
rel=${
|
|
160
|
-
role=${
|
|
165
|
+
?disabled=${o(t ? void 0 : this.disabled)}
|
|
166
|
+
type=${o(t ? void 0 : this.type)}
|
|
167
|
+
title=${o(this.title || void 0)}
|
|
168
|
+
name=${o(t ? void 0 : this.name)}
|
|
169
|
+
value=${o(t ? void 0 : this.value)}
|
|
170
|
+
href=${o(t ? this.link || this.href : void 0)}
|
|
171
|
+
target=${o(t ? this.target : void 0)}
|
|
172
|
+
download=${o(t ? this.download : void 0)}
|
|
173
|
+
rel=${o(t ? this.rel : void 0)}
|
|
174
|
+
role=${o(t ? void 0 : "button")}
|
|
161
175
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
162
|
-
aria-label=${
|
|
176
|
+
aria-label=${o(this.mappedLabel || void 0)}
|
|
163
177
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
164
178
|
@blur=${this.handleBlur}
|
|
165
179
|
@focus=${this.handleFocus}
|
|
@@ -167,11 +181,11 @@ let e = class extends v {
|
|
|
167
181
|
@click=${this.handleClick}
|
|
168
182
|
>
|
|
169
183
|
<slot name="prefix" part="prefix" class="button__prefix"></slot>
|
|
170
|
-
|
|
184
|
+
${this.renderLabel()}
|
|
171
185
|
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
172
186
|
${f(
|
|
173
187
|
this.caret,
|
|
174
|
-
() =>
|
|
188
|
+
() => h`
|
|
175
189
|
<cx-icon
|
|
176
190
|
part="caret"
|
|
177
191
|
class="button__caret"
|
|
@@ -179,108 +193,108 @@ let e = class extends v {
|
|
|
179
193
|
></cx-icon>
|
|
180
194
|
`
|
|
181
195
|
)}
|
|
182
|
-
${f(this.loading, () =>
|
|
196
|
+
${f(this.loading, () => h`<cx-spinner part="spinner"></cx-spinner>`)}
|
|
183
197
|
</${s}>
|
|
184
198
|
`;
|
|
185
199
|
}
|
|
186
200
|
};
|
|
187
201
|
e.styles = [C, _];
|
|
188
202
|
e.dependencies = {
|
|
189
|
-
"cx-icon":
|
|
190
|
-
"cx-spinner":
|
|
203
|
+
"cx-icon": B,
|
|
204
|
+
"cx-spinner": F
|
|
191
205
|
};
|
|
192
206
|
i([
|
|
193
|
-
|
|
207
|
+
L(".button")
|
|
194
208
|
], e.prototype, "button", 2);
|
|
195
209
|
i([
|
|
196
|
-
|
|
210
|
+
u()
|
|
197
211
|
], e.prototype, "hasFocus", 2);
|
|
198
212
|
i([
|
|
199
|
-
|
|
213
|
+
u()
|
|
200
214
|
], e.prototype, "invalid", 2);
|
|
201
215
|
i([
|
|
202
|
-
|
|
216
|
+
u()
|
|
203
217
|
], e.prototype, "isParentDropdownOpened", 2);
|
|
204
218
|
i([
|
|
205
|
-
|
|
219
|
+
r()
|
|
206
220
|
], e.prototype, "title", 2);
|
|
207
221
|
i([
|
|
208
|
-
|
|
222
|
+
r({ reflect: !0 })
|
|
209
223
|
], e.prototype, "variant", 2);
|
|
210
224
|
i([
|
|
211
|
-
|
|
225
|
+
r({ reflect: !0 })
|
|
212
226
|
], e.prototype, "size", 2);
|
|
213
227
|
i([
|
|
214
|
-
|
|
228
|
+
r({ reflect: !0, type: Boolean })
|
|
215
229
|
], e.prototype, "caret", 2);
|
|
216
230
|
i([
|
|
217
|
-
|
|
231
|
+
r({ attribute: "caret-direction", reflect: !0, type: String })
|
|
218
232
|
], e.prototype, "caretDirection", 2);
|
|
219
233
|
i([
|
|
220
|
-
|
|
234
|
+
r({ reflect: !0, type: Boolean })
|
|
221
235
|
], e.prototype, "disabled", 2);
|
|
222
236
|
i([
|
|
223
|
-
|
|
237
|
+
r({ reflect: !0, type: Boolean })
|
|
224
238
|
], e.prototype, "loading", 2);
|
|
225
239
|
i([
|
|
226
|
-
|
|
240
|
+
r({ reflect: !0, type: Boolean })
|
|
227
241
|
], e.prototype, "outline", 2);
|
|
228
242
|
i([
|
|
229
|
-
|
|
243
|
+
r({ reflect: !0, type: Boolean })
|
|
230
244
|
], e.prototype, "pill", 2);
|
|
231
245
|
i([
|
|
232
|
-
|
|
246
|
+
r({ reflect: !0, type: Boolean })
|
|
233
247
|
], e.prototype, "circle", 2);
|
|
234
248
|
i([
|
|
235
|
-
|
|
249
|
+
r()
|
|
236
250
|
], e.prototype, "type", 2);
|
|
237
251
|
i([
|
|
238
|
-
|
|
252
|
+
r()
|
|
239
253
|
], e.prototype, "name", 2);
|
|
240
254
|
i([
|
|
241
|
-
|
|
255
|
+
r()
|
|
242
256
|
], e.prototype, "value", 2);
|
|
243
257
|
i([
|
|
244
|
-
|
|
258
|
+
r()
|
|
245
259
|
], e.prototype, "href", 2);
|
|
246
260
|
i([
|
|
247
|
-
|
|
261
|
+
r()
|
|
248
262
|
], e.prototype, "link", 2);
|
|
249
263
|
i([
|
|
250
|
-
|
|
264
|
+
r()
|
|
251
265
|
], e.prototype, "target", 2);
|
|
252
266
|
i([
|
|
253
|
-
|
|
267
|
+
r()
|
|
254
268
|
], e.prototype, "rel", 2);
|
|
255
269
|
i([
|
|
256
|
-
|
|
270
|
+
r()
|
|
257
271
|
], e.prototype, "download", 2);
|
|
258
272
|
i([
|
|
259
|
-
|
|
273
|
+
r({ reflect: !1 })
|
|
260
274
|
], e.prototype, "form", 2);
|
|
261
275
|
i([
|
|
262
|
-
|
|
276
|
+
r({ attribute: "formaction" })
|
|
263
277
|
], e.prototype, "formAction", 2);
|
|
264
278
|
i([
|
|
265
|
-
|
|
279
|
+
r({ attribute: "formenctype" })
|
|
266
280
|
], e.prototype, "formEnctype", 2);
|
|
267
281
|
i([
|
|
268
|
-
|
|
282
|
+
r({ attribute: "formmethod" })
|
|
269
283
|
], e.prototype, "formMethod", 2);
|
|
270
284
|
i([
|
|
271
|
-
|
|
285
|
+
r({ attribute: "formnovalidate", type: Boolean })
|
|
272
286
|
], e.prototype, "formNoValidate", 2);
|
|
273
287
|
i([
|
|
274
|
-
|
|
288
|
+
r({ attribute: "formtarget" })
|
|
275
289
|
], e.prototype, "formTarget", 2);
|
|
276
290
|
i([
|
|
277
|
-
|
|
291
|
+
r({ attribute: "width-type", reflect: !0, type: String })
|
|
278
292
|
], e.prototype, "widthType", 2);
|
|
279
293
|
i([
|
|
280
|
-
|
|
294
|
+
r({ reflect: !0, type: String })
|
|
281
295
|
], e.prototype, "label", 2);
|
|
282
296
|
i([
|
|
283
|
-
|
|
297
|
+
u()
|
|
284
298
|
], e.prototype, "mappedLabel", 2);
|
|
285
299
|
i([
|
|
286
300
|
m("label")
|