@orangelogic/design-system 3.80.0 → 3.81.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.vF2ZaG1Y.js → asset-link-format.BCaHv6rQ.js} +387 -381
- package/library/chunks/{audio.OVvnRj2a.js → audio.Dr0Hus7H.js} +6 -3
- package/library/chunks/{block-width.BH7TR3eZ.js → block-width.DDBxasyy.js} +469 -445
- package/library/chunks/{color-swatch-group.CfYdaquw.js → color-swatch-group.D6W7Zrig.js} +45 -45
- package/library/chunks/{config-manager.CXYDqPVU.js → config-manager.CXUj_qfl.js} +12 -12
- package/library/chunks/{configs-controller.D7ZZytOj.js → configs-controller.C34CcFSA.js} +61 -61
- package/library/chunks/{document-viewer.6SnAxejc.js → document-viewer.BKdDZ9MG.js} +16 -7
- package/library/chunks/{file-on-demand.BMY6QNJY.js → file-on-demand.BAwB-Znv.js} +1 -1
- package/library/chunks/{image.CXQJO9if.js → image.wVxvwZxr.js} +74 -79
- package/library/chunks/{masonry.C9-z9R7j.js → masonry.D4DxZZ03.js} +1 -1
- package/library/chunks/{src.B1k7w53w.js → src.DoJoeNZB.js} +4 -4
- package/library/chunks/src.cBRbsOdC.js +720 -0
- package/library/chunks/{url.CZO_DV8Y.js → url.BCc06dE7.js} +15 -6
- package/library/chunks/{video.Bv7f2jDe.js → video.C9tEIck_.js} +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +5 -5
- package/library/components/audio.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/types.js +10287 -10185
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
- package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +6 -0
- package/library/packages/atoms/src/components/image/image.d.ts +0 -3
- package/library/packages/events/src/events.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/column/column.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/document-viewer/document-viewer.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +7 -6
- package/library/packages/organisms/src/content-builder/blocks/timeline/timeline.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +9 -0
- package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +13 -4
- package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -0
- package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
- package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +7 -0
- package/library/react-web-component.d.ts +21 -1
- package/library/utils.js +28 -706
- package/package.json +1 -1
- package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
- package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
|
@@ -36,14 +36,14 @@ import { t as ye } from "./unsafe-html.Cb838aX7.js";
|
|
|
36
36
|
import { t as be } from "./select.CmdHRMy_.js";
|
|
37
37
|
import { t as xe } from "./guard.Cf17k6Vx.js";
|
|
38
38
|
import { a as Se, f as Ce, l as we, r as Te } from "./date.BL4L64Hx.js";
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { t as
|
|
42
|
-
import {
|
|
43
|
-
import { n as
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
39
|
+
import { $ as Ee, D as De, at as Oe, et as ke, nt as Ae, rt as je, st as Me } from "./src.cBRbsOdC.js";
|
|
40
|
+
import { t as Ne } from "./details.B_IIkM1I.js";
|
|
41
|
+
import { i as Pe, s as Fe, t as Ie } from "./dialog.Cagz5vxR.js";
|
|
42
|
+
import { t as Le } from "./divider.CqSNZCU8.js";
|
|
43
|
+
import { n as Re } from "./toString.r2ImdBrm.js";
|
|
44
|
+
import { n as ze } from "./capitalize.BT_EavGy.js";
|
|
45
|
+
import { _ as Be, c as Ve, g as He, l as Ue, v as We, y as Ge } from "./color.CIOzHtLK.js";
|
|
46
|
+
import { f as Ke, n as qe, r as Je, t as Ye } from "./responsive.L9Csz2w2.js";
|
|
47
47
|
import Xe from "../components/format-number.js";
|
|
48
48
|
import { t as Ze } from "./menu-section.BzzA6L5E.js";
|
|
49
49
|
import { n as Qe, t as $e } from "./pagination.DEGvwJXh.js";
|
|
@@ -153,7 +153,7 @@ var At = {
|
|
|
153
153
|
static #n = this.dependencies = {
|
|
154
154
|
"cx-badge": de,
|
|
155
155
|
"cx-button": ne,
|
|
156
|
-
"cx-details":
|
|
156
|
+
"cx-details": Ne,
|
|
157
157
|
"cx-dropdown": me,
|
|
158
158
|
"cx-icon": D,
|
|
159
159
|
"cx-icon-button": w,
|
|
@@ -376,7 +376,7 @@ var Nt = P, Pt = /* @__PURE__ */ function(e) {
|
|
|
376
376
|
function Gt(e, t, n) {
|
|
377
377
|
for (var r = n ? st : ct, i = e[0].length, a = e.length, o = a, s = Array(a), c = Infinity, l = []; o--;) {
|
|
378
378
|
var u = e[o];
|
|
379
|
-
o && t && (u =
|
|
379
|
+
o && t && (u = Re(u, b(t))), c = Wt(u.length, c), s[o] = !n && (t || i >= 120 && u.length >= 120) ? new x(o && u) : void 0;
|
|
380
380
|
}
|
|
381
381
|
u = e[0];
|
|
382
382
|
var d = -1, f = s[0];
|
|
@@ -400,7 +400,7 @@ function Kt(e) {
|
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region ../../node_modules/lodash-es/intersectionBy.js
|
|
402
402
|
var qt = pt(function(e) {
|
|
403
|
-
var t = gt(e), n =
|
|
403
|
+
var t = gt(e), n = Re(e, Kt);
|
|
404
404
|
return t === gt(n) ? t = void 0 : n.pop(), n.length && n[0] === e[0] ? Gt(n, ot(t, 2)) : [];
|
|
405
405
|
}), Jt = pt(function(e) {
|
|
406
406
|
var t = gt(e);
|
|
@@ -414,7 +414,7 @@ var qt = pt(function(e) {
|
|
|
414
414
|
//#endregion
|
|
415
415
|
//#region ../../node_modules/lodash-es/_parent.js
|
|
416
416
|
function Zt(e, t) {
|
|
417
|
-
return t.length < 2 ? e : it(e,
|
|
417
|
+
return t.length < 2 ? e : it(e, ze(t, 0, -1));
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region ../../node_modules/lodash-es/_baseUnset.js
|
|
@@ -432,7 +432,7 @@ var en = 1, tn = 2, nn = 4, rn = vt(function(e, t) {
|
|
|
432
432
|
var n = {};
|
|
433
433
|
if (e == null) return n;
|
|
434
434
|
var r = !1;
|
|
435
|
-
t =
|
|
435
|
+
t = Re(t, function(t) {
|
|
436
436
|
return t = rt(t, e), r ||= t.length > 1, t;
|
|
437
437
|
}), bt(e, yt(e), n), r && (n = xt(n, en | tn | nn, $t));
|
|
438
438
|
for (var i = t.length; i--;) Qt(n, t[i]);
|
|
@@ -497,7 +497,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
497
497
|
static #e = this.styles = [h, sn];
|
|
498
498
|
static #t = this.dependencies = {
|
|
499
499
|
"cx-board-list-item": on,
|
|
500
|
-
"cx-divider":
|
|
500
|
+
"cx-divider": Le,
|
|
501
501
|
"cx-icon": D,
|
|
502
502
|
"cx-icon-button": w,
|
|
503
503
|
"cx-input": he,
|
|
@@ -604,7 +604,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
604
604
|
let r = e.item.dataset.id, i = n.selectedItemAsArray;
|
|
605
605
|
i.includes(r) || (i = [r]);
|
|
606
606
|
let a = i.length > 1, o = Number(e.newIndex) - 1 + this.start, s = this.resolveRealInsertIndex(o);
|
|
607
|
-
t =
|
|
607
|
+
t = Ae(t, s, i), this.handleUpdateEvent(t, e.type, a, s);
|
|
608
608
|
}
|
|
609
609
|
async handleEnd(e) {
|
|
610
610
|
e.from === e.to && this.handleUpdate(e), this.isDragging = !1, await this.updateComplete;
|
|
@@ -625,7 +625,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
625
625
|
let t = this.items.map((e) => e.id), n = e.item.dataset.id, r = this.selectedItemAsArray;
|
|
626
626
|
r.includes(n) || (r = [n]);
|
|
627
627
|
let i = r.length > 1;
|
|
628
|
-
t =
|
|
628
|
+
t = Me(t, r.map((e) => Ee(this.items, "id", e))), this.handleUpdateEvent(t, e.type, i, e.newIndex);
|
|
629
629
|
}
|
|
630
630
|
handleDefaultSelect(e) {
|
|
631
631
|
let t = e.dataset.id;
|
|
@@ -638,12 +638,12 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
638
638
|
}), this.lastSelectedItem = e;
|
|
639
639
|
}
|
|
640
640
|
handleShiftSelect(e) {
|
|
641
|
-
let t = this.filteredItems.filter((e) => this.isSelectableItem(e)), n =
|
|
641
|
+
let t = this.filteredItems.filter((e) => this.isSelectableItem(e)), n = Ee(t, "id", this.lastSelectedItem?.dataset.id), r = Ee(t, "id", e.dataset.id);
|
|
642
642
|
if (n === -1 || r === -1) {
|
|
643
643
|
this.handleDefaultSelect(e);
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
|
-
let i =
|
|
646
|
+
let i = Oe(this.selectedItemAsArray, e.dataset.id, t);
|
|
647
647
|
this._selectedItems = i.reduce((e, t) => (t && (e[t] = !0), e), {}), this._selectedItemOrder = i.reduce((e, t) => (t && (e[t] = Object.keys(e).length), e), {});
|
|
648
648
|
}
|
|
649
649
|
handleSelect(e) {
|
|
@@ -692,7 +692,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
692
692
|
}
|
|
693
693
|
handleUpdate(e) {
|
|
694
694
|
let t = this.items.map((e) => e.id), n = this.selectedItemAsArray, r = n.length > 1, i = this.resolveDropIndex(e.item);
|
|
695
|
-
i !== null && (t =
|
|
695
|
+
i !== null && (t = je(t, n.map((e) => Ee(this.items, "id", e)), i), this.handleUpdateEvent(t, "update", r));
|
|
696
696
|
}
|
|
697
697
|
handleMove(e) {
|
|
698
698
|
let { related: t, willInsertAfter: n } = e;
|
|
@@ -725,7 +725,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
725
725
|
indexAfterLastVisibleRealItem() {
|
|
726
726
|
for (let e = this.filteredItems.length - 1; e >= 0; e--) {
|
|
727
727
|
let t = this.filteredItems[e];
|
|
728
|
-
if (t.id !== t.group) return
|
|
728
|
+
if (t.id !== t.group) return Ee(this.items, "id", t.id) + 1;
|
|
729
729
|
}
|
|
730
730
|
return this.items.length;
|
|
731
731
|
}
|
|
@@ -733,12 +733,12 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
733
733
|
if (e >= this.filteredItems.length) return this.indexAfterLastVisibleRealItem();
|
|
734
734
|
for (let t = Math.max(e, 0); t < this.filteredItems.length; t++) {
|
|
735
735
|
let e = this.filteredItems[t];
|
|
736
|
-
if (e.id !== e.group) return
|
|
736
|
+
if (e.id !== e.group) return Ee(this.items, "id", e.id);
|
|
737
737
|
}
|
|
738
738
|
return this.indexAfterLastVisibleRealItem();
|
|
739
739
|
}
|
|
740
740
|
resolveDropIndex(e) {
|
|
741
|
-
let t = e.nextElementSibling, n = t instanceof HTMLElement && t.dataset.id ?
|
|
741
|
+
let t = e.nextElementSibling, n = t instanceof HTMLElement && t.dataset.id ? Ee(this.filteredItems, "id", t.dataset.id) : Math.min(this.end, this.filteredItems.length), r = Ee(this.filteredItems, "id", e.dataset.id);
|
|
742
742
|
return n === r || n === r + 1 ? null : this.resolveRealInsertIndex(n);
|
|
743
743
|
}
|
|
744
744
|
initSortable() {
|
|
@@ -1001,7 +1001,7 @@ var B = class extends d {
|
|
|
1001
1001
|
isValidChanges(e, t, n) {
|
|
1002
1002
|
if (this.addLimit || this.addLimit === 0) {
|
|
1003
1003
|
let r = [];
|
|
1004
|
-
if (n === "add" ? r = e : n === "remove" && (r = Jt(Ut(t, e), this.secondColumnItemIds)), Ut(r, this.initialSecondColumnItems).length > this.addLimit) return
|
|
1004
|
+
if (n === "add" ? r = e : n === "remove" && (r = Jt(Ut(t, e), this.secondColumnItemIds)), Ut(r, this.initialSecondColumnItems).length > this.addLimit) return De(this.localize.term("addLimitExceeded", this.addLimit), { notificationType: "warning" }), !1;
|
|
1005
1005
|
}
|
|
1006
1006
|
return !0;
|
|
1007
1007
|
}
|
|
@@ -1011,7 +1011,7 @@ var B = class extends d {
|
|
|
1011
1011
|
let e = this.firstColumnData, n = this.secondColumnData;
|
|
1012
1012
|
if (t === this.secondColumnData.id && (e = this.secondColumnData, n = this.firstColumnData), a === "add") {
|
|
1013
1013
|
let r = this.selectedItems[n.id], o = e.items.map((e) => e.id);
|
|
1014
|
-
if (o =
|
|
1014
|
+
if (o = Ae(o, wn(i ?? 0, s, e.items), r), t === this.firstColumnData.id) this.firstColumnData = {
|
|
1015
1015
|
...this.firstColumnData,
|
|
1016
1016
|
items: o.map((e) => this.itemMap[e])
|
|
1017
1017
|
};
|
|
@@ -1243,7 +1243,7 @@ var Dn = B, On = /* @__PURE__ */ function(e) {
|
|
|
1243
1243
|
static #e = this.styles = [h, kn];
|
|
1244
1244
|
static #t = this.dependencies = {
|
|
1245
1245
|
"cx-button": ne,
|
|
1246
|
-
"cx-dialog":
|
|
1246
|
+
"cx-dialog": Ie,
|
|
1247
1247
|
"cx-multi-select": Dn
|
|
1248
1248
|
};
|
|
1249
1249
|
get canApply() {
|
|
@@ -1292,7 +1292,7 @@ var Dn = B, On = /* @__PURE__ */ function(e) {
|
|
|
1292
1292
|
return r`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${E(!this.canApply, () => r`<p class="table-column-editor__note">${this.localize.term("editColumnsMinVisibleNote")}</p>`)}<div slot="footer" class="table-column-editor__footer"><cx-button @click=${this.handleCancel}>${this.localize.term("cancel")}</cx-button><cx-button variant="primary" ?disabled=${!this.canApply} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></div></cx-dialog>`;
|
|
1293
1293
|
}
|
|
1294
1294
|
};
|
|
1295
|
-
l([f("cx-dialog"), u("design:type",
|
|
1295
|
+
l([f("cx-dialog"), u("design:type", Ie === void 0 ? Object : Ie)], An.prototype, "dialogEl", void 0), l([s({
|
|
1296
1296
|
reflect: !0,
|
|
1297
1297
|
type: Boolean
|
|
1298
1298
|
}), u("design:type", Object)], An.prototype, "open", void 0), l([s({ attribute: !1 }), u("design:type", Array)], An.prototype, "entries", void 0), l([c(), u("design:type", Object)], An.prototype, "firstColumnData", void 0), l([c(), u("design:type", Object)], An.prototype, "secondColumnData", void 0), l([c(), u("design:type", Array)], An.prototype, "visibleFields", void 0), l([
|
|
@@ -1396,7 +1396,7 @@ var Ln = In, Rn = i`.table-row-actions__button::part(label),.table-row-actions__
|
|
|
1396
1396
|
return this;
|
|
1397
1397
|
}
|
|
1398
1398
|
handleActionChange() {
|
|
1399
|
-
this.groupedDropdownItems =
|
|
1399
|
+
this.groupedDropdownItems = ke(this.action?.options?.dropdownItems ?? [], "section"), this.sections = Object.keys(this.groupedDropdownItems);
|
|
1400
1400
|
}
|
|
1401
1401
|
handleActionClick(e) {
|
|
1402
1402
|
let t = e.currentTarget?.dataset?.action;
|
|
@@ -2755,7 +2755,7 @@ var Pr = class e extends W {
|
|
|
2755
2755
|
if (!this.table.destroyed && !this.blocked) {
|
|
2756
2756
|
e.preventDefault(), e.stopPropagation(), this.customSelection ? (t = this.customSelection, this.table.options.clipboardCopyFormatter && typeof this.table.options.clipboardCopyFormatter == "function" && (t = this.table.options.clipboardCopyFormatter("plain", t))) : (r = this.table.modules.export?.generateExportList(this.table.options.clipboardCopyConfig, this.table.options.clipboardCopyStyled, this.rowRange, "clipboard"), n = this.table.modules.export?.generateHTMLTable(r), t = n ? this.generatePlainContent(r) : "", this.table.options.clipboardCopyFormatter && typeof this.table.options.clipboardCopyFormatter == "function" && (t = this.table.options.clipboardCopyFormatter("plain", t), n = this.table.options.clipboardCopyFormatter("html", n ?? "")));
|
|
2757
2757
|
let i = Nr(e);
|
|
2758
|
-
i?.setData && (i.setData("text/plain", t), n && i.setData("text/html", n),
|
|
2758
|
+
i?.setData && (i.setData("text/plain", t), n && i.setData("text/html", n), De("Copied to clipboard", { notificationType: "success" })), this.dispatchExternal("clipboardCopied", t, n), this.reset();
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
handlePasteEvent(e) {
|
|
@@ -16208,12 +16208,12 @@ var ad, Z = class extends d {
|
|
|
16208
16208
|
static #t = this.styles = [
|
|
16209
16209
|
h,
|
|
16210
16210
|
Eu,
|
|
16211
|
-
|
|
16211
|
+
Fe
|
|
16212
16212
|
];
|
|
16213
16213
|
static #n = this.dependencies = {
|
|
16214
16214
|
"cx-button": ne,
|
|
16215
16215
|
"cx-checkbox": fe,
|
|
16216
|
-
"cx-divider":
|
|
16216
|
+
"cx-divider": Le,
|
|
16217
16217
|
"cx-faceted-filter": Nt,
|
|
16218
16218
|
"cx-format-number": Xe,
|
|
16219
16219
|
"cx-icon": D,
|
|
@@ -16502,7 +16502,7 @@ var ad, Z = class extends d {
|
|
|
16502
16502
|
this.tabulatorInstance.redraw();
|
|
16503
16503
|
return;
|
|
16504
16504
|
}
|
|
16505
|
-
this.osInstance =
|
|
16505
|
+
this.osInstance = Pe({
|
|
16506
16506
|
elements: { viewport: this.tabulatorHolder },
|
|
16507
16507
|
scrollbars: { slot: this.table },
|
|
16508
16508
|
target: this.tabulatorHolder
|
|
@@ -17506,7 +17506,7 @@ var od = Z, Q = /* @__PURE__ */ function(e) {
|
|
|
17506
17506
|
let t = e.getRow().getData(), n = document.createElement("div");
|
|
17507
17507
|
n.style.width = "100%", n.style.userSelect = "none";
|
|
17508
17508
|
let r = document.createElement("div");
|
|
17509
|
-
r.style.backgroundColor =
|
|
17509
|
+
r.style.backgroundColor = Ue(t.hex ?? "", We.LeadingHash), r.style.display = "inline-block", r.style.verticalAlign = "middle", r.style.marginInlineEnd = "var(--cx-spacing-small)", r.style.width = "var(--name-swatch-width, 64px)", r.style.height = "var(--name-swatch-height, 32px)", r.style.borderRadius = "var(--name-swatch-border-radius, 0)", n.appendChild(r);
|
|
17510
17510
|
let i = document.createElement("span");
|
|
17511
17511
|
return i.textContent = t.name ?? "", i.style.overflowWrap = "anywhere", i.style.whiteSpace = "var(--swatch-cell-white-space, nowrap)", n.appendChild(i), n;
|
|
17512
17512
|
},
|
|
@@ -17646,14 +17646,14 @@ var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17646
17646
|
"RGB",
|
|
17647
17647
|
"CMYK",
|
|
17648
17648
|
"PMS"
|
|
17649
|
-
], this.multiLanguage = !1, this.codeAlignment =
|
|
17649
|
+
], this.multiLanguage = !1, this.codeAlignment = He.SameLine, this.codeSeparator = Be.Comma, this.hexFormat = We.LeadingHash, this.showElements = [
|
|
17650
17650
|
ld.PaletteName,
|
|
17651
17651
|
ld.ColumnTitles,
|
|
17652
17652
|
ld.SeparatorLine
|
|
17653
|
-
], this.nameColumnWidthMode = sd.HugContents, this.nameColumnConstraints = !1, this.nameColumnWidth = "", this.codeColumnWidthMode = sd.HugContents, this.codeColumnConstraints = !1, this.codeColumnWidth = "", this.customColumns = [], this.gradientEffect = !1, this.breakpoints =
|
|
17653
|
+
], this.nameColumnWidthMode = sd.HugContents, this.nameColumnConstraints = !1, this.nameColumnWidth = "", this.codeColumnWidthMode = sd.HugContents, this.codeColumnConstraints = !1, this.codeColumnWidth = "", this.customColumns = [], this.gradientEffect = !1, this.breakpoints = Ye, this.deviceType = Ke.Desktop, this.currentCol = 0, this.visibleElements = new Set(this.showElements), this.hugWidths = {}, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
17654
17654
|
}
|
|
17655
17655
|
runFirstUpdated() {
|
|
17656
|
-
this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("colorSwatches")), this.setAttribute("aria-roledescription", this.localize.term("colorSwatches")), this.breakpoints =
|
|
17656
|
+
this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("colorSwatches")), this.setAttribute("aria-roledescription", this.localize.term("colorSwatches")), this.breakpoints = qe(this, this.breakpoints), this.handleResize();
|
|
17657
17657
|
}
|
|
17658
17658
|
connectedCallback() {
|
|
17659
17659
|
super.connectedCallback(), window.addEventListener("resize", this.handleWindowResize);
|
|
@@ -17672,7 +17672,7 @@ var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17672
17672
|
this.currentCol = Math.floor((e + n) / (165 + n));
|
|
17673
17673
|
break;
|
|
17674
17674
|
}
|
|
17675
|
-
case Q.Circles: this.deviceType =
|
|
17675
|
+
case Q.Circles: this.deviceType = Je(this.breakpoints);
|
|
17676
17676
|
}
|
|
17677
17677
|
}
|
|
17678
17678
|
handleKeyDown(e) {
|
|
@@ -17751,7 +17751,7 @@ var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17751
17751
|
return t;
|
|
17752
17752
|
}
|
|
17753
17753
|
formatCode(e, t) {
|
|
17754
|
-
return e === "hex" ?
|
|
17754
|
+
return e === "hex" ? Ue(t, this.hexFormat) : e === "rgb" || e === "cmyk" ? Ve(t, this.codeSeparator) : t;
|
|
17755
17755
|
}
|
|
17756
17756
|
applyColumnSettings(e, t) {
|
|
17757
17757
|
let n = { ...e }, r = t.widthMode === sd.HugContents;
|
|
@@ -17835,12 +17835,12 @@ var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17835
17835
|
this.isContainerFocused || (this.canFocusContainer = !this.isFocused);
|
|
17836
17836
|
}
|
|
17837
17837
|
get currentDirection() {
|
|
17838
|
-
return this.variant === Q.Circles && this.deviceType !==
|
|
17838
|
+
return this.variant === Q.Circles && this.deviceType !== Ke.Desktop ? "vertical" : "horizontal";
|
|
17839
17839
|
}
|
|
17840
17840
|
get swatchVariant() {
|
|
17841
17841
|
switch (this.variant) {
|
|
17842
|
-
case Q.Circles: return this.deviceType ===
|
|
17843
|
-
case Q.Grid: return
|
|
17842
|
+
case Q.Circles: return this.deviceType === Ke.Tablet ? Ge.Oval : Ge.Circle;
|
|
17843
|
+
case Q.Grid: return Ge.GridItem;
|
|
17844
17844
|
default: return;
|
|
17845
17845
|
}
|
|
17846
17846
|
}
|
|
@@ -17870,7 +17870,7 @@ var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17870
17870
|
[`color-swatch-group__swatches--circles--${e}`]: this.variant === Q.Circles
|
|
17871
17871
|
})} style=${k({ gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : "repeat(auto-fit, minmax(165px, 1fr))" })}>${pe(this.data, (e) => e.name, (n, i) => r`<cx-color-swatch part="color-swatch-item" role="listitem" aria-label=${this.localize.term("colorOfTotal", i + 1, this.data.length)} hex=${n.hex} rgb=${n.rgb} cmyk=${n.cmyk} pms=${n.pms} name=${this.multiLanguage && t ? n[`name-${t.toLowerCase()}`] ?? n.name : n.name} variant=${this.swatchVariant} ?can-copy=${this.canCopy} ?can-focus-code-only=${this.isFocused} gradient-stops=${this.gradientStopsFor(i)} .showCodes=${this.showCodes} code-alignment=${this.codeAlignment} code-separator=${this.codeSeparator} hex-format=${this.hexFormat} no-auto-convert class=${C({
|
|
17872
17872
|
[`color-swatch-group__swatches--circles--${e}__item`]: this.variant === Q.Circles,
|
|
17873
|
-
"color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === Q.Circles && this.deviceType ===
|
|
17873
|
+
"color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === Q.Circles && this.deviceType === Ke.Mobile
|
|
17874
17874
|
})} @keydown=${this.handleKeyDown} @focusout=${this.handleFocusOut}></cx-color-swatch>`)}</cx-space>`)}
|
|
17875
17875
|
`;
|
|
17876
17876
|
}
|
|
@@ -17904,15 +17904,15 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17904
17904
|
attribute: "code-alignment",
|
|
17905
17905
|
reflect: !0,
|
|
17906
17906
|
type: String
|
|
17907
|
-
}), u("design:type",
|
|
17907
|
+
}), u("design:type", He === void 0 ? Object : He)], $.prototype, "codeAlignment", void 0), l([s({
|
|
17908
17908
|
attribute: "code-separator",
|
|
17909
17909
|
reflect: !0,
|
|
17910
17910
|
type: String
|
|
17911
|
-
}), u("design:type",
|
|
17911
|
+
}), u("design:type", Be === void 0 ? Object : Be)], $.prototype, "codeSeparator", void 0), l([s({
|
|
17912
17912
|
attribute: "hex-format",
|
|
17913
17913
|
reflect: !0,
|
|
17914
17914
|
type: String
|
|
17915
|
-
}), u("design:type",
|
|
17915
|
+
}), u("design:type", We === void 0 ? Object : We)], $.prototype, "hexFormat", void 0), l([s({
|
|
17916
17916
|
attribute: "show-elements",
|
|
17917
17917
|
converter: {
|
|
17918
17918
|
fromAttribute: (e) => (e?.split(" ") ?? []).filter((e) => fd.has(e)),
|
|
@@ -17969,7 +17969,7 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17969
17969
|
attribute: "gradient-effect",
|
|
17970
17970
|
reflect: !0,
|
|
17971
17971
|
type: Boolean
|
|
17972
|
-
}), u("design:type", Object)], $.prototype, "gradientEffect", void 0), l([c(), u("design:type", Array)], $.prototype, "breakpoints", void 0), l([c(), u("design:type",
|
|
17972
|
+
}), u("design:type", Object)], $.prototype, "gradientEffect", void 0), l([c(), u("design:type", Array)], $.prototype, "breakpoints", void 0), l([c(), u("design:type", Ke === void 0 ? Object : Ke)], $.prototype, "deviceType", void 0), l([c(), u("design:type", Object)], $.prototype, "currentCol", void 0), l([c(), u("design:type", Object)], $.prototype, "visibleElements", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "hugWidths", void 0), l([c(), u("design:type", Object)], $.prototype, "isFocused", void 0), l([c(), u("design:type", Object)], $.prototype, "canFocusContainer", void 0), l([c(), u("design:type", Object)], $.prototype, "isContainerFocused", void 0), l([
|
|
17973
17973
|
M(100),
|
|
17974
17974
|
u("design:type", Function),
|
|
17975
17975
|
u("design:paramtypes", []),
|
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.D58Q0tW6.js";
|
|
15
15
|
import { t as ee } from "./tooltip.O-5jGui7.js";
|
|
16
16
|
import { t as te } from "./line-clamp.biFX066w.js";
|
|
17
|
-
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.
|
|
17
|
+
import { S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, s as S, t as C, u as w, v as T, x as E, y as D } from "./block-width.DDBxasyy.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -35,11 +35,11 @@ import { t as z } from "./tab-group.D5yMsNTe.js";
|
|
|
35
35
|
import { t as Oe } from "./map.ByDuLduF.js";
|
|
36
36
|
import { t as ke } from "./tab-panel.BxeoKuSv.js";
|
|
37
37
|
import { t as Ae } from "./visually-hidden.Bv3SInZp.js";
|
|
38
|
+
import { L as je } from "./src.cBRbsOdC.js";
|
|
38
39
|
import { o as B, t as V } from "./dialog.Cagz5vxR.js";
|
|
39
|
-
import { t as
|
|
40
|
-
import { n as
|
|
41
|
-
import { m as H, s as
|
|
42
|
-
import { isFormInteracted as Pe } from "../utils.js";
|
|
40
|
+
import { t as Me } from "./divider.CqSNZCU8.js";
|
|
41
|
+
import { n as Ne } from "./toString.r2ImdBrm.js";
|
|
42
|
+
import { m as H, s as Pe } from "./responsive.L9Csz2w2.js";
|
|
43
43
|
import { t as Fe } from "./keyed.zYwdaCfO.js";
|
|
44
44
|
import { t as Ie } from "./grid.CK4PRwur.js";
|
|
45
45
|
import { t as Le } from "./grid-item.CSieaU5T.js";
|
|
@@ -59,11 +59,11 @@ import { t as Je } from "./padding-input-group.BURYDFGi.js";
|
|
|
59
59
|
import { t as Ye } from "./position-picker.Cjk5OdB5.js";
|
|
60
60
|
import { t as Xe } from "./shadow-input-group.BKu3bgVT.js";
|
|
61
61
|
import { t as Ze } from "./size-input-group.DzSQz6mI.js";
|
|
62
|
-
import { T as K } from "./asset-link-format.
|
|
62
|
+
import { T as K } from "./asset-link-format.BCaHv6rQ.js";
|
|
63
63
|
import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
|
|
64
64
|
import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
|
|
65
65
|
import { i as tt } from "./_baseClone.CnI5Vpqn.js";
|
|
66
|
-
import { M as nt, l as J, s as rt, t as it } from "./configs-controller.
|
|
66
|
+
import { M as nt, l as J, s as rt, t as it } from "./configs-controller.C34CcFSA.js";
|
|
67
67
|
import { t as at } from "./isEmpty.D3QQduJ5.js";
|
|
68
68
|
import { i as ot } from "./cloneDeep.C6x5LNv3.js";
|
|
69
69
|
//#region ../../node_modules/lodash-es/difference.js
|
|
@@ -87,7 +87,7 @@ function lt(e) {
|
|
|
87
87
|
//#region ../../node_modules/lodash-es/pickBy.js
|
|
88
88
|
function ut(e, t) {
|
|
89
89
|
if (e == null) return {};
|
|
90
|
-
var n =
|
|
90
|
+
var n = Ne(tt(e), function(e) {
|
|
91
91
|
return [e];
|
|
92
92
|
});
|
|
93
93
|
return t = W(t), ot(e, n, function(e, n) {
|
|
@@ -344,7 +344,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
344
344
|
case "image-picker":
|
|
345
345
|
s = async (t) => {
|
|
346
346
|
if (typeof t == "object" && t) {
|
|
347
|
-
let { id: n, src: i } = t, a = e.pickerConfigs?.recordIdKey ?? "record-id", o = e.pickerConfigs?.aspectRatioKey, s = n ? await this.controlRenderer.resolveAssetFormat(n, e.pickerConfigs?.defaultFormat ?? "") : {
|
|
347
|
+
let { id: n, src: i } = t, a = e.pickerConfigs?.recordIdKey ?? "record-id", o = e.pickerConfigs?.aspectRatioKey, s = n ? await this.controlRenderer.resolveAssetFormat(n, e.pickerConfigs?.defaultFormat ?? "", !0) : {
|
|
348
348
|
aspectRatio: 0,
|
|
349
349
|
src: ""
|
|
350
350
|
};
|
|
@@ -476,7 +476,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
476
476
|
"cx-corner-position-input-group": Ge,
|
|
477
477
|
"cx-dam-custom-toolbar-buttons-editor": he,
|
|
478
478
|
"cx-dialog": V,
|
|
479
|
-
"cx-divider":
|
|
479
|
+
"cx-divider": Me,
|
|
480
480
|
"cx-download-format-picker": E,
|
|
481
481
|
"cx-dropdown": _e,
|
|
482
482
|
"cx-dynamic-select": Ke,
|
|
@@ -548,7 +548,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
548
548
|
e?.target === this.dialog && e.detail.source !== "overlay" && (this.handleClose(), this.isAfterShow = !1, this.disableCloseConfigDialog = !1);
|
|
549
549
|
}
|
|
550
550
|
handleRequestClose(e) {
|
|
551
|
-
e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() :
|
|
551
|
+
e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() : je(this.form) ? (e.preventDefault(), this.confirmPopover.show()) : this.hide());
|
|
552
552
|
}
|
|
553
553
|
handleNameInputChange(e) {
|
|
554
554
|
this.emit("cx-content-builder-form-field-change", { detail: {
|
|
@@ -757,7 +757,7 @@ var Q = Z, yt = n`:host{display:block}.confirm-popover__footer{--color:var(--cx-
|
|
|
757
757
|
if (t && n?.tagName === "CX-COLUMN" && n.containerEl && r) return `${Number.parseInt(String(C(t, n, r)))}px`;
|
|
758
758
|
}
|
|
759
759
|
getContainerFontVariants() {
|
|
760
|
-
for (let e = this.component?.parent(); e; e = e.parent()) if (e.get("type") ===
|
|
760
|
+
for (let e = this.component?.parent(); e; e = e.parent()) if (e.get("type") === Pe.FontKitAdvanced) {
|
|
761
761
|
let t = e.view?.el;
|
|
762
762
|
return ht(t?.typefacesArray ?? []);
|
|
763
763
|
}
|