@mintplayer/web-components 2.2.0 → 2.3.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 (107) hide show
  1. package/a11y/index.mjs +26 -2
  2. package/a11y/src/dismiss-stack.d.ts +25 -0
  3. package/a11y/src/error-text.d.ts +41 -0
  4. package/a11y/src/focus-restore.d.ts +116 -0
  5. package/a11y/src/focus-trap.d.ts +69 -0
  6. package/a11y/src/form-associated.d.ts +48 -0
  7. package/a11y/src/host-aria.d.ts +154 -0
  8. package/a11y/src/index.d.ts +16 -0
  9. package/a11y/src/inert-regions.d.ts +52 -0
  10. package/a11y/src/live-announcer.d.ts +8 -0
  11. package/a11y/src/roving-focus.d.ts +118 -0
  12. package/a11y/src/testing/expect-idref-resolves.d.ts +31 -0
  13. package/a11y/src/testing/index.d.ts +1 -0
  14. package/accordion/index.mjs +180 -174
  15. package/accordion/src/components/mp-accordion.d.ts +18 -13
  16. package/calendar/index.mjs +1 -1
  17. package/calendar/src/mp-calendar.element.d.ts +2 -0
  18. package/carousel/index.mjs +211 -164
  19. package/carousel/src/components/mp-carousel.d.ts +1 -0
  20. package/checkbox/index.mjs +1 -1
  21. package/checkbox/src/components/mp-checkbox.d.ts +59 -1
  22. package/chunks/focus-restore-DxuP1Oe2.mjs +94 -0
  23. package/chunks/focus-trap-DTOLJ5bb.mjs +121 -0
  24. package/chunks/form-associated-axmc5sY0.mjs +58 -0
  25. package/chunks/host-aria-WSGs7SPQ.mjs +152 -0
  26. package/chunks/inert-regions-DXCnn1LN.mjs +48 -0
  27. package/chunks/invalid-feedback.styles-he0JYrJm.mjs +11 -0
  28. package/chunks/{live-announcer-CZDTKulf.mjs → live-announcer-Bi0orG4n.mjs} +9 -9
  29. package/chunks/{mp-calendar.element-UC68iDbi.mjs → mp-calendar.element-u6uS31_j.mjs} +136 -105
  30. package/chunks/mp-checkbox-Ph2mMRGz.mjs +312 -0
  31. package/chunks/{mp-datatable-Bfw0KGkV.mjs → mp-datatable-BwTlh9A_.mjs} +265 -103
  32. package/chunks/{mp-pagination-BGxsawFL.mjs → mp-pagination-Dea75mD4.mjs} +25 -22
  33. package/chunks/mp-radio-BjW1HNSc.mjs +300 -0
  34. package/chunks/{mp-select-BDS1-YGn.mjs → mp-select-Ctu-v1-p.mjs} +163 -40
  35. package/chunks/{mp-splitter-C8cGCmac.mjs → mp-splitter-LszuRDbR.mjs} +53 -46
  36. package/chunks/{mp-tab-page-D1b4x-y2.mjs → mp-tab-page-CaCzX1ym.mjs} +46 -45
  37. package/chunks/{mp-timepicker.element-BwEiwX92.mjs → mp-timepicker.element-Bz393NDQ.mjs} +93 -86
  38. package/chunks/{mp-toggle-button-dLZNDUVz.mjs → mp-toggle-button-Kz6sIgBJ.mjs} +131 -37
  39. package/chunks/{mp-treeview-C48F63xb.mjs → mp-treeview-tkWu28iF.mjs} +67 -43
  40. package/chunks/overlay-controller-DPt13i8p.mjs +314 -0
  41. package/chunks/roving-focus-CrL9982a.mjs +129 -0
  42. package/code-snippet/index.mjs +21 -13
  43. package/code-snippet/src/mp-code-snippet.element.d.ts +6 -0
  44. package/datatable/index.mjs +1 -1
  45. package/datatable/src/components/mp-datatable.d.ts +50 -0
  46. package/datatable/src/types/index.d.ts +2 -0
  47. package/datatable/src/types/labels.d.ts +30 -0
  48. package/datepicker/index.mjs +45 -22
  49. package/datepicker/src/mp-datepicker.element.d.ts +30 -0
  50. package/datetime-picker/index.mjs +15 -9
  51. package/dock/index.mjs +365 -209
  52. package/dock/src/components/mint-dock-manager.element.d.ts +63 -3
  53. package/dropdown-menu/index.mjs +135 -90
  54. package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +12 -3
  55. package/file-manager/index.mjs +279 -214
  56. package/file-manager/src/components/mp-file-manager.d.ts +22 -0
  57. package/file-manager/src/types/messages.d.ts +9 -0
  58. package/multi-range/index.mjs +26 -10
  59. package/multi-range/src/mint-multi-range.element.d.ts +7 -0
  60. package/navbar/index.mjs +53 -39
  61. package/navbar/src/components/mp-navbar.d.ts +1 -0
  62. package/otp-input/index.mjs +82 -48
  63. package/otp-input/src/mint-otp-input.element.d.ts +31 -3
  64. package/overlay/index.mjs +2 -258
  65. package/overlay/src/overlay-controller.d.ts +64 -4
  66. package/package.json +9 -1
  67. package/pagination/index.mjs +1 -1
  68. package/query-builder/index.mjs +117 -87
  69. package/query-builder/src/model/messages.d.ts +9 -0
  70. package/radio/index.mjs +2 -160
  71. package/radio/src/components/mp-radio.d.ts +58 -3
  72. package/radio-group/index.d.ts +1 -0
  73. package/radio-group/index.mjs +145 -0
  74. package/radio-group/src/components/mp-radio-group.d.ts +52 -0
  75. package/radio-group/src/index.d.ts +1 -0
  76. package/radio-group/src/styles/radio-group.styles.d.ts +2 -0
  77. package/ribbon/index.mjs +316 -304
  78. package/ribbon/src/mp-ribbon.element.d.ts +16 -0
  79. package/scheduler/index.mjs +219 -132
  80. package/scheduler/src/components/mp-scheduler.d.ts +3 -0
  81. package/scheduler/src/views/base-view.d.ts +23 -0
  82. package/select/index.mjs +1 -1
  83. package/select/src/components/mp-select.d.ts +60 -3
  84. package/shell/index.mjs +142 -31
  85. package/shell/src/components/mp-shell.d.ts +1 -0
  86. package/signature-pad/index.d.ts +1 -0
  87. package/signature-pad/index.mjs +230 -0
  88. package/signature-pad/src/index.d.ts +2 -0
  89. package/signature-pad/src/mp-signature-pad.element.d.ts +143 -0
  90. package/signature-pad/src/mp-signature-pad.element.template.d.ts +2 -0
  91. package/signature-pad/src/types/signature.d.ts +12 -0
  92. package/splitter/index.mjs +1 -1
  93. package/splitter/src/components/mp-splitter.d.ts +7 -0
  94. package/tab-control/index.mjs +1 -1
  95. package/tile-manager/index.mjs +110 -93
  96. package/timeline/index.mjs +138 -54
  97. package/timeline/src/components/mp-timeline.d.ts +15 -0
  98. package/timepicker/index.mjs +1 -1
  99. package/timepicker/src/mp-time-list.element.d.ts +13 -4
  100. package/timepicker/src/mp-timepicker.element.d.ts +29 -0
  101. package/toggle-button/index.mjs +1 -1
  102. package/toggle-button/src/components/mp-toggle-button.d.ts +32 -1
  103. package/tree-select/index.mjs +233 -121
  104. package/tree-select/src/components/mp-tree-select.d.ts +37 -0
  105. package/treeview/index.mjs +1 -1
  106. package/treeview/src/components/mp-treeview.d.ts +10 -1
  107. package/chunks/mp-checkbox-BokLL7BS.mjs +0 -211
@@ -5,12 +5,12 @@ export interface AccordionTabToggleDetail {
5
5
  index: number;
6
6
  /** Its new state. */
7
7
  active: boolean;
8
- /** The click / keydown / change that caused it, or `null` when programmatic. */
8
+ /** The click / keydown / toggle that caused it, or `null` when programmatic. */
9
9
  originalEvent: Event | null;
10
10
  }
11
11
  /**
12
12
  * `<mp-accordion>` — Bootstrap accordion owning its whole structure in one
13
- * shadow root.
13
+ * shadow root, built on native `<details name>`/`<summary>` (decision D1).
14
14
  *
15
15
  * Light-DOM children are markers, not chrome: each `<mp-accordion-tab>`
16
16
  * supplies one tab's body, each `[accordion-header]` element supplies one
@@ -19,20 +19,25 @@ export interface AccordionTabToggleDetail {
19
19
  * Children that are neither render through the default slot — an accordion
20
20
  * with zero tabs is a valid styled container (the offcanvas nav uses one).
21
21
  *
22
- * Two interaction tiers, one template, branched on `data-js`:
23
- * - JS on: `<button aria-expanded>` headers; this element owns the
24
- * click/keyboard → state loop and animates via `grid-template-rows`.
25
- * - JS off (server-rendered DSD): a visually-hidden `<input>` per tab —
26
- * radio when single-open, checkbox under `multi` — plus a `<label>`
27
- * header. `:checked` opens the collapse, rotates the chevron and paints
28
- * the active state, so the accordion is fully interactive, and keyboard
29
- * operable, with no script at all. Radio exclusivity is why one shadow
30
- * root owns every tab: a group only forms within a single node tree.
22
+ * ONE template serves both tiers. The UA owns disclosure state: a closed
23
+ * `<details>` removes its content from the tab order and the accessibility
24
+ * tree with no CSS, works with no script at all, and `name` gives single-open
25
+ * exclusivity natively (scoped per shadow root — spike 0.1a). Single-open is
26
+ * ALSO enforced here from state, because engines without `name` support (and
27
+ * jsdom) must behave identically and PRD §11a wants state true at every
28
+ * moment, not only where the UA cooperates.
29
+ *
30
+ * The `toggle` contract (spike 0.1a, all three engines): it does not bubble
31
+ * (delegate in the CAPTURE phase), it is asynchronous, and same-task flips
32
+ * are coalesced into one event carrying the final state — so toggle is
33
+ * treated purely as a notification and `details.open` is re-read from every
34
+ * row. A disabled tab is kept inert by a cancellable KEYDOWN guard;
35
+ * `toggle` itself cannot be cancelled.
31
36
  *
32
37
  * Active state lives on the light-DOM markers (`is-active`), which makes it
33
38
  * declarative for every framework wrapper and survives the SSR handoff — the
34
- * pre-upgrade `:checked` inputs are read back onto the markers before the
35
- * shadow is replaced.
39
+ * pre-upgrade `[open]` state is read back onto the markers before the shadow
40
+ * is replaced.
36
41
  *
37
42
  * Closing a tab closes every accordion nested inside it, at any depth, so a
38
43
  * collapsed branch never hides expanded descendants.
@@ -1,4 +1,4 @@
1
- import { M as r } from "../chunks/mp-calendar.element-UC68iDbi.mjs";
1
+ import { M as r } from "../chunks/mp-calendar.element-u6uS31_j.mjs";
2
2
  export {
3
3
  r as MpCalendarElement
4
4
  };
@@ -86,6 +86,8 @@ export declare class MpCalendarElement extends LitElement {
86
86
  /** Localized weekday short + long names, in the order driven by firstDayOfWeek. */
87
87
  private weekdayNames;
88
88
  private monthLabel;
89
+ /** Focus the grid = focus its roving cell (dialog initial focus calls host.focus()). */
90
+ focus(options?: FocusOptions): void;
89
91
  /**
90
92
  * The cell that should carry tabindex="0". One per month — focused, else
91
93
  * selected, else today, else first enabled day. Mirrors APG convention.