@orangelogic/design-system 3.46.0 → 3.48.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 (162) hide show
  1. package/library/chunks/{alert.C-yzkTnx.js → alert.CuW7fOVy.js} +2 -2
  2. package/library/chunks/{array-line-clamp.D17pOiME.js → array-line-clamp.VOjhwp2T.js} +2 -2
  3. package/library/chunks/{asset-link-format.eY9eXztL.js → asset-link-format.RxnH_rs9.js} +9 -9
  4. package/library/chunks/{audio.DILTfO5v.js → audio.D_O5ecXD.js} +2 -2
  5. package/library/chunks/{bicolor-picker.D_UcnmKA.js → bicolor-picker.D03k1yyx.js} +1 -1
  6. package/library/chunks/{block-width.sAttAkEm.js → block-width.CqVLiUIp.js} +33 -33
  7. package/library/chunks/{border-input-group.Dft3PVHv.js → border-input-group.CEZXBhV6.js} +3 -3
  8. package/library/chunks/{breadcrumb.CtZqzMBY.js → breadcrumb.qggcceb5.js} +1 -1
  9. package/library/chunks/{button.BE-fTtOZ.js → button.Ccrk9fUD.js} +2 -2
  10. package/library/chunks/{color-picker.CRmQ0m9_.js → color-picker.BDko_QVl.js} +10 -10
  11. package/library/chunks/{color-swatch-group.C3dL4xnG.js → color-swatch-group.GRM9PH0r.js} +17 -17
  12. package/library/chunks/{color-swatch.UEGHZZx2.js → color-swatch.sY1uNNSe.js} +3 -3
  13. package/library/chunks/{config-manager.u0EwtjHz.js → config-manager.Bskq5Cxr.js} +27 -27
  14. package/library/chunks/{configs-controller.CXh4ejXp.js → configs-controller.DdhZNSbu.js} +6 -6
  15. package/library/chunks/{confirm-popover.B1wGohE_.js → confirm-popover.BjAGzV05.js} +4 -4
  16. package/library/chunks/{copy-button.DBhWr0mk.js → copy-button.BLHge7EN.js} +2 -2
  17. package/library/chunks/{corner-position-input-group.MBe9fFRv.js → corner-position-input-group.dK3EENR2.js} +4 -4
  18. package/library/chunks/{date-calendar.Dobpjwzs.js → date-calendar.UWxXkZCn.js} +1 -1
  19. package/library/chunks/{details.DRv08ocO.js → details.DLqFxjTf.js} +1 -1
  20. package/library/chunks/dialog.Dw-WUyD8.js +1682 -0
  21. package/library/chunks/{document-viewer.DyohQ61p.js → document-viewer.B7_Adb8g.js} +13 -13
  22. package/library/chunks/{dot-pagination.D10yX9RB.js → dot-pagination.CSSalEx6.js} +2 -2
  23. package/library/chunks/{drawer.rdGcXxzU.js → drawer.tfa9-G6a.js} +2 -2
  24. package/library/chunks/{dropdown._AO9JH0m.js → dropdown.DUfiVpFI.js} +10 -12
  25. package/library/chunks/{dynamic-select.bmcldlUE.js → dynamic-select.BHa_Q600.js} +5 -5
  26. package/library/chunks/{e-chart.JrYFPEVr.js → e-chart.BopkVc04.js} +2 -2
  27. package/library/chunks/{element-clamp.DO-eDDRj.js → element-clamp.DzR3w7RX.js} +2 -2
  28. package/library/chunks/{file-on-demand.CK150wg4.js → file-on-demand.BEq7qWZd.js} +16 -16
  29. package/library/chunks/{folder-select.BlvnemXx.js → folder-select.BRJEfeyY.js} +7 -7
  30. package/library/chunks/{format-time.Dx24Hlhc.js → format-time.BO9Y72qk.js} +1 -1
  31. package/library/chunks/{header.DzQZMa38.js → header.qIpzHeNc.js} +2 -2
  32. package/library/chunks/{i18n.CpiuF-f4.js → i18n.BMXeDUpk.js} +1 -1
  33. package/library/chunks/{icon-button.8OdZOZsM.js → icon-button.CziUJUiX.js} +2 -2
  34. package/library/chunks/{iframe.C3N5F3yF.js → iframe.BnAR2-o2.js} +1 -1
  35. package/library/chunks/{image-comparer.Txi69uYU.js → image-comparer.DStatUUS.js} +1 -1
  36. package/library/chunks/{image.D1D8y17M.js → image.DzFSYcXq.js} +2 -2
  37. package/library/chunks/{input.HC75Gdv_.js → input.B3HfssSr.js} +1 -1
  38. package/library/chunks/{line-clamp.CnrGMrrC.js → line-clamp.DV3tlosD.js} +2 -2
  39. package/library/chunks/{markdown.CFxeg159.js → markdown.C-q35PEY.js} +2 -2
  40. package/library/chunks/{masonry.w1W1TERx.js → masonry.D7YK0FcU.js} +3 -3
  41. package/library/chunks/{menu-item.CyQdmKhm.js → menu-item.D-IE19Jn.js} +3 -3
  42. package/library/chunks/{menu.D9R--BnI.js → menu.3akay3Bh.js} +20 -18
  43. package/library/chunks/{option.CxsY_LQ-.js → option.9V-nTQp7.js} +1 -1
  44. package/library/chunks/{padding-input-group.DYHH1M0o.js → padding-input-group.DKIv6567.js} +1 -1
  45. package/library/chunks/{pagination.CanYvw0N.js → pagination.CJV7WdJj.js} +7 -7
  46. package/library/chunks/{popup.ALI72D04.js → popup.CxGrVXG-.js} +1 -1
  47. package/library/chunks/{position-picker.B3klGTsy.js → position-picker.CyXlSYCi.js} +1 -1
  48. package/library/chunks/{progress-bar.Br8Zi53n.js → progress-bar.Cp8jz3Cn.js} +1 -1
  49. package/library/chunks/{progress-ring.DjiHa9Bf.js → progress-ring.CMylJgKR.js} +1 -1
  50. package/library/chunks/{radio-card.DYSmJnTa.js → radio-card.D4B962Sg.js} +1 -1
  51. package/library/chunks/{range.JjDrbGgA.js → range.Dl85wEtv.js} +2 -2
  52. package/library/chunks/{rating.BqmvLuxp.js → rating.C-3rSMOT.js} +1 -1
  53. package/library/chunks/{relative-time.Tmj08T5g.js → relative-time.5fu63h4C.js} +1 -1
  54. package/library/chunks/{select.DGC0kysp.js → select.CM-1exjJ.js} +6 -6
  55. package/library/chunks/{shadow-input-group.CqJxTQGg.js → shadow-input-group.CpjriMC3.js} +2 -2
  56. package/library/chunks/{share-option-list.C7nOWbx0.js → share-option-list.BO50cnCs.js} +2 -2
  57. package/library/chunks/{sidebar.C7hLNDp-.js → sidebar.CDTaDQY_.js} +1 -1
  58. package/library/chunks/{size-input-group.DObavRHn.js → size-input-group.4NN5-92E.js} +5 -5
  59. package/library/chunks/{spinner.DXFJTymk.js → spinner.-79sJ3oo.js} +1 -1
  60. package/library/chunks/{split-panel.Bmfk4xJd.js → split-panel.DE2NmORY.js} +1 -1
  61. package/library/chunks/{src.UIyKzeaw.js → src.CQL20PqB.js} +47 -47
  62. package/library/chunks/{step.D_UKPog_.js → step.CIXS6vq7.js} +3 -3
  63. package/library/chunks/{stepper-wizard.BDezp3X-.js → stepper-wizard.Bydp0R7p.js} +2 -2
  64. package/library/chunks/{stepper.QkG9nzQk.js → stepper.DlYgTq-1.js} +1 -1
  65. package/library/chunks/{tab-group.DPFqybPz.js → tab-group.BVYwTGDS.js} +7 -7
  66. package/library/chunks/{tab.Bt9yrLEz.js → tab.BnFmdiPK.js} +3 -3
  67. package/library/chunks/{tag.CGDwKgUc.js → tag.ajqJVQQB.js} +3 -3
  68. package/library/chunks/{tooltip.Dxn_BH8D.js → tooltip.CGCOh4cQ.js} +2 -2
  69. package/library/chunks/{tree.B2qnckq5.js → tree.huEm605f.js} +3 -3
  70. package/library/chunks/{typeface.CcL21UKB.js → typeface.CtBzG7NU.js} +3 -3
  71. package/library/chunks/{video.uttqr317.js → video.Be2Oh_tS.js} +2 -2
  72. package/library/components/alert.js +1 -1
  73. package/library/components/array-line-clamp.js +1 -1
  74. package/library/components/asset-link-format.js +1 -1
  75. package/library/components/atoms.js +48 -48
  76. package/library/components/audio.js +1 -1
  77. package/library/components/bicolor-picker.js +1 -1
  78. package/library/components/border-input-group.js +1 -1
  79. package/library/components/breadcrumb.js +1 -1
  80. package/library/components/button.js +1 -1
  81. package/library/components/color-picker.js +1 -1
  82. package/library/components/color-swatch-group.js +1 -1
  83. package/library/components/color-swatch.js +1 -1
  84. package/library/components/confirm-popover.js +1 -1
  85. package/library/components/copy-button.js +1 -1
  86. package/library/components/corner-position-input-group.js +1 -1
  87. package/library/components/date-calendar.js +1 -1
  88. package/library/components/details.js +1 -1
  89. package/library/components/dialog.js +1 -1
  90. package/library/components/document-viewer.js +1 -1
  91. package/library/components/dot-pagination.js +1 -1
  92. package/library/components/drawer.js +1 -1
  93. package/library/components/dropdown.js +1 -1
  94. package/library/components/dynamic-select.js +1 -1
  95. package/library/components/e-chart.js +1 -1
  96. package/library/components/element-clamp.js +1 -1
  97. package/library/components/file-on-demand.js +1 -1
  98. package/library/components/folder-select.js +1 -1
  99. package/library/components/format-bytes.js +1 -1
  100. package/library/components/format-date.js +1 -1
  101. package/library/components/format-number.js +1 -1
  102. package/library/components/format-time.js +1 -1
  103. package/library/components/header.js +1 -1
  104. package/library/components/icon-button.js +1 -1
  105. package/library/components/iframe.js +1 -1
  106. package/library/components/image-comparer.js +1 -1
  107. package/library/components/image.js +1 -1
  108. package/library/components/input.js +1 -1
  109. package/library/components/line-clamp.js +1 -1
  110. package/library/components/markdown.js +1 -1
  111. package/library/components/masonry.js +1 -1
  112. package/library/components/menu-item.js +1 -1
  113. package/library/components/menu.js +1 -1
  114. package/library/components/molecules.js +16 -16
  115. package/library/components/option.js +1 -1
  116. package/library/components/organisms.js +3 -3
  117. package/library/components/padding-input-group.js +1 -1
  118. package/library/components/pagination.js +1 -1
  119. package/library/components/popup.js +1 -1
  120. package/library/components/position-picker.js +1 -1
  121. package/library/components/progress-bar.js +1 -1
  122. package/library/components/progress-ring.js +1 -1
  123. package/library/components/radio-card.js +1 -1
  124. package/library/components/range.js +1 -1
  125. package/library/components/rating.js +1 -1
  126. package/library/components/relative-time.js +1 -1
  127. package/library/components/select.js +1 -1
  128. package/library/components/shadow-input-group.js +1 -1
  129. package/library/components/share-option-list.js +1 -1
  130. package/library/components/sidebar.js +1 -1
  131. package/library/components/size-input-group.js +1 -1
  132. package/library/components/spinner.js +1 -1
  133. package/library/components/split-panel.js +1 -1
  134. package/library/components/step.js +1 -1
  135. package/library/components/stepper-wizard.js +1 -1
  136. package/library/components/stepper.js +1 -1
  137. package/library/components/tab-group.js +1 -1
  138. package/library/components/tab.js +1 -1
  139. package/library/components/tag.js +1 -1
  140. package/library/components/tooltip.js +1 -1
  141. package/library/components/tree-item.js +1 -1
  142. package/library/components/tree.js +1 -1
  143. package/library/components/typeface.js +1 -1
  144. package/library/components/types.js +9447 -9352
  145. package/library/components/video.js +1 -1
  146. package/library/package.json +1 -1
  147. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +0 -1
  148. package/library/packages/atoms/src/components/menu/menu.d.ts +4 -3
  149. package/library/packages/events/src/cx-capacity-week-bar.d.ts +2 -2
  150. package/library/packages/hybrid/rich-text/src/components/rich-text-toolbar/rich-text-toolbar.d.ts +4 -5
  151. package/library/packages/hybrid/rich-text/src/components/rich-text-toolbar/toolbar-list-actions.d.ts +45 -0
  152. package/library/packages/hybrid/rich-text/src/rich-text.d.ts +7 -0
  153. package/library/packages/organisms/src/capacity-planner/capacity-core.d.ts +16 -19
  154. package/library/packages/organisms/src/capacity-planner/capacity-planner.d.ts +50 -14
  155. package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.d.ts +51 -26
  156. package/library/packages/organisms/src/comment/comment.d.ts +5 -0
  157. package/library/packages/organisms/src/space-selector/space-selector.d.ts +2 -0
  158. package/library/packages/react-web-component.d.ts +0 -4
  159. package/library/react-web-component.d.ts +1 -5
  160. package/library/utils.js +1 -1
  161. package/package.json +1 -1
  162. package/library/chunks/dialog.a6Ny625w.js +0 -1681
@@ -1,34 +1,34 @@
1
1
  import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime.CEFd7nDs.js";
2
2
  import { c as x, d as i, r as E } from "./lit.CyJqR2kf.js";
3
3
  import { a as n, i as r$1, n as __decorate, r as __decorateMetadata, t as CortexElement } from "./cortex-element.DTrNUtdr.js";
4
- import { t as popup_default } from "./popup.ALI72D04.js";
4
+ import { t as popup_default } from "./popup.CxGrVXG-.js";
5
5
  import { t as component_styles_default } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as customElement } from "./custom-element.BEMYNDK1.js";
7
- import { t as LocalizeController } from "./i18n.CpiuF-f4.js";
7
+ import { t as LocalizeController } from "./i18n.BMXeDUpk.js";
8
8
  import { t as watch } from "./watch.Ub5r8btz.js";
9
9
  import { t as e } from "./class-map.D8nsNOVJ.js";
10
- import { t as icon_button_default } from "./icon-button.8OdZOZsM.js";
10
+ import { t as icon_button_default } from "./icon-button.CziUJUiX.js";
11
11
  import { t as n$1 } from "./when.BUskJLtZ.js";
12
12
  import { t as icon_default } from "./icon.CeQpEaQz.js";
13
- import { t as spinner_default } from "./spinner.DXFJTymk.js";
14
- import { t as button_default } from "./button.BE-fTtOZ.js";
13
+ import { t as spinner_default } from "./spinner.-79sJ3oo.js";
14
+ import { t as button_default } from "./button.Ccrk9fUD.js";
15
15
  import { a as ResizeDirection, i as HeightMode, n as ResizableElement, t as resizable_component_styles_default } from "./resizable-component.styles.v9pbLDG5.js";
16
- import { t as tooltip_default } from "./tooltip.Dxn_BH8D.js";
16
+ import { t as tooltip_default } from "./tooltip.CGCOh4cQ.js";
17
17
  import { t as resize_observer_default } from "./resize-observer.D9EHlnZI.js";
18
18
  import { a as ObjectFit } from "./src.BJhIYoMP.js";
19
19
  import { t as typography_default } from "./typography.B0mkhqTB.js";
20
- import { t as dropdown_default } from "./dropdown._AO9JH0m.js";
20
+ import { t as dropdown_default } from "./dropdown.DUfiVpFI.js";
21
21
  import { t as focusWhenVisible } from "./focus-when-visible.DKscgyKo.js";
22
- import { t as input_default } from "./input.HC75Gdv_.js";
23
- import { t as menu_default } from "./menu.D9R--BnI.js";
24
- import { t as menu_item_default } from "./menu-item.CyQdmKhm.js";
25
- import { t as drawer_default } from "./drawer.rdGcXxzU.js";
26
- import { t as progress_bar_default } from "./progress-bar.Br8Zi53n.js";
22
+ import { t as input_default } from "./input.B3HfssSr.js";
23
+ import { t as menu_default } from "./menu.3akay3Bh.js";
24
+ import { t as menu_item_default } from "./menu-item.D-IE19Jn.js";
25
+ import { t as drawer_default } from "./drawer.tfa9-G6a.js";
26
+ import { t as progress_bar_default } from "./progress-bar.Cp8jz3Cn.js";
27
27
  import { fetchCortexApi } from "../utils.js";
28
28
  import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
29
29
  import { t as require___vite_browser_external } from "./__vite-browser-external.CMLby1wp.js";
30
30
  import { i as _extends, r as _assertThisInitialized, t as _inheritsLoose } from "./inheritsLoose.CmL1ZoPA.js";
31
- import { t as image_default } from "./image.D1D8y17M.js";
31
+ import { t as image_default } from "./image.DzFSYcXq.js";
32
32
  //#region ../../packages/types/src/book-reader.ts
33
33
  var BookReaderMode$1 = /* @__PURE__ */ function(t) {
34
34
  return t.Image = "Image", t.Pdf = "Pdf", t;
@@ -4,12 +4,12 @@ import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./query-all.NK7qxEbl.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { t as d } from "./i18n.CpiuF-f4.js";
7
+ import { t as d } from "./i18n.BMXeDUpk.js";
8
8
  import { t as f } from "./watch.Ub5r8btz.js";
9
9
  import { t as p } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as m } from "./if-defined.B29V_rEp.js";
11
11
  import { t as h } from "./when.BUskJLtZ.js";
12
- import { t as g } from "./tooltip.Dxn_BH8D.js";
12
+ import { t as g } from "./tooltip.CGCOh4cQ.js";
13
13
  import { o as _ } from "./src.BJhIYoMP.js";
14
14
  import { t as v } from "./map.ByDuLduF.js";
15
15
  //#region ../../packages/atoms/src/components/dot-pagination/dot-pagination.styles.ts
@@ -4,12 +4,12 @@ import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { n as l, o as u, t as d } from "./event.C11S4obG.js";
6
6
  import { t as f } from "./custom-element.BEMYNDK1.js";
7
- import { t as p } from "./i18n.CpiuF-f4.js";
7
+ import { t as p } from "./i18n.BMXeDUpk.js";
8
8
  import { t as m } from "./slot.CZUlACxT.js";
9
9
  import { t as h } from "./watch.Ub5r8btz.js";
10
10
  import { t as g } from "./class-map.D8nsNOVJ.js";
11
11
  import { r as _, t as v } from "./animation-registry.DKd2AOcC.js";
12
- import { t as y } from "./icon-button.8OdZOZsM.js";
12
+ import { t as y } from "./icon-button.CziUJUiX.js";
13
13
  import { t as b } from "./if-defined.B29V_rEp.js";
14
14
  import { t as x } from "./when.BUskJLtZ.js";
15
15
  import { r as S, t as C } from "./scroll.CEH_a4pm.js";
@@ -1,11 +1,11 @@
1
1
  import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
2
  import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
- import { t as s } from "./popup.ALI72D04.js";
4
+ import { t as s } from "./popup.CxGrVXG-.js";
5
5
  import { t as c } from "./component.styles.0xM1ZmBs.js";
6
6
  import { n as l, o as u, t as d } from "./event.C11S4obG.js";
7
7
  import { t as f } from "./custom-element.BEMYNDK1.js";
8
- import { t as p } from "./i18n.CpiuF-f4.js";
8
+ import { t as p } from "./i18n.BMXeDUpk.js";
9
9
  import { t as m } from "./slot.CZUlACxT.js";
10
10
  import { t as h } from "./watch.Ub5r8btz.js";
11
11
  import { t as g } from "./class-map.D8nsNOVJ.js";
@@ -13,8 +13,8 @@ import { r as _, t as v } from "./animation-registry.DKd2AOcC.js";
13
13
  import { t as y } from "./if-defined.B29V_rEp.js";
14
14
  import { t as b } from "./focus-when-visible.DKscgyKo.js";
15
15
  import { t as x } from "./tabbable.Bflg1dha.js";
16
- import { t as S } from "./input.HC75Gdv_.js";
17
- import { t as C } from "./menu.D9R--BnI.js";
16
+ import { t as S } from "./input.B3HfssSr.js";
17
+ import { t as C } from "./menu.3akay3Bh.js";
18
18
  import { t as w } from "./textarea.Bc4eCJgT.js";
19
19
  //#region ../../packages/utils/src/custom-element/escapable-overlays.ts
20
20
  var T = [], E = class {
@@ -37,7 +37,7 @@ var T = [], E = class {
37
37
  return this.hoist ? document.body : void 0;
38
38
  }
39
39
  constructor() {
40
- super(), this.escapableOverlay = new E(this), this.localize = new p(this), this.hasSlotController = new m(this, "[default]"), this.pendingFocusCancel = null, this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleDocumentFocusIn = this.handleDocumentFocusIn.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
40
+ super(), this.escapableOverlay = new E(this), this.localize = new p(this), this.hasSlotController = new m(this, "[default]"), this.pendingFocusCancel = null, this.open = !1, this.placement = "bottom-start", this.disabled = !1, this.stayOpenOnSelect = !1, this.distance = 0, this.skidding = 0, this.hoist = !1, this.sync = void 0, this.autoWidthFactor = 1, this.ignoredKeys = [], this.noFlip = !1, this.flipPadding = 10, this.handleKeyDown = this.handleKeyDown.bind(this), this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handlePanelSelect = this.handlePanelSelect.bind(this);
41
41
  }
42
42
  connectedUpdatedCallback() {
43
43
  this.containingElement ??= this, this.panel.hidden = !this.open || !this.hasSlotController.test("[default]"), this.updateAccessibleTrigger(), this.open && (this.addOpenListeners(), this.popup.active = !0);
@@ -56,16 +56,14 @@ var T = [], E = class {
56
56
  this.open && e.key === "Escape" && (e.stopPropagation(), this.hide(), this.focusOnTrigger());
57
57
  }
58
58
  handleDocumentKeyDown(e) {
59
- e.key === "Escape" && this.open && (e.stopPropagation(), this.focusOnTrigger(), this.hide());
59
+ e.key === "Escape" && this.open && (e.stopPropagation(), this.focusOnTrigger(), this.hide()), e.key === "Tab" && this.open && requestAnimationFrame(() => {
60
+ this.containingElement?.matches(":focus-within") || this.hide();
61
+ });
60
62
  }
61
63
  handleDocumentMouseDown(e) {
62
64
  let t = e.composedPath();
63
65
  this.containingElement && !t.includes(this.containingElement) && this.hide();
64
66
  }
65
- handleDocumentFocusIn(e) {
66
- let t = e.composedPath();
67
- this.containingElement && !t.includes(this.containingElement) && this.hide();
68
- }
69
67
  handlePanelSelect(e) {
70
68
  let t = e.target;
71
69
  !this.stayOpenOnSelect && t.tagName.toLowerCase() === "cx-menu" && (this.hide(), this.focusOnTrigger());
@@ -136,10 +134,10 @@ var T = [], E = class {
136
134
  addOpenListeners() {
137
135
  this.escapableOverlay.activate(), this.panel.addEventListener("cx-select", this.handlePanelSelect), "CloseWatcher" in globalThis ? (this.closeWatcher?.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
138
136
  this.hide(), this.focusOnTrigger();
139
- }) : this.panel.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("mousedown", this.handleDocumentMouseDown), document.addEventListener("focusin", this.handleDocumentFocusIn);
137
+ }) : this.panel.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keydown", this.handleDocumentKeyDown), document.addEventListener("mousedown", this.handleDocumentMouseDown, !0);
140
138
  }
141
139
  removeOpenListeners() {
142
- this.panel && (this.panel.removeEventListener("cx-select", this.handlePanelSelect), this.panel.removeEventListener("keydown", this.handleKeyDown)), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("mousedown", this.handleDocumentMouseDown), document.removeEventListener("focusin", this.handleDocumentFocusIn), this.closeWatcher?.destroy(), this.escapableOverlay.deactivate();
140
+ this.panel && (this.panel.removeEventListener("cx-select", this.handlePanelSelect), this.panel.removeEventListener("keydown", this.handleKeyDown)), document.removeEventListener("keydown", this.handleDocumentKeyDown), document.removeEventListener("mousedown", this.handleDocumentMouseDown, !0), this.closeWatcher?.destroy(), this.escapableOverlay.deactivate();
143
141
  }
144
142
  async handleOpenChange() {
145
143
  if (this.disabled) {
@@ -2,18 +2,18 @@ import { c as e } from "./lit.CyJqR2kf.js";
2
2
  import { a as t, i as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./custom-element.BEMYNDK1.js";
5
- import { t as c } from "./i18n.CpiuF-f4.js";
5
+ import { t as c } from "./i18n.BMXeDUpk.js";
6
6
  import { t as l } from "./watch.Ub5r8btz.js";
7
7
  import { t as u } from "./class-map.D8nsNOVJ.js";
8
- import { t as d } from "./icon-button.8OdZOZsM.js";
8
+ import { t as d } from "./icon-button.CziUJUiX.js";
9
9
  import { t as f } from "./if-defined.B29V_rEp.js";
10
10
  import { t as p } from "./when.BUskJLtZ.js";
11
11
  import { t as m } from "./style-map.DPGQIxip.js";
12
- import { t as h } from "./button.BE-fTtOZ.js";
12
+ import { t as h } from "./button.Ccrk9fUD.js";
13
13
  import { t as g } from "./debounce.Ci-xdsHE.js";
14
14
  import { t as _ } from "./repeat.CKv9FPlC.js";
15
- import { n as v, t as y } from "./option.CxsY_LQ-.js";
16
- import { t as b } from "./select.DGC0kysp.js";
15
+ import { n as v, t as y } from "./option.9V-nTQp7.js";
16
+ import { t as b } from "./select.CM-1exjJ.js";
17
17
  import { t as x } from "./map.ByDuLduF.js";
18
18
  import { t as S } from "./keyed.zYwdaCfO.js";
19
19
  import { t as C } from "./_baseIteratee.DWc2-Bvm.js";
@@ -4,11 +4,11 @@ import { a as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
4
4
  import { t as s } from "./query.B1yi7t71.js";
5
5
  import { t as c } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as l } from "./custom-element.BEMYNDK1.js";
7
- import { t as u } from "./i18n.CpiuF-f4.js";
7
+ import { t as u } from "./i18n.BMXeDUpk.js";
8
8
  import { t as d } from "./watch.Ub5r8btz.js";
9
9
  import { t as f } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as p } from "./when.BUskJLtZ.js";
11
- import { t as m } from "./spinner.DXFJTymk.js";
11
+ import { t as m } from "./spinner.-79sJ3oo.js";
12
12
  import { t as h } from "./resize-observer.D9EHlnZI.js";
13
13
  //#region ../../node_modules/echarts/node_modules/tslib/tslib.es6.js
14
14
  var g = function(e, t) {
@@ -4,11 +4,11 @@ import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { a as l, n as u, o as d, t as f } from "./event.C11S4obG.js";
6
6
  import { t as p } from "./custom-element.BEMYNDK1.js";
7
- import { t as m } from "./i18n.CpiuF-f4.js";
7
+ import { t as m } from "./i18n.BMXeDUpk.js";
8
8
  import { t as h } from "./watch.Ub5r8btz.js";
9
9
  import { t as g } from "./class-map.D8nsNOVJ.js";
10
10
  import { n as _, t as v } from "./animation-registry.DKd2AOcC.js";
11
- import { t as y } from "./button.BE-fTtOZ.js";
11
+ import { t as y } from "./button.Ccrk9fUD.js";
12
12
  //#region ../../packages/atoms/src/components/element-clamp/element-clamp.styles.ts
13
13
  var b = t`:host{--toggler-color:var(--cx-color-primary);display:block;overflow:hidden}.element-clamp{overflow-anchor:none}.element-clamp--disabled{opacity:.5}.element-clamp-icon{transition:var(--cx-transition-medium) rotate ease;flex:none;align-items:center;display:flex}.details--open .element-clamp-icon{rotate:90deg}.details--open.details--rtl .element-clamp-icon{rotate:-90deg}.element-clamp--open slot[name=expand-icon],.element-clamp:not(.element-clamp--open) slot[name=collapse-icon]{display:none}.element-clamp__content{display:block;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`, x = class extends o {
14
14
  static #e = this.styles = [c, b];
@@ -3,38 +3,38 @@ import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js"
3
3
  import { t as c } from "./query.B1yi7t71.js";
4
4
  import { t as l } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as u } from "./custom-element.BEMYNDK1.js";
6
- import { t as d } from "./i18n.CpiuF-f4.js";
6
+ import { t as d } from "./i18n.BMXeDUpk.js";
7
7
  import { S as f, t as p, w as m } from "./watch.Ub5r8btz.js";
8
8
  import { t as h } from "./class-map.D8nsNOVJ.js";
9
- import { t as g } from "./icon-button.8OdZOZsM.js";
9
+ import { t as g } from "./icon-button.CziUJUiX.js";
10
10
  import { t as _ } from "./when.BUskJLtZ.js";
11
11
  import { t as v } from "./icon.CeQpEaQz.js";
12
- import { t as ee } from "./spinner.DXFJTymk.js";
12
+ import { t as ee } from "./spinner.-79sJ3oo.js";
13
13
  import { t as te } from "./style-map.DPGQIxip.js";
14
- import { t as ne } from "./button.BE-fTtOZ.js";
14
+ import { t as ne } from "./button.Ccrk9fUD.js";
15
15
  import { d as y } from "./string.DamEXDH2.js";
16
16
  import { t as re } from "./debounce.Ci-xdsHE.js";
17
- import { t as b } from "./tooltip.Dxn_BH8D.js";
18
- import { t as x } from "./line-clamp.CnrGMrrC.js";
17
+ import { t as b } from "./tooltip.CGCOh4cQ.js";
18
+ import { t as x } from "./line-clamp.DV3tlosD.js";
19
19
  import { t as S } from "./number.CNp5LKkv.js";
20
20
  import { t as C } from "./typography.B0mkhqTB.js";
21
21
  import { t as ie } from "./avatar.Ce0OZHBT.js";
22
22
  import { t as w } from "./repeat.CKv9FPlC.js";
23
- import { t as ae } from "./input.HC75Gdv_.js";
24
- import { t as oe } from "./option.CxsY_LQ-.js";
23
+ import { t as ae } from "./input.B3HfssSr.js";
24
+ import { t as oe } from "./option.9V-nTQp7.js";
25
25
  import { t as se } from "./space.Dd8jezXK.js";
26
- import { t as ce } from "./select.DGC0kysp.js";
27
- import { t as le } from "./tab.Bt9yrLEz.js";
28
- import { t as T } from "./tab-group.DPFqybPz.js";
26
+ import { t as ce } from "./select.CM-1exjJ.js";
27
+ import { t as le } from "./tab.BnFmdiPK.js";
28
+ import { t as T } from "./tab-group.BVYwTGDS.js";
29
29
  import { t as ue } from "./tab-panel.BxeoKuSv.js";
30
- import { t as E } from "./dialog.a6Ny625w.js";
30
+ import { t as E } from "./dialog.Dw-WUyD8.js";
31
31
  import { t as de } from "./divider.CqSNZCU8.js";
32
- import { t as fe } from "./progress-bar.Br8Zi53n.js";
32
+ import { t as fe } from "./progress-bar.Cp8jz3Cn.js";
33
33
  import { o as D, u as O } from "./url.CZO_DV8Y.js";
34
34
  import k from "../components/format-bytes.js";
35
- import { t as pe } from "./relative-time.Tmj08T5g.js";
36
- import { a as A, i as me, n as he, t as j } from "./tree.B2qnckq5.js";
37
- import { t as ge } from "./confirm-popover.B1wGohE_.js";
35
+ import { t as pe } from "./relative-time.5fu63h4C.js";
36
+ import { a as A, i as me, n as he, t as j } from "./tree.huEm605f.js";
37
+ import { t as ge } from "./confirm-popover.BjAGzV05.js";
38
38
  import { t as _e } from "./_baseIteratee.DWc2-Bvm.js";
39
39
  import { t as ve } from "./choose.C2vpqhLc.js";
40
40
  import { t as ye } from "./_baseXor.Ca5K0ORC.js";
@@ -3,25 +3,25 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.CpiuF-f4.js";
6
+ import { t as u } from "./i18n.BMXeDUpk.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
8
  import { t as f } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as p } from "./if-defined.B29V_rEp.js";
10
10
  import { t as m } from "./when.BUskJLtZ.js";
11
11
  import { t as h } from "./icon.CeQpEaQz.js";
12
12
  import { t as g } from "./style-map.DPGQIxip.js";
13
- import { t as _ } from "./button.BE-fTtOZ.js";
13
+ import { t as _ } from "./button.Ccrk9fUD.js";
14
14
  import { c as v, d as y, i as b } from "./string.DamEXDH2.js";
15
15
  import { t as x } from "./debounce.Ci-xdsHE.js";
16
- import { t as S } from "./line-clamp.CnrGMrrC.js";
17
- import { t as C } from "./tag.CGDwKgUc.js";
16
+ import { t as S } from "./line-clamp.DV3tlosD.js";
17
+ import { t as C } from "./tag.ajqJVQQB.js";
18
18
  import { t as w } from "./repeat.CKv9FPlC.js";
19
- import { t as T } from "./input.HC75Gdv_.js";
19
+ import { t as T } from "./input.B3HfssSr.js";
20
20
  import { t as E } from "./space.Dd8jezXK.js";
21
- import { t as D } from "./select.DGC0kysp.js";
21
+ import { t as D } from "./select.CM-1exjJ.js";
22
22
  import { t as O } from "./template.Cyvih0XQ.js";
23
23
  import { n as k } from "./asset-link-format.DhdgEsA0.js";
24
- import { a as A, i as j } from "./tree.B2qnckq5.js";
24
+ import { a as A, i as j } from "./tree.huEm605f.js";
25
25
  import { c as M, f as N, p as P } from "./endpoints.jOHOmF_t.js";
26
26
  import { t as F } from "./choose.C2vpqhLc.js";
27
27
  //#region ../../node_modules/axios/index.js
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
2
  import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as s } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as c } from "./custom-element.BEMYNDK1.js";
5
- import { t as l } from "./i18n.CpiuF-f4.js";
5
+ import { t as l } from "./i18n.BMXeDUpk.js";
6
6
  import { t as u } from "./watch.Ub5r8btz.js";
7
7
  import { a as d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./time.p1t0NCwj.js";
8
8
  //#region ../../packages/atoms/src/components/format-time/format-time.styles.ts
@@ -3,14 +3,14 @@ import { a as t, i as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtd
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./i18n.CpiuF-f4.js";
6
+ import { t as l } from "./i18n.BMXeDUpk.js";
7
7
  import { t as u } from "./watch.Ub5r8btz.js";
8
8
  import { t as d } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as f } from "./when.BUskJLtZ.js";
10
10
  import { n as p, t as m } from "./static-html.Ce8Avr_g.js";
11
11
  import { t as h } from "./style-map.DPGQIxip.js";
12
12
  import { t as g } from "./debounce.Ci-xdsHE.js";
13
- import { t as _ } from "./copy-button.DBhWr0mk.js";
13
+ import { t as _ } from "./copy-button.BLHge7EN.js";
14
14
  import { f as v, n as y, r as b, t as x } from "./responsive.L9Csz2w2.js";
15
15
  //#region ../../packages/styles/src/prosemirror.styles.ts
16
16
  var S = e`insert,span[format]{background-color:var(--cx-color-success-200)}delete{background-color:var(--cx-color-neutral-200);text-decoration:line-through}annotate{background-color:var(--cx-color-warning-200)}.ProseMirror figure[data-track*=deletion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=deletion],.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]{border:3px solid var(--cx-color-neutral);position:relative}.ProseMirror figure[data-track*=deletion] [data-node-type=figure]:after,.ProseMirror cx-rich-text-code-block[data-track*=deletion]:after,.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]:after{content:"";box-sizing:border-box;pointer-events:none;background-image:repeating-linear-gradient(45deg, var(--cx-color-neutral), var(--cx-color-neutral) 10px, #fff 10px, #fff 20px);opacity:.4;width:100%;height:100%;position:absolute;top:0;left:0}.ProseMirror figure[data-track*=insertion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=insertion],.ProseMirror cx-rich-text-image-viewer[data-track*=insertion]{border:3px solid var(--cx-color-success)}.ProseMirror figure[data-track*=annotation] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=annotation],.ProseMirror cx-rich-text-image-viewer[data-track*=annotation]{border:3px solid var(--cx-color-warning-200)}`, C = e`
@@ -295,7 +295,7 @@ var m = class {
295
295
  canceled: "Canceled",
296
296
  capacity: "Capacity",
297
297
  capacityAdjustHours: "Adjust hours",
298
- capacityAdjustHoursHint: "Drag a band left to shrink it or right to grow it — the others rebalance proportionally. Switch to Copy weeks to clone weeks across a range.",
298
+ capacityAdjustHoursHint: "Drag a category left to shrink it or right to grow it (or focus it and use ←/→). Only that category changes: growing uses Unavailable hours, shrinking returns hours to Unavailable. Switch to Copy weeks to clone weeks across a range.",
299
299
  capacityCopied: (e) => `Copied ${e} week${e > 1 ? "s" : ""} · ⌘V to paste`,
300
300
  capacityCopyWeeks: "Copy weeks",
301
301
  capacityCopyWeeksHint: "Select weeks by dragging (or focus a row and use ↑/↓, Shift+↑/↓ to extend), then ⌘C / ⌘V to copy-paste — or use the fill handle (Enter, then ↑/↓, Enter to commit) to repeat. Switch to Adjust hours to change allocations.",
@@ -3,13 +3,13 @@ import { a as t, i as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtd
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./i18n.CpiuF-f4.js";
6
+ import { t as l } from "./i18n.BMXeDUpk.js";
7
7
  import { t as u } from "./class-map.D8nsNOVJ.js";
8
8
  import { t as d } from "./if-defined.B29V_rEp.js";
9
9
  import { t as f } from "./when.BUskJLtZ.js";
10
10
  import { n as p, t as m } from "./static-html.Ce8Avr_g.js";
11
11
  import { t as h } from "./icon.CeQpEaQz.js";
12
- import { t as g } from "./spinner.DXFJTymk.js";
12
+ import { t as g } from "./spinner.-79sJ3oo.js";
13
13
  //#region ../../packages/types/src/icon-button.ts
14
14
  var _ = /* @__PURE__ */ function(e) {
15
15
  return e.Large = "large", e.Medium = "medium", e.Small = "small", e.XLarge = "x-large", e;
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./i18n.CpiuF-f4.js";
6
+ import { t as l } from "./i18n.BMXeDUpk.js";
7
7
  import { t as u } from "./watch.Ub5r8btz.js";
8
8
  import { t as d } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as f } from "./if-defined.B29V_rEp.js";
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./i18n.CpiuF-f4.js";
6
+ import { t as l } from "./i18n.BMXeDUpk.js";
7
7
  import { t as u } from "./watch.Ub5r8btz.js";
8
8
  import { t as d } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as f } from "./icon.CeQpEaQz.js";
@@ -1,10 +1,10 @@
1
1
  import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
2
2
  import { a as r, i, n as a, r as o } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
- import { t as c } from "./popup.ALI72D04.js";
4
+ import { t as c } from "./popup.CxGrVXG-.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { t as d } from "./i18n.CpiuF-f4.js";
7
+ import { t as d } from "./i18n.BMXeDUpk.js";
8
8
  import { t as f } from "./watch.Ub5r8btz.js";
9
9
  import { t as p } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as m } from "./if-defined.B29V_rEp.js";
@@ -3,7 +3,7 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.CpiuF-f4.js";
6
+ import { t as u } from "./i18n.BMXeDUpk.js";
7
7
  import { t as d } from "./slot.CZUlACxT.js";
8
8
  import { t as f } from "./watch.Ub5r8btz.js";
9
9
  import { t as p } from "./class-map.D8nsNOVJ.js";
@@ -3,10 +3,10 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import "./button.BE-fTtOZ.js";
6
+ import "./button.Ccrk9fUD.js";
7
7
  import { c as u } from "./browser.Ct4pHP9I.js";
8
8
  import { t as d } from "./debounce.Ci-xdsHE.js";
9
- import "./tooltip.Dxn_BH8D.js";
9
+ import "./tooltip.CGCOh4cQ.js";
10
10
  import "./resize-observer.D9EHlnZI.js";
11
11
  //#region ../../packages/atoms/src/components/line-clamp/line-clamp.styles.ts
12
12
  var f = t`:host{--toggler-color:var(--cx-color-primary)}.content{text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`, p = class extends o {
@@ -2,9 +2,9 @@ import { t as e } from "./rolldown-runtime.CEFd7nDs.js";
2
2
  import { c as t, d as n } from "./lit.CyJqR2kf.js";
3
3
  import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
4
4
  import { t as c } from "./custom-element.BEMYNDK1.js";
5
- import { t as l } from "./i18n.CpiuF-f4.js";
5
+ import { t as l } from "./i18n.BMXeDUpk.js";
6
6
  import { t as u } from "./watch.Ub5r8btz.js";
7
- import { n as d, t as f } from "./icon-button.8OdZOZsM.js";
7
+ import { n as d, t as f } from "./icon-button.CziUJUiX.js";
8
8
  import { g as p } from "./string.DamEXDH2.js";
9
9
  import { t as m } from "./unsafe-html.Cb838aX7.js";
10
10
  //#region ../../packages/base/src/cortex-light-element.ts
@@ -5,15 +5,15 @@ import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
6
  import { t as u } from "./watch.Ub5r8btz.js";
7
7
  import { t as d } from "./class-map.D8nsNOVJ.js";
8
- import { t as f } from "./icon-button.8OdZOZsM.js";
8
+ import { t as f } from "./icon-button.CziUJUiX.js";
9
9
  import { t as p } from "./if-defined.B29V_rEp.js";
10
10
  import { t as m } from "./when.BUskJLtZ.js";
11
11
  import { t as h } from "./style-map.DPGQIxip.js";
12
- import { t as g } from "./tooltip.Dxn_BH8D.js";
12
+ import { t as g } from "./tooltip.CGCOh4cQ.js";
13
13
  import { a as _ } from "./src.BJhIYoMP.js";
14
14
  import { t as v } from "./repeat.CKv9FPlC.js";
15
15
  import { t as y } from "./space.Dd8jezXK.js";
16
- import { t as b } from "./image.D1D8y17M.js";
16
+ import { t as b } from "./image.DzFSYcXq.js";
17
17
  import { t as x } from "./grid.CK4PRwur.js";
18
18
  import { t as S } from "./grid-item.CSieaU5T.js";
19
19
  import { t as C } from "./sortable.esm.W3y3EWKS.js";
@@ -1,16 +1,16 @@
1
1
  import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
2
2
  import { a as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
- import { t as c } from "./popup.ALI72D04.js";
4
+ import { t as c } from "./popup.CxGrVXG-.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { n as d, t as f } from "./i18n.CpiuF-f4.js";
7
+ import { n as d, t as f } from "./i18n.BMXeDUpk.js";
8
8
  import { r as p, t as m } from "./slot.CZUlACxT.js";
9
9
  import { t as h } from "./watch.Ub5r8btz.js";
10
10
  import { t as g } from "./class-map.D8nsNOVJ.js";
11
11
  import { t as _ } from "./if-defined.B29V_rEp.js";
12
12
  import { t as v } from "./icon.CeQpEaQz.js";
13
- import { t as y } from "./spinner.DXFJTymk.js";
13
+ import { t as y } from "./spinner.-79sJ3oo.js";
14
14
  import { t as b } from "./focus-when-visible.DKscgyKo.js";
15
15
  import { n as x, t as S } from "./ref.CU1NC5AM.js";
16
16
  //#region ../../packages/types/src/menu-item.ts
@@ -3,20 +3,20 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.CpiuF-f4.js";
6
+ import { t as u } from "./i18n.BMXeDUpk.js";
7
7
  import { t as d } from "./when.BUskJLtZ.js";
8
- import { r as f, t as p } from "./menu-item.CyQdmKhm.js";
8
+ import { r as f, t as p } from "./menu-item.D-IE19Jn.js";
9
9
  //#region ../../packages/types/src/menu.ts
10
10
  var m = /* @__PURE__ */ function(e) {
11
11
  return e.Default = "default", e.Multiple = "multiple", e;
12
12
  }({}), h = t`:host{background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-panel-border-radius,var(--cx-border-radius-large));padding:var(--cx-panel-padding,var(--cx-spacing-x-small) 0);--divider-color:var(--cx-panel-border-color);--divider-width:var(--cx-panel-border-width);--divider-spacing:var(--cx-spacing-x-small);display:block;position:relative;overflow:auto}:host([horizontal]){padding:0 var(--cx-spacing-x-small);flex-wrap:wrap;justify-content:space-between;display:flex}::slotted(cx-divider){--color:var(--divider-color);--width:var(--divider-width);--spacing:var(--divider-spacing)}::slotted([data-alternating-grouping]):before{content:" ";background-color:var(--divider-color);margin:var(--divider-spacing) 0;height:var(--divider-width);display:block}::slotted([data-alternating-grouping=horizontal]):before{height:100%;margin:0 var(--divider-spacing);width:var(--divider-width);display:inline-block}:host([horizontal]) ::slotted(cx-menu-section){flex-wrap:wrap;justify-content:space-between;display:flex}:host([horizontal]) ::slotted(cx-menu-item){display:flex}:host([variant=multiple]){position:relative;overflow:hidden}:host([variant=multiple]) ::slotted(cx-menu[name]){opacity:0;pointer-events:none;transition:opacity var(--cx-transition-fast) ease-in-out, transform var(--cx-transition-medium) ease-in-out;border:none;top:0;left:0;transform:translate(-50%);position:absolute!important}:host([variant=multiple]) ::slotted(cx-menu[active]){opacity:1;pointer-events:auto;transform:translate(0)}.back__button::part(checked-icon),.back__button::part(submenu-icon){display:none}.back__divider{--spacing:var(--cx-spacing-x-small)}`, g;
13
13
  function _(e) {
14
- return e.tagName.toLowerCase() === "cx-menu" && e instanceof v && e.getAttribute("role") === "menu";
14
+ return e.tagName.toLowerCase() === "cx-menu" && e instanceof v && e.getAttribute("role") === "menu" && !e.inert;
15
15
  }
16
16
  var v = class extends o {
17
17
  static #e = g = this;
18
18
  constructor(...e) {
19
- super(...e), this.localize = new u(this), this.horizontal = !1, this.variant = m.Default, this.active = !1, this.name = "", this.back = "", this.default = !1, this.bubbleKeyDown = !1, this.ignoredKeys = [], this.disabledTabLoop = !1, this.noUncheck = !1, this.resizeObserver = null, this.slotMutationObserver = null;
19
+ super(...e), this.localize = new u(this), this.horizontal = !1, this.variant = m.Default, this.active = !1, this.name = "", this.back = "", this.default = !1, this.bubbleKeyDown = !1, this.ignoredKeys = [], this.noUncheck = !1, this.resizeObserver = null, this.slotMutationObserver = null;
20
20
  }
21
21
  static #t = this.styles = [c, h];
22
22
  connectedCallback() {
@@ -55,7 +55,7 @@ var v = class extends o {
55
55
  "menuitemradio"
56
56
  ], n = e.composedPath(), r = n.find((e) => t.includes(e?.getAttribute?.("role") || ""));
57
57
  if (!r) return;
58
- let i = r.menu;
58
+ let i = r.getAttribute("menu");
59
59
  if (i) {
60
60
  this.setActiveMenu(i);
61
61
  return;
@@ -112,7 +112,7 @@ var v = class extends o {
112
112
  }
113
113
  i = 0;
114
114
  }
115
- if (i < 0 && !this.disabledTabLoop) {
115
+ if (i < 0) {
116
116
  e.preventDefault();
117
117
  let t = this.previousElementSibling;
118
118
  for (; t && !_(t);) t = t.previousElementSibling;
@@ -135,7 +135,7 @@ var v = class extends o {
135
135
  i = 0;
136
136
  }
137
137
  }
138
- if (i > t.length - 1 && !this.disabledTabLoop) {
138
+ if (i > t.length - 1) {
139
139
  e.preventDefault();
140
140
  let t = this.nextElementSibling;
141
141
  for (; t && !_(t);) t = t.nextElementSibling;
@@ -198,8 +198,12 @@ var v = class extends o {
198
198
  "menuitemradio"
199
199
  ].includes(e.getAttribute("role") ?? "") : !1;
200
200
  }
201
+ focusPanelTabStop(e) {
202
+ let t = e.getAllItems();
203
+ (t.find((e) => e.getAttribute("tabindex") === "0") ?? t[0])?.focus({ preventScroll: !0 });
204
+ }
201
205
  getAllItems() {
202
- return this.defaultSlot.assignedElements({ flatten: !0 }).flatMap((e) => {
206
+ return [this.backSlot, this.defaultSlot].flatMap((e) => e?.assignedElements({ flatten: !0 }) ?? []).flatMap((e) => e.slot === "back-button" && !this.isMenuItem(e) ? [...e.children] : e).flatMap((e) => {
203
207
  if (this.isMenuSection(e)) {
204
208
  let t = e.shadowRoot?.querySelector("slot");
205
209
  return t ? [...t.assignedElements({ flatten: !0 })] : [];
@@ -211,12 +215,14 @@ var v = class extends o {
211
215
  return [...this.querySelectorAll("cx-menu")];
212
216
  }
213
217
  setActiveMenu(e) {
214
- let t = this.getAllSubMenus(), n = null;
218
+ let t = this.getAllSubMenus(), n = this.variant === m.Multiple, r = n && this.matches(":focus-within"), i = null;
215
219
  t.forEach((t) => {
216
- t.name === e ? (t.active = !0, n = t) : t.active = !1;
217
- }), this.adjustMenuSize(), n && (this.resizeObserver &&= (this.resizeObserver.disconnect(), null), this.resizeObserver = new ResizeObserver(() => {
220
+ t.name === e ? (t.active = !0, i = t) : t.active = !1;
221
+ }), this.adjustMenuSize(), i && (this.resizeObserver &&= (this.resizeObserver.disconnect(), null), this.resizeObserver = new ResizeObserver(() => {
218
222
  this.adjustMenuSize();
219
- }), this.resizeObserver.observe(n));
223
+ }), this.resizeObserver.observe(i), r && (i.inert = !1, this.focusPanelTabStop(i))), n && t.forEach((e) => {
224
+ e.parentElement === this && (e.inert = !e.active);
225
+ });
220
226
  }
221
227
  async adjustMenuSize(e = 250) {
222
228
  let t = this.getActiveMenu();
@@ -247,11 +253,11 @@ var v = class extends o {
247
253
  this.setRovingTabIndex(e);
248
254
  }
249
255
  render() {
250
- let t = d(this.back, () => e`<slot name="back-button" role="menuitem" menu=${this.back}><cx-menu-item part="back-button" class="back__button" menu=${this.back}><cx-icon slot="prefix" name="chevron_left"></cx-icon>${this.localize.term("back")}</cx-menu-item><cx-divider class="back__divider"></cx-divider></slot>`);
256
+ let t = d(this.back, () => e`<slot name="back-button" role="menuitem" menu=${this.back} @slotchange=${this.handleSlotChange} @keydown=${this.handleKeyDown}><cx-menu-item part="back-button" class="back__button" menu=${this.back}><cx-icon slot="prefix" name="chevron_left"></cx-icon>${this.localize.term("back")}</cx-menu-item><cx-divider class="back__divider"></cx-divider></slot>`);
251
257
  return this.variant, m.Multiple, e`${t}<slot @slotchange=${this.handleSlotChange} @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}></slot>`;
252
258
  }
253
259
  };
254
- i([s("slot:not([name])"), a("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], v.prototype, "defaultSlot", void 0), i([n({ type: Boolean }), a("design:type", Object)], v.prototype, "horizontal", void 0), i([n({ reflect: !0 }), a("design:type", Object)], v.prototype, "variant", void 0), i([n({
260
+ i([s("slot:not([name])"), a("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], v.prototype, "defaultSlot", void 0), i([s("slot[name=\"back-button\"]"), a("design:type", Object)], v.prototype, "backSlot", void 0), i([n({ type: Boolean }), a("design:type", Object)], v.prototype, "horizontal", void 0), i([n({ reflect: !0 }), a("design:type", Object)], v.prototype, "variant", void 0), i([n({
255
261
  reflect: !0,
256
262
  type: Boolean
257
263
  }), a("design:type", Object)], v.prototype, "active", void 0), i([n({ reflect: !0 }), a("design:type", Object)], v.prototype, "name", void 0), i([n({ reflect: !0 }), a("design:type", Object)], v.prototype, "back", void 0), i([n({
@@ -269,10 +275,6 @@ i([s("slot:not([name])"), a("design:type", typeof HTMLSlotElement > "u" ? Object
269
275
  },
270
276
  type: String
271
277
  }), a("design:type", Array)], v.prototype, "ignoredKeys", void 0), i([n({
272
- attribute: "disabled-tab-loop",
273
- reflect: !0,
274
- type: Boolean
275
- }), a("design:type", Object)], v.prototype, "disabledTabLoop", void 0), i([n({
276
278
  attribute: "no-uncheck",
277
279
  reflect: !0,
278
280
  type: Boolean
@@ -3,7 +3,7 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.CpiuF-f4.js";
6
+ import { t as u } from "./i18n.BMXeDUpk.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
8
  import { t as f } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as p } from "./when.BUskJLtZ.js";
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as s } from "./custom-element.BEMYNDK1.js";
5
5
  import { t as c } from "./repeat.CKv9FPlC.js";
6
- import { t as l } from "./input.HC75Gdv_.js";
6
+ import { t as l } from "./input.B3HfssSr.js";
7
7
  import { t as u } from "./parse.CDrJ-NY7.js";
8
8
  import { t as d } from "./input-group.Dmd8XcxL.js";
9
9
  //#region ../../packages/molecules/src/padding-input-group/padding-input-group.styles.ts