@mintplayer/web-components 1.0.0 → 1.2.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 (237) hide show
  1. package/a11y/index.mjs +2 -56
  2. package/calendar/index.mjs +2 -363
  3. package/checkbox/index.mjs +4 -0
  4. package/checkbox/src/components/index.d.ts +2 -0
  5. package/checkbox/src/components/mp-checkbox.d.ts +69 -0
  6. package/checkbox/src/index.d.ts +2 -0
  7. package/chunks/color-C4VT0EL7.mjs +847 -0
  8. package/chunks/form-check.styles-jBlHetYX.mjs +151 -0
  9. package/chunks/live-announcer-CZDTKulf.mjs +58 -0
  10. package/chunks/mp-calendar.element-UC68iDbi.mjs +365 -0
  11. package/chunks/mp-checkbox-BokLL7BS.mjs +211 -0
  12. package/chunks/mp-datatable-Con0yQue.mjs +1125 -0
  13. package/chunks/mp-pagination-BGxsawFL.mjs +326 -0
  14. package/chunks/mp-select-BDS1-YGn.mjs +254 -0
  15. package/chunks/mp-splitter-C8cGCmac.mjs +633 -0
  16. package/chunks/mp-tab-page-D1b4x-y2.mjs +414 -0
  17. package/chunks/mp-timepicker.element-BwEiwX92.mjs +428 -0
  18. package/chunks/mp-toggle-button-dLZNDUVz.mjs +534 -0
  19. package/chunks/mp-treeview-Bfq4_IVW.mjs +474 -0
  20. package/code-snippet/index.mjs +16 -13
  21. package/datatable/index.mjs +7 -0
  22. package/datatable/src/components/index.d.ts +2 -0
  23. package/datatable/src/components/mp-datatable.d.ts +260 -0
  24. package/datatable/src/index.d.ts +6 -0
  25. package/datatable/src/sort/compute-next-sort.d.ts +18 -0
  26. package/datatable/src/sort/index.d.ts +3 -0
  27. package/datatable/src/sort/sort-rows.d.ts +6 -0
  28. package/datatable/src/styles/datatable.styles.d.ts +2 -0
  29. package/datatable/src/styles/index.d.ts +1 -0
  30. package/datatable/src/types/column-def.d.ts +41 -0
  31. package/datatable/src/types/index.d.ts +2 -0
  32. package/datatable/src/types/tree.d.ts +42 -0
  33. package/datepicker/index.mjs +240 -0
  34. package/datepicker/src/index.d.ts +1 -0
  35. package/datepicker/src/mp-datepicker.element.d.ts +94 -0
  36. package/datepicker/src/mp-datepicker.element.template.d.ts +2 -0
  37. package/datetime-picker/index.mjs +427 -0
  38. package/datetime-picker/src/index.d.ts +1 -0
  39. package/datetime-picker/src/mp-datetime-picker.element.d.ts +174 -0
  40. package/datetime-picker/src/mp-datetime-picker.element.template.d.ts +2 -0
  41. package/dock/index.mjs +2402 -0
  42. package/dock/src/components/index.d.ts +1 -0
  43. package/dock/src/components/mint-dock-manager.element.d.ts +313 -0
  44. package/dock/src/components/mint-dock-manager.element.template.d.ts +2 -0
  45. package/dock/src/index.d.ts +2 -0
  46. package/dock/src/types/dock-layout.d.ts +65 -0
  47. package/dock/src/types/index.d.ts +1 -0
  48. package/file-manager/index.mjs +1263 -0
  49. package/file-manager/src/components/index.d.ts +2 -0
  50. package/file-manager/src/components/mp-file-manager.d.ts +320 -0
  51. package/file-manager/src/index.d.ts +5 -0
  52. package/file-manager/src/styles/file-manager.styles.d.ts +2 -0
  53. package/file-manager/src/styles/index.d.ts +1 -0
  54. package/file-manager/src/types/file-system-node.d.ts +24 -0
  55. package/file-manager/src/types/index.d.ts +3 -0
  56. package/file-manager/src/types/messages.d.ts +43 -0
  57. package/multi-range/index.mjs +407 -0
  58. package/multi-range/src/index.d.ts +2 -0
  59. package/multi-range/src/mint-multi-range.element.d.ts +124 -0
  60. package/multi-range/src/mint-multi-range.element.template.d.ts +2 -0
  61. package/multi-range/src/types/multi-range-orientation.d.ts +1 -0
  62. package/otp-input/index.mjs +362 -0
  63. package/otp-input/src/index.d.ts +4 -0
  64. package/otp-input/src/mint-otp-input.element.d.ts +134 -0
  65. package/otp-input/src/mint-otp-input.element.template.d.ts +2 -0
  66. package/otp-input/src/types/otp-input-case.d.ts +1 -0
  67. package/otp-input/src/types/otp-input-size.d.ts +1 -0
  68. package/otp-input/src/types/otp-input-type.d.ts +1 -0
  69. package/overlay/index.mjs +260 -0
  70. package/overlay/src/index.d.ts +2 -0
  71. package/overlay/src/overlay-controller.d.ts +205 -0
  72. package/package.json +1 -1
  73. package/pagination/index.mjs +5 -0
  74. package/pagination/src/components/index.d.ts +2 -0
  75. package/pagination/src/components/mp-pagination.d.ts +95 -0
  76. package/pagination/src/index.d.ts +2 -0
  77. package/pagination/src/styles/index.d.ts +1 -0
  78. package/pagination/src/styles/pagination.styles.d.ts +2 -0
  79. package/query-builder/index.mjs +3720 -0
  80. package/query-builder/src/context.d.ts +14 -0
  81. package/query-builder/src/dnd/drag-controller.d.ts +69 -0
  82. package/query-builder/src/index.d.ts +23 -0
  83. package/query-builder/src/model/default-tree.d.ts +7 -0
  84. package/query-builder/src/model/editor.d.ts +15 -0
  85. package/query-builder/src/model/errors.d.ts +6 -0
  86. package/query-builder/src/model/expression.d.ts +22 -0
  87. package/query-builder/src/model/field-def.d.ts +17 -0
  88. package/query-builder/src/model/messages.d.ts +17 -0
  89. package/query-builder/src/model/operator-overrides.d.ts +21 -0
  90. package/query-builder/src/model/operators.d.ts +8 -0
  91. package/query-builder/src/model/saved-query.d.ts +6 -0
  92. package/query-builder/src/model/sort.d.ts +9 -0
  93. package/query-builder/src/model/tree-ops.d.ts +56 -0
  94. package/query-builder/src/mp-query-builder.element.d.ts +158 -0
  95. package/query-builder/src/mp-query-builder.element.template.d.ts +2 -0
  96. package/query-builder/src/mp-query-condition.element.d.ts +44 -0
  97. package/query-builder/src/mp-query-condition.element.template.d.ts +2 -0
  98. package/query-builder/src/mp-query-group.element.d.ts +52 -0
  99. package/query-builder/src/mp-query-group.element.template.d.ts +2 -0
  100. package/query-builder/src/mp-query-subquery.element.d.ts +37 -0
  101. package/query-builder/src/mp-query-subquery.element.template.d.ts +2 -0
  102. package/query-builder/src/preview/render-expression.d.ts +23 -0
  103. package/query-builder/src/value-editors/builtin-editors.d.ts +6 -0
  104. package/query-builder/src/visitor/visit-tree.d.ts +29 -0
  105. package/query-builder/src/visitor/visitor-types.d.ts +15 -0
  106. package/radio/index.mjs +162 -0
  107. package/radio/src/components/index.d.ts +2 -0
  108. package/radio/src/components/mp-radio.d.ts +63 -0
  109. package/radio/src/index.d.ts +2 -0
  110. package/ribbon/index.mjs +3151 -0
  111. package/ribbon/src/index.d.ts +10 -0
  112. package/ribbon/src/items/index.d.ts +15 -0
  113. package/ribbon/src/items/mp-ribbon-button.element.d.ts +10 -0
  114. package/ribbon/src/items/mp-ribbon-checkbox.element.d.ts +11 -0
  115. package/ribbon/src/items/mp-ribbon-color-picker.element.d.ts +12 -0
  116. package/ribbon/src/items/mp-ribbon-combobox.element.d.ts +19 -0
  117. package/ribbon/src/items/mp-ribbon-dropdown-button.element.d.ts +16 -0
  118. package/ribbon/src/items/mp-ribbon-gallery-item.element.d.ts +15 -0
  119. package/ribbon/src/items/mp-ribbon-gallery.element.d.ts +11 -0
  120. package/ribbon/src/items/mp-ribbon-group-button.element.d.ts +18 -0
  121. package/ribbon/src/items/mp-ribbon-item-base.d.ts +68 -0
  122. package/ribbon/src/items/mp-ribbon-menu-item.element.d.ts +13 -0
  123. package/ribbon/src/items/mp-ribbon-menu-separator.element.d.ts +6 -0
  124. package/ribbon/src/items/mp-ribbon-split-button.element.d.ts +23 -0
  125. package/ribbon/src/items/mp-ribbon-template-item.element.d.ts +12 -0
  126. package/ribbon/src/items/mp-ribbon-toggle-button.element.d.ts +12 -0
  127. package/ribbon/src/mp-quick-access-toolbar.element.d.ts +35 -0
  128. package/ribbon/src/mp-ribbon-contextual-tab-set.element.d.ts +18 -0
  129. package/ribbon/src/mp-ribbon-group.element.d.ts +59 -0
  130. package/ribbon/src/mp-ribbon-tab.element.d.ts +72 -0
  131. package/ribbon/src/mp-ribbon.element.d.ts +211 -0
  132. package/ribbon/src/types/ribbon.types.d.ts +4 -0
  133. package/scheduler/index.mjs +3567 -0
  134. package/scheduler/src/components/mp-scheduler.d.ts +238 -0
  135. package/scheduler/src/drag/drag-manager.d.ts +90 -0
  136. package/scheduler/src/drag/drag-preview.d.ts +42 -0
  137. package/scheduler/src/drag/drag-state-machine.d.ts +102 -0
  138. package/scheduler/src/drag/drag-types.d.ts +104 -0
  139. package/scheduler/src/drag/index.d.ts +4 -0
  140. package/scheduler/src/events/event-types.d.ts +58 -0
  141. package/scheduler/src/events/index.d.ts +2 -0
  142. package/scheduler/src/events/scheduler-event-emitter.d.ts +52 -0
  143. package/scheduler/src/index.d.ts +6 -0
  144. package/scheduler/src/input/index.d.ts +2 -0
  145. package/scheduler/src/input/input-handler.d.ts +105 -0
  146. package/scheduler/src/input/pointer-event.d.ts +39 -0
  147. package/scheduler/src/state/scheduler-state.d.ts +189 -0
  148. package/scheduler/src/styles/scheduler.styles.d.ts +2 -0
  149. package/scheduler/src/views/base-view.d.ts +87 -0
  150. package/scheduler/src/views/day-view.d.ts +25 -0
  151. package/scheduler/src/views/index.d.ts +6 -0
  152. package/scheduler/src/views/month-view.d.ts +27 -0
  153. package/scheduler/src/views/timeline-view.d.ts +23 -0
  154. package/scheduler/src/views/week-view.d.ts +28 -0
  155. package/scheduler/src/views/year-view.d.ts +25 -0
  156. package/scheduler-core/index.mjs +174 -0
  157. package/scheduler-core/src/index.d.ts +3 -0
  158. package/scheduler-core/src/models/drag-state.d.ts +43 -0
  159. package/scheduler-core/src/models/event.d.ts +111 -0
  160. package/scheduler-core/src/models/events.d.ts +108 -0
  161. package/scheduler-core/src/models/index.d.ts +7 -0
  162. package/scheduler-core/src/models/options.d.ts +88 -0
  163. package/scheduler-core/src/models/resource.d.ts +58 -0
  164. package/scheduler-core/src/models/time-slot.d.ts +31 -0
  165. package/scheduler-core/src/models/types.d.ts +20 -0
  166. package/scheduler-core/src/services/date.service.d.ts +140 -0
  167. package/scheduler-core/src/services/index.d.ts +4 -0
  168. package/scheduler-core/src/services/position.service.d.ts +35 -0
  169. package/scheduler-core/src/services/resource.service.d.ts +83 -0
  170. package/scheduler-core/src/services/timeline.service.d.ts +103 -0
  171. package/scheduler-core/src/utils/color.d.ts +24 -0
  172. package/scheduler-core/src/utils/dom.d.ts +54 -0
  173. package/scheduler-core/src/utils/id.d.ts +16 -0
  174. package/scheduler-core/src/utils/index.d.ts +3 -0
  175. package/select/index.mjs +4 -0
  176. package/select/src/components/index.d.ts +2 -0
  177. package/select/src/components/mp-select.d.ts +82 -0
  178. package/select/src/index.d.ts +2 -0
  179. package/splitter/index.mjs +10 -0
  180. package/splitter/src/components/index.d.ts +2 -0
  181. package/splitter/src/components/mp-splitter.d.ts +109 -0
  182. package/splitter/src/index.d.ts +11 -0
  183. package/splitter/src/input/index.d.ts +4 -0
  184. package/splitter/src/input/input-handler.d.ts +36 -0
  185. package/splitter/src/input/pointer-event.d.ts +9 -0
  186. package/splitter/src/managers/index.d.ts +2 -0
  187. package/splitter/src/managers/resize-manager.d.ts +13 -0
  188. package/splitter/src/state/index.d.ts +2 -0
  189. package/splitter/src/state/splitter-state.d.ts +24 -0
  190. package/splitter/src/styles/index.d.ts +1 -0
  191. package/splitter/src/styles/splitter.styles.d.ts +2 -0
  192. package/splitter/src/types/direction.d.ts +1 -0
  193. package/splitter/src/types/index.d.ts +5 -0
  194. package/splitter/src/types/panel-info.d.ts +6 -0
  195. package/splitter/src/types/point.d.ts +4 -0
  196. package/splitter/src/types/resize-operation.d.ts +13 -0
  197. package/tab-control/index.mjs +6 -0
  198. package/tab-control/src/components/index.d.ts +3 -0
  199. package/tab-control/src/components/mp-tab-control.d.ts +50 -0
  200. package/tab-control/src/components/mp-tab-page.d.ts +35 -0
  201. package/tab-control/src/index.d.ts +4 -0
  202. package/tab-control/src/styles/index.d.ts +1 -0
  203. package/tab-control/src/styles/tab-control.styles.d.ts +2 -0
  204. package/tab-control/src/types/index.d.ts +1 -0
  205. package/tab-control/src/types/tabs-position.d.ts +1 -0
  206. package/tile-manager/index.mjs +867 -0
  207. package/tile-manager/src/components/index.d.ts +2 -0
  208. package/tile-manager/src/components/mint-tile-manager.element.d.ts +204 -0
  209. package/tile-manager/src/components/mint-tile-manager.element.template.d.ts +2 -0
  210. package/tile-manager/src/index.d.ts +4 -0
  211. package/tile-manager/src/types/grid-rect.d.ts +12 -0
  212. package/tile-manager/src/types/index.d.ts +3 -0
  213. package/tile-manager/src/types/tile-layout-snapshot.d.ts +15 -0
  214. package/tile-manager/src/types/tile-position.d.ts +10 -0
  215. package/tile-manager/src/utils/index.d.ts +1 -0
  216. package/tile-manager/src/utils/pack.d.ts +24 -0
  217. package/timepicker/index.mjs +5 -0
  218. package/timepicker/src/index.d.ts +2 -0
  219. package/timepicker/src/mp-time-list.element.d.ts +76 -0
  220. package/timepicker/src/mp-time-list.element.template.d.ts +2 -0
  221. package/timepicker/src/mp-timepicker.element.d.ts +87 -0
  222. package/timepicker/src/mp-timepicker.element.template.d.ts +2 -0
  223. package/toggle-button/index.mjs +5 -0
  224. package/toggle-button/src/components/index.d.ts +2 -0
  225. package/toggle-button/src/components/mp-toggle-button.d.ts +50 -0
  226. package/toggle-button/src/index.d.ts +3 -0
  227. package/toggle-button/src/styles/index.d.ts +1 -0
  228. package/toggle-button/src/styles/toggle-button.styles.d.ts +2 -0
  229. package/treeview/index.mjs +5 -0
  230. package/treeview/src/components/index.d.ts +2 -0
  231. package/treeview/src/components/mp-treeview.d.ts +113 -0
  232. package/treeview/src/index.d.ts +4 -0
  233. package/treeview/src/styles/index.d.ts +1 -0
  234. package/treeview/src/styles/treeview.styles.d.ts +2 -0
  235. package/treeview/src/types/index.d.ts +1 -0
  236. package/treeview/src/types/tree-node.d.ts +14 -0
  237. package/custom-elements.json +0 -1774
@@ -0,0 +1 @@
1
+ export { MintDockManagerElement } from './mint-dock-manager.element';
@@ -0,0 +1,313 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ import { DockLayout, DockLayoutNode, DockLayoutSnapshot } from '../types/dock-layout';
3
+ export declare class MintDockManagerElement extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ private static documentRef;
6
+ static configureDocument(documentRef: Document | null | undefined): void;
7
+ static get observedAttributes(): string[];
8
+ private static instanceCounter;
9
+ private static readonly TOUCH_LONG_PRESS_MS;
10
+ private static readonly TOUCH_LONG_PRESS_SLOP_PX;
11
+ private static readonly TOUCH_PRESS_FEEDBACK_DELAY_MS;
12
+ private documentRef;
13
+ private windowRef;
14
+ private rootEl;
15
+ private dockedEl;
16
+ private floatingLayerEl;
17
+ private dropIndicator;
18
+ private dropJoystick;
19
+ private dropJoystickButtons;
20
+ private readonly instanceId;
21
+ private readonly liveAnnouncer;
22
+ /**
23
+ * Active keyboard-driven pane move (Phase 7 of WC ARIA PRD). The user
24
+ * pressed M on a focused tab; until they pick a destination key (T/R/B/L
25
+ * to dock to a side, F to float) or Escape, we intercept letter keys and
26
+ * route them to the synthetic-drop pipeline.
27
+ */
28
+ private paneMoveMode;
29
+ private dropJoystickTarget;
30
+ private rootLayout;
31
+ private floatingLayouts;
32
+ private titles;
33
+ private pendingTabDragMetrics;
34
+ private dragState;
35
+ private floatingDragState;
36
+ private floatingResizeState;
37
+ private intersectionRaf;
38
+ private rootResizeObserver;
39
+ private dockedMutationObserver;
40
+ private cornerResizeState;
41
+ private pointerTrackingActive;
42
+ private dragPointerTrackingActive;
43
+ private lastDragPointerPosition;
44
+ private cornerSnapXTargets;
45
+ private cornerSnapYTargets;
46
+ private showSnapMarkers;
47
+ debugLayoutIntegrity: boolean;
48
+ private renderSnapMarkersForCorner;
49
+ private clearSnapMarkers;
50
+ private pendingDragEndTimeout;
51
+ private previousSplitSizes;
52
+ constructor();
53
+ render(): TemplateResult;
54
+ protected firstUpdated(): void;
55
+ connectedCallback(): void;
56
+ disconnectedCallback(): void;
57
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
58
+ get layout(): DockLayoutSnapshot;
59
+ set layout(value: DockLayoutSnapshot | DockLayout | DockLayoutNode | null);
60
+ /**
61
+ * True while the user is actively interacting with the dock — pane drag,
62
+ * floating window drag, floating window resize, or intersection corner
63
+ * resize. The `set layout` setter consults this to refuse external
64
+ * round-trips that would overwrite in-progress drag state.
65
+ */
66
+ private isInteracting;
67
+ get snapshot(): DockLayoutSnapshot;
68
+ toJSON(): DockLayoutSnapshot;
69
+ private resolveDocument;
70
+ private resolveWindow;
71
+ private parseLayout;
72
+ private ensureSnapshot;
73
+ private renderLayout;
74
+ private renderNode;
75
+ private renderFloatingPanes;
76
+ private onSplitterResize;
77
+ private scheduleRenderIntersectionHandles;
78
+ private renderIntersectionHandles;
79
+ /**
80
+ * Keyboard resize on a focused intersection handle. ArrowLeft/Right resize
81
+ * the vertical divider the handle sits on; ArrowUp/Down resize the
82
+ * horizontal divider. Home/End shrink/grow the leading panel of whichever
83
+ * axis is implied by the key. Shift = fine 1% step.
84
+ *
85
+ * Internally delegates to mp-splitter.resizeDividerBy() so the percent-step
86
+ * + clamp math lives in one place. If a 2D handle straddles multiple split
87
+ * pairs (sibling splitters whose dividers happen to overlap), the first
88
+ * pair drives — same precedence as the pointer drag path.
89
+ */
90
+ private onIntersectionKeyDown;
91
+ private beginCornerResize;
92
+ private handleCornerResizeMove;
93
+ private endCornerResize;
94
+ private onIntersectionDoubleClick;
95
+ private beginFloatingDrag;
96
+ private beginFloatingResize;
97
+ private handleFloatingDragMove;
98
+ private endFloatingDrag;
99
+ private updateFloatingDragDropTarget;
100
+ private handleFloatingResizeMove;
101
+ private endFloatingResize;
102
+ private getFloatingPaneZIndex;
103
+ private getHostSize;
104
+ private clampBoundsToHost;
105
+ private updateFloatingPanePositions;
106
+ private promoteFloatingPane;
107
+ private getFloatingWrapper;
108
+ private startPointerTracking;
109
+ private stopPointerTrackingIfIdle;
110
+ private getFloatingWindowTitle;
111
+ private updateFloatingWindowTitle;
112
+ private renderSplit;
113
+ private renderStack;
114
+ /**
115
+ * Returns the strip (`.tsc`) element inside an `<mp-tab-control>`'s shadow
116
+ * DOM. Used by drag/drop logic that needs the strip's geometry instead of
117
+ * the host element's bounds.
118
+ */
119
+ private getStackStripEl;
120
+ /**
121
+ * Returns the rendered tab buttons inside an `<mp-tab-control>`'s shadow
122
+ * strip — the light-DOM `.dock-tab` spans the dock owns are projected into
123
+ * these buttons via `<slot>`. Use these for geometry / position queries
124
+ * (insert-index computation, drop-indicator placement). Use the light-DOM
125
+ * `.dock-tab` spans for data queries (paneName, drag listeners).
126
+ */
127
+ private getStackTabButtons;
128
+ /**
129
+ * Returns the dividers inside an `<mp-splitter>`'s shadow DOM, in DOM order.
130
+ * mp-splitter renders one `.divider` between each pair of adjacent panels,
131
+ * so for an N-child split, length N-1.
132
+ */
133
+ private getSplitterDividers;
134
+ /**
135
+ * Returns the panel wrappers inside an `<mp-splitter>`'s shadow DOM, in
136
+ * DOM order. These are the elements mp-splitter sizes (via setPanelSizes)
137
+ * during a divider drag — the dock reads their geometry for intersection
138
+ * handle math and snap markers.
139
+ */
140
+ private getSplitterPanels;
141
+ /**
142
+ * Locate the rendered `<mp-splitter>` element for a given DockPath
143
+ * `segments` value (the split-tree path). Searches the dock's shadow.
144
+ */
145
+ private findSplitterByPath;
146
+ private onPointerMove;
147
+ private onPointerUp;
148
+ private onPointerCancel;
149
+ private captureTabDragMetrics;
150
+ private clearPendingTabDragMetrics;
151
+ /**
152
+ * Pointerdown handler arms a "may become a drag" gesture. Mouse / pen use a
153
+ * 5 px distance threshold and arm immediately; touch dispatches to
154
+ * {@link armPaneDragGestureTouch} which requires a 600 ms stationary hold
155
+ * (so the user can scroll the tabstrip natively without undocking).
156
+ * Once armed, both paths converge on {@link beginPaneDrag}. All listeners
157
+ * self-clean on resolve so the gesture stays scoped to a single pointerdown.
158
+ */
159
+ private armPaneDragGesture;
160
+ /**
161
+ * Touch-specific gesture arming. With `.dock-tab` set to `touch-action:
162
+ * none`, the browser never arbitrates the gesture itself, so JS owns it
163
+ * from frame 1. Three outcomes from the pending state:
164
+ *
165
+ * - User holds within {@link TOUCH_LONG_PRESS_SLOP_PX} for
166
+ * {@link TOUCH_LONG_PRESS_MS} → timer fires → drag arms via
167
+ * {@link beginPaneDrag}.
168
+ * - User moves past slop and the move is mostly horizontal, and the
169
+ * strip's `<ul>` is scrollable → enter `scrolling` mode and drive
170
+ * `ul.scrollLeft` from JS for the rest of the gesture (no drag, no
171
+ * momentum — direct 1:1 finger follow).
172
+ * - User moves past slop in any other direction, releases, or
173
+ * pointercancel fires → abandoned, no drag, no scroll. Releases
174
+ * under slop fire the synthesized click that drives `tab-activate`.
175
+ *
176
+ * `touch-action: pan-x` was the original PRD design but doesn't work:
177
+ * the policy is frozen at touchstart and `setPointerCapture` doesn't
178
+ * promote it, so first move after a long-press fires pointercancel and
179
+ * strands the panel. JS-driven scroll is the only model that holds.
180
+ */
181
+ private armPaneDragGestureTouch;
182
+ private beginPaneDrag;
183
+ private preparePaneDragSource;
184
+ private endPaneDrag;
185
+ private updateDraggedFloatingPositionFromPoint;
186
+ private updatePaneDragDropTargetFromPoint;
187
+ private isPointerOverSourceHeader;
188
+ private isPointWithinBounds;
189
+ private ensureHeaderDragPlaceholder;
190
+ private updateHeaderDragPlaceholderPosition;
191
+ private clearHeaderDragPlaceholder;
192
+ private startDragPointerTracking;
193
+ private stopDragPointerTracking;
194
+ private onDragPointerMove;
195
+ private onDragPointerUp;
196
+ private onDragPointerCancel;
197
+ private convertPendingTabDragToFloating;
198
+ private markDraggedFloatingWrapper;
199
+ private clearDraggedFloatingWrapperMarkers;
200
+ private computeHeaderInsertIndex;
201
+ private reorderPaneInLocationAtIndex;
202
+ private finalizeDropFromPoint;
203
+ private clearPendingDragEndTimeout;
204
+ private scheduleDeferredDragEnd;
205
+ private handleDrop;
206
+ private handleFloatingStackDrop;
207
+ private insertWeight;
208
+ private removePaneFromStack;
209
+ private findParentSplit;
210
+ private computeDropZone;
211
+ private extractDropZoneFromEvent;
212
+ private handleDragPointerUpCommon;
213
+ private findDropZoneInTargets;
214
+ private findDropZoneByPoint;
215
+ private updateDropJoystickActiveZone;
216
+ private isDropZone;
217
+ private showDropIndicator;
218
+ private hideDropIndicator;
219
+ private findStackAtPoint;
220
+ private findStackInTargets;
221
+ private activatePane;
222
+ private getNodeAtPath;
223
+ private resolveSplitNode;
224
+ private replaceNodeInTree;
225
+ private dockNodeBeside;
226
+ private forEachStack;
227
+ private findStackContainingPane;
228
+ private findFirstPaneName;
229
+ private collectFloatingPaneMetadata;
230
+ private collectPaneNames;
231
+ private normalizeFloatingLayout;
232
+ private formatPath;
233
+ private splitterLayerKey;
234
+ private clonePath;
235
+ private parsePath;
236
+ private pathsEqual;
237
+ private isOrIsAncestorOf;
238
+ private countPanesInTree;
239
+ private resolveStackLocation;
240
+ private removePaneFromLocation;
241
+ private addPaneToLocation;
242
+ private setActivePaneForLocation;
243
+ private reorderPaneInLocation;
244
+ private removeFloatingAt;
245
+ /**
246
+ * Keyboard handler on the dock root, registered in capture phase so it
247
+ * runs before mp-tab-control's shadow-internal handlers swallow Arrow /
248
+ * Home / End / Enter. M opens move mode on a focused tab; subsequent
249
+ * letter keys (T/R/B/L/F) commit the move; Escape cancels.
250
+ */
251
+ private onRootKeyDown;
252
+ private handlePaneMoveModeKey;
253
+ /**
254
+ * Walk the focused element through nested shadow roots to find a focused
255
+ * tab button, then map it back to the dock's pane name + source path via
256
+ * the data attributes on the slotted .dock-tab span.
257
+ */
258
+ private findFocusedPaneOrigin;
259
+ /**
260
+ * Synthesise a minimal dragState so handleDrop's existing pipeline can
261
+ * commit the keyboard-driven move. handleDrop reads {pane, sourcePath,
262
+ * dropHandled} — the rest of dragState is pointer-drag bookkeeping that
263
+ * doesn't apply here.
264
+ */
265
+ private synthesiseDragStateForKeyboardMove;
266
+ private commitPaneMoveToZone;
267
+ private commitPaneMoveAsFloat;
268
+ /**
269
+ * Close a floating pane via the chrome's close button (or any external
270
+ * caller). Announces the close to SR users, redraws the dock, and emits a
271
+ * layout-changed event. Phase 4 of the WC ARIA PRD — the floating chrome
272
+ * had no close affordance before this; users had to programmatically pop
273
+ * the pane out of `floatingLayouts`.
274
+ */
275
+ private closeFloatingPane;
276
+ private removePaneFromFloating;
277
+ private normalizeSizesArray;
278
+ private normalizeSplitNode;
279
+ /**
280
+ * Bottom-up layout sanitizer. Returns a normalized version of `node` where:
281
+ * - Empty stacks (panes.length === 0) are dropped (returned as null).
282
+ * - A stack's `activePane` is repaired if it no longer references one of `panes`.
283
+ * - Splits whose direction matches a child split are flattened, with sizes
284
+ * combined multiplicatively so the resulting on-screen pixel layout is
285
+ * identical to the pre-merge one.
286
+ * - Splits with 0 children become null. Splits with 1 child are unwrapped.
287
+ *
288
+ * Idempotent: passing the result back through this method yields the same
289
+ * structure. Mutates the input tree in place but only returns nodes that
290
+ * remain part of the layout.
291
+ */
292
+ private normalizeLayoutNode;
293
+ /**
294
+ * Apply `normalizeLayoutNode` to `rootLayout` and every floating window's
295
+ * root, drop floating windows whose root collapses to null, and repair
296
+ * stale `activePane` references on each floating window. Run this at the
297
+ * end of every public mutation entry point (drop handlers, layout setter,
298
+ * pane removal) so the tree the renderer sees is always in canonical form.
299
+ */
300
+ private normalizeAllLayouts;
301
+ /**
302
+ * Dev-mode integrity guard: walks every pane referenced by the current
303
+ * layout and asserts that the rendered shadow DOM contains a matching
304
+ * `<slot name="${pane}">`. A missing slot means the layout tree got into
305
+ * a state the renderer can't display — typically a missed normalize() call
306
+ * or a render bug. Opt in via the `debug-layout-integrity` attribute or
307
+ * the `debugLayoutIntegrity` property; off by default.
308
+ */
309
+ private verifyProjectionSlots;
310
+ private dispatchLayoutChanged;
311
+ private cloneLayoutNode;
312
+ private cloneFloatingArray;
313
+ }
@@ -0,0 +1,2 @@
1
+ export declare const template: import('lit-html').TemplateResult<1>;
2
+ export declare const styles: import('lit').CSSResult;
@@ -0,0 +1,2 @@
1
+ export { MintDockManagerElement } from './components';
2
+ export * from './types';
@@ -0,0 +1,65 @@
1
+ export type DockLayoutNode = DockSplitNode | DockStackNode;
2
+ export interface DockSplitNode {
3
+ kind: 'split';
4
+ direction: 'horizontal' | 'vertical';
5
+ /**
6
+ * Relative sizes for the split children. Values do not need to sum to 100; they are treated as flex weights.
7
+ */
8
+ sizes?: number[];
9
+ children: DockLayoutNode[];
10
+ }
11
+ export interface DockStackNode {
12
+ kind: 'stack';
13
+ /**
14
+ * Unique pane names that should appear as tabs.
15
+ */
16
+ panes: string[];
17
+ /**
18
+ * Optional pane name that should be active when the layout is rendered.
19
+ */
20
+ activePane?: string;
21
+ }
22
+ export interface DockFloatingPaneBounds {
23
+ left: number;
24
+ top: number;
25
+ width: number;
26
+ height: number;
27
+ }
28
+ export interface DockFloatingStackLayout {
29
+ /**
30
+ * Optional developer supplied identifier that can be used to recognize a floating pane instance.
31
+ */
32
+ id?: string;
33
+ /**
34
+ * Absolute coordinates (in CSS pixels) describing where the floating pane should appear.
35
+ */
36
+ bounds: DockFloatingPaneBounds;
37
+ /**
38
+ * Optional z-index override for the floating pane body. Higher values appear above lower ones.
39
+ */
40
+ zIndex?: number;
41
+ /**
42
+ * Root layout rendered inside the floating window.
43
+ */
44
+ root: DockLayoutNode | null;
45
+ /**
46
+ * Pane that should surface in the floating window header.
47
+ */
48
+ activePane?: string;
49
+ }
50
+ export interface DockLayout {
51
+ root: DockLayoutNode | null;
52
+ floating?: DockFloatingStackLayout[];
53
+ /**
54
+ * Optional caption overrides per pane name, scoped to the entire manager.
55
+ */
56
+ titles?: Record<string, string>;
57
+ }
58
+ export interface DockLayoutSnapshot {
59
+ root: DockLayoutNode | null;
60
+ floating: DockFloatingStackLayout[];
61
+ /**
62
+ * Optional caption overrides per pane name, scoped to the entire manager.
63
+ */
64
+ titles?: Record<string, string>;
65
+ }
@@ -0,0 +1 @@
1
+ export * from './dock-layout';