@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,20 @@
1
+ import { x as r } from "./lit-element.jLBm65_O.js";
2
+ import { o as p } from "./map.D8heArFD.js";
3
+ function c(e) {
4
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5
+ }
6
+ function l(e, t) {
7
+ if (!t)
8
+ return r`${e}`;
9
+ const o = t.toLowerCase().split(/\s+/).filter(Boolean);
10
+ if (o.length === 0)
11
+ return r`${e}`;
12
+ const s = o.map(c), i = new RegExp(`(${s.join("|")})`, "gi"), g = e.split(i);
13
+ return r`${p(
14
+ g,
15
+ (n) => o.includes(n.toLowerCase()) ? r`<strong>${n}</strong>` : n
16
+ )}`;
17
+ }
18
+ export {
19
+ l as g
20
+ };
@@ -0,0 +1,118 @@
1
+ import { f as d } from "./number.CjNxU7Xs.js";
2
+ var g = /* @__PURE__ */ ((r) => (r.Millisecond = "ms", r.Second = "s", r))(g || {}), a = /* @__PURE__ */ ((r) => (r.Day = "d", r.DayHour = "d-h", r.DayHourMinute = "d-h-m", r.DayHourMinuteSecond = "d-h-m-s", r.Hour = "h", r.HourMinute = "h-m", r.HourMinuteSecond = "h-m-s", r.Minute = "m", r.MinuteSecond = "m-s", r.Second = "s", r))(a || {}), u = /* @__PURE__ */ ((r) => (r.Digital = "digital", r.Long = "long", r.Narrow = "narrow", r.Short = "short", r))(u || {}), h = /* @__PURE__ */ ((r) => (r.English = "en", r))(h || {});
3
+ const f = [
4
+ {
5
+ key: "days",
6
+ longPlural: "days",
7
+ longSingular: "day",
8
+ narrow: "d",
9
+ short: "day"
10
+ },
11
+ {
12
+ key: "hours",
13
+ longPlural: "hours",
14
+ longSingular: "hour",
15
+ narrow: "h",
16
+ short: "hr"
17
+ },
18
+ {
19
+ key: "minutes",
20
+ longPlural: "minutes",
21
+ longSingular: "minute",
22
+ narrow: "m",
23
+ short: "min"
24
+ },
25
+ {
26
+ key: "seconds",
27
+ longPlural: "seconds",
28
+ longSingular: "second",
29
+ narrow: "s",
30
+ short: "sec"
31
+ }
32
+ ], m = 1e3, D = 60 * 1e3;
33
+ function w(r, t, n = h.English) {
34
+ const e = Intl.DurationFormat;
35
+ if (typeof e != "function")
36
+ throw new Error("Intl.DurationFormat is not supported");
37
+ return new e(n, { style: t }).format(r);
38
+ }
39
+ function y(r, t) {
40
+ const n = Math.floor(r / 1e3), e = Math.floor(n / 60), o = Math.floor(e / 60), s = Math.floor(o / 24), i = o % 24, c = e % 60, l = n % 60;
41
+ switch (t) {
42
+ case a.Day:
43
+ return { days: s };
44
+ case a.DayHour:
45
+ return { days: s, hours: i };
46
+ case a.DayHourMinute:
47
+ return { days: s, hours: i, minutes: c };
48
+ case a.DayHourMinuteSecond:
49
+ return { days: s, hours: i, minutes: c, seconds: l };
50
+ case a.Hour:
51
+ return { hours: o };
52
+ case a.HourMinute:
53
+ return { hours: o, minutes: c };
54
+ case a.HourMinuteSecond:
55
+ return { hours: o, minutes: c, seconds: l };
56
+ case a.Minute:
57
+ return { minutes: e };
58
+ case a.MinuteSecond:
59
+ return { minutes: e, seconds: l };
60
+ case a.Second:
61
+ return { seconds: n };
62
+ default:
63
+ return { days: s, hours: i, minutes: c };
64
+ }
65
+ }
66
+ function H(r) {
67
+ return Object.fromEntries(
68
+ Object.entries(r).filter(([, t]) => t !== 0)
69
+ );
70
+ }
71
+ function N(r, t) {
72
+ const n = [];
73
+ let e = 0;
74
+ for (const o of f) {
75
+ const s = r[o.key];
76
+ s !== void 0 && (n.push(
77
+ S(s, o, t, e)
78
+ ), e += 1);
79
+ }
80
+ if (n.length === 0)
81
+ return "0";
82
+ switch (t) {
83
+ case u.Digital:
84
+ return n.join(":");
85
+ case u.Long:
86
+ case u.Short:
87
+ return n.join(", ");
88
+ case u.Narrow:
89
+ default:
90
+ return n.join(" ");
91
+ }
92
+ }
93
+ function S(r, t, n, e) {
94
+ const o = n === u.Digital ? e === 0 ? String(r) : String(r).padStart(2, "0") : d(r);
95
+ switch (n) {
96
+ case u.Digital:
97
+ return o;
98
+ case u.Long:
99
+ return `${o} ${r === 1 ? t.longSingular : t.longPlural}`;
100
+ case u.Short:
101
+ return `${o} ${t.short}`;
102
+ case u.Narrow:
103
+ default:
104
+ return `${o}${t.narrow}`;
105
+ }
106
+ }
107
+ export {
108
+ u as D,
109
+ g as F,
110
+ h as L,
111
+ D as M,
112
+ m as S,
113
+ a as U,
114
+ N as a,
115
+ H as c,
116
+ w as f,
117
+ y as g
118
+ };
@@ -1,6 +1,6 @@
1
- import { S as f } from "./isObjectLike.z36Fu426.js";
2
- import { i as p } from "./watch.BCJD77bD.js";
3
- import { i as g } from "./isSymbol.L0C2ND_U.js";
1
+ import { S as f } from "./isObjectLike.D3cpZO39.js";
2
+ import { i as p } from "./watch.q1sEjPWL.js";
3
+ import { i as g } from "./isSymbol.huJ_Cvxt.js";
4
4
  function l(r, t) {
5
5
  for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
6
6
  o[n] = t(r[n], n, r);
@@ -0,0 +1,25 @@
1
+ const e = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
2
+ function a(n, t, i, r = e) {
3
+ const c = new URL(r + "/" + n);
4
+ return Array.isArray(i) ? i.forEach((o) => {
5
+ o[1] && c.searchParams.append(o[0], o[1]);
6
+ }) : i && Object.keys(i).forEach((o) => {
7
+ i[o] && c.searchParams.append(o, i[o]);
8
+ }), fetch(c, t);
9
+ }
10
+ const f = (n, t) => {
11
+ try {
12
+ window.Matrix3?.ShowNotification && window.Matrix3.ShowNotification(
13
+ n,
14
+ t ? {
15
+ notificationType: t.notificationType
16
+ } : void 0
17
+ );
18
+ } catch {
19
+ return;
20
+ }
21
+ };
22
+ export {
23
+ a as f,
24
+ f as t
25
+ };
@@ -1,19 +1,22 @@
1
- import { i as R, C as N, x as g, E as L, n as l, c as G } from "./custom-element.vnXBMQxc.js";
2
- import { c as M } from "./component.styles.CI-v8BZa.js";
3
- import { L as Z } from "./i18n.BP2FRO1v.js";
1
+ import { C as R, n as l } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as N } from "./component.styles.DMSLciL5.js";
3
+ import { c as G } from "./custom-element.L4WJXn1j.js";
4
+ import { L as M } from "./i18n.DrzK7TPf.js";
4
5
  import { c as K } from "./math.DqTA6ya4.js";
5
- import { w as b } from "./watch.BCJD77bD.js";
6
- import { r as y } from "./state.Cw55xXlb.js";
6
+ import { w as b } from "./watch.q1sEjPWL.js";
7
+ import { i as Z, x as g, E as L } from "./lit-element.jLBm65_O.js";
8
+ import { r as y } from "./state.CSDxrqLd.js";
7
9
  import { e as f } from "./query.BBf1UFkC.js";
8
- import { a as z, g as P, b as U, c as $, s as H } from "./animation-registry.DavRkTTr.js";
9
- import { e as C } from "./class-map.CoZTSvbM.js";
10
- import { o as _ } from "./if-defined.MfEgpxEN.js";
11
- import { l as W } from "./live.LdB9xEhp.js";
10
+ import { s as z, a as U, b as $ } from "./animate.El-MpOws.js";
11
+ import { e as C } from "./class-map.BiVq-cVR.js";
12
+ import { o as _ } from "./if-defined.BRoBj_Rp.js";
13
+ import { l as W } from "./live.SCz6M8Gs.js";
12
14
  import { n as E } from "./when.Dr1es41R.js";
15
+ import { g as P, s as H } from "./animation-registry.HmpwNuGH.js";
13
16
  import Y from "../components/checkbox.js";
14
17
  import J from "../components/icon.js";
15
18
  import Q from "../components/spinner.js";
16
- import { i as ee } from "./browser.Va59Ix3P.js";
19
+ import { i as ee } from "./browser.BHOCIF_A.js";
17
20
  import { S as te } from "./sortable.esm.oSzf6C5Q.js";
18
21
  function ie(e, t, i) {
19
22
  let n;
@@ -50,7 +53,7 @@ function se(e, t, i) {
50
53
  throw new Error("Random bytes length must be >= 16");
51
54
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, ne(n);
52
55
  }
53
- const le = R`
56
+ const le = Z`
54
57
  :host {
55
58
  display: block;
56
59
  outline: 0;
@@ -422,9 +425,9 @@ var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, s = (e, t,
422
425
  (d = e[o]) && (r = (n ? d(t, i, r) : d(r)) || r);
423
426
  return n && r && ce(t, i, r), r;
424
427
  };
425
- let a = class extends N {
428
+ let a = class extends R {
426
429
  constructor() {
427
- super(), this.localize = new Z(this), this.expanded = !1, this.selected = !1, this.disabled = !1, this.readonly = !1, this.lazy = !1, this.href = "", this.rel = "noreferrer noopener", this.itemId = "", this.sortable = !1, this.noDrag = !1, this.noSelect = !1, this.noDragInside = !1, this.sortableGroup = void 0, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.disabledSyncCheckboxes = !1, this.partialSyncCheckboxes = !1, this.previouslySelected = !1, this.focusable = !1, this.indeterminate = !1, this.isLeaf = !1, this.loading = !1, this.selectable = !1, this.sortableInstance = null, this.onDragStart = (e) => {
430
+ super(), this.localize = new M(this), this.expanded = !1, this.selected = !1, this.disabled = !1, this.readonly = !1, this.lazy = !1, this.href = "", this.rel = "noreferrer noopener", this.itemId = "", this.sortable = !1, this.noDrag = !1, this.noSelect = !1, this.noDragInside = !1, this.sortableGroup = void 0, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.disabledSyncCheckboxes = !1, this.partialSyncCheckboxes = !1, this.previouslySelected = !1, this.focusable = !1, this.indeterminate = !1, this.isLeaf = !1, this.loading = !1, this.selectable = !1, this.sortableInstance = null, this.onDragStart = (e) => {
428
431
  if (e.dataTransfer) {
429
432
  const t = this.cloneNode(!0);
430
433
  t.style.backgroundColor = "red", t.style.display = "none", this.ownerDocument.body.appendChild(t), e.dataTransfer.setDragImage(t, 0, 0);
@@ -641,15 +644,16 @@ let a = class extends N {
641
644
  () => g`
642
645
  <cx-checkbox
643
646
  part="checkbox"
647
+ aria-label=${this.localize.term("checkbox")}
644
648
  exportparts="
645
- base:checkbox__base,
646
- control:checkbox__control,
647
- control--checked:checkbox__control--checked,
648
- control--indeterminate:checkbox__control--indeterminate,
649
- checked-icon:checkbox__checked-icon,
650
- indeterminate-icon:checkbox__indeterminate-icon,
651
- label:checkbox__label
652
- "
649
+ base:checkbox__base,
650
+ control:checkbox__control,
651
+ control--checked:checkbox__control--checked,
652
+ control--indeterminate:checkbox__control--indeterminate,
653
+ checked-icon:checkbox__checked-icon,
654
+ indeterminate-icon:checkbox__indeterminate-icon,
655
+ label:checkbox__label
656
+ "
653
657
  class="tree-item__checkbox"
654
658
  ?disabled=${this.disabled}
655
659
  ?checked=${W(this.selected)}
@@ -677,7 +681,7 @@ let a = class extends N {
677
681
  `);
678
682
  }
679
683
  };
680
- a.styles = [M, le];
684
+ a.styles = [N, le];
681
685
  a.dependencies = {
682
686
  "cx-checkbox": Y,
683
687
  "cx-icon": J,
@@ -823,7 +827,7 @@ H("tree-item.collapse", {
823
827
  ],
824
828
  options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
825
829
  });
826
- const pe = R`
830
+ const pe = Z`
827
831
  :host {
828
832
  /*
829
833
  * These are actually used by tree item, but we define them here so they can more easily be set and all tree items
@@ -885,9 +889,9 @@ function A(e, t = !1, i = "single") {
885
889
  }
886
890
  !e.disabledSyncCheckboxes && i === "multiple" && (e.partialSyncCheckboxes && (e.selected ? e.previouslySelected = !0 : e.previouslySelected = !1), n(e)), X(e, i);
887
891
  }
888
- let c = class extends N {
892
+ let c = class extends R {
889
893
  constructor() {
890
- super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.noIndeterminatePreviouslySelected = !1, this.focusable = !1, this.clickTarget = null, this.localize = new Z(this), this.sortableInstance = null, this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleSortableStart = this.handleSortableStart.bind(this), this.handleSortableEnd = this.handleSortableEnd.bind(this), this.handleFocusIn = this.handleFocusIn.bind(this), this.handleFocusOut = this.handleFocusOut.bind(this), this.handleSlotChange = this.handleSlotChange.bind(this), this.handleTreeChanged = this.handleTreeChanged.bind(this), this.initTreeItem = this.initTreeItem.bind(this);
894
+ super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.focusable = !1, this.clickTarget = null, this.localize = new M(this), this.sortableInstance = null, this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleSortableStart = this.handleSortableStart.bind(this), this.handleSortableEnd = this.handleSortableEnd.bind(this), this.handleFocusIn = this.handleFocusIn.bind(this), this.handleFocusOut = this.handleFocusOut.bind(this), this.handleSlotChange = this.handleSlotChange.bind(this), this.handleTreeChanged = this.handleTreeChanged.bind(this), this.initTreeItem = this.initTreeItem.bind(this);
891
895
  }
892
896
  runConnectedCallback() {
893
897
  if (this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.addEventListener("cx-lazy-change", this.handleSlotChange), this.setAttribute("role", "tree"), this.setAttribute("tabindex", "0"), this.mutationObserver = new MutationObserver(this.handleTreeChanged), this.mutationObserver.observe(this, { childList: !0, subtree: !0 }), this.autoExpandToSelected) {
@@ -956,7 +960,7 @@ let c = class extends N {
956
960
  if (this.selection === "multiple")
957
961
  t && await Promise.all(
958
962
  n.map(async (o) => {
959
- o.selected = !1, o.indeterminate = !1, await o.updateComplete;
963
+ o.selected = !1, o.indeterminate = !1, o.previouslySelected = !1, await o.updateComplete;
960
964
  })
961
965
  ), e.selected = t || !e.selected, e.lazy && !this.disabledAutoExpand && (e.expanded = !0), A(e, !1, this.selection);
962
966
  else if ((this.selection === "single" || e.isLeaf) && !e.noSelect)
@@ -1109,7 +1113,7 @@ let c = class extends N {
1109
1113
  * @internal
1110
1114
  */
1111
1115
  get selectedItems() {
1112
- const e = this.getAllTreeItems(), t = (i) => i.partialSyncCheckboxes ? i.selected || i.indeterminate && i.previouslySelected && !this.noIndeterminatePreviouslySelected : i.selected;
1116
+ const e = this.getAllTreeItems(), t = (i) => i.partialSyncCheckboxes ? i.selected || i.indeterminate && i.previouslySelected : i.selected;
1113
1117
  return e.filter(t);
1114
1118
  }
1115
1119
  /**
@@ -1123,7 +1127,7 @@ let c = class extends N {
1123
1127
  if (i.disabled || i.readonly)
1124
1128
  return !1;
1125
1129
  const n = i.parentElement?.closest("[role=treeitem]");
1126
- return n && (!n.expanded || n.loading || t.has(n)) && t.add(i), !t.has(i);
1130
+ return n instanceof a ? (n && (!n.expanded || n.loading || t.has(n)) && t.add(i), !t.has(i)) : !0;
1127
1131
  });
1128
1132
  }
1129
1133
  render() {
@@ -1144,7 +1148,7 @@ let c = class extends N {
1144
1148
  `;
1145
1149
  }
1146
1150
  };
1147
- c.styles = [M, pe];
1151
+ c.styles = [N, pe];
1148
1152
  h([
1149
1153
  f("slot:not([name])")
1150
1154
  ], c.prototype, "defaultSlot", 2);
@@ -1191,13 +1195,6 @@ h([
1191
1195
  h([
1192
1196
  l({ attribute: "no-drag-inside", reflect: !0, type: Boolean })
1193
1197
  ], c.prototype, "noDragInside", 2);
1194
- h([
1195
- l({
1196
- attribute: "no-indeterminate-previously-selected",
1197
- reflect: !0,
1198
- type: Boolean
1199
- })
1200
- ], c.prototype, "noIndeterminatePreviouslySelected", 2);
1201
1198
  h([
1202
1199
  l({ reflect: !0, type: Boolean })
1203
1200
  ], c.prototype, "focusable", 2);
@@ -1,7 +1,9 @@
1
- import { i as f, n as v, C as c, x as i, c as d } from "./custom-element.vnXBMQxc.js";
2
- import { c as x } from "./component.styles.CI-v8BZa.js";
1
+ import { n as f, C as v } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c } from "./component.styles.DMSLciL5.js";
3
+ import { c as d } from "./custom-element.L4WJXn1j.js";
4
+ import { i as m, x as i } from "./lit-element.jLBm65_O.js";
3
5
  var t = /* @__PURE__ */ ((e) => (e.Body1 = "body1", e.Body2 = "body2", e.Body3 = "body3", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Small = "small", e))(t || {});
4
- const m = f`
6
+ const x = m`
5
7
  :host {
6
8
  --color: inherit;
7
9
  --font-family: var(--cx-font-sans);
@@ -87,12 +89,12 @@ const m = f`
87
89
  line-height: var(--line-height, var(--cx-line-height-small));
88
90
  }
89
91
  `;
90
- var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, g = (e, n, o, s) => {
91
- for (var a = s > 1 ? void 0 : s ? w(n, o) : n, l = e.length - 1, h; l >= 0; l--)
92
- (h = e[l]) && (a = (s ? h(n, o, a) : h(a)) || a);
93
- return s && a && b(n, o, a), a;
92
+ var b = Object.defineProperty, w = Object.getOwnPropertyDescriptor, g = (e, n, o, r) => {
93
+ for (var a = r > 1 ? void 0 : r ? w(n, o) : n, l = e.length - 1, h; l >= 0; l--)
94
+ (h = e[l]) && (a = (r ? h(n, o, a) : h(a)) || a);
95
+ return r && a && b(n, o, a), a;
94
96
  };
95
- let r = class extends c {
97
+ let s = class extends v {
96
98
  constructor() {
97
99
  super(...arguments), this.variant = t.Body1;
98
100
  }
@@ -134,14 +136,14 @@ let r = class extends c {
134
136
  return i`<p part="base" class="body body-2"><slot></slot></p>`;
135
137
  }
136
138
  };
137
- r.styles = [x, m];
139
+ s.styles = [c, x];
138
140
  g([
139
- v({ type: String })
140
- ], r.prototype, "variant", 2);
141
- r = g([
141
+ f({ type: String })
142
+ ], s.prototype, "variant", 2);
143
+ s = g([
142
144
  d("cx-typography")
143
- ], r);
145
+ ], s);
144
146
  export {
145
- r as C,
147
+ s as C,
146
148
  t as T
147
149
  };
@@ -1,4 +1,4 @@
1
- import { E as r, T as s } from "./custom-element.vnXBMQxc.js";
1
+ import { E as r, T as s } from "./lit-element.jLBm65_O.js";
2
2
  import { i as n, t as o, e as c } from "./directive.oAbCiebi.js";
3
3
  /**
4
4
  * @license
@@ -0,0 +1,15 @@
1
+ const c = (a, t = "https://", d = !1) => d && a.match(s) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${t}${a}`, _ = (a) => {
2
+ try {
3
+ return new URL(a), new RegExp(z, "i").test(a);
4
+ } catch {
5
+ return !1;
6
+ }
7
+ }, s = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", z = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", e = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", r = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
8
+ export {
9
+ s as R,
10
+ e as U,
11
+ c as a,
12
+ z as b,
13
+ r as c,
14
+ _ as i
15
+ };
@@ -0,0 +1,4 @@
1
+ const e = () => navigator.userAgent.includes("Cortex") || navigator.userAgent.includes("Photoshop") || navigator.userAgent.includes("AfterEffect") || navigator.userAgent.includes("Illustrator");
2
+ export {
3
+ e as i
4
+ };