@revenexx/studio-shared 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/module.d.mts +2 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +3 -1
  4. package/dist/runtime/components/Dashboard/DashboardConfirmDialog.d.vue.ts +2 -1
  5. package/dist/runtime/components/Dashboard/DashboardConfirmDialog.vue.d.ts +2 -1
  6. package/dist/runtime/components/Dashboard/DashboardControls.d.vue.ts +8 -7
  7. package/dist/runtime/components/Dashboard/DashboardControls.vue.d.ts +8 -7
  8. package/dist/runtime/components/Dashboard/DashboardGrid.d.vue.ts +2 -1
  9. package/dist/runtime/components/Dashboard/DashboardGrid.vue.d.ts +2 -1
  10. package/dist/runtime/components/Dashboard/DashboardNameDialog.d.vue.ts +2 -1
  11. package/dist/runtime/components/Dashboard/DashboardNameDialog.vue.d.ts +2 -1
  12. package/dist/runtime/components/Dashboard/DashboardPickerDialog.d.vue.ts +2 -1
  13. package/dist/runtime/components/Dashboard/DashboardPickerDialog.vue.d.ts +2 -1
  14. package/dist/runtime/components/Dashboard/DashboardShareDialog.d.vue.ts +2 -1
  15. package/dist/runtime/components/Dashboard/DashboardShareDialog.vue.d.ts +2 -1
  16. package/dist/runtime/components/Dashboard/DashboardTopBar.d.vue.ts +9 -4
  17. package/dist/runtime/components/Dashboard/DashboardTopBar.vue.d.ts +9 -4
  18. package/dist/runtime/components/Dashboard/DashboardWidgetConfigDialog.d.vue.ts +8 -6
  19. package/dist/runtime/components/Dashboard/DashboardWidgetConfigDialog.vue.d.ts +8 -6
  20. package/dist/runtime/components/Dashboard/DashboardWidgetFrame.d.vue.ts +5 -4
  21. package/dist/runtime/components/Dashboard/DashboardWidgetFrame.vue.d.ts +5 -4
  22. package/dist/runtime/components/Dashboard/DashboardWidgetHost.d.vue.ts +2 -1
  23. package/dist/runtime/components/Dashboard/DashboardWidgetHost.vue.d.ts +2 -1
  24. package/dist/runtime/components/Dashboard/DashboardWidgetIcon.d.vue.ts +2 -1
  25. package/dist/runtime/components/Dashboard/DashboardWidgetIcon.vue.d.ts +2 -1
  26. package/dist/runtime/components/Dashboard/DashboardWidgetLibrary.d.vue.ts +2 -1
  27. package/dist/runtime/components/Dashboard/DashboardWidgetLibrary.vue.d.ts +2 -1
  28. package/dist/runtime/components/Dashboard/DashboardWidgetPreview.d.vue.ts +2 -1
  29. package/dist/runtime/components/Dashboard/DashboardWidgetPreview.vue.d.ts +2 -1
  30. package/dist/runtime/components/DataTable/ColumnsMenu.d.vue.ts +2 -1
  31. package/dist/runtime/components/DataTable/ColumnsMenu.vue.d.ts +2 -1
  32. package/dist/runtime/components/DataTable/DataTable.d.vue.ts +75 -31
  33. package/dist/runtime/components/DataTable/DataTable.vue +153 -13
  34. package/dist/runtime/components/DataTable/DataTable.vue.d.ts +75 -31
  35. package/dist/runtime/components/DataTable/FacetChips.d.vue.ts +2 -1
  36. package/dist/runtime/components/DataTable/FacetChips.vue.d.ts +2 -1
  37. package/dist/runtime/components/DataTable/FacetPanel.d.vue.ts +6 -5
  38. package/dist/runtime/components/DataTable/FacetPanel.vue.d.ts +6 -5
  39. package/dist/runtime/components/DataTable/FilterMenu.d.vue.ts +6 -5
  40. package/dist/runtime/components/DataTable/FilterMenu.vue.d.ts +6 -5
  41. package/dist/runtime/components/DataTable/SavedViewsMenu.d.vue.ts +2 -1
  42. package/dist/runtime/components/DataTable/SavedViewsMenu.vue.d.ts +2 -1
  43. package/dist/runtime/components/DataTable/SortMenu.d.vue.ts +4 -2
  44. package/dist/runtime/components/DataTable/SortMenu.vue.d.ts +4 -2
  45. package/dist/runtime/components/DataTable/ViewModeSwitch.d.vue.ts +4 -2
  46. package/dist/runtime/components/DataTable/ViewModeSwitch.vue.d.ts +4 -2
  47. package/dist/runtime/components/Form/FieldCell.d.vue.ts +32 -0
  48. package/dist/runtime/components/Form/FieldCell.vue +46 -0
  49. package/dist/runtime/components/Form/FieldCell.vue.d.ts +32 -0
  50. package/dist/runtime/components/Form/FieldGrid.d.vue.ts +13 -0
  51. package/dist/runtime/components/Form/FieldGrid.vue +11 -0
  52. package/dist/runtime/components/Form/FieldGrid.vue.d.ts +13 -0
  53. package/dist/runtime/components/Form/FormContextCard.d.vue.ts +33 -0
  54. package/dist/runtime/components/Form/FormContextCard.vue +56 -0
  55. package/dist/runtime/components/Form/FormContextCard.vue.d.ts +33 -0
  56. package/dist/runtime/components/Form/FormLayout.d.vue.ts +47 -0
  57. package/dist/runtime/components/Form/FormLayout.vue +169 -0
  58. package/dist/runtime/components/Form/FormLayout.vue.d.ts +47 -0
  59. package/dist/runtime/components/Form/FormSection.d.vue.ts +25 -0
  60. package/dist/runtime/components/Form/FormSection.vue +48 -0
  61. package/dist/runtime/components/Form/FormSection.vue.d.ts +25 -0
  62. package/dist/runtime/components/Form/SaveBar.d.vue.ts +44 -0
  63. package/dist/runtime/components/Form/SaveBar.vue +71 -0
  64. package/dist/runtime/components/Form/SaveBar.vue.d.ts +44 -0
  65. package/dist/runtime/components/Media/MediaFolderTree.d.vue.ts +2 -1
  66. package/dist/runtime/components/Media/MediaFolderTree.vue.d.ts +2 -1
  67. package/dist/runtime/components/Media/MediaPickerDialog.d.vue.ts +2 -1
  68. package/dist/runtime/components/Media/MediaPickerDialog.vue.d.ts +2 -1
  69. package/dist/runtime/components/Media/MediaUploader.d.vue.ts +2 -1
  70. package/dist/runtime/components/Media/MediaUploader.vue.d.ts +2 -1
  71. package/dist/runtime/components/Shared/AppIcon.d.vue.ts +21 -0
  72. package/dist/runtime/components/Shared/AppIcon.vue +47 -0
  73. package/dist/runtime/components/Shared/AppIcon.vue.d.ts +21 -0
  74. package/dist/runtime/components/Shared/BuildLogsFlyout.d.vue.ts +2 -1
  75. package/dist/runtime/components/Shared/BuildLogsFlyout.vue.d.ts +2 -1
  76. package/dist/runtime/components/Shared/DetailSheet.d.vue.ts +60 -0
  77. package/dist/runtime/components/Shared/DetailSheet.vue +207 -0
  78. package/dist/runtime/components/Shared/DetailSheet.vue.d.ts +60 -0
  79. package/dist/runtime/components/Shared/FloatingPanel.d.vue.ts +7 -6
  80. package/dist/runtime/components/Shared/FloatingPanel.vue.d.ts +7 -6
  81. package/dist/runtime/components/Shared/GitDeploymentSettings.d.vue.ts +2 -1
  82. package/dist/runtime/components/Shared/GitDeploymentSettings.vue.d.ts +2 -1
  83. package/dist/runtime/components/Shared/KpiTile.d.vue.ts +2 -1
  84. package/dist/runtime/components/Shared/KpiTile.vue.d.ts +2 -1
  85. package/dist/runtime/components/Shared/ListSurface.d.vue.ts +3 -2
  86. package/dist/runtime/components/Shared/ListSurface.vue.d.ts +3 -2
  87. package/dist/runtime/components/Shared/PageHeader.d.vue.ts +7 -6
  88. package/dist/runtime/components/Shared/PageHeader.vue.d.ts +7 -6
  89. package/dist/runtime/components/Shared/RecordLayout.d.vue.ts +8 -7
  90. package/dist/runtime/components/Shared/RecordLayout.vue.d.ts +8 -7
  91. package/dist/runtime/components/Shared/RecordRailCard.d.vue.ts +3 -2
  92. package/dist/runtime/components/Shared/RecordRailCard.vue.d.ts +3 -2
  93. package/dist/runtime/components/Shared/SidebarNav.d.vue.ts +3 -2
  94. package/dist/runtime/components/Shared/SidebarNav.vue.d.ts +3 -2
  95. package/dist/runtime/components/Shared/SidebarNavLink.d.vue.ts +2 -1
  96. package/dist/runtime/components/Shared/SidebarNavLink.vue.d.ts +2 -1
  97. package/dist/runtime/components/Shared/SortHeader.d.vue.ts +3 -2
  98. package/dist/runtime/components/Shared/SortHeader.vue.d.ts +3 -2
  99. package/dist/runtime/components/Shared/StateCard.d.vue.ts +6 -5
  100. package/dist/runtime/components/Shared/StateCard.vue.d.ts +6 -5
  101. package/dist/runtime/components/Shared/StudioCard.d.vue.ts +5 -4
  102. package/dist/runtime/components/Shared/StudioCard.vue.d.ts +5 -4
  103. package/dist/runtime/components/Shared/TabBar.d.vue.ts +4 -21
  104. package/dist/runtime/components/Shared/TabBar.vue +24 -6
  105. package/dist/runtime/components/Shared/TabBar.vue.d.ts +4 -21
  106. package/dist/runtime/components/Shared/ViewTab.d.vue.ts +2 -1
  107. package/dist/runtime/components/Shared/ViewTab.vue.d.ts +2 -1
  108. package/dist/runtime/components/Shared/Wizard.d.vue.ts +10 -7
  109. package/dist/runtime/components/Shared/Wizard.vue.d.ts +10 -7
  110. package/dist/runtime/composables/useDetailSheet.d.ts +20 -0
  111. package/dist/runtime/composables/useDetailSheet.js +50 -0
  112. package/dist/runtime/composables/usePlatformTenant.d.ts +6 -0
  113. package/dist/runtime/lib/activeTenant.d.ts +58 -0
  114. package/dist/runtime/lib/activeTenant.js +45 -0
  115. package/dist/runtime/lib/appIcon.d.ts +48 -0
  116. package/dist/runtime/lib/appIcon.js +27 -0
  117. package/dist/runtime/lib/detailSheet.d.ts +43 -0
  118. package/dist/runtime/lib/detailSheet.js +34 -0
  119. package/dist/runtime/lib/formLayout.d.ts +94 -0
  120. package/dist/runtime/lib/formLayout.js +70 -0
  121. package/dist/runtime/lib/formLayoutContext.d.ts +26 -0
  122. package/dist/runtime/lib/formLayoutContext.js +1 -0
  123. package/dist/runtime/lib/rowMove.d.ts +38 -0
  124. package/dist/runtime/lib/rowMove.js +20 -0
  125. package/dist/runtime/lib/solarIconMap.d.ts +15 -0
  126. package/dist/runtime/lib/solarIconMap.js +280 -0
  127. package/dist/runtime/lib/solarIcons.d.ts +37 -0
  128. package/dist/runtime/lib/solarIcons.js +25 -0
  129. package/dist/types.d.mts +4 -0
  130. package/package.json +1 -1
@@ -16,8 +16,9 @@ type __VLS_Slots = {} & {
16
16
  } & {
17
17
  default?: (props: typeof __VLS_3) => any;
18
18
  };
19
- 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>;
20
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ 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>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
21
22
  export default _default;
22
23
  type __VLS_WithSlots<T, S> = T & {
23
24
  new (): {
@@ -14,7 +14,9 @@
14
14
  import type { Component } from 'vue';
15
15
  import type { SidebarNavSection } from '../../types/nav.js';
16
16
  export type { SidebarNavItem, SidebarNavSection } from '../../types/nav.js';
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
18
20
  title: string;
19
21
  icon?: Component;
20
22
  sections: SidebarNavSection[];
@@ -33,7 +35,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
33
35
  } & {
34
36
  notice?: (props: {}) => any;
35
37
  }>;
36
- export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {
39
40
  $slots: S;
@@ -14,7 +14,9 @@
14
14
  import type { Component } from 'vue';
15
15
  import type { SidebarNavSection } from '../../types/nav.js';
16
16
  export type { SidebarNavItem, SidebarNavSection } from '../../types/nav.js';
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
18
20
  title: string;
19
21
  icon?: Component;
20
22
  sections: SidebarNavSection[];
@@ -33,7 +35,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
33
35
  } & {
34
36
  notice?: (props: {}) => any;
35
37
  }>;
36
- export default _default;
37
38
  type __VLS_WithSlots<T, S> = T & {
38
39
  new (): {
39
40
  $slots: S;
@@ -11,5 +11,6 @@ import type { SidebarNavItem } from '../../types/nav.js';
11
11
  type __VLS_Props = {
12
12
  item: SidebarNavItem;
13
13
  };
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>;
14
+ 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>;
15
+ declare const _default: typeof __VLS_export;
15
16
  export default _default;
@@ -11,5 +11,6 @@ import type { SidebarNavItem } from '../../types/nav.js';
11
11
  type __VLS_Props = {
12
12
  item: SidebarNavItem;
13
13
  };
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>;
14
+ 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>;
15
+ declare const _default: typeof __VLS_export;
15
16
  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 (): {
@@ -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 (): {
@@ -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;
@@ -1,10 +1,23 @@
1
1
  <script setup>
2
- defineProps({
2
+ import { ref } from "vue";
3
+ const props = defineProps({
3
4
  tabs: { type: Array, required: true },
4
5
  modelValue: { type: String, required: true },
5
- sticky: { type: Boolean, required: false, default: true }
6
+ sticky: { type: Boolean, required: false, default: true },
7
+ label: { type: String, required: false }
6
8
  });
7
- defineEmits(["update:modelValue"]);
9
+ const emit = defineEmits(["update:modelValue"]);
10
+ const buttons = ref([]);
11
+ function onKeydown(event, index) {
12
+ const last = props.tabs.length - 1;
13
+ const next = event.key === "ArrowRight" ? index === last ? 0 : index + 1 : event.key === "ArrowLeft" ? index === 0 ? last : index - 1 : event.key === "Home" ? 0 : event.key === "End" ? last : -1;
14
+ if (next < 0) return;
15
+ event.preventDefault();
16
+ const tab = props.tabs[next];
17
+ if (!tab) return;
18
+ emit("update:modelValue", tab.key);
19
+ buttons.value[next]?.focus();
20
+ }
8
21
  </script>
9
22
 
10
23
  <template>
@@ -15,14 +28,19 @@ defineEmits(["update:modelValue"]);
15
28
  <div :class="sticky ? 'sticky top-[57px] z-10 bg-white/40 backdrop-blur-xl' : 'relative'">
16
29
  <!-- Pull the row out by the tab padding so the first/last label sits flush
17
30
  with the surrounding content (headline) edges. -->
18
- <div class="relative z-10 -mx-2.5 flex gap-1 overflow-x-auto">
31
+ <div class="relative z-10 -mx-2.5 flex gap-1 overflow-x-auto" role="tablist" :aria-label="label">
19
32
  <button
20
- v-for="t in tabs"
33
+ v-for="(t, index) in tabs"
21
34
  :key="t.key"
35
+ ref="buttons"
22
36
  type="button"
37
+ role="tab"
38
+ :aria-selected="modelValue === t.key"
39
+ :tabindex="modelValue === t.key || !tabs.some((x) => x.key === modelValue) && index === 0 ? 0 : -1"
23
40
  class="group relative shrink-0 cursor-pointer whitespace-nowrap px-2.5 py-2 text-sm font-medium transition-colors"
24
41
  :class="modelValue === t.key ? 'text-[#0B0522] hover:text-primary' : 'text-[#0B0522]/80 hover:text-primary'"
25
- @click="$emit('update:modelValue', t.key)"
42
+ @click="emit('update:modelValue', t.key)"
43
+ @keydown="onKeydown($event, index)"
26
44
  >
27
45
  {{ t.label }}
28
46
  <span
@@ -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;
@@ -3,5 +3,6 @@ type __VLS_Props = {
3
3
  icon?: unknown;
4
4
  label: string;
5
5
  };
6
- 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;
7
8
  export default _default;
@@ -3,5 +3,6 @@ type __VLS_Props = {
3
3
  icon?: unknown;
4
4
  label: string;
5
5
  };
6
- 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;
7
8
  export default _default;
@@ -10,16 +10,18 @@ type __VLS_Props = {
10
10
  canAdvance?: boolean;
11
11
  busy?: boolean;
12
12
  };
13
+ declare function back(): void;
14
+ declare function next(): void;
13
15
  declare var __VLS_1: {
14
16
  step: any;
15
17
  index: any;
16
18
  }, __VLS_3: {
17
- back: any;
18
- next: any;
19
+ back: typeof back;
20
+ next: typeof next;
19
21
  isFirst: any;
20
22
  isLast: any;
21
- canAdvance: any;
22
- busy: any;
23
+ canAdvance: boolean;
24
+ busy: boolean;
23
25
  index: any;
24
26
  };
25
27
  type __VLS_Slots = {} & {
@@ -27,7 +29,7 @@ type __VLS_Slots = {} & {
27
29
  } & {
28
30
  footer?: (props: typeof __VLS_3) => any;
29
31
  };
30
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
33
  "update:modelValue": (args_0: number) => any;
32
34
  finish: () => any;
33
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -35,10 +37,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
35
37
  onFinish?: (() => any) | undefined;
36
38
  }>, {
37
39
  modelValue: number;
38
- canAdvance: boolean;
39
40
  busy: boolean;
41
+ canAdvance: boolean;
40
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
42
45
  export default _default;
43
46
  type __VLS_WithSlots<T, S> = T & {
44
47
  new (): {
@@ -10,16 +10,18 @@ type __VLS_Props = {
10
10
  canAdvance?: boolean;
11
11
  busy?: boolean;
12
12
  };
13
+ declare function back(): void;
14
+ declare function next(): void;
13
15
  declare var __VLS_1: {
14
16
  step: any;
15
17
  index: any;
16
18
  }, __VLS_3: {
17
- back: any;
18
- next: any;
19
+ back: typeof back;
20
+ next: typeof next;
19
21
  isFirst: any;
20
22
  isLast: any;
21
- canAdvance: any;
22
- busy: any;
23
+ canAdvance: boolean;
24
+ busy: boolean;
23
25
  index: any;
24
26
  };
25
27
  type __VLS_Slots = {} & {
@@ -27,7 +29,7 @@ type __VLS_Slots = {} & {
27
29
  } & {
28
30
  footer?: (props: typeof __VLS_3) => any;
29
31
  };
30
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
33
  "update:modelValue": (args_0: number) => any;
32
34
  finish: () => any;
33
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -35,10 +37,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
35
37
  onFinish?: (() => any) | undefined;
36
38
  }>, {
37
39
  modelValue: number;
38
- canAdvance: boolean;
39
40
  busy: boolean;
41
+ canAdvance: boolean;
40
42
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
42
45
  export default _default;
43
46
  type __VLS_WithSlots<T, S> = T & {
44
47
  new (): {
@@ -0,0 +1,20 @@
1
+ import type { ComputedRef, MaybeRefOrGetter, WritableComputedRef } from 'vue';
2
+ export interface DetailSheetBinding {
3
+ /** The open record's id, or `null` when the panel is shut. */
4
+ openId: ComputedRef<string | null>;
5
+ /** For `v-model:open` — writing `false` closes. */
6
+ isOpen: WritableComputedRef<boolean>;
7
+ open: (id: string) => void;
8
+ close: () => void;
9
+ /** Move to the neighbouring record in `ids`; a no-op at either end. */
10
+ step: (dir: -1 | 1) => void;
11
+ /** Whether `step(-1)` / `step(1)` would land anywhere — for the panel's arrow buttons. */
12
+ canStep: ComputedRef<{
13
+ prev: boolean;
14
+ next: boolean;
15
+ }>;
16
+ }
17
+ export declare function useDetailSheet(key: string, options?: {
18
+ /** The records in the order the list shows them, for `step`. */
19
+ ids?: MaybeRefOrGetter<readonly string[]>;
20
+ }): DetailSheetBinding;
@@ -0,0 +1,50 @@
1
+ import { computed, toValue, watch } from "vue";
2
+ import { idFromQuery, neighbourId, queryWith } from "../lib/detailSheet.js";
3
+ const MARKER = "detailSheet";
4
+ export function useDetailSheet(key, options = {}) {
5
+ const route = useRoute();
6
+ const router = useRouter();
7
+ const openId = computed(() => idFromQuery(route.query[key]));
8
+ function pushedHere() {
9
+ if (typeof window === "undefined") return false;
10
+ return window.history.state?.[MARKER] === key;
11
+ }
12
+ let closing = false;
13
+ watch(openId, (id) => {
14
+ if (id === null) closing = false;
15
+ });
16
+ function open(id) {
17
+ if (openId.value === id) return;
18
+ closing = false;
19
+ const query = queryWith(route.query, key, id);
20
+ if (openId.value === null) {
21
+ void router.push({ query, state: { [MARKER]: key } });
22
+ } else {
23
+ void router.replace({ query, state: pushedHere() ? { [MARKER]: key } : {} });
24
+ }
25
+ }
26
+ function close() {
27
+ if (openId.value === null || closing) return;
28
+ closing = true;
29
+ if (pushedHere()) router.back();
30
+ else void router.replace({ query: queryWith(route.query, key, null) });
31
+ }
32
+ function step(dir) {
33
+ const next = neighbourId(toValue(options.ids) ?? [], openId.value, dir);
34
+ if (next !== null) open(next);
35
+ }
36
+ const canStep = computed(() => {
37
+ const ids = toValue(options.ids) ?? [];
38
+ return {
39
+ prev: neighbourId(ids, openId.value, -1) !== null,
40
+ next: neighbourId(ids, openId.value, 1) !== null
41
+ };
42
+ });
43
+ const isOpen = computed({
44
+ get: () => openId.value !== null,
45
+ set: (v) => {
46
+ if (!v) close();
47
+ }
48
+ });
49
+ return { openId, isOpen, open, close, step, canStep };
50
+ }
@@ -9,6 +9,12 @@ import type { Ref } from 'vue';
9
9
  */
10
10
  export interface PlatformTenant {
11
11
  slug: Ref<string | null>;
12
+ /**
13
+ * Resolves once the active tenant is known, or once it is clear there is
14
+ * none yet (bounded — the host decides how long). Never throws. Callers that
15
+ * send tenant-scoped requests use `requirePlatformTenant` from
16
+ * `@revenexx/studio-shared/lib/activeTenant` instead of reading `slug`.
17
+ */
12
18
  load: () => Promise<void>;
13
19
  }
14
20
  export declare function usePlatformTenant(): PlatformTenant;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The active tenant, as every tenant-scoped client sends it (PE-828).
3
+ *
4
+ * The contract the Cockpit shares with Console, Baseline and every gateway:
5
+ * each tenant-scoped request carries the active tenant slug in a header, and
6
+ * the service checks it against the token. The header only SELECTS a tenant
7
+ * the token already holds; it never grants one.
8
+ *
9
+ * Before this helper each client had its own copy of "send the header if we
10
+ * happen to know the slug", and most of them sent the request without it while
11
+ * the top-bar selection was still resolving. In an org with two tenants that
12
+ * is an ambiguous request, which the services answer with 400/403/422.
13
+ *
14
+ * So the rule is now one function: wait (bounded) for the active tenant, and
15
+ * refuse to send a tenant-scoped request when there is none. A missing tenant
16
+ * is a `NoActiveTenantError`, which the UI shows as "pick a tenant".
17
+ *
18
+ * Pure (Vue only), so the cockpit, studio-commerce and their tests share it.
19
+ */
20
+ import { type Ref } from 'vue';
21
+ /** The header the platform, Console, Baseline and most gateways read. */
22
+ export declare const TENANT_HEADER = "X-Revenexx-Tenant";
23
+ /** The header the AI gateway, Aria and integrations read instead. */
24
+ export declare const TENANT_ID_HEADER = "X-Tenant-Id";
25
+ /** How long a request waits for the active tenant before it gives up. */
26
+ export declare const TENANT_WAIT_MS = 8000;
27
+ export declare class NoActiveTenantError extends Error {
28
+ readonly status = 400;
29
+ readonly code = "no_active_tenant";
30
+ constructor(message?: string);
31
+ }
32
+ /** True for the error `requireTenant` throws, across bundle copies. */
33
+ export declare function isNoActiveTenant(err: unknown): err is NoActiveTenantError;
34
+ /**
35
+ * Wait for a shared ref to hold a value, bounded (RAD-182).
36
+ *
37
+ * Loads what can be loaded, then waits until the value arrives or `timeoutMs`
38
+ * passes. Resolves null on timeout; never throws.
39
+ */
40
+ export declare function waitForValue<T>(source: Ref<T | null | undefined>, load: () => Promise<unknown>, timeoutMs?: number): Promise<T | null>;
41
+ /** Anything that can name the active tenant: `useConsoleTenants`, `usePlatformTenant`. */
42
+ export interface TenantSource {
43
+ slug: Ref<string | null>;
44
+ load: () => Promise<unknown>;
45
+ }
46
+ /**
47
+ * The active tenant slug, or a `NoActiveTenantError`.
48
+ *
49
+ * Never returns null: a caller that gets past this line has a tenant to send.
50
+ */
51
+ export declare function requireTenant(source: TenantSource, timeoutMs?: number): Promise<string>;
52
+ /**
53
+ * The active tenant from a `usePlatformTenant()` seam, or a `NoActiveTenantError`.
54
+ *
55
+ * The seam's `load` already waits for the selection (the host bounds it), so
56
+ * nothing is waited for twice here.
57
+ */
58
+ export declare function requirePlatformTenant(tenant: TenantSource): Promise<string>;
@@ -0,0 +1,45 @@
1
+ import { watch } from "vue";
2
+ export const TENANT_HEADER = "X-Revenexx-Tenant";
3
+ export const TENANT_ID_HEADER = "X-Tenant-Id";
4
+ export const TENANT_WAIT_MS = 8e3;
5
+ export class NoActiveTenantError extends Error {
6
+ status = 400;
7
+ code = "no_active_tenant";
8
+ constructor(message = "No active tenant. Pick one in the top bar.") {
9
+ super(message);
10
+ this.name = "NoActiveTenantError";
11
+ }
12
+ }
13
+ export function isNoActiveTenant(err) {
14
+ return err?.code === "no_active_tenant";
15
+ }
16
+ export async function waitForValue(source, load, timeoutMs = TENANT_WAIT_MS) {
17
+ if (source.value) return source.value;
18
+ try {
19
+ await load();
20
+ } catch {
21
+ }
22
+ if (source.value) return source.value;
23
+ if (timeoutMs <= 0) return null;
24
+ return await new Promise((resolve) => {
25
+ let stop = null;
26
+ const timer = setTimeout(() => {
27
+ stop?.();
28
+ resolve(null);
29
+ }, timeoutMs);
30
+ stop = watch(source, (value) => {
31
+ if (!value) return;
32
+ clearTimeout(timer);
33
+ stop?.();
34
+ resolve(value);
35
+ });
36
+ });
37
+ }
38
+ export async function requireTenant(source, timeoutMs = TENANT_WAIT_MS) {
39
+ const slug = await waitForValue(source.slug, source.load, timeoutMs);
40
+ if (!slug) throw new NoActiveTenantError();
41
+ return slug;
42
+ }
43
+ export function requirePlatformTenant(tenant) {
44
+ return requireTenant(tenant, 0);
45
+ }