@orangelogic/design-system 2.96.0 → 2.98.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 (174) hide show
  1. package/library/chunks/asset.B3vySOI-.js +431 -0
  2. package/library/chunks/{asset.types.6DCzTOQm.js → asset.types.KXRZEtBr.js} +127 -126
  3. package/library/chunks/{button.BZjbVq8t.js → button.CAa1kvwe.js} +2 -2
  4. package/library/chunks/{color-swatch-group.CKHEL4hJ.js → color-swatch-group.ChcPlkPU.js} +5 -5
  5. package/library/chunks/{color-swatch.CbL_TpRZ.js → color-swatch.DJ1kUnBQ.js} +1 -1
  6. package/library/chunks/{confirm-popover.bBo9aPlX.js → confirm-popover.D4x0nO5g.js} +3 -3
  7. package/library/chunks/content-builder.CcgZciZN.js +58 -0
  8. package/library/chunks/{cropper.uKGcvnPk.js → cropper.Bib8Abm3.js} +4937 -4932
  9. package/library/chunks/{dialog.DRW8iwh-.js → dialog.BLaxLMSc.js} +2 -2
  10. package/library/chunks/{dom.DURaLV1d.js → dom.0RpWet6y.js} +1 -1
  11. package/library/chunks/{dot-pagination.CvUr6R4S.js → dot-pagination.-nDdQxJN.js} +1 -1
  12. package/library/chunks/{file-on-demand.KQlA1JFF.js → file-on-demand.AzwoUvwB.js} +10 -10
  13. package/library/chunks/{folder-select.DxBOSyvo.js → folder-select.XpkOFzAW.js} +5 -5
  14. package/library/chunks/{form.nRqYei4e.js → form.Ch1cwYzO.js} +1 -1
  15. package/library/chunks/{header.ClxEkQPZ.js → header.BZxyeLPK.js} +1 -1
  16. package/library/chunks/{i18n.W6czbRms.js → i18n.BABe9hN4.js} +6 -0
  17. package/library/chunks/{icon-button.MqA-pNw8.js → icon-button.C2s3pHG4.js} +1 -1
  18. package/library/chunks/{iframe.PcSPtm_O.js → iframe.DPccxsnE.js} +1 -1
  19. package/library/chunks/{image.Dtdklw5q.js → image.9qwbjGNb.js} +1 -1
  20. package/library/chunks/{image.C-Covc0H.js → image.Cc4V85ID.js} +354 -311
  21. package/library/chunks/{list-editor.De7nc_Wd.js → list-editor.pVYc_70c.js} +183 -153
  22. package/library/chunks/{number.CCF6IxpN.js → number.B4PQLJIg.js} +32 -32
  23. package/library/chunks/{option.Cx54zrJq.js → option.DGXQzdtb.js} +1 -1
  24. package/library/chunks/{pagination.CG5odPWi.js → pagination.DZqKSA86.js} +4 -4
  25. package/library/chunks/{responsive.D9TUCX5p.js → responsive.Oz9HWjyQ.js} +1 -1
  26. package/library/chunks/{string.DfV21HEI.js → string.DUgD4c9f.js} +41 -34
  27. package/library/chunks/{tab-group.BLZ-qEpp.js → tab-group.BhCf9Smq.js} +4 -4
  28. package/library/chunks/{table.Cr0s-nqe.js → table.V5PGGTfO.js} +11 -10
  29. package/library/chunks/{time.BNrE47-8.js → time.BiQnh9wt.js} +1 -1
  30. package/library/chunks/toast.D3AW3RWv.js +94 -0
  31. package/library/chunks/transformation.Cqz3hPaQ.js +144 -0
  32. package/library/chunks/{tree.CKi63r95.js → tree.DZa7k-4E.js} +1 -1
  33. package/library/components/alert.js +2 -2
  34. package/library/components/asset-link-format.js +767 -862
  35. package/library/components/atoms.js +12 -12
  36. package/library/components/border-input-group.js +1 -1
  37. package/library/components/breadcrumb.js +1 -1
  38. package/library/components/button.js +3 -3
  39. package/library/components/checkbox.js +1 -1
  40. package/library/components/color-picker.js +3 -3
  41. package/library/components/color-swatch-group.js +6 -6
  42. package/library/components/color-swatch.js +2 -2
  43. package/library/components/confirm-popover.js +4 -4
  44. package/library/components/copy-button.js +1 -1
  45. package/library/components/corner-position-input-group.js +2 -2
  46. package/library/components/cropper.js +1 -1
  47. package/library/components/details.js +4 -4
  48. package/library/components/dialog.js +3 -3
  49. package/library/components/dot-pagination.js +2 -2
  50. package/library/components/drawer.js +2 -2
  51. package/library/components/dropdown.js +1 -1
  52. package/library/components/dynamic-select.js +4 -4
  53. package/library/components/e-chart.js +1 -1
  54. package/library/components/element-clamp.js +2 -2
  55. package/library/components/file-on-demand.js +11 -11
  56. package/library/components/folder-select.js +4 -4
  57. package/library/components/format-bytes.js +1 -1
  58. package/library/components/format-date.js +1 -1
  59. package/library/components/format-number.js +1 -1
  60. package/library/components/format-time.js +2 -2
  61. package/library/components/header.js +2 -2
  62. package/library/components/icon-button.js +2 -2
  63. package/library/components/iframe.js +2 -2
  64. package/library/components/image-comparer.js +1 -1
  65. package/library/components/image.js +2 -2
  66. package/library/components/input.js +4 -7
  67. package/library/components/line-clamp.js +1 -1
  68. package/library/components/list-editor.js +6 -6
  69. package/library/components/masonry.js +2 -2
  70. package/library/components/menu-item.js +1 -1
  71. package/library/components/menu.js +1 -1
  72. package/library/components/molecules.js +5 -5
  73. package/library/components/option.js +2 -2
  74. package/library/components/organisms.js +2 -2
  75. package/library/components/pagination.js +5 -5
  76. package/library/components/popup.js +1 -1
  77. package/library/components/position-picker.js +1 -1
  78. package/library/components/progress-bar.js +1 -1
  79. package/library/components/progress-ring.js +1 -1
  80. package/library/components/radio-group.js +1 -1
  81. package/library/components/range.js +2 -2
  82. package/library/components/rating.js +1 -1
  83. package/library/components/relative-time.js +1 -1
  84. package/library/components/select.js +3 -3
  85. package/library/components/share-option-list.js +2 -2
  86. package/library/components/sidebar.js +1 -1
  87. package/library/components/size-input-group.js +2 -2
  88. package/library/components/spinner.js +1 -1
  89. package/library/components/split-panel.js +1 -1
  90. package/library/components/switch.js +1 -1
  91. package/library/components/tab-group.js +5 -5
  92. package/library/components/tab.js +2 -2
  93. package/library/components/table.js +5 -5
  94. package/library/components/tag.js +2 -2
  95. package/library/components/textarea.js +1 -1
  96. package/library/components/timecode.js +1 -1
  97. package/library/components/tooltip.js +1 -1
  98. package/library/components/tree-item.js +2 -2
  99. package/library/components/tree.js +2 -2
  100. package/library/components/typeface.js +2 -2
  101. package/library/components/types.js +31092 -29872
  102. package/library/components/video.js +554 -545
  103. package/library/package.json +1 -1
  104. package/library/packages/atoms/src/components/image/image.d.ts +15 -1
  105. package/library/packages/atoms/src/components/input/input.d.ts +1 -2
  106. package/library/packages/atoms/src/components/video/video.d.ts +3 -1
  107. package/library/packages/events/src/cx-asset-format-picker-delete.d.ts +6 -0
  108. package/library/packages/events/src/cx-asset-format-picker-select.d.ts +8 -0
  109. package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
  110. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
  111. package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
  112. package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
  113. package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
  114. package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
  115. package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
  116. package/library/packages/events/src/cx-timeline-data-resolved.d.ts +10 -0
  117. package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +8 -0
  118. package/library/packages/events/src/events.d.ts +12 -1
  119. package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +1 -0
  120. package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +56 -0
  121. package/library/packages/molecules/src/asset-format-picker/asset-format-picker.styles.d.ts +2 -0
  122. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +7 -0
  123. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  124. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  125. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +5 -1
  126. package/library/packages/molecules/src/index.d.ts +1 -0
  127. package/library/packages/molecules/src/timeline/timeline.d.ts +18 -0
  128. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +12 -0
  129. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
  130. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +102 -0
  131. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
  132. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
  133. package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
  134. package/library/packages/organisms/src/carousel/carousel.d.ts +3 -1
  135. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
  136. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +4 -0
  137. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
  138. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
  139. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
  140. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
  141. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
  142. package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
  143. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
  144. package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
  145. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
  146. package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +2 -2
  147. package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
  148. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
  149. package/library/packages/organisms/src/content-builder/styleController.d.ts +26 -1
  150. package/library/packages/organisms/src/index.d.ts +2 -0
  151. package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
  152. package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
  153. package/library/packages/services/src/api/asset/asset.d.ts +2 -2
  154. package/library/packages/services/src/api/asset/asset.types.d.ts +4 -0
  155. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  156. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +19 -5
  157. package/library/packages/tools/src/tiptap/extensions/text-align/index.d.ts +2 -0
  158. package/library/packages/types/src/asset-click-action.d.ts +3 -1
  159. package/library/packages/types/src/asset-format-picker.d.ts +11 -0
  160. package/library/packages/types/src/bento-grid.d.ts +37 -0
  161. package/library/packages/types/src/content-builder.d.ts +37 -1
  162. package/library/packages/types/src/gallery.d.ts +0 -6
  163. package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
  164. package/library/packages/utils/src/custom-element/i18n.d.ts +6 -0
  165. package/library/packages/utils/src/index.d.ts +1 -0
  166. package/library/packages/utils/src/string/string.d.ts +1 -0
  167. package/library/packages/utils/src/transformation/index.d.ts +1 -0
  168. package/library/react-web-component.d.ts +236 -8
  169. package/library/utils.js +517 -192
  170. package/package.json +1 -1
  171. package/library/chunks/asset.Duzr3O3z.js +0 -370
  172. package/library/chunks/index.BgXEXk4m.js +0 -398
  173. package/library/chunks/toast.Bc4wpYJ1.js +0 -150
  174. /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 _ } from "./button.BZjbVq8t.js";
2
- import { C as q, D as G } from "./dialog.DRW8iwh-.js";
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 P from "../components/grid-item.js";
5
- import S from "../components/input.js";
6
- import R from "../components/line-clamp.js";
7
- import { C as F } from "./option.Cx54zrJq.js";
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.Cr0s-nqe.js";
13
- import { C as L } from "./typography.DJC_UXgs.js";
14
- import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
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.W6czbRms.js";
20
- import { w as g } from "./watch.BCJD77bD.js";
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 x } from "./state.CSDxrqLd.js";
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 b } from "./repeat.DbF2p5ae.js";
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 ae } from "./icon-button.MqA-pNw8.js";
32
- import { C as te } from "./image.C-Covc0H.js";
33
- import { a as ie, D as $ } from "./asset.Duzr3O3z.js";
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 v, t as se } from "./toast.Bc4wpYJ1.js";
36
- import { a as re, t as w } from "./string.DfV21HEI.js";
37
- var A, I;
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 I || (I = 1, A = {
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, k;
775
+ var C, S;
775
776
  function le() {
776
- if (k) return C;
777
- k = 1;
778
- const e = oe(), a = {}, t = {}, i = [], s = [], d = [];
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
- a[c] = t[m.toLowerCase()] = t[h.toLowerCase()] = { code: c, name: m, nativeName: h }, i.push(c), s.push(m), d.push(h);
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({}, a[h]) : { code: h, name: "", nativeName: "" }
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 d.slice();
800
+ return p.slice();
800
801
  }
801
802
  static getCode(m) {
802
- return m = m.toLowerCase(), t.hasOwnProperty(m) ? t[m].code : "";
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 a = ++de;
817
- return ee(e) + a;
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;border-radius:var(--cx-border-radius-medium)}.asset-picker__input{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}`;
820
- var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, u = (e, a, t, i) => {
821
- for (var s = i > 1 ? void 0 : i ? ve(a, t) : a, d = e.length - 1, c; d >= 0; d--)
822
- (c = e[d]) && (s = (i ? c(a, t, s) : c(s)) || s);
823
- return i && s && he(a, t, s), s;
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 p = class extends T {
826
+ let d = class extends L {
826
827
  constructor() {
827
- super(...arguments), this.localize = new z(this), this.value = "", this.name = "", this.type = [v.Image], this.multiple = !1, this.accepts = [], this.required = !1, this.disabled = !1, this.onRequestAsset = void 0, this.apiGetAssets = ie;
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
- (t) => !this.accepts.includes(re(t.src) ?? "")
844
+ (a) => !this.accepts.includes(se(a.src) ?? "")
844
845
  ))
845
- se(this.localize.term("nonAcceptedExtension", this.accepts), {
846
+ re(this.localize.term("nonAcceptedExtension", this.accepts), {
846
847
  notificationType: "warning"
847
848
  });
848
849
  else if (this.multiple) {
849
- const t = Object.values(e);
850
+ const a = Object.values(e);
850
851
  this.emit("cx-content-builder-asset-select", {
851
- detail: t
852
+ detail: a
852
853
  });
853
854
  } else {
854
- const { id: t, name: i, src: s, type: d } = e;
855
+ const { id: a, name: i, src: s, type: p } = e;
855
856
  let c = s;
856
- d === v.Audio && (c = (await this.apiGetAssets({
857
- extraFields: [$],
858
- recordIds: [t]
859
- })).items[0]?.[$]), c && this.emit("cx-content-builder-asset-select", {
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: t,
862
+ id: a,
862
863
  name: i,
863
864
  src: c,
864
- type: d
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(v.Image))
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(v.Video))
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(v.Other) || this.acceptsType(v.All))) {
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(v.Image) ? "flex-start" : "center"}>${this.renderAssetPreview()}
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
- p.styles = [D, ue];
917
- p.dependencies = {
918
- "cx-button": _,
919
- "cx-icon-button": ae,
920
- "cx-image": te,
921
- "cx-input": S,
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": L
939
+ "cx-typography": T
924
940
  };
925
941
  u([
926
942
  y(".asset-picker__button")
927
- ], p.prototype, "buttonEl", 2);
943
+ ], d.prototype, "buttonEl", 2);
928
944
  u([
929
945
  y(".asset-picker__input")
930
- ], p.prototype, "inputEl", 2);
946
+ ], d.prototype, "inputEl", 2);
931
947
  u([
932
948
  o({ reflect: !0, type: String })
933
- ], p.prototype, "value", 2);
949
+ ], d.prototype, "value", 2);
934
950
  u([
935
951
  o({ reflect: !0, type: String })
936
- ], p.prototype, "name", 2);
952
+ ], d.prototype, "name", 2);
937
953
  u([
938
954
  o({
939
955
  converter: {
940
- fromAttribute: (e) => (e ?? "").split(" ").filter((a) => a !== ""),
956
+ fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
941
957
  toAttribute: (e) => e.join(" ")
942
958
  },
943
959
  reflect: !0
944
960
  })
945
- ], p.prototype, "type", 2);
961
+ ], d.prototype, "type", 2);
946
962
  u([
947
963
  o({ reflect: !0, type: Boolean })
948
- ], p.prototype, "multiple", 2);
964
+ ], d.prototype, "multiple", 2);
949
965
  u([
950
966
  o({
951
967
  converter: {
952
- fromAttribute: (e) => (e ?? "").split(" ").filter((a) => a !== ""),
968
+ fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
953
969
  toAttribute: (e) => e.join(" ")
954
970
  },
955
971
  reflect: !0
956
972
  })
957
- ], p.prototype, "accepts", 2);
973
+ ], d.prototype, "accepts", 2);
958
974
  u([
959
975
  o({ reflect: !0, type: Boolean })
960
- ], p.prototype, "required", 2);
976
+ ], d.prototype, "required", 2);
961
977
  u([
962
978
  o({ attribute: "disabled", reflect: !0, type: Boolean })
963
- ], p.prototype, "disabled", 2);
979
+ ], d.prototype, "disabled", 2);
964
980
  u([
965
981
  o({ attribute: "on-request-asset", type: Function })
966
- ], p.prototype, "onRequestAsset", 2);
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
- g("value")
969
- ], p.prototype, "handleValueChange", 1);
970
- p = u([
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
- ], p);
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, a, t, i) => {
975
- for (var s = i > 1 ? void 0 : i ? be(a, t) : a, d = e.length - 1, c; d >= 0; d--)
976
- (c = e[d]) && (s = (i ? c(a, t, s) : c(s)) || s);
977
- return i && s && Ne(a, t, s), s;
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 T {
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 a of this.columns)
1033
- e[a.field] = a.configOrder;
1034
- this.sortedEntries = Object.entries(this.editedItem || {}).filter(([a]) => this.OMITTED_FIELDS.indexOf(a) === -1 && this.columnsMap[a]).sort(([a], [t]) => (e[a] ?? Number.MAX_SAFE_INTEGER) - (e[t] ?? Number.MAX_SAFE_INTEGER));
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: a, row: t } = e.detail, i = "component" in t ? t.component : t;
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-${a}`, {
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
- a === "edit" ? this.editedItem = i.getData() : a === "delete" && this.emit("cx-list-editor-change", {
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
- (t) => t.id === this.editedItem.id
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 a = this.data;
1081
- this.isAdding ? a = [...a, this.editedItem] : a = this.data.map((t) => t.id === this.editedItem.id ? this.editedItem : t), this.emit("cx-list-editor-change", {
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: a
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((t) => {
1103
- const i = t._row.hoverMenuElement;
1104
- t._row.hoverMenuElement.actions = i.actions.map((s) => (s.options?.buttonProps && (s.options.buttonProps.loading = !1), s));
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 a = e._row.hoverMenuElement;
1112
- a.actions = a.actions.map((t) => (t.options?.buttonProps && (t.options.buttonProps.loading = t.name === this.loadingEvent && this.loadingItemIndex === e.getIndex()), t));
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 a = e.target, t = a.dataset.id;
1118
- if (!t)
1142
+ const t = e.target, a = t.dataset.id;
1143
+ if (!a)
1119
1144
  return;
1120
- let i = a.value;
1145
+ let i = t.value;
1121
1146
  Array.isArray(i) ? i = i.join(" ") : i = String(i), this.editedItem = {
1122
1147
  ...this.editedItem,
1123
- [t]: i
1148
+ [a]: i
1124
1149
  };
1125
1150
  }
1126
1151
  renderControls(e) {
1127
1152
  if (e === "translation") {
1128
- const a = l`
1129
- ${b(
1153
+ const t = l`
1154
+ ${x(
1130
1155
  this.translatableControls,
1131
- (t) => t.field,
1132
- (t) => 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">${t.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) => {
1133
- const s = this.localize.languageName(i) || ce.getName(i) || i, d = (c) => {
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
- [`${t.field}-${i}`]: m
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?.[`${t.field}-${i}`] ?? this.editedItem?.[`${t.field}`] ?? ""} @cx-change=${d}></cx-input>`;
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">${a}</cx-space>`;
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">${b(
1171
+ return l`<cx-grid columns="3" spacing="var(--cx-spacing-small)" wrap="wrap">${x(
1147
1172
  this.sortedEntries,
1148
- ([a]) => a,
1149
- ([a, t]) => l`<cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.columnsMap[a].title}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2">${Y(
1150
- this.columnsMap[a].controlType,
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
- () => l`<cx-asset-picker value=${t} type="image" id=${a} @cx-content-builder-asset-select=${async (d) => {
1155
- if (Array.isArray(d.detail))
1156
- return;
1157
- const { src: c } = d.detail;
1158
- this.editedItem = {
1159
- ...this.editedItem,
1160
- [a]: c
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
- }} @cx-content-builder-asset-delete=${async () => {
1163
- this.editedItem = {
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=${a} data-testid="radio-group-control" horizontal value=${(t || this.columnsMap[a].defaultValue) ?? ""} size="medium" @cx-change=${this.handleChange}>${b(
1172
- this.columnsMap[a].options ?? [],
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[a].api ? l`<cx-dynamic-select data-id=${a} hoist value=${t} @cx-change=${this.handleChange} .api=${this.columnsMap[a].api}></cx-dynamic-select>` : l`<cx-select data-id=${a} hoist value=${t} @cx-change=${this.handleChange}>${b(
1180
- this.columnsMap[a].options ?? [],
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=${a} value=${t} @cx-change=${this.handleChange}></cx-input>`
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=${G.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(
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">${b(
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": p,
1214
- "cx-button": _,
1215
- "cx-dialog": q,
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": P,
1219
- "cx-input": S,
1220
- "cx-line-clamp": R,
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": L
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 a = JSON.parse(e);
1241
- return Array.isArray(a) ? a : [];
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
- x()
1345
+ b()
1316
1346
  ], n.prototype, "editedItem", 2);
1317
1347
  r([
1318
- x()
1348
+ b()
1319
1349
  ], n.prototype, "isAdding", 2);
1320
1350
  r([
1321
- x()
1351
+ b()
1322
1352
  ], n.prototype, "columnsMap", 2);
1323
1353
  r([
1324
- x()
1354
+ b()
1325
1355
  ], n.prototype, "sortedEntries", 2);
1326
1356
  r([
1327
- x()
1357
+ b()
1328
1358
  ], n.prototype, "translatableControls", 2);
1329
1359
  r([
1330
- g("columns"),
1331
- g("supportedLanguages", { waitUntilFirstUpdate: !0 })
1360
+ v("columns"),
1361
+ v("supportedLanguages", { waitUntilFirstUpdate: !0 })
1332
1362
  ], n.prototype, "handleColumnsChange", 1);
1333
1363
  r([
1334
- g("editedItem"),
1335
- g("columns", { waitUntilFirstUpdate: !0 })
1364
+ v("editedItem"),
1365
+ v("columns", { waitUntilFirstUpdate: !0 })
1336
1366
  ], n.prototype, "handleEditedItemChange", 1);
1337
1367
  r([
1338
- g("loadingEvent", { waitUntilFirstUpdate: !0 }),
1339
- g("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
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
- p as a,
1378
+ d as a,
1349
1379
  xe as c,
1350
1380
  pe as u
1351
1381
  };