@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
@@ -1,7 +1,10 @@
1
1
  <script setup>
2
+ import { Progress } from "@revenexx/studio";
2
3
  import { CloseCircle, MenuDots, Settings } from "#solar-icons";
3
4
  import { computed } from "vue";
4
5
  import WidgetIcon from "./DashboardWidgetIcon.vue";
6
+ import { provideWidgetHeader } from "../../composables/useWidgetHeader";
7
+ import { figuresText, provideWidgetFigures } from "../../composables/useWidgetFigures";
5
8
  import { widgetTitle } from "../../lib/widgetRegistry";
6
9
  const props = defineProps({
7
10
  definition: { type: Object, required: false },
@@ -13,14 +16,17 @@ defineEmits(["configure", "remove"]);
13
16
  const t = useT();
14
17
  const heading = computed(() => widgetTitle(props.definition, t, props.title));
15
18
  const bare = computed(() => props.definition?.bare === true);
19
+ const status = provideWidgetHeader();
20
+ const figures = provideWidgetFigures();
21
+ const figuresAttr = computed(() => figuresText(figures.value) || void 0);
16
22
  </script>
17
23
 
18
24
  <template>
19
- <div class="relative h-full min-h-0" :class="editing ? 'select-none' : ''">
25
+ <div class="relative h-full min-h-0" :class="editing ? 'select-none' : ''" data-dashboard-widget :data-widget-title="heading" :data-widget-figures="figuresAttr">
20
26
  <!-- Bare widgets keep the card surface they already had; the frame stays
21
27
  out of the way so the migration is a move, not a redesign. -->
22
28
  <template v-if="bare">
23
- <div class="h-full min-h-0 overflow-hidden">
29
+ <div class="h-full min-h-0 overflow-hidden" data-widget-body>
24
30
  <slot />
25
31
  </div>
26
32
  </template>
@@ -35,8 +41,13 @@ const bare = computed(() => props.definition?.bare === true);
35
41
  {{ heading }}
36
42
  </h3>
37
43
  </div>
44
+ <div v-if="status" class="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground" aria-live="polite">
45
+ <span class="truncate">{{ status.text }}</span>
46
+ <Progress v-if="status.busy && status.progress != null" :model-value="status.progress" class="h-1 w-16 shrink-0" />
47
+ <span v-else-if="status.busy" class="size-3 shrink-0 animate-spin rounded-full border-2 border-primary/25 border-t-primary" aria-hidden="true" />
48
+ </div>
38
49
  </div>
39
- <div class="min-h-0 flex-1 overflow-auto">
50
+ <div class="min-h-0 flex-1 overflow-auto" data-widget-body>
40
51
  <slot />
41
52
  </div>
42
53
  </div>
@@ -5,20 +5,21 @@ type __VLS_Props = {
5
5
  editing?: boolean;
6
6
  configurable?: boolean;
7
7
  };
8
- declare var __VLS_1: {}, __VLS_6: {};
8
+ declare var __VLS_1: {}, __VLS_13: {};
9
9
  type __VLS_Slots = {} & {
10
10
  default?: (props: typeof __VLS_1) => any;
11
11
  } & {
12
- default?: (props: typeof __VLS_6) => any;
12
+ default?: (props: typeof __VLS_13) => any;
13
13
  };
14
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  remove: () => any;
16
16
  configure: () => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
18
  onRemove?: (() => any) | undefined;
19
19
  onConfigure?: (() => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
22
23
  export default _default;
23
24
  type __VLS_WithSlots<T, S> = T & {
24
25
  new (): {
@@ -2,5 +2,6 @@ import type { DashboardWidget } from '../../types/dashboard.js';
2
2
  type __VLS_Props = {
3
3
  widget: DashboardWidget;
4
4
  };
5
- 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>;
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;
6
7
  export default _default;
@@ -2,5 +2,6 @@ import type { DashboardWidget } from '../../types/dashboard.js';
2
2
  type __VLS_Props = {
3
3
  widget: DashboardWidget;
4
4
  };
5
- 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>;
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;
6
7
  export default _default;
@@ -2,7 +2,8 @@ type __VLS_Props = {
2
2
  name?: string;
3
3
  size?: number;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
6
  size: number;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -2,7 +2,8 @@ type __VLS_Props = {
2
2
  name?: string;
3
3
  size?: number;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
6
  size: number;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  */
12
12
  installedApps?: string[];
13
13
  };
14
- 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, {
15
15
  "update:open": (value: boolean) => any;
16
16
  add: (definition: WidgetDefinition) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -20,4 +20,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
20
20
  }>, {
21
21
  installedApps: string[];
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
23
24
  export default _default;
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  */
12
12
  installedApps?: string[];
13
13
  };
14
- 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, {
15
15
  "update:open": (value: boolean) => any;
16
16
  add: (definition: WidgetDefinition) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -20,4 +20,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
20
20
  }>, {
21
21
  installedApps: string[];
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
23
24
  export default _default;
@@ -16,7 +16,8 @@ type __VLS_Props = {
16
16
  shape: WidgetPreviewShape;
17
17
  dimmed?: boolean;
18
18
  };
19
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
20
  dimmed: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
22
23
  export default _default;
@@ -16,7 +16,8 @@ type __VLS_Props = {
16
16
  shape: WidgetPreviewShape;
17
17
  dimmed?: boolean;
18
18
  };
19
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
20
  dimmed: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
22
23
  export default _default;
@@ -4,11 +4,12 @@ type __VLS_Props = {
4
4
  /** Set of currently visible column keys. */
5
5
  visible: Set<string>;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  toggle: (key: string) => any;
9
9
  reorder: (from: number, to: number) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onToggle?: ((key: string) => any) | undefined;
12
12
  onReorder?: ((from: number, to: number) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -4,11 +4,12 @@ type __VLS_Props = {
4
4
  /** Set of currently visible column keys. */
5
5
  visible: Set<string>;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  toggle: (key: string) => any;
9
9
  reorder: (from: number, to: number) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onToggle?: ((key: string) => any) | undefined;
12
12
  onReorder?: ((from: number, to: number) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -1,15 +1,7 @@
1
1
  import type { Facet, FacetSelection } from '../../lib/facets.js';
2
2
  import type { DataTableColumn, DataTableFilter, DataTableRail, DataTableSavedViews, DataTableState, DataTableViewMode, RowKey, SortState } from './types.js';
3
- declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
- readonly "onUpdate:sort"?: ((value: SortState) => any) | undefined;
6
- readonly "onUpdate:page"?: ((value: number) => any) | undefined;
7
- readonly "onUpdate:viewMode"?: ((value: string) => any) | undefined;
8
- readonly "onUpdate:railOpen"?: ((value: boolean) => any) | undefined;
9
- readonly "onUpdate:facetSelection"?: ((value: FacetSelection) => any) | undefined;
10
- readonly onRowClick?: ((row: T) => any) | undefined;
11
- readonly onStateChange?: ((state: DataTableState) => any) | undefined;
12
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:sort" | "onUpdate:page" | "onUpdate:viewMode" | "onUpdate:railOpen" | "onUpdate:facetSelection" | "onRowClick" | "onStateChange"> & ({
3
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
13
5
  data: T[];
14
6
  columns: DataTableColumn<T>[];
15
7
  rowKey: RowKey<T>;
@@ -82,6 +74,12 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
82
74
  scrollBody?: boolean | "fit" | {
83
75
  maxHeight?: string;
84
76
  };
77
+ /**
78
+ * Extra room `'fit'` keeps free under the table — for a bar the host floats
79
+ * over the bottom of the list while rows are selected, so it never covers
80
+ * the pagination row (Re-QA 18.10.).
81
+ */
82
+ reserveBottom?: number;
85
83
  pagination?: boolean | {
86
84
  pageSize?: number;
87
85
  };
@@ -95,11 +93,68 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
95
93
  emptyText?: string;
96
94
  groupBy?: ((row: T) => string[]) | null;
97
95
  groupEmptyLabel?: string;
96
+ /** The row whose record is open beside the table (a DetailSheet), marked so
97
+ * reading down the list keeps the place visible (PE-690). */
98
+ activeRowKey?: string | number | null;
99
+ /**
100
+ * A row's own tint — a quantity tier set apart under the SKU it belongs to.
101
+ * Replaces the row's default ground rather than stacking on it: two
102
+ * translucent backgrounds on one element are whichever Tailwind emitted last.
103
+ */
104
+ rowClass?: ((row: T) => string | null | undefined) | null;
105
+ /**
106
+ * Rows the operator orders by dragging (PE-952). Draws a handle in a leading
107
+ * column; a drop — or the arrow keys on a focused handle — emits `rowMove`
108
+ * with the new order. The table writes nothing: what a position MEANS, and
109
+ * which rows have to be written for it, is the surface's to decide.
110
+ */
111
+ reorderable?: boolean;
112
+ /**
113
+ * Why the handles are off right now, or null when they are on. The surface
114
+ * knows the cases this component cannot see — a sort that is not the
115
+ * sequence, a write still in flight. The table adds its own: a search, a
116
+ * filter or a grouping, under any of which "the row above" is not the row
117
+ * above in the sequence.
118
+ */
119
+ reorderDisabled?: string | null;
120
+ /**
121
+ * Below 768px every row is drawn as a card — title, status badge, two lines
122
+ * of key facts — instead of a grid two columns of which fit (R4, Charge 2).
123
+ * Off for a table that is already narrow by nature.
124
+ */
125
+ mobileCards?: boolean;
126
+ /** `localStorage` key the row-height choice is remembered under (D4). */
127
+ densityKey?: string;
128
+ /**
129
+ * Which table the rows-per-page choice is remembered for (PE-1052). Falls
130
+ * back to the saved views' `storageKey`; with neither, the size is not kept.
131
+ */
132
+ pageSizeKey?: string | null;
133
+ /**
134
+ * A table set INTO a card on a detail page (Michael 14.10.): no frame or
135
+ * corners of its own, the grey head row running edge to edge, and the
136
+ * search row plain white — the tinted toolbar is a list page's chrome, and
137
+ * inside a card it read as a second box with too little contrast.
138
+ */
139
+ embedded?: boolean;
140
+ /**
141
+ * Draw the control row at all. A detail-page card hides it until the
142
+ * operator asks (the filter toggle in the card head, Michael 14.10.), so a
143
+ * table of three rows is three rows and not a toolbar with a table under it.
144
+ */
145
+ toolbar?: boolean;
98
146
  } & {
147
+ query?: string;
99
148
  sort?: SortState;
100
149
  page?: number;
101
150
  viewMode?: string;
102
151
  railOpen?: boolean;
152
+ /**
153
+ * Row height (D4, Charge 2). Standard is 44px with a second line only in the
154
+ * identifying column; compact is 36px and one line everywhere. The reader's
155
+ * choice, remembered across lists — it is about their screen, not one list.
156
+ */
157
+ density?: "standard" | "compact";
103
158
  /**
104
159
  * The committed facet selection. Two-way so a chip removed under the toolbar,
105
160
  * a facet picked in the surface's pinned rail and the panel's own Apply all
@@ -107,38 +162,66 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
107
162
  * URL without this component holding a second copy to drift from.
108
163
  */
109
164
  facetSelection?: FacetSelection;
110
- }) & Partial<{}>> & import("vue").PublicProps;
111
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
165
+ }) & {
166
+ onRowClick?: ((row: T) => any) | undefined;
167
+ onStateChange?: ((state: DataTableState) => any) | undefined;
168
+ onOrderChange?: ((keys: (string | number)[]) => any) | undefined;
169
+ onRowMove?: ((move: {
170
+ key: string | number;
171
+ from: number;
172
+ to: number;
173
+ keys: (string | number)[];
174
+ }) => any) | undefined;
175
+ "onUpdate:query"?: ((value: string) => any) | undefined;
176
+ "onUpdate:sort"?: ((value: SortState) => any) | undefined;
177
+ "onUpdate:page"?: ((value: number) => any) | undefined;
178
+ "onUpdate:viewMode"?: ((value: string) => any) | undefined;
179
+ "onUpdate:railOpen"?: ((value: boolean) => any) | undefined;
180
+ "onUpdate:density"?: ((value: "compact" | "standard") => any) | undefined;
181
+ "onUpdate:facetSelection"?: ((value: FacetSelection) => any) | undefined;
182
+ }> & (typeof globalThis extends {
183
+ __VLS_PROPS_FALLBACK: infer P;
184
+ } ? P : {});
185
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
186
+ visibleColumns: any;
187
+ }>) => void;
112
188
  attrs: any;
113
189
  slots: {
114
- [x: string]: ((props: {}) => any) | undefined;
115
- } & {
116
- [x: string]: ((props: {
117
- row: any;
118
- }) => any) | undefined;
119
- } & {
120
- 'filter-menu'?: (props: {}) => any;
121
- } & {
122
- scope?: (props: {}) => any;
123
- } & {
124
- 'toolbar-left'?: (props: {}) => any;
125
- } & {
126
- 'toolbar-right'?: (props: {}) => any;
127
- } & {
128
- actions?: (props: {}) => any;
129
- } & {
190
+ [name: `header-${string}`]: (props: Record<string, never>) => unknown;
191
+ [name: `cell-${string}`]: (props: {
192
+ row: T;
193
+ }) => unknown;
194
+ 'filter-menu'?: (props: Record<string, never>) => unknown;
195
+ scope?: (props: Record<string, never>) => unknown;
196
+ 'toolbar-left'?: (props: Record<string, never>) => unknown;
197
+ 'toolbar-right'?: (props: Record<string, never>) => unknown;
198
+ actions?: (props: Record<string, never>) => unknown;
130
199
  view?: (props: {
131
- rows: any;
132
- loading: any;
133
- }) => any;
134
- } & {
135
- empty?: (props: {}) => any;
200
+ rows: T[];
201
+ loading: boolean;
202
+ }) => unknown;
203
+ empty?: (props: {
204
+ query: string;
205
+ filters: {
206
+ label: string;
207
+ values: string[];
208
+ }[];
209
+ clear: () => void;
210
+ }) => unknown;
136
211
  };
137
- emit: (((evt: "rowClick", row: T) => void) & ((evt: "stateChange", state: DataTableState) => void)) & (((evt: "update:sort", value: SortState) => void) & ((evt: "update:page", value: number) => void) & ((evt: "update:viewMode", value: string) => void) & ((evt: "update:railOpen", value: boolean) => void) & ((evt: "update:facetSelection", value: FacetSelection) => void));
212
+ emit: (((evt: "rowClick", row: T) => void) & ((evt: "stateChange", state: DataTableState) => void) & ((evt: "orderChange", keys: (string | number)[]) => void) & ((evt: "rowMove", move: {
213
+ key: string | number;
214
+ from: number;
215
+ to: number;
216
+ keys: (string | number)[];
217
+ }) => void)) & (((event: "update:query", value: string) => void) & ((event: "update:sort", value: SortState) => void) & ((event: "update:page", value: number) => void) & ((event: "update:viewMode", value: string) => void) & ((event: "update:railOpen", value: boolean) => void) & ((event: "update:density", value: "compact" | "standard") => void) & ((event: "update:facetSelection", value: FacetSelection) => void));
138
218
  }>) => import("vue").VNode & {
139
- __ctx?: Awaited<typeof __VLS_setup>;
219
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
140
220
  };
221
+ declare const _default: typeof __VLS_export;
141
222
  export default _default;
142
- type __VLS_PrettifyLocal<T> = {
223
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
143
224
  [K in keyof T]: T[K];
144
- } & {};
225
+ } : {
226
+ [K in keyof T as K]: T[K];
227
+ }) & {};