@orangelogic/design-system 2.60.0 → 2.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,17 +1,19 @@
1
- import { i as x, n as r, C as f, x as p, c as m } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as b } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { f as v } from "../chunks/form-control.styles.NE2Q-quE.js";
4
- import { d as g } from "../chunks/default-value.CIKAvD5l.js";
5
- import { F as y } from "../chunks/form.B8u0ywni.js";
6
- import { H as _ } from "../chunks/slot.DJLm4Dig.js";
7
- import { w as u } from "../chunks/watch.BCJD77bD.js";
8
- import { r as z } from "../chunks/state.Cw55xXlb.js";
1
+ import { n as r, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as f } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { f as m } from "../chunks/form-control.styles.CUGhvlfT.js";
4
+ import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
5
+ import { d as v } from "../chunks/default-value.COZopaet.js";
6
+ import { F as g } from "../chunks/form.CO12-VK0.js";
7
+ import { H as y } from "../chunks/slot.j5oheLJC.js";
8
+ import { w as u } from "../chunks/watch.q1sEjPWL.js";
9
+ import { i as _, x as p } from "../chunks/lit-element.jLBm65_O.js";
10
+ import { r as z } from "../chunks/state.CSDxrqLd.js";
9
11
  import { e as C } from "../chunks/query.BBf1UFkC.js";
10
- import { e as d } from "../chunks/class-map.CoZTSvbM.js";
11
- import { o as n } from "../chunks/if-defined.MfEgpxEN.js";
12
- import { l as w } from "../chunks/live.LdB9xEhp.js";
12
+ import { e as d } from "../chunks/class-map.BiVq-cVR.js";
13
+ import { o as n } from "../chunks/if-defined.BRoBj_Rp.js";
14
+ import { l as w } from "../chunks/live.SCz6M8Gs.js";
13
15
  import { n as k } from "../chunks/when.Dr1es41R.js";
14
- const $ = x`
16
+ const $ = _`
15
17
  :host {
16
18
  display: block;
17
19
  }
@@ -301,11 +303,11 @@ var F = Object.defineProperty, T = Object.getOwnPropertyDescriptor, e = (a, i, l
301
303
  (h = a[c]) && (o = (s ? h(i, l, o) : h(o)) || o);
302
304
  return s && o && F(i, l, o), o;
303
305
  };
304
- let t = class extends f {
306
+ let t = class extends x {
305
307
  constructor() {
306
- super(...arguments), this.formControlController = new y(this, {
308
+ super(...arguments), this.formControlController = new g(this, {
307
309
  assumeInteractionOn: ["cx-input"]
308
- }), this.hasSlotController = new _(
310
+ }), this.hasSlotController = new y(
309
311
  this,
310
312
  "help-text",
311
313
  "label"
@@ -510,7 +512,7 @@ let t = class extends f {
510
512
  `;
511
513
  }
512
514
  };
513
- t.styles = [b, v, $];
515
+ t.styles = [f, m, $];
514
516
  e([
515
517
  C(".textarea__control")
516
518
  ], t.prototype, "input", 2);
@@ -599,7 +601,7 @@ e([
599
601
  r({ attribute: "inputmode", reflect: !0, type: String })
600
602
  ], t.prototype, "inputMode", 2);
601
603
  e([
602
- g()
604
+ v()
603
605
  ], t.prototype, "defaultValue", 2);
604
606
  e([
605
607
  u("disabled", { waitUntilFirstUpdate: !0 })
@@ -611,7 +613,7 @@ e([
611
613
  u("value", { waitUntilFirstUpdate: !0 })
612
614
  ], t.prototype, "handleValueChange", 1);
613
615
  t = e([
614
- m("cx-textarea")
616
+ b("cx-textarea")
615
617
  ], t);
616
618
  export {
617
619
  t as default
@@ -1,10 +1,100 @@
1
- import "../chunks/typography.BFpl0WMA.js";
2
- import "../chunks/custom-element.vnXBMQxc.js";
3
- import "../chunks/component.styles.CI-v8BZa.js";
4
- import "../chunks/string.BCk3SmdZ.js";
5
- import { C as f } from "../chunks/timecode.D7XTiQ_3.js";
6
- import "../chunks/watch.BCJD77bD.js";
7
- import "../chunks/state.Cw55xXlb.js";
1
+ import { C as l, T as f } from "../chunks/typography.oDzoLbZS.js";
2
+ import { n as i, C as y } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
+ import { c as d } from "../chunks/component.styles.DMSLciL5.js";
4
+ import { T as g, f as n } from "../chunks/string.Cp_XNbnV.js";
5
+ import { t as u } from "../chunks/converters.DkDtLstb.js";
6
+ import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
7
+ import { w as h } from "../chunks/watch.q1sEjPWL.js";
8
+ import { i as x, E as S, x as b } from "../chunks/lit-element.jLBm65_O.js";
9
+ import { r as T } from "../chunks/state.CSDxrqLd.js";
10
+ const w = x`
11
+ :host {
12
+ display: inline;
13
+ white-space: normal;
14
+ }
15
+ :host([is-preview]) {
16
+ background-color: var(--cx-color-primary-50, #e5f1ff);
17
+ padding-inline: var(--cx-spacing-2x-small, 4px);
18
+ }
19
+ .time {
20
+ --color: var(--cx-color-primary);
21
+ margin-block-start: var(--cx-spacing-x-small);
22
+ line-height: var(--cx-line-height-medium);
23
+ display: inline;
24
+ }
25
+ `;
26
+ var C = Object.defineProperty, R = Object.getOwnPropertyDescriptor, e = (c, o, m, a) => {
27
+ for (var r = a > 1 ? void 0 : a ? R(o, m) : o, s = c.length - 1, p; s >= 0; s--)
28
+ (p = c[s]) && (r = (a ? p(o, m, r) : p(r)) || r);
29
+ return a && r && C(o, m, r), r;
30
+ };
31
+ let t = class extends y {
32
+ constructor() {
33
+ super(...arguments), this.time = [], this.timecodeMode = g.Standard, this.frameRate = 24, this.isPreview = !1, this.typographyVariant = f.Small, this.timeString = "";
34
+ }
35
+ handleTimeChange() {
36
+ if (!this.time?.length) {
37
+ this.timeString = "";
38
+ return;
39
+ }
40
+ if (this.time.length === 1 || this.time[0] === this.time[1]) {
41
+ this.timeString = n(this.time[0], {
42
+ frameRate: this.frameRate,
43
+ mode: this.timecodeMode
44
+ });
45
+ return;
46
+ }
47
+ this.timeString = n(this.time[0], {
48
+ frameRate: this.frameRate,
49
+ mode: this.timecodeMode
50
+ }) + " - " + n(this.time[1], {
51
+ frameRate: this.frameRate,
52
+ mode: this.timecodeMode
53
+ });
54
+ }
55
+ render() {
56
+ return this.time?.length ? b`
57
+ <cx-typography class="time" variant=${this.typographyVariant}>
58
+ ${this.timeString}
59
+ </cx-typography>
60
+ ` : S;
61
+ }
62
+ };
63
+ t.styles = [d, w];
64
+ t.dependencies = {
65
+ "cx-typography": l
66
+ };
67
+ e([
68
+ i({
69
+ attribute: "time",
70
+ converter: u,
71
+ reflect: !0,
72
+ type: String
73
+ })
74
+ ], t.prototype, "time", 2);
75
+ e([
76
+ i({ attribute: "timecode-mode", reflect: !0, type: String })
77
+ ], t.prototype, "timecodeMode", 2);
78
+ e([
79
+ i({ attribute: "frame-rate", reflect: !0, type: Number })
80
+ ], t.prototype, "frameRate", 2);
81
+ e([
82
+ i({ attribute: "is-preview", reflect: !0, type: Boolean })
83
+ ], t.prototype, "isPreview", 2);
84
+ e([
85
+ i({ attribute: "typography-variant", type: String })
86
+ ], t.prototype, "typographyVariant", 2);
87
+ e([
88
+ T()
89
+ ], t.prototype, "timeString", 2);
90
+ e([
91
+ h("time"),
92
+ h("timecodeMode"),
93
+ h("frameRate")
94
+ ], t.prototype, "handleTimeChange", 1);
95
+ t = e([
96
+ v("cx-timecode")
97
+ ], t);
8
98
  export {
9
- f as default
99
+ t as default
10
100
  };
@@ -1,13 +1,16 @@
1
- import { i as b, n as i, C as g, x as w, c as x } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as C } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { s as v, p as c, a as u, g as m, b as y } from "../chunks/animation-registry.DavRkTTr.js";
4
- import { w as f } from "../chunks/event.mFzZi4sr.js";
5
- import { L as k } from "../chunks/i18n.BP2FRO1v.js";
6
- import { w as l } from "../chunks/watch.BCJD77bD.js";
1
+ import { n as i, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as b } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { p as c, s as u, a as m } from "../chunks/animate.El-MpOws.js";
4
+ import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
5
+ import { w as y } from "../chunks/event.mFzZi4sr.js";
6
+ import { L as x } from "../chunks/i18n.DrzK7TPf.js";
7
+ import { w as l } from "../chunks/watch.q1sEjPWL.js";
8
+ import { i as C, x as k } from "../chunks/lit-element.jLBm65_O.js";
7
9
  import { e as d } from "../chunks/query.BBf1UFkC.js";
8
- import { e as O } from "../chunks/class-map.CoZTSvbM.js";
9
- import { C as B } from "../chunks/popup._w5T7x8f.js";
10
- const D = b`
10
+ import { e as O } from "../chunks/class-map.BiVq-cVR.js";
11
+ import { s as v, g as f } from "../chunks/animation-registry.HmpwNuGH.js";
12
+ import B from "./popup.js";
13
+ const D = C`
11
14
  :host {
12
15
  --hide-delay: 0ms;
13
16
  --show-delay: 500ms;
@@ -65,13 +68,13 @@ const D = b`
65
68
  }
66
69
  `;
67
70
  var E = Object.defineProperty, T = Object.getOwnPropertyDescriptor, e = (o, s, n, a) => {
68
- for (var r = a > 1 ? void 0 : a ? T(s, n) : s, h = o.length - 1, p; h >= 0; h--)
69
- (p = o[h]) && (r = (a ? p(s, n, r) : p(r)) || r);
71
+ for (var r = a > 1 ? void 0 : a ? T(s, n) : s, p = o.length - 1, h; p >= 0; p--)
72
+ (h = o[p]) && (r = (a ? h(s, n, r) : h(r)) || r);
70
73
  return a && r && E(s, n, r), r;
71
74
  };
72
75
  let t = class extends g {
73
76
  constructor() {
74
- super(), this.localize = new k(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.disabledHoverBridge = !1, this.handleBlur = this.handleBlur.bind(this), this.handleFocus = this.handleFocus.bind(this), this.handleClick = this.handleClick.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleMouseOut = this.handleMouseOut.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
77
+ super(), this.localize = new x(this), this.content = "", this.placement = "top", this.disabled = !1, this.distance = 8, this.open = !1, this.skidding = 0, this.trigger = "hover focus", this.hoist = !1, this.disabledHoverBridge = !1, this.handleBlur = this.handleBlur.bind(this), this.handleFocus = this.handleFocus.bind(this), this.handleClick = this.handleClick.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleMouseOut = this.handleMouseOut.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
75
78
  }
76
79
  runConnectedCallback() {
77
80
  this.addEventListener("blur", this.handleBlur, !0), this.addEventListener("focus", this.handleFocus, !0), this.addEventListener("click", this.handleClick), this.addEventListener("mouseover", this.handleMouseOver), this.addEventListener("mouseout", this.handleMouseOut);
@@ -120,16 +123,16 @@ let t = class extends g {
120
123
  this.emit("cx-show"), "CloseWatcher" in window ? (this.closeWatcher?.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
121
124
  this.hide();
122
125
  }) : document.addEventListener("keydown", this.handleDocumentKeyDown), await u(this.body), this.body.hidden = !1, this.popup.active = !0;
123
- const { keyframes: o, options: s } = m(this, "tooltip.show", {
126
+ const { keyframes: o, options: s } = f(this, "tooltip.show", {
124
127
  dir: this.localize.dir()
125
128
  });
126
- await y(this.popup.popup, o, s), this.popup.reposition(), this.emit("cx-after-show");
129
+ await m(this.popup.popup, o, s), this.popup.reposition(), this.emit("cx-after-show");
127
130
  } else {
128
131
  this.emit("cx-hide"), this.closeWatcher?.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown), await u(this.body);
129
- const { keyframes: o, options: s } = m(this, "tooltip.hide", {
132
+ const { keyframes: o, options: s } = f(this, "tooltip.hide", {
130
133
  dir: this.localize.dir()
131
134
  });
132
- await y(this.popup.popup, o, s), this.popup.active = !1, this.body.hidden = !0, this.emit("cx-after-hide");
135
+ await m(this.popup.popup, o, s), this.popup.active = !1, this.body.hidden = !0, this.emit("cx-after-hide");
133
136
  }
134
137
  }
135
138
  async handleOptionsChange() {
@@ -141,12 +144,12 @@ let t = class extends g {
141
144
  /** Shows the tooltip. */
142
145
  async show() {
143
146
  if (!this.open)
144
- return this.open = !0, f(this, "cx-after-show");
147
+ return this.open = !0, y(this, "cx-after-show");
145
148
  }
146
149
  /** Hides the tooltip */
147
150
  async hide() {
148
151
  if (this.open)
149
- return this.open = !1, f(this, "cx-after-hide");
152
+ return this.open = !1, y(this, "cx-after-hide");
150
153
  }
151
154
  //
152
155
  // NOTE: Tooltip is a bit unique in that we're using aria-live instead of aria-labelledby to trick screen readers into
@@ -155,7 +158,7 @@ let t = class extends g {
155
158
  // element, otherwise positioning is incorrect.
156
159
  //
157
160
  render() {
158
- return w`
161
+ return k`
159
162
  <cx-popup
160
163
  part="base"
161
164
  exportparts="
@@ -193,7 +196,7 @@ let t = class extends g {
193
196
  `;
194
197
  }
195
198
  };
196
- t.styles = [C, D];
199
+ t.styles = [b, D];
197
200
  t.dependencies = { "cx-popup": B };
198
201
  e([
199
202
  d("slot:not([name])")
@@ -250,7 +253,7 @@ e([
250
253
  l("disabled")
251
254
  ], t.prototype, "handleDisabledChange", 1);
252
255
  t = e([
253
- x("cx-tooltip")
256
+ w("cx-tooltip")
254
257
  ], t);
255
258
  v("tooltip.show", {
256
259
  keyframes: [
@@ -1,18 +1,21 @@
1
- import "../chunks/custom-element.vnXBMQxc.js";
2
- import "../chunks/component.styles.CI-v8BZa.js";
3
- import "../chunks/animation-registry.DavRkTTr.js";
4
- import "../chunks/i18n.BP2FRO1v.js";
5
- import "../chunks/watch.BCJD77bD.js";
6
- import "../chunks/state.Cw55xXlb.js";
1
+ import "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import "../chunks/component.styles.DMSLciL5.js";
3
+ import "../chunks/animate.El-MpOws.js";
4
+ import "../chunks/custom-element.L4WJXn1j.js";
5
+ import "../chunks/i18n.DrzK7TPf.js";
6
+ import "../chunks/watch.q1sEjPWL.js";
7
+ import "../chunks/lit-element.jLBm65_O.js";
8
+ import "../chunks/state.CSDxrqLd.js";
7
9
  import "../chunks/query.BBf1UFkC.js";
8
- import "../chunks/class-map.CoZTSvbM.js";
9
- import "../chunks/if-defined.MfEgpxEN.js";
10
- import "../chunks/live.LdB9xEhp.js";
10
+ import "../chunks/class-map.BiVq-cVR.js";
11
+ import "../chunks/if-defined.BRoBj_Rp.js";
12
+ import "../chunks/live.SCz6M8Gs.js";
11
13
  import "../chunks/when.Dr1es41R.js";
14
+ import "../chunks/animation-registry.HmpwNuGH.js";
12
15
  import "./checkbox.js";
13
16
  import "./icon.js";
14
17
  import "./spinner.js";
15
- import { C as c } from "../chunks/tree.CUfvIDyA.js";
18
+ import { C as j } from "../chunks/tree.CNbrP8cY.js";
16
19
  export {
17
- c as default
20
+ j as default
18
21
  };
@@ -1,14 +1,16 @@
1
- import "../chunks/custom-element.vnXBMQxc.js";
2
- import "../chunks/component.styles.CI-v8BZa.js";
3
- import "../chunks/i18n.BP2FRO1v.js";
1
+ import "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import "../chunks/component.styles.DMSLciL5.js";
3
+ import "../chunks/custom-element.L4WJXn1j.js";
4
+ import "../chunks/i18n.DrzK7TPf.js";
4
5
  import "../chunks/math.DqTA6ya4.js";
5
- import "../chunks/watch.BCJD77bD.js";
6
- import { a as c, b as n, s as y, c as b } from "../chunks/tree.CUfvIDyA.js";
7
- import "../chunks/state.Cw55xXlb.js";
6
+ import "../chunks/watch.q1sEjPWL.js";
7
+ import { a as y, b, s as f, c as x } from "../chunks/tree.CNbrP8cY.js";
8
+ import "../chunks/lit-element.jLBm65_O.js";
9
+ import "../chunks/state.CSDxrqLd.js";
8
10
  import "../chunks/query.BBf1UFkC.js";
9
11
  export {
10
- c as default,
11
- n as syncAncestors,
12
- y as syncCheckboxes,
13
- b as syncParentItem
12
+ y as default,
13
+ b as syncAncestors,
14
+ f as syncCheckboxes,
15
+ x as syncParentItem
14
16
  };
@@ -3,15 +3,17 @@ import m from "./grid-item.js";
3
3
  import x from "./icon-button.js";
4
4
  import h from "./line-clamp.js";
5
5
  import g from "./space.js";
6
- import { C as w } from "../chunks/typography.BFpl0WMA.js";
7
- import { i as u, n as a, C as _, x as r, c as v } from "../chunks/custom-element.vnXBMQxc.js";
8
- import { c as S } from "../chunks/component.styles.CI-v8BZa.js";
9
- import { L as $ } from "../chunks/i18n.BP2FRO1v.js";
10
- import { o as y } from "../chunks/if-defined.MfEgpxEN.js";
11
- import { o as b } from "../chunks/style-map.CZovMmo_.js";
6
+ import { C as w } from "../chunks/typography.oDzoLbZS.js";
7
+ import { n as a, C as u } from "../chunks/lib-cortex-element.CVMmyPMC.js";
8
+ import { c as _ } from "../chunks/component.styles.DMSLciL5.js";
9
+ import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
10
+ import { L as S } from "../chunks/i18n.DrzK7TPf.js";
11
+ import { i as $, x as r } from "../chunks/lit-element.jLBm65_O.js";
12
+ import { o as y } from "../chunks/if-defined.BRoBj_Rp.js";
13
+ import { o as b } from "../chunks/style-map.llVFPd__.js";
12
14
  import { n as p } from "../chunks/when.Dr1es41R.js";
13
- import { c as C } from "../chunks/capitalize.CNStXZBq.js";
14
- const D = u`
15
+ import { c as C } from "../chunks/capitalize.WSkCXkNE.js";
16
+ const D = $`
15
17
  :host {
16
18
  --typeface-font-family: var(--cx-font-sans);
17
19
  --typeface-font-style: normal;
@@ -62,9 +64,9 @@ var z = Object.defineProperty, I = Object.getOwnPropertyDescriptor, e = (o, c, l
62
64
  (f = o[s]) && (i = (n ? f(c, l, i) : f(i)) || i);
63
65
  return n && i && z(c, l, i), i;
64
66
  };
65
- let t = class extends _ {
67
+ let t = class extends u {
66
68
  constructor() {
67
- super(...arguments), this.localize = new $(this), this.previewText = "", this.fontFamily = "", this.fontWeight = "", this.fontStyle = "", this.fontSrc = "", this.canDownload = !1, this.downloadIconName = "cloud_download", this.downloadIconSrc = "", this.canSelfDownload = !1, this.variant = "detailed";
69
+ super(...arguments), this.localize = new S(this), this.previewText = "", this.fontFamily = "", this.fontWeight = "", this.fontStyle = "", this.fontSrc = "", this.canDownload = !1, this.downloadIconName = "cloud_download", this.downloadIconSrc = "", this.canSelfDownload = !1, this.variant = "detailed";
68
70
  }
69
71
  handleDownload(o) {
70
72
  o.preventDefault(), this.canSelfDownload ? this.ownerDocument.defaultView?.open(this.fontSrc, "_blank") : this.emit("cx-typeface-download", { detail: this.fontSrc });
@@ -156,7 +158,7 @@ let t = class extends _ {
156
158
  </div>`;
157
159
  }
158
160
  };
159
- t.styles = [S, D];
161
+ t.styles = [_, D];
160
162
  t.dependencies = {
161
163
  "cx-grid": d,
162
164
  "cx-grid-item": m,