@orangelogic/design-system 2.60.0 → 2.61.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 (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,37 +1,40 @@
1
- import { C as _ } from "./button.CtCSNRB3.js";
2
- import { C as q, D as j } from "./dialog.B1TORO6S.js";
3
- import G from "../components/grid.js";
1
+ import { C as _ } from "./button.P71VJ5xh.js";
2
+ import { C as q, D as G } from "./dialog.C_75RVVz.js";
3
+ import j from "../components/grid.js";
4
4
  import R from "../components/grid-item.js";
5
5
  import S from "../components/input.js";
6
6
  import P from "../components/line-clamp.js";
7
7
  import F from "../components/radio.js";
8
8
  import B from "../components/radio-group.js";
9
9
  import E from "../components/space.js";
10
- import { C as K, H as U } from "./table.BAr8KKc6.js";
11
- import { C as L } from "./typography.BFpl0WMA.js";
12
- import { i as T, n as o, C as z, x as l, c as D } from "./custom-element.vnXBMQxc.js";
13
- import { c as M } from "./component.styles.CI-v8BZa.js";
14
- import { d as H } from "./popup._w5T7x8f.js";
15
- import { L as O } from "./i18n.BP2FRO1v.js";
16
- import { w as N } from "./watch.BCJD77bD.js";
10
+ import { C as K, H as U } from "./table.CY-iMTWV.js";
11
+ import { C as L } from "./typography.oDzoLbZS.js";
12
+ import { n as o, C as T } from "./lib-cortex-element.CVMmyPMC.js";
13
+ import { c as D } from "./component.styles.DMSLciL5.js";
14
+ import { c as z } from "./custom-element.L4WJXn1j.js";
15
+ import { d as H } from "./debounce.DaHuiSGU.js";
16
+ import { L as M } from "./i18n.DrzK7TPf.js";
17
+ import { w as g } from "./watch.q1sEjPWL.js";
17
18
  import { g as V } from "./_commonjsHelpers.ByX85dGu.js";
18
- import { r as b } from "./state.Cw55xXlb.js";
19
- import { e as f } from "./query.BBf1UFkC.js";
19
+ import { i as O, x as l } from "./lit-element.jLBm65_O.js";
20
+ import { r as b } from "./state.CSDxrqLd.js";
21
+ import { e as y } from "./query.BBf1UFkC.js";
20
22
  import { r as W } from "./choose.BTbF6BAn.js";
21
- import { e as J } from "./class-map.CoZTSvbM.js";
23
+ import { e as J } from "./class-map.BiVq-cVR.js";
22
24
  import { o as X } from "./map.D8heArFD.js";
23
- import { c as x } from "./repeat.CauKaXyy.js";
24
- import { n as g } from "./when.Dr1es41R.js";
25
- import { t as Y } from "./toString.CL_lYXbK.js";
25
+ import { c as x } from "./repeat.DbF2p5ae.js";
26
+ import { n as N } from "./when.Dr1es41R.js";
27
+ import { t as Y } from "./toString.CRT5zqEU.js";
26
28
  import Z from "../components/icon-button.js";
27
- import { C as Q } from "./image.Ycf8RudS.js";
28
- import { t as ee, a as ae, D as I } from "./asset.Ba-CxnNM.js";
29
- import { a as te } from "./index.Cpamj0jB.js";
30
- import { A as v } from "./content-builder.WranV3P4.js";
31
- import { e as ie, t as A } from "./string.BCk3SmdZ.js";
32
- var C, k;
29
+ import { C as Q } from "./image.DZCRhE3G.js";
30
+ import { a as ee, D as w } from "./asset.CG_yXtWK.js";
31
+ import { a as ae } from "./index.Cpamj0jB.js";
32
+ import { A as v } from "./content-builder.Bf7kqzDI.js";
33
+ import { e as te, t as I } from "./string.Cp_XNbnV.js";
34
+ import { t as ie } from "./toast.BXNbwZV8.js";
35
+ var A, k;
33
36
  function ne() {
34
- return k || (k = 1, C = {
37
+ return k || (k = 1, A = {
35
38
  aa: {
36
39
  name: "Afar",
37
40
  nativeName: "Afaraf"
@@ -764,31 +767,31 @@ function ne() {
764
767
  name: "Zulu",
765
768
  nativeName: "isiZulu"
766
769
  }
767
- }), C;
770
+ }), A;
768
771
  }
769
- var w, $;
772
+ var C, $;
770
773
  function se() {
771
- if ($) return w;
774
+ if ($) return C;
772
775
  $ = 1;
773
776
  const e = ne(), a = {}, t = {}, n = [], i = [], m = [];
774
777
  for (const d in e) {
775
778
  const { name: c, nativeName: h } = e[d];
776
779
  a[d] = t[c.toLowerCase()] = t[h.toLowerCase()] = { code: d, name: c, nativeName: h }, n.push(d), i.push(c), m.push(h);
777
780
  }
778
- return w = class y {
781
+ return C = class f {
779
782
  static getLanguages(c = []) {
780
783
  return c.map(
781
- (h) => y.validate(h) ? Object.assign({}, a[h]) : { code: h, name: "", nativeName: "" }
784
+ (h) => f.validate(h) ? Object.assign({}, a[h]) : { code: h, name: "", nativeName: "" }
782
785
  );
783
786
  }
784
787
  static getName(c) {
785
- return y.validate(c) ? e[c].name : "";
788
+ return f.validate(c) ? e[c].name : "";
786
789
  }
787
790
  static getAllNames() {
788
791
  return i.slice();
789
792
  }
790
793
  static getNativeName(c) {
791
- return y.validate(c) ? e[c].nativeName : "";
794
+ return f.validate(c) ? e[c].nativeName : "";
792
795
  }
793
796
  static getAllNativeNames() {
794
797
  return m.slice();
@@ -802,7 +805,7 @@ function se() {
802
805
  static validate(c) {
803
806
  return e.hasOwnProperty(c);
804
807
  }
805
- }, w;
808
+ }, C;
806
809
  }
807
810
  var re = se();
808
811
  const oe = /* @__PURE__ */ V(re);
@@ -811,7 +814,7 @@ function me(e) {
811
814
  var a = ++le;
812
815
  return Y(e) + a;
813
816
  }
814
- const ce = T`
817
+ const ce = O`
815
818
  :host {
816
819
  isolation: isolate;
817
820
  }
@@ -855,9 +858,9 @@ var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, p = (e, a,
855
858
  (d = e[m]) && (i = (n ? d(a, t, i) : d(i)) || i);
856
859
  return n && i && de(a, t, i), i;
857
860
  };
858
- let u = class extends z {
861
+ let u = class extends T {
859
862
  constructor() {
860
- super(...arguments), this.localize = new O(this), this.value = "", this.name = "", this.type = [v.Image], this.multiple = !1, this.accepts = [], this.required = !1, this.disabled = !1, this.onRequestAsset = void 0;
863
+ super(...arguments), this.localize = new M(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 = ee;
861
864
  }
862
865
  async handleRequestAssetClick() {
863
866
  if (this.onRequestAsset)
@@ -873,9 +876,9 @@ let u = class extends z {
873
876
  this.accepts
874
877
  );
875
878
  if (this.accepts.length > 0 && Object.values(e).some(
876
- (t) => !this.accepts.includes(ie(t.src) ?? "")
879
+ (t) => !this.accepts.includes(te(t.src) ?? "")
877
880
  ))
878
- ee(this.localize.term("nonAcceptedExtension", this.accepts), {
881
+ ie(this.localize.term("nonAcceptedExtension", this.accepts), {
879
882
  notificationType: "warning"
880
883
  });
881
884
  else if (this.multiple) {
@@ -886,10 +889,10 @@ let u = class extends z {
886
889
  } else {
887
890
  const { id: t, name: n, src: i, type: m } = e;
888
891
  let d = i;
889
- m === v.Audio && (d = (await ae({
890
- extraFields: [I],
892
+ m === v.Audio && (d = (await this.apiGetAssets({
893
+ extraFields: [w],
891
894
  recordIds: [t]
892
- })).items[0]?.[I]), d && this.emit("cx-content-builder-asset-select", {
895
+ })).items[0]?.[w]), d && this.emit("cx-content-builder-asset-select", {
893
896
  detail: {
894
897
  id: t,
895
898
  name: n,
@@ -927,31 +930,24 @@ let u = class extends z {
927
930
  src=${this.value}
928
931
  alt=${this.name}
929
932
  width="200px"
930
- object-fit=${te.Cover}
933
+ object-fit=${ae.Cover}
931
934
  ></cx-image>`;
932
935
  if (this.name && this.acceptsType(v.Video))
933
936
  return l`
934
- <cx-typography variant="body-2">
935
- ${A(this.name, 30, 11, 11)}
936
- </cx-typography>`;
937
- if (this.name && this.acceptsType(v.Other)) {
937
+ <cx-typography variant="body-2">
938
+ ${I(this.name, 30, 11, 11)}
939
+ </cx-typography>
940
+ `;
941
+ if (this.name && (this.acceptsType(v.Other) || this.acceptsType(v.All))) {
938
942
  const e = this.name.split(",");
939
943
  return l`<cx-typography variant="body-2">
940
- ${A(e[0], 30, 11, 11)}
941
-
942
- ${g(
944
+ ${I(e[0], 30, 11, 11)}
945
+ ${N(
943
946
  e.length > 1,
944
947
  () => l` ${this.localize.term("andOthers", e.length - 1)}`
945
948
  )}
946
949
  </cx-typography>`;
947
950
  }
948
- if (this.name && this.acceptsType(v.All)) {
949
- const e = this.name.split(",");
950
- return l`<cx-typography variant="body-2">
951
- ${A(e[0], 30, 11, 11)}
952
- ${g(e.length > 1, () => l` ${this.localize.term("andOthers", e.length - 1)}`)}
953
- </cx-typography>`;
954
- }
955
951
  return null;
956
952
  }
957
953
  render() {
@@ -964,7 +960,7 @@ let u = class extends z {
964
960
  align-items=${this.acceptsType(v.Image) ? "flex-start" : "center"}
965
961
  >
966
962
  ${this.renderAssetPreview()}
967
- ${g(
963
+ ${N(
968
964
  !this.disabled,
969
965
  () => l`
970
966
  <div class="asset-picker__button-container">
@@ -984,7 +980,7 @@ let u = class extends z {
984
980
  ${this.localize.term("choose")}
985
981
  </cx-button>
986
982
  </div>
987
- ${g(
983
+ ${N(
988
984
  this.value,
989
985
  () => l`<cx-icon-button
990
986
  label=${this.localize.term("delete")}
@@ -999,7 +995,7 @@ let u = class extends z {
999
995
  `;
1000
996
  }
1001
997
  };
1002
- u.styles = [M, ce];
998
+ u.styles = [D, ce];
1003
999
  u.dependencies = {
1004
1000
  "cx-button": _,
1005
1001
  "cx-icon-button": Z,
@@ -1009,10 +1005,10 @@ u.dependencies = {
1009
1005
  "cx-typography": L
1010
1006
  };
1011
1007
  p([
1012
- f(".asset-picker__button")
1008
+ y(".asset-picker__button")
1013
1009
  ], u.prototype, "buttonEl", 2);
1014
1010
  p([
1015
- f(".asset-picker__input")
1011
+ y(".asset-picker__input")
1016
1012
  ], u.prototype, "inputEl", 2);
1017
1013
  p([
1018
1014
  o({ reflect: !0, type: String })
@@ -1051,12 +1047,12 @@ p([
1051
1047
  o({ attribute: "on-request-asset", type: Function })
1052
1048
  ], u.prototype, "onRequestAsset", 2);
1053
1049
  p([
1054
- N("value")
1050
+ g("value")
1055
1051
  ], u.prototype, "handleValueChange", 1);
1056
1052
  u = p([
1057
- D("cx-asset-picker")
1053
+ z("cx-asset-picker")
1058
1054
  ], u);
1059
- const pe = T`
1055
+ const pe = O`
1060
1056
  :host {
1061
1057
  --overridden-min-height: var(--min-height, 160px);
1062
1058
  --overridden-max-height: var(--max-height, 260px);
@@ -1113,9 +1109,9 @@ var he = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, r = (e, a,
1113
1109
  const ge = {
1114
1110
  resizable: !1
1115
1111
  };
1116
- let s = class extends z {
1112
+ let s = class extends T {
1117
1113
  constructor() {
1118
- 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 = {
1114
+ super(...arguments), this.localize = new M(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 = {
1119
1115
  data: [
1120
1116
  {
1121
1117
  icon: "create",
@@ -1399,7 +1395,7 @@ let s = class extends z {
1399
1395
  <cx-dialog
1400
1396
  part="dialog"
1401
1397
  class="list-editor__dialog"
1402
- divider-position=${j.Footer}
1398
+ divider-position=${G.Footer}
1403
1399
  use-overlay-scrollbar
1404
1400
  strategy="fixed"
1405
1401
  ?open=${!!this.editedItem}
@@ -1410,7 +1406,7 @@ let s = class extends z {
1410
1406
  <cx-typography variant="h4">
1411
1407
  ${this.isAdding ? this.addDialogLabel : this.editDialogLabel}
1412
1408
  </cx-typography>
1413
- ${g(
1409
+ ${N(
1414
1410
  !this.isAdding && this.editedItem?.[this.displayField],
1415
1411
  () => l`<cx-typography variant="body3">
1416
1412
  <cx-line-clamp lines="1">
@@ -1419,7 +1415,7 @@ let s = class extends z {
1419
1415
  </cx-typography>`
1420
1416
  )}
1421
1417
  </cx-space>
1422
- ${g(
1418
+ ${N(
1423
1419
  this.tabs.length >= 1,
1424
1420
  () => l`
1425
1421
  <cx-tab-group
@@ -1485,7 +1481,7 @@ let s = class extends z {
1485
1481
  </cx-space>
1486
1482
  </cx-dialog>
1487
1483
  </div>
1488
- ${g(
1484
+ ${N(
1489
1485
  this.canAdd,
1490
1486
  () => l`
1491
1487
  <cx-button
@@ -1502,12 +1498,12 @@ let s = class extends z {
1502
1498
  `;
1503
1499
  }
1504
1500
  };
1505
- s.styles = [M, pe];
1501
+ s.styles = [D, pe];
1506
1502
  s.dependencies = {
1507
1503
  "cx-asset-picker": u,
1508
1504
  "cx-button": _,
1509
1505
  "cx-dialog": q,
1510
- "cx-grid": G,
1506
+ "cx-grid": j,
1511
1507
  "cx-grid-item": R,
1512
1508
  "cx-input": S,
1513
1509
  "cx-line-clamp": P,
@@ -1518,10 +1514,10 @@ s.dependencies = {
1518
1514
  "cx-typography": L
1519
1515
  };
1520
1516
  r([
1521
- f("cx-dialog")
1517
+ y("cx-dialog")
1522
1518
  ], s.prototype, "dialog", 2);
1523
1519
  r([
1524
- f("cx-table")
1520
+ y("cx-table")
1525
1521
  ], s.prototype, "table", 2);
1526
1522
  r([
1527
1523
  o({
@@ -1618,20 +1614,20 @@ r([
1618
1614
  b()
1619
1615
  ], s.prototype, "translatableControls", 2);
1620
1616
  r([
1621
- N("columns"),
1622
- N("supportedLanguages", { waitUntilFirstUpdate: !0 })
1617
+ g("columns"),
1618
+ g("supportedLanguages", { waitUntilFirstUpdate: !0 })
1623
1619
  ], s.prototype, "handleColumnsChange", 1);
1624
1620
  r([
1625
- N("editedItem"),
1626
- N("columns", { waitUntilFirstUpdate: !0 })
1621
+ g("editedItem"),
1622
+ g("columns", { waitUntilFirstUpdate: !0 })
1627
1623
  ], s.prototype, "handleEditedItemChange", 1);
1628
1624
  r([
1629
- N("loadingEvent", { waitUntilFirstUpdate: !0 }),
1630
- N("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
1625
+ g("loadingEvent", { waitUntilFirstUpdate: !0 }),
1626
+ g("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
1631
1627
  H(10)
1632
1628
  ], s.prototype, "handleLoadingEventChange", 1);
1633
1629
  s = r([
1634
- D("cx-list-editor")
1630
+ z("cx-list-editor")
1635
1631
  ], s);
1636
1632
  export {
1637
1633
  s as C,