@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2

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 (307) hide show
  1. package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
  21. package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
  22. package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
  23. package/library/chunks/array.DCtvHiLS.js +81 -0
  24. package/library/chunks/asset.D7E0-cUV.js +460 -0
  25. package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
  26. package/library/chunks/button.styles.CKqn956w.js +5 -0
  27. package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
  28. package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
  29. package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
  30. package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
  31. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  32. package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
  33. package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
  34. package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
  35. package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
  36. package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
  37. package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
  38. package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
  39. package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
  40. package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
  41. package/library/chunks/folder-select.BT1drT8C.js +775 -0
  42. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  43. package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
  44. package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
  45. package/library/chunks/header.BePZwMCQ.js +170 -0
  46. package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
  47. package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
  48. package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
  49. package/library/chunks/icon-button.rKe0N4VB.js +149 -0
  50. package/library/chunks/iframe.DznmlYpV.js +73 -0
  51. package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
  52. package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
  53. package/library/chunks/isObjectLike.z36Fu426.js +34 -0
  54. package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
  55. package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
  56. package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
  57. package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
  58. package/library/chunks/option.COnEtd3X.js +123 -0
  59. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  60. package/library/chunks/pagination.DaD9Yul6.js +334 -0
  61. package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
  62. package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
  63. package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
  64. package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
  65. package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
  66. package/library/chunks/string.BigZhczf.js +185 -0
  67. package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
  68. package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
  69. package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
  70. package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
  71. package/library/chunks/toast.B2cJgW5u.js +71 -0
  72. package/library/chunks/transformation.CzBptarI.js +140 -0
  73. package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
  74. package/library/chunks/typography.DJC_UXgs.js +52 -0
  75. package/library/chunks/url.Cj9cIQXJ.js +27 -0
  76. package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
  77. package/library/chunks/watch.BCJD77bD.js +547 -0
  78. package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
  79. package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
  80. package/library/components/alert.js +11 -179
  81. package/library/components/am-chart.js +3 -3
  82. package/library/components/animated-image.js +13 -101
  83. package/library/components/animation.js +3 -3
  84. package/library/components/array-line-clamp.js +8 -89
  85. package/library/components/asset-link-format.js +718 -1380
  86. package/library/components/atoms.js +18 -18
  87. package/library/components/avatar.js +6 -95
  88. package/library/components/badge.js +11 -139
  89. package/library/components/bicolor-picker.js +4 -23
  90. package/library/components/border-input-group.js +5 -26
  91. package/library/components/breadcrumb-item.js +25 -156
  92. package/library/components/breadcrumb.js +4 -22
  93. package/library/components/button-group.js +3 -28
  94. package/library/components/button.js +6 -6
  95. package/library/components/card.js +4 -126
  96. package/library/components/checkbox.js +13 -254
  97. package/library/components/color-picker.js +57 -728
  98. package/library/components/color-swatch-group.js +9 -9
  99. package/library/components/color-swatch.js +5 -5
  100. package/library/components/confirm-popover.js +6 -6
  101. package/library/components/copy-button.js +11 -256
  102. package/library/components/corner-position-input-group.js +5 -58
  103. package/library/components/cropper.js +2 -2
  104. package/library/components/details.js +6 -152
  105. package/library/components/dialog.js +6 -6
  106. package/library/components/divider.js +6 -68
  107. package/library/components/dot-pagination.js +4 -4
  108. package/library/components/dot-status.js +25 -95
  109. package/library/components/drawer.js +11 -242
  110. package/library/components/dropdown.js +49 -151
  111. package/library/components/dynamic-select.js +10 -75
  112. package/library/components/e-chart.js +8 -51
  113. package/library/components/element-clamp.js +7 -80
  114. package/library/components/file-on-demand.js +13 -13
  115. package/library/components/folder-select.js +9 -7
  116. package/library/components/format-bytes.js +1 -1
  117. package/library/components/format-date.js +3 -7
  118. package/library/components/format-number.js +1 -1
  119. package/library/components/format-time.js +4 -14
  120. package/library/components/grid-item.js +5 -172
  121. package/library/components/grid.js +5 -41
  122. package/library/components/header.js +4 -4
  123. package/library/components/hub-connection.js +2 -2
  124. package/library/components/icon-button.js +14 -679
  125. package/library/components/icon.js +9 -2449
  126. package/library/components/iframe.js +4 -4
  127. package/library/components/image-comparer.js +9 -129
  128. package/library/components/image.js +4 -4
  129. package/library/components/include.js +3 -7
  130. package/library/components/input-group.js +4 -29
  131. package/library/components/input.js +358 -966
  132. package/library/components/line-clamp.js +7 -83
  133. package/library/components/list-editor.js +9 -9
  134. package/library/components/markdown.js +2 -4
  135. package/library/components/masonry.js +24 -223
  136. package/library/components/menu-item.js +155 -445
  137. package/library/components/menu-label.js +3 -20
  138. package/library/components/menu-section.js +3 -17
  139. package/library/components/menu.js +5 -113
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +3 -7
  142. package/library/components/option.js +4 -4
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +5 -16
  145. package/library/components/pagination.js +10 -8
  146. package/library/components/popup.js +385 -682
  147. package/library/components/position-picker.js +4 -94
  148. package/library/components/progress-bar.js +19 -136
  149. package/library/components/progress-ring.js +4 -95
  150. package/library/components/qr-code.js +5 -17
  151. package/library/components/radio-button.js +5 -25
  152. package/library/components/radio-card.js +8 -176
  153. package/library/components/radio-group.js +22 -153
  154. package/library/components/radio.js +14 -171
  155. package/library/components/range.js +123 -660
  156. package/library/components/rating.js +58 -238
  157. package/library/components/relative-time.js +3 -13
  158. package/library/components/resize-observer.js +4 -8
  159. package/library/components/select.js +305 -1012
  160. package/library/components/shadow-input-group.js +5 -24
  161. package/library/components/share-option-list.js +21 -313
  162. package/library/components/sidebar.js +15 -221
  163. package/library/components/size-input-group.js +12 -77
  164. package/library/components/skeleton.js +7 -80
  165. package/library/components/space.js +6 -143
  166. package/library/components/spinner.js +7 -76
  167. package/library/components/split-panel.js +18 -125
  168. package/library/components/step.js +21 -272
  169. package/library/components/stepper-wizard.js +9 -43
  170. package/library/components/stepper.js +17 -34
  171. package/library/components/switch.js +13 -276
  172. package/library/components/tab-group.js +7 -7
  173. package/library/components/tab-panel.js +5 -32
  174. package/library/components/tab.js +11 -257
  175. package/library/components/table.js +8 -8
  176. package/library/components/tag.js +15 -166
  177. package/library/components/textarea.js +183 -504
  178. package/library/components/timecode.js +6 -25
  179. package/library/components/tooltip.js +10 -94
  180. package/library/components/tree-item.js +4 -4
  181. package/library/components/tree.js +4 -4
  182. package/library/components/typeface.js +24 -123
  183. package/library/components/types.js +37225 -47339
  184. package/library/components/typography.js +2 -2
  185. package/library/components/video.js +3875 -6263
  186. package/library/components/visually-hidden.js +3 -15
  187. package/library/package.json +4 -1
  188. package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
  189. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
  190. package/library/packages/atoms/src/components/image/image.d.ts +15 -1
  191. package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
  192. package/library/packages/atoms/src/components/input/input.d.ts +10 -2
  193. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
  194. package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
  195. package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
  196. package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
  197. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  198. package/library/packages/atoms/src/components/table/table.d.ts +49 -8
  199. package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
  200. package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
  201. package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
  202. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  203. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  204. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
  205. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
  206. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
  207. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
  208. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
  209. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
  210. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
  211. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
  212. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  213. package/library/packages/atoms/src/components/video/video.d.ts +3 -1
  214. package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
  215. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
  216. package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
  217. package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
  218. package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
  219. package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
  220. package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
  221. package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
  222. package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
  223. package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
  224. package/library/packages/events/src/events.d.ts +11 -1
  225. package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
  226. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
  227. package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
  228. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
  229. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
  230. package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
  231. package/library/packages/molecules/src/index.d.ts +1 -0
  232. package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
  233. package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
  234. package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
  235. package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
  236. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
  237. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
  238. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
  239. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
  240. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
  241. package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
  242. package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
  243. package/library/packages/organisms/src/comment/comment.d.ts +1 -0
  244. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
  245. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
  246. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
  247. package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
  248. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
  249. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
  250. package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
  251. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
  252. package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
  253. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
  254. package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
  255. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
  256. package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
  257. package/library/packages/organisms/src/index.d.ts +2 -0
  258. package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
  259. package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
  260. package/library/packages/services/src/api/asset/asset.d.ts +3 -2
  261. package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
  262. package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
  263. package/library/packages/services/src/api/endpoints.d.ts +1 -1
  264. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  265. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
  266. package/library/packages/types/src/asset-click-action.d.ts +3 -1
  267. package/library/packages/types/src/bento-grid.d.ts +37 -0
  268. package/library/packages/types/src/content-builder.d.ts +27 -1
  269. package/library/packages/types/src/gallery.d.ts +0 -6
  270. package/library/packages/types/src/icon-button.d.ts +7 -0
  271. package/library/packages/types/src/menu-item.d.ts +33 -0
  272. package/library/packages/types/src/storybook.d.ts +19 -0
  273. package/library/packages/types/src/table.d.ts +37 -1
  274. package/library/packages/types/src/textarea.d.ts +4 -0
  275. package/library/packages/types/src/video-format-picker.d.ts +11 -0
  276. package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
  277. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
  278. package/library/packages/utils/src/index.d.ts +1 -0
  279. package/library/packages/utils/src/string/string.d.ts +33 -0
  280. package/library/packages/utils/src/transformation/index.d.ts +1 -0
  281. package/library/packages/utils/src/url/url.d.ts +9 -0
  282. package/library/react-web-component.d.ts +293 -29
  283. package/library/utils.js +483 -178
  284. package/package.json +4 -1
  285. package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
  286. package/library/chunks/asset.CG_yXtWK.js +0 -288
  287. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  288. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  289. package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
  290. package/library/chunks/content-builder.D_phDrlo.js +0 -127
  291. package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
  292. package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
  293. package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
  294. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  295. package/library/chunks/header.BduX6KJP.js +0 -777
  296. package/library/chunks/identity.ByMq8VxU.js +0 -6
  297. package/library/chunks/iframe.BPKV2K7z.js +0 -160
  298. package/library/chunks/index.B3wJT3XS.js +0 -373
  299. package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
  300. package/library/chunks/option.DnpkE8Xi.js +0 -296
  301. package/library/chunks/pagination.C30LoTya.js +0 -341
  302. package/library/chunks/string.B_rEG27K.js +0 -160
  303. package/library/chunks/toast.BXNbwZV8.js +0 -25
  304. package/library/chunks/typography.oDzoLbZS.js +0 -149
  305. package/library/chunks/url.LjsR2sB5.js +0 -15
  306. package/library/chunks/watch.q1sEjPWL.js +0 -501
  307. /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
@@ -1,296 +0,0 @@
1
- import { n as s, C as x } from "./lib-cortex-element.CVMmyPMC.js";
2
- import { c as m } from "./component.styles.DMSLciL5.js";
3
- import { c as v } from "./custom-element.L4WJXn1j.js";
4
- import { L as g } from "./i18n.C0iakJkV.js";
5
- import { w as d } from "./watch.q1sEjPWL.js";
6
- import { i as b, x as h } from "./lit-element.jLBm65_O.js";
7
- import { r as f } from "./state.CSDxrqLd.js";
8
- import { e as _ } from "./query.BBf1UFkC.js";
9
- import { e as y } from "./class-map.BiVq-cVR.js";
10
- import { n as u } from "./when.Dr1es41R.js";
11
- import k from "../components/icon.js";
12
- import w from "../components/space.js";
13
- var r = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(r || {});
14
- const C = b`
15
- :host {
16
- display: block;
17
- user-select: none;
18
- -webkit-user-select: none;
19
- }
20
-
21
- :host(:focus) {
22
- outline: none;
23
- }
24
-
25
- .option {
26
- position: relative;
27
- display: flex;
28
- align-items: center;
29
- font-family: var(--cx-font-sans);
30
- font-size: var(--cx-font-size-small);
31
- font-weight: var(--option-font-weight, var(--cx-font-weight-regular));
32
- line-height: var(--cx-line-height-large);
33
- letter-spacing: var(--cx-letter-spacing-normal);
34
- color: var(--option-color, var(--cx-color-neutral-700));
35
- padding: var(--cx-spacing-x-small) var(--cx-spacing-medium)
36
- var(--cx-spacing-x-small) var(--cx-spacing-x-small);
37
- transition: var(--cx-transition-fast) fill;
38
- cursor: pointer;
39
- }
40
-
41
- .option:not(.option--show-check) {
42
- padding-inline: var(--cx-spacing-small);
43
- }
44
-
45
- .option--hover:not(.option--current):not(.option--disabled) {
46
- background-color: var(--cx-menu-item-background-color-hover);
47
- }
48
-
49
- .option--current,
50
- .option--current.option--disabled {
51
- background-color: var(--cx-menu-item-background-color-hover);
52
- opacity: 1;
53
- }
54
-
55
- .option--selected {
56
- color: var(--option-selected-color, var(--cx-color-primary));
57
- font-weight: var(
58
- --option-selected-font-weight,
59
- var(--cx-font-weight-regular)
60
- );
61
- }
62
-
63
- .option--disabled {
64
- outline: none;
65
- opacity: 0.5;
66
- cursor: default;
67
- }
68
-
69
- .option__content {
70
- flex: 1;
71
- }
72
-
73
- .option__label {
74
- flex: 1 1 auto;
75
- display: inline-block;
76
- line-height: var(--cx-line-height-medium);
77
- }
78
-
79
- .option .option__check {
80
- flex: 0 0 auto;
81
- display: flex;
82
- align-items: center;
83
- justify-content: center;
84
- visibility: hidden;
85
- padding-inline-end: var(--cx-spacing-2x-small);
86
- display: none;
87
- }
88
-
89
- .option--show-check .option__check {
90
- display: block;
91
- }
92
-
93
- .option--show-check.option--selected .option__check {
94
- visibility: visible;
95
- }
96
-
97
- .option__help-text {
98
- color: var(--option-help-text-color, var(--cx-color-neutral-600));
99
- font-weight: var(
100
- --option-help-text-font-weight,
101
- var(--cx-font-weight-regular)
102
- );
103
- }
104
-
105
- .option--selected .option__content .option__help-text {
106
- color: var(--option-selected-help-text-color, var(--cx-color-primary));
107
- font-weight: var(
108
- --option-selected-help-text-font-weight,
109
- var(--cx-font-weight-regular)
110
- );
111
- }
112
-
113
- .option__prefix,
114
- .option__suffix {
115
- flex: 0 0 auto;
116
- display: flex;
117
- align-items: center;
118
- }
119
-
120
- .option__prefix::slotted(*) {
121
- margin-inline-end: var(--cx-spacing-x-small);
122
- }
123
-
124
- .option__suffix::slotted(*) {
125
- margin-inline-start: var(--cx-spacing-x-small);
126
- }
127
-
128
- .option__prefix {
129
- align-self: var(--prefix-alignment, center);
130
- }
131
-
132
- .option__suffix {
133
- align-self: var(--suffix-alignment, center);
134
- }
135
-
136
- .option__check {
137
- align-self: var(--check-alignment, center);
138
- }
139
-
140
- @media (forced-colors: active) {
141
- :host(:hover:not([aria-disabled='true'])) .option {
142
- outline: dashed 1px SelectedItem;
143
- outline-offset: -1px;
144
- }
145
- }
146
- `;
147
- var L = Object.defineProperty, E = Object.getOwnPropertyDescriptor, o = (t, a, i, l) => {
148
- for (var n = l > 1 ? void 0 : l ? E(a, i) : a, c = t.length - 1, p; c >= 0; c--)
149
- (p = t[c]) && (n = (l ? p(a, i, n) : p(n)) || n);
150
- return l && n && L(a, i, n), n;
151
- };
152
- let e = class extends x {
153
- constructor() {
154
- super(...arguments), this.localize = new g(this), this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1, this.showCheck = !1, this.checkPlacement = r.Left;
155
- }
156
- connectedCallback() {
157
- super.connectedCallback(), this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
158
- }
159
- handleDefaultSlotChange() {
160
- const t = this.getTextLabel();
161
- if (typeof this.cachedTextLabel > "u") {
162
- this.cachedTextLabel = t;
163
- return;
164
- }
165
- t !== this.cachedTextLabel && (this.cachedTextLabel = t, this.emit("slotchange", {
166
- bubbles: !0,
167
- cancelable: !1,
168
- composed: !1
169
- }));
170
- }
171
- handleMouseEnter() {
172
- this.hasHover = !0;
173
- }
174
- handleMouseLeave() {
175
- this.hasHover = !1;
176
- }
177
- handleDisabledChange() {
178
- this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
179
- }
180
- handleSelectedChange() {
181
- this.setAttribute("aria-selected", this.selected ? "true" : "false");
182
- }
183
- handleValueChange() {
184
- typeof this.value != "string" && (this.value = String(this.value)), this.value.includes(" ") && (console.error(
185
- "Option values cannot include a space. All spaces have been replaced with underscores.",
186
- this
187
- ), this.value = this.value.replace(/ /g, "_"));
188
- }
189
- /** Returns a plain text label based on the option's content. */
190
- getTextLabel() {
191
- const t = this.childNodes;
192
- let a = "";
193
- return [...t].forEach((i) => {
194
- i.nodeType === Node.ELEMENT_NODE && (i.hasAttribute("slot") || (a += i.textContent)), i.nodeType === Node.TEXT_NODE && (a += i.textContent);
195
- }), a.trim();
196
- }
197
- render() {
198
- return h`
199
- <div
200
- part="base"
201
- class=${y({
202
- option: !0,
203
- "option--current": this.current,
204
- "option--disabled": this.disabled,
205
- "option--hover": this.hasHover,
206
- "option--selected": this.selected,
207
- "option--show-check": this.showCheck
208
- })}
209
- @mouseenter=${this.handleMouseEnter}
210
- @mouseleave=${this.handleMouseLeave}
211
- >
212
- ${u(
213
- this.checkPlacement === r.Left,
214
- () => h`<cx-icon
215
- part="checked-icon"
216
- class="option__check"
217
- name="check"
218
- library="system"
219
- aria-hidden="true"
220
- ></cx-icon> `
221
- )}
222
- <slot part="prefix" name="prefix" class="option__prefix"></slot>
223
- <cx-space
224
- part="content"
225
- class="option__content"
226
- direction="vertical"
227
- spacing="3x-small"
228
- >
229
- <slot
230
- part="label"
231
- class="option__label"
232
- @slotchange=${this.handleDefaultSlotChange}
233
- ></slot>
234
- <slot
235
- part="help-text"
236
- name="help-text"
237
- class="option__help-text"
238
- ></slot>
239
- </cx-space>
240
- <slot part="suffix" name="suffix" class="option__suffix"></slot>
241
- ${u(
242
- this.checkPlacement === r.Right,
243
- () => h`<cx-icon
244
- part="checked-icon"
245
- class="option__check"
246
- name="check"
247
- library="system"
248
- aria-hidden="true"
249
- ></cx-icon> `
250
- )}
251
- </div>
252
- `;
253
- }
254
- };
255
- e.styles = [m, C];
256
- e.dependencies = { "cx-icon": k, "cx-space": w };
257
- o([
258
- _(".option__label")
259
- ], e.prototype, "defaultSlot", 2);
260
- o([
261
- f()
262
- ], e.prototype, "current", 2);
263
- o([
264
- f()
265
- ], e.prototype, "selected", 2);
266
- o([
267
- f()
268
- ], e.prototype, "hasHover", 2);
269
- o([
270
- s({ reflect: !0 })
271
- ], e.prototype, "value", 2);
272
- o([
273
- s({ reflect: !0, type: Boolean })
274
- ], e.prototype, "disabled", 2);
275
- o([
276
- s({ attribute: "show-check", reflect: !0, type: Boolean })
277
- ], e.prototype, "showCheck", 2);
278
- o([
279
- s({ attribute: "check-placement", reflect: !0, type: String })
280
- ], e.prototype, "checkPlacement", 2);
281
- o([
282
- d("disabled")
283
- ], e.prototype, "handleDisabledChange", 1);
284
- o([
285
- d("selected")
286
- ], e.prototype, "handleSelectedChange", 1);
287
- o([
288
- d("value")
289
- ], e.prototype, "handleValueChange", 1);
290
- e = o([
291
- v("cx-option")
292
- ], e);
293
- export {
294
- e as C,
295
- r as a
296
- };
@@ -1,341 +0,0 @@
1
- import { n as p, C as _ } from "./lib-cortex-element.CVMmyPMC.js";
2
- import { c as b } from "./custom-element.L4WJXn1j.js";
3
- import { L as C } from "./i18n.C0iakJkV.js";
4
- import { c } from "./math.DqTA6ya4.js";
5
- import { w as d } from "./watch.q1sEjPWL.js";
6
- import { i as y, x as s } from "./lit-element.jLBm65_O.js";
7
- import { r as m } from "./state.CSDxrqLd.js";
8
- import { e as f } from "./class-map.BiVq-cVR.js";
9
- import { c as x } from "./repeat.DbF2p5ae.js";
10
- import { n as h } from "./when.Dr1es41R.js";
11
- import { C as z } from "./button.KnE3mcyM.js";
12
- import v from "../components/icon-button.js";
13
- import { C as $ } from "./option.DnpkE8Xi.js";
14
- import S from "../components/select.js";
15
- import w from "../components/tooltip.js";
16
- import { C as I } from "./typography.oDzoLbZS.js";
17
- import { c as P } from "./component.styles.DMSLciL5.js";
18
- var l = /* @__PURE__ */ ((t) => (t.Both = "both", t.Pages = "pages", t.Rows = "rows", t))(l || {});
19
- const B = y`
20
- ${P}
21
-
22
- :host {
23
- --width: 100px;
24
- display: block;
25
- width: fit-content;
26
- }
27
-
28
- cx-typography::part(base) {
29
- margin-block: 0;
30
- }
31
-
32
- .pagination {
33
- display: flex;
34
- align-items: center;
35
- gap: var(--cx-spacing-small);
36
- font-size: var(--cx-font-size-small);
37
- }
38
-
39
- .pagination .pagination__label__container {
40
- display: inline-flex;
41
- gap: var(--cx-spacing-small);
42
- align-items: center;
43
- }
44
-
45
- .pagination .pagination__select::part(combobox) {
46
- width: var(--width);
47
- }
48
-
49
- .pagination .pagination__navigation-buttons {
50
- display: flex;
51
- align-items: center;
52
- gap: 0;
53
- }
54
-
55
- .pagination .pagination_count,
56
- .pagination .pagination__pages {
57
- font-variant-numeric: tabular-nums;
58
- }
59
-
60
- .pagination__page--active::part(base) {
61
- color: var(--cx-color-primary);
62
- }
63
- `;
64
- var O = Object.defineProperty, F = Object.getOwnPropertyDescriptor, i = (t, a, o, r) => {
65
- for (var n = r > 1 ? void 0 : r ? F(a, o) : a, g = t.length - 1, u; g >= 0; g--)
66
- (u = t[g]) && (n = (r ? u(a, o, n) : u(n)) || n);
67
- return r && n && O(a, o, n), n;
68
- };
69
- let e = class extends _ {
70
- constructor() {
71
- super(...arguments), this.localize = new C(this), this.count = 0, this.pageSizeOptions = [10, 20, 50, 100], this.pageSize = this.pageSizeOptions[0], this.label = this.localize.term("rowsPerPage"), this.showFirst = !1, this.showLast = !1, this.showPaginationButtons = !1, this.paginationButtonCount = 5, this.paginationCounter = l.Rows, this._pageIndex = 1, this._pageCount = Math.max(1, Math.ceil(this.count / this.pageSize));
72
- }
73
- get pageIndex() {
74
- return this._pageIndex;
75
- }
76
- set pageIndex(t) {
77
- this._pageIndex = c(t, 1, this._pageCount);
78
- }
79
- get pageStart() {
80
- return c((this._pageIndex - 1) * this.pageSize + 1, 0, this.count);
81
- }
82
- get pageEnd() {
83
- return c(this._pageIndex * this.pageSize, 0, this.count);
84
- }
85
- get prevDisabled() {
86
- return this._pageIndex <= 1;
87
- }
88
- get nextDisabled() {
89
- return this._pageIndex >= this._pageCount;
90
- }
91
- updatePageCount() {
92
- const t = Number.isFinite(this.pageSize) && this.pageSize > 0 ? this.pageSize : 1;
93
- this._pageCount = Math.max(1, Math.ceil(this.count / t)), this.pageIndex = c(this.pageIndex, 1, this._pageCount);
94
- }
95
- handlePageSizeSelectChange(t) {
96
- const a = t.target;
97
- a && (this.pageSize = Number(a.value), this.pageIndex = 1);
98
- }
99
- handleFirst() {
100
- this._pageIndex = 1;
101
- }
102
- handleBack() {
103
- this._pageIndex -= 1, this._pageIndex < 1 && this.handleFirst();
104
- }
105
- handleForward() {
106
- this._pageIndex += 1, this._pageIndex > this._pageCount && this.handleLast();
107
- }
108
- handleLast() {
109
- this._pageIndex = this._pageCount;
110
- }
111
- async handleCountChange() {
112
- this.updatePageCount();
113
- }
114
- handlePageChange() {
115
- this.emit("cx-page-change", {
116
- detail: {
117
- pageIndex: this._pageIndex
118
- }
119
- });
120
- }
121
- handlePageSizeChange() {
122
- this.updatePageCount(), this.emit("cx-page-size-change", {
123
- detail: {
124
- pageSize: this.pageSize
125
- }
126
- });
127
- }
128
- handlePageClick(t) {
129
- const a = t.target;
130
- a && (this.pageIndex = Number(a.dataset.page));
131
- }
132
- renderPageButton(t) {
133
- return s`
134
- <cx-button
135
- data-page=${t}
136
- variant="text"
137
- size="small"
138
- class=${f({
139
- pagination__page: !0,
140
- "pagination__page--active": t === this.pageIndex
141
- })}
142
- >
143
- ${t}
144
- </cx-button>
145
- `;
146
- }
147
- renderPageButtons() {
148
- const t = Math.floor((this.paginationButtonCount - 1) / 2), a = Math.ceil((this.paginationButtonCount - 1) / 2), o = Math.max(
149
- 1,
150
- this._pageCount - this.pageIndex + t + 1 < this.paginationButtonCount ? this._pageCount - this.paginationButtonCount + 1 : this.pageIndex - t
151
- ), r = Math.min(
152
- this._pageCount,
153
- this.pageIndex <= a ? this.paginationButtonCount : this.pageIndex + a
154
- );
155
- return s`
156
- <div class="pagination__pages" @click=${this.handlePageClick}>
157
- ${x(
158
- Array.from({ length: r - o + 1 }, (n, g) => g + o),
159
- (n) => n,
160
- (n) => this.renderPageButton(n)
161
- )}
162
- </div>
163
- `;
164
- }
165
- renderPageCount() {
166
- return s`<cx-typography variant="body3" class="pagination_count"
167
- >${this.localize.term(
168
- "itemOfTotal",
169
- this.pageIndex,
170
- this._pageCount
171
- )}</cx-typography
172
- >`;
173
- }
174
- renderRowCount() {
175
- return s`<cx-typography variant="body3" class="pagination_count"
176
- >${this.localize.term(
177
- "itemRangeOfTotal",
178
- this.pageStart,
179
- this.pageEnd,
180
- this.count
181
- )}</cx-typography
182
- >`;
183
- }
184
- render() {
185
- return s`
186
- <div class="pagination">
187
- ${h(
188
- this.pageSizeOptions.length > 1,
189
- () => s`
190
- <label class="pagination__label__container">
191
- <cx-typography variant="body3" class="pagination__label">
192
- ${this.label}
193
- </cx-typography>
194
- <cx-select
195
- class="pagination__select"
196
- size="small"
197
- hoist
198
- value=${this.pageSize.toString()}
199
- @cx-change=${this.handlePageSizeSelectChange}
200
- >
201
- ${x(
202
- this.pageSizeOptions,
203
- (t) => t,
204
- (t) => s`
205
- <cx-option value=${t}>${t}</cx-option>
206
- `
207
- )}
208
- </cx-select>
209
- </label>
210
- `
211
- )}
212
- ${h(
213
- this.paginationCounter === l.Both || this.paginationCounter === l.Rows,
214
- () => this.renderRowCount(),
215
- () => this.renderPageCount()
216
- )}
217
- <div class="pagination__navigation-buttons">
218
- ${h(
219
- this.showFirst,
220
- () => s`
221
- <cx-tooltip hoist content=${this.localize.term("first")}>
222
- <cx-icon-button
223
- class="pagination__first"
224
- label=${this.localize.term("first")}
225
- name="first_page"
226
- ?disabled=${this.prevDisabled}
227
- @click=${this.handleFirst}
228
- ></cx-icon-button>
229
- </cx-tooltip>
230
- `
231
- )}
232
- <cx-tooltip hoist content=${this.localize.term("previous")}>
233
- <cx-icon-button
234
- class="pagination__back"
235
- label=${this.localize.term("previous")}
236
- name="chevron_left"
237
- ?disabled=${this.prevDisabled}
238
- @click=${this.handleBack}
239
- ></cx-icon-button>
240
- </cx-tooltip>
241
- ${h(
242
- this.paginationCounter === l.Both,
243
- () => this.renderPageCount()
244
- )}
245
- ${h(this.showPaginationButtons, () => this.renderPageButtons())}
246
- <cx-tooltip hoist content=${this.localize.term("next")}>
247
- <cx-icon-button
248
- class="pagination__forward"
249
- label=${this.localize.term("next")}
250
- name="chevron_right"
251
- ?disabled=${this.nextDisabled}
252
- @click=${this.handleForward}
253
- ></cx-icon-button>
254
- </cx-tooltip>
255
- ${h(
256
- this.showLast,
257
- () => s`
258
- <cx-tooltip hoist content=${this.localize.term("last")}>
259
- <cx-icon-button
260
- class="pagination__last"
261
- label=${this.localize.term("last")}
262
- name="last_page"
263
- ?disabled=${this.nextDisabled}
264
- @click=${this.handleLast}
265
- ></cx-icon-button>
266
- </cx-tooltip>
267
- `
268
- )}
269
- </div>
270
- </div>
271
- `;
272
- }
273
- };
274
- e.styles = B;
275
- e.dependencies = {
276
- "cx-button": z,
277
- "cx-icon-button": v,
278
- "cx-option": $,
279
- "cx-select": S,
280
- "cx-tooltip": w,
281
- "cx-typography": I
282
- };
283
- i([
284
- p({ type: Number })
285
- ], e.prototype, "count", 2);
286
- i([
287
- p({
288
- attribute: "page-size-options",
289
- converter: {
290
- fromAttribute: (t) => {
291
- const a = (t ?? "").trim().split(/\s+/).map((o) => Number.parseInt(o, 10)).filter((o) => Number.isFinite(o) && o > 0);
292
- return a.length ? a : [];
293
- },
294
- toAttribute: (t) => t.join(" ")
295
- },
296
- type: String
297
- })
298
- ], e.prototype, "pageSizeOptions", 2);
299
- i([
300
- p({ attribute: "page-size", type: Number })
301
- ], e.prototype, "pageSize", 2);
302
- i([
303
- p({ type: String })
304
- ], e.prototype, "label", 2);
305
- i([
306
- p({ attribute: "show-first", type: Boolean })
307
- ], e.prototype, "showFirst", 2);
308
- i([
309
- p({ attribute: "show-last", type: Boolean })
310
- ], e.prototype, "showLast", 2);
311
- i([
312
- p({ attribute: "show-pagination-buttons", type: Boolean })
313
- ], e.prototype, "showPaginationButtons", 2);
314
- i([
315
- p({ attribute: "pagination-button-count", type: Number })
316
- ], e.prototype, "paginationButtonCount", 2);
317
- i([
318
- p({ attribute: "pagination-counter", type: String })
319
- ], e.prototype, "paginationCounter", 2);
320
- i([
321
- m()
322
- ], e.prototype, "_pageIndex", 2);
323
- i([
324
- m()
325
- ], e.prototype, "_pageCount", 2);
326
- i([
327
- d("count")
328
- ], e.prototype, "handleCountChange", 1);
329
- i([
330
- d(["_pageIndex"])
331
- ], e.prototype, "handlePageChange", 1);
332
- i([
333
- d(["pageSize"])
334
- ], e.prototype, "handlePageSizeChange", 1);
335
- e = i([
336
- b("cx-pagination")
337
- ], e);
338
- export {
339
- e as C,
340
- l as P
341
- };