@orangelogic/design-system 2.134.0 → 2.135.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 (232) hide show
  1. package/library/chunks/asset-link-format.BBWyY5fn.js +2627 -0
  2. package/library/chunks/{button.DYoFn504.js → button.3giRMk79.js} +2 -2
  3. package/library/chunks/{checkbox.BzbWmmJ0.js → checkbox.B-2O517F.js} +2 -2
  4. package/library/chunks/{table.DWcxLbq6.js → color-swatch-group.DC6vIYo4.js} +3133 -2887
  5. package/library/chunks/{color-swatch.0zyBEfL_.js → color-swatch.g3FPUnxM.js} +2 -2
  6. package/library/chunks/{confirm-popover.DpVYvK20.js → confirm-popover.DtndPsMa.js} +3 -3
  7. package/library/chunks/{dialog.BwBD_hJi.js → dialog.BQq3xBeH.js} +2 -2
  8. package/library/chunks/directive-helpers.DEDMV45_.js +42 -0
  9. package/library/chunks/{document-viewer.BM716ovi.js → document-viewer.BQPJD2lJ.js} +8 -8
  10. package/library/chunks/{dom.BXeuEG1b.js → dom.acWb8KCK.js} +1 -1
  11. package/library/chunks/{dot-pagination.B70lV5Av.js → dot-pagination.DBk9Rz1e.js} +1 -1
  12. package/library/chunks/{endpoints.6E17hFiK.js → endpoints.tU0_RZ_7.js} +4 -4
  13. package/library/chunks/{file-on-demand.CsT96fvk.js → file-on-demand.Bnloo9Ui.js} +12 -12
  14. package/library/chunks/folder-select.DuG4dSPm.js +942 -0
  15. package/library/chunks/{form.3af0bYrm.js → form.K1XOtu3S.js} +1 -1
  16. package/library/chunks/{header.BMGvKrdP.js → header.Bpjw08j7.js} +1 -1
  17. package/library/chunks/{i18n.DoMIwXr2.js → i18n.DJikbkDK.js} +48 -12
  18. package/library/chunks/{icon-button.B-Jf9W3v.js → icon-button.xobY-9OH.js} +1 -1
  19. package/library/chunks/{iframe.Cdv6esyS.js → iframe.BkvxcywO.js} +1 -1
  20. package/library/chunks/{image.SLqIVjqc.js → image.KZRXIthe.js} +241 -229
  21. package/library/chunks/{input.CQNhMu4z.js → input.GUw7x9tK.js} +3 -3
  22. package/library/chunks/{keyed.C0rkKrxH.js → keyed.DdOUTIg-.js} +1 -1
  23. package/library/chunks/{live.SCz6M8Gs.js → live.DCegntDo.js} +1 -1
  24. package/library/chunks/{option.SCVixE2L.js → option.uHye0aDT.js} +1 -1
  25. package/library/chunks/{pagination.BFE6Nk3_.js → pagination.D8Hzwlan.js} +6 -6
  26. package/library/chunks/{ref.bzeTdX0K.js → ref.DktKp7fP.js} +1 -1
  27. package/library/chunks/{repeat.DbF2p5ae.js → repeat.CFjcER6_.js} +1 -1
  28. package/library/chunks/{resizable-component.styles.BVhOesNE.js → resizable-component.styles.CAfXABBc.js} +5 -5
  29. package/library/chunks/{string.CbnVBzsd.js → string.CjJ09HK3.js} +14 -11
  30. package/library/chunks/{tab-group.C-p2Dljr.js → tab-group.0_aOE22R.js} +5 -5
  31. package/library/chunks/toast.Bz-j7zP2.js +109 -0
  32. package/library/chunks/{tree.C2mLhREj.js → tree.C14rLLol.js} +3 -3
  33. package/library/chunks/url.-WDYqplj.js +42 -0
  34. package/library/components/alert.js +2 -2
  35. package/library/components/asset-link-format.js +16 -2163
  36. package/library/components/atoms.js +49 -51
  37. package/library/components/audio.js +3 -3
  38. package/library/components/border-input-group.js +2 -2
  39. package/library/components/breadcrumb.js +1 -1
  40. package/library/components/button.js +3 -3
  41. package/library/components/checkbox.js +3 -3
  42. package/library/components/color-picker.js +4 -4
  43. package/library/components/color-swatch-group.js +6 -7
  44. package/library/components/color-swatch.js +3 -3
  45. package/library/components/confirm-popover.js +4 -4
  46. package/library/components/copy-button.js +1 -1
  47. package/library/components/corner-position-input-group.js +3 -3
  48. package/library/components/date-calendar.js +2 -2
  49. package/library/components/details.js +1 -1
  50. package/library/components/dialog.js +3 -3
  51. package/library/components/diff.js +1 -1
  52. package/library/components/document-viewer.js +4 -4
  53. package/library/components/dot-pagination.js +2 -2
  54. package/library/components/drawer.js +2 -2
  55. package/library/components/dropdown.js +2 -2
  56. package/library/components/dynamic-select.js +88 -85
  57. package/library/components/e-chart.js +1 -1
  58. package/library/components/element-clamp.js +2 -2
  59. package/library/components/file-on-demand.js +13 -13
  60. package/library/components/folder-select.js +5 -5
  61. package/library/components/format-bytes.js +1 -1
  62. package/library/components/format-date.js +1 -1
  63. package/library/components/format-number.js +1 -1
  64. package/library/components/format-time.js +1 -1
  65. package/library/components/header.js +2 -2
  66. package/library/components/icon-button.js +2 -2
  67. package/library/components/iframe.js +2 -2
  68. package/library/components/image-comparer.js +1 -1
  69. package/library/components/image.js +6 -5
  70. package/library/components/input.js +4 -4
  71. package/library/components/line-clamp.js +1 -1
  72. package/library/components/masonry.js +3 -3
  73. package/library/components/menu-item.js +2 -2
  74. package/library/components/menu.js +1 -1
  75. package/library/components/molecules.js +27 -29
  76. package/library/components/option.js +2 -2
  77. package/library/components/organisms.js +6 -6
  78. package/library/components/padding-input-group.js +2 -2
  79. package/library/components/pagination.js +7 -7
  80. package/library/components/popup.js +1 -1
  81. package/library/components/position-picker.js +1 -1
  82. package/library/components/progress-bar.js +1 -1
  83. package/library/components/progress-ring.js +1 -1
  84. package/library/components/radio-group.js +1 -1
  85. package/library/components/range.js +5 -5
  86. package/library/components/rating.js +2 -2
  87. package/library/components/relative-time.js +1 -1
  88. package/library/components/select.js +10 -7
  89. package/library/components/shadow-input-group.js +2 -2
  90. package/library/components/share-option-list.js +3 -3
  91. package/library/components/sidebar.js +1 -1
  92. package/library/components/size-input-group.js +3 -3
  93. package/library/components/spinner.js +1 -1
  94. package/library/components/split-panel.js +1 -1
  95. package/library/components/stepper-wizard.js +1 -1
  96. package/library/components/switch.js +2 -2
  97. package/library/components/tab-group.js +5 -5
  98. package/library/components/tab.js +2 -2
  99. package/library/components/tag.js +2 -2
  100. package/library/components/textarea.js +2 -2
  101. package/library/components/timecode.js +1 -1
  102. package/library/components/tooltip.js +1 -1
  103. package/library/components/tree-item.js +4 -4
  104. package/library/components/tree.js +2 -2
  105. package/library/components/typeface.js +2 -2
  106. package/library/components/types.js +46083 -43779
  107. package/library/components/video.js +3 -3
  108. package/library/package.json +3 -1
  109. package/library/packages/atoms/src/components/image/image.d.ts +3 -0
  110. package/library/packages/atoms/src/components/select/select.d.ts +6 -0
  111. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -0
  112. package/library/packages/atoms/src/index.d.ts +0 -1
  113. package/library/packages/events/src/cx-folder-select-selection-seeded.d.ts +6 -0
  114. package/library/packages/events/src/cx-image-src-resolved.d.ts +9 -0
  115. package/library/packages/events/src/cx-pdf-viewer-annotation-draw-mode-change.d.ts +10 -0
  116. package/library/packages/events/src/cx-pdf-viewer-annotation-draw-params-change.d.ts +11 -0
  117. package/library/packages/events/src/cx-pdf-viewer-more-options-select.d.ts +8 -0
  118. package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-mode-change.d.ts +10 -0
  119. package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-params-change.d.ts +11 -0
  120. package/library/packages/events/src/cx-pdf-viewer-toolbar-click.d.ts +8 -0
  121. package/library/packages/events/src/cx-pdf-viewer-toolbar-page-change.d.ts +8 -0
  122. package/library/packages/events/src/cx-pdf-viewer-toolbar-scale-change.d.ts +8 -0
  123. package/library/packages/events/src/cx-pdf-viewer-toolbar-view-toggle.d.ts +11 -0
  124. package/library/packages/events/src/cx-pdf-viewer-view-on-asset-toggle.d.ts +11 -0
  125. package/library/packages/events/src/cx-video-src-resolved.d.ts +8 -0
  126. package/library/packages/events/src/events.d.ts +13 -0
  127. package/library/packages/hybrid/table-core/src/index.d.ts +3 -0
  128. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions-dropdown.d.ts +8 -8
  129. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.d.ts +6 -5
  130. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-dropdown-filter.d.ts +4 -4
  131. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-group-by-dropdown.d.ts +4 -4
  132. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-saved-search-dropdown.d.ts +6 -5
  133. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.d.ts +12 -12
  134. package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.d.ts +11 -11
  135. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/Clipboard.d.ts +1 -1
  136. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/extensions/extensions.d.ts +1 -1
  137. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/History.d.ts +1 -1
  138. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/extensions/extensions.d.ts +1 -1
  139. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/HoverMenu/HoverMenu.d.ts +1 -1
  140. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Import/defaults/importers.d.ts +1 -1
  141. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/SelectRange.d.ts +4 -4
  142. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/extensions/extensions.d.ts +2 -2
  143. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +1 -1
  144. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
  145. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +32 -0
  146. package/library/packages/molecules/src/folder-select/folder-select.d.ts +20 -3
  147. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +5 -0
  148. package/library/packages/molecules/src/index.d.ts +1 -1
  149. package/library/packages/molecules/src/library-index.d.ts +0 -1
  150. package/library/packages/molecules/src/pdf-viewer-toolbar/components/index.d.ts +3 -0
  151. package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.d.ts +92 -0
  152. package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.d.ts +43 -0
  153. package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.styles.d.ts +2 -0
  154. package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.d.ts +42 -0
  155. package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.styles.d.ts +2 -0
  156. package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +101 -0
  157. package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.styles.d.ts +2 -0
  158. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +66 -0
  159. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +1 -1
  160. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -1
  161. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.constants.d.ts +1 -1
  162. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +1 -1
  163. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -0
  164. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -9
  165. package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -7
  166. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -14
  167. package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
  168. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +9 -1
  169. package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +1 -1
  170. package/library/packages/organisms/src/index.d.ts +1 -0
  171. package/library/packages/{molecules → organisms}/src/list-editor/list-editor.d.ts +9 -3
  172. package/library/packages/organisms/src/list-editor/list-editor.styles.d.ts +2 -0
  173. package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +1 -1
  174. package/library/packages/services/src/api/folder/folder.types.d.ts +9 -2
  175. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +16 -0
  176. package/library/packages/types/src/content-builder.d.ts +1 -1
  177. package/library/packages/types/src/dam-view.d.ts +1 -0
  178. package/library/packages/types/src/folder-select.d.ts +8 -1
  179. package/library/packages/types/src/pdf-viewer-toolbar.d.ts +82 -0
  180. package/library/packages/utils/src/custom-element/i18n.d.ts +43 -7
  181. package/library/packages/utils/src/string/string.d.ts +1 -1
  182. package/library/packages/utils/src/url/url.d.ts +12 -2
  183. package/library/react-web-component.d.ts +514 -913
  184. package/library/utils.js +200 -199
  185. package/package.json +3 -1
  186. package/library/chunks/asset.CcxcYY9d.js +0 -469
  187. package/library/chunks/color-swatch-group.Dx6-kWC-.js +0 -362
  188. package/library/chunks/directive-helpers.Dm4rc594.js +0 -37
  189. package/library/chunks/folder-select.DwZ7lczk.js +0 -884
  190. package/library/chunks/list-editor.BhMNYL8R.js +0 -1394
  191. package/library/chunks/responsive.Cf65FCWd.js +0 -17
  192. package/library/chunks/toast.D3AW3RWv.js +0 -94
  193. package/library/chunks/url.Cj9cIQXJ.js +0 -27
  194. package/library/components/list-editor.d.ts +0 -3
  195. package/library/components/list-editor.js +0 -33
  196. package/library/components/table.d.ts +0 -3
  197. package/library/components/table.js +0 -84
  198. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/index.d.ts +0 -0
  199. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.d.ts +0 -0
  200. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.styles.d.ts +0 -0
  201. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.styles.d.ts +0 -0
  202. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.styles.d.ts +0 -0
  203. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +0 -0
  204. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +0 -0
  205. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/filter-controller.d.ts +0 -0
  206. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/select-all-controller.d.ts +0 -0
  207. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-alert.styles.d.ts +0 -0
  208. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-base.styles.d.ts +0 -0
  209. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-calcs.styles.d.ts +0 -0
  210. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-clickable-cell.styles.d.ts +0 -0
  211. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-data-tree.styles.d.ts +0 -0
  212. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-edit.styles.d.ts +0 -0
  213. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-footer.styles.d.ts +0 -0
  214. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-format.styles.d.ts +0 -0
  215. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-group-rows.styles.d.ts +0 -0
  216. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-header.styles.d.ts +0 -0
  217. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-hover-menu.styles.d.ts +0 -0
  218. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-move-rows.styles.d.ts +0 -0
  219. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-page.styles.d.ts +0 -0
  220. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-placeholder.styles.d.ts +0 -0
  221. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-popup.styles.d.ts +0 -0
  222. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-print.styles.d.ts +0 -0
  223. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-resize.styles.d.ts +0 -0
  224. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-responsive-layout.styles.d.ts +0 -0
  225. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rows.styles.d.ts +0 -0
  226. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rtl.styles.d.ts +0 -0
  227. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-select-range.styles.d.ts +0 -0
  228. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-spreadsheet.styles.d.ts +0 -0
  229. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table-data-loader.d.ts +0 -0
  230. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.styles.d.ts +0 -0
  231. /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.utils.d.ts +0 -0
  232. /package/library/packages/molecules/src/{list-editor/list-editor.styles.d.ts → pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.styles.d.ts} +0 -0
@@ -1,1394 +0,0 @@
1
- import { C as k } from "./button.DYoFn504.js";
2
- import { C as G, D as R } from "./dialog.BwBD_hJi.js";
3
- import B from "../components/grid.js";
4
- import F from "../components/grid-item.js";
5
- import { C as E } from "./input.CQNhMu4z.js";
6
- import P from "../components/line-clamp.js";
7
- import { C as K } from "./option.SCVixE2L.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.DWcxLbq6.js";
13
- import { C as L } from "./typography.DJC_UXgs.js";
14
- import { n as r, 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.DaHuiSGU.js";
19
- import { L as O } from "./i18n.DoMIwXr2.js";
20
- import { w as v } from "./watch.CThbualB.js";
21
- import { a as Z } from "./_commonjsHelpers.DQNKXVTB.js";
22
- import { i as j, x as l } from "./lit-element.jLBm65_O.js";
23
- import { r as b } from "./state.CSDxrqLd.js";
24
- import { e as y } from "./query.BBf1UFkC.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
- import { c as x } from "./repeat.DbF2p5ae.js";
29
- import { n as N } from "./when.Dr1es41R.js";
30
- import { t as ae } from "./toString.CAY8lys2.js";
31
- import { C as ie } from "./icon-button.B-Jf9W3v.js";
32
- import { C as ne } from "./image.SLqIVjqc.js";
33
- import { a as se, F as I, b as w } from "./asset.CcxcYY9d.js";
34
- import { a as re } from "./index.Cpamj0jB.js";
35
- import { A as g } from "./content-builder.BGzxZUgi.js";
36
- import { b as oe, t as $ } from "./string.CbnVBzsd.js";
37
- import { t as le } from "./toast.D3AW3RWv.js";
38
- var C, _;
39
- function me() {
40
- return _ || (_ = 1, C = {
41
- aa: {
42
- name: "Afar",
43
- nativeName: "Afaraf"
44
- },
45
- ab: {
46
- name: "Abkhaz",
47
- nativeName: "аҧсуа бызшәа"
48
- },
49
- ae: {
50
- name: "Avestan",
51
- nativeName: "avesta"
52
- },
53
- af: {
54
- name: "Afrikaans",
55
- nativeName: "Afrikaans"
56
- },
57
- ak: {
58
- name: "Akan",
59
- nativeName: "Akan"
60
- },
61
- am: {
62
- name: "Amharic",
63
- nativeName: "አማርኛ"
64
- },
65
- an: {
66
- name: "Aragonese",
67
- nativeName: "aragonés"
68
- },
69
- ar: {
70
- name: "Arabic",
71
- nativeName: "العربية"
72
- },
73
- as: {
74
- name: "Assamese",
75
- nativeName: "অসমীয়া"
76
- },
77
- av: {
78
- name: "Avaric",
79
- nativeName: "авар мацӀ"
80
- },
81
- ay: {
82
- name: "Aymara",
83
- nativeName: "aymar aru"
84
- },
85
- az: {
86
- name: "Azerbaijani",
87
- nativeName: "azərbaycan dili"
88
- },
89
- ba: {
90
- name: "Bashkir",
91
- nativeName: "башҡорт теле"
92
- },
93
- be: {
94
- name: "Belarusian",
95
- nativeName: "беларуская мова"
96
- },
97
- bg: {
98
- name: "Bulgarian",
99
- nativeName: "български език"
100
- },
101
- bi: {
102
- name: "Bislama",
103
- nativeName: "Bislama"
104
- },
105
- bm: {
106
- name: "Bambara",
107
- nativeName: "bamanankan"
108
- },
109
- bn: {
110
- name: "Bengali",
111
- nativeName: "বাংলা"
112
- },
113
- bo: {
114
- name: "Tibetan",
115
- nativeName: "བོད་ཡིག"
116
- },
117
- br: {
118
- name: "Breton",
119
- nativeName: "brezhoneg"
120
- },
121
- bs: {
122
- name: "Bosnian",
123
- nativeName: "bosanski jezik"
124
- },
125
- ca: {
126
- name: "Catalan",
127
- nativeName: "Català"
128
- },
129
- ce: {
130
- name: "Chechen",
131
- nativeName: "нохчийн мотт"
132
- },
133
- ch: {
134
- name: "Chamorro",
135
- nativeName: "Chamoru"
136
- },
137
- co: {
138
- name: "Corsican",
139
- nativeName: "corsu"
140
- },
141
- cr: {
142
- name: "Cree",
143
- nativeName: "ᓀᐦᐃᔭᐍᐏᐣ"
144
- },
145
- cs: {
146
- name: "Czech",
147
- nativeName: "Čeština"
148
- },
149
- cu: {
150
- name: "Old Church Slavonic",
151
- nativeName: "ѩзыкъ словѣньскъ"
152
- },
153
- cv: {
154
- name: "Chuvash",
155
- nativeName: "чӑваш чӗлхи"
156
- },
157
- cy: {
158
- name: "Welsh",
159
- nativeName: "Cymraeg"
160
- },
161
- da: {
162
- name: "Danish",
163
- nativeName: "Dansk"
164
- },
165
- de: {
166
- name: "German",
167
- nativeName: "Deutsch"
168
- },
169
- dv: {
170
- name: "Divehi",
171
- nativeName: "ދިވެހި"
172
- },
173
- dz: {
174
- name: "Dzongkha",
175
- nativeName: "རྫོང་ཁ"
176
- },
177
- ee: {
178
- name: "Ewe",
179
- nativeName: "Eʋegbe"
180
- },
181
- el: {
182
- name: "Greek",
183
- nativeName: "Ελληνικά"
184
- },
185
- en: {
186
- name: "English",
187
- nativeName: "English"
188
- },
189
- eo: {
190
- name: "Esperanto",
191
- nativeName: "Esperanto"
192
- },
193
- es: {
194
- name: "Spanish",
195
- nativeName: "Español"
196
- },
197
- et: {
198
- name: "Estonian",
199
- nativeName: "eesti"
200
- },
201
- eu: {
202
- name: "Basque",
203
- nativeName: "euskara"
204
- },
205
- fa: {
206
- name: "Persian",
207
- nativeName: "فارسی"
208
- },
209
- ff: {
210
- name: "Fula",
211
- nativeName: "Fulfulde"
212
- },
213
- fi: {
214
- name: "Finnish",
215
- nativeName: "suomi"
216
- },
217
- fj: {
218
- name: "Fijian",
219
- nativeName: "vosa Vakaviti"
220
- },
221
- fo: {
222
- name: "Faroese",
223
- nativeName: "Føroyskt"
224
- },
225
- fr: {
226
- name: "French",
227
- nativeName: "Français"
228
- },
229
- fy: {
230
- name: "Western Frisian",
231
- nativeName: "Frysk"
232
- },
233
- ga: {
234
- name: "Irish",
235
- nativeName: "Gaeilge"
236
- },
237
- gd: {
238
- name: "Scottish Gaelic",
239
- nativeName: "Gàidhlig"
240
- },
241
- gl: {
242
- name: "Galician",
243
- nativeName: "galego"
244
- },
245
- gn: {
246
- name: "Guaraní",
247
- nativeName: "Avañe'ẽ"
248
- },
249
- gu: {
250
- name: "Gujarati",
251
- nativeName: "ગુજરાતી"
252
- },
253
- gv: {
254
- name: "Manx",
255
- nativeName: "Gaelg"
256
- },
257
- ha: {
258
- name: "Hausa",
259
- nativeName: "هَوُسَ"
260
- },
261
- he: {
262
- name: "Hebrew",
263
- nativeName: "עברית"
264
- },
265
- hi: {
266
- name: "Hindi",
267
- nativeName: "हिन्दी"
268
- },
269
- ho: {
270
- name: "Hiri Motu",
271
- nativeName: "Hiri Motu"
272
- },
273
- hr: {
274
- name: "Croatian",
275
- nativeName: "Hrvatski"
276
- },
277
- ht: {
278
- name: "Haitian",
279
- nativeName: "Kreyòl ayisyen"
280
- },
281
- hu: {
282
- name: "Hungarian",
283
- nativeName: "magyar"
284
- },
285
- hy: {
286
- name: "Armenian",
287
- nativeName: "Հայերեն"
288
- },
289
- hz: {
290
- name: "Herero",
291
- nativeName: "Otjiherero"
292
- },
293
- ia: {
294
- name: "Interlingua",
295
- nativeName: "Interlingua"
296
- },
297
- id: {
298
- name: "Indonesian",
299
- nativeName: "Bahasa Indonesia"
300
- },
301
- ie: {
302
- name: "Interlingue",
303
- nativeName: "Interlingue"
304
- },
305
- ig: {
306
- name: "Igbo",
307
- nativeName: "Asụsụ Igbo"
308
- },
309
- ii: {
310
- name: "Nuosu",
311
- nativeName: "ꆈꌠ꒿ Nuosuhxop"
312
- },
313
- ik: {
314
- name: "Inupiaq",
315
- nativeName: "Iñupiaq"
316
- },
317
- io: {
318
- name: "Ido",
319
- nativeName: "Ido"
320
- },
321
- is: {
322
- name: "Icelandic",
323
- nativeName: "Íslenska"
324
- },
325
- it: {
326
- name: "Italian",
327
- nativeName: "Italiano"
328
- },
329
- iu: {
330
- name: "Inuktitut",
331
- nativeName: "ᐃᓄᒃᑎᑐᑦ"
332
- },
333
- ja: {
334
- name: "Japanese",
335
- nativeName: "日本語"
336
- },
337
- jv: {
338
- name: "Javanese",
339
- nativeName: "basa Jawa"
340
- },
341
- ka: {
342
- name: "Georgian",
343
- nativeName: "ქართული"
344
- },
345
- kg: {
346
- name: "Kongo",
347
- nativeName: "Kikongo"
348
- },
349
- ki: {
350
- name: "Kikuyu",
351
- nativeName: "Gĩkũyũ"
352
- },
353
- kj: {
354
- name: "Kwanyama",
355
- nativeName: "Kuanyama"
356
- },
357
- kk: {
358
- name: "Kazakh",
359
- nativeName: "қазақ тілі"
360
- },
361
- kl: {
362
- name: "Kalaallisut",
363
- nativeName: "kalaallisut"
364
- },
365
- km: {
366
- name: "Khmer",
367
- nativeName: "ខេមរភាសា"
368
- },
369
- kn: {
370
- name: "Kannada",
371
- nativeName: "ಕನ್ನಡ"
372
- },
373
- ko: {
374
- name: "Korean",
375
- nativeName: "한국어"
376
- },
377
- kr: {
378
- name: "Kanuri",
379
- nativeName: "Kanuri"
380
- },
381
- ks: {
382
- name: "Kashmiri",
383
- nativeName: "कश्मीरी"
384
- },
385
- ku: {
386
- name: "Kurdish",
387
- nativeName: "Kurdî"
388
- },
389
- kv: {
390
- name: "Komi",
391
- nativeName: "коми кыв"
392
- },
393
- kw: {
394
- name: "Cornish",
395
- nativeName: "Kernewek"
396
- },
397
- ky: {
398
- name: "Kyrgyz",
399
- nativeName: "Кыргызча"
400
- },
401
- la: {
402
- name: "Latin",
403
- nativeName: "latine"
404
- },
405
- lb: {
406
- name: "Luxembourgish",
407
- nativeName: "Lëtzebuergesch"
408
- },
409
- lg: {
410
- name: "Ganda",
411
- nativeName: "Luganda"
412
- },
413
- li: {
414
- name: "Limburgish",
415
- nativeName: "Limburgs"
416
- },
417
- ln: {
418
- name: "Lingala",
419
- nativeName: "Lingála"
420
- },
421
- lo: {
422
- name: "Lao",
423
- nativeName: "ພາສາລາວ"
424
- },
425
- lt: {
426
- name: "Lithuanian",
427
- nativeName: "lietuvių kalba"
428
- },
429
- lu: {
430
- name: "Luba-Katanga",
431
- nativeName: "Kiluba"
432
- },
433
- lv: {
434
- name: "Latvian",
435
- nativeName: "latviešu valoda"
436
- },
437
- mg: {
438
- name: "Malagasy",
439
- nativeName: "fiteny malagasy"
440
- },
441
- mh: {
442
- name: "Marshallese",
443
- nativeName: "Kajin M̧ajeļ"
444
- },
445
- mi: {
446
- name: "Māori",
447
- nativeName: "te reo Māori"
448
- },
449
- mk: {
450
- name: "Macedonian",
451
- nativeName: "македонски јазик"
452
- },
453
- ml: {
454
- name: "Malayalam",
455
- nativeName: "മലയാളം"
456
- },
457
- mn: {
458
- name: "Mongolian",
459
- nativeName: "Монгол хэл"
460
- },
461
- mr: {
462
- name: "Marathi",
463
- nativeName: "मराठी"
464
- },
465
- ms: {
466
- name: "Malay",
467
- nativeName: "Bahasa Melayu"
468
- },
469
- mt: {
470
- name: "Maltese",
471
- nativeName: "Malti"
472
- },
473
- my: {
474
- name: "Burmese",
475
- nativeName: "ဗမာစာ"
476
- },
477
- na: {
478
- name: "Nauru",
479
- nativeName: "Dorerin Naoero"
480
- },
481
- nb: {
482
- name: "Norwegian Bokmål",
483
- nativeName: "Norsk bokmål"
484
- },
485
- nd: {
486
- name: "Northern Ndebele",
487
- nativeName: "isiNdebele"
488
- },
489
- ne: {
490
- name: "Nepali",
491
- nativeName: "नेपाली"
492
- },
493
- ng: {
494
- name: "Ndonga",
495
- nativeName: "Owambo"
496
- },
497
- nl: {
498
- name: "Dutch",
499
- nativeName: "Nederlands"
500
- },
501
- nn: {
502
- name: "Norwegian Nynorsk",
503
- nativeName: "Norsk nynorsk"
504
- },
505
- no: {
506
- name: "Norwegian",
507
- nativeName: "Norsk"
508
- },
509
- nr: {
510
- name: "Southern Ndebele",
511
- nativeName: "isiNdebele"
512
- },
513
- nv: {
514
- name: "Navajo",
515
- nativeName: "Diné bizaad"
516
- },
517
- ny: {
518
- name: "Chichewa",
519
- nativeName: "chiCheŵa"
520
- },
521
- oc: {
522
- name: "Occitan",
523
- nativeName: "occitan"
524
- },
525
- oj: {
526
- name: "Ojibwe",
527
- nativeName: "ᐊᓂᔑᓈᐯᒧᐎᓐ"
528
- },
529
- om: {
530
- name: "Oromo",
531
- nativeName: "Afaan Oromoo"
532
- },
533
- or: {
534
- name: "Oriya",
535
- nativeName: "ଓଡ଼ିଆ"
536
- },
537
- os: {
538
- name: "Ossetian",
539
- nativeName: "ирон æвзаг"
540
- },
541
- pa: {
542
- name: "Panjabi",
543
- nativeName: "ਪੰਜਾਬੀ"
544
- },
545
- pi: {
546
- name: "Pāli",
547
- nativeName: "पाऴि"
548
- },
549
- pl: {
550
- name: "Polish",
551
- nativeName: "Polski"
552
- },
553
- ps: {
554
- name: "Pashto",
555
- nativeName: "پښتو"
556
- },
557
- pt: {
558
- name: "Portuguese",
559
- nativeName: "Português"
560
- },
561
- qu: {
562
- name: "Quechua",
563
- nativeName: "Runa Simi"
564
- },
565
- rm: {
566
- name: "Romansh",
567
- nativeName: "rumantsch grischun"
568
- },
569
- rn: {
570
- name: "Kirundi",
571
- nativeName: "Ikirundi"
572
- },
573
- ro: {
574
- name: "Romanian",
575
- nativeName: "Română"
576
- },
577
- ru: {
578
- name: "Russian",
579
- nativeName: "Русский"
580
- },
581
- rw: {
582
- name: "Kinyarwanda",
583
- nativeName: "Ikinyarwanda"
584
- },
585
- sa: {
586
- name: "Sanskrit",
587
- nativeName: "संस्कृतम्"
588
- },
589
- sc: {
590
- name: "Sardinian",
591
- nativeName: "sardu"
592
- },
593
- sd: {
594
- name: "Sindhi",
595
- nativeName: "सिन्धी"
596
- },
597
- se: {
598
- name: "Northern Sami",
599
- nativeName: "Davvisámegiella"
600
- },
601
- sg: {
602
- name: "Sango",
603
- nativeName: "yângâ tî sängö"
604
- },
605
- si: {
606
- name: "Sinhala",
607
- nativeName: "සිංහල"
608
- },
609
- sk: {
610
- name: "Slovak",
611
- nativeName: "Slovenčina"
612
- },
613
- sl: {
614
- name: "Slovenian",
615
- nativeName: "slovenščina"
616
- },
617
- sm: {
618
- name: "Samoan",
619
- nativeName: "gagana fa'a Samoa"
620
- },
621
- sn: {
622
- name: "Shona",
623
- nativeName: "chiShona"
624
- },
625
- so: {
626
- name: "Somali",
627
- nativeName: "Soomaaliga"
628
- },
629
- sq: {
630
- name: "Albanian",
631
- nativeName: "Shqip"
632
- },
633
- sr: {
634
- name: "Serbian",
635
- nativeName: "српски језик"
636
- },
637
- ss: {
638
- name: "Swati",
639
- nativeName: "SiSwati"
640
- },
641
- st: {
642
- name: "Southern Sotho",
643
- nativeName: "Sesotho"
644
- },
645
- su: {
646
- name: "Sundanese",
647
- nativeName: "Basa Sunda"
648
- },
649
- sv: {
650
- name: "Swedish",
651
- nativeName: "Svenska"
652
- },
653
- sw: {
654
- name: "Swahili",
655
- nativeName: "Kiswahili"
656
- },
657
- ta: {
658
- name: "Tamil",
659
- nativeName: "தமிழ்"
660
- },
661
- te: {
662
- name: "Telugu",
663
- nativeName: "తెలుగు"
664
- },
665
- tg: {
666
- name: "Tajik",
667
- nativeName: "тоҷикӣ"
668
- },
669
- th: {
670
- name: "Thai",
671
- nativeName: "ไทย"
672
- },
673
- ti: {
674
- name: "Tigrinya",
675
- nativeName: "ትግርኛ"
676
- },
677
- tk: {
678
- name: "Turkmen",
679
- nativeName: "Türkmençe"
680
- },
681
- tl: {
682
- name: "Tagalog",
683
- nativeName: "Wikang Tagalog"
684
- },
685
- tn: {
686
- name: "Tswana",
687
- nativeName: "Setswana"
688
- },
689
- to: {
690
- name: "Tonga",
691
- nativeName: "faka Tonga"
692
- },
693
- tr: {
694
- name: "Turkish",
695
- nativeName: "Türkçe"
696
- },
697
- ts: {
698
- name: "Tsonga",
699
- nativeName: "Xitsonga"
700
- },
701
- tt: {
702
- name: "Tatar",
703
- nativeName: "татар теле"
704
- },
705
- tw: {
706
- name: "Twi",
707
- nativeName: "Twi"
708
- },
709
- ty: {
710
- name: "Tahitian",
711
- nativeName: "Reo Tahiti"
712
- },
713
- ug: {
714
- name: "Uyghur",
715
- nativeName: "ئۇيغۇرچە‎"
716
- },
717
- uk: {
718
- name: "Ukrainian",
719
- nativeName: "Українська"
720
- },
721
- ur: {
722
- name: "Urdu",
723
- nativeName: "اردو"
724
- },
725
- uz: {
726
- name: "Uzbek",
727
- nativeName: "Ўзбек"
728
- },
729
- ve: {
730
- name: "Venda",
731
- nativeName: "Tshivenḓa"
732
- },
733
- vi: {
734
- name: "Vietnamese",
735
- nativeName: "Tiếng Việt"
736
- },
737
- vo: {
738
- name: "Volapük",
739
- nativeName: "Volapük"
740
- },
741
- wa: {
742
- name: "Walloon",
743
- nativeName: "walon"
744
- },
745
- wo: {
746
- name: "Wolof",
747
- nativeName: "Wollof"
748
- },
749
- xh: {
750
- name: "Xhosa",
751
- nativeName: "isiXhosa"
752
- },
753
- yi: {
754
- name: "Yiddish",
755
- nativeName: "ייִדיש"
756
- },
757
- yo: {
758
- name: "Yoruba",
759
- nativeName: "Yorùbá"
760
- },
761
- za: {
762
- name: "Zhuang",
763
- nativeName: "Saɯ cueŋƅ"
764
- },
765
- zh: {
766
- name: "Chinese",
767
- nativeName: "中文"
768
- },
769
- zu: {
770
- name: "Zulu",
771
- nativeName: "isiZulu"
772
- }
773
- }), C;
774
- }
775
- var A, S;
776
- function ce() {
777
- if (S) return A;
778
- S = 1;
779
- const e = me(), t = {}, a = {}, i = [], s = [], u = [];
780
- for (const d in e) {
781
- const { name: m, nativeName: h } = e[d];
782
- t[d] = a[m.toLowerCase()] = a[h.toLowerCase()] = { code: d, name: m, nativeName: h }, i.push(d), s.push(m), u.push(h);
783
- }
784
- return A = class f {
785
- static getLanguages(m = []) {
786
- return m.map(
787
- (h) => f.validate(h) ? Object.assign({}, t[h]) : { code: h, name: "", nativeName: "" }
788
- );
789
- }
790
- static getName(m) {
791
- return f.validate(m) ? e[m].name : "";
792
- }
793
- static getAllNames() {
794
- return s.slice();
795
- }
796
- static getNativeName(m) {
797
- return f.validate(m) ? e[m].nativeName : "";
798
- }
799
- static getAllNativeNames() {
800
- return u.slice();
801
- }
802
- static getCode(m) {
803
- return m = m.toLowerCase(), a.hasOwnProperty(m) ? a[m].code : "";
804
- }
805
- static getAllCodes() {
806
- return i.slice();
807
- }
808
- static validate(m) {
809
- return e.hasOwnProperty(m);
810
- }
811
- }, A;
812
- }
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
- }
820
- const ve = j`: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, p = (e, t, a, i) => {
822
- for (var s = i > 1 ? void 0 : i ? be(t, a) : t, u = e.length - 1, d; u >= 0; u--)
823
- (d = e[u]) && (s = (i ? d(t, a, s) : d(s)) || s);
824
- return i && s && ge(t, a, s), s;
825
- };
826
- let c = class extends D {
827
- constructor() {
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.restrict = !1, this.onRequestAsset = void 0, this.recordId = "", this.isSiteBuilder = !1, this.previewSrc = "", this.assetTitle = "", this.apiGetAssets = se;
829
- }
830
- async handleRequestAssetClick() {
831
- if (this.onRequestAsset)
832
- try {
833
- this.emit("cx-asset-request-status", {
834
- detail: {
835
- busy: !0
836
- }
837
- });
838
- const e = await this.onRequestAsset(
839
- this.type.join(" "),
840
- this.multiple,
841
- this.accepts,
842
- this.restrict ? this.type.join(" ") : void 0
843
- );
844
- if (this.accepts.length > 0 && Object.values(e).some(
845
- (a) => !this.accepts.includes(oe(a.src) ?? "")
846
- ))
847
- le(this.localize.term("nonAcceptedExtension", this.accepts), {
848
- notificationType: "warning"
849
- });
850
- else if (this.multiple) {
851
- const a = Object.values(e);
852
- this.emit("cx-content-builder-asset-select", {
853
- detail: a
854
- });
855
- } else {
856
- const { extension: a, id: i, identifier: s, name: u, parentAssetID: d, representative: m, src: h, type: q } = e;
857
- this.emit("cx-content-builder-asset-select", {
858
- detail: {
859
- extension: a,
860
- id: i,
861
- identifier: s,
862
- name: u,
863
- parentAssetID: d,
864
- representative: m,
865
- src: h,
866
- type: q
867
- }
868
- });
869
- }
870
- } catch {
871
- } finally {
872
- this.emit("cx-asset-request-status", {
873
- detail: {
874
- busy: !1
875
- }
876
- });
877
- }
878
- }
879
- async handleValueChange() {
880
- await this.updateComplete, this.inputEl?.setCustomValidity(
881
- !this.required || this.value ? "" : this.localize.term("pleaseSelectAnAsset")
882
- );
883
- }
884
- async handleRecordIdChange() {
885
- const e = this.recordId.split(" ").filter((t) => t !== "");
886
- if (e.length === 0) {
887
- this.previewSrc = "", this.assetTitle = "";
888
- return;
889
- }
890
- try {
891
- const t = await this.apiGetAssets({
892
- extraFields: ["path_TR1", I, w],
893
- getPermanentAssetsPaths: !0,
894
- isSiteBuilder: this.isSiteBuilder,
895
- recordIds: e
896
- }), [a] = t.items;
897
- this.previewSrc = a?.path_TR1 || a?.originalUrl || "", this.assetTitle = t.items.map((i) => i[I] || i[w] || "").filter((i) => i !== "").join(",");
898
- } catch {
899
- this.previewSrc = "", this.assetTitle = "";
900
- }
901
- }
902
- handleDeleteClick() {
903
- this.emit("cx-content-builder-asset-delete");
904
- }
905
- /** True when the picker accepts this asset type. */
906
- acceptsType(e) {
907
- return this.type.includes(e);
908
- }
909
- renderAssetPreview() {
910
- if ((this.previewSrc || this.value) && this.acceptsType(g.Image))
911
- return l`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.assetTitle} width="200px" object-fit=${re.Cover}></cx-image>`;
912
- if (this.assetTitle && (this.acceptsType(g.Audio) || this.acceptsType(g.Video)))
913
- return l`<cx-typography variant="body-2">${$(this.assetTitle, 30, 11, 11)}</cx-typography>`;
914
- if (this.assetTitle && (this.acceptsType(g.Other) || this.acceptsType(g.All))) {
915
- const e = this.assetTitle.split(",");
916
- return l`<cx-typography variant="body-2">${$(e[0], 30, 11, 11)}
917
- ${N(
918
- e.length > 1,
919
- () => l` ${this.localize.term("andOthers", e.length - 1)}`
920
- )}</cx-typography>`;
921
- }
922
- return null;
923
- }
924
- render() {
925
- 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()}
926
- ${N(
927
- !this.disabled,
928
- () => 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(
929
- this.value,
930
- () => l`<cx-icon-button label=${this.localize.term("delete")} name="delete" @click=${this.handleDeleteClick}></cx-icon-button>`
931
- )}
932
- `
933
- )}</cx-space>`;
934
- }
935
- };
936
- c.styles = [M, ve];
937
- c.dependencies = {
938
- "cx-button": k,
939
- "cx-icon-button": ie,
940
- "cx-image": ne,
941
- "cx-input": E,
942
- "cx-space": T,
943
- "cx-typography": L
944
- };
945
- p([
946
- y(".asset-picker__button")
947
- ], c.prototype, "buttonEl", 2);
948
- p([
949
- y(".asset-picker__input")
950
- ], c.prototype, "inputEl", 2);
951
- p([
952
- r({ reflect: !0, type: String })
953
- ], c.prototype, "value", 2);
954
- p([
955
- r({ reflect: !0, type: String })
956
- ], c.prototype, "name", 2);
957
- p([
958
- r({
959
- converter: {
960
- fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
961
- toAttribute: (e) => e.join(" ")
962
- },
963
- reflect: !0
964
- })
965
- ], c.prototype, "type", 2);
966
- p([
967
- r({ reflect: !0, type: Boolean })
968
- ], c.prototype, "multiple", 2);
969
- p([
970
- r({
971
- converter: {
972
- fromAttribute: (e) => (e ?? "").split(" ").filter((t) => t !== ""),
973
- toAttribute: (e) => e.join(" ")
974
- },
975
- reflect: !0
976
- })
977
- ], c.prototype, "accepts", 2);
978
- p([
979
- r({ reflect: !0, type: Boolean })
980
- ], c.prototype, "required", 2);
981
- p([
982
- r({ attribute: "disabled", reflect: !0, type: Boolean })
983
- ], c.prototype, "disabled", 2);
984
- p([
985
- r({ attribute: "restrict", reflect: !0, type: Boolean })
986
- ], c.prototype, "restrict", 2);
987
- p([
988
- r({ attribute: "on-request-asset", type: Function })
989
- ], c.prototype, "onRequestAsset", 2);
990
- p([
991
- r({ attribute: "record-id", reflect: !0, type: String })
992
- ], c.prototype, "recordId", 2);
993
- p([
994
- r({ attribute: "is-site-builder", reflect: !0, type: Boolean })
995
- ], c.prototype, "isSiteBuilder", 2);
996
- p([
997
- b()
998
- ], c.prototype, "previewSrc", 2);
999
- p([
1000
- b()
1001
- ], c.prototype, "assetTitle", 2);
1002
- p([
1003
- v("value")
1004
- ], c.prototype, "handleValueChange", 1);
1005
- p([
1006
- v("recordId")
1007
- ], c.prototype, "handleRecordIdChange", 1);
1008
- c = p([
1009
- z("cx-asset-picker")
1010
- ], c);
1011
- const Ne = j`: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)}`;
1012
- var xe = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, o = (e, t, a, i) => {
1013
- for (var s = i > 1 ? void 0 : i ? fe(t, a) : t, u = e.length - 1, d; u >= 0; u--)
1014
- (d = e[u]) && (s = (i ? d(t, a, s) : d(s)) || s);
1015
- return i && s && xe(t, a, s), s;
1016
- };
1017
- const ye = {
1018
- resizable: !1
1019
- };
1020
- let n = class extends D {
1021
- constructor() {
1022
- 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 = {
1023
- data: [
1024
- {
1025
- icon: "create",
1026
- name: "edit",
1027
- options: {
1028
- buttonProps: {
1029
- variant: "default"
1030
- }
1031
- },
1032
- tooltip: this.localize.term("edit")
1033
- },
1034
- {
1035
- icon: "delete",
1036
- name: "delete",
1037
- options: {
1038
- buttonProps: {
1039
- variant: "default"
1040
- },
1041
- iconStyle: {
1042
- color: "var(--cx-color-danger)"
1043
- }
1044
- },
1045
- tooltip: this.localize.term("delete")
1046
- }
1047
- ],
1048
- options: {
1049
- placement: J.Right
1050
- }
1051
- }, this.OMITTED_FIELDS = ["id"];
1052
- }
1053
- get tabs() {
1054
- return this.translatableControls.length > 0 && this.supportedLanguages.length > 1 ? [
1055
- "general",
1056
- "translation"
1057
- /* Translation */
1058
- ] : [
1059
- "general"
1060
- /* General */
1061
- ];
1062
- }
1063
- handleColumnsChange() {
1064
- this.columnsMap = {}, this.columns.forEach((e) => {
1065
- this.columnsMap[e.field] = e;
1066
- }), this.supportedLanguages.length > 1 ? this.translatableControls = this.columns.filter((e) => e.translatable) : this.translatableControls = [];
1067
- }
1068
- handleEditedItemChange() {
1069
- const e = {};
1070
- for (const t of this.columns)
1071
- e[t.field] = t.configOrder;
1072
- 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));
1073
- }
1074
- handleTableActions(e) {
1075
- const { name: t, row: a } = e.detail, i = "component" in a ? a.component : a;
1076
- if (i) {
1077
- if (this.useEvents) {
1078
- this.emit(`cx-list-editor-${t}`, {
1079
- detail: {
1080
- index: i.getIndex(),
1081
- item: i.getData()
1082
- }
1083
- });
1084
- return;
1085
- }
1086
- t === "edit" ? this.editedItem = i.getData() : t === "delete" && this.emit("cx-list-editor-change", {
1087
- detail: {
1088
- data: this.data.filter((s) => s.id !== i.getData().id)
1089
- }
1090
- });
1091
- }
1092
- }
1093
- handleCancelClick() {
1094
- this.disableCloseConfigDialog || (this.isAdding = !1, this.editedItem = null);
1095
- }
1096
- handleRequestClose(e) {
1097
- if (this.disableCloseConfigDialog) {
1098
- e.preventDefault();
1099
- return;
1100
- }
1101
- e.stopPropagation(), this.isAdding = !1, this.editedItem = null;
1102
- }
1103
- handleAddClick() {
1104
- this.isAdding = !0, this.editedItem = {
1105
- ...this.sampleItem,
1106
- id: he(`${Date.now()}-`)
1107
- };
1108
- }
1109
- handleSaveClick() {
1110
- if (this.editedItem) {
1111
- const e = this.data.findIndex(
1112
- (a) => a.id === this.editedItem.id
1113
- );
1114
- if (!this.isAdding && e === -1) {
1115
- this.editedItem = null;
1116
- return;
1117
- }
1118
- let t = this.data;
1119
- 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", {
1120
- detail: {
1121
- data: t
1122
- }
1123
- }), this.editedItem = null, this.isAdding = !1;
1124
- }
1125
- }
1126
- handleTableRowMoved() {
1127
- this.emit("cx-list-editor-change", {
1128
- detail: {
1129
- data: this.table?.tabulatorInstance?.getData() ?? this.data ?? []
1130
- }
1131
- });
1132
- }
1133
- handleAssetRequestStatus(e) {
1134
- this.disableCloseConfigDialog = e.detail.busy;
1135
- }
1136
- async handleLoadingEventChange() {
1137
- if (await this.updateComplete, !this.table)
1138
- return;
1139
- if (!this.loadingItemIndex) {
1140
- this.table.tabulatorInstance?.getRows().forEach((a) => {
1141
- const i = a._row.hoverMenuElement;
1142
- a._row.hoverMenuElement.actions = i.actions.map((s) => (s.options?.buttonProps && (s.options.buttonProps.loading = !1), s));
1143
- });
1144
- return;
1145
- }
1146
- const e = this.table.tabulatorInstance?.getRow(this.loadingItemIndex);
1147
- if (!e || !e?._row?.hoverMenuElement)
1148
- return;
1149
- const t = e._row.hoverMenuElement;
1150
- t.actions = t.actions.map((a) => (a.options?.buttonProps && (a.options.buttonProps.loading = a.name === this.loadingEvent && this.loadingItemIndex === e.getIndex()), a));
1151
- }
1152
- handleChange(e) {
1153
- if (!e.target)
1154
- return;
1155
- const t = e.target, a = t.dataset.id;
1156
- if (!a)
1157
- return;
1158
- let i = t.value;
1159
- Array.isArray(i) ? i = i.join(" ") : i = String(i), this.editedItem = {
1160
- ...this.editedItem,
1161
- [a]: i
1162
- };
1163
- }
1164
- renderControls(e) {
1165
- if (e === "translation") {
1166
- const t = l`
1167
- ${x(
1168
- this.translatableControls,
1169
- (a) => a.field,
1170
- (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) => {
1171
- const s = this.localize.languageName(i) || pe.getName(i) || i, u = (d) => {
1172
- const m = d.target.value;
1173
- this.editedItem = {
1174
- ...this.editedItem,
1175
- [`${a.field}-${i}`]: m
1176
- };
1177
- };
1178
- return l`<cx-input ?disabled=${i.toLowerCase() === this.defaultLanguage?.toLowerCase()} label=${s} value=${this.editedItem?.[`${a.field}-${i}`] ?? this.editedItem?.[`${a.field}`] ?? ""} @cx-change=${u}></cx-input>`;
1179
- })}</cx-space></cx-grid-item></cx-grid>`
1180
- )}
1181
- `;
1182
- return l`<cx-space direction="vertical" wrap="nowrap">${t}</cx-space>`;
1183
- }
1184
- return l`<cx-grid columns="3" spacing="var(--cx-spacing-small)" wrap="wrap">${x(
1185
- this.sortedEntries,
1186
- ([t]) => t,
1187
- ([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(
1188
- this.columnsMap[t].controlType,
1189
- [
1190
- [
1191
- "image-picker",
1192
- () => {
1193
- const i = async (u) => {
1194
- if (Array.isArray(u.detail))
1195
- return;
1196
- const { id: d, src: m } = u.detail;
1197
- this.editedItem = {
1198
- ...this.editedItem,
1199
- [t]: m,
1200
- recordId: d
1201
- };
1202
- }, s = async () => {
1203
- this.editedItem = {
1204
- ...this.editedItem,
1205
- [t]: "",
1206
- recordId: ""
1207
- };
1208
- };
1209
- 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>`;
1210
- }
1211
- ],
1212
- [
1213
- "radio-group",
1214
- () => 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(
1215
- this.columnsMap[t].options ?? [],
1216
- (i) => i.value,
1217
- (i) => l`<cx-radio value=${i.value}>${i.name}</cx-radio>`
1218
- )}</cx-radio-group>`
1219
- ],
1220
- [
1221
- "select",
1222
- () => 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(
1223
- this.columnsMap[t].options ?? [],
1224
- (i) => i.value,
1225
- (i) => l`<cx-option value=${i.value}>${i.name}</cx-option>`
1226
- )}</cx-select>`
1227
- ]
1228
- ],
1229
- () => l`<cx-input data-id=${t} value=${a} @cx-change=${this.handleChange}></cx-input>`
1230
- )}</cx-grid-item>`
1231
- )}</cx-grid>`;
1232
- }
1233
- render() {
1234
- return l`<cx-space direction="vertical" align-items="flex-start"><div class="list-editor"><cx-table part="table" class=${ee({
1235
- "list-editor__table": !0,
1236
- "list-editor__table--no-header": this.noHeader
1237
- })} ?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=${R.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(
1238
- !this.isAdding && this.editedItem?.[this.displayField],
1239
- () => l`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.editedItem?.[this.displayField]}</cx-line-clamp></cx-typography>`
1240
- )}</cx-space>${N(
1241
- this.tabs.length >= 1,
1242
- () => l`<cx-tab-group class="list-editor__tab-group" placement="top">${x(
1243
- this.tabs,
1244
- (e) => e,
1245
- (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>`
1246
- )}</cx-tab-group>`,
1247
- () => l`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderControls(this.tabs[0])}</cx-space>`
1248
- )}<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(
1249
- this.canAdd,
1250
- () => l`<cx-button data-testid="add-button" variant="default" size="medium" @click=${this.handleAddClick}>${this.addItemText || this.localize.term("add")}</cx-button>`
1251
- )}</cx-space>`;
1252
- }
1253
- };
1254
- n.styles = [M, Ne];
1255
- n.dependencies = {
1256
- "cx-asset-picker": c,
1257
- "cx-button": k,
1258
- "cx-dialog": G,
1259
- "cx-dynamic-select": X,
1260
- "cx-grid": B,
1261
- "cx-grid-item": F,
1262
- "cx-input": E,
1263
- "cx-line-clamp": P,
1264
- "cx-option": K,
1265
- "cx-radio": U,
1266
- "cx-radio-group": H,
1267
- "cx-select": V,
1268
- "cx-space": T,
1269
- "cx-table": W,
1270
- "cx-typography": L
1271
- };
1272
- o([
1273
- y("cx-dialog")
1274
- ], n.prototype, "dialog", 2);
1275
- o([
1276
- y("cx-table")
1277
- ], n.prototype, "table", 2);
1278
- o([
1279
- r({
1280
- converter: {
1281
- fromAttribute: (e) => {
1282
- try {
1283
- const t = JSON.parse(e);
1284
- return Array.isArray(t) ? t : [];
1285
- } catch {
1286
- return [];
1287
- }
1288
- },
1289
- toAttribute: (e) => JSON.stringify(e)
1290
- },
1291
- reflect: !1,
1292
- type: String
1293
- })
1294
- ], n.prototype, "data", 2);
1295
- o([
1296
- r({ attribute: "can-add", reflect: !0, type: Boolean })
1297
- ], n.prototype, "canAdd", 2);
1298
- o([
1299
- r({ attribute: "add-dialog-label", reflect: !0, type: String })
1300
- ], n.prototype, "addDialogLabel", 2);
1301
- o([
1302
- r({ attribute: "edit-dialog-label", reflect: !0, type: String })
1303
- ], n.prototype, "editDialogLabel", 2);
1304
- o([
1305
- r({ attribute: "display-field", reflect: !0, type: String })
1306
- ], n.prototype, "displayField", 2);
1307
- o([
1308
- r({ attribute: "description-field", reflect: !0, type: String })
1309
- ], n.prototype, "descriptionField", 2);
1310
- o([
1311
- r({ attribute: "add-item-text", reflect: !0, type: String })
1312
- ], n.prototype, "addItemText", 2);
1313
- o([
1314
- r({ attribute: "sample-item", type: Object })
1315
- ], n.prototype, "sampleItem", 2);
1316
- o([
1317
- r({ attribute: "use-events", reflect: !0, type: Boolean })
1318
- ], n.prototype, "useEvents", 2);
1319
- o([
1320
- r({ reflect: !0, type: Boolean })
1321
- ], n.prototype, "sortable", 2);
1322
- o([
1323
- r({ attribute: "loading-event", reflect: !0, type: String })
1324
- ], n.prototype, "loadingEvent", 2);
1325
- o([
1326
- r({ attribute: "loading-item-index", reflect: !0, type: String })
1327
- ], n.prototype, "loadingItemIndex", 2);
1328
- o([
1329
- r({ attribute: "columns", reflect: !1, type: Array })
1330
- ], n.prototype, "columns", 2);
1331
- o([
1332
- r({ attribute: "no-header", reflect: !0, type: Boolean })
1333
- ], n.prototype, "noHeader", 2);
1334
- o([
1335
- r({ attribute: "row-height", reflect: !0, type: Number })
1336
- ], n.prototype, "rowHeight", 2);
1337
- o([
1338
- r({ attribute: "default-language", reflect: !0, type: String })
1339
- ], n.prototype, "defaultLanguage", 2);
1340
- o([
1341
- r({
1342
- attribute: "supported-languages",
1343
- converter: {
1344
- fromAttribute: (e) => e.split(" ").filter(Boolean),
1345
- toAttribute: (e) => Array.isArray(e) ? e.join(" ") : e
1346
- },
1347
- reflect: !0,
1348
- type: Array
1349
- })
1350
- ], n.prototype, "supportedLanguages", 2);
1351
- o([
1352
- r({ type: Object })
1353
- ], n.prototype, "boundary", 2);
1354
- o([
1355
- r({ attribute: "on-request-asset", type: Function })
1356
- ], n.prototype, "onRequestAsset", 2);
1357
- o([
1358
- b()
1359
- ], n.prototype, "editedItem", 2);
1360
- o([
1361
- b()
1362
- ], n.prototype, "isAdding", 2);
1363
- o([
1364
- b()
1365
- ], n.prototype, "columnsMap", 2);
1366
- o([
1367
- b()
1368
- ], n.prototype, "sortedEntries", 2);
1369
- o([
1370
- b()
1371
- ], n.prototype, "translatableControls", 2);
1372
- o([
1373
- v("columns"),
1374
- v("supportedLanguages", { waitUntilFirstUpdate: !0 })
1375
- ], n.prototype, "handleColumnsChange", 1);
1376
- o([
1377
- v("editedItem"),
1378
- v("columns", { waitUntilFirstUpdate: !0 })
1379
- ], n.prototype, "handleEditedItemChange", 1);
1380
- o([
1381
- v("loadingEvent", { waitUntilFirstUpdate: !0 }),
1382
- v("loadingItemIndex", { waitUntilFirstUpdate: !0 }),
1383
- Y(10)
1384
- ], n.prototype, "handleLoadingEventChange", 1);
1385
- n = o([
1386
- z("cx-list-editor")
1387
- ], n);
1388
- export {
1389
- n as C,
1390
- pe as I,
1391
- c as a,
1392
- ye as c,
1393
- he as u
1394
- };