@nanahoshi/mona-ui 0.24.11 → 0.25.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 (163) hide show
  1. package/README.md +9 -0
  2. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
  3. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
  4. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
  5. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
  6. package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
  7. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
  8. package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
  9. package/fesm2022/nanahoshi-mona-ui-chart.mjs +27 -22
  10. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
  11. package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
  12. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
  13. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
  14. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
  15. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
  16. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
  17. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
  18. package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
  19. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
  20. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
  21. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
  22. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
  23. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
  24. package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
  25. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
  26. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
  27. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
  28. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
  29. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
  30. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
  31. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
  32. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
  33. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  34. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +39 -4
  35. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
  36. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
  37. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
  38. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
  39. package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
  40. package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
  41. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
  42. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
  43. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +33 -4
  44. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -4
  45. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -4
  46. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +33 -4
  47. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +33 -4
  48. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -4
  49. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +33 -4
  50. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +33 -4
  51. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -4
  52. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +33 -4
  53. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +33 -4
  54. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +33 -4
  55. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +33 -4
  56. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
  57. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
  58. package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
  59. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
  60. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
  61. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
  62. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
  63. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
  64. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
  65. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
  66. package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
  67. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
  68. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
  69. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
  70. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
  71. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
  72. package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
  73. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
  74. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
  75. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
  76. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
  77. package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
  78. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
  79. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
  80. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
  81. package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
  82. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
  83. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
  84. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
  85. package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
  86. package/i18n/catalogs/en-US.messages.json +33 -4
  87. package/locales/ar-sa/ar-sa.messages.json +33 -4
  88. package/locales/de-de/de-de.messages.json +33 -4
  89. package/locales/es-es/es-es.messages.json +33 -4
  90. package/locales/fr-fr/fr-fr.messages.json +33 -4
  91. package/locales/id-id/id-id.messages.json +33 -4
  92. package/locales/it-it/it-it.messages.json +33 -4
  93. package/locales/ja-jp/ja-jp.messages.json +33 -4
  94. package/locales/ko-kr/ko-kr.messages.json +33 -4
  95. package/locales/pt-br/pt-br.messages.json +33 -4
  96. package/locales/ru-ru/ru-ru.messages.json +33 -4
  97. package/locales/tr-tr/tr-tr.messages.json +33 -4
  98. package/locales/zh-cn/zh-cn.messages.json +33 -4
  99. package/locales/zh-tw/zh-tw.messages.json +33 -4
  100. package/package.json +2 -1
  101. package/styles.css +156 -0
  102. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
  103. package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
  104. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
  105. package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
  106. package/types/nanahoshi-mona-ui-button.d.ts +26 -3
  107. package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
  108. package/types/nanahoshi-mona-ui-card.d.ts +22 -6
  109. package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
  110. package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
  111. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
  112. package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
  113. package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
  114. package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
  115. package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
  116. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
  117. package/types/nanahoshi-mona-ui-common.d.ts +28 -2
  118. package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
  119. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
  120. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
  121. package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
  122. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
  123. package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
  124. package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
  125. package/types/nanahoshi-mona-ui-i18n.d.ts +38 -3
  126. package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
  127. package/types/nanahoshi-mona-ui-label.d.ts +17 -2
  128. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +29 -0
  129. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +29 -0
  130. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +29 -0
  131. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +29 -0
  132. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +29 -0
  133. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +29 -0
  134. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +29 -0
  135. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +29 -0
  136. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +29 -0
  137. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +29 -0
  138. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +29 -0
  139. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +29 -0
  140. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +29 -0
  141. package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
  142. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
  143. package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
  144. package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
  145. package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
  146. package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
  147. package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
  148. package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
  149. package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
  150. package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
  151. package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
  152. package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
  153. package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
  154. package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
  155. package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
  156. package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
  157. package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
  158. package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
  159. package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
  160. package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
  161. package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
  162. package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
  163. package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
@@ -1,2 +1,2 @@
1
- export { C as CellEditEvent, y as GRID_DEFAULT_MESSAGES, z as GridAddCommandDirective, A as GridAddEvent, B as GridCancelCommandDirective, D as GridCancelEvent, E as GridCellTemplateDirective, F as GridColumnComponent, H as GridColumnTitleTemplateDirective, I as GridCommandColumnComponent, J as GridComponent, K as GridContextMenuDirective, L as GridDetailTemplateDirective, M as GridEditCommandDirective, N as GridEditEvent, O as GridEditTemplateDirective, P as GridEditableDirective, Q as GridExportDirective, R as GridFilterableDirective, S as GridFooterTemplateDirective, T as GridGroupFooterTemplateDirective, U as GridGroupableDirective, V as GridHeaderTemplateDirective, W as GridNoDataTemplateDirective, X as GridRemoveCommandDirective, Y as GridRemoveEvent, Z as GridReorderableDirective, _ as GridResizableDirective, $ as GridRowReorderableDirective, a0 as GridSaveCommandDirective, a1 as GridSaveEvent, a2 as GridSelectableDirective, a3 as GridServerBindingDirective, a4 as GridSortableDirective, a5 as GridStatePersistenceDirective, a6 as GridToolbarTemplateDirective, a7 as GridVirtualScrollDirective, a8 as RowEditEvent, a9 as RowReorderEvent } from './nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs';
1
+ export { C as CellEditEvent, y as GRID_DEFAULT_MESSAGES, z as GridAddCommandDirective, A as GridAddEvent, B as GridCancelCommandDirective, D as GridCancelEvent, E as GridCellTemplateDirective, F as GridColumnComponent, H as GridColumnTitleTemplateDirective, I as GridCommandColumnComponent, J as GridComponent, K as GridContextMenuDirective, L as GridDetailTemplateDirective, M as GridEditCommandDirective, N as GridEditEvent, O as GridEditTemplateDirective, P as GridEditableDirective, Q as GridExportDirective, R as GridFilterableDirective, S as GridFooterTemplateDirective, T as GridGroupFooterTemplateDirective, U as GridGroupableDirective, V as GridHeaderTemplateDirective, W as GridNoDataTemplateDirective, X as GridRemoveCommandDirective, Y as GridRemoveEvent, Z as GridReorderableDirective, _ as GridResizableDirective, $ as GridRowReorderableDirective, a0 as GridSaveCommandDirective, a1 as GridSaveEvent, a2 as GridSelectableDirective, a3 as GridServerBindingDirective, a4 as GridSortableDirective, a5 as GridStatePersistenceDirective, a6 as GridToolbarTemplateDirective, a7 as GridVirtualScrollDirective, a8 as RowEditEvent, a9 as RowReorderEvent } from './nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs';
2
2
  //# sourceMappingURL=nanahoshi-mona-ui-grid.mjs.map
@@ -12,7 +12,8 @@ const MONA_MESSAGE_PARAMETERS = {
12
12
  clear: null
13
13
  },
14
14
  breadcrumb: {
15
- breadcrumb: null
15
+ breadcrumb: null,
16
+ showFullPath: null
16
17
  },
17
18
  buttonGroup: {
18
19
  buttonGroup: null
@@ -191,30 +192,47 @@ const MONA_MESSAGE_PARAMETERS = {
191
192
  removeLabel: [{ name: "label", optional: true, type: "string" }]
192
193
  },
193
194
  colorGradient: {
195
+ alpha: null,
196
+ alphaText: [{ name: "opacity", type: "number" }],
194
197
  apply: null,
198
+ blue: null,
195
199
  cancel: null,
196
200
  clearColor: null,
201
+ colorCopied: null,
202
+ colorGradient: null,
197
203
  copyAsHex: null,
198
204
  copyAsRgb: null,
199
205
  copyColor: null,
206
+ copyFailed: null,
200
207
  currentColor: null,
208
+ green: null,
209
+ hexColor: null,
210
+ hue: null,
201
211
  previousColor: null,
212
+ red: null,
213
+ saturation: null,
202
214
  saturationAndValue: null,
203
215
  saturationAndValueText: [
204
216
  { name: "saturation", type: "number" },
205
217
  { name: "value", type: "number" }
206
218
  ],
207
- switchColorMode: null
219
+ switchColorMode: null,
220
+ value: null
208
221
  },
209
222
  colorPalette: {
210
223
  color: [{ name: "color", type: "string" }],
211
- colorPalette: null
224
+ colorPalette: null,
225
+ namedColor: [
226
+ { name: "name", type: "string" },
227
+ { name: "color", type: "string" }
228
+ ]
212
229
  },
213
230
  colorPicker: {
214
231
  clearColor: null,
215
232
  colorGradientPicker: null,
216
233
  colorPalettePicker: null,
217
- colorPicker: null
234
+ colorPicker: null,
235
+ noColor: null
218
236
  },
219
237
  comboBox: {
220
238
  clear: null
@@ -424,6 +442,9 @@ const MONA_MESSAGE_PARAMETERS = {
424
442
  sortOrder: [{ name: "position", type: "number" }],
425
443
  toolbar: null
426
444
  },
445
+ label: {
446
+ optional: null
447
+ },
427
448
  list: {
428
449
  filterList: null,
429
450
  loading: null,
@@ -502,6 +523,9 @@ const MONA_MESSAGE_PARAMETERS = {
502
523
  { name: "total", type: "number" }
503
524
  ]
504
525
  },
526
+ progressBar: {
527
+ label: null
528
+ },
505
529
  rating: {
506
530
  notRated: null,
507
531
  valueText: [
@@ -517,6 +541,7 @@ const MONA_MESSAGE_PARAMETERS = {
517
541
  { name: "current", type: "number" },
518
542
  { name: "total", type: "number" }
519
543
  ],
544
+ pages: null,
520
545
  previousPage: null,
521
546
  scrollPagerNext: null,
522
547
  scrollPagerPrevious: null,
@@ -525,6 +550,10 @@ const MONA_MESSAGE_PARAMETERS = {
525
550
  sheet: {
526
551
  closeSheet: null
527
552
  },
553
+ sidebar: {
554
+ drawerLabel: null,
555
+ rail: null
556
+ },
528
557
  slider: {
529
558
  maximumValue: null,
530
559
  minimumValue: null,
@@ -547,6 +576,12 @@ const MONA_MESSAGE_PARAMETERS = {
547
576
  resizer: null
548
577
  },
549
578
  stepper: {
579
+ stepCompleted: null,
580
+ stepInvalid: null,
581
+ stepPosition: [
582
+ { name: "current", type: "number" },
583
+ { name: "total", type: "number" }
584
+ ],
550
585
  stepProgress: null,
551
586
  stepper: null
552
587
  },
@@ -125,11 +125,11 @@ class FilterInputComponent {
125
125
  });
126
126
  }
127
127
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: FilterInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
128
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: FilterInputComponent, isStandalone: true, selector: "mona-filter-input", inputs: { activeDescendant: { classPropertyName: "activeDescendant", publicName: "activeDescendant", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, ngImport: i0, template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n", dependencies: [{ kind: "component", type: LucideSearch, selector: "svg[lucideSearch]" }, { kind: "component", type: TextBoxComponent, selector: "mona-text-box", inputs: ["aria-describedby", "aria-label", "aria-labelledby", "clearButton", "disabled", "inputAttributes", "inputClass", "inputId", "inputStyle", "invalid", "maxLength", "minLength", "name", "placeholder", "readonly", "required", "rounded", "size", "touched", "type", "class", "value"], outputs: ["inputBlur", "inputFocus", "touch", "valueChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "ng-template[monaTextBoxPrefixTemplate]" }] }); }
128
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: FilterInputComponent, isStandalone: true, selector: "mona-filter-input", inputs: { activeDescendant: { classPropertyName: "activeDescendant", publicName: "activeDescendant", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, autoFocus: { classPropertyName: "autoFocus", publicName: "autoFocus", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null }, debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange", inputBlur: "inputBlur", inputFocus: "inputFocus" }, ngImport: i0, template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none focus-visible:outline-hidden shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n", dependencies: [{ kind: "component", type: LucideSearch, selector: "svg[lucideSearch]" }, { kind: "component", type: TextBoxComponent, selector: "mona-text-box", inputs: ["aria-describedby", "aria-label", "aria-labelledby", "clearButton", "disabled", "inputAttributes", "inputClass", "inputId", "inputStyle", "invalid", "maxLength", "minLength", "name", "placeholder", "readonly", "required", "rounded", "size", "touched", "type", "class", "value"], outputs: ["inputBlur", "inputFocus", "touch", "valueChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TextBoxPrefixTemplateDirective, selector: "ng-template[monaTextBoxPrefixTemplate]" }] }); }
129
129
  }
130
130
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: FilterInputComponent, decorators: [{
131
131
  type: Component,
132
- args: [{ selector: "mona-filter-input", imports: [LucideSearch, TextBoxComponent, FormsModule, TextBoxPrefixTemplateDirective], template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n" }]
132
+ args: [{ selector: "mona-filter-input", imports: [LucideSearch, TextBoxComponent, FormsModule, TextBoxPrefixTemplateDirective], template: "<mona-text-box\n [ngModel]=\"filterText()\"\n [clearButton]=\"true\"\n [placeholder]=\"placeholder()\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"inputBlur.emit($event)\"\n [inputAttributes]=\"inputAttributes()\"\n [size]=\"size()\"\n class=\"outline-none focus-visible:outline-hidden shadow-none focus-within:ring-1 focus-within:ring-primary/40\"\n (ngModelChange)=\"filter$.next($event)\">\n <ng-template monaTextBoxPrefixTemplate>\n <div class=\"h-full flex items-center justify-center ps-2\">\n <svg lucideSearch [size]=\"16\" aria-hidden=\"true\"></svg>\n </div>\n </ng-template>\n</mona-text-box>\n" }]
133
133
  }], ctorParameters: () => [], propDecorators: { activeDescendant: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeDescendant", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocus", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }], debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
134
134
 
135
135
  /*
@@ -10,7 +10,7 @@ const indicatorIconHostThemeVariants = cva(`h-full aspect-square flex-none inlin
10
10
  true: `
11
11
  text-muted-foreground
12
12
  hover:text-foreground
13
- focus-visible:ring-2 focus-visible:ring-focus-indicator/35 focus-visible:outline-none
13
+ focus-visible:ring-2 focus-visible:ring-focus-indicator/35 focus-visible:outline-hidden
14
14
  `,
15
15
  false: ""
16
16
  },
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
4
4
  import { Directive, computed, signal, inject, linkedSignal, Injectable, input, ElementRef, Component, DestroyRef, viewChild, contentChild, TemplateRef, booleanAttribute, output, effect, untracked, afterRenderEffect, afterNextRender, InjectionToken } from '@angular/core';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
  import { MonaI18nService } from '@nanahoshi/mona-ui/i18n';
7
- import { createElementControlId, isTypeaheadKey, setupTypeahead } from '@nanahoshi/mona-ui/internal';
7
+ import { themeSelectionBarClasses, createElementControlId, isTypeaheadKey, setupTypeahead } from '@nanahoshi/mona-ui/internal';
8
8
  import { FilterInputComponent } from '@nanahoshi/mona-ui/internal/filter-input';
9
9
  import { PlaceholderComponent } from '@nanahoshi/mona-ui/placeholder';
10
10
  import { Subject, ReplaySubject, fromEvent, asyncScheduler, filter, tap } from 'rxjs';
@@ -974,8 +974,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
974
974
  type: Injectable
975
975
  }] });
976
976
 
977
- const listThemeVariants = cva(`flex h-full flex-col overflow-hidden outline-none`);
978
- const listInnerListThemeVariants = cva(`m-0 h-full list-none overflow-x-hidden overflow-y-auto p-0 outline-none [scrollbar-color:var(--color-scrollbar-thumb)_var(--color-scrollbar-track)] [scrollbar-width:thin]`);
977
+ const listThemeVariants = cva(`flex h-full flex-col overflow-hidden outline-none focus-visible:outline-hidden`);
978
+ const listInnerListThemeVariants = cva(`m-0 h-full list-none overflow-x-hidden overflow-y-auto p-0 outline-none focus-visible:outline-hidden [scrollbar-color:var(--color-scrollbar-thumb)_var(--color-scrollbar-track)] [scrollbar-width:thin]`);
979
979
  const listGroupHeaderThemeVariants = cva(``, {
980
980
  variants: {
981
981
  hasTemplate: {
@@ -991,7 +991,7 @@ const listGroupHeaderTextThemeVariants = cva(`select-none text-muted-foreground`
991
991
  });
992
992
  const listItemBaseThemeVariants = cva(`flex h-full w-full items-center gap-2`);
993
993
  // Focus and the active option share the grid's ring: solid 2px, inset, at full strength.
994
- const listItemContentThemeVariants = cva(`relative flex cursor-default select-none items-center px-3 py-1 text-foreground outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-focus-indicator`, {
994
+ const listItemContentThemeVariants = cva(`relative flex cursor-default select-none items-center px-3 py-1 text-foreground outline-none focus-visible:outline-hidden focus-visible:inset-ring-2 focus-visible:inset-ring-focus-indicator`, {
995
995
  variants: {
996
996
  checkboxes: { true: "gap-2", false: "" },
997
997
  selectable: { true: "hover:bg-hover focus:bg-hover", false: "" },
@@ -1014,7 +1014,7 @@ const listItemContentThemeVariants = cva(`relative flex cursor-default select-no
1014
1014
  {
1015
1015
  selected: true,
1016
1016
  checkboxes: false,
1017
- class: "bg-(--color-selected) text-(--color-selected-foreground) hover:bg-(--color-selected-hover) hover:text-(--color-selected-hover-foreground) focus:bg-(--color-selected-focus) focus:text-(--color-selected-focus-foreground)"
1017
+ class: `bg-(--color-selected) text-(--color-selected-foreground) hover:bg-(--color-selected-hover) hover:text-(--color-selected-hover-foreground) focus:bg-(--color-selected-focus) focus:text-(--color-selected-focus-foreground) ${themeSelectionBarClasses}`
1018
1018
  },
1019
1019
  {
1020
1020
  highlighted: true,
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
3
3
  import { Directive, signal, computed, inject, DestroyRef, effect, untracked, Injectable, Pipe, input, Component, DOCUMENT, NgZone, ElementRef, afterRenderEffect, Injector, contentChild, TemplateRef, afterNextRender } from '@angular/core';
4
4
  import { toObservable, toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { formatNumber, MonaI18nService, injectComponentDirection } from '@nanahoshi/mona-ui/i18n';
6
- import { themeOverlaySurfaceClasses, isTypeaheadKey, setupTypeahead } from '@nanahoshi/mona-ui/internal';
6
+ import { themeSelectionBarClasses, themeOverlaySurfaceClasses, isTypeaheadKey, setupTypeahead } from '@nanahoshi/mona-ui/internal';
7
7
  import { Subject, BehaviorSubject, ReplaySubject, distinctUntilChanged, Observable, take, filter, tap, map, asapScheduler, fromEvent, switchMap, merge, takeWhile } from 'rxjs';
8
8
  import { PreventableEvent } from '@nanahoshi/mona-ui/common';
9
9
  import { ImmutableSet, List, from, sequenceEqual, EnumerableSet, forEach } from '@mirei/ts-collections';
@@ -1551,11 +1551,11 @@ const subTreeListThemeVariants = cva(`
1551
1551
  flex list-none flex-col
1552
1552
  `);
1553
1553
  const subTreeListItemThemeVariants = cva(`
1554
- relative overflow-hidden outline-none
1554
+ relative overflow-hidden outline-none focus-visible:outline-hidden
1555
1555
  ps-6
1556
1556
  `);
1557
1557
  const treeBaseThemeVariants = cva(`
1558
- relative outline-none select-none
1558
+ relative outline-none focus-visible:outline-hidden select-none
1559
1559
  text-base
1560
1560
  `, {
1561
1561
  variants: {
@@ -1569,14 +1569,14 @@ const treeBaseThemeVariants = cva(`
1569
1569
  const treeDropHintBaseThemeVariants = cva(`
1570
1570
  fixed z-1 h-0.5 w-10
1571
1571
  pointer-events-none
1572
- bg-primary opacity-80
1572
+ bg-[var(--mona-indicator-color,var(--color-primary))] opacity-80
1573
1573
  `);
1574
1574
  const treeDropHintIconThemeVariants = cva(`
1575
1575
  absolute flex items-center justify-center
1576
1576
  -top-2.25 -start-3.5 text-xl rtl:rotate-180
1577
1577
  `);
1578
1578
  const treeNodeBaseThemeVariants = cva(`
1579
- cursor-default px-2 py-1 text-foreground
1579
+ relative cursor-default px-2 py-1 text-foreground
1580
1580
  `, {
1581
1581
  variants: {
1582
1582
  disabled: {
@@ -1588,7 +1588,7 @@ const treeNodeBaseThemeVariants = cva(`
1588
1588
  false: ""
1589
1589
  },
1590
1590
  selected: {
1591
- true: "bg-active text-foreground",
1591
+ true: `bg-active text-foreground ${themeSelectionBarClasses}`,
1592
1592
  false: ""
1593
1593
  }
1594
1594
  },
@@ -2034,7 +2034,7 @@ class SubTreeComponent {
2034
2034
  element.focus();
2035
2035
  }
2036
2036
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SubTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2037
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SubTreeComponent, isStandalone: true, selector: "mona-sub-tree", inputs: { depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: true, transformFunction: null }, nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, parent: { classPropertyName: "parent", publicName: "parent", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ul\n [class]=\"listClass()\"\n [attr.role]=\"parent() ? 'group' : 'none'\"\n cdkDropList\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onNodeDrop($event)\">\n @for (node of visibleNodes(); track node.uid) {\n <li\n [attr.id]=\"node.uid | treeNodeElementId\"\n [attr.data-uid]=\"node.uid\"\n [class]=\"listItemClass()\"\n [tabindex]=\"-1\"\n role=\"treeitem\"\n [attr.aria-level]=\"depth() + 1\"\n [attr.aria-setsize]=\"visibleNodes().length\"\n [attr.aria-posinset]=\"$index + 1\"\n [attr.aria-labelledby]=\"(node.uid | treeNodeElementId) + '-label'\"\n [attr.aria-describedby]=\"node.loadFailed() ? (node.uid | treeNodeElementId) + '-error' : null\"\n [attr.aria-expanded]=\"nodeComponent.expandable() ? nodeComponent.expanded() : null\"\n [attr.aria-busy]=\"node.loading() || null\"\n [attr.aria-selected]=\"selectionReported() ? nodeComponent.selected() : null\"\n [attr.aria-disabled]=\"nodeComponent.disabled() ? true : null\"\n [attr.aria-checked]=\"\n nodeComponent.checkable() ? (nodeComponent.indeterminate() ? 'mixed' : nodeComponent.checked()) : null\n \"\n (focus)=\"treeService.navigatedNode.set(node)\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!treeService.draggableOptions().enabled\"\n (cdkDragStarted)=\"onNodeDragStart($event)\"\n (cdkDragEnded)=\"onNodeDragEnd($event)\"\n (cdkDragMoved)=\"onNodeDragMove($event, node)\">\n <div [class]=\"nodeContainerClass()\">\n @if (treeService.expandableOptions().enabled && nodeComponent.expandable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [class]=\"nodeExpanderClass()\"\n [class.mona-disabled]=\"nodeComponent.disabled()\"\n [disabled]=\"nodeComponent.disabled()\"\n [attr.aria-label]=\"expanderLabel(node, nodeComponent.expanded(), nodeComponent.nodeText())\"\n (click)=\"onExpandStateChange(node)\">\n @if (node.loading()) {\n <svg lucideLoaderCircle [size]=\"16\" aria-hidden=\"true\" class=\"animate-spin\"></svg>\n } @else if (node.loadFailed()) {\n <svg lucideCircleAlert [size]=\"16\" aria-hidden=\"true\" class=\"text-error\"></svg>\n } @else if (nodeComponent.expanded()) {\n <svg lucideChevronDown [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" aria-hidden=\"true\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n }\n @if (nodeComponent.checkable()) {\n <mona-check-box\n aria-hidden=\"true\"\n [tabIndex]=\"-1\"\n [disabled]=\"nodeComponent.disabled()\"\n [indeterminate]=\"nodeComponent.indeterminate()\"\n [ngModel]=\"nodeComponent.checked()\"\n (click)=\"nodeComponent.checkboxClick$.next($event)\"\n (ngModelChange)=\"nodeComponent.checkboxCheck$.next($event)\"></mona-check-box>\n }\n <mona-tree-node\n [id]=\"(node.uid | treeNodeElementId) + '-label'\"\n [node]=\"node\"\n [depth]=\"depth()\"\n #nodeComponent></mona-tree-node>\n @if (node.loadFailed()) {\n <span [id]=\"(node.uid | treeNodeElementId) + '-error'\" class=\"sr-only\">{{\n messages().loadError(nodeComponent.nodeText())\n }}</span>\n }\n </div>\n @if (node.children().length > 0 && nodeComponent.expanded()) {\n <div\n class=\"grid overflow-hidden\"\n [animate.enter]=\"nodeExpandEnterClass()\"\n [animate.leave]=\"nodeExpandLeaveClass()\">\n <div class=\"min-h-0 overflow-hidden\">\n <mona-sub-tree [nodes]=\"node.children()\" [depth]=\"depth() + 1\" [parent]=\"node\"></mona-sub-tree>\n </div>\n </div>\n }\n @if (!nodeComponent.disabled()) {\n <div *cdkDragPreview [class]=\"nodeDraggingClass()\">\n <span>\n @switch (treeService.dropPositionSignal()?.position) {\n @case (\"before\") {\n @if (treeService.dropAllowed()) {\n <svg lucideArrowUp [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n @case (\"after\") {\n @if (treeService.dropAllowed()) {\n <svg lucideArrowDown [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n @case (\"inside\") {\n <svg lucidePlus [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n @default {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n </span>\n <span>{{ nodeComponent.nodeText() }}</span>\n </div>\n } @else {\n <div *cdkDragPreview [class]=\"nodeDraggingClass()\"></div>\n }\n </li>\n }\n</ul>\n", styles: [".mona-tree-node-expand-enter{animation:mona-tree-node-expand-in .15s ease-out}.mona-tree-node-expand-leave{animation:mona-tree-node-expand-out .15s ease-out}@keyframes mona-tree-node-expand-in{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}@keyframes mona-tree-node-expand-out{0%{grid-template-rows:1fr;opacity:1}to{grid-template-rows:0fr;opacity:0}}@media(prefers-reduced-motion:reduce){.mona-tree-node-expand-enter,.mona-tree-node-expand-leave{animation-duration:1ms}}\n"], dependencies: [{ kind: "component", type: SubTreeComponent, selector: "mona-sub-tree", inputs: ["depth", "nodes", "parent"] }, { kind: "component", type: LucideArrowDown, selector: "svg[lucideArrowDown]" }, { kind: "component", type: LucideArrowUp, selector: "svg[lucideArrowUp]" }, { kind: "component", type: LucideBan, selector: "svg[lucideBan]" }, { kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }, { kind: "component", type: LucideChevronRight, selector: "svg[lucideChevronRight]" }, { kind: "component", type: LucideCircleAlert, selector: "svg[lucideCircleAlert], svg[lucideAlertCircle]" }, { kind: "component", type: LucideLoaderCircle, selector: "svg[lucideLoaderCircle], svg[lucideLoader2]" }, { kind: "component", type: LucidePlus, selector: "svg[lucidePlus]" }, { kind: "component", type: TreeNodeComponent, selector: "mona-tree-node", inputs: ["depth", "node"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: ["data", "matchSize"] }, { kind: "component", type: CheckBoxComponent, selector: "mona-check-box", inputs: ["aria-describedby", "aria-label", "checked", "disabled", "indeterminate", "invalid", "label", "labelPosition", "labelSize", "required", "rounded", "tabIndex", "touched", "class"], outputs: ["checkedChange", "inputBlur", "inputChange", "inputFocus", "touch"] }, { kind: "pipe", type: TreeNodeElementIdPipe, name: "treeNodeElementId" }] }); }
2037
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SubTreeComponent, isStandalone: true, selector: "mona-sub-tree", inputs: { depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: true, transformFunction: null }, nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, parent: { classPropertyName: "parent", publicName: "parent", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<ul\n [class]=\"listClass()\"\n [attr.role]=\"parent() ? 'group' : 'none'\"\n cdkDropList\n [cdkDropListSortingDisabled]=\"true\"\n (cdkDropListDropped)=\"onNodeDrop($event)\">\n @for (node of visibleNodes(); track node.uid) {\n <li\n [attr.id]=\"node.uid | treeNodeElementId\"\n [attr.data-uid]=\"node.uid\"\n [class]=\"listItemClass()\"\n [tabindex]=\"-1\"\n role=\"treeitem\"\n [attr.aria-level]=\"depth() + 1\"\n [attr.aria-setsize]=\"visibleNodes().length\"\n [attr.aria-posinset]=\"$index + 1\"\n [attr.aria-labelledby]=\"(node.uid | treeNodeElementId) + '-label'\"\n [attr.aria-describedby]=\"node.loadFailed() ? (node.uid | treeNodeElementId) + '-error' : null\"\n [attr.aria-expanded]=\"nodeComponent.expandable() ? nodeComponent.expanded() : null\"\n [attr.aria-busy]=\"node.loading() || null\"\n [attr.aria-selected]=\"selectionReported() ? nodeComponent.selected() : null\"\n [attr.aria-disabled]=\"nodeComponent.disabled() ? true : null\"\n [attr.aria-checked]=\"\n nodeComponent.checkable() ? (nodeComponent.indeterminate() ? 'mixed' : nodeComponent.checked()) : null\n \"\n (focus)=\"treeService.navigatedNode.set(node)\"\n cdkDrag\n [cdkDragData]=\"node\"\n [cdkDragDisabled]=\"!treeService.draggableOptions().enabled\"\n (cdkDragStarted)=\"onNodeDragStart($event)\"\n (cdkDragEnded)=\"onNodeDragEnd($event)\"\n (cdkDragMoved)=\"onNodeDragMove($event, node)\">\n <div [class]=\"nodeContainerClass()\">\n @if (treeService.expandableOptions().enabled && nodeComponent.expandable()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n [class]=\"nodeExpanderClass()\"\n [class.mona-disabled]=\"nodeComponent.disabled()\"\n [disabled]=\"nodeComponent.disabled()\"\n [attr.aria-label]=\"expanderLabel(node, nodeComponent.expanded(), nodeComponent.nodeText())\"\n (click)=\"onExpandStateChange(node)\">\n @if (node.loading()) {\n <svg lucideLoaderCircle [size]=\"16\" aria-hidden=\"true\" class=\"animate-spin\"></svg>\n } @else if (node.loadFailed()) {\n <svg lucideCircleAlert [size]=\"16\" aria-hidden=\"true\" class=\"text-error\"></svg>\n } @else if (nodeComponent.expanded()) {\n <svg lucideChevronDown [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideChevronRight [size]=\"16\" aria-hidden=\"true\" class=\"rtl:rotate-180\"></svg>\n }\n </button>\n }\n @if (nodeComponent.checkable()) {\n <mona-check-box\n aria-hidden=\"true\"\n [tabIndex]=\"-1\"\n [disabled]=\"nodeComponent.disabled()\"\n [indeterminate]=\"nodeComponent.indeterminate()\"\n [ngModel]=\"nodeComponent.checked()\"\n (click)=\"nodeComponent.checkboxClick$.next($event)\"\n (ngModelChange)=\"nodeComponent.checkboxCheck$.next($event)\"></mona-check-box>\n }\n <mona-tree-node\n [id]=\"(node.uid | treeNodeElementId) + '-label'\"\n [node]=\"node\"\n [depth]=\"depth()\"\n #nodeComponent></mona-tree-node>\n @if (node.loadFailed()) {\n <span [id]=\"(node.uid | treeNodeElementId) + '-error'\" class=\"sr-only\">{{\n messages().loadError(nodeComponent.nodeText())\n }}</span>\n }\n </div>\n @if (node.children().length > 0 && nodeComponent.expanded()) {\n <div\n class=\"grid overflow-hidden\"\n [animate.enter]=\"nodeExpandEnterClass()\"\n [animate.leave]=\"nodeExpandLeaveClass()\">\n <div class=\"min-h-0 overflow-hidden\">\n <mona-sub-tree [nodes]=\"node.children()\" [depth]=\"depth() + 1\" [parent]=\"node\"></mona-sub-tree>\n </div>\n </div>\n }\n @if (!nodeComponent.disabled()) {\n <div *cdkDragPreview [class]=\"nodeDraggingClass()\">\n <span>\n @switch (treeService.dropPositionSignal()?.position) {\n @case (\"before\") {\n @if (treeService.dropAllowed()) {\n <svg lucideArrowUp [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n @case (\"after\") {\n @if (treeService.dropAllowed()) {\n <svg lucideArrowDown [size]=\"16\" aria-hidden=\"true\"></svg>\n } @else {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n @case (\"inside\") {\n <svg lucidePlus [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n @default {\n <svg lucideBan [size]=\"16\" aria-hidden=\"true\"></svg>\n }\n }\n </span>\n <span>{{ nodeComponent.nodeText() }}</span>\n </div>\n } @else {\n <div *cdkDragPreview [class]=\"nodeDraggingClass()\"></div>\n }\n </li>\n }\n</ul>\n", styles: [".mona-tree-node-expand-enter{animation:mona-tree-node-expand-in .15s ease-out}.mona-tree-node-expand-leave{animation:mona-tree-node-expand-out .15s ease-out}@keyframes mona-tree-node-expand-in{0%{grid-template-rows:0fr;opacity:0}to{grid-template-rows:1fr;opacity:1}}@keyframes mona-tree-node-expand-out{0%{grid-template-rows:1fr;opacity:1}to{grid-template-rows:0fr;opacity:0}}@media(prefers-reduced-motion:reduce){.mona-tree-node-expand-enter,.mona-tree-node-expand-leave{animation-duration:1ms}}\n"], dependencies: [{ kind: "component", type: SubTreeComponent, selector: "mona-sub-tree", inputs: ["depth", "nodes", "parent"] }, { kind: "component", type: LucideArrowDown, selector: "svg[lucideArrowDown]" }, { kind: "component", type: LucideArrowUp, selector: "svg[lucideArrowUp]" }, { kind: "component", type: LucideBan, selector: "svg[lucideBan]" }, { kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }, { kind: "component", type: LucideChevronRight, selector: "svg[lucideChevronRight]" }, { kind: "component", type: LucideCircleAlert, selector: "svg[lucideCircleAlert], svg[lucideAlertCircle]" }, { kind: "component", type: LucideLoaderCircle, selector: "svg[lucideLoaderCircle], svg[lucideLoader2]" }, { kind: "component", type: LucidePlus, selector: "svg[lucidePlus]" }, { kind: "component", type: TreeNodeComponent, selector: "mona-tree-node", inputs: ["depth", "node"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: ["data", "matchSize"] }, { kind: "component", type: CheckBoxComponent, selector: "mona-check-box", inputs: ["aria-describedby", "aria-label", "aria-labelledby", "checked", "disabled", "indeterminate", "inputId", "invalid", "label", "labelPosition", "labelSize", "name", "readonly", "required", "rounded", "tabIndex", "touched", "class"], outputs: ["checkedChange", "indeterminateChange", "inputBlur", "inputChange", "inputFocus", "touch"] }, { kind: "pipe", type: TreeNodeElementIdPipe, name: "treeNodeElementId" }] }); }
2038
2038
  }
2039
2039
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SubTreeComponent, decorators: [{
2040
2040
  type: Component,
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Renderer2, input, effect, Directive, DOCUMENT, signal, afterEveryRender, untracked } from '@angular/core';
2
+ import { inject, ElementRef, Renderer2, input, effect, Directive, InjectionToken, computed, signal, DestroyRef, DOCUMENT, afterEveryRender, untracked } from '@angular/core';
3
3
  import { GlobalPositionStrategy, ConnectionPositionPair } from '@angular/cdk/overlay';
4
4
  import { forEach } from '@mirei/ts-collections';
5
5
  import { Observable, timer, take, debounceTime, map, merge, scan, filter } from 'rxjs';
@@ -50,12 +50,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
50
50
  const isValidHex = (hex) => {
51
51
  return /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(hex);
52
52
  };
53
- const isValidHsla = (hslaText) => {
54
- return /^hsla?\(\s*(\d{1,2}|[1-2]\d{2}|3[0-5]\d|360)\s*,\s*(\d{1,2}|100)%\s*,\s*(\d{1,2}|100)%\s*(?:,\s*(0|1|0?\.\d+))?\s*\)$/.test(hslaText);
55
- };
56
- const isValidRgb = (rgbText) => {
57
- return /^rgba?\(\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\s*,\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\s*,\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/.test(rgbText);
58
- };
59
53
 
60
54
  const hex2rgba = (hex) => {
61
55
  let r = 0, g = 0, b = 0, a = 255;
@@ -154,14 +148,115 @@ const rgba2hsla = (red, green, blue, alpha) => {
154
148
  }
155
149
  h /= 6;
156
150
  }
151
+ // One decimal, because whole percentages can't bring most colors back: #123456 would return as #123354.
157
152
  return {
158
- h: Math.round(h * 360),
159
- s: Math.round(s * 100),
160
- l: Math.round(l * 100),
153
+ h: Math.round(h * 3600) / 10,
154
+ s: Math.round(s * 1000) / 10,
155
+ l: Math.round(l * 1000) / 10,
161
156
  a: alpha ?? 255
162
157
  };
163
158
  };
164
159
 
160
+ const NUMBER = "[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?";
161
+ const SEPARATOR = "(?:\\s*,\\s*|\\s+)";
162
+ const ALPHA = `(?:\\s*[,/]\\s*(${NUMBER}%?))?`;
163
+ const RGB_PATTERN = new RegExp(`^rgba?\\(\\s*(${NUMBER}%?)${SEPARATOR}(${NUMBER}%?)${SEPARATOR}(${NUMBER}%?)${ALPHA}\\s*\\)$`, "i");
164
+ const HSL_PATTERN = new RegExp(`^hsla?\\(\\s*(${NUMBER})(?:deg)?${SEPARATOR}(${NUMBER})%?${SEPARATOR}(${NUMBER})%?${ALPHA}\\s*\\)$`, "i");
165
+ const clamp = (value, max) => Math.min(max, Math.max(0, value));
166
+ const parseAlpha = (text) => {
167
+ if (text === undefined) {
168
+ return 255;
169
+ }
170
+ const opacity = text.endsWith("%") ? parseFloat(text) / 100 : parseFloat(text);
171
+ return Math.round(clamp(opacity, 1) * 255);
172
+ };
173
+ const parseRgbChannel = (text) => {
174
+ const channel = text.endsWith("%") ? (parseFloat(text) / 100) * 255 : parseFloat(text);
175
+ return Math.round(clamp(channel, 255));
176
+ };
177
+ const parseFunctionalColor = (color) => {
178
+ const rgb = RGB_PATTERN.exec(color);
179
+ if (rgb) {
180
+ return {
181
+ r: parseRgbChannel(rgb[1]),
182
+ g: parseRgbChannel(rgb[2]),
183
+ b: parseRgbChannel(rgb[3]),
184
+ a: parseAlpha(rgb[4])
185
+ };
186
+ }
187
+ const hsl = HSL_PATTERN.exec(color);
188
+ if (hsl) {
189
+ const hue = ((parseFloat(hsl[1]) % 360) + 360) % 360;
190
+ const hsv = hsla2hsva(hue, clamp(parseFloat(hsl[2]), 100), clamp(parseFloat(hsl[3]), 100), parseAlpha(hsl[4]));
191
+ return hsva2rgba(hsv.h, hsv.s, hsv.v, hsv.a);
192
+ }
193
+ return null;
194
+ };
195
+ /**
196
+ * Asks the browser about everything else it can paint: color names, `transparent`, `oklch()`, `color-mix()` and so on.
197
+ * A color the browser rejects leaves `fillStyle` as it was, so it reads differently from two starting points.
198
+ */
199
+ const readThroughCanvas = (color, document) => {
200
+ const context = document.createElement("canvas").getContext?.("2d", { willReadFrequently: true });
201
+ if (!context) {
202
+ return null;
203
+ }
204
+ context.fillStyle = "#000000";
205
+ context.fillStyle = color;
206
+ const fromBlack = context.fillStyle;
207
+ context.fillStyle = "#ffffff";
208
+ context.fillStyle = color;
209
+ if (typeof fromBlack !== "string" || context.fillStyle !== fromBlack) {
210
+ return null;
211
+ }
212
+ if (isValidHex(fromBlack)) {
213
+ return hex2rgba(fromBlack);
214
+ }
215
+ const legacy = parseFunctionalColor(fromBlack);
216
+ if (legacy) {
217
+ return legacy;
218
+ }
219
+ // Wider color spaces keep their own notation in `fillStyle`, so read what actually gets painted.
220
+ context.clearRect(0, 0, 1, 1);
221
+ context.fillRect(0, 0, 1, 1);
222
+ const [r, g, b, a] = context.getImageData(0, 0, 1, 1).data;
223
+ return { r, g, b, a };
224
+ };
225
+ /**
226
+ * Reads a CSS color. Hex, `rgb()` and `hsl()` in both their comma and space forms need nothing but the text; with a
227
+ * `document`, anything else the browser can paint is read through a canvas.
228
+ * @returns The channels, each from 0 to 255, or null when the text isn't a color.
229
+ */
230
+ const parseColor = (text, document) => {
231
+ const color = text.trim();
232
+ if (!color) {
233
+ return null;
234
+ }
235
+ if (isValidHex(color)) {
236
+ return hex2rgba(color);
237
+ }
238
+ return parseFunctionalColor(color) ?? (document ? readThroughCanvas(color, document) : null);
239
+ };
240
+ /**
241
+ * A key that is equal for two spellings of the same color, such as `#ABC`, `#aabbcc` and `rgb(170, 187, 204)`. Text that
242
+ * can't be read as a color only compares equal to itself, ignoring case.
243
+ */
244
+ const colorKey = (text, document) => {
245
+ const color = parseColor(text, document);
246
+ return color ? rgba2hex(color.r, color.g, color.b, color.a) : text.trim().toLowerCase();
247
+ };
248
+ /**
249
+ * The shortest opacity, as CSS writes it, that still reads back as the same 8-bit alpha. A saved `0.5` stays `0.5`.
250
+ */
251
+ const formatAlpha = (alpha) => {
252
+ const short = Math.round((alpha / 255) * 100) / 100;
253
+ return Math.round(short * 255) === alpha ? short : Math.round((alpha / 255) * 1000) / 1000;
254
+ };
255
+
256
+ /**
257
+ * Hue, saturation and value are left unrounded, so converting to RGB and back returns the same color. Round them for
258
+ * display only.
259
+ */
165
260
  const rgba2hsva = (r, g, b, a) => {
166
261
  if (r == null || g == null || b == null) {
167
262
  return { h: 0, s: 0, v: 0, a: 255 };
@@ -188,39 +283,13 @@ const rgba2hsva = (r, g, b, a) => {
188
283
  h /= 6;
189
284
  }
190
285
  return {
191
- h: Math.round(h * 360),
192
- s: Math.round(s * 100),
193
- v: Math.round(v * 100),
286
+ h: h * 360,
287
+ s: s * 100,
288
+ v: v * 100,
194
289
  a: a ?? 255
195
290
  };
196
291
  };
197
292
 
198
- const string2Hsla = (hslText) => {
199
- const match = RegExp(/^hsla?\(\s*(\d{1,2}|[1-2]\d{2}|3[0-5]\d|360)\s*,\s*(\d{1,2}|100)%\s*,\s*(\d{1,2}|100)%\s*(?:,\s*(0|1|0?\.\d+))?\s*\)$/).exec(hslText);
200
- if (match) {
201
- return {
202
- h: parseInt(match[1]),
203
- s: parseInt(match[2]),
204
- l: parseInt(match[3]),
205
- a: match[4] ? Math.round(parseFloat(match[4]) * 255) : 255
206
- };
207
- }
208
- return { h: 0, s: 0, l: 0, a: 255 };
209
- };
210
-
211
- const string2rgba = (rgbText) => {
212
- const match = RegExp(/^rgba?\(\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\s*,\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])\s*,\s*(\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/).exec(rgbText);
213
- if (match) {
214
- return {
215
- r: parseInt(match[1]),
216
- g: parseInt(match[2]),
217
- b: parseInt(match[3]),
218
- a: match[4] ? Math.round(parseFloat(match[4]) * 255) : 255
219
- };
220
- }
221
- return { r: 0, g: 0, b: 0, a: 255 };
222
- };
223
-
224
293
  const tokensOf = (element, attribute) => (element.getAttribute(attribute) ?? "").split(/\s+/).filter(token => token !== "");
225
294
  /**
226
295
  * Adds `id` to an id-list attribute such as `aria-describedby`, keeping the ids already there.
@@ -271,6 +340,53 @@ const createElementControlId = (level = 0, length = 7) => {
271
340
  return `${prefix}${hex}`;
272
341
  };
273
342
 
343
+ /**
344
+ * Whether the enclosing `mona-fieldset` is disabled. A native `<fieldset disabled>` reaches only native controls,
345
+ * so the fieldset also provides this for controls that draw their own focusable element.
346
+ */
347
+ const MONA_FIELDSET_DISABLED = new InjectionToken("MONA_FIELDSET_DISABLED");
348
+ /**
349
+ * Combines a control's own `disabled` with the enclosing `mona-fieldset`. Call it from an injection context.
350
+ *
351
+ * @param disabled Reads the control's own disabled state. It runs lazily, so it may read an input declared later.
352
+ */
353
+ function injectEffectiveDisabled(disabled) {
354
+ const fieldsetDisabled = inject(MONA_FIELDSET_DISABLED, { optional: true });
355
+ return computed(() => disabled() || (fieldsetDisabled?.() ?? false));
356
+ }
357
+
358
+ /**
359
+ * Provided by `mona-label` to the content it wraps.
360
+ */
361
+ const MONA_LABEL = new InjectionToken("MONA_LABEL");
362
+ /**
363
+ * Connects a control to a `mona-label` or `label[monaLabel]` that names it, by wrapping it or through `[for]`.
364
+ */
365
+ function injectLabelAssociation(options) {
366
+ const context = options.wrapped === false ? null : inject(MONA_LABEL, { optional: true });
367
+ const fromTarget = signal(null, /* @ts-ignore */
368
+ ...(ngDevMode ? [{ debugName: "fromTarget" }] : /* istanbul ignore next */ []));
369
+ const { activate } = options;
370
+ if (context && activate) {
371
+ const element = inject(ElementRef).nativeElement;
372
+ const named = () => !!options.ariaLabel() || !!options.ariaLabelledBy();
373
+ inject(DestroyRef).onDestroy(context.register({ activate, element, named }));
374
+ }
375
+ return {
376
+ labelledBy: computed(() => {
377
+ const explicit = options.ariaLabelledBy();
378
+ if (explicit) {
379
+ return explicit;
380
+ }
381
+ if (options.ariaLabel()) {
382
+ return null;
383
+ }
384
+ return fromTarget() ?? context?.captionId() ?? null;
385
+ }),
386
+ setLabelledBy: id => fromTarget.set(id)
387
+ };
388
+ }
389
+
274
390
  /**
275
391
  * Whether a closing popup may move focus back to its trigger without taking it from somewhere the user put it.
276
392
  * That holds while focus is on the page itself or inside one of `containers`, usually the trigger and the popup.
@@ -304,25 +420,31 @@ function focusElement(host, element) {
304
420
  * last, so closing one of two stacked modals leaves the page behind the other one inert.
305
421
  */
306
422
  const inertCounts = new WeakMap();
307
- /** Elements left alone: they hold no content, or announce for everyone (live regions, CDK's live announcer). */
423
+ /**
424
+ * Elements left alone: they hold no content, announce for everyone (live regions, CDK's live announcer), or hold the
425
+ * popups a modal opens. A modal in the overlay container has that container on its own path, so this only matters for
426
+ * one in the page.
427
+ */
308
428
  const isExempt = (element) => element instanceof HTMLScriptElement ||
309
429
  element instanceof HTMLStyleElement ||
310
430
  element instanceof HTMLTemplateElement ||
311
431
  element.hasAttribute("aria-live") ||
312
- element.classList.contains("cdk-overlay-backdrop");
432
+ element.classList.contains("cdk-overlay-backdrop") ||
433
+ element.classList.contains("cdk-overlay-container");
313
434
  /**
314
435
  * Makes everything outside a modal overlay inert, so assistive technology, the pointer and Tab can't reach the page
315
436
  * behind it. Walking up from `element` to `<body>`, every sibling is made inert, except that inside the CDK overlay
316
437
  * container only the overlays opened before this one are: popups opened later (a dropdown inside the dialog) stay
317
438
  * usable. Elements that were inert already are left as they are.
318
439
  * @param element the overlay's host element (the CDK overlay wrapper)
440
+ * @param options what to leave alone, and where to stop
319
441
  * @returns the function that releases what this call made inert
320
442
  */
321
- const inertOutside = (element) => {
443
+ const inertOutside = (element, options = {}) => {
322
444
  const body = element.ownerDocument.body;
323
445
  const acquired = [];
324
446
  let node = element;
325
- while (node && node !== body && node.parentElement) {
447
+ while (node && node !== body && node !== options.stopAt && node.parentElement) {
326
448
  const parent = node.parentElement;
327
449
  const onlyEarlier = parent.classList.contains("cdk-overlay-container");
328
450
  for (const sibling of Array.from(parent.children)) {
@@ -332,7 +454,7 @@ const inertOutside = (element) => {
332
454
  }
333
455
  continue;
334
456
  }
335
- if (isExempt(sibling)) {
457
+ if (isExempt(sibling) || options.keep?.(sibling)) {
336
458
  continue;
337
459
  }
338
460
  const count = inertCounts.get(sibling) ?? 0;
@@ -557,6 +679,20 @@ const rxTimeout = (destroyRef, fn, delay = 0) => {
557
679
  .subscribe(() => fn());
558
680
  };
559
681
 
682
+ /**
683
+ * What says a row is selected besides its tint, which is faint in every theme and gone in forced colors. The row
684
+ * has to be positioned.
685
+ */
686
+ const themeSelectionBarClasses = `
687
+ before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-(--color-selected-border)
688
+ before:forced-color-adjust-none forced-colors:before:bg-[Highlight]
689
+ `;
690
+ /** A border in the text's color, for a selected control whose fill doesn't say it alone. */
691
+ const themeSelectionBorderClasses = `
692
+ relative
693
+ after:pointer-events-none after:absolute after:inset-0
694
+ after:rounded-[inherit] after:border-2 after:border-current
695
+ `;
560
696
  const themeControlBackdropClasses = `
561
697
  [background-image:var(--mona-effect-control-background-image,none)]
562
698
  [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]
@@ -967,9 +1103,9 @@ var NavigationKeys;
967
1103
  NavigationKeys["PageUp"] = "PageUp";
968
1104
  NavigationKeys["Space"] = " ";
969
1105
  })(NavigationKeys || (NavigationKeys = {}));
970
- const NavigationKeysList = Object.values(NavigationKeys);
1106
+ const navigationKeysList = Object.values(NavigationKeys);
971
1107
  const isNavigationKey = (key) => {
972
- return NavigationKeysList.includes(key);
1108
+ return navigationKeysList.includes(key);
973
1109
  };
974
1110
 
975
1111
  /**
@@ -994,5 +1130,5 @@ const setupTypeahead = (typeaheadKey$) => {
994
1130
  * Generated bundle index. Do not edit.
995
1131
  */
996
1132
 
997
- export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, NavigationKeys, NavigationKeysList, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, createElementControlId, focusCanReturn, focusElement, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, isValidHsla, isValidRgb, listenForHover, onDisconnect, overlaySidePositions, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, string2Hsla, string2rgba, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, toCssValue };
1133
+ export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, MONA_FIELDSET_DISABLED, MONA_LABEL, NavigationKeys, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, colorKey, createElementControlId, focusCanReturn, focusElement, formatAlpha, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectEffectiveDisabled, injectLabelAssociation, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, listenForHover, navigationKeysList, onDisconnect, overlaySidePositions, parseColor, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, themeSelectionBarClasses, themeSelectionBorderClasses, toCssValue };
998
1134
  //# sourceMappingURL=nanahoshi-mona-ui-internal.mjs.map