@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
package/dist/module.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as nuxt_schema from 'nuxt/schema';
1
+ import { NuxtModule } from '@nuxt/schema';
2
2
  export * from '../dist/runtime/components/DataTable/types.js';
3
3
  export * from '../dist/runtime/types/storage.js';
4
4
  export * from '../dist/runtime/types/dashboard.js';
@@ -11,10 +11,14 @@ export { MediaLibraryClient } from '../dist/runtime/composables/useMediaLibrary.
11
11
  export { SavedViewsStore, StoredSavedView } from '../dist/runtime/composables/useSavedViews.js';
12
12
  export { WidgetCategory, WidgetCategoryGroup, WidgetConfigField, WidgetDefinition, WidgetPreviewShape, WidgetRegistry } from '../dist/runtime/lib/widgetRegistry.js';
13
13
  export { StickyListView } from '../dist/runtime/composables/useStickyListView.js';
14
+ export { DetailSheetBinding } from '../dist/runtime/composables/useDetailSheet.js';
14
15
  export { FloatingPanelDock, FloatingPanelMode, FloatingPanelOptions } from '../dist/runtime/composables/useFloatingPanel.js';
16
+ export { WidgetHeaderStatus } from '../dist/runtime/composables/useWidgetHeader.js';
17
+ export { WidgetFigure } from '../dist/runtime/composables/useWidgetFigures.js';
15
18
  export { IsoOption } from '../dist/runtime/lib/isoLists.js';
16
19
  export { Translate, TranslateNamed, Translator } from '../dist/runtime/lib/i18nBridge.js';
20
+ export { FieldSpan, FormContextRow, SectionOffset, SpanSource } from '../dist/runtime/lib/formLayout.js';
17
21
 
18
- declare const _default: nuxt_schema.NuxtModule<nuxt_schema.ModuleOptions, nuxt_schema.ModuleOptions, false>;
22
+ declare const studioShared: NuxtModule;
19
23
 
20
- export { _default as default };
24
+ export { studioShared as default };
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "studio-shared",
3
3
  "configKey": "studioShared",
4
- "version": "0.3.3",
4
+ "version": "0.4.1",
5
5
  "builder": {
6
- "@nuxt/module-builder": "1.0.2",
6
+ "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { join } from 'node:path';
2
2
  import { defineNuxtModule, createResolver, addComponentsDir, addImports } from '@nuxt/kit';
3
3
 
4
- const module$1 = defineNuxtModule({
4
+ const studioShared = defineNuxtModule({
5
5
  meta: {
6
6
  name: "studio-shared",
7
7
  configKey: "studioShared"
@@ -20,7 +20,7 @@ const module$1 = defineNuxtModule({
20
20
  nuxt.options.vite = nuxt.options.vite || {};
21
21
  nuxt.options.vite.resolve = nuxt.options.vite.resolve || {};
22
22
  const dedupe = nuxt.options.vite.resolve.dedupe ??= [];
23
- for (const pkg of ["@revenexx/studio-shared", "@revenexx/talkback-js", "centrifuge"]) {
23
+ for (const pkg of ["@revenexx/studio-shared", "@revenexx/talkback-js", "centrifuge", "vue-sonner"]) {
24
24
  if (!dedupe.includes(pkg)) dedupe.push(pkg);
25
25
  }
26
26
  nuxt.options.runtimeConfig.public.talkbackHost ??= "";
@@ -42,6 +42,8 @@ const module$1 = defineNuxtModule({
42
42
  { name: "useSavedViews", from: join(runtime, "composables/useSavedViews"), priority: -1 },
43
43
  // The narrowing a list was left in, kept across a page change (PE-608).
44
44
  { name: "useStickyListView", from: join(runtime, "composables/useStickyListView"), priority: -1 },
45
+ // Which record a list's DetailSheet shows, kept in `?<key>=<id>` (PE-691).
46
+ { name: "useDetailSheet", from: join(runtime, "composables/useDetailSheet"), priority: -1 },
45
47
  // A panel that docks to either side of a canvas, floats anywhere on it,
46
48
  // or collapses to a pill — and is dragged between those by its header.
47
49
  // Lifted out of the integration studio's workflow editor so a second
@@ -60,7 +62,11 @@ const module$1 = defineNuxtModule({
60
62
  "useTalkbackPresence"
61
63
  ].map((name) => ({ name, from: join(runtime, "composables/useTalkbackChannels") })));
62
64
  addImports([
63
- { name: "useDashboards", from: join(runtime, "composables/useDashboards") }
65
+ { name: "useDashboards", from: join(runtime, "composables/useDashboards") },
66
+ // A widget's busy status, shown in its frame's header.
67
+ { name: "useWidgetHeader", from: join(runtime, "composables/useWidgetHeader") },
68
+ // A widget's own figures, preferred over its screen text by readers.
69
+ { name: "useWidgetFigures", from: join(runtime, "composables/useWidgetFigures") }
64
70
  ]);
65
71
  addImports([
66
72
  { name: "useT", from: join(runtime, "composables/useT") },
@@ -69,4 +75,4 @@ const module$1 = defineNuxtModule({
69
75
  }
70
76
  });
71
77
 
72
- export { module$1 as default };
78
+ export { studioShared as default };
@@ -5,11 +5,12 @@ type __VLS_Props = {
5
5
  confirmLabel: string;
6
6
  destructive?: boolean;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:open": (value: boolean) => any;
10
10
  confirm: () => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
13
  onConfirm?: (() => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
@@ -15,7 +15,7 @@ const t = useT();
15
15
  <AlertDialog :open="open" @update:open="(o) => {
16
16
  if (!o) emit('update:open', false);
17
17
  }">
18
- <AlertDialogContent>
18
+ <AlertDialogContent class="sm:max-w-xl">
19
19
  <AlertDialogHeader>
20
20
  <AlertDialogTitle>{{ title }}</AlertDialogTitle>
21
21
  <AlertDialogDescription v-if="description">{{ description }}</AlertDialogDescription>
@@ -5,11 +5,12 @@ type __VLS_Props = {
5
5
  confirmLabel: string;
6
6
  destructive?: boolean;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:open": (value: boolean) => any;
10
10
  confirm: () => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
13
  onConfirm?: (() => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
@@ -8,15 +8,15 @@ type __VLS_Props = {
8
8
  /** House-header sizing: `h-7` studio buttons instead of the greeting bar's pills. */
9
9
  compact?: boolean;
10
10
  };
11
- declare var __VLS_149: {
12
- pillClass: any;
13
- paneClass: any;
14
- compact: any;
11
+ declare var __VLS_180: {
12
+ pillClass: "group cursor-pointer rounded-lg border border-gray-400/10 outline-1 outline-white/30 transition-colors hover:border-primary/50 disabled:cursor-not-allowed disabled:opacity-55 disabled:hover:border-gray-400/10";
13
+ paneClass: "flex items-center gap-1.5 rounded-lg bg-white px-2.5 py-1.5 text-sm font-medium text-[#0B0522] transition-colors group-hover:bg-muted/60 group-disabled:group-hover:bg-white";
14
+ compact: boolean;
15
15
  };
16
16
  type __VLS_Slots = {} & {
17
- scope?: (props: typeof __VLS_149) => any;
17
+ scope?: (props: typeof __VLS_180) => any;
18
18
  };
19
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
20
20
  PILL: string;
21
21
  PILL_PANE: string;
22
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -48,7 +48,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
48
48
  }>, {
49
49
  compact: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
51
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
+ declare const _default: typeof __VLS_export;
52
53
  export default _default;
53
54
  type __VLS_WithSlots<T, S> = T & {
54
55
  new (): {
@@ -8,15 +8,15 @@ type __VLS_Props = {
8
8
  /** House-header sizing: `h-7` studio buttons instead of the greeting bar's pills. */
9
9
  compact?: boolean;
10
10
  };
11
- declare var __VLS_149: {
12
- pillClass: any;
13
- paneClass: any;
14
- compact: any;
11
+ declare var __VLS_180: {
12
+ pillClass: "group cursor-pointer rounded-lg border border-gray-400/10 outline-1 outline-white/30 transition-colors hover:border-primary/50 disabled:cursor-not-allowed disabled:opacity-55 disabled:hover:border-gray-400/10";
13
+ paneClass: "flex items-center gap-1.5 rounded-lg bg-white px-2.5 py-1.5 text-sm font-medium text-[#0B0522] transition-colors group-hover:bg-muted/60 group-disabled:group-hover:bg-white";
14
+ compact: boolean;
15
15
  };
16
16
  type __VLS_Slots = {} & {
17
- scope?: (props: typeof __VLS_149) => any;
17
+ scope?: (props: typeof __VLS_180) => any;
18
18
  };
19
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
20
20
  PILL: string;
21
21
  PILL_PANE: string;
22
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -48,7 +48,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
48
48
  }>, {
49
49
  compact: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
51
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
52
+ declare const _default: typeof __VLS_export;
52
53
  export default _default;
53
54
  type __VLS_WithSlots<T, S> = T & {
54
55
  new (): {
@@ -4,7 +4,7 @@ type __VLS_Props = {
4
4
  widgets: DashboardWidget[];
5
5
  editing?: boolean;
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
  remove: (widgetId: string) => any;
9
9
  configure: (widgetId: string) => any;
10
10
  "update:layout": (layout: DashboardLayoutItem[]) => any;
@@ -13,4 +13,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
13
13
  onConfigure?: ((widgetId: string) => any) | undefined;
14
14
  "onUpdate:layout"?: ((layout: DashboardLayoutItem[]) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
16
17
  export default _default;
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { GridItem, GridLayout } from "grid-layout-plus";
3
- import { computed, ref, watch } from "vue";
3
+ import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
4
4
  import WidgetFrame from "./DashboardWidgetFrame.vue";
5
5
  import WidgetHost from "./DashboardWidgetHost.vue";
6
6
  import { useWidgetRegistry } from "../../lib/widgetRegistry";
@@ -36,6 +36,29 @@ function widgetFor(id) {
36
36
  return props.widgets.find((w) => w.id === id);
37
37
  }
38
38
  const placedLayout = computed(() => internalLayout.value.filter((item) => !!widgetFor(item.i)));
39
+ const FLOW_BELOW = 1e3;
40
+ const PHONE_BELOW = 560;
41
+ const hostEl = ref(null);
42
+ const hostWidth = ref(0);
43
+ let hostObserver = null;
44
+ onMounted(() => {
45
+ if (!hostEl.value || typeof ResizeObserver === "undefined") return;
46
+ hostObserver = new ResizeObserver(([entry]) => {
47
+ hostWidth.value = entry?.contentRect.width ?? 0;
48
+ });
49
+ hostObserver.observe(hostEl.value);
50
+ });
51
+ onBeforeUnmount(() => hostObserver?.disconnect());
52
+ const flow = computed(() => !props.editing && hostWidth.value > 0 && hostWidth.value < FLOW_BELOW);
53
+ const flowPhone = computed(() => hostWidth.value < PHONE_BELOW);
54
+ const flowItems = computed(() => placedLayout.value.slice().sort((a, b) => a.y - b.y || a.x - b.x));
55
+ function flowStyle(item) {
56
+ const span = flowPhone.value ? item.w <= 3 ? 1 : 2 : item.w <= 3 ? 2 : item.w <= 6 ? 3 : 6;
57
+ return {
58
+ gridColumn: `span ${span} / span ${span}`,
59
+ minHeight: `${item.h * 20 + (item.h - 1) * 12}px`
60
+ };
61
+ }
39
62
  </script>
40
63
 
41
64
  <template>
@@ -43,7 +66,27 @@ const placedLayout = computed(() => internalLayout.value.filter((item) => !!widg
43
66
  sides, so without this the widgets sit one gutter inside the page padding
44
67
  and one inside the header. Cancelling it on three sides keeps the gaps
45
68
  between widgets and drops the duplicated outer one. -->
69
+ <div ref="hostEl">
70
+ <div
71
+ v-if="flow"
72
+ class="grid gap-3"
73
+ :class="flowPhone ? 'grid-cols-2' : 'grid-cols-6'"
74
+ data-testid="dashboard-flow"
75
+ >
76
+ <div v-for="item in flowItems" :key="item.i" class="grid min-w-0 grid-cols-1" :style="flowStyle(item)">
77
+ <WidgetFrame
78
+ :definition="registry.get(widgetFor(item.i).type)"
79
+ :title="widgetFor(item.i).title"
80
+ :configurable="!!registry.get(widgetFor(item.i).type)?.configFields?.length"
81
+ @configure="emit('configure', item.i)"
82
+ @remove="emit('remove', item.i)"
83
+ >
84
+ <WidgetHost :widget="widgetFor(item.i)" />
85
+ </WidgetFrame>
86
+ </div>
87
+ </div>
46
88
  <GridLayout
89
+ v-else
47
90
  v-model:layout="internalLayout"
48
91
  class="relative z-0 -mx-3 -mt-3"
49
92
  :col-num="12"
@@ -80,6 +123,7 @@ const placedLayout = computed(() => internalLayout.value.filter((item) => !!widg
80
123
  </WidgetFrame>
81
124
  </GridItem>
82
125
  </GridLayout>
126
+ </div>
83
127
  </template>
84
128
 
85
129
  <style scoped>
@@ -4,7 +4,7 @@ type __VLS_Props = {
4
4
  widgets: DashboardWidget[];
5
5
  editing?: boolean;
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
  remove: (widgetId: string) => any;
9
9
  configure: (widgetId: string) => any;
10
10
  "update:layout": (layout: DashboardLayoutItem[]) => any;
@@ -13,4 +13,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
13
13
  onConfigure?: ((widgetId: string) => any) | undefined;
14
14
  "onUpdate:layout"?: ((layout: DashboardLayoutItem[]) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
16
17
  export default _default;
@@ -8,11 +8,12 @@ type __VLS_Props = {
8
8
  /** Pre-filled value — a rename starts from the current name. */
9
9
  initial?: string;
10
10
  };
11
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:open": (value: boolean) => any;
13
13
  submit: (name: string) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
16
  onSubmit?: ((name: string) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
@@ -30,7 +30,7 @@ function submit() {
30
30
 
31
31
  <template>
32
32
  <Dialog :open="open" @update:open="emit('update:open', $event)">
33
- <DialogContent class="max-w-md">
33
+ <DialogContent class="sm:max-w-md">
34
34
  <DialogHeader>
35
35
  <DialogTitle>{{ title }}</DialogTitle>
36
36
  <DialogDescription v-if="description">{{ description }}</DialogDescription>
@@ -8,11 +8,12 @@ type __VLS_Props = {
8
8
  /** Pre-filled value — a rename starts from the current name. */
9
9
  initial?: string;
10
10
  };
11
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:open": (value: boolean) => any;
13
13
  submit: (name: string) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
16
  onSubmit?: ((name: string) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
@@ -4,11 +4,12 @@ type __VLS_Props = {
4
4
  dashboards: Dashboard[];
5
5
  currentId?: string | null;
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
  "update:open": (value: boolean) => any;
9
9
  select: (id: string) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
12
12
  onSelect?: ((id: string) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -35,7 +35,7 @@ function pick(id) {
35
35
 
36
36
  <template>
37
37
  <Dialog :open="open" @update:open="emit('update:open', $event)">
38
- <DialogContent class="max-w-2xl">
38
+ <DialogContent class="sm:max-w-3xl">
39
39
  <DialogHeader>
40
40
  <DialogTitle>{{ t("dashboard.picker.title") }}</DialogTitle>
41
41
  <DialogDescription>{{ t("dashboard.picker.description", { count: dashboards.length }) }}</DialogDescription>
@@ -4,11 +4,12 @@ type __VLS_Props = {
4
4
  dashboards: Dashboard[];
5
5
  currentId?: string | null;
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
  "update:open": (value: boolean) => any;
9
9
  select: (id: string) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
12
12
  onSelect?: ((id: string) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -9,7 +9,7 @@ type __VLS_Props = {
9
9
  */
10
10
  path?: string;
11
11
  };
12
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:open": (value: boolean) => any;
14
14
  change: (payload: {
15
15
  visibility: DashboardVisibility;
@@ -24,4 +24,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
24
24
  }>, {
25
25
  path: string;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
27
28
  export default _default;
@@ -87,7 +87,7 @@ function apply() {
87
87
 
88
88
  <template>
89
89
  <Dialog :open="open" @update:open="emit('update:open', $event)">
90
- <DialogContent class="max-w-lg">
90
+ <DialogContent class="sm:max-w-xl">
91
91
  <DialogHeader>
92
92
  <DialogTitle>{{ t("dashboard.share.title", { name: dashboard?.name ?? "" }) }}</DialogTitle>
93
93
  <DialogDescription>{{ t("dashboard.share.description") }}</DialogDescription>
@@ -9,7 +9,7 @@ type __VLS_Props = {
9
9
  */
10
10
  path?: string;
11
11
  };
12
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:open": (value: boolean) => any;
14
14
  change: (payload: {
15
15
  visibility: DashboardVisibility;
@@ -24,4 +24,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
24
24
  }>, {
25
25
  path: string;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
27
28
  export default _default;
@@ -15,11 +15,15 @@ type __VLS_Props = {
15
15
  /** The big line. Defaults to the greeting. */
16
16
  heading?: string;
17
17
  };
18
- declare var __VLS_19: any;
18
+ declare var __VLS_21: {
19
+ pillClass: "group cursor-pointer rounded-lg border border-gray-400/10 outline-1 outline-white/30 transition-colors hover:border-primary/50 disabled:cursor-not-allowed disabled:opacity-55 disabled:hover:border-gray-400/10";
20
+ paneClass: "flex items-center gap-1.5 rounded-lg bg-white px-2.5 py-1.5 text-sm font-medium text-[#0B0522] transition-colors group-hover:bg-muted/60 group-disabled:group-hover:bg-white";
21
+ compact: boolean;
22
+ };
19
23
  type __VLS_Slots = {} & {
20
- scope?: (props: typeof __VLS_19) => any;
24
+ scope?: (props: typeof __VLS_21) => any;
21
25
  };
22
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
27
  edit: () => any;
24
28
  select: (id: string) => any;
25
29
  save: () => any;
@@ -50,7 +54,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
50
54
  userName: string;
51
55
  eyebrow: string;
52
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
54
59
  export default _default;
55
60
  type __VLS_WithSlots<T, S> = T & {
56
61
  new (): {
@@ -15,11 +15,15 @@ type __VLS_Props = {
15
15
  /** The big line. Defaults to the greeting. */
16
16
  heading?: string;
17
17
  };
18
- declare var __VLS_19: any;
18
+ declare var __VLS_21: {
19
+ pillClass: "group cursor-pointer rounded-lg border border-gray-400/10 outline-1 outline-white/30 transition-colors hover:border-primary/50 disabled:cursor-not-allowed disabled:opacity-55 disabled:hover:border-gray-400/10";
20
+ paneClass: "flex items-center gap-1.5 rounded-lg bg-white px-2.5 py-1.5 text-sm font-medium text-[#0B0522] transition-colors group-hover:bg-muted/60 group-disabled:group-hover:bg-white";
21
+ compact: boolean;
22
+ };
19
23
  type __VLS_Slots = {} & {
20
- scope?: (props: typeof __VLS_19) => any;
24
+ scope?: (props: typeof __VLS_21) => any;
21
25
  };
22
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
27
  edit: () => any;
24
28
  select: (id: string) => any;
25
29
  save: () => any;
@@ -50,7 +54,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
50
54
  userName: string;
51
55
  eyebrow: string;
52
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
57
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
58
+ declare const _default: typeof __VLS_export;
54
59
  export default _default;
55
60
  type __VLS_WithSlots<T, S> = T & {
56
61
  new (): {
@@ -1,4 +1,5 @@
1
1
  import type { DashboardWidget } from '../../types/dashboard.js';
2
+ import type { WidgetConfigField } from '../../lib/widgetRegistry.js';
2
3
  type __VLS_Props = {
3
4
  open: boolean;
4
5
  widget: DashboardWidget | null;
@@ -9,16 +10,16 @@ type __VLS_Props = {
9
10
  */
10
11
  hydrate?: (widget: DashboardWidget, config: Record<string, unknown>) => Record<string, unknown>;
11
12
  };
12
- declare var __VLS_66: {
13
- field: any;
14
- widget: any;
13
+ declare var __VLS_90: {
14
+ field: WidgetConfigField;
15
+ widget: DashboardWidget | null;
15
16
  value: any;
16
17
  set: (value: unknown) => void;
17
18
  };
18
19
  type __VLS_Slots = {} & {
19
- field?: (props: typeof __VLS_66) => any;
20
+ field?: (props: typeof __VLS_90) => any;
20
21
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
23
  "update:open": (value: boolean) => any;
23
24
  apply: (payload: {
24
25
  id: string;
@@ -33,7 +34,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
33
34
  config: Record<string, unknown>;
34
35
  }) => any) | undefined;
35
36
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
37
39
  export default _default;
38
40
  type __VLS_WithSlots<T, S> = T & {
39
41
  new (): {
@@ -62,7 +62,7 @@ function apply() {
62
62
 
63
63
  <template>
64
64
  <Dialog :open="open" @update:open="emit('update:open', $event)">
65
- <DialogContent class="max-w-lg">
65
+ <DialogContent class="sm:max-w-xl">
66
66
  <DialogHeader>
67
67
  <DialogTitle>{{ heading }}</DialogTitle>
68
68
  <DialogDescription>{{ subheading }}</DialogDescription>
@@ -1,4 +1,5 @@
1
1
  import type { DashboardWidget } from '../../types/dashboard.js';
2
+ import type { WidgetConfigField } from '../../lib/widgetRegistry.js';
2
3
  type __VLS_Props = {
3
4
  open: boolean;
4
5
  widget: DashboardWidget | null;
@@ -9,16 +10,16 @@ type __VLS_Props = {
9
10
  */
10
11
  hydrate?: (widget: DashboardWidget, config: Record<string, unknown>) => Record<string, unknown>;
11
12
  };
12
- declare var __VLS_66: {
13
- field: any;
14
- widget: any;
13
+ declare var __VLS_90: {
14
+ field: WidgetConfigField;
15
+ widget: DashboardWidget | null;
15
16
  value: any;
16
17
  set: (value: unknown) => void;
17
18
  };
18
19
  type __VLS_Slots = {} & {
19
- field?: (props: typeof __VLS_66) => any;
20
+ field?: (props: typeof __VLS_90) => any;
20
21
  };
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
23
  "update:open": (value: boolean) => any;
23
24
  apply: (payload: {
24
25
  id: string;
@@ -33,7 +34,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
33
34
  config: Record<string, unknown>;
34
35
  }) => any) | undefined;
35
36
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
37
39
  export default _default;
38
40
  type __VLS_WithSlots<T, S> = T & {
39
41
  new (): {
@@ -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 (): {