@revenexx/studio-shared 0.3.3 → 0.4.1

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 (205) hide show
  1. package/dist/module.d.mts +7 -3
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +10 -4
  4. package/dist/runtime/components/Dashboard/DashboardConfirmDialog.d.vue.ts +2 -1
  5. package/dist/runtime/components/Dashboard/DashboardConfirmDialog.vue +1 -1
  6. package/dist/runtime/components/Dashboard/DashboardConfirmDialog.vue.d.ts +2 -1
  7. package/dist/runtime/components/Dashboard/DashboardControls.d.vue.ts +8 -7
  8. package/dist/runtime/components/Dashboard/DashboardControls.vue.d.ts +8 -7
  9. package/dist/runtime/components/Dashboard/DashboardGrid.d.vue.ts +2 -1
  10. package/dist/runtime/components/Dashboard/DashboardGrid.vue +45 -1
  11. package/dist/runtime/components/Dashboard/DashboardGrid.vue.d.ts +2 -1
  12. package/dist/runtime/components/Dashboard/DashboardNameDialog.d.vue.ts +2 -1
  13. package/dist/runtime/components/Dashboard/DashboardNameDialog.vue +1 -1
  14. package/dist/runtime/components/Dashboard/DashboardNameDialog.vue.d.ts +2 -1
  15. package/dist/runtime/components/Dashboard/DashboardPickerDialog.d.vue.ts +2 -1
  16. package/dist/runtime/components/Dashboard/DashboardPickerDialog.vue +1 -1
  17. package/dist/runtime/components/Dashboard/DashboardPickerDialog.vue.d.ts +2 -1
  18. package/dist/runtime/components/Dashboard/DashboardShareDialog.d.vue.ts +2 -1
  19. package/dist/runtime/components/Dashboard/DashboardShareDialog.vue +1 -1
  20. package/dist/runtime/components/Dashboard/DashboardShareDialog.vue.d.ts +2 -1
  21. package/dist/runtime/components/Dashboard/DashboardTopBar.d.vue.ts +9 -4
  22. package/dist/runtime/components/Dashboard/DashboardTopBar.vue.d.ts +9 -4
  23. package/dist/runtime/components/Dashboard/DashboardWidgetConfigDialog.d.vue.ts +8 -6
  24. package/dist/runtime/components/Dashboard/DashboardWidgetConfigDialog.vue +1 -1
  25. package/dist/runtime/components/Dashboard/DashboardWidgetConfigDialog.vue.d.ts +8 -6
  26. package/dist/runtime/components/Dashboard/DashboardWidgetFrame.d.vue.ts +5 -4
  27. package/dist/runtime/components/Dashboard/DashboardWidgetFrame.vue +14 -3
  28. package/dist/runtime/components/Dashboard/DashboardWidgetFrame.vue.d.ts +5 -4
  29. package/dist/runtime/components/Dashboard/DashboardWidgetHost.d.vue.ts +2 -1
  30. package/dist/runtime/components/Dashboard/DashboardWidgetHost.vue.d.ts +2 -1
  31. package/dist/runtime/components/Dashboard/DashboardWidgetIcon.d.vue.ts +2 -1
  32. package/dist/runtime/components/Dashboard/DashboardWidgetIcon.vue.d.ts +2 -1
  33. package/dist/runtime/components/Dashboard/DashboardWidgetLibrary.d.vue.ts +2 -1
  34. package/dist/runtime/components/Dashboard/DashboardWidgetLibrary.vue.d.ts +2 -1
  35. package/dist/runtime/components/Dashboard/DashboardWidgetPreview.d.vue.ts +2 -1
  36. package/dist/runtime/components/Dashboard/DashboardWidgetPreview.vue.d.ts +2 -1
  37. package/dist/runtime/components/DataTable/ColumnsMenu.d.vue.ts +2 -1
  38. package/dist/runtime/components/DataTable/ColumnsMenu.vue.d.ts +2 -1
  39. package/dist/runtime/components/DataTable/DataTable.d.vue.ts +120 -37
  40. package/dist/runtime/components/DataTable/DataTable.vue +493 -53
  41. package/dist/runtime/components/DataTable/DataTable.vue.d.ts +120 -37
  42. package/dist/runtime/components/DataTable/FacetChips.d.vue.ts +2 -1
  43. package/dist/runtime/components/DataTable/FacetChips.vue.d.ts +2 -1
  44. package/dist/runtime/components/DataTable/FacetPanel.d.vue.ts +6 -5
  45. package/dist/runtime/components/DataTable/FacetPanel.vue +57 -8
  46. package/dist/runtime/components/DataTable/FacetPanel.vue.d.ts +6 -5
  47. package/dist/runtime/components/DataTable/FilterMenu.d.vue.ts +6 -5
  48. package/dist/runtime/components/DataTable/FilterMenu.vue +5 -5
  49. package/dist/runtime/components/DataTable/FilterMenu.vue.d.ts +6 -5
  50. package/dist/runtime/components/DataTable/SavedViewsMenu.d.vue.ts +2 -1
  51. package/dist/runtime/components/DataTable/SavedViewsMenu.vue +61 -12
  52. package/dist/runtime/components/DataTable/SavedViewsMenu.vue.d.ts +2 -1
  53. package/dist/runtime/components/DataTable/SortMenu.d.vue.ts +4 -2
  54. package/dist/runtime/components/DataTable/SortMenu.vue +4 -1
  55. package/dist/runtime/components/DataTable/SortMenu.vue.d.ts +4 -2
  56. package/dist/runtime/components/DataTable/ToolbarLabelTrigger.d.vue.ts +23 -0
  57. package/dist/runtime/components/DataTable/ToolbarLabelTrigger.vue +29 -0
  58. package/dist/runtime/components/DataTable/ToolbarLabelTrigger.vue.d.ts +23 -0
  59. package/dist/runtime/components/DataTable/ViewModeSwitch.d.vue.ts +4 -2
  60. package/dist/runtime/components/DataTable/ViewModeSwitch.vue.d.ts +4 -2
  61. package/dist/runtime/components/DataTable/types.d.ts +17 -0
  62. package/dist/runtime/components/Form/FieldCell.d.vue.ts +32 -0
  63. package/dist/runtime/components/Form/FieldCell.vue +46 -0
  64. package/dist/runtime/components/Form/FieldCell.vue.d.ts +32 -0
  65. package/dist/runtime/components/Form/FieldGrid.d.vue.ts +13 -0
  66. package/dist/runtime/components/Form/FieldGrid.vue +11 -0
  67. package/dist/runtime/components/Form/FieldGrid.vue.d.ts +13 -0
  68. package/dist/runtime/components/Form/FormContextCard.d.vue.ts +33 -0
  69. package/dist/runtime/components/Form/FormContextCard.vue +56 -0
  70. package/dist/runtime/components/Form/FormContextCard.vue.d.ts +33 -0
  71. package/dist/runtime/components/Form/FormLayout.d.vue.ts +47 -0
  72. package/dist/runtime/components/Form/FormLayout.vue +169 -0
  73. package/dist/runtime/components/Form/FormLayout.vue.d.ts +47 -0
  74. package/dist/runtime/components/Form/FormSection.d.vue.ts +25 -0
  75. package/dist/runtime/components/Form/FormSection.vue +48 -0
  76. package/dist/runtime/components/Form/FormSection.vue.d.ts +25 -0
  77. package/dist/runtime/components/Form/SaveBar.d.vue.ts +44 -0
  78. package/dist/runtime/components/Form/SaveBar.vue +71 -0
  79. package/dist/runtime/components/Form/SaveBar.vue.d.ts +44 -0
  80. package/dist/runtime/components/Media/MediaFolderTree.d.vue.ts +6 -5
  81. package/dist/runtime/components/Media/MediaFolderTree.vue +1 -2
  82. package/dist/runtime/components/Media/MediaFolderTree.vue.d.ts +6 -5
  83. package/dist/runtime/components/Media/MediaPickerDialog.d.vue.ts +13 -1
  84. package/dist/runtime/components/Media/MediaPickerDialog.vue +206 -54
  85. package/dist/runtime/components/Media/MediaPickerDialog.vue.d.ts +13 -1
  86. package/dist/runtime/components/Media/MediaUploader.d.vue.ts +2 -1
  87. package/dist/runtime/components/Media/MediaUploader.vue +1 -1
  88. package/dist/runtime/components/Media/MediaUploader.vue.d.ts +2 -1
  89. package/dist/runtime/components/Shared/AppIcon.d.vue.ts +21 -0
  90. package/dist/runtime/components/Shared/AppIcon.vue +47 -0
  91. package/dist/runtime/components/Shared/AppIcon.vue.d.ts +21 -0
  92. package/dist/runtime/components/Shared/BuildLogsFlyout.d.vue.ts +2 -1
  93. package/dist/runtime/components/Shared/BuildLogsFlyout.vue.d.ts +2 -1
  94. package/dist/runtime/components/Shared/CardSizeToggle.d.vue.ts +11 -0
  95. package/dist/runtime/components/Shared/CardSizeToggle.vue +19 -0
  96. package/dist/runtime/components/Shared/CardSizeToggle.vue.d.ts +11 -0
  97. package/dist/runtime/components/Shared/DetailSheet.d.vue.ts +60 -0
  98. package/dist/runtime/components/Shared/DetailSheet.vue +211 -0
  99. package/dist/runtime/components/Shared/DetailSheet.vue.d.ts +60 -0
  100. package/dist/runtime/components/Shared/EmptyNote.d.vue.ts +19 -0
  101. package/dist/runtime/components/Shared/EmptyNote.vue +25 -0
  102. package/dist/runtime/components/Shared/EmptyNote.vue.d.ts +19 -0
  103. package/dist/runtime/components/Shared/FloatingPanel.d.vue.ts +7 -6
  104. package/dist/runtime/components/Shared/FloatingPanel.vue.d.ts +7 -6
  105. package/dist/runtime/components/Shared/GitDeploymentSettings.d.vue.ts +2 -1
  106. package/dist/runtime/components/Shared/GitDeploymentSettings.vue.d.ts +2 -1
  107. package/dist/runtime/components/Shared/KpiTile.d.vue.ts +8 -1
  108. package/dist/runtime/components/Shared/KpiTile.vue +10 -9
  109. package/dist/runtime/components/Shared/KpiTile.vue.d.ts +8 -1
  110. package/dist/runtime/components/Shared/ListSurface.d.vue.ts +3 -2
  111. package/dist/runtime/components/Shared/ListSurface.vue.d.ts +3 -2
  112. package/dist/runtime/components/Shared/PageHeader.d.vue.ts +7 -6
  113. package/dist/runtime/components/Shared/PageHeader.vue +15 -4
  114. package/dist/runtime/components/Shared/PageHeader.vue.d.ts +7 -6
  115. package/dist/runtime/components/Shared/RecordLayout.d.vue.ts +8 -7
  116. package/dist/runtime/components/Shared/RecordLayout.vue +1 -2
  117. package/dist/runtime/components/Shared/RecordLayout.vue.d.ts +8 -7
  118. package/dist/runtime/components/Shared/RecordRailCard.d.vue.ts +3 -2
  119. package/dist/runtime/components/Shared/RecordRailCard.vue +3 -3
  120. package/dist/runtime/components/Shared/RecordRailCard.vue.d.ts +3 -2
  121. package/dist/runtime/components/Shared/SelectionBar.d.vue.ts +22 -0
  122. package/dist/runtime/components/Shared/SelectionBar.vue +40 -0
  123. package/dist/runtime/components/Shared/SelectionBar.vue.d.ts +22 -0
  124. package/dist/runtime/components/Shared/SidebarNav.d.vue.ts +39 -4
  125. package/dist/runtime/components/Shared/SidebarNav.vue +71 -25
  126. package/dist/runtime/components/Shared/SidebarNav.vue.d.ts +39 -4
  127. package/dist/runtime/components/Shared/SidebarNavAreas.d.vue.ts +7 -0
  128. package/dist/runtime/components/Shared/SidebarNavAreas.vue +291 -0
  129. package/dist/runtime/components/Shared/SidebarNavAreas.vue.d.ts +7 -0
  130. package/dist/runtime/components/Shared/SidebarNavLink.d.vue.ts +3 -10
  131. package/dist/runtime/components/Shared/SidebarNavLink.vue +31 -5
  132. package/dist/runtime/components/Shared/SidebarNavLink.vue.d.ts +3 -10
  133. package/dist/runtime/components/Shared/SortHeader.d.vue.ts +3 -2
  134. package/dist/runtime/components/Shared/SortHeader.vue +6 -2
  135. package/dist/runtime/components/Shared/SortHeader.vue.d.ts +3 -2
  136. package/dist/runtime/components/Shared/StateCard.d.vue.ts +6 -5
  137. package/dist/runtime/components/Shared/StateCard.vue +1 -1
  138. package/dist/runtime/components/Shared/StateCard.vue.d.ts +6 -5
  139. package/dist/runtime/components/Shared/StudioCard.d.vue.ts +5 -4
  140. package/dist/runtime/components/Shared/StudioCard.vue.d.ts +5 -4
  141. package/dist/runtime/components/Shared/TabBar.d.vue.ts +4 -21
  142. package/dist/runtime/components/Shared/TabBar.vue +30 -13
  143. package/dist/runtime/components/Shared/TabBar.vue.d.ts +4 -21
  144. package/dist/runtime/components/Shared/ViewTab.d.vue.ts +2 -1
  145. package/dist/runtime/components/Shared/ViewTab.vue.d.ts +2 -1
  146. package/dist/runtime/components/Shared/Wizard.d.vue.ts +20 -7
  147. package/dist/runtime/components/Shared/Wizard.vue +9 -5
  148. package/dist/runtime/components/Shared/Wizard.vue.d.ts +20 -7
  149. package/dist/runtime/composables/useDetailSheet.d.ts +20 -0
  150. package/dist/runtime/composables/useDetailSheet.js +50 -0
  151. package/dist/runtime/composables/useMediaLibrary.d.ts +12 -0
  152. package/dist/runtime/composables/usePlatformTenant.d.ts +6 -0
  153. package/dist/runtime/composables/useSavedViews.d.ts +11 -1
  154. package/dist/runtime/composables/useSavedViews.js +4 -4
  155. package/dist/runtime/composables/useWidgetFigures.d.ts +12 -0
  156. package/dist/runtime/composables/useWidgetFigures.js +24 -0
  157. package/dist/runtime/composables/useWidgetHeader.d.ts +15 -0
  158. package/dist/runtime/composables/useWidgetHeader.js +15 -0
  159. package/dist/runtime/lib/activeTenant.d.ts +58 -0
  160. package/dist/runtime/lib/activeTenant.js +45 -0
  161. package/dist/runtime/lib/appIcon.d.ts +48 -0
  162. package/dist/runtime/lib/appIcon.js +27 -0
  163. package/dist/runtime/lib/auditEnvelope.d.ts +43 -0
  164. package/dist/runtime/lib/auditEnvelope.js +55 -0
  165. package/dist/runtime/lib/cardSize.d.ts +13 -0
  166. package/dist/runtime/lib/cardSize.js +20 -0
  167. package/dist/runtime/lib/dashboardIcons.js +2 -0
  168. package/dist/runtime/lib/dataTableFilters.d.ts +22 -0
  169. package/dist/runtime/lib/dataTableFilters.js +5 -0
  170. package/dist/runtime/lib/detailSheet.d.ts +43 -0
  171. package/dist/runtime/lib/detailSheet.js +34 -0
  172. package/dist/runtime/lib/facets.d.ts +13 -0
  173. package/dist/runtime/lib/formLayout.d.ts +164 -0
  174. package/dist/runtime/lib/formLayout.js +117 -0
  175. package/dist/runtime/lib/formLayoutContext.d.ts +26 -0
  176. package/dist/runtime/lib/formLayoutContext.js +1 -0
  177. package/dist/runtime/lib/gridTracks.d.ts +14 -1
  178. package/dist/runtime/lib/gridTracks.js +13 -2
  179. package/dist/runtime/lib/isoLists.d.ts +37 -2
  180. package/dist/runtime/lib/isoLists.js +54 -1
  181. package/dist/runtime/lib/notice.d.ts +14 -0
  182. package/dist/runtime/lib/notice.js +19 -0
  183. package/dist/runtime/lib/pageSize.d.ts +15 -0
  184. package/dist/runtime/lib/pageSize.js +26 -0
  185. package/dist/runtime/lib/rowMove.d.ts +38 -0
  186. package/dist/runtime/lib/rowMove.js +20 -0
  187. package/dist/runtime/lib/sidebarAreas.d.ts +46 -0
  188. package/dist/runtime/lib/sidebarAreas.js +25 -0
  189. package/dist/runtime/lib/sidebarNav.d.ts +21 -2
  190. package/dist/runtime/lib/sidebarNav.js +23 -4
  191. package/dist/runtime/lib/solarIconMap.d.ts +16 -0
  192. package/dist/runtime/lib/solarIconMap.js +326 -0
  193. package/dist/runtime/lib/solarIcons.d.ts +37 -0
  194. package/dist/runtime/lib/solarIcons.js +25 -0
  195. package/dist/runtime/lib/swipeToClose.d.ts +25 -0
  196. package/dist/runtime/lib/swipeToClose.js +118 -0
  197. package/dist/runtime/lib/tableExport.d.ts +31 -0
  198. package/dist/runtime/lib/tableExport.js +143 -0
  199. package/dist/runtime/lib/talkback.d.ts +5 -0
  200. package/dist/runtime/lib/talkback.js +8 -0
  201. package/dist/runtime/lib/talkbackTokenBatch.d.ts +35 -0
  202. package/dist/runtime/lib/talkbackTokenBatch.js +101 -0
  203. package/dist/runtime/types/nav.d.ts +9 -0
  204. package/dist/types.d.mts +8 -0
  205. package/package.json +4 -3
@@ -0,0 +1,291 @@
1
+ <script setup>
2
+ import { AltArrowDown as ChevronDownIcon, AltArrowRight as ChevronIcon } from "#solar-icons";
3
+ import { SIDEBAR_BEST_MATCH, sidebarItemIsCurrent, sidebarItemKey, sidebarItemTarget } from "../../lib/sidebarNav";
4
+ import {
5
+ AREA_AIM_DELAY,
6
+ AREA_CLOSE_DELAY,
7
+ AREA_OPEN_DELAY,
8
+ inSafeTriangle,
9
+ sidebarAreaBlocks
10
+ } from "../../lib/sidebarAreas";
11
+ import SidebarNavLink from "./SidebarNavLink.vue";
12
+ const props = defineProps({
13
+ sections: { type: Array, required: true }
14
+ });
15
+ const t = useT();
16
+ const route = useRoute();
17
+ const best = inject(SIDEBAR_BEST_MATCH, null);
18
+ const blocks = computed(() => sidebarAreaBlocks(props.sections, route.fullPath, best?.value));
19
+ const root = ref(null);
20
+ const panel = ref(null);
21
+ const openKey = ref(null);
22
+ const pinned = ref(false);
23
+ const rect = ref({ left: 0, top: 0, height: 0, width: 0 });
24
+ const titleHeight = ref(0);
25
+ const openSection = computed(
26
+ () => openKey.value ? props.sections.find((s) => s.key === openKey.value) ?? null : null
27
+ );
28
+ let openTimer;
29
+ let aimTimer;
30
+ let closeTimer;
31
+ let apex = null;
32
+ let last = null;
33
+ function headRows(section) {
34
+ return section.label ? section.items.slice(0, 1) : section.items;
35
+ }
36
+ function isOneRow(block) {
37
+ return block.kind === "area" || !listsItems(block.section);
38
+ }
39
+ function blockIsCurrent(block) {
40
+ return block.kind === "section" && headRows(block.section).some((item) => headIsCurrent(block.section, item));
41
+ }
42
+ function listsItems(section) {
43
+ return !!section.label && (section.items.length > 1 || section.items[0]?.label !== section.label);
44
+ }
45
+ function headIsCurrent(section, item) {
46
+ if (listsItems(section)) return false;
47
+ return sidebarItemIsCurrent(item, route.fullPath, best?.value);
48
+ }
49
+ function clearTimers() {
50
+ clearTimeout(openTimer);
51
+ clearTimeout(aimTimer);
52
+ clearTimeout(closeTimer);
53
+ }
54
+ const shelf = ref(null);
55
+ function measure() {
56
+ const aside = root.value?.closest("aside");
57
+ if (!aside) return;
58
+ shelf.value = aside.closest("[data-studio-shelf]");
59
+ const head = aside.firstElementChild;
60
+ titleHeight.value = head?.classList.contains("border-b") ? head.getBoundingClientRect().height : 0;
61
+ const r = aside.getBoundingClientRect();
62
+ const frame = shelf.value?.getBoundingClientRect() ?? r;
63
+ rect.value = { left: r.right + 1, top: frame.top, height: frame.height, width: r.width + 1 };
64
+ }
65
+ function open(key) {
66
+ measure();
67
+ openKey.value = key;
68
+ }
69
+ function close() {
70
+ clearTimers();
71
+ openKey.value = null;
72
+ pinned.value = false;
73
+ apex = null;
74
+ }
75
+ function panelEdge() {
76
+ if (!panel.value) return null;
77
+ const r = panel.value.getBoundingClientRect();
78
+ return [{ x: r.left, y: r.top }, { x: r.left, y: r.bottom }];
79
+ }
80
+ function aimingAtPanel(p) {
81
+ const edge = panelEdge();
82
+ return !!(apex && edge && inSafeTriangle(p, apex, edge[0], edge[1]));
83
+ }
84
+ function onMove(e) {
85
+ if (e.pointerType !== "mouse") return;
86
+ last = { x: e.clientX, y: e.clientY };
87
+ const row = e.target?.closest("[data-area]");
88
+ if (row && row.dataset.area === openKey.value || !openKey.value || !aimingAtPanel(last)) apex = last;
89
+ }
90
+ function onAreaEnter(key, e) {
91
+ if (e.pointerType !== "mouse") return;
92
+ clearTimers();
93
+ if (openKey.value === key) return;
94
+ if (openKey.value) {
95
+ if (aimingAtPanel({ x: e.clientX, y: e.clientY })) {
96
+ aimTimer = setTimeout(() => {
97
+ const under = last && document.elementFromPoint(last.x, last.y)?.closest("[data-area]");
98
+ if (under?.dataset.area === key) open(key);
99
+ }, AREA_AIM_DELAY);
100
+ return;
101
+ }
102
+ open(key);
103
+ return;
104
+ }
105
+ openTimer = setTimeout(() => open(key), AREA_OPEN_DELAY);
106
+ }
107
+ function onAreaLeave() {
108
+ clearTimeout(openTimer);
109
+ }
110
+ function onRowEnter(e) {
111
+ if (e.pointerType !== "mouse" || !openKey.value || pinned.value) return;
112
+ if (aimingAtPanel({ x: e.clientX, y: e.clientY })) return;
113
+ clearTimers();
114
+ closeTimer = setTimeout(close, 60);
115
+ }
116
+ function onLeave(e) {
117
+ if (e.pointerType !== "mouse" || pinned.value) return;
118
+ clearTimeout(openTimer);
119
+ if (!openKey.value) return;
120
+ const to = e.relatedTarget;
121
+ if (to && (panel.value?.contains(to) || root.value?.contains(to))) return;
122
+ closeTimer = setTimeout(close, AREA_CLOSE_DELAY);
123
+ }
124
+ function onEnterKeep() {
125
+ clearTimeout(closeTimer);
126
+ clearTimeout(aimTimer);
127
+ }
128
+ function onAreaClick(section) {
129
+ const target = section.items[0] && sidebarItemTarget(section.items[0]);
130
+ close();
131
+ if (target) void navigateTo(target);
132
+ }
133
+ function focusPanel() {
134
+ nextTick(() => panel.value?.querySelector("a")?.focus());
135
+ }
136
+ function onAreaKey(key, e) {
137
+ if (e.key === "ArrowRight") {
138
+ e.preventDefault();
139
+ pinned.value = true;
140
+ open(key);
141
+ focusPanel();
142
+ }
143
+ }
144
+ function onPanelKey(e) {
145
+ const links = [...panel.value?.querySelectorAll("a") ?? []];
146
+ const i = links.indexOf(document.activeElement);
147
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
148
+ e.preventDefault();
149
+ links[(i + (e.key === "ArrowDown" ? 1 : -1) + links.length) % links.length]?.focus();
150
+ } else if (e.key === "Escape" || e.key === "ArrowLeft") {
151
+ e.preventDefault();
152
+ const key = openKey.value;
153
+ close();
154
+ root.value?.querySelector(`[data-area="${key}"]`)?.focus();
155
+ }
156
+ }
157
+ function onDocDown(e) {
158
+ if (!openKey.value) return;
159
+ const t2 = e.target;
160
+ if (panel.value?.contains(t2) || root.value?.contains(t2)) return;
161
+ close();
162
+ }
163
+ function onDocKey(e) {
164
+ if (e.key === "Escape" && openKey.value) close();
165
+ }
166
+ watch(() => route.fullPath, close);
167
+ onMounted(() => {
168
+ document.addEventListener("pointerdown", onDocDown);
169
+ document.addEventListener("keydown", onDocKey);
170
+ window.addEventListener("resize", measure);
171
+ });
172
+ onBeforeUnmount(() => {
173
+ clearTimers();
174
+ document.removeEventListener("pointerdown", onDocDown);
175
+ document.removeEventListener("keydown", onDocKey);
176
+ window.removeEventListener("resize", measure);
177
+ });
178
+ </script>
179
+
180
+ <template>
181
+ <div ref="root" @pointermove="onMove" @pointerleave="onLeave" @pointerenter="onEnterKeep">
182
+ <!--
183
+ Every labelled section is one row with its icon in a tile (the node
184
+ palette of the Integration Studio, kept neutral). Hairlines divide the
185
+ sections. The route's section lists its entries under its row, flush;
186
+ every other row opens the panel on hover and its first page on click.
187
+ The open section sits on a faint violet wash between its hairlines, so
188
+ it stands out in the list; a one-row block takes the same wash on hover
189
+ (Michael 17.10.).
190
+ -->
191
+ <div
192
+ v-for="(block, i) in blocks"
193
+ :key="block.section.key"
194
+ class="flex flex-col gap-0.5 px-2 py-1"
195
+ :class="[
196
+ i > 0 ? 'border-t border-black/[0.06]' : '',
197
+ block.kind === 'section' && listsItems(block.section) ? 'rx-area-open bg-[#faf8ff]' : '',
198
+ openKey === block.section.key || blockIsCurrent(block) ? 'bg-[#faf8ff]' : '',
199
+ isOneRow(block) ? 'transition-colors hover:bg-[#faf8ff]' : ''
200
+ ]"
201
+ @pointerenter.capture="block.kind === 'section' ? onRowEnter($event) : void 0"
202
+ >
203
+ <template v-if="block.kind === 'section'">
204
+ <NuxtLink
205
+ v-for="item in headRows(block.section)"
206
+ :key="`h-${sidebarItemKey(item)}`"
207
+ :to="sidebarItemTarget(item)"
208
+ :data-nav-current="headIsCurrent(block.section, item) && !listsItems(block.section) || void 0"
209
+ class="group flex h-9 items-center gap-2.5 rounded-md px-2 text-sm font-medium text-[#0B0522] transition-colors"
210
+ >
211
+ <span
212
+ class="flex size-6 shrink-0 items-center justify-center rounded-md transition-colors"
213
+ :class="headIsCurrent(block.section, item) || listsItems(block.section) ? 'bg-primary/10 text-primary' : 'bg-black/[0.04] text-foreground/60 group-hover:bg-primary/10 group-hover:text-primary'"
214
+ >
215
+ <component :is="block.section.icon ?? item.icon" :size="14" />
216
+ </span>
217
+ <span class="min-w-0 flex-1 truncate">{{ block.section.label ?? item.label }}</span>
218
+ <!-- The open section points down at its entries; the others point right at their panel. -->
219
+ <ChevronDownIcon v-if="listsItems(block.section)" :size="12" weight="Bold" class="shrink-0 text-muted-foreground" />
220
+ </NuxtLink>
221
+ <template v-if="listsItems(block.section)">
222
+ <template v-for="item in block.section.items" :key="sidebarItemKey(item)">
223
+ <div v-if="item.heading" class="rx-area-heading">{{ item.heading }}</div>
224
+ <SidebarNavLink class="rx-area-item" :item="item" />
225
+ </template>
226
+ </template>
227
+ </template>
228
+ <button
229
+ v-else
230
+ type="button"
231
+ :data-area="block.section.key"
232
+ class="group flex h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2 text-left text-sm font-medium text-[#0B0522]"
233
+ :aria-expanded="openKey === block.section.key"
234
+ aria-haspopup="true"
235
+ :aria-label="t('shared.nav.area.open', { section: block.section.label ?? '', count: block.section.items.length })"
236
+ @pointerenter="onAreaEnter(block.section.key, $event)"
237
+ @pointerleave="onAreaLeave"
238
+ @click="onAreaClick(block.section)"
239
+ @keydown="onAreaKey(block.section.key, $event)"
240
+ >
241
+ <span
242
+ class="flex size-6 shrink-0 items-center justify-center rounded-md transition-colors group-hover:bg-primary/10 group-hover:text-primary"
243
+ :class="openKey === block.section.key ? 'bg-primary/10 text-primary' : 'bg-black/[0.04] text-foreground/60'"
244
+ >
245
+ <component :is="block.section.icon" v-if="block.section.icon" :size="14" />
246
+ </span>
247
+ <span class="min-w-0 flex-1 truncate">{{ block.section.label }}</span>
248
+ <ChevronIcon :size="12" weight="Bold" class="shrink-0 group-hover:text-primary" :class="openKey === block.section.key ? 'text-primary' : 'text-muted-foreground'" />
249
+ </button>
250
+ </div>
251
+
252
+ <Teleport to="body">
253
+ <!--
254
+ The panel continues the shelf: its frame is the shelf's, the sidebar
255
+ pane's hairline runs down its left edge, and its title rule sits on the
256
+ sidebar's own. A soft shadow to the right lifts it off the page.
257
+ The shelf's frame is gray-400/10 over the lavender page, so it reads
258
+ as #eae9f3; the panel lies over the shelf's edge and would double that
259
+ tint, hence the solid colour.
260
+ -->
261
+ <div
262
+ v-if="openSection"
263
+ ref="panel"
264
+ role="menu"
265
+ :aria-label="openSection.label"
266
+ class="rx-area-panel fixed z-40 flex flex-col overflow-hidden rounded-r-lg border border-l-0 border-[#eae9f3] bg-white outline-1 outline-white/30 shadow-[16px_0_32px_-18px_rgb(42_29_97/0.28)]"
267
+ :style="{ left: `${rect.left}px`, top: `${rect.top}px`, height: `${rect.height}px`, width: `${rect.width}px` }"
268
+ @pointerenter="onEnterKeep"
269
+ @pointerleave="onLeave"
270
+ @keydown="onPanelKey"
271
+ >
272
+ <div class="flex shrink-0 items-center gap-2 border-b border-black/[0.06] px-4 pb-3 pt-4" :style="titleHeight ? { height: `${titleHeight}px` } : void 0">
273
+ <span v-if="openSection.icon" class="flex size-6 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary">
274
+ <component :is="openSection.icon" :size="14" />
275
+ </span>
276
+ <h2 class="min-w-0 flex-1 truncate text-lg font-medium text-[#0B0522]">{{ openSection.label }}</h2>
277
+ </div>
278
+ <div class="flex flex-1 flex-col gap-0.5 overflow-y-auto px-2 py-3">
279
+ <template v-for="item in openSection.items" :key="sidebarItemKey(item)">
280
+ <div v-if="item.heading" class="rx-area-heading">{{ item.heading }}</div>
281
+ <SidebarNavLink class="rx-area-item" :item="item" />
282
+ </template>
283
+ </div>
284
+ </div>
285
+ </Teleport>
286
+ </div>
287
+ </template>
288
+
289
+ <style scoped>
290
+ .rx-area-item :deep(.rx-nav-icon){margin-inline:5px}.rx-area-heading{color:var(--muted-foreground,#6b6880);font-size:11px;font-weight:500;letter-spacing:.04em;padding:10px 8px 2px 42px;text-transform:uppercase}.rx-area-panel{animation:rx-area-in 90ms ease-out}@keyframes rx-area-in{0%{opacity:.4;transform:translateX(-4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.rx-area-panel{animation:none}}
291
+ </style>
@@ -0,0 +1,7 @@
1
+ import type { SidebarNavSection } from '../../types/nav.js';
2
+ type __VLS_Props = {
3
+ sections: SidebarNavSection[];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -1,15 +1,8 @@
1
- /**
2
- * One row of a `SidebarNav` section — always exactly one link, never a group.
3
- *
4
- * An item's `children` are the **tabs of the page this row opens**, not rows
5
- * of their own (see `lib/sidebarNav.ts`), so there is nothing to expand here:
6
- * the row links to the item's route, or — for a pure container that nominates
7
- * no landing page — to its first tab, and stays highlighted while the route is
8
- * on any of them.
9
- */
10
1
  import type { SidebarNavItem } from '../../types/nav.js';
11
2
  type __VLS_Props = {
12
3
  item: SidebarNavItem;
4
+ collapsed?: boolean;
13
5
  };
14
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
15
8
  export default _default;
@@ -1,12 +1,20 @@
1
1
  <script setup>
2
- import { sidebarItemIsCurrent, sidebarItemTarget } from "../../lib/sidebarNav";
2
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@revenexx/studio";
3
+ import { SIDEBAR_BEST_MATCH, sidebarItemIsCurrent, sidebarItemTarget } from "../../lib/sidebarNav";
3
4
  const props = defineProps({
4
- item: { type: Object, required: true }
5
+ item: { type: Object, required: true },
6
+ collapsed: { type: Boolean, required: false }
5
7
  });
6
8
  const t = useT();
7
9
  const route = useRoute();
8
10
  const target = computed(() => sidebarItemTarget(props.item));
9
- const current = computed(() => sidebarItemIsCurrent(props.item, route.path));
11
+ const best = inject(SIDEBAR_BEST_MATCH, null);
12
+ const current = computed(() => sidebarItemIsCurrent(props.item, route.fullPath, best?.value));
13
+ const iconRowClass = computed(() => [
14
+ "group relative flex size-9 items-center justify-center rounded-md transition-colors hover:text-primary",
15
+ current.value ? "bg-primary/10 text-[#0B0522]" : "text-foreground/70 hover:bg-primary/5",
16
+ props.item.preview ? "opacity-70" : ""
17
+ ]);
10
18
  const rowClass = computed(() => [
11
19
  "group flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-sm transition-colors hover:text-primary",
12
20
  current.value ? "bg-primary/10 text-[#0B0522] font-medium" : "text-foreground/80 hover:bg-primary/5",
@@ -15,8 +23,26 @@ const rowClass = computed(() => [
15
23
  </script>
16
24
 
17
25
  <template>
18
- <NuxtLink v-if="target" :to="target" :class="rowClass">
19
- <component :is="item.icon" v-if="item.icon" :size="14" :stroke-width="2" class="shrink-0 text-foreground/60 group-hover:text-primary" />
26
+ <TooltipProvider v-if="target && collapsed" :delay-duration="200">
27
+ <Tooltip>
28
+ <TooltipTrigger as-child>
29
+ <NuxtLink :to="target" :class="iconRowClass" :data-nav-current="current || void 0" :aria-label="item.label">
30
+ <component :is="item.icon" v-if="item.icon" :size="18" :stroke-width="2" class="rx-nav-icon shrink-0" :class="current ? 'text-primary' : 'text-foreground/60 group-hover:text-primary'" />
31
+ <span v-else class="text-sm font-medium">{{ item.label.slice(0, 1) }}</span>
32
+ <span
33
+ v-if="item.badge !== null && item.badge !== void 0"
34
+ class="absolute right-1 top-1 size-1.5 rounded-full bg-primary"
35
+ aria-hidden="true"
36
+ />
37
+ </NuxtLink>
38
+ </TooltipTrigger>
39
+ <TooltipContent side="right" class="text-sm">
40
+ {{ item.label }}<template v-if="item.badge !== null && item.badge !== void 0 && item.badge !== 'dot'"> · {{ item.badge }}</template>
41
+ </TooltipContent>
42
+ </Tooltip>
43
+ </TooltipProvider>
44
+ <NuxtLink v-else-if="target" :to="target" :class="rowClass" :data-nav-current="current || void 0">
45
+ <component :is="item.icon" v-if="item.icon" :size="14" :stroke-width="2" class="rx-nav-icon shrink-0 text-foreground/60 group-hover:text-primary" />
20
46
  <span class="min-w-0 flex-1 truncate flex items-center gap-1.5">
21
47
  {{ item.label }}
22
48
  <span
@@ -1,15 +1,8 @@
1
- /**
2
- * One row of a `SidebarNav` section — always exactly one link, never a group.
3
- *
4
- * An item's `children` are the **tabs of the page this row opens**, not rows
5
- * of their own (see `lib/sidebarNav.ts`), so there is nothing to expand here:
6
- * the row links to the item's route, or — for a pure container that nominates
7
- * no landing page — to its first tab, and stays highlighted while the route is
8
- * on any of them.
9
- */
10
1
  import type { SidebarNavItem } from '../../types/nav.js';
11
2
  type __VLS_Props = {
12
3
  item: SidebarNavItem;
4
+ collapsed?: boolean;
13
5
  };
14
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
15
8
  export default _default;
@@ -9,12 +9,13 @@ declare var __VLS_1: {};
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  toggle: (column: string) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  onToggle?: ((column: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
19
20
  type __VLS_WithSlots<T, S> = T & {
20
21
  new (): {
@@ -18,7 +18,7 @@ const sortIcon = computed(() => {
18
18
  <template>
19
19
  <button
20
20
  type="button"
21
- class="group inline-flex min-w-0 max-w-full cursor-pointer items-center gap-1.5 -m-1 p-1 rounded-md text-left transition-colors hover:text-primary"
21
+ class="group inline-flex min-w-0 cursor-pointer items-center gap-1.5 -my-1 -ml-1 mr-1 p-1 rounded-md text-left transition-colors hover:text-primary"
22
22
  :class="alignRight ? 'flex-row-reverse w-full justify-end' : ''"
23
23
  @click="emit('toggle', column)"
24
24
  >
@@ -26,7 +26,11 @@ const sortIcon = computed(() => {
26
26
  and a heading longer than its column simply prints over the next one —
27
27
  "SortierungGeändert" on a category list, with no hint that two columns
28
28
  are involved. The cell carries the full text as its `title`. -->
29
- <span class="min-w-0 truncate"><slot /></span>
29
+ <!-- Breaks only between words — „Kundennum-mer“ read as a typo (Re-QA
30
+ 18.10.). The left margin pulls the hover ground out to the cell edge; the
31
+ right margin gives the 4px back, so a column sized to its content
32
+ counts the whole button and the sort icon stays inside it. -->
33
+ <span class="min-w-0 break-normal leading-tight"><slot /></span>
30
34
  <component
31
35
  :is="sortIcon"
32
36
  weight="Linear"
@@ -9,12 +9,13 @@ declare var __VLS_1: {};
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  };
12
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  toggle: (column: string) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  onToggle?: ((column: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
19
20
  type __VLS_WithSlots<T, S> = T & {
20
21
  new (): {
@@ -14,16 +14,17 @@ type __VLS_Props = {
14
14
  title: string;
15
15
  description?: string;
16
16
  };
17
- declare var __VLS_22: {}, __VLS_28: {};
17
+ declare var __VLS_31: {}, __VLS_39: {};
18
18
  type __VLS_Slots = {} & {
19
- description?: (props: typeof __VLS_22) => any;
19
+ description?: (props: typeof __VLS_31) => any;
20
20
  } & {
21
- actions?: (props: typeof __VLS_28) => any;
21
+ actions?: (props: typeof __VLS_39) => any;
22
22
  };
23
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
24
  variant: Variant;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
27
28
  export default _default;
28
29
  type __VLS_WithSlots<T, S> = T & {
29
30
  new (): {
@@ -27,7 +27,7 @@ const tileClass = computed(
27
27
 
28
28
  <template>
29
29
  <Card class="bg-white/60 backdrop-blur-sm">
30
- <CardHeader class="items-center text-center">
30
+ <CardHeader class="items-center justify-items-center text-center">
31
31
  <div
32
32
  class="flex size-12 items-center justify-center rounded-full mb-2"
33
33
  :class="tileClass"
@@ -14,16 +14,17 @@ type __VLS_Props = {
14
14
  title: string;
15
15
  description?: string;
16
16
  };
17
- declare var __VLS_22: {}, __VLS_28: {};
17
+ declare var __VLS_31: {}, __VLS_39: {};
18
18
  type __VLS_Slots = {} & {
19
- description?: (props: typeof __VLS_22) => any;
19
+ description?: (props: typeof __VLS_31) => any;
20
20
  } & {
21
- actions?: (props: typeof __VLS_28) => any;
21
+ actions?: (props: typeof __VLS_39) => any;
22
22
  };
23
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
24
24
  variant: Variant;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
27
28
  export default _default;
28
29
  type __VLS_WithSlots<T, S> = T & {
29
30
  new (): {
@@ -1,12 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  to?: string;
3
3
  };
4
- declare var __VLS_6: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_6) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -1,12 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  to?: string;
3
3
  };
4
- declare var __VLS_6: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_6) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -1,23 +1,3 @@
1
- /**
2
- * Underline tab bar — the standard cockpit tabs. A full-width hairline sits
3
- * behind the row; the active/hover indicator is a 2px bar spanning exactly the
4
- * label width (inset-x-2.5 = the button's px-2.5), sitting on the baseline over
5
- * the hairline. Active = primary; hover = soft primary. Tabs scroll
6
- * horizontally on overflow. To bleed the line to the panel edges, pass e.g.
7
- * `class="-mx-4 px-4"` from a padded page.
8
- *
9
- * ## `sticky`
10
- *
11
- * On by default, because the original job was a detail page: the row glues
12
- * itself to the bottom of the sticky `PageHeader` (hence the magic `57px`) and
13
- * frosts its background so content scrolls through.
14
- *
15
- * Off for a row INSIDE a panel — the queue tabs between a DataTable's toolbar
16
- * and its header, say. There the offset is wrong (there is no page header above
17
- * it) and the frosted layer is worse than nothing, because the panel already
18
- * has a background of its own and the blur only muddies the rows scrolling past
19
- * underneath. Same tabs, same indicator, same hairline; just not pinned.
20
- */
21
1
  export interface TabItem {
22
2
  key: string;
23
3
  label: string;
@@ -28,12 +8,15 @@ type __VLS_Props = {
28
8
  modelValue: string;
29
9
  /** Pin to the page header. Off for a bar inside a panel. */
30
10
  sticky?: boolean;
11
+ /** Accessible name of the tab list. */
12
+ label?: string;
31
13
  };
32
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
15
  "update:modelValue": (key: string) => any;
34
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
17
  "onUpdate:modelValue"?: ((key: string) => any) | undefined;
36
18
  }>, {
37
19
  sticky: boolean;
38
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
39
22
  export default _default;