@orangelogic/design-system 2.138.0 → 2.139.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 (100) hide show
  1. package/library/chunks/{asset-link-format.Cj3Jb2A9.js → asset-link-format.oOC8fxvV.js} +5 -5
  2. package/library/chunks/{button.C8bgBiYj.js → button.J4LDuhyW.js} +1 -1
  3. package/library/chunks/{color-swatch-group.CtRKXJDT.js → color-swatch-group.CYI2N8gp.js} +6 -6
  4. package/library/chunks/{color-swatch.BPKlNXIX.js → color-swatch.DimFgBSf.js} +1 -1
  5. package/library/chunks/{confirm-popover.CgXY2_uO.js → confirm-popover.DV5q0KyE.js} +3 -3
  6. package/library/chunks/{dialog.Bs7RQgSa.js → dialog.C79Kd2S4.js} +2 -2
  7. package/library/chunks/{document-viewer.Bs3U0_wd.js → document-viewer.Ga2Ppgit.js} +3910 -3812
  8. package/library/chunks/{dot-pagination.t0VzNnjC.js → dot-pagination.CoG0XmAq.js} +1 -1
  9. package/library/chunks/{file-on-demand.BWrBwTOn.js → file-on-demand.C3ib6J00.js} +9 -9
  10. package/library/chunks/focus-when-visible.jWSw9ks0.js +21 -0
  11. package/library/chunks/{folder-select.CItC06TB.js → folder-select.BQXuKb-8.js} +4 -4
  12. package/library/chunks/{header.D_TqvPdB.js → header.zCbb-t6m.js} +1 -1
  13. package/library/chunks/{i18n.BlLEIqQ0.js → i18n.DeUAP8n2.js} +1 -0
  14. package/library/chunks/{icon-button.D5sM02Cd.js → icon-button.LhIEmHNF.js} +1 -1
  15. package/library/chunks/{iframe.D3PpeqXx.js → iframe.c0IPEUiJ.js} +1 -1
  16. package/library/chunks/{image.qP6cTWCN.js → image.u2nQNoZ8.js} +1 -1
  17. package/library/chunks/{input.B8CV80Da.js → input.DID1aXiO.js} +1 -1
  18. package/library/chunks/{option.D9SqVdjL.js → option.n6PDuSs1.js} +1 -1
  19. package/library/chunks/{pagination.DAI32_PA.js → pagination.BNU2UmTy.js} +5 -5
  20. package/library/chunks/{tab-group.e83Yy-jY.js → tab-group.5O3lqvyG.js} +3 -3
  21. package/library/chunks/{tree.D7eyb405.js → tree.CbwFiRJI.js} +1 -1
  22. package/library/components/alert.js +2 -2
  23. package/library/components/asset-link-format.js +3 -3
  24. package/library/components/atoms.js +13 -13
  25. package/library/components/audio.js +19 -19
  26. package/library/components/border-input-group.js +2 -2
  27. package/library/components/breadcrumb.js +1 -1
  28. package/library/components/button.js +2 -2
  29. package/library/components/color-picker.js +4 -4
  30. package/library/components/color-swatch-group.js +3 -3
  31. package/library/components/color-swatch.js +2 -2
  32. package/library/components/confirm-popover.js +4 -4
  33. package/library/components/copy-button.js +1 -1
  34. package/library/components/corner-position-input-group.js +3 -3
  35. package/library/components/date-calendar.js +1 -1
  36. package/library/components/details.js +1 -1
  37. package/library/components/dialog.js +3 -3
  38. package/library/components/document-viewer.js +3 -3
  39. package/library/components/dot-pagination.js +2 -2
  40. package/library/components/drawer.js +2 -2
  41. package/library/components/dropdown.js +33 -32
  42. package/library/components/dynamic-select.js +4 -4
  43. package/library/components/e-chart.js +1 -1
  44. package/library/components/element-clamp.js +2 -2
  45. package/library/components/file-on-demand.js +10 -10
  46. package/library/components/folder-select.js +4 -4
  47. package/library/components/format-bytes.js +1 -1
  48. package/library/components/format-date.js +1 -1
  49. package/library/components/format-number.js +1 -1
  50. package/library/components/format-time.js +1 -1
  51. package/library/components/header.js +2 -2
  52. package/library/components/icon-button.js +2 -2
  53. package/library/components/iframe.js +2 -2
  54. package/library/components/image-comparer.js +1 -1
  55. package/library/components/image.js +2 -2
  56. package/library/components/input.js +2 -2
  57. package/library/components/line-clamp.js +1 -1
  58. package/library/components/masonry.js +2 -2
  59. package/library/components/menu-item.js +202 -150
  60. package/library/components/menu.js +1 -1
  61. package/library/components/molecules.js +3 -3
  62. package/library/components/option.js +2 -2
  63. package/library/components/organisms.js +3 -3
  64. package/library/components/padding-input-group.js +1 -1
  65. package/library/components/pagination.js +6 -6
  66. package/library/components/popup.js +1 -1
  67. package/library/components/position-picker.js +1 -1
  68. package/library/components/progress-bar.js +1 -1
  69. package/library/components/progress-ring.js +1 -1
  70. package/library/components/range.js +1 -1
  71. package/library/components/rating.js +1 -1
  72. package/library/components/relative-time.js +1 -1
  73. package/library/components/select.js +2 -2
  74. package/library/components/shadow-input-group.js +1 -1
  75. package/library/components/share-option-list.js +1 -1
  76. package/library/components/sidebar.js +1 -1
  77. package/library/components/size-input-group.js +3 -3
  78. package/library/components/spinner.js +1 -1
  79. package/library/components/split-panel.js +1 -1
  80. package/library/components/tab-group.js +4 -4
  81. package/library/components/tab.js +2 -2
  82. package/library/components/tag.js +2 -2
  83. package/library/components/tooltip.js +1 -1
  84. package/library/components/tree-item.js +2 -2
  85. package/library/components/tree.js +2 -2
  86. package/library/components/typeface.js +2 -2
  87. package/library/components/types.js +10778 -10769
  88. package/library/components/video.js +2 -2
  89. package/library/package.json +1 -1
  90. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -1
  91. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  92. package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +28 -0
  93. package/library/packages/hybrid/book-reader/src/react/constant.d.ts +1 -0
  94. package/library/packages/hybrid/book-reader/src/react/hooks/useDrawer.d.ts +1 -1
  95. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +8 -0
  96. package/library/packages/utils/src/custom-element/focus-when-visible.d.ts +14 -0
  97. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  98. package/library/packages/utils/src/index.d.ts +1 -0
  99. package/library/utils.js +133 -131
  100. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
2
2
  import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
3
3
  import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
4
- import { C as Cb } from "../chunks/image.qP6cTWCN.js";
4
+ import { C as Cb } from "../chunks/image.u2nQNoZ8.js";
5
5
  import Mb from "./resize-observer.js";
6
6
  import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
7
7
  import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
8
8
  import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
9
9
  import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
10
- import { L as kb } from "../chunks/i18n.BlLEIqQ0.js";
10
+ import { L as kb } from "../chunks/i18n.DeUAP8n2.js";
11
11
  import { w as Ki } from "../chunks/watch.CThbualB.js";
12
12
  import { i as Bb, x as Qc } from "../chunks/lit-element.jLBm65_O.js";
13
13
  import { n as Ri } from "../chunks/lib-cortex-element.CVMmyPMC.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.138.0",
4
+ "version": "2.139.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -41,6 +41,11 @@ export default class CxDropdown extends CortexElement {
41
41
  private readonly localize;
42
42
  private readonly hasSlotController;
43
43
  private closeWatcher;
44
+ /**
45
+ * Canceller for the most recent pending focusWhenVisible() attempt, so closing the dropdown or
46
+ * disconnecting cancels it — otherwise it can resolve later and steal focus back into a closed dropdown.
47
+ */
48
+ private pendingFocusCancel;
44
49
  /**
45
50
  * Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you
46
51
  * can use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.
@@ -101,7 +106,7 @@ export default class CxDropdown extends CortexElement {
101
106
  private handleDocumentMouseDown;
102
107
  private handlePanelSelect;
103
108
  handleTriggerClick(): Promise<void>;
104
- handleTriggerKeyDown(event: KeyboardEvent): Promise<void>;
109
+ handleTriggerKeyDown(event: KeyboardEvent): void;
105
110
  handleTriggerKeyUp(event: KeyboardEvent): void;
106
111
  handleTriggerSlotChange(): void;
107
112
  updateAccessibleTrigger(): void;
@@ -111,6 +111,8 @@ export default class CxMenuItem extends CortexElement {
111
111
  /** Returns a text label based on the contents of the menu item's default slot. */
112
112
  getTextLabel(): string;
113
113
  isSubmenu(): boolean;
114
+ /** Closes this menu item's own submenu, if it has one open. Used to cascade-close nested submenus. */
115
+ closeSubmenu(): void;
114
116
  renderBase(inner: TemplateResult): TemplateResult<1>;
115
117
  render(): TemplateResult<1>;
116
118
  }
@@ -15,7 +15,19 @@ export declare class SubmenuController implements ReactiveController {
15
15
  private skidding;
16
16
  private readonly hasSlotController;
17
17
  private readonly submenuOpenDelay;
18
+ /**
19
+ * Upper bound on how long to wait for a freshly opened/loaded menu-item to become genuinely focusable
20
+ * before giving up and focusing it anyway. Passed to focusWhenVisible, since content can take several
21
+ * seconds to load on a slow-loading menu.
22
+ */
23
+ private readonly focusVisibilityTimeoutMs;
18
24
  private parentObserver;
25
+ private lazyLoadObserver;
26
+ /**
27
+ * Canceller for the most recent pending focusWhenVisible() attempt, so closing the dropdown or
28
+ * disconnecting cancels it — otherwise it can resolve later and steal focus back into a closed dropdown.
29
+ */
30
+ private pendingFocusCancel;
19
31
  constructor(host: ReactiveControllerHost & CxMenuItem, hasSlotController: HasSlotController);
20
32
  get popup(): CxPopup | undefined;
21
33
  hostConnected(): void;
@@ -27,6 +39,15 @@ export declare class SubmenuController implements ReactiveController {
27
39
  private handleMouseMove;
28
40
  private handleMouseOver;
29
41
  private handleSubmenuEntry;
42
+ private setRovingTabIndex;
43
+ private queryMenuItems;
44
+ private cancelPendingFocus;
45
+ /**
46
+ * Enables the submenu and, once its content finishes loading and the first menu-item appears, focuses it.
47
+ * focusWhenVisible already tolerates the popup not being visually ready yet, so this only needs to wait for
48
+ * the item itself to exist.
49
+ */
50
+ private focusFirstMenuItemAfterLazyLoad;
30
51
  private handleKeyDown;
31
52
  private handleClick;
32
53
  private handleSubmenuIconClick;
@@ -37,6 +58,13 @@ export declare class SubmenuController implements ReactiveController {
37
58
  private setSubmenuState;
38
59
  private enableSubmenu;
39
60
  disableSubmenu(): void;
61
+ /**
62
+ * Closing this submenu hides nested submenus visually (via the parent popup's own hidden state) without
63
+ * resetting their own `active` flag, since they never receive a property change to react to. Left stale,
64
+ * reopening a nested submenu later hits the "already active" fast path and skips the re-sync a fresh open
65
+ * would normally do. Cascade the close so every nested submenu starts clean the next time it's opened.
66
+ */
67
+ private disableNestedSubmenus;
40
68
  private updateSkidding;
41
69
  isExpanded(): boolean;
42
70
  renderSubmenu(): import('lit').TemplateResult<1> | null;
@@ -41,6 +41,7 @@ export declare const KEYCODE: {
41
41
  END: string;
42
42
  ENTER: string;
43
43
  EQUAL: string;
44
+ ESCAPE: string;
44
45
  HOME: string;
45
46
  KEY_F: string;
46
47
  MINUS: string;
@@ -1,4 +1,4 @@
1
- export declare const useDrawer: () => {
1
+ export declare const useDrawer: (rootElement: HTMLElement | null) => {
2
2
  closeDrawer: () => void;
3
3
  onToggleDrawer: () => void;
4
4
  openDrawer: boolean;
@@ -306,6 +306,14 @@ export default class CxConfigForm extends CortexElement {
306
306
  */
307
307
  isAfterShow: boolean;
308
308
  sortedLanguages: string[];
309
+ /**
310
+ * Incremented every time the dialog is shown.
311
+ * Used as a Lit `keyed()` key so the `<form>` element is destroyed and
312
+ * re-rendered from scratch on each open, instead of reusing the previous
313
+ * form's DOM and internal control state.
314
+ * @default 0
315
+ */
316
+ formKey: number;
309
317
  /**
310
318
  * Whether the template is editable.
311
319
  * This is used to determine if the user can save the settings as a template.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Focuses an element once it's actually focusable, not just laid out. An element can have real layout
3
+ * dimensions well before it's genuinely visible — e.g. a popup item already rendered from a previous open
4
+ * whose containing popup hasn't flipped its visibility CSS back yet on this reopen (a re-shown popup changes
5
+ * visibility/transform, not size, so a size-based signal like ResizeObserver never fires for that case), or
6
+ * an item whose content is still loading. Polls checkVisibility() across animation frames instead of
7
+ * assuming any single event (e.g. an "opened" event) means the element is truly focusable, with a wall-clock
8
+ * timeout as a last-resort fallback.
9
+ *
10
+ * Returns a `cancel()` function. The caller is responsible for calling it once its own close/teardown
11
+ * happens — this util has no way to know when the containing menu/dropdown closes, only whether `element`
12
+ * is still connected, so a closed-but-still-connected item would otherwise get focused later regardless.
13
+ */
14
+ export declare function focusWhenVisible(element: HTMLElement, timeoutMs?: number): () => void;
@@ -1027,6 +1027,7 @@ export interface Translation extends DefaultTranslation {
1027
1027
  url: string;
1028
1028
  urlValidationMessage: string;
1029
1029
  useKeyboardArrowsToNavigateThroughTheCarousel: string;
1030
+ useKeyboardArrowsToNavigateThroughTheDocument: string;
1030
1031
  useKeyboardArrowsToNavigateThroughTheGallery: string;
1031
1032
  used: string;
1032
1033
  userAvatar: string;
@@ -13,6 +13,7 @@ export * from './custom-element/debounce';
13
13
  export * from './custom-element/default-value';
14
14
  export * from './custom-element/drag';
15
15
  export * from './custom-element/event';
16
+ export * from './custom-element/focus-when-visible';
16
17
  export * from './custom-element/form';
17
18
  export * from './custom-element/i18n';
18
19
  export * from './custom-element/math';
package/library/utils.js CHANGED
@@ -1,38 +1,39 @@
1
1
  import { b as V } from "./chunks/url.-WDYqplj.js";
2
- import { R as Tt, U as wt, e as Ct, d as yt, a as Mt, c as xt, i as St, t as Et } from "./chunks/url.-WDYqplj.js";
2
+ import { R as Tt, U as wt, e as Ct, d as xt, a as yt, c as Mt, i as St, t as Et } from "./chunks/url.-WDYqplj.js";
3
3
  import { j as It, f as Lt, a as Ft, b as Rt, g as bt, e as vt, i as kt, c as Vt, h as Ot, m as Yt, d as Ut, r as Nt, t as Pt } from "./chunks/toast.Bz-j7zP2.js";
4
- import { e as Ht, a as Xt, f as Bt, g as Wt, d as Gt, b as $t, c as zt, i as qt, p as Qt, s as Zt } from "./chunks/browser.BHOCIF_A.js";
4
+ import { e as Ht, a as Xt, f as Wt, g as Bt, d as Gt, b as $t, c as zt, i as qt, p as Qt, s as Zt } from "./chunks/browser.BHOCIF_A.js";
5
5
  import { d as Jt, C as Kt, e as te, H as ee, R as re, c as ae, h as se, f as oe, g as ne, l as ie, a as le, p as ce, b as ue } from "./chunks/color.LzSGBy7o.js";
6
6
  import { a as fe, b as he, g as ge } from "./chunks/modal.U1QltQKe.js";
7
- import { a as pe, p as De, c as Te, b as we, s as Ce, w as ye } from "./chunks/event.BeKOsirN.js";
8
- import { t as xe } from "./chunks/converters.DkDtLstb.js";
7
+ import { a as pe, p as De, c as Te, b as we, s as Ce, w as xe } from "./chunks/event.BeKOsirN.js";
8
+ import { t as Me } from "./chunks/converters.DkDtLstb.js";
9
9
  import { c as Ee } from "./chunks/custom-element.L4WJXn1j.js";
10
10
  import { d as Ie } from "./chunks/debounce.DaHuiSGU.js";
11
11
  import { d as Fe } from "./chunks/default-value.COZopaet.js";
12
12
  import { d as be } from "./chunks/drag.DXEXVXPv.js";
13
+ import { f as ke } from "./chunks/focus-when-visible.jWSw9ks0.js";
13
14
  import { f as O } from "./chunks/form.K1XOtu3S.js";
14
- import { F as ke, c as Ve, g as Oe, v as Ye, a as Ue } from "./chunks/form.K1XOtu3S.js";
15
- import { L as Pe, r as _e } from "./chunks/i18n.BlLEIqQ0.js";
16
- import { c as Xe, q as Be } from "./chunks/math.DuKzLacZ.js";
17
- import { g as Ge, l as $e, s as ze, u as qe } from "./chunks/scroll.xtO5yojm.js";
18
- import { j as x } from "./chunks/dom.acWb8KCK.js";
19
- import { c as Ze, d as je, k as Je, a as Ke, g as tr, h as er, b as rr, f as ar, i as sr, e as or, l as nr, s as ir } from "./chunks/dom.acWb8KCK.js";
20
- import { H as cr, a as ur, g as mr } from "./chunks/slot.j5oheLJC.js";
21
- import { g as hr, a as gr } from "./chunks/tabbable.CcMz3mIL.js";
22
- import { i as pr } from "./chunks/user-agent.D9aPuOyL.js";
23
- import { w as Tr } from "./chunks/watch.CThbualB.js";
24
- import { C as Cr } from "./chunks/calendar-grid.CvdcwfTo.js";
25
- import { b as Mr, e as xr, f as Sr, g as Er, a as Ar, i as Ir, d as Lr, c as Fr, n as Rr, p as br, t as vr } from "./chunks/date.dSYNLBVO.js";
15
+ import { F as Oe, c as Ye, g as Ue, v as Ne, a as Pe } from "./chunks/form.K1XOtu3S.js";
16
+ import { L as He, r as Xe } from "./chunks/i18n.DeUAP8n2.js";
17
+ import { c as Be, q as Ge } from "./chunks/math.DuKzLacZ.js";
18
+ import { g as ze, l as qe, s as Qe, u as Ze } from "./chunks/scroll.xtO5yojm.js";
19
+ import { j as M } from "./chunks/dom.acWb8KCK.js";
20
+ import { c as Je, d as Ke, k as tr, a as er, g as rr, h as ar, b as sr, f as or, i as nr, e as ir, l as lr, s as cr } from "./chunks/dom.acWb8KCK.js";
21
+ import { H as mr, a as fr, g as hr } from "./chunks/slot.j5oheLJC.js";
22
+ import { g as dr, a as pr } from "./chunks/tabbable.CcMz3mIL.js";
23
+ import { i as Tr } from "./chunks/user-agent.D9aPuOyL.js";
24
+ import { w as Cr } from "./chunks/watch.CThbualB.js";
25
+ import { C as yr } from "./chunks/calendar-grid.CvdcwfTo.js";
26
+ import { b as Sr, e as Er, f as Ar, g as Ir, a as Lr, i as Fr, d as Rr, c as br, n as vr, p as kr, t as Vr } from "./chunks/date.dSYNLBVO.js";
26
27
  import { e as c, a as u, D as m } from "./chunks/date-picker.DTUICGb9.js";
27
- import { f as Vr } from "./chunks/content-builder.BGzxZUgi.js";
28
- import { c as Yr, f as Ur, e as Nr, b as Pr, g as _r, d as Hr, i as Xr, r as Br, a as Wr } from "./chunks/image.BzmclWBR.js";
29
- import { b as $r, e as zr } from "./chunks/waveform.1U9U_0rd.js";
30
- import { a as Qr, b as Zr, c as jr, e as Jr, d as Kr, f as ta, g as ea, r as ra, s as aa } from "./chunks/number.B4PQLJIg.js";
31
- import { s as oa } from "./chunks/parse.Cu5nBDTb.js";
32
- import { b as ia, d as la, e as ca, f as ua, l as ma, g as fa, k as ha, p as ga, v as da, r as pa, a as Da, c as Ta, s as wa, q as Ca, n as ya, t as Ma, m as xa, o as Sa, h as Ea, u as Aa } from "./chunks/string.CjJ09HK3.js";
33
- import { g as La, a as Fa } from "./chunks/template.ClovJacp.js";
34
- import { c as ba, f as va, a as ka, g as Va } from "./chunks/time.BSmpFe2G.js";
35
- import { b as Ya } from "./chunks/transformation.c-RS37zA.js";
28
+ import { f as Yr } from "./chunks/content-builder.BGzxZUgi.js";
29
+ import { c as Nr, f as Pr, e as _r, b as Hr, g as Xr, d as Wr, i as Br, r as Gr, a as $r } from "./chunks/image.BzmclWBR.js";
30
+ import { b as qr, e as Qr } from "./chunks/waveform.1U9U_0rd.js";
31
+ import { a as jr, b as Jr, c as Kr, e as ta, d as ea, f as ra, g as aa, r as sa, s as oa } from "./chunks/number.B4PQLJIg.js";
32
+ import { s as ia } from "./chunks/parse.Cu5nBDTb.js";
33
+ import { b as ca, d as ua, e as ma, f as fa, l as ha, g as ga, k as da, p as pa, v as Da, r as Ta, a as wa, c as Ca, s as xa, q as ya, n as Ma, t as Sa, m as Ea, o as Aa, h as Ia, u as La } from "./chunks/string.CjJ09HK3.js";
34
+ import { g as Ra, a as ba } from "./chunks/template.ClovJacp.js";
35
+ import { c as ka, f as Va, a as Oa, g as Ya } from "./chunks/time.BSmpFe2G.js";
36
+ import { b as Na } from "./chunks/transformation.c-RS37zA.js";
36
37
  function n(t) {
37
38
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
38
39
  return `${e}-${r}-${s}`;
@@ -288,14 +289,14 @@ function J(t, e) {
288
289
  }
289
290
  class K {
290
291
  constructor(e) {
291
- this.currentZIndex = x(), (this.host = e).addController(this);
292
+ this.currentZIndex = M(), (this.host = e).addController(this);
292
293
  }
293
294
  hostConnected() {
294
295
  }
295
296
  hostDisconnected() {
296
297
  }
297
298
  async activatePopup() {
298
- this.currentZIndex = x();
299
+ this.currentZIndex = M();
299
300
  }
300
301
  }
301
302
  class tt {
@@ -522,8 +523,8 @@ async function* gt({
522
523
  const T = g * i + d, D = T * s;
523
524
  if (D >= r)
524
525
  continue;
525
- const w = d * p, C = g * l, y = _(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
526
- y ? yield { ...y, isLastFrame: M } : (await H(o, D, s), k.drawImage(
526
+ const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), y = d === i - 1 && g === f - 1 || D + s >= r;
527
+ x ? yield { ...x, isLastFrame: y } : (await H(o, D, s), k.drawImage(
527
528
  o,
528
529
  w,
529
530
  C,
@@ -535,7 +536,7 @@ async function* gt({
535
536
  frameHeight: l,
536
537
  frameWidth: p,
537
538
  index: T,
538
- isLastFrame: M,
539
+ isLastFrame: y,
539
540
  row: g,
540
541
  rows: f,
541
542
  time: Number(D.toFixed(P)),
@@ -557,142 +558,143 @@ function dt({
557
558
  }
558
559
  export {
559
560
  Jt as CMYK_VALIDATION_REGEX,
560
- Cr as CalendarGrid,
561
+ yr as CalendarGrid,
561
562
  Kt as ColorType,
562
563
  K as CortexPopupController,
563
564
  $ as DateRangePresets,
564
565
  tt as DragScroll,
565
- ke as FormControlController,
566
+ Oe as FormControlController,
566
567
  te as HEX_ALPHA_VALIDATION_REGEX,
567
568
  ee as HEX_VALIDATION_REGEX,
568
- cr as HasSlotController,
569
+ mr as HasSlotController,
569
570
  nt as HistoryManager,
570
571
  N as KeyboardKey,
571
- Pe as LocalizeController,
572
+ He as LocalizeController,
572
573
  P as PRECISION,
573
574
  Tt as RELATIVE_URL_REGEX,
574
575
  re as RGB_VALIDATION_REGEX,
575
576
  wt as URL_DOMAIN_VALIDATION_REGEX,
576
577
  Ct as URL_PROTOCOL_VALIDATION_REGEX,
577
- yt as URL_VALIDATION_REGEX,
578
+ xt as URL_VALIDATION_REGEX,
578
579
  fe as activeElements,
579
- Mr as addMonths,
580
+ Sr as addMonths,
580
581
  It as adjustRelativeValues,
581
582
  pe as animateTo,
582
583
  V as appendProtocol,
583
- Mt as appendQueryParam,
584
- Ya as buildTransformationString,
585
- $r as buildWaveformPath,
586
- Yr as calculateAspectRatioFit,
587
- Xe as clamp,
588
- Ur as cleanImageFileName,
589
- ba as clearZeroDurationParts,
584
+ yt as appendQueryParam,
585
+ Na as buildTransformationString,
586
+ qr as buildWaveformPath,
587
+ Nr as calculateAspectRatioFit,
588
+ Be as clamp,
589
+ Pr as cleanImageFileName,
590
+ ka as clearZeroDurationParts,
590
591
  ae as convertColor,
591
- Qr as convertDataUnits,
592
- Zr as convertDurationToMilliseconds,
593
- jr as convertPixelsToAspectRatio,
594
- Nr as convertSrcToBlob,
595
- Pr as cropImage,
596
- Ze as cssValueToPx,
592
+ jr as convertDataUnits,
593
+ Jr as convertDurationToMilliseconds,
594
+ Kr as convertPixelsToAspectRatio,
595
+ _r as convertSrcToBlob,
596
+ Hr as cropImage,
597
+ Je as cssValueToPx,
597
598
  Ee as customElement,
598
- Ve as customErrorValidityState,
599
+ Ye as customErrorValidityState,
599
600
  Ie as debounce,
600
601
  Fe as defaultValue,
601
- xr as displayToIso,
602
+ Er as displayToIso,
602
603
  J as downloadAsset,
603
604
  be as drag,
604
- ia as emptyToSpace,
605
+ ca as emptyToSpace,
605
606
  se as extractColor,
606
- la as extractExtension,
607
+ ua as extractExtension,
607
608
  gt as extractFrames,
608
- ca as extractRootData,
609
- Jr as extractValueAndUnit,
610
- zr as extractWaveformPeaks,
611
- Vr as fetchCortexApi,
609
+ ma as extractRootData,
610
+ ta as extractValueAndUnit,
611
+ Qr as extractWaveformPeaks,
612
+ Yr as fetchCortexApi,
612
613
  Ht as findAncestorWithBuggyStyle,
613
614
  Xt as findContainingBlock,
614
- Bt as findCuttingAncestor,
615
+ Wt as findCuttingAncestor,
615
616
  _ as findFrameByColAndRow,
616
617
  Lt as findIndexByProp,
618
+ ke as focusWhenVisible,
617
619
  O as formCollections,
618
- Kr as formatAspectRatioString,
619
- va as formatDurationPartsManually,
620
- Sr as formatMonthYearLabel,
621
- ta as formatNumberWithGrouping,
622
- ua as formatSecondsToTime,
623
- ma as formatTimeToSeconds,
624
- ka as formatWithIntlDurationFormat,
625
- ea as gcd,
626
- je as getActiveElement,
620
+ ea as formatAspectRatioString,
621
+ Va as formatDurationPartsManually,
622
+ Ar as formatMonthYearLabel,
623
+ ra as formatNumberWithGrouping,
624
+ fa as formatSecondsToTime,
625
+ ha as formatTimeToSeconds,
626
+ Oa as formatWithIntlDurationFormat,
627
+ aa as gcd,
628
+ Ke as getActiveElement,
627
629
  he as getActiveModals,
628
- Oe as getAssociatedForm,
630
+ Ue as getAssociatedForm,
629
631
  Ft as getBreakpointsFromCSS,
630
632
  at as getBrowserFontVariants,
631
633
  oe as getColorType,
632
- _r as getContainedImageSize,
633
- Je as getCortexPopupLayer,
634
- x as getCurrentZIndex,
634
+ Xr as getContainedImageSize,
635
+ tr as getCortexPopupLayer,
636
+ M as getCurrentZIndex,
635
637
  ge as getDeepestActiveElement,
636
638
  Rt as getDeviceType,
637
- Va as getDurationPartsByUnitsFormat,
638
- Ke as getElementFromHTMLString,
639
- tr as getElementFromTemplate,
640
- Er as getFirstDayOfWeek,
639
+ Ya as getDurationPartsByUnitsFormat,
640
+ er as getElementFromHTMLString,
641
+ rr as getElementFromTemplate,
642
+ Ir as getFirstDayOfWeek,
641
643
  U as getFormControls,
642
- La as getHighlightedTitle,
643
- Fa as getHighlightedTitleHtml,
644
- ur as getInnerHTML,
644
+ Ra as getHighlightedTitle,
645
+ ba as getHighlightedTitleHtml,
646
+ fr as getInnerHTML,
645
647
  dt as getInterval,
646
648
  ne as getLightDarkCssString,
647
- Hr as getNaturalWidthHeight,
648
- er as getNeededPaddingForBoxShadow,
649
- Wt as getNextAncestor,
650
- Ge as getOffset,
651
- rr as getRelativeClickPercentage,
652
- fa as getRootIDString,
653
- hr as getTabbableBoundary,
654
- gr as getTabbableElements,
655
- mr as getTextContent,
656
- Ar as getTodayIsoDate,
649
+ Wr as getNaturalWidthHeight,
650
+ ar as getNeededPaddingForBoxShadow,
651
+ Bt as getNextAncestor,
652
+ ze as getOffset,
653
+ sr as getRelativeClickPercentage,
654
+ ga as getRootIDString,
655
+ dr as getTabbableBoundary,
656
+ pr as getTabbableElements,
657
+ hr as getTextContent,
658
+ Lr as getTodayIsoDate,
657
659
  bt as groupBy,
658
660
  vt as insertAtIndex,
659
661
  ht as insertFrameToCache,
660
662
  kt as insertMultipleAtIndex,
661
663
  Gt as isChrome,
662
- pr as isCortexAdobePlugin,
663
- ar as isDomElement,
664
- sr as isElementInHorizontalView,
665
- xt as isExpiredAssetUrl,
664
+ Tr as isCortexAdobePlugin,
665
+ or as isDomElement,
666
+ nr as isElementInHorizontalView,
667
+ Mt as isExpiredAssetUrl,
666
668
  $t as isFirefox,
667
669
  rt as isFontFamilyAvailable,
668
670
  ot as isFormInteracted,
669
- ha as isGalleryItemCardType,
671
+ da as isGalleryItemCardType,
670
672
  zt as isIOS,
671
- or as isInElement,
673
+ ir as isInElement,
672
674
  et as isModKey,
673
675
  qt as isSafari,
674
- Xr as isSaveSrcValid,
675
- Ir as isValidIsoDate,
676
+ Br as isSaveSrcValid,
677
+ Fr as isValidIsoDate,
676
678
  St as isValidUrl,
677
- Lr as isoToDate,
678
- Fr as isoToDisplay,
679
+ Rr as isoToDate,
680
+ br as isoToDisplay,
679
681
  z as isoWeekNumber,
680
- nr as loadScript,
681
- $e as lockBodyScrolling,
682
+ lr as loadScript,
683
+ qe as lockBodyScrolling,
682
684
  ie as luminanceTextColor,
683
685
  Vt as moveMultipleToIndex,
684
686
  Ot as moveToIndex,
685
687
  Yt as multiSelectTo,
686
- Rr as normalizeToIsoDate,
688
+ vr as normalizeToIsoDate,
687
689
  it as omit,
688
690
  q as openAssetOverview,
689
691
  Q as openFolderOverview,
690
692
  Z as openLink,
691
- ga as padPath,
692
- da as parseBooleanString,
693
+ pa as padPath,
694
+ Da as parseBooleanString,
693
695
  le as parseBorder,
694
696
  De as parseDuration,
695
- br as parseIsoDate,
697
+ kr as parseIsoDate,
696
698
  ct as parseJsonString,
697
699
  ce as parseLightDark,
698
700
  ut as parseListString,
@@ -700,44 +702,44 @@ export {
700
702
  lt as pick,
701
703
  Qt as popoverSupported,
702
704
  Te as prefersReducedMotion,
703
- Be as quantizeLargestRemainder,
705
+ Ge as quantizeLargestRemainder,
704
706
  mt as readLocalStorageValue,
705
- pa as reducePathToDirectChild,
706
- _e as registerTranslation,
707
+ Ta as reducePathToDirectChild,
708
+ Xe as registerTranslation,
707
709
  Ut as removeAtIndex,
708
710
  Nt as removeMultipleAtIndex,
709
- Br as resizeImage,
710
- ra as rotateBox,
711
- Wr as rotateImage,
712
- Da as safeExtension,
713
- Ta as safeString,
714
- wa as sanitizeHTML,
715
- aa as sanitizeRotation,
716
- ze as scrollIntoView,
711
+ Gr as resizeImage,
712
+ sa as rotateBox,
713
+ $r as rotateImage,
714
+ wa as safeExtension,
715
+ Ca as safeString,
716
+ xa as sanitizeHTML,
717
+ oa as sanitizeRotation,
718
+ Qe as scrollIntoView,
717
719
  st as serialize,
718
720
  j as shareAsset,
719
721
  we as shimKeyframesHeightAuto,
720
- ir as sortByTopPosition,
722
+ cr as sortByTopPosition,
721
723
  Y as sortTypefaceVariants,
722
- oa as splitBoxValues,
723
- Ca as splitCamelCaseFormatted,
724
+ ia as splitBoxValues,
725
+ ya as splitCamelCaseFormatted,
724
726
  Ce as stopAnimations,
725
727
  Zt as supportHLS,
726
728
  v as testFontAvailability,
727
- xe as timecodeConverter,
728
- ya as toCamelCase,
729
- vr as toIsoDate,
730
- Ma as toKebabCase,
731
- xa as toPascalCase,
729
+ Me as timecodeConverter,
730
+ Ma as toCamelCase,
731
+ Vr as toIsoDate,
732
+ Sa as toKebabCase,
733
+ Ea as toPascalCase,
732
734
  Et as toRelativeUrl,
733
- Sa as toTitleCase,
735
+ Aa as toTitleCase,
734
736
  Pt as toast,
735
- Ea as truncateTextMiddle,
736
- qe as unlockBodyScrolling,
737
- Aa as upperFirst,
738
- Ye as validValidityState,
739
- Ue as valueMissingValidityState,
740
- ye as waitForEvent,
741
- Tr as watch,
737
+ Ia as truncateTextMiddle,
738
+ Ze as unlockBodyScrolling,
739
+ La as upperFirst,
740
+ Ne as validValidityState,
741
+ Pe as valueMissingValidityState,
742
+ xe as waitForEvent,
743
+ Cr as watch,
742
744
  ft as writeLocalStorageValue
743
745
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.138.0",
4
+ "version": "2.139.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {