@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
@@ -0,0 +1,280 @@
1
+ import {
2
+ AddCircle,
3
+ AddSquare,
4
+ Alarm,
5
+ Archive,
6
+ ArrowRight,
7
+ Atom,
8
+ Backspace,
9
+ Bag,
10
+ BagCheck,
11
+ Bell,
12
+ Bill,
13
+ BillList,
14
+ Bolt,
15
+ Book,
16
+ Bookmark,
17
+ Box,
18
+ BranchingPathsUp,
19
+ Broom,
20
+ Buildings,
21
+ Calendar,
22
+ CalendarMinimalistic,
23
+ Card,
24
+ CardTransfer,
25
+ Cart,
26
+ CartLarge,
27
+ CartPlus,
28
+ Chart,
29
+ Chart2,
30
+ ChartSquare,
31
+ ChatRound,
32
+ ChatRoundLine,
33
+ CheckCircle,
34
+ CheckRead,
35
+ ChecklistMinimalistic,
36
+ Clipboard,
37
+ ClipboardList,
38
+ ClockCircle,
39
+ CloseCircle,
40
+ Code,
41
+ Copy,
42
+ Cpu,
43
+ DangerTriangle,
44
+ Database,
45
+ Delivery,
46
+ Document,
47
+ DocumentText,
48
+ Download,
49
+ DownloadMinimalistic,
50
+ Earth,
51
+ Eye,
52
+ File,
53
+ FileText,
54
+ Folder,
55
+ FolderOpen,
56
+ FolderPathConnect,
57
+ Forbidden,
58
+ Gallery,
59
+ GalleryMinimalistic,
60
+ Global,
61
+ GraphDown,
62
+ GraphUp,
63
+ Hashtag,
64
+ Heart,
65
+ Help,
66
+ Home,
67
+ Import,
68
+ Inbox,
69
+ InboxIn,
70
+ Key,
71
+ Layers,
72
+ Letter,
73
+ Lightbulb,
74
+ Link,
75
+ LinkRound,
76
+ List,
77
+ ListCheck,
78
+ Lock,
79
+ MagicStick,
80
+ Magnifer,
81
+ Map,
82
+ MapPoint,
83
+ MedalRibbon,
84
+ MoneyBag,
85
+ Notebook,
86
+ NotebookMinimalistic,
87
+ Palette,
88
+ Pause,
89
+ Pen,
90
+ Plain,
91
+ Play,
92
+ PlugCircle,
93
+ Pulse,
94
+ Radar,
95
+ Refresh,
96
+ RefreshCircle,
97
+ Restart,
98
+ RewindBackCircle,
99
+ Routing,
100
+ Ruler,
101
+ Scale,
102
+ Server,
103
+ Settings,
104
+ Shield,
105
+ ShieldCheck,
106
+ ShieldCross,
107
+ ShieldUser,
108
+ Shop,
109
+ Shuffle,
110
+ Star,
111
+ Stars,
112
+ Tag,
113
+ TagPrice,
114
+ Ticket,
115
+ TrashBinMinimalistic,
116
+ TrashBinTrash,
117
+ UndoLeftRound,
118
+ Upload,
119
+ User,
120
+ UserBlock,
121
+ UserCheck,
122
+ UserId,
123
+ UsersGroupRounded,
124
+ Wallet,
125
+ WalletMoney,
126
+ Weigher,
127
+ Widget,
128
+ Widget5
129
+ } from "#solar-icons";
130
+ export const SOLAR_ICON_MAP = {
131
+ AddCircle,
132
+ AddSquare,
133
+ Alarm,
134
+ Archive,
135
+ ArrowRight,
136
+ Atom,
137
+ Backspace,
138
+ Bag,
139
+ BagCheck,
140
+ Bell,
141
+ Bill,
142
+ BillList,
143
+ Bolt,
144
+ Book,
145
+ Bookmark,
146
+ Box,
147
+ BranchingPathsUp,
148
+ Broom,
149
+ Buildings,
150
+ Calendar,
151
+ CalendarMinimalistic,
152
+ Card,
153
+ CardTransfer,
154
+ Cart,
155
+ CartLarge,
156
+ CartPlus,
157
+ Chart,
158
+ Chart2,
159
+ ChartSquare,
160
+ ChatRound,
161
+ ChatRoundLine,
162
+ CheckCircle,
163
+ CheckRead,
164
+ ChecklistMinimalistic,
165
+ Clipboard,
166
+ ClipboardList,
167
+ ClockCircle,
168
+ CloseCircle,
169
+ Code,
170
+ Copy,
171
+ Cpu,
172
+ DangerTriangle,
173
+ Database,
174
+ Delivery,
175
+ Document,
176
+ DocumentText,
177
+ Download,
178
+ DownloadMinimalistic,
179
+ Earth,
180
+ Eye,
181
+ File,
182
+ FileText,
183
+ Folder,
184
+ FolderOpen,
185
+ FolderPathConnect,
186
+ Forbidden,
187
+ Gallery,
188
+ GalleryMinimalistic,
189
+ Global,
190
+ GraphDown,
191
+ GraphUp,
192
+ Hashtag,
193
+ Heart,
194
+ Help,
195
+ Home,
196
+ Import,
197
+ Inbox,
198
+ InboxIn,
199
+ Key,
200
+ Layers,
201
+ Letter,
202
+ Lightbulb,
203
+ Link,
204
+ LinkRound,
205
+ List,
206
+ ListCheck,
207
+ Lock,
208
+ MagicStick,
209
+ Magnifer,
210
+ Map,
211
+ MapPoint,
212
+ MedalRibbon,
213
+ MoneyBag,
214
+ Notebook,
215
+ NotebookMinimalistic,
216
+ Palette,
217
+ Pause,
218
+ Pen,
219
+ Plain,
220
+ Play,
221
+ PlugCircle,
222
+ Pulse,
223
+ Radar,
224
+ Refresh,
225
+ RefreshCircle,
226
+ Restart,
227
+ RewindBackCircle,
228
+ Routing,
229
+ Ruler,
230
+ Scale,
231
+ Server,
232
+ Settings,
233
+ Shield,
234
+ ShieldCheck,
235
+ ShieldCross,
236
+ ShieldUser,
237
+ Shop,
238
+ Shuffle,
239
+ Star,
240
+ Stars,
241
+ Tag,
242
+ TagPrice,
243
+ Ticket,
244
+ TrashBinMinimalistic,
245
+ TrashBinTrash,
246
+ UndoLeftRound,
247
+ Upload,
248
+ User,
249
+ UserBlock,
250
+ UserCheck,
251
+ UserId,
252
+ UsersGroupRounded,
253
+ Wallet,
254
+ WalletMoney,
255
+ Weigher,
256
+ Widget,
257
+ Widget5
258
+ };
259
+ export const SOLAR_ICON_ALIASES = {
260
+ "activity": "Pulse",
261
+ "building": "Buildings",
262
+ "check": "CheckCircle",
263
+ "clock": "ClockCircle",
264
+ "edit": "Pen",
265
+ "file-search": "FileText",
266
+ "folder-tree": "FolderPathConnect",
267
+ "git-merge": "BranchingPathsUp",
268
+ "plug": "PlugCircle",
269
+ "plus": "AddCircle",
270
+ "puzzle": "Widget",
271
+ "receipt": "Bill",
272
+ "send": "Plain",
273
+ "shield-x": "ShieldCross",
274
+ "shopping-cart": "Cart",
275
+ "slash": "Forbidden",
276
+ "sparkles": "Stars",
277
+ "trending-down": "GraphDown",
278
+ "users": "UsersGroupRounded"
279
+ };
280
+ export const SOLAR_FALLBACK_ICON = Widget;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A Solar icon by the name an app manifest uses for it (`money-bag`).
3
+ *
4
+ * The one lookup behind every surface that draws a glyph by NAME — the Apps and
5
+ * Commerce sidebars, `AppIcon`, and the Commerce renderer's tiles, buttons,
6
+ * empty states and option icons. It was copy-pasted into each of them before
7
+ * PE-560 and PE-985.
8
+ *
9
+ * The names resolve against a CLOSED map (`solarIconMap.ts`, generated by
10
+ * `scripts/icons.mjs` from the app manifests and this repo's code), not the
11
+ * whole icon set: a namespace import put all 1,413 Solar icons into the boot
12
+ * bundle, 11.66 MB of JS, for the ~130 anything asks for (PE-985).
13
+ *
14
+ * Two lookups, because callers want different things from a miss:
15
+ *
16
+ * - {@link solarIcon} returns `undefined`, for callers that have their own
17
+ * next candidate (`AppIcon` walks `manifest.icon` → nav icon → fallback);
18
+ * - {@link solarIconOrFallback} returns the generic glyph, for a spot that
19
+ * would otherwise be blank.
20
+ */
21
+ import type { Component } from 'vue';
22
+ import { SOLAR_FALLBACK_ICON } from './solarIconMap.js';
23
+ export { SOLAR_FALLBACK_ICON };
24
+ /**
25
+ * The map's export name for `name`, or null when the map has none.
26
+ *
27
+ * Accepts every spelling the consumers accepted before: kebab (`money-bag`),
28
+ * snake (`card_2`), digits (`chart-2`) and the export name itself (`Layers`).
29
+ */
30
+ export declare function solarIconKey(name: string | null | undefined): string | null;
31
+ /** The icon for `name`, or undefined — the caller picks its own fallback. */
32
+ export declare function solarIcon(name: string | null | undefined): Component | undefined;
33
+ /**
34
+ * The icon for `name`; the generic glyph for a name the map does not know;
35
+ * null only when there is no name at all (nothing was asked for).
36
+ */
37
+ export declare function solarIconOrFallback(name: string | null | undefined): Component | null;
@@ -0,0 +1,25 @@
1
+ import { SOLAR_FALLBACK_ICON, SOLAR_ICON_ALIASES, SOLAR_ICON_MAP } from "./solarIconMap.js";
2
+ import { solarExportName } from "./appIcon.js";
3
+ export { SOLAR_FALLBACK_ICON };
4
+ const warned = /* @__PURE__ */ new Set();
5
+ function reportMiss(name) {
6
+ if (!import.meta.dev || warned.has(name)) return;
7
+ warned.add(name);
8
+ console.warn(`[solarIcons] no icon "${name}" in the closed map; drawing the fallback. Run \`pnpm icons\` (scripts/icons.mjs) to add it.`);
9
+ }
10
+ export function solarIconKey(name) {
11
+ const raw = name?.trim();
12
+ if (!raw) return null;
13
+ const key = SOLAR_ICON_ALIASES[raw] ?? solarExportName(raw);
14
+ return key in SOLAR_ICON_MAP ? key : null;
15
+ }
16
+ export function solarIcon(name) {
17
+ const key = solarIconKey(name);
18
+ if (key) return SOLAR_ICON_MAP[key];
19
+ if (name?.trim()) reportMiss(name.trim());
20
+ return void 0;
21
+ }
22
+ export function solarIconOrFallback(name) {
23
+ if (!name?.trim()) return null;
24
+ return solarIcon(name) ?? SOLAR_FALLBACK_ICON;
25
+ }
package/dist/types.d.mts CHANGED
@@ -22,12 +22,16 @@ export { type WidgetCategory, type WidgetCategoryGroup, type WidgetConfigField,
22
22
 
23
23
  export { type StickyListView } from '../dist/runtime/composables/useStickyListView.js'
24
24
 
25
+ export { type DetailSheetBinding } from '../dist/runtime/composables/useDetailSheet.js'
26
+
25
27
  export { type FloatingPanelDock, type FloatingPanelMode, type FloatingPanelOptions } from '../dist/runtime/composables/useFloatingPanel.js'
26
28
 
27
29
  export { type IsoOption } from '../dist/runtime/lib/isoLists.js'
28
30
 
29
31
  export { type Translate, type TranslateNamed, type Translator } from '../dist/runtime/lib/i18nBridge.js'
30
32
 
33
+ export { type FieldSpan, type FormContextRow, type SectionOffset, type SpanSource } from '../dist/runtime/lib/formLayout.js'
34
+
31
35
  export { default } from './module.mjs'
32
36
 
33
37
  export * from '../dist/runtime/components/DataTable/types.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenexx/studio-shared",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "Shared revenexx Studio shell primitives (PageHeader, SidebarNav, StateCard, DataTable, …) + the platform provider contract (usePlatformAuth/usePlatformTenant). A Nuxt module — add it to `modules`.",
6
6
  "main": "./dist/module.mjs",