@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,14 @@
1
+ const m = (e, n) => (window.customElements.get(e) || window.customElements.define(e, n), n), u = (e, n) => {
2
+ const { elements: t, kind: o } = n;
3
+ return {
4
+ elements: t,
5
+ // This callback is called once the class is otherwise fully defined
6
+ finisher(s) {
7
+ window.customElements.get(e) || window.customElements.define(e, s);
8
+ },
9
+ kind: o
10
+ };
11
+ }, i = (e) => (n) => typeof n == "function" ? m(e, n) : u(e, n);
12
+ export {
13
+ i as c
14
+ };
@@ -0,0 +1,15 @@
1
+ const c = (s, n = !1) => {
2
+ const a = Symbol(), o = Symbol();
3
+ return (u, d, t) => {
4
+ const l = t.value;
5
+ t.value = function(...i) {
6
+ const e = this;
7
+ clearTimeout(e[a]), n && !e[o] && (l.apply(this, i), e[o] = !0), e[a] = window.setTimeout(() => {
8
+ n || l.apply(this, i), e[o] = !1;
9
+ }, s);
10
+ }, t.configurable === !1 && (t.configurable = !0);
11
+ };
12
+ };
13
+ export {
14
+ c as d
15
+ };
@@ -1,4 +1,4 @@
1
- import { u as a } from "./custom-element.vnXBMQxc.js";
1
+ import { u as a } from "./lit-element.jLBm65_O.js";
2
2
  const C = (o = "value") => (u, s) => {
3
3
  const e = u.constructor, b = e.prototype.attributeChangedCallback;
4
4
  e.prototype.attributeChangedCallback = function(i, f, n) {
@@ -1,24 +1,27 @@
1
- import { i as z, n, C as S, x as u, E as D, c as B } from "./custom-element.vnXBMQxc.js";
2
- import { c as L } from "./component.styles.CI-v8BZa.js";
3
- import { O, C as P, H as $, z as H, o as E } from "./overlayscrollbars.aFuRG5Rs.js";
4
- import { s as p, g as h, b as c, a as y } from "./animation-registry.DavRkTTr.js";
1
+ import { n, C as z } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as S } from "./component.styles.DMSLciL5.js";
3
+ import { O, C as D, H as B, z as L, o as P } from "./overlayscrollbars.XhGWx9Zk.js";
4
+ import { a as h, s as u } from "./animate.El-MpOws.js";
5
+ import { c as $ } from "./custom-element.L4WJXn1j.js";
5
6
  import { w as x } from "./event.mFzZi4sr.js";
6
- import { L as R } from "./i18n.BP2FRO1v.js";
7
- import { M as W } from "./modal.BqNLxgs1.js";
8
- import { l as w, u as _ } from "./scroll.DwPiX2Ox.js";
9
- import { H as q } from "./slot.DJLm4Dig.js";
10
- import { w as k } from "./watch.BCJD77bD.js";
11
- import { r as b } from "./state.Cw55xXlb.js";
12
- import { e as m } from "./query.BBf1UFkC.js";
13
- import { e as v } from "./class-map.CoZTSvbM.js";
14
- import { o as C } from "./if-defined.MfEgpxEN.js";
15
- import { o as A } from "./style-map.CZovMmo_.js";
7
+ import { L as H } from "./i18n.DrzK7TPf.js";
8
+ import { M as E } from "./modal.U1QltQKe.js";
9
+ import { l as w, u as _ } from "./scroll.xtO5yojm.js";
10
+ import { H as R } from "./slot.j5oheLJC.js";
11
+ import { w as k } from "./watch.q1sEjPWL.js";
12
+ import { i as W, x as y, E as q } from "./lit-element.jLBm65_O.js";
13
+ import { r as m } from "./state.CSDxrqLd.js";
14
+ import { e as b } from "./query.BBf1UFkC.js";
15
+ import { e as v } from "./class-map.BiVq-cVR.js";
16
+ import { o as C } from "./if-defined.BRoBj_Rp.js";
17
+ import { o as A } from "./style-map.llVFPd__.js";
16
18
  import { n as g } from "./when.Dr1es41R.js";
19
+ import { s as p, g as c } from "./animation-registry.HmpwNuGH.js";
17
20
  import F from "../components/divider.js";
18
21
  import I from "../components/icon-button.js";
19
- import { C as T } from "./popup._w5T7x8f.js";
22
+ import T from "../components/popup.js";
20
23
  var l = /* @__PURE__ */ ((e) => (e.Both = "both", e.Footer = "footer", e.Header = "header", e.None = "none", e))(l || {});
21
- const U = z`
24
+ const U = W`
22
25
  :host {
23
26
  --width: 31rem;
24
27
  --header-spacing: var(--cx-spacing-small) var(--cx-spacing-large);
@@ -173,13 +176,13 @@ var j = Object.defineProperty, M = Object.getOwnPropertyDescriptor, a = (e, o, i
173
176
  return r && s && j(o, i, s), s;
174
177
  };
175
178
  O.plugin({
176
- ClickScroll: H,
177
- ScrollbarsHiding: $,
178
- SizeObserver: P
179
+ ClickScroll: L,
180
+ ScrollbarsHiding: B,
181
+ SizeObserver: D
179
182
  });
180
- let t = class extends S {
183
+ let t = class extends z {
181
184
  constructor() {
182
- super(), this.hasSlotController = new q(this, "footer"), this.localize = new R(this), this.modal = new W(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
185
+ super(), this.hasSlotController = new R(this, "footer"), this.localize = new H(this), this.modal = new E(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = l.Header, this.useOverlayScrollbar = !1, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
183
186
  height: 0,
184
187
  width: 0
185
188
  }, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
@@ -240,10 +243,10 @@ let t = class extends S {
240
243
  if (o.defaultPrevented || this.disableOverlayClick && e === "overlay") {
241
244
  if (o.detail.preventedReason === "nested" || !this.disableOverlayClick && e === "overlay")
242
245
  return !1;
243
- const i = h(this, "dialog.denyClose", {
246
+ const i = c(this, "dialog.denyClose", {
244
247
  dir: this.localize.dir()
245
248
  });
246
- return c(this.panel, i.keyframes, i.options), !1;
249
+ return h(this.panel, i.keyframes, i.options), !1;
247
250
  }
248
251
  return this.hide(), !0;
249
252
  }
@@ -292,9 +295,9 @@ let t = class extends S {
292
295
  })), (!this.boundary || this.boundary === document.body) && w(this);
293
296
  const e = this.querySelector("[autofocus]");
294
297
  e && e.removeAttribute("autofocus"), await Promise.all([
295
- y(this.popup),
298
+ u(this.popup),
296
299
  (() => {
297
- this.overlay && y(this.overlay);
300
+ this.overlay && u(this.overlay);
298
301
  })()
299
302
  ]), this.popup.hidden = !1, (() => {
300
303
  this.emit("cx-initial-focus", {
@@ -303,15 +306,15 @@ let t = class extends S {
303
306
  preventScroll: !0
304
307
  }) : this.panel.focus({ preventScroll: !0 })), e && e.setAttribute("autofocus", "");
305
308
  })();
306
- const i = h(this, "dialog.show", {
309
+ const i = c(this, "dialog.show", {
307
310
  dir: this.localize.dir()
308
- }), r = h(this, "dialog.overlay.show", {
311
+ }), r = c(this, "dialog.overlay.show", {
309
312
  dir: this.localize.dir()
310
313
  });
311
314
  await Promise.all([
312
- c(this.panel, i.keyframes, i.options),
315
+ h(this.panel, i.keyframes, i.options),
313
316
  (async () => {
314
- this.overlay && await c(
317
+ this.overlay && await h(
315
318
  this.overlay,
316
319
  r.keyframes,
317
320
  r.options
@@ -320,25 +323,25 @@ let t = class extends S {
320
323
  ]), this.emit("cx-after-show"), this.addOpenListeners();
321
324
  } else {
322
325
  this.emit("cx-hide"), this.removeOpenListeners(), this.modal.deactivate(), this.osInstance?.destroy(), await Promise.all([
323
- y(this.popup),
326
+ u(this.popup),
324
327
  (() => {
325
- this.overlay && y(this.overlay);
328
+ this.overlay && u(this.overlay);
326
329
  })()
327
330
  ]);
328
- const e = h(this, "dialog.hide", {
331
+ const e = c(this, "dialog.hide", {
329
332
  dir: this.localize.dir()
330
- }), o = h(this, "dialog.overlay.hide", {
333
+ }), o = c(this, "dialog.overlay.hide", {
331
334
  dir: this.localize.dir()
332
335
  });
333
336
  await Promise.all([
334
337
  (async () => {
335
- this.overlay && (await c(
338
+ this.overlay && (await h(
336
339
  this.overlay,
337
340
  o.keyframes,
338
341
  o.options
339
342
  ), this.overlay.hidden = !0);
340
343
  })(),
341
- c(
344
+ h(
342
345
  this.panel,
343
346
  e.keyframes,
344
347
  e.options
@@ -361,7 +364,7 @@ let t = class extends S {
361
364
  return this.open = !1, x(this, "cx-after-hide");
362
365
  }
363
366
  render() {
364
- return u`
367
+ return y`
365
368
  <cx-popup
366
369
  part="base"
367
370
  ?active=${this.open}
@@ -402,8 +405,8 @@ let t = class extends S {
402
405
  >
403
406
  ${g(
404
407
  this.noHeader,
405
- () => D,
406
- () => u`
408
+ () => q,
409
+ () => y`
407
410
  <header part="header" class="dialog__header">
408
411
  <h2 part="title" class="dialog__title" id="title">
409
412
  <slot name="label">
@@ -427,7 +430,7 @@ let t = class extends S {
427
430
  l.Header,
428
431
  l.Both
429
432
  ].includes(this.dividerPosition),
430
- () => u`
433
+ () => y`
431
434
  <cx-divider class="dialog__header-divider"></cx-divider>
432
435
  `
433
436
  )}
@@ -445,7 +448,7 @@ let t = class extends S {
445
448
  l.Footer,
446
449
  l.Both
447
450
  ].includes(this.dividerPosition),
448
- () => u`
451
+ () => y`
449
452
  <cx-divider class="dialog__footer-divider"></cx-divider>
450
453
  `
451
454
  )}
@@ -460,8 +463,8 @@ let t = class extends S {
460
463
  }
461
464
  };
462
465
  t.styles = [
463
- L,
464
- E,
466
+ S,
467
+ P,
465
468
  U
466
469
  ];
467
470
  t.dependencies = {
@@ -470,13 +473,13 @@ t.dependencies = {
470
473
  "cx-popup": T
471
474
  };
472
475
  a([
473
- m(".popup")
476
+ b(".popup")
474
477
  ], t.prototype, "popup", 2);
475
478
  a([
476
- m(".dialog__panel")
479
+ b(".dialog__panel")
477
480
  ], t.prototype, "panel", 2);
478
481
  a([
479
- m(".dialog__body")
482
+ b(".dialog__body")
480
483
  ], t.prototype, "body", 2);
481
484
  a([
482
485
  n({ reflect: !0, type: Boolean })
@@ -518,13 +521,13 @@ a([
518
521
  n({ reflect: !0 })
519
522
  ], t.prototype, "strategy", 2);
520
523
  a([
521
- b()
524
+ m()
522
525
  ], t.prototype, "overlay", 2);
523
526
  a([
524
- b()
527
+ m()
525
528
  ], t.prototype, "boundaryObserver", 2);
526
529
  a([
527
- b()
530
+ m()
528
531
  ], t.prototype, "boundarySize", 2);
529
532
  a([
530
533
  k(["boundary"], { waitUntilFirstUpdate: !0 })
@@ -533,7 +536,7 @@ a([
533
536
  k("open", { waitUntilFirstUpdate: !0 })
534
537
  ], t.prototype, "handleOpenChange", 1);
535
538
  t = a([
536
- B("cx-dialog")
539
+ $("cx-dialog")
537
540
  ], t);
538
541
  p("dialog.show", {
539
542
  keyframes: [
@@ -1,4 +1,4 @@
1
- import { Z as d } from "./custom-element.vnXBMQxc.js";
1
+ import { Z as d } from "./lit-element.jLBm65_O.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2020 Google LLC
@@ -0,0 +1,92 @@
1
+ import { s as u } from "./string.Cp_XNbnV.js";
2
+ import { B as p } from "./lit-element.jLBm65_O.js";
3
+ const f = (n) => n.nodeType === Node.ELEMENT_NODE, E = (n, t) => {
4
+ if (!n)
5
+ return !1;
6
+ let e = n;
7
+ for (; e && e.parentNode; ) {
8
+ if (e.parentNode === t)
9
+ return !0;
10
+ e.parentNode.host ? e = e.parentNode.host : e = e.parentNode;
11
+ }
12
+ return !1;
13
+ }, m = (n = document) => {
14
+ const t = n.activeElement;
15
+ return t ? t.shadowRoot ? m(t.shadowRoot) : t : null;
16
+ }, C = (n, t = document.body, e = "width") => {
17
+ const i = n?.trim();
18
+ if (!i)
19
+ return 0;
20
+ const o = i.split(/\s+/)[0];
21
+ if (o.endsWith("px"))
22
+ return parseFloat(o);
23
+ const s = o.startsWith("-"), r = document.createElement("div");
24
+ r.style[e] = s ? o.substring(1) : o, r.style.position = "absolute", r.style.visibility = "hidden", t.appendChild(r);
25
+ const a = r.getBoundingClientRect(), d = e === "width" ? a.width : a.height;
26
+ return t.removeChild(r), s ? -d : d;
27
+ }, x = (n, t) => {
28
+ const e = t.getBoundingClientRect(), o = (n.clientX - e.left) / e.width * 100;
29
+ return Math.max(0, Math.min(100, o));
30
+ }, y = (n, t) => new Promise((e, i) => {
31
+ const o = t ? t.document : document, s = o.querySelector(
32
+ `script[src="${n}"]`
33
+ );
34
+ if (s) {
35
+ if (s.getAttribute("data-loaded") === "true")
36
+ return e();
37
+ s.addEventListener("load", () => e()), s.addEventListener("error", (a) => i(a));
38
+ return;
39
+ }
40
+ const r = o.createElement("script");
41
+ r.src = n, r.async = !0, r.onload = () => {
42
+ r.setAttribute("data-loaded", "true"), e();
43
+ }, r.onerror = () => i(new Error(`Failed to load ${n}`)), o.head.appendChild(r);
44
+ });
45
+ function M(n, t = !1) {
46
+ const [e, i, o, s] = n.split(" ").map(parseFloat), r = t ? "px" : "", a = Math.max(0, o + s - i), d = o + s + e, c = o + s + i, l = Math.max(0, o + s - e);
47
+ return {
48
+ paddingBottom: c + r,
49
+ paddingLeft: l + r,
50
+ paddingRight: d + r,
51
+ paddingTop: a + r
52
+ };
53
+ }
54
+ function R(n) {
55
+ return [...n].sort((t, e) => {
56
+ const i = t.getBoundingClientRect().top, o = e.getBoundingClientRect().top;
57
+ return i - o;
58
+ });
59
+ }
60
+ function T() {
61
+ return window.StackMgr?.GetInstance()?.GetIndex() ?? 99999;
62
+ }
63
+ function B() {
64
+ return document.getElementById("PopupLayer") || document.body;
65
+ }
66
+ function w(n) {
67
+ const t = document.createElement("template");
68
+ return p(n, t.content), t.content.firstElementChild;
69
+ }
70
+ function b(n) {
71
+ const t = document.createElement("template");
72
+ return t.innerHTML = u(n), t.content.firstElementChild;
73
+ }
74
+ function L(n, t, e = 0) {
75
+ const i = n.getBoundingClientRect(), o = t.getBoundingClientRect();
76
+ return Math.round(o.left) >= Math.round(i.left) - e && Math.round(o.right) <= Math.round(i.right) + e;
77
+ }
78
+ export {
79
+ b as a,
80
+ x as b,
81
+ C as c,
82
+ m as d,
83
+ E as e,
84
+ f,
85
+ w as g,
86
+ M as h,
87
+ L as i,
88
+ T as j,
89
+ B as k,
90
+ y as l,
91
+ R as s
92
+ };
@@ -1,17 +1,19 @@
1
- import { i as P, n as a, C as F, x as y, c as z } from "./custom-element.vnXBMQxc.js";
2
- import { c as S } from "./component.styles.CI-v8BZa.js";
1
+ import { n as a, C as P } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as F } from "./component.styles.DMSLciL5.js";
3
3
  import { O as C } from "./index.Cpamj0jB.js";
4
- import { L as O } from "./i18n.BP2FRO1v.js";
5
- import { w as h } from "./watch.BCJD77bD.js";
6
- import { r as j } from "./state.Cw55xXlb.js";
4
+ import { c as z } from "./custom-element.L4WJXn1j.js";
5
+ import { L as S } from "./i18n.DrzK7TPf.js";
6
+ import { w as m } from "./watch.q1sEjPWL.js";
7
+ import { i as O, x as y } from "./lit-element.jLBm65_O.js";
8
+ import { r as j } from "./state.CSDxrqLd.js";
7
9
  import { e as H } from "./query.BBf1UFkC.js";
8
10
  import { r as K } from "./query-all.i3PyvTUQ.js";
9
- import { e as L } from "./class-map.CoZTSvbM.js";
10
- import { o as E } from "./if-defined.MfEgpxEN.js";
11
+ import { e as L } from "./class-map.BiVq-cVR.js";
12
+ import { o as E } from "./if-defined.BRoBj_Rp.js";
11
13
  import { o as D } from "./map.D8heArFD.js";
12
14
  import { n as w } from "./when.Dr1es41R.js";
13
15
  import R from "../components/tooltip.js";
14
- const T = P`
16
+ const T = O`
15
17
  :host {
16
18
  display: inline-block;
17
19
  }
@@ -103,9 +105,9 @@ var B = Object.defineProperty, V = Object.getOwnPropertyDescriptor, i = (t, n, e
103
105
  (s = t[r]) && (l = (c ? s(n, e, l) : s(l)) || l);
104
106
  return c && l && B(n, e, l), l;
105
107
  };
106
- let o = class extends F {
108
+ let o = class extends P {
107
109
  constructor() {
108
- super(...arguments), this.localize = new O(this), this.activeIndex = 0, this.totalItemsCount = 0, this.visibleItemsCount = 1, this.step = 1, this.centerDots = 5, this.frontDots = 3, this.backDots = 3, this.loop = !1, this.orientation = C.Horizontal, this.transitioning = !1, this.tooltipPlacement = void 0, this.tooltipDescription = void 0, this.description = void 0, this.controlIds = [], this.dots = {
110
+ super(...arguments), this.localize = new S(this), this.activeIndex = 0, this.totalItemsCount = 0, this.visibleItemsCount = 1, this.step = 1, this.centerDots = 5, this.frontDots = 3, this.backDots = 3, this.loop = !1, this.orientation = C.Horizontal, this.transitioning = !1, this.tooltipPlacement = void 0, this.tooltipDescription = void 0, this.description = void 0, this.controlIds = [], this.dots = {
109
111
  back: [],
110
112
  backEllipsis: !1,
111
113
  center: [],
@@ -133,7 +135,7 @@ let o = class extends F {
133
135
  if (g <= N)
134
136
  d.front = Array.from(
135
137
  { length: g },
136
- (u, m) => Math.min(m * r, x)
138
+ (u, h) => Math.min(h * r, x)
137
139
  );
138
140
  else {
139
141
  d.frontEllipsis = _ > c + v, d.backEllipsis = _ < g - n - v - 1, d.front = Array.from(
@@ -143,8 +145,8 @@ let o = class extends F {
143
145
  { length: n },
144
146
  (k, b) => Math.min((g - n + b) * r, x)
145
147
  );
146
- let u, m;
147
- d.frontEllipsis ? d.backEllipsis ? (u = _ - v, m = u + e) : (m = g - n, u = m - e) : (u = c, m = u + e), d.center = Array.from({ length: m - u }, (k, b) => {
148
+ let u, h;
149
+ d.frontEllipsis ? d.backEllipsis ? (u = _ - v, h = u + e) : (h = g - n, u = h - e) : (u = c, h = u + e), d.center = Array.from({ length: h - u }, (k, b) => {
148
150
  const A = (u + b) * r;
149
151
  return Math.min(A, x);
150
152
  });
@@ -244,7 +246,7 @@ let o = class extends F {
244
246
  `;
245
247
  }
246
248
  };
247
- o.styles = [S, T];
249
+ o.styles = [F, T];
248
250
  o.dependencies = { "cx-tooltip": R };
249
251
  i([
250
252
  H(".dot-pagination__dot--active")
@@ -305,14 +307,14 @@ i([
305
307
  j()
306
308
  ], o.prototype, "dots", 2);
307
309
  i([
308
- h("centerDots", { waitUntilFirstUpdate: !0 }),
309
- h("frontDots", { waitUntilFirstUpdate: !0 }),
310
- h("backDots", { waitUntilFirstUpdate: !0 }),
311
- h("activeIndex", { waitUntilFirstUpdate: !0 }),
312
- h("step", { waitUntilFirstUpdate: !0 }),
313
- h("visibleItemsCount", { waitUntilFirstUpdate: !0 }),
314
- h("loop", { waitUntilFirstUpdate: !0 }),
315
- h("totalItemsCount")
310
+ m("centerDots", { waitUntilFirstUpdate: !0 }),
311
+ m("frontDots", { waitUntilFirstUpdate: !0 }),
312
+ m("backDots", { waitUntilFirstUpdate: !0 }),
313
+ m("activeIndex", { waitUntilFirstUpdate: !0 }),
314
+ m("step", { waitUntilFirstUpdate: !0 }),
315
+ m("visibleItemsCount", { waitUntilFirstUpdate: !0 }),
316
+ m("loop", { waitUntilFirstUpdate: !0 }),
317
+ m("totalItemsCount")
316
318
  ], o.prototype, "calculateDots", 1);
317
319
  o = i([
318
320
  z("cx-dot-pagination")
@@ -2363,9 +2363,7 @@ ht.interceptors.response.use(
2363
2363
  (e) => e,
2364
2364
  (e) => Promise.reject(e)
2365
2365
  );
2366
- const Pn = ln(ht);
2367
- Promise.resolve();
2368
- const Bn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Dn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
2366
+ const Pn = ln(ht), Bn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Dn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
2369
2367
  var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_ASSET_LINK = "webapi/extensibility/integrations/contentBrowserSDK/GetAssetLink_4by", e.GET_CONTENT_V1 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1", e.GET_CONTENT_V2 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v2", e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), yn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(yn || {}), bn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(bn || {});
2370
2368
  export {
2371
2369
  fn as A,