@orangelogic/design-system 2.96.0 → 2.97.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.B3vySOI-.js +431 -0
- package/library/chunks/{asset.types.6DCzTOQm.js → asset.types.KXRZEtBr.js} +127 -126
- package/library/chunks/{button.BZjbVq8t.js → button.CAa1kvwe.js} +2 -2
- package/library/chunks/{color-swatch-group.CKHEL4hJ.js → color-swatch-group.ChcPlkPU.js} +5 -5
- package/library/chunks/{color-swatch.CbL_TpRZ.js → color-swatch.DJ1kUnBQ.js} +1 -1
- package/library/chunks/{confirm-popover.bBo9aPlX.js → confirm-popover.D4x0nO5g.js} +3 -3
- package/library/chunks/content-builder.CcgZciZN.js +58 -0
- package/library/chunks/{cropper.uKGcvnPk.js → cropper.Bib8Abm3.js} +4937 -4932
- package/library/chunks/{dialog.DRW8iwh-.js → dialog.BLaxLMSc.js} +2 -2
- package/library/chunks/{dom.DURaLV1d.js → dom.0RpWet6y.js} +1 -1
- package/library/chunks/{dot-pagination.CvUr6R4S.js → dot-pagination.-nDdQxJN.js} +1 -1
- package/library/chunks/{file-on-demand.KQlA1JFF.js → file-on-demand.AzwoUvwB.js} +10 -10
- package/library/chunks/{folder-select.DxBOSyvo.js → folder-select.XpkOFzAW.js} +5 -5
- package/library/chunks/{form.nRqYei4e.js → form.Ch1cwYzO.js} +1 -1
- package/library/chunks/{header.ClxEkQPZ.js → header.BZxyeLPK.js} +1 -1
- package/library/chunks/{i18n.W6czbRms.js → i18n.BABe9hN4.js} +6 -0
- package/library/chunks/{icon-button.MqA-pNw8.js → icon-button.C2s3pHG4.js} +1 -1
- package/library/chunks/{iframe.PcSPtm_O.js → iframe.DPccxsnE.js} +1 -1
- package/library/chunks/{image.Dtdklw5q.js → image.9qwbjGNb.js} +1 -1
- package/library/chunks/{image.C-Covc0H.js → image.Cc4V85ID.js} +354 -311
- package/library/chunks/{list-editor.De7nc_Wd.js → list-editor.pVYc_70c.js} +183 -153
- package/library/chunks/{number.CCF6IxpN.js → number.B4PQLJIg.js} +32 -32
- package/library/chunks/{option.Cx54zrJq.js → option.DGXQzdtb.js} +1 -1
- package/library/chunks/{pagination.CG5odPWi.js → pagination.DZqKSA86.js} +4 -4
- package/library/chunks/{responsive.D9TUCX5p.js → responsive.Oz9HWjyQ.js} +1 -1
- package/library/chunks/{string.DfV21HEI.js → string.DUgD4c9f.js} +41 -34
- package/library/chunks/{tab-group.BLZ-qEpp.js → tab-group.BhCf9Smq.js} +4 -4
- package/library/chunks/{table.Cr0s-nqe.js → table.V5PGGTfO.js} +11 -10
- package/library/chunks/{time.BNrE47-8.js → time.BiQnh9wt.js} +1 -1
- package/library/chunks/toast.D3AW3RWv.js +94 -0
- package/library/chunks/transformation.Cqz3hPaQ.js +144 -0
- package/library/chunks/{tree.CKi63r95.js → tree.DZa7k-4E.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +767 -862
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +6 -6
- 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 +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +4 -4
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +1 -1
- 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 +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 +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 +4 -7
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- 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 +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- 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/radio-group.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 +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.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/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- 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 +31066 -29848
- package/library/components/video.js +554 -545
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/input.d.ts +1 -2
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-asset-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-timeline-data-resolved.d.ts +10 -0
- package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +12 -1
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +1 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +56 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +7 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +5 -1
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/timeline/timeline.d.ts +18 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +12 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +102 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +3 -1
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +26 -1
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +2 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +4 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +19 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/asset-format-picker.d.ts +11 -0
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +37 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +6 -0
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/react-web-component.d.ts +236 -8
- package/library/utils.js +517 -192
- package/package.json +1 -1
- package/library/chunks/asset.Duzr3O3z.js +0 -370
- package/library/chunks/index.BgXEXk4m.js +0 -398
- package/library/chunks/toast.Bc4wpYJ1.js +0 -150
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { C as
|
|
1
|
+
import { C as k } from "./button.CAa1kvwe.js";
|
|
2
|
+
import { C as G, D as q } from "./dialog.BLaxLMSc.js";
|
|
3
3
|
import j from "../components/grid.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { C as F } from "./option.
|
|
4
|
+
import R from "../components/grid-item.js";
|
|
5
|
+
import _ from "../components/input.js";
|
|
6
|
+
import P from "../components/line-clamp.js";
|
|
7
|
+
import { C as F } from "./option.DGXQzdtb.js";
|
|
8
8
|
import B from "../components/radio.js";
|
|
9
9
|
import K from "../components/radio-group.js";
|
|
10
10
|
import U from "../components/select.js";
|
|
11
11
|
import E from "../components/space.js";
|
|
12
|
-
import { C as H, H as V } from "./table.
|
|
13
|
-
import { C as
|
|
14
|
-
import { n as o, C as
|
|
12
|
+
import { C as H, H as V } from "./table.V5PGGTfO.js";
|
|
13
|
+
import { C as T } from "./typography.DJC_UXgs.js";
|
|
14
|
+
import { n as o, C as L } from "./lib-cortex-element.CVMmyPMC.js";
|
|
15
15
|
import W from "../components/dynamic-select.js";
|
|
16
16
|
import { c as D } from "./component.styles.CRO4Odto.js";
|
|
17
17
|
import { c as M } from "./custom-element.L4WJXn1j.js";
|
|
18
18
|
import { d as J } from "./debounce.DaHuiSGU.js";
|
|
19
|
-
import { L as z } from "./i18n.
|
|
20
|
-
import { w as
|
|
19
|
+
import { L as z } from "./i18n.BABe9hN4.js";
|
|
20
|
+
import { w as v } from "./watch.BCJD77bD.js";
|
|
21
21
|
import { a as X } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
22
22
|
import { i as O, x as l } from "./lit-element.jLBm65_O.js";
|
|
23
|
-
import { r as
|
|
23
|
+
import { r as b } from "./state.CSDxrqLd.js";
|
|
24
24
|
import { e as y } from "./query.BBf1UFkC.js";
|
|
25
25
|
import { r as Y } from "./choose.BTbF6BAn.js";
|
|
26
26
|
import { e as Z } from "./class-map.BiVq-cVR.js";
|
|
27
27
|
import { o as Q } from "./map.D8heArFD.js";
|
|
28
|
-
import { c as
|
|
28
|
+
import { c as x } from "./repeat.DbF2p5ae.js";
|
|
29
29
|
import { n as N } from "./when.Dr1es41R.js";
|
|
30
30
|
import { t as ee } from "./toString.CL_lYXbK.js";
|
|
31
|
-
import { C as
|
|
32
|
-
import { C as
|
|
33
|
-
import { a as ie, D as
|
|
31
|
+
import { C as te } from "./icon-button.C2s3pHG4.js";
|
|
32
|
+
import { C as ae } from "./image.Cc4V85ID.js";
|
|
33
|
+
import { a as ie, D as I } from "./asset.B3vySOI-.js";
|
|
34
34
|
import { a as ne } from "./index.Cpamj0jB.js";
|
|
35
|
-
import { A as
|
|
36
|
-
import {
|
|
37
|
-
|
|
35
|
+
import { A as g } from "./content-builder.CcgZciZN.js";
|
|
36
|
+
import { b as se, t as w } from "./string.DUgD4c9f.js";
|
|
37
|
+
import { t as re } from "./toast.D3AW3RWv.js";
|
|
38
|
+
var A, $;
|
|
38
39
|
function oe() {
|
|
39
|
-
return
|
|
40
|
+
return $ || ($ = 1, A = {
|
|
40
41
|
aa: {
|
|
41
42
|
name: "Afar",
|
|
42
43
|
nativeName: "Afaraf"
|
|
@@ -771,19 +772,19 @@ function oe() {
|
|
|
771
772
|
}
|
|
772
773
|
}), A;
|
|
773
774
|
}
|
|
774
|
-
var C,
|
|
775
|
+
var C, S;
|
|
775
776
|
function le() {
|
|
776
|
-
if (
|
|
777
|
-
|
|
778
|
-
const e = oe(),
|
|
777
|
+
if (S) return C;
|
|
778
|
+
S = 1;
|
|
779
|
+
const e = oe(), t = {}, a = {}, i = [], s = [], p = [];
|
|
779
780
|
for (const c in e) {
|
|
780
781
|
const { name: m, nativeName: h } = e[c];
|
|
781
|
-
|
|
782
|
+
t[c] = a[m.toLowerCase()] = a[h.toLowerCase()] = { code: c, name: m, nativeName: h }, i.push(c), s.push(m), p.push(h);
|
|
782
783
|
}
|
|
783
784
|
return C = class f {
|
|
784
785
|
static getLanguages(m = []) {
|
|
785
786
|
return m.map(
|
|
786
|
-
(h) => f.validate(h) ? Object.assign({},
|
|
787
|
+
(h) => f.validate(h) ? Object.assign({}, t[h]) : { code: h, name: "", nativeName: "" }
|
|
787
788
|
);
|
|
788
789
|
}
|
|
789
790
|
static getName(m) {
|
|
@@ -796,10 +797,10 @@ function le() {
|
|
|
796
797
|
return f.validate(m) ? e[m].nativeName : "";
|
|
797
798
|
}
|
|
798
799
|
static getAllNativeNames() {
|
|
799
|
-
return
|
|
800
|
+
return p.slice();
|
|
800
801
|
}
|
|
801
802
|
static getCode(m) {
|
|
802
|
-
return m = m.toLowerCase(),
|
|
803
|
+
return m = m.toLowerCase(), a.hasOwnProperty(m) ? a[m].code : "";
|
|
803
804
|
}
|
|
804
805
|
static getAllCodes() {
|
|
805
806
|
return i.slice();
|
|
@@ -813,18 +814,18 @@ var me = le();
|
|
|
813
814
|
const ce = /* @__PURE__ */ X(me);
|
|
814
815
|
var de = 0;
|
|
815
816
|
function pe(e) {
|
|
816
|
-
var
|
|
817
|
-
return ee(e) +
|
|
817
|
+
var t = ++de;
|
|
818
|
+
return ee(e) + t;
|
|
818
819
|
}
|
|
819
|
-
const ue = O`:host{isolation:isolate}.asset-picker__input[data-user-invalid]~.asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color)}.asset-picker__input[data-user-invalid]:focus-within~.asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.asset-picker__button-container{position:relative}.asset-picker__button{z-index:1;position:relative}.asset-picker__image{--height:150px;--width:200px
|
|
820
|
-
var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, u = (e,
|
|
821
|
-
for (var s = i > 1 ? void 0 : i ? ve(
|
|
822
|
-
(c = e[
|
|
823
|
-
return i && s && he(
|
|
820
|
+
const ue = O`:host{isolation:isolate}.asset-picker__input[data-user-invalid]~.asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color)}.asset-picker__input[data-user-invalid]:focus-within~.asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.asset-picker__button-container{position:relative}.asset-picker__button{z-index:1;position:relative}.asset-picker__image{--height:150px;--width:200px;--border-radius:var(--cx-border-radius-medium)}.asset-picker__input{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}`;
|
|
821
|
+
var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, u = (e, t, a, i) => {
|
|
822
|
+
for (var s = i > 1 ? void 0 : i ? ve(t, a) : t, p = e.length - 1, c; p >= 0; p--)
|
|
823
|
+
(c = e[p]) && (s = (i ? c(t, a, s) : c(s)) || s);
|
|
824
|
+
return i && s && he(t, a, s), s;
|
|
824
825
|
};
|
|
825
|
-
let
|
|
826
|
+
let d = class extends L {
|
|
826
827
|
constructor() {
|
|
827
|
-
super(...arguments), this.localize = new z(this), this.value = "", this.name = "", this.type = [
|
|
828
|
+
super(...arguments), this.localize = new z(this), this.value = "", this.name = "", this.type = [g.Image], this.multiple = !1, this.accepts = [], this.required = !1, this.disabled = !1, this.onRequestAsset = void 0, this.recordId = "", this.previewSrc = "", this.apiGetAssets = ie;
|
|
828
829
|
}
|
|
829
830
|
async handleRequestAssetClick() {
|
|
830
831
|
if (this.onRequestAsset)
|
|
@@ -840,28 +841,28 @@ let p = class extends T {
|
|
|
840
841
|
this.accepts
|
|
841
842
|
);
|
|
842
843
|
if (this.accepts.length > 0 && Object.values(e).some(
|
|
843
|
-
(
|
|
844
|
+
(a) => !this.accepts.includes(se(a.src) ?? "")
|
|
844
845
|
))
|
|
845
|
-
|
|
846
|
+
re(this.localize.term("nonAcceptedExtension", this.accepts), {
|
|
846
847
|
notificationType: "warning"
|
|
847
848
|
});
|
|
848
849
|
else if (this.multiple) {
|
|
849
|
-
const
|
|
850
|
+
const a = Object.values(e);
|
|
850
851
|
this.emit("cx-content-builder-asset-select", {
|
|
851
|
-
detail:
|
|
852
|
+
detail: a
|
|
852
853
|
});
|
|
853
854
|
} else {
|
|
854
|
-
const { id:
|
|
855
|
+
const { id: a, name: i, src: s, type: p } = e;
|
|
855
856
|
let c = s;
|
|
856
|
-
|
|
857
|
-
extraFields: [
|
|
858
|
-
recordIds: [
|
|
859
|
-
})).items[0]?.[
|
|
857
|
+
p === g.Audio && (c = (await this.apiGetAssets({
|
|
858
|
+
extraFields: [I],
|
|
859
|
+
recordIds: [a]
|
|
860
|
+
})).items[0]?.[I]), c && this.emit("cx-content-builder-asset-select", {
|
|
860
861
|
detail: {
|
|
861
|
-
id:
|
|
862
|
+
id: a,
|
|
862
863
|
name: i,
|
|
863
864
|
src: c,
|
|
864
|
-
type:
|
|
865
|
+
type: p
|
|
865
866
|
}
|
|
866
867
|
});
|
|
867
868
|
}
|
|
@@ -879,6 +880,21 @@ let p = class extends T {
|
|
|
879
880
|
!this.required || this.value ? "" : this.localize.term("pleaseSelectAnAsset")
|
|
880
881
|
);
|
|
881
882
|
}
|
|
883
|
+
async handleRecordIdChange() {
|
|
884
|
+
if (!this.recordId) {
|
|
885
|
+
this.previewSrc = "";
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
try {
|
|
889
|
+
const t = (await this.apiGetAssets({
|
|
890
|
+
getPermanentAssetsPaths: !0,
|
|
891
|
+
recordIds: [this.recordId]
|
|
892
|
+
})).items[0];
|
|
893
|
+
this.previewSrc = t?.path_TR1 || t?.originalUrl || "";
|
|
894
|
+
} catch {
|
|
895
|
+
this.previewSrc = "";
|
|
896
|
+
}
|
|
897
|
+
}
|
|
882
898
|
handleDeleteClick() {
|
|
883
899
|
this.emit("cx-content-builder-asset-delete");
|
|
884
900
|
}
|
|
@@ -887,11 +903,11 @@ let p = class extends T {
|
|
|
887
903
|
return this.type.includes(e);
|
|
888
904
|
}
|
|
889
905
|
renderAssetPreview() {
|
|
890
|
-
if (this.value && this.acceptsType(
|
|
891
|
-
return l`<cx-image part="image" class="asset-picker__image" src=${this.value} alt=${this.name} width="200px" object-fit=${ne.Cover}></cx-image>`;
|
|
892
|
-
if (this.name && this.acceptsType(
|
|
906
|
+
if ((this.previewSrc || this.value) && this.acceptsType(g.Image))
|
|
907
|
+
return l`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.name} width="200px" object-fit=${ne.Cover}></cx-image>`;
|
|
908
|
+
if (this.name && this.acceptsType(g.Video))
|
|
893
909
|
return l`<cx-typography variant="body-2">${w(this.name, 30, 11, 11)}</cx-typography>`;
|
|
894
|
-
if (this.name && (this.acceptsType(
|
|
910
|
+
if (this.name && (this.acceptsType(g.Other) || this.acceptsType(g.All))) {
|
|
895
911
|
const e = this.name.split(",");
|
|
896
912
|
return l`<cx-typography variant="body-2">${w(e[0], 30, 11, 11)}
|
|
897
913
|
${N(
|
|
@@ -902,7 +918,7 @@ let p = class extends T {
|
|
|
902
918
|
return null;
|
|
903
919
|
}
|
|
904
920
|
render() {
|
|
905
|
-
return l`<cx-space part="base" class="asset-picker" spacing="2x-small" direction="horizontal" align-items=${this.acceptsType(
|
|
921
|
+
return l`<cx-space part="base" class="asset-picker" spacing="2x-small" direction="horizontal" align-items=${this.acceptsType(g.Image) ? "flex-start" : "center"}>${this.renderAssetPreview()}
|
|
906
922
|
${N(
|
|
907
923
|
!this.disabled,
|
|
908
924
|
() => l`<div class="asset-picker__button-container"><cx-input class="asset-picker__input" aria-label=${this.localize.term("choose")} name=${this.name} value=${this.value} ?required=${this.required} .form=${this.closest("form")}></cx-input><cx-button part="button" class="asset-picker__button" @click=${this.handleRequestAssetClick}>${this.localize.term("choose")}</cx-button></div>${N(
|
|
@@ -913,73 +929,82 @@ let p = class extends T {
|
|
|
913
929
|
)}</cx-space>`;
|
|
914
930
|
}
|
|
915
931
|
};
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
"cx-button":
|
|
919
|
-
"cx-icon-button":
|
|
920
|
-
"cx-image":
|
|
921
|
-
"cx-input":
|
|
932
|
+
d.styles = [D, ue];
|
|
933
|
+
d.dependencies = {
|
|
934
|
+
"cx-button": k,
|
|
935
|
+
"cx-icon-button": te,
|
|
936
|
+
"cx-image": ae,
|
|
937
|
+
"cx-input": _,
|
|
922
938
|
"cx-space": E,
|
|
923
|
-
"cx-typography":
|
|
939
|
+
"cx-typography": T
|
|
924
940
|
};
|
|
925
941
|
u([
|
|
926
942
|
y(".asset-picker__button")
|
|
927
|
-
],
|
|
943
|
+
], d.prototype, "buttonEl", 2);
|
|
928
944
|
u([
|
|
929
945
|
y(".asset-picker__input")
|
|
930
|
-
],
|
|
946
|
+
], d.prototype, "inputEl", 2);
|
|
931
947
|
u([
|
|
932
948
|
o({ reflect: !0, type: String })
|
|
933
|
-
],
|
|
949
|
+
], d.prototype, "value", 2);
|
|
934
950
|
u([
|
|
935
951
|
o({ reflect: !0, type: String })
|
|
936
|
-
],
|
|
952
|
+
], d.prototype, "name", 2);
|
|
937
953
|
u([
|
|
938
954
|
o({
|
|
939
955
|
converter: {
|
|
940
|
-
fromAttribute: (e) => (e ?? "").split(" ").filter((
|
|
956
|
+
fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
|
|
941
957
|
toAttribute: (e) => e.join(" ")
|
|
942
958
|
},
|
|
943
959
|
reflect: !0
|
|
944
960
|
})
|
|
945
|
-
],
|
|
961
|
+
], d.prototype, "type", 2);
|
|
946
962
|
u([
|
|
947
963
|
o({ reflect: !0, type: Boolean })
|
|
948
|
-
],
|
|
964
|
+
], d.prototype, "multiple", 2);
|
|
949
965
|
u([
|
|
950
966
|
o({
|
|
951
967
|
converter: {
|
|
952
|
-
fromAttribute: (e) => (e ?? "").split(" ").filter((
|
|
968
|
+
fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
|
|
953
969
|
toAttribute: (e) => e.join(" ")
|
|
954
970
|
},
|
|
955
971
|
reflect: !0
|
|
956
972
|
})
|
|
957
|
-
],
|
|
973
|
+
], d.prototype, "accepts", 2);
|
|
958
974
|
u([
|
|
959
975
|
o({ reflect: !0, type: Boolean })
|
|
960
|
-
],
|
|
976
|
+
], d.prototype, "required", 2);
|
|
961
977
|
u([
|
|
962
978
|
o({ attribute: "disabled", reflect: !0, type: Boolean })
|
|
963
|
-
],
|
|
979
|
+
], d.prototype, "disabled", 2);
|
|
964
980
|
u([
|
|
965
981
|
o({ attribute: "on-request-asset", type: Function })
|
|
966
|
-
],
|
|
982
|
+
], d.prototype, "onRequestAsset", 2);
|
|
983
|
+
u([
|
|
984
|
+
o({ attribute: "record-id", reflect: !0, type: String })
|
|
985
|
+
], d.prototype, "recordId", 2);
|
|
967
986
|
u([
|
|
968
|
-
|
|
969
|
-
],
|
|
970
|
-
|
|
987
|
+
b()
|
|
988
|
+
], d.prototype, "previewSrc", 2);
|
|
989
|
+
u([
|
|
990
|
+
v("value")
|
|
991
|
+
], d.prototype, "handleValueChange", 1);
|
|
992
|
+
u([
|
|
993
|
+
v("recordId")
|
|
994
|
+
], d.prototype, "handleRecordIdChange", 1);
|
|
995
|
+
d = u([
|
|
971
996
|
M("cx-asset-picker")
|
|
972
|
-
],
|
|
997
|
+
], d);
|
|
973
998
|
const ge = O`:host{--overridden-min-height:var(--min-height,160px);--overridden-max-height:var(--max-height,260px);width:100%;display:block}.list-editor{width:100%}.list-editor__table{--cell-border-color:transparent;--cell-bottom-border-color:transparent;--header-font-size:var(--cx-font-size-small);--row-header-border-color:transparent;--cell-horizontal-padding:var(--cx-spacing-2x-small);--table-min-height:var(--overridden-min-height);--table-max-height:var(--overridden-max-height)}.list-editor__table--no-header{--cell-hover-background-color:transparent}.list-editor__item::part(expand-button){display:none}.list-editor__item__text{--line-height:1}.list-editor__item__text__description{color:var(--cx-color-neutral-600)}.list-editor__dialog{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:540px}.list-editor__tab-group{--padding:0;--tab-group-nav-padding:0 var(--cx-spacing-large)}`;
|
|
974
|
-
var Ne = Object.defineProperty, be = Object.getOwnPropertyDescriptor, r = (e,
|
|
975
|
-
for (var s = i > 1 ? void 0 : i ? be(
|
|
976
|
-
(c = e[
|
|
977
|
-
return i && s && Ne(
|
|
999
|
+
var Ne = Object.defineProperty, be = Object.getOwnPropertyDescriptor, r = (e, t, a, i) => {
|
|
1000
|
+
for (var s = i > 1 ? void 0 : i ? be(t, a) : t, p = e.length - 1, c; p >= 0; p--)
|
|
1001
|
+
(c = e[p]) && (s = (i ? c(t, a, s) : c(s)) || s);
|
|
1002
|
+
return i && s && Ne(t, a, s), s;
|
|
978
1003
|
};
|
|
979
1004
|
const xe = {
|
|
980
1005
|
resizable: !1
|
|
981
1006
|
};
|
|
982
|
-
let n = class extends
|
|
1007
|
+
let n = class extends L {
|
|
983
1008
|
constructor() {
|
|
984
1009
|
super(...arguments), this.localize = new z(this), this.data = [], this.canAdd = !1, this.addDialogLabel = "", this.editDialogLabel = "", this.displayField = "", this.descriptionField = "", this.addItemText = "", this.sampleItem = {}, this.useEvents = !1, this.sortable = !1, this.loadingEvent = "", this.loadingItemIndex = void 0, this.columns = [], this.noHeader = !1, this.rowHeight = 40, this.defaultLanguage = "", this.supportedLanguages = ["en"], this.boundary = document.body, this.onRequestAsset = void 0, this.editedItem = null, this.isAdding = !1, this.columnsMap = {}, this.sortedEntries = [], this.translatableControls = [], this.disableCloseConfigDialog = !1, this.hoverMenu = {
|
|
985
1010
|
data: [
|
|
@@ -1029,15 +1054,15 @@ let n = class extends T {
|
|
|
1029
1054
|
}
|
|
1030
1055
|
handleEditedItemChange() {
|
|
1031
1056
|
const e = {};
|
|
1032
|
-
for (const
|
|
1033
|
-
e[
|
|
1034
|
-
this.sortedEntries = Object.entries(this.editedItem || {}).filter(([
|
|
1057
|
+
for (const t of this.columns)
|
|
1058
|
+
e[t.field] = t.configOrder;
|
|
1059
|
+
this.sortedEntries = Object.entries(this.editedItem || {}).filter(([t]) => this.OMITTED_FIELDS.indexOf(t) === -1 && this.columnsMap[t]).sort(([t], [a]) => (e[t] ?? Number.MAX_SAFE_INTEGER) - (e[a] ?? Number.MAX_SAFE_INTEGER));
|
|
1035
1060
|
}
|
|
1036
1061
|
handleTableActions(e) {
|
|
1037
|
-
const { name:
|
|
1062
|
+
const { name: t, row: a } = e.detail, i = "component" in a ? a.component : a;
|
|
1038
1063
|
if (i) {
|
|
1039
1064
|
if (this.useEvents) {
|
|
1040
|
-
this.emit(`cx-list-editor-${
|
|
1065
|
+
this.emit(`cx-list-editor-${t}`, {
|
|
1041
1066
|
detail: {
|
|
1042
1067
|
index: i.getIndex(),
|
|
1043
1068
|
item: i.getData()
|
|
@@ -1045,7 +1070,7 @@ let n = class extends T {
|
|
|
1045
1070
|
});
|
|
1046
1071
|
return;
|
|
1047
1072
|
}
|
|
1048
|
-
|
|
1073
|
+
t === "edit" ? this.editedItem = i.getData() : t === "delete" && this.emit("cx-list-editor-change", {
|
|
1049
1074
|
detail: {
|
|
1050
1075
|
data: this.data.filter((s) => s.id !== i.getData().id)
|
|
1051
1076
|
}
|
|
@@ -1071,16 +1096,16 @@ let n = class extends T {
|
|
|
1071
1096
|
handleSaveClick() {
|
|
1072
1097
|
if (this.editedItem) {
|
|
1073
1098
|
const e = this.data.findIndex(
|
|
1074
|
-
(
|
|
1099
|
+
(a) => a.id === this.editedItem.id
|
|
1075
1100
|
);
|
|
1076
1101
|
if (!this.isAdding && e === -1) {
|
|
1077
1102
|
this.editedItem = null;
|
|
1078
1103
|
return;
|
|
1079
1104
|
}
|
|
1080
|
-
let
|
|
1081
|
-
this.isAdding ?
|
|
1105
|
+
let t = this.data;
|
|
1106
|
+
this.isAdding ? t = [...t, this.editedItem] : t = this.data.map((a) => a.id === this.editedItem.id ? this.editedItem : a), this.emit("cx-list-editor-change", {
|
|
1082
1107
|
detail: {
|
|
1083
|
-
data:
|
|
1108
|
+
data: t
|
|
1084
1109
|
}
|
|
1085
1110
|
}), this.editedItem = null, this.isAdding = !1;
|
|
1086
1111
|
}
|
|
@@ -1099,91 +1124,96 @@ let n = class extends T {
|
|
|
1099
1124
|
if (await this.updateComplete, !this.table)
|
|
1100
1125
|
return;
|
|
1101
1126
|
if (!this.loadingItemIndex) {
|
|
1102
|
-
this.table.tabulatorInstance?.getRows().forEach((
|
|
1103
|
-
const i =
|
|
1104
|
-
|
|
1127
|
+
this.table.tabulatorInstance?.getRows().forEach((a) => {
|
|
1128
|
+
const i = a._row.hoverMenuElement;
|
|
1129
|
+
a._row.hoverMenuElement.actions = i.actions.map((s) => (s.options?.buttonProps && (s.options.buttonProps.loading = !1), s));
|
|
1105
1130
|
});
|
|
1106
1131
|
return;
|
|
1107
1132
|
}
|
|
1108
1133
|
const e = this.table.tabulatorInstance?.getRow(this.loadingItemIndex);
|
|
1109
1134
|
if (!e || !e?._row?.hoverMenuElement)
|
|
1110
1135
|
return;
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1136
|
+
const t = e._row.hoverMenuElement;
|
|
1137
|
+
t.actions = t.actions.map((a) => (a.options?.buttonProps && (a.options.buttonProps.loading = a.name === this.loadingEvent && this.loadingItemIndex === e.getIndex()), a));
|
|
1113
1138
|
}
|
|
1114
1139
|
handleChange(e) {
|
|
1115
1140
|
if (!e.target)
|
|
1116
1141
|
return;
|
|
1117
|
-
const
|
|
1118
|
-
if (!
|
|
1142
|
+
const t = e.target, a = t.dataset.id;
|
|
1143
|
+
if (!a)
|
|
1119
1144
|
return;
|
|
1120
|
-
let i =
|
|
1145
|
+
let i = t.value;
|
|
1121
1146
|
Array.isArray(i) ? i = i.join(" ") : i = String(i), this.editedItem = {
|
|
1122
1147
|
...this.editedItem,
|
|
1123
|
-
[
|
|
1148
|
+
[a]: i
|
|
1124
1149
|
};
|
|
1125
1150
|
}
|
|
1126
1151
|
renderControls(e) {
|
|
1127
1152
|
if (e === "translation") {
|
|
1128
|
-
const
|
|
1129
|
-
${
|
|
1153
|
+
const t = l`
|
|
1154
|
+
${x(
|
|
1130
1155
|
this.translatableControls,
|
|
1131
|
-
(
|
|
1132
|
-
(
|
|
1133
|
-
const s = this.localize.languageName(i) || ce.getName(i) || i,
|
|
1156
|
+
(a) => a.field,
|
|
1157
|
+
(a) => l`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${a.title}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${Q(this.supportedLanguages, (i) => {
|
|
1158
|
+
const s = this.localize.languageName(i) || ce.getName(i) || i, p = (c) => {
|
|
1134
1159
|
const m = c.target.value;
|
|
1135
1160
|
this.editedItem = {
|
|
1136
1161
|
...this.editedItem,
|
|
1137
|
-
[`${
|
|
1162
|
+
[`${a.field}-${i}`]: m
|
|
1138
1163
|
};
|
|
1139
1164
|
};
|
|
1140
|
-
return l`<cx-input ?disabled=${i.toLowerCase() === this.defaultLanguage?.toLowerCase()} label=${s} value=${this.editedItem?.[`${
|
|
1165
|
+
return l`<cx-input ?disabled=${i.toLowerCase() === this.defaultLanguage?.toLowerCase()} label=${s} value=${this.editedItem?.[`${a.field}-${i}`] ?? this.editedItem?.[`${a.field}`] ?? ""} @cx-change=${p}></cx-input>`;
|
|
1141
1166
|
})}</cx-space></cx-grid-item></cx-grid>`
|
|
1142
1167
|
)}
|
|
1143
1168
|
`;
|
|
1144
|
-
return l`<cx-space direction="vertical" wrap="nowrap">${
|
|
1169
|
+
return l`<cx-space direction="vertical" wrap="nowrap">${t}</cx-space>`;
|
|
1145
1170
|
}
|
|
1146
|
-
return l`<cx-grid columns="3" spacing="var(--cx-spacing-small)" wrap="wrap">${
|
|
1171
|
+
return l`<cx-grid columns="3" spacing="var(--cx-spacing-small)" wrap="wrap">${x(
|
|
1147
1172
|
this.sortedEntries,
|
|
1148
|
-
([
|
|
1149
|
-
([
|
|
1150
|
-
this.columnsMap[
|
|
1173
|
+
([t]) => t,
|
|
1174
|
+
([t, a]) => l`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.columnsMap[t].title}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2">${Y(
|
|
1175
|
+
this.columnsMap[t].controlType,
|
|
1151
1176
|
[
|
|
1152
1177
|
[
|
|
1153
1178
|
"image-picker",
|
|
1154
|
-
() =>
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1179
|
+
() => {
|
|
1180
|
+
const i = async (p) => {
|
|
1181
|
+
if (Array.isArray(p.detail))
|
|
1182
|
+
return;
|
|
1183
|
+
const { id: c, src: m } = p.detail;
|
|
1184
|
+
this.editedItem = {
|
|
1185
|
+
...this.editedItem,
|
|
1186
|
+
[t]: m,
|
|
1187
|
+
recordId: c
|
|
1188
|
+
};
|
|
1189
|
+
}, s = async () => {
|
|
1190
|
+
this.editedItem = {
|
|
1191
|
+
...this.editedItem,
|
|
1192
|
+
[t]: "",
|
|
1193
|
+
recordId: ""
|
|
1194
|
+
};
|
|
1161
1195
|
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
...this.editedItem,
|
|
1165
|
-
[a]: ""
|
|
1166
|
-
};
|
|
1167
|
-
}} @cx-asset-request-status=${this.handleAssetRequestStatus} .onRequestAsset=${this.onRequestAsset}></cx-asset-picker>`
|
|
1196
|
+
return l`<cx-asset-picker value=${a} record-id=${this.editedItem.recordId || ""} type="image" id=${t} @cx-content-builder-asset-select=${i} @cx-content-builder-asset-delete=${s} @cx-asset-request-status=${this.handleAssetRequestStatus} .onRequestAsset=${this.onRequestAsset}></cx-asset-picker>`;
|
|
1197
|
+
}
|
|
1168
1198
|
],
|
|
1169
1199
|
[
|
|
1170
1200
|
"radio-group",
|
|
1171
|
-
() => l`<cx-radio-group data-id=${
|
|
1172
|
-
this.columnsMap[
|
|
1201
|
+
() => l`<cx-radio-group data-id=${t} data-testid="radio-group-control" horizontal value=${(a || this.columnsMap[t].defaultValue) ?? ""} size="medium" @cx-change=${this.handleChange}>${x(
|
|
1202
|
+
this.columnsMap[t].options ?? [],
|
|
1173
1203
|
(i) => i.value,
|
|
1174
1204
|
(i) => l`<cx-radio value=${i.value}>${i.name}</cx-radio>`
|
|
1175
1205
|
)}</cx-radio-group>`
|
|
1176
1206
|
],
|
|
1177
1207
|
[
|
|
1178
1208
|
"select",
|
|
1179
|
-
() => this.columnsMap[
|
|
1180
|
-
this.columnsMap[
|
|
1209
|
+
() => this.columnsMap[t].api ? l`<cx-dynamic-select data-id=${t} hoist value=${a} @cx-change=${this.handleChange} .api=${this.columnsMap[t].api}></cx-dynamic-select>` : l`<cx-select data-id=${t} hoist value=${a} @cx-change=${this.handleChange}>${x(
|
|
1210
|
+
this.columnsMap[t].options ?? [],
|
|
1181
1211
|
(i) => i.value,
|
|
1182
1212
|
(i) => l`<cx-option value=${i.value}>${i.name}</cx-option>`
|
|
1183
1213
|
)}</cx-select>`
|
|
1184
1214
|
]
|
|
1185
1215
|
],
|
|
1186
|
-
() => l`<cx-input data-id=${
|
|
1216
|
+
() => l`<cx-input data-id=${t} value=${a} @cx-change=${this.handleChange}></cx-input>`
|
|
1187
1217
|
)}</cx-grid-item>`
|
|
1188
1218
|
)}</cx-grid>`;
|
|
1189
1219
|
}
|
|
@@ -1191,12 +1221,12 @@ let n = class extends T {
|
|
|
1191
1221
|
return l`<cx-space direction="vertical" align-items="flex-start"><div class="list-editor"><cx-table part="table" class=${Z({
|
|
1192
1222
|
"list-editor__table": !0,
|
|
1193
1223
|
"list-editor__table--no-header": this.noHeader
|
|
1194
|
-
})} ?movable-rows=${this.sortable} ?no-header=${this.noHeader} layout="fitColumns" row-height=${this.rowHeight} .columns=${this.columns} .columnDefaults=${xe} .hoverMenu=${this.hoverMenu} .data=${this.data ?? []} no-selectable @cx-table.rowMoved=${this.handleTableRowMoved} @cx-table-row-action-click=${this.handleTableActions}></cx-table><cx-dialog part="dialog" class="list-editor__dialog" divider-position=${
|
|
1224
|
+
})} ?movable-rows=${this.sortable} ?no-header=${this.noHeader} layout="fitColumns" row-height=${this.rowHeight} .columns=${this.columns} .columnDefaults=${xe} .hoverMenu=${this.hoverMenu} .data=${this.data ?? []} no-selectable @cx-table.rowMoved=${this.handleTableRowMoved} @cx-table-row-action-click=${this.handleTableActions}></cx-table><cx-dialog part="dialog" class="list-editor__dialog" divider-position=${q.Footer} use-overlay-scrollbar strategy="fixed" ?open=${!!this.editedItem} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${this.isAdding ? this.addDialogLabel : this.editDialogLabel}</cx-typography>${N(
|
|
1195
1225
|
!this.isAdding && this.editedItem?.[this.displayField],
|
|
1196
1226
|
() => l`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.editedItem?.[this.displayField]}</cx-line-clamp></cx-typography>`
|
|
1197
1227
|
)}</cx-space>${N(
|
|
1198
1228
|
this.tabs.length >= 1,
|
|
1199
|
-
() => l`<cx-tab-group class="list-editor__tab-group" placement="top">${
|
|
1229
|
+
() => l`<cx-tab-group class="list-editor__tab-group" placement="top">${x(
|
|
1200
1230
|
this.tabs,
|
|
1201
1231
|
(e) => e,
|
|
1202
1232
|
(e) => l`<cx-tab slot="nav" panel=${e}>${this.localize.term(e)}</cx-tab><cx-tab-panel name=${e}><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderControls(e)}</cx-space></cx-tab-panel>`
|
|
@@ -1210,21 +1240,21 @@ let n = class extends T {
|
|
|
1210
1240
|
};
|
|
1211
1241
|
n.styles = [D, ge];
|
|
1212
1242
|
n.dependencies = {
|
|
1213
|
-
"cx-asset-picker":
|
|
1214
|
-
"cx-button":
|
|
1215
|
-
"cx-dialog":
|
|
1243
|
+
"cx-asset-picker": d,
|
|
1244
|
+
"cx-button": k,
|
|
1245
|
+
"cx-dialog": G,
|
|
1216
1246
|
"cx-dynamic-select": W,
|
|
1217
1247
|
"cx-grid": j,
|
|
1218
|
-
"cx-grid-item":
|
|
1219
|
-
"cx-input":
|
|
1220
|
-
"cx-line-clamp":
|
|
1248
|
+
"cx-grid-item": R,
|
|
1249
|
+
"cx-input": _,
|
|
1250
|
+
"cx-line-clamp": P,
|
|
1221
1251
|
"cx-option": F,
|
|
1222
1252
|
"cx-radio": B,
|
|
1223
1253
|
"cx-radio-group": K,
|
|
1224
1254
|
"cx-select": U,
|
|
1225
1255
|
"cx-space": E,
|
|
1226
1256
|
"cx-table": H,
|
|
1227
|
-
"cx-typography":
|
|
1257
|
+
"cx-typography": T
|
|
1228
1258
|
};
|
|
1229
1259
|
r([
|
|
1230
1260
|
y("cx-dialog")
|
|
@@ -1237,8 +1267,8 @@ r([
|
|
|
1237
1267
|
converter: {
|
|
1238
1268
|
fromAttribute: (e) => {
|
|
1239
1269
|
try {
|
|
1240
|
-
const
|
|
1241
|
-
return Array.isArray(
|
|
1270
|
+
const t = JSON.parse(e);
|
|
1271
|
+
return Array.isArray(t) ? t : [];
|
|
1242
1272
|
} catch {
|
|
1243
1273
|
return [];
|
|
1244
1274
|
}
|
|
@@ -1312,31 +1342,31 @@ r([
|
|
|
1312
1342
|
o({ attribute: "on-request-asset", type: Function })
|
|
1313
1343
|
], n.prototype, "onRequestAsset", 2);
|
|
1314
1344
|
r([
|
|
1315
|
-
|
|
1345
|
+
b()
|
|
1316
1346
|
], n.prototype, "editedItem", 2);
|
|
1317
1347
|
r([
|
|
1318
|
-
|
|
1348
|
+
b()
|
|
1319
1349
|
], n.prototype, "isAdding", 2);
|
|
1320
1350
|
r([
|
|
1321
|
-
|
|
1351
|
+
b()
|
|
1322
1352
|
], n.prototype, "columnsMap", 2);
|
|
1323
1353
|
r([
|
|
1324
|
-
|
|
1354
|
+
b()
|
|
1325
1355
|
], n.prototype, "sortedEntries", 2);
|
|
1326
1356
|
r([
|
|
1327
|
-
|
|
1357
|
+
b()
|
|
1328
1358
|
], n.prototype, "translatableControls", 2);
|
|
1329
1359
|
r([
|
|
1330
|
-
|
|
1331
|
-
|
|
1360
|
+
v("columns"),
|
|
1361
|
+
v("supportedLanguages", { waitUntilFirstUpdate: !0 })
|
|
1332
1362
|
], n.prototype, "handleColumnsChange", 1);
|
|
1333
1363
|
r([
|
|
1334
|
-
|
|
1335
|
-
|
|
1364
|
+
v("editedItem"),
|
|
1365
|
+
v("columns", { waitUntilFirstUpdate: !0 })
|
|
1336
1366
|
], n.prototype, "handleEditedItemChange", 1);
|
|
1337
1367
|
r([
|
|
1338
|
-
|
|
1339
|
-
|
|
1368
|
+
v("loadingEvent", { waitUntilFirstUpdate: !0 }),
|
|
1369
|
+
v("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
|
|
1340
1370
|
J(10)
|
|
1341
1371
|
], n.prototype, "handleLoadingEventChange", 1);
|
|
1342
1372
|
n = r([
|
|
@@ -1345,7 +1375,7 @@ n = r([
|
|
|
1345
1375
|
export {
|
|
1346
1376
|
n as C,
|
|
1347
1377
|
ce as I,
|
|
1348
|
-
|
|
1378
|
+
d as a,
|
|
1349
1379
|
xe as c,
|
|
1350
1380
|
pe as u
|
|
1351
1381
|
};
|