@orangelogic/design-system 2.60.0 → 2.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -0,0 +1 @@
1
+ export * from './packages/utils/src/index'
@@ -0,0 +1,180 @@
1
+ import { C as s, D as t, H as o, P as r, m as i, e as l, f as n, u as m, x as p, g as c, h as g, p as d, d as f, i as x, o as u, j as C, k as A, l as T, y as I, r as E, v, s as y, q as S, n as L, t as R, w as b } from "./chunks/index.S0wy3rzm.js";
2
+ import { e as V, f as D, g as h, c as P, i as _, a as B, d as M, m as O, b as w, r as H } from "./chunks/array.DCtvHiLS.js";
3
+ import { e as G, a as N, f as X, g as U, d as z, b as j, c as K, i as W, p as Z, s as q } from "./chunks/browser.BHOCIF_A.js";
4
+ import { d as J, C as Q, e as $, H as aa, R as ea, c as sa, h as ta, f as oa, g as ra, l as ia, p as la, a as na, b as ma } from "./chunks/color.vLD2sNTs.js";
5
+ import { a as ca, b as ga, g as da } from "./chunks/modal.U1QltQKe.js";
6
+ import { a as xa, p as ua, c as Ca, b as Aa, s as Ta } from "./chunks/animate.El-MpOws.js";
7
+ import { t as Ea } from "./chunks/converters.DkDtLstb.js";
8
+ import { c as ya } from "./chunks/custom-element.L4WJXn1j.js";
9
+ import { d as La } from "./chunks/debounce.DaHuiSGU.js";
10
+ import { d as ba } from "./chunks/default-value.COZopaet.js";
11
+ import { d as Va } from "./chunks/drag.DXEXVXPv.js";
12
+ import { w as ha } from "./chunks/event.mFzZi4sr.js";
13
+ import { F as _a, c as Ba, f as Ma, v as Oa, a as wa } from "./chunks/form.CO12-VK0.js";
14
+ import { L as ka, r as Ga } from "./chunks/i18n.DrzK7TPf.js";
15
+ import { c as Xa } from "./chunks/math.DqTA6ya4.js";
16
+ import { g as za, l as ja, s as Ka, u as Wa } from "./chunks/scroll.xtO5yojm.js";
17
+ import { H as qa, a as Ya, g as Ja } from "./chunks/slot.j5oheLJC.js";
18
+ import { g as $a, a as ae } from "./chunks/tabbable.CcMz3mIL.js";
19
+ import { i as se } from "./chunks/user-agent.D9aPuOyL.js";
20
+ import { w as oe } from "./chunks/watch.q1sEjPWL.js";
21
+ import { c as ie, d as le, k as ne, j as me, a as pe, g as ce, h as ge, b as de, f as fe, i as xe, e as ue, l as Ce, s as Ae } from "./chunks/dom.CZrJ64Dm.js";
22
+ import { f as Ie, t as Ee } from "./chunks/toast.BXNbwZV8.js";
23
+ import { c as ye, b as Se, g as Le, r as Re, a as be } from "./chunks/image.mbpyiQpQ.js";
24
+ import { a as Ve, b as De, c as he, e as Pe, f as _e, r as Be, s as Me } from "./chunks/number.CjNxU7Xs.js";
25
+ import { s as we } from "./chunks/parse.Cu5nBDTb.js";
26
+ import { g as ke, a as Ge } from "./chunks/responsive.CA6dcNiM.js";
27
+ import { a as Xe, e as Ue, f as ze, h as je, i as Ke, p as We, b as Ze, s as qe, g as Ye, l as Je, j as Qe, k as $e, m as as, t as es, u as ss } from "./chunks/string.Cp_XNbnV.js";
28
+ import { g as os } from "./chunks/template.CsJd8Pb_.js";
29
+ import { c as is, a as ls, f as ns, g as ms } from "./chunks/time.D_uFZqqe.js";
30
+ import { R as cs, U as gs, c as ds, b as fs, a as xs, i as us } from "./chunks/url.LjsR2sB5.js";
31
+ export {
32
+ J as CMYK_VALIDATION_REGEX,
33
+ Q as ColorType,
34
+ s as CortexPopupController,
35
+ t as DragScroll,
36
+ _a as FormControlController,
37
+ $ as HEX_ALPHA_VALIDATION_REGEX,
38
+ aa as HEX_VALIDATION_REGEX,
39
+ qa as HasSlotController,
40
+ o as HistoryManager,
41
+ ka as LocalizeController,
42
+ r as PRECISION,
43
+ cs as RELATIVE_URL_REGEX,
44
+ ea as RGB_VALIDATION_REGEX,
45
+ gs as URL_DOMAIN_VALIDATION_REGEX,
46
+ ds as URL_PROTOCOL_VALIDATION_REGEX,
47
+ fs as URL_VALIDATION_REGEX,
48
+ ca as activeElements,
49
+ V as adjustRelativeValues,
50
+ xa as animateTo,
51
+ xs as appendProtocol,
52
+ ye as calculateAspectRatioFit,
53
+ Xa as clamp,
54
+ is as clearZeroDurationParts,
55
+ sa as convertColor,
56
+ Ve as convertDataUnits,
57
+ De as convertDurationToMilliseconds,
58
+ he as convertPixelsToAspectRatio,
59
+ Se as cropImage,
60
+ ie as cssValueToPx,
61
+ ya as customElement,
62
+ Ba as customErrorValidityState,
63
+ La as debounce,
64
+ ba as defaultValue,
65
+ i as downloadAsset,
66
+ Va as drag,
67
+ Xe as emptyToSpace,
68
+ ta as extractColor,
69
+ Ue as extractExtension,
70
+ l as extractFrames,
71
+ Pe as extractValueAndUnit,
72
+ Ie as fetchCortexApi,
73
+ G as findAncestorWithBuggyStyle,
74
+ N as findContainingBlock,
75
+ X as findCuttingAncestor,
76
+ n as findFrameByColAndRow,
77
+ D as findIndexByProp,
78
+ Ma as formCollections,
79
+ ls as formatDurationPartsManually,
80
+ _e as formatNumberWithGrouping,
81
+ ze as formatSecondsToTime,
82
+ je as formatTimeToSeconds,
83
+ ns as formatWithIntlDurationFormat,
84
+ le as getActiveElement,
85
+ ga as getActiveModals,
86
+ ke as getBreakpointsFromCSS,
87
+ m as getBrowserFontVariants,
88
+ oa as getColorType,
89
+ Le as getContainedImageSize,
90
+ ne as getCortexPopupLayer,
91
+ me as getCurrentZIndex,
92
+ da as getDeepestActiveElement,
93
+ Ge as getDeviceType,
94
+ ms as getDurationPartsByUnitsFormat,
95
+ pe as getElementFromHTMLString,
96
+ ce as getElementFromTemplate,
97
+ p as getFormControls,
98
+ os as getHighlightedTitle,
99
+ Ya as getInnerHTML,
100
+ c as getInterval,
101
+ ra as getLightDarkCssString,
102
+ ge as getNeededPaddingForBoxShadow,
103
+ U as getNextAncestor,
104
+ za as getOffset,
105
+ de as getRelativeClickPercentage,
106
+ $a as getTabbableBoundary,
107
+ ae as getTabbableElements,
108
+ Ja as getTextContent,
109
+ h as groupBy,
110
+ P as insertAtIndex,
111
+ g as insertFrameToCache,
112
+ _ as insertMultipleAtIndex,
113
+ z as isChrome,
114
+ se as isCortexAdobePlugin,
115
+ fe as isDomElement,
116
+ xe as isElementInHorizontalView,
117
+ j as isFirefox,
118
+ d as isFontFamilyAvailable,
119
+ f as isFormInteracted,
120
+ Ke as isGalleryItemCardType,
121
+ K as isIOS,
122
+ ue as isInElement,
123
+ x as isModKey,
124
+ W as isSafari,
125
+ us as isValidUrl,
126
+ Ce as loadScript,
127
+ ja as lockBodyScrolling,
128
+ ia as luminanceTextColor,
129
+ B as moveMultipleToIndex,
130
+ M as moveToIndex,
131
+ O as multiSelectTo,
132
+ u as omit,
133
+ C as openAssetOverview,
134
+ A as openFolderOverview,
135
+ T as openLink,
136
+ We as padPath,
137
+ la as parseBorder,
138
+ ua as parseDuration,
139
+ na as parseLightDark,
140
+ ma as parseShadow,
141
+ I as pick,
142
+ Z as popoverSupported,
143
+ Ca as prefersReducedMotion,
144
+ E as readLocalStorageValue,
145
+ Ga as registerTranslation,
146
+ w as removeAtIndex,
147
+ H as removeMultipleAtIndex,
148
+ Re as resizeImage,
149
+ Be as rotateBox,
150
+ be as rotateImage,
151
+ Ze as safeString,
152
+ qe as sanitizeHTML,
153
+ Me as sanitizeRotation,
154
+ Ka as scrollIntoView,
155
+ v as serialize,
156
+ y as shareAsset,
157
+ Aa as shimKeyframesHeightAuto,
158
+ Ae as sortByTopPosition,
159
+ S as sortTypefaceVariants,
160
+ we as splitBoxValues,
161
+ Ye as splitCamelCaseFormatted,
162
+ Ta as stopAnimations,
163
+ q as supportHLS,
164
+ L as testFontAvailability,
165
+ Ea as timecodeConverter,
166
+ Je as toCamelCase,
167
+ R as toGalleryEventClick,
168
+ Qe as toKebabCase,
169
+ $e as toPascalCase,
170
+ as as toTitleCase,
171
+ Ee as toast,
172
+ es as truncateTextMiddle,
173
+ Wa as unlockBodyScrolling,
174
+ ss as upperFirst,
175
+ Oa as validValidityState,
176
+ wa as valueMissingValidityState,
177
+ ha as waitForEvent,
178
+ oe as watch,
179
+ b as writeLocalStorageValue
180
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.60.0",
4
+ "version": "2.61.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "start": "vite",
13
13
  "open": "npx playwright test --project=chromium --ui",
14
14
  "playwright": "npx playwright test --project=chromium",
15
- "build-library": "bun run build && vite build --config ./vite.library.config.js",
15
+ "build-library": "bun run build && vite build --config ./vite.library.config.ts",
16
16
  "publish": "./scripts/publish-if-needed.js"
17
17
  },
18
18
  "bin": {
@@ -30,6 +30,15 @@
30
30
  "import": "./library/components/*",
31
31
  "types": "./library/components/*.d.ts"
32
32
  },
33
+ "./utils": {
34
+ "types": "./library/utils.d.ts",
35
+ "import": "./library/utils.js",
36
+ "default": "./library/utils.js"
37
+ },
38
+ "./events": {
39
+ "import": "./library/events.js",
40
+ "types": "./library/events.d.ts"
41
+ },
33
42
  "./react-types": "./library/react-web-component.js",
34
43
  "./css/*": "./library/css/*",
35
44
  "./assets/*": "./library/assets/*"
@@ -1,69 +0,0 @@
1
- function f(t, n, e) {
2
- return new Promise((r) => {
3
- if (e?.duration === 1 / 0)
4
- throw new Error("Promise-based animations must be finite.");
5
- const i = t.animate(n, {
6
- ...e,
7
- duration: c() ? 0 : e.duration
8
- });
9
- i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
10
- });
11
- }
12
- function m(t) {
13
- return t = t.toString().toLowerCase(), t.indexOf("ms") > -1 ? parseFloat(t) : t.indexOf("s") > -1 ? parseFloat(t) * 1e3 : parseFloat(t);
14
- }
15
- function c() {
16
- return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
17
- }
18
- function d(t) {
19
- return Promise.all(
20
- t.getAnimations().map((n) => new Promise((e) => {
21
- n.cancel(), requestAnimationFrame(e);
22
- }))
23
- );
24
- }
25
- function g(t, n) {
26
- return t.map((e) => ({
27
- ...e,
28
- height: e.height === "auto" ? `${n}px` : e.height
29
- }));
30
- }
31
- const a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new WeakMap();
32
- function u(t) {
33
- return t ?? { keyframes: [], options: { duration: 0 } };
34
- }
35
- function s(t, n) {
36
- return n.toLowerCase() === "rtl" ? {
37
- keyframes: t.rtlKeyframes || t.keyframes,
38
- options: t.options
39
- } : t;
40
- }
41
- function p(t, n) {
42
- a.set(t, u(n));
43
- }
44
- function A(t, n, e) {
45
- o.set(t, {
46
- ...o.get(t),
47
- [n]: u(e)
48
- });
49
- }
50
- function h(t, n, e) {
51
- const r = o.get(t);
52
- if (r?.[n])
53
- return s(r[n], e.dir);
54
- const i = a.get(n);
55
- return i ? s(i, e.dir) : {
56
- keyframes: [],
57
- options: { duration: 0 }
58
- };
59
- }
60
- export {
61
- d as a,
62
- f as b,
63
- g as c,
64
- A as d,
65
- c as e,
66
- h as g,
67
- m as p,
68
- p as s
69
- };
@@ -1,309 +0,0 @@
1
- import { h as d, A as T, a as P } from "./endpoints.BgyupJys.js";
2
- const U = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
3
- function M(o, e, r, t = U) {
4
- const s = new URL(t + "/" + o);
5
- return Array.isArray(r) ? r.forEach((n) => {
6
- n[1] && s.searchParams.append(n[0], n[1]);
7
- }) : r && Object.keys(r).forEach((n) => {
8
- r[n] && s.searchParams.append(n, r[n]);
9
- }), fetch(s, e);
10
- }
11
- const A = (o, e) => {
12
- try {
13
- window.Matrix3?.ShowNotification && window.Matrix3.ShowNotification(
14
- o,
15
- e ? {
16
- notificationType: e.notificationType
17
- } : void 0
18
- );
19
- } catch {
20
- return;
21
- }
22
- }, L = "CoreField.LargeSizePreview", C = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", g = "CoreField.Identifier", N = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", w = "CoreField.DocSubType", B = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
23
- function W(o) {
24
- return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
25
- (e, [r, t]) => !t || t.length === 0 ? e : r === "Types" ? {
26
- ...e,
27
- SubtypeCriteria: t
28
- } : {
29
- ...e,
30
- FacetFilters: {
31
- ...e.FacetFilters,
32
- [r]: t
33
- }
34
- },
35
- {}
36
- );
37
- }
38
- async function H({
39
- assetId: o,
40
- extension: e,
41
- format: r,
42
- siteUrl: t,
43
- token: s,
44
- transformations: n,
45
- useSession: i
46
- }) {
47
- try {
48
- return (await d.request({
49
- baseURL: t,
50
- method: "GET",
51
- params: {
52
- SourceAssetFormat: r,
53
- SourceAssetRecordID: o,
54
- TargetExtension: e,
55
- Token: s,
56
- Transformations: n,
57
- UseSession: i || void 0
58
- },
59
- /**
60
- * https://link.orangelogic.com/Tasks/41S1XH
61
- */
62
- timeout: 3e5,
63
- // 5 minutes
64
- url: T.GET_TRANSFORM_ASSET_LINK
65
- })).data;
66
- } catch {
67
- return null;
68
- }
69
- }
70
- async function k({
71
- extraFields: o,
72
- recordIds: e
73
- }) {
74
- if (!Array.isArray(e) || e.length === 0)
75
- return { facets: [], items: [], totalCount: 0 };
76
- const r = o?.filter((t) => t && typeof t == "string") ?? [];
77
- try {
78
- return (await d.request({
79
- method: "GET",
80
- params: {
81
- ExtraFilters: `RecordID:${e.join(" OR ")}`,
82
- Fields: [
83
- ...r,
84
- E,
85
- F,
86
- I,
87
- b,
88
- j
89
- ],
90
- SeeThru: !0
91
- },
92
- paramsSerializer: {
93
- indexes: null
94
- },
95
- responseType: "json",
96
- transformResponse: [
97
- ...Array.isArray(d.defaults.transformResponse) ? d.defaults.transformResponse : [],
98
- (s) => {
99
- const n = s.contentItems?.map((i) => {
100
- let l = i.fields[F] ?? "";
101
- return l === "" && (l = i.fields[I] ?? ""), {
102
- name: l,
103
- originalUrl: i.fields[E] ?? "",
104
- recordId: i.recordID,
105
- ...r.reduce(
106
- (u, c) => (u[c] = i.fields[c] ?? "", u),
107
- {}
108
- )
109
- };
110
- }) ?? [];
111
- return n.sort((i, l) => {
112
- const u = e.indexOf(i.recordId), c = e.indexOf(l.recordId);
113
- return u - c;
114
- }), {
115
- facets: s.facets,
116
- items: n,
117
- totalCount: s.totalCount
118
- };
119
- }
120
- ],
121
- url: T.GET_CONTENT_V1
122
- })).data;
123
- } catch {
124
- return {
125
- facets: [],
126
- items: [],
127
- totalCount: 0
128
- };
129
- }
130
- }
131
- async function q({
132
- extraFields: o,
133
- folderId: e,
134
- limit: r,
135
- limitedDocTypes: t,
136
- searchTerm: s,
137
- seeThrough: n,
138
- selectedFacets: i,
139
- sortOrder: l,
140
- start: u
141
- }) {
142
- const c = (o?.filter((f) => f && typeof f == "string") ?? []).map((f) => f.replace("%20", " "));
143
- try {
144
- return (await d.request({
145
- method: "GET",
146
- params: {
147
- Fields: [
148
- ...c,
149
- B,
150
- L,
151
- E,
152
- N,
153
- G,
154
- R,
155
- O,
156
- C,
157
- w,
158
- g,
159
- S,
160
- x,
161
- I,
162
- F
163
- ],
164
- Limit: r,
165
- LimitedToDocTypes: t.length > 0 ? t : void 0,
166
- ObjectRecordID: e,
167
- OrderBy: l || void 0,
168
- SearchTerm: s || void 0,
169
- SeeThru: n,
170
- Start: u,
171
- ...W(i)
172
- },
173
- paramsSerializer: {
174
- indexes: null
175
- },
176
- responseType: "json",
177
- transformResponse: [
178
- ...Array.isArray(d.defaults.transformResponse) ? d.defaults.transformResponse : [],
179
- (y) => ({
180
- facets: y.facets,
181
- items: y.contentItems?.map((a) => {
182
- let p = a.fields[S] ?? "", D = a.fields[F] ?? "", _ = a.fields[L] ?? "";
183
- return p && !p.startsWith(".") && (p = "." + p), D === "" && (D = a.fields[I] ?? ""), p.toLowerCase() === ".gif" && (_ = a.fields[E] ?? ""), {
184
- docSubType: a.fields[w] ?? "",
185
- docType: a.fields[C] ?? "",
186
- extension: p,
187
- height: a.fields[R] ?? "0",
188
- id: a.recordID,
189
- identifier: a.fields[g] ?? "",
190
- imageUrl: _,
191
- name: D ?? "",
192
- originalUrl: a.fields[E] ?? "",
193
- recordId: a.fields[x] ?? "",
194
- size: a.fields[O] ?? "0 MB",
195
- tags: a.fields[N] ?? "",
196
- width: a.fields[G] ?? "0",
197
- ...c.reduce(
198
- (h, m) => (h[m] = a.fields[m] ?? "", h),
199
- {}
200
- )
201
- };
202
- }) ?? [],
203
- totalCount: y.totalCount
204
- })
205
- ],
206
- url: T.GET_CONTENT_V2
207
- })).data;
208
- } catch {
209
- return {
210
- facets: [],
211
- items: [],
212
- totalCount: 0
213
- };
214
- }
215
- }
216
- async function z({
217
- autoCropMode: o,
218
- cropHeight: e,
219
- cropWidth: r,
220
- imageUrl: t,
221
- useSession: s
222
- }) {
223
- try {
224
- return (await d.request({
225
- method: "GET",
226
- params: {
227
- AutoCropMode: o,
228
- CropHeight: e,
229
- CropWidth: r,
230
- ImageUrl: t && new URL(t, window.location.origin).href,
231
- UseSession: s || void 0
232
- },
233
- responseType: "json",
234
- timeout: 3e5,
235
- // 5 minutes
236
- transformResponse: [
237
- ...Array.isArray(d.defaults.transformResponse) ? d.defaults.transformResponse : [],
238
- (i) => ({
239
- height: i.cropHeight,
240
- width: i.cropWidth,
241
- x: i.cropX,
242
- y: i.cropY
243
- })
244
- ],
245
- url: T.GET_CROP_ZONE_SUGGESTION
246
- })).data;
247
- } catch {
248
- return null;
249
- }
250
- }
251
- async function V({
252
- siteUrl: o
253
- } = {}) {
254
- try {
255
- return (await d.request({
256
- baseURL: o,
257
- method: "GET",
258
- responseType: "json",
259
- transformResponse: [
260
- ...Array.isArray(d.defaults.transformResponse) ? d.defaults.transformResponse : [],
261
- (r) => !r || typeof r != "object" ? {
262
- formatsByDocType: {
263
- Audio: {},
264
- Image: {},
265
- Multimedia: {},
266
- Video: {}
267
- }
268
- } : {
269
- formatsByDocType: r.formatsByDocType ?? {}
270
- }
271
- ],
272
- url: P
273
- })).data;
274
- } catch {
275
- return { formatsByDocType: {} };
276
- }
277
- }
278
- async function K(o, e) {
279
- const r = new FormData();
280
- r.append("InputStream", o);
281
- const t = await M(
282
- T.UPLOAD_AND_GET_RESPONSE,
283
- {
284
- body: r,
285
- method: "POST"
286
- },
287
- {
288
- ByPassPermissionCheck: "true",
289
- ClientFileName: o.name,
290
- FolderRecordID: e?.imageUploadFolderID || ""
291
- }
292
- ), s = t ? await t.json() : null;
293
- return s ? s.downloadLink === "" ? (A(e?.errorUploadMessage || "", {
294
- notificationType: "error"
295
- }), "") : s.downloadLink : (A(e?.errorUploadMessage || "", {
296
- notificationType: "error"
297
- }), "");
298
- }
299
- export {
300
- L as D,
301
- k as a,
302
- H as b,
303
- z as c,
304
- V as d,
305
- q as e,
306
- M as f,
307
- A as t,
308
- K as u
309
- };