@orangelogic/design-system 2.115.0 → 2.117.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.
Files changed (51) hide show
  1. package/library/chunks/asset-link-format.QzzboHHE.js +6 -0
  2. package/library/chunks/asset.CIWxY-Aw.js +469 -0
  3. package/library/chunks/{color-swatch-group.DjjSIHSV.js → color-swatch-group.BvLicLI4.js} +1 -1
  4. package/library/chunks/{document-viewer.BIC9iYpZ.js → document-viewer.CKCX8ueu.js} +1118 -1106
  5. package/library/chunks/{endpoints.CDX5PgQz.js → endpoints.D4h8hp1m.js} +271 -271
  6. package/library/chunks/{folder-select.8xNjeJfp.js → folder-select.CrWjwQcw.js} +2 -2
  7. package/library/chunks/{list-editor.7zNWfBuW.js → list-editor.BfpDIsU5.js} +120 -115
  8. package/library/chunks/{table.BvbReIZh.js → table.GCs54Y2t.js} +725 -628
  9. package/library/chunks/{transformation.BlQCWMfI.js → transformation.c-RS37zA.js} +1 -1
  10. package/library/components/asset-link-format.js +3 -3
  11. package/library/components/atoms.js +2 -2
  12. package/library/components/audio.js +164 -102
  13. package/library/components/color-swatch-group.js +2 -2
  14. package/library/components/cropper.js +1 -1
  15. package/library/components/document-viewer.js +1 -1
  16. package/library/components/folder-select.js +2 -2
  17. package/library/components/list-editor.js +2 -2
  18. package/library/components/molecules.js +2 -2
  19. package/library/components/organisms.js +1 -1
  20. package/library/components/select.js +107 -107
  21. package/library/components/table.js +1 -1
  22. package/library/components/types.js +26050 -26258
  23. package/library/package.json +1 -1
  24. package/library/packages/atoms/src/components/audio/audio.d.ts +32 -5
  25. package/library/packages/atoms/src/components/table/table-data-loader.d.ts +1 -0
  26. package/library/packages/atoms/src/components/table/table.d.ts +1 -0
  27. package/library/packages/hybrid/book-reader/src/react/components/Controller/PageControl.d.ts +2 -1
  28. package/library/packages/hybrid/book-reader/src/react/hooks/useBreakpoint.d.ts +5 -1
  29. package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +2 -1
  30. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  31. package/library/packages/molecules/src/index.d.ts +0 -1
  32. package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -2
  33. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +5 -2
  34. package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +0 -1
  35. package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +0 -1
  36. package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
  37. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -0
  38. package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
  39. package/library/packages/services/src/api/asset/asset.d.ts +7 -6
  40. package/library/packages/services/src/api/endpoints.d.ts +2 -3
  41. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -7
  42. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +6 -11
  43. package/library/packages/types/src/asset-link-format.d.ts +1 -0
  44. package/library/packages/types/src/content-builder.d.ts +4 -0
  45. package/library/react-web-component.d.ts +741 -721
  46. package/library/utils.js +1 -1
  47. package/package.json +1 -1
  48. package/library/chunks/asset-link-format.B0c92pSs.js +0 -6
  49. package/library/chunks/asset.CtPQLZOf.js +0 -607
  50. package/library/packages/molecules/src/timeline/timeline.d.ts +0 -71
  51. package/library/packages/molecules/src/timeline/timeline.styles.d.ts +0 -2
@@ -5,8 +5,8 @@ import oe from "../components/select.js";
5
5
  import ce from "../components/tag.js";
6
6
  import { C as g, a as ne } from "./tree.Btf2Q4YZ.js";
7
7
  import { n as r, C as U } from "./lib-cortex-element.CVMmyPMC.js";
8
- import { h as R, F as he, c as de } from "./endpoints.CDX5PgQz.js";
9
- import { M as k } from "./asset-link-format.B0c92pSs.js";
8
+ import { h as R, F as he, c as de } from "./endpoints.D4h8hp1m.js";
9
+ import { M as k } from "./asset-link-format.QzzboHHE.js";
10
10
  import { c as j } from "./component.styles.CRO4Odto.js";
11
11
  import { c as M } from "./custom-element.L4WJXn1j.js";
12
12
  import { L } from "./i18n.CH-wak_P.js";
@@ -1,43 +1,43 @@
1
1
  import { C as k } from "./button.DwJEeW2t.js";
2
- import { C as O, D as q } from "./dialog.BYCWepBc.js";
3
- import G from "../components/grid.js";
4
- import R from "../components/grid-item.js";
5
- import { C as _ } from "./input.CH4lKxPM.js";
6
- import j from "../components/line-clamp.js";
7
- import { C as P } from "./option.Bvh35v8S.js";
8
- import F from "../components/radio.js";
9
- import B from "../components/radio-group.js";
10
- import K from "../components/select.js";
11
- import S from "../components/space.js";
12
- import { C as U, H } from "./table.BvbReIZh.js";
13
- import { C as E } from "./typography.DJC_UXgs.js";
14
- import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
15
- import V from "../components/dynamic-select.js";
16
- import { c as L } from "./component.styles.CRO4Odto.js";
17
- import { c as M } from "./custom-element.L4WJXn1j.js";
18
- import { d as W } from "./debounce.CIEhztrj.js";
19
- import { L as D } from "./i18n.CH-wak_P.js";
2
+ import { C as R, D as j } from "./dialog.BYCWepBc.js";
3
+ import B from "../components/grid.js";
4
+ import F from "../components/grid-item.js";
5
+ import { C as E } from "./input.CH4lKxPM.js";
6
+ import P from "../components/line-clamp.js";
7
+ import { C as K } from "./option.Bvh35v8S.js";
8
+ import U from "../components/radio.js";
9
+ import H from "../components/radio-group.js";
10
+ import V from "../components/select.js";
11
+ import T from "../components/space.js";
12
+ import { C as W, H as J } from "./table.GCs54Y2t.js";
13
+ import { C as L } from "./typography.DJC_UXgs.js";
14
+ import { n as o, C as D } from "./lib-cortex-element.CVMmyPMC.js";
15
+ import X from "../components/dynamic-select.js";
16
+ import { c as M } from "./component.styles.CRO4Odto.js";
17
+ import { c as z } from "./custom-element.L4WJXn1j.js";
18
+ import { d as Y } from "./debounce.CIEhztrj.js";
19
+ import { L as O } from "./i18n.CH-wak_P.js";
20
20
  import { w as v } from "./watch.CThbualB.js";
21
- import { a as J } from "./_commonjsHelpers.DQNKXVTB.js";
22
- import { i as z, x as l } from "./lit-element.jLBm65_O.js";
23
- import { r as b } from "./state.CSDxrqLd.js";
21
+ import { a as Z } from "./_commonjsHelpers.DQNKXVTB.js";
22
+ import { i as q, x as l } from "./lit-element.jLBm65_O.js";
23
+ import { r as N } from "./state.CSDxrqLd.js";
24
24
  import { e as y } from "./query.BBf1UFkC.js";
25
- import { r as X } from "./choose.BTbF6BAn.js";
26
- import { e as Y } from "./class-map.BiVq-cVR.js";
27
- import { o as Z } from "./map.D8heArFD.js";
25
+ import { r as Q } from "./choose.BTbF6BAn.js";
26
+ import { e as ee } from "./class-map.BiVq-cVR.js";
27
+ import { o as te } from "./map.D8heArFD.js";
28
28
  import { c as x } from "./repeat.DbF2p5ae.js";
29
- import { n as N } from "./when.Dr1es41R.js";
30
- import { t as Q } from "./toString.CAY8lys2.js";
31
- import { C as ee } from "./icon-button.CQiBjznj.js";
32
- import { C as te } from "./image.cT-FziNS.js";
33
- import { a as ae } from "./asset.CtPQLZOf.js";
34
- import { a as ie } from "./index.Cpamj0jB.js";
29
+ import { n as b } from "./when.Dr1es41R.js";
30
+ import { t as ae } from "./toString.CAY8lys2.js";
31
+ import { C as ie } from "./icon-button.CQiBjznj.js";
32
+ import { C as ne } from "./image.cT-FziNS.js";
33
+ import { a as se, F as I, b as w } from "./asset.CIWxY-Aw.js";
34
+ import { a as re } from "./index.Cpamj0jB.js";
35
35
  import { A as g } from "./content-builder.OsUmm8Wu.js";
36
- import { b as ne, t as w } from "./string.DUgD4c9f.js";
37
- import { t as se } from "./toast.D3AW3RWv.js";
38
- var C, I;
39
- function re() {
40
- return I || (I = 1, C = {
36
+ import { b as oe, t as $ } from "./string.DUgD4c9f.js";
37
+ import { t as le } from "./toast.D3AW3RWv.js";
38
+ var C, _;
39
+ function me() {
40
+ return _ || (_ = 1, C = {
41
41
  aa: {
42
42
  name: "Afar",
43
43
  nativeName: "Afaraf"
@@ -772,11 +772,11 @@ function re() {
772
772
  }
773
773
  }), C;
774
774
  }
775
- var A, $;
776
- function oe() {
777
- if ($) return A;
778
- $ = 1;
779
- const e = re(), t = {}, a = {}, i = [], s = [], p = [];
775
+ var A, S;
776
+ function ce() {
777
+ if (S) return A;
778
+ S = 1;
779
+ const e = me(), t = {}, a = {}, i = [], s = [], p = [];
780
780
  for (const d in e) {
781
781
  const { name: m, nativeName: h } = e[d];
782
782
  t[d] = a[m.toLowerCase()] = a[h.toLowerCase()] = { code: d, name: m, nativeName: h }, i.push(d), s.push(m), p.push(h);
@@ -810,22 +810,22 @@ function oe() {
810
810
  }
811
811
  }, A;
812
812
  }
813
- var le = oe();
814
- const me = /* @__PURE__ */ J(le);
815
- var ce = 0;
816
- function de(e) {
817
- var t = ++ce;
818
- return Q(e) + t;
813
+ var de = ce();
814
+ const pe = /* @__PURE__ */ Z(de);
815
+ var ue = 0;
816
+ function he(e) {
817
+ var t = ++ue;
818
+ return ae(e) + t;
819
819
  }
820
- const pe = z`:host{isolation:isolate}.asset-picker__input[data-user-invalid]~.asset-picker__trigger-wrapper .asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color)}.asset-picker__input[data-user-invalid]:focus-within~.asset-picker__trigger-wrapper .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__trigger-wrapper{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 ue = Object.defineProperty, he = Object.getOwnPropertyDescriptor, u = (e, t, a, i) => {
822
- for (var s = i > 1 ? void 0 : i ? he(t, a) : t, p = e.length - 1, d; p >= 0; p--)
820
+ const ve = q`:host{isolation:isolate}.asset-picker__input[data-user-invalid]~.asset-picker__trigger-wrapper .asset-picker__button::part(base){border-color:var(--cx-input-invalid-border-color)}.asset-picker__input[data-user-invalid]:focus-within~.asset-picker__trigger-wrapper .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__trigger-wrapper{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 ge = Object.defineProperty, be = Object.getOwnPropertyDescriptor, u = (e, t, a, i) => {
822
+ for (var s = i > 1 ? void 0 : i ? be(t, a) : t, p = e.length - 1, d; p >= 0; p--)
823
823
  (d = e[p]) && (s = (i ? d(t, a, s) : d(s)) || s);
824
- return i && s && ue(t, a, s), s;
824
+ return i && s && ge(t, a, s), s;
825
825
  };
826
- let c = class extends T {
826
+ let c = class extends D {
827
827
  constructor() {
828
- super(...arguments), this.localize = new D(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 = ae;
828
+ super(...arguments), this.localize = new O(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.isSiteBuilder = !1, this.previewSrc = "", this.apiGetAssets = se;
829
829
  }
830
830
  async handleRequestAssetClick() {
831
831
  if (this.onRequestAsset)
@@ -841,9 +841,9 @@ let c = class extends T {
841
841
  this.accepts
842
842
  );
843
843
  if (this.accepts.length > 0 && Object.values(e).some(
844
- (a) => !this.accepts.includes(ne(a.src) ?? "")
844
+ (a) => !this.accepts.includes(oe(a.src) ?? "")
845
845
  ))
846
- se(this.localize.term("nonAcceptedExtension", this.accepts), {
846
+ le(this.localize.term("nonAcceptedExtension", this.accepts), {
847
847
  notificationType: "warning"
848
848
  });
849
849
  else if (this.multiple) {
@@ -852,16 +852,17 @@ let c = class extends T {
852
852
  detail: a
853
853
  });
854
854
  } else {
855
- const { extension: a, id: i, identifier: s, name: p, representative: d, src: m, type: h } = e;
855
+ const { extension: a, id: i, identifier: s, name: p, parentAssetID: d, representative: m, src: h, type: G } = e;
856
856
  this.emit("cx-content-builder-asset-select", {
857
857
  detail: {
858
858
  extension: a,
859
859
  id: i,
860
860
  identifier: s,
861
861
  name: p,
862
- representative: d,
863
- src: m,
864
- type: h
862
+ parentAssetID: d,
863
+ representative: m,
864
+ src: h,
865
+ type: G
865
866
  }
866
867
  });
867
868
  }
@@ -886,11 +887,12 @@ let c = class extends T {
886
887
  }
887
888
  try {
888
889
  const t = (await this.apiGetAssets({
889
- extraFields: ["path_TR1"],
890
+ extraFields: ["path_TR1", I, w],
890
891
  getPermanentAssetsPaths: !0,
892
+ isSiteBuilder: this.isSiteBuilder,
891
893
  recordIds: [this.recordId]
892
894
  })).items[0];
893
- this.previewSrc = t?.path_TR1 || t?.originalUrl || "";
895
+ this.previewSrc = t?.path_TR1 || t?.originalUrl || "", this.name = t?.[I] || t?.[w] || "";
894
896
  } catch {
895
897
  this.previewSrc = "";
896
898
  }
@@ -904,13 +906,13 @@ let c = class extends T {
904
906
  }
905
907
  renderAssetPreview() {
906
908
  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=${ie.Cover}></cx-image>`;
909
+ return l`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.name} width="200px" object-fit=${re.Cover}></cx-image>`;
908
910
  if (this.name && this.acceptsType(g.Audio) || this.acceptsType(g.Video))
909
- return l`<cx-typography variant="body-2">${w(this.name, 30, 11, 11)}</cx-typography>`;
911
+ return l`<cx-typography variant="body-2">${$(this.name, 30, 11, 11)}</cx-typography>`;
910
912
  if (this.name && (this.acceptsType(g.Other) || this.acceptsType(g.All))) {
911
913
  const e = this.name.split(",");
912
- return l`<cx-typography variant="body-2">${w(e[0], 30, 11, 11)}
913
- ${N(
914
+ return l`<cx-typography variant="body-2">${$(e[0], 30, 11, 11)}
915
+ ${b(
914
916
  e.length > 1,
915
917
  () => l` ${this.localize.term("andOthers", e.length - 1)}`
916
918
  )}</cx-typography>`;
@@ -919,9 +921,9 @@ let c = class extends T {
919
921
  }
920
922
  render() {
921
923
  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()}
922
- ${N(
924
+ ${b(
923
925
  !this.disabled,
924
- () => l`<div part="button-container" 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><div class="asset-picker__trigger-wrapper"><slot name="trigger" @click=${this.handleRequestAssetClick}><cx-button part="button" class="asset-picker__button">${this.localize.term("choose")}</cx-button></slot></div></div>${N(
926
+ () => l`<div part="button-container" 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><div class="asset-picker__trigger-wrapper"><slot name="trigger" @click=${this.handleRequestAssetClick}><cx-button part="button" class="asset-picker__button">${this.localize.term("choose")}</cx-button></slot></div></div>${b(
925
927
  this.value,
926
928
  () => l`<cx-icon-button label=${this.localize.term("delete")} name="delete" @click=${this.handleDeleteClick}></cx-icon-button>`
927
929
  )}
@@ -929,14 +931,14 @@ let c = class extends T {
929
931
  )}</cx-space>`;
930
932
  }
931
933
  };
932
- c.styles = [L, pe];
934
+ c.styles = [M, ve];
933
935
  c.dependencies = {
934
936
  "cx-button": k,
935
- "cx-icon-button": ee,
936
- "cx-image": te,
937
- "cx-input": _,
938
- "cx-space": S,
939
- "cx-typography": E
937
+ "cx-icon-button": ie,
938
+ "cx-image": ne,
939
+ "cx-input": E,
940
+ "cx-space": T,
941
+ "cx-typography": L
940
942
  };
941
943
  u([
942
944
  y(".asset-picker__button")
@@ -984,7 +986,10 @@ u([
984
986
  o({ attribute: "record-id", reflect: !0, type: String })
985
987
  ], c.prototype, "recordId", 2);
986
988
  u([
987
- b()
989
+ o({ attribute: "is-site-builder", reflect: !0, type: Boolean })
990
+ ], c.prototype, "isSiteBuilder", 2);
991
+ u([
992
+ N()
988
993
  ], c.prototype, "previewSrc", 2);
989
994
  u([
990
995
  v("value")
@@ -993,20 +998,20 @@ u([
993
998
  v("recordId")
994
999
  ], c.prototype, "handleRecordIdChange", 1);
995
1000
  c = u([
996
- M("cx-asset-picker")
1001
+ z("cx-asset-picker")
997
1002
  ], c);
998
- const ve = z`: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)}`;
999
- var ge = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, r = (e, t, a, i) => {
1000
- for (var s = i > 1 ? void 0 : i ? Ne(t, a) : t, p = e.length - 1, d; p >= 0; p--)
1003
+ const Ne = q`: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)}`;
1004
+ var xe = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, r = (e, t, a, i) => {
1005
+ for (var s = i > 1 ? void 0 : i ? fe(t, a) : t, p = e.length - 1, d; p >= 0; p--)
1001
1006
  (d = e[p]) && (s = (i ? d(t, a, s) : d(s)) || s);
1002
- return i && s && ge(t, a, s), s;
1007
+ return i && s && xe(t, a, s), s;
1003
1008
  };
1004
- const be = {
1009
+ const ye = {
1005
1010
  resizable: !1
1006
1011
  };
1007
- let n = class extends T {
1012
+ let n = class extends D {
1008
1013
  constructor() {
1009
- super(...arguments), this.localize = new D(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 = {
1014
+ super(...arguments), this.localize = new O(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 = {
1010
1015
  data: [
1011
1016
  {
1012
1017
  icon: "create",
@@ -1033,7 +1038,7 @@ let n = class extends T {
1033
1038
  }
1034
1039
  ],
1035
1040
  options: {
1036
- placement: H.Right
1041
+ placement: J.Right
1037
1042
  }
1038
1043
  }, this.OMITTED_FIELDS = ["id"];
1039
1044
  }
@@ -1090,7 +1095,7 @@ let n = class extends T {
1090
1095
  handleAddClick() {
1091
1096
  this.isAdding = !0, this.editedItem = {
1092
1097
  ...this.sampleItem,
1093
- id: de(`${Date.now()}-`)
1098
+ id: he(`${Date.now()}-`)
1094
1099
  };
1095
1100
  }
1096
1101
  handleSaveClick() {
@@ -1154,8 +1159,8 @@ let n = class extends T {
1154
1159
  ${x(
1155
1160
  this.translatableControls,
1156
1161
  (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">${Z(this.supportedLanguages, (i) => {
1158
- const s = this.localize.languageName(i) || me.getName(i) || i, p = (d) => {
1162
+ (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">${te(this.supportedLanguages, (i) => {
1163
+ const s = this.localize.languageName(i) || pe.getName(i) || i, p = (d) => {
1159
1164
  const m = d.target.value;
1160
1165
  this.editedItem = {
1161
1166
  ...this.editedItem,
@@ -1171,7 +1176,7 @@ let n = class extends T {
1171
1176
  return l`<cx-grid columns="3" spacing="var(--cx-spacing-small)" wrap="wrap">${x(
1172
1177
  this.sortedEntries,
1173
1178
  ([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">${X(
1179
+ ([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">${Q(
1175
1180
  this.columnsMap[t].controlType,
1176
1181
  [
1177
1182
  [
@@ -1193,7 +1198,7 @@ let n = class extends T {
1193
1198
  recordId: ""
1194
1199
  };
1195
1200
  };
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>`;
1201
+ return l`<cx-asset-picker value=${a} record-id=${this.editedItem.recordId || ""} type="image" is-site-builder 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
1202
  }
1198
1203
  ],
1199
1204
  [
@@ -1218,13 +1223,13 @@ let n = class extends T {
1218
1223
  )}</cx-grid>`;
1219
1224
  }
1220
1225
  render() {
1221
- return l`<cx-space direction="vertical" align-items="flex-start"><div class="list-editor"><cx-table part="table" class=${Y({
1226
+ return l`<cx-space direction="vertical" align-items="flex-start"><div class="list-editor"><cx-table part="table" class=${ee({
1222
1227
  "list-editor__table": !0,
1223
1228
  "list-editor__table--no-header": this.noHeader
1224
- })} ?movable-rows=${this.sortable} ?no-header=${this.noHeader} layout="fitColumns" row-height=${this.rowHeight} .columns=${this.columns} .columnDefaults=${be} .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(
1229
+ })} ?movable-rows=${this.sortable} ?no-header=${this.noHeader} layout="fitColumns" row-height=${this.rowHeight} .columns=${this.columns} .columnDefaults=${ye} .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=${j.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>${b(
1225
1230
  !this.isAdding && this.editedItem?.[this.displayField],
1226
1231
  () => l`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.editedItem?.[this.displayField]}</cx-line-clamp></cx-typography>`
1227
- )}</cx-space>${N(
1232
+ )}</cx-space>${b(
1228
1233
  this.tabs.length >= 1,
1229
1234
  () => l`<cx-tab-group class="list-editor__tab-group" placement="top">${x(
1230
1235
  this.tabs,
@@ -1232,29 +1237,29 @@ let n = class extends T {
1232
1237
  (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>`
1233
1238
  )}</cx-tab-group>`,
1234
1239
  () => l`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderControls(this.tabs[0])}</cx-space>`
1235
- )}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog></div>${N(
1240
+ )}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog></div>${b(
1236
1241
  this.canAdd,
1237
1242
  () => l`<cx-button data-testid="add-button" variant="default" size="medium" @click=${this.handleAddClick}>${this.addItemText || this.localize.term("add")}</cx-button>`
1238
1243
  )}</cx-space>`;
1239
1244
  }
1240
1245
  };
1241
- n.styles = [L, ve];
1246
+ n.styles = [M, Ne];
1242
1247
  n.dependencies = {
1243
1248
  "cx-asset-picker": c,
1244
1249
  "cx-button": k,
1245
- "cx-dialog": O,
1246
- "cx-dynamic-select": V,
1247
- "cx-grid": G,
1248
- "cx-grid-item": R,
1249
- "cx-input": _,
1250
- "cx-line-clamp": j,
1251
- "cx-option": P,
1252
- "cx-radio": F,
1253
- "cx-radio-group": B,
1254
- "cx-select": K,
1255
- "cx-space": S,
1256
- "cx-table": U,
1257
- "cx-typography": E
1250
+ "cx-dialog": R,
1251
+ "cx-dynamic-select": X,
1252
+ "cx-grid": B,
1253
+ "cx-grid-item": F,
1254
+ "cx-input": E,
1255
+ "cx-line-clamp": P,
1256
+ "cx-option": K,
1257
+ "cx-radio": U,
1258
+ "cx-radio-group": H,
1259
+ "cx-select": V,
1260
+ "cx-space": T,
1261
+ "cx-table": W,
1262
+ "cx-typography": L
1258
1263
  };
1259
1264
  r([
1260
1265
  y("cx-dialog")
@@ -1342,19 +1347,19 @@ r([
1342
1347
  o({ attribute: "on-request-asset", type: Function })
1343
1348
  ], n.prototype, "onRequestAsset", 2);
1344
1349
  r([
1345
- b()
1350
+ N()
1346
1351
  ], n.prototype, "editedItem", 2);
1347
1352
  r([
1348
- b()
1353
+ N()
1349
1354
  ], n.prototype, "isAdding", 2);
1350
1355
  r([
1351
- b()
1356
+ N()
1352
1357
  ], n.prototype, "columnsMap", 2);
1353
1358
  r([
1354
- b()
1359
+ N()
1355
1360
  ], n.prototype, "sortedEntries", 2);
1356
1361
  r([
1357
- b()
1362
+ N()
1358
1363
  ], n.prototype, "translatableControls", 2);
1359
1364
  r([
1360
1365
  v("columns"),
@@ -1367,15 +1372,15 @@ r([
1367
1372
  r([
1368
1373
  v("loadingEvent", { waitUntilFirstUpdate: !0 }),
1369
1374
  v("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
1370
- W(10)
1375
+ Y(10)
1371
1376
  ], n.prototype, "handleLoadingEventChange", 1);
1372
1377
  n = r([
1373
- M("cx-list-editor")
1378
+ z("cx-list-editor")
1374
1379
  ], n);
1375
1380
  export {
1376
1381
  n as C,
1377
- me as I,
1382
+ pe as I,
1378
1383
  c as a,
1379
- be as c,
1380
- de as u
1384
+ ye as c,
1385
+ he as u
1381
1386
  };