@mapomodule/uikit 2.0.0-beta.7 → 2.0.0-experimental.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 (199) hide show
  1. package/README.md +47 -174
  2. package/dist/__tests__/MapoConfirmDialog.component.test.d.ts +2 -0
  3. package/dist/__tests__/MapoConfirmDialog.component.test.d.ts.map +1 -0
  4. package/dist/__tests__/MapoDetail.component.test.d.ts +2 -0
  5. package/dist/__tests__/MapoDetail.component.test.d.ts.map +1 -0
  6. package/dist/__tests__/MapoDetailLangSwitch.component.test.d.ts +2 -0
  7. package/dist/__tests__/MapoDetailLangSwitch.component.test.d.ts.map +1 -0
  8. package/dist/__tests__/MapoListActions.component.test.d.ts +2 -0
  9. package/dist/__tests__/MapoListActions.component.test.d.ts.map +1 -0
  10. package/dist/__tests__/MapoListTable.component.test.d.ts +2 -0
  11. package/dist/__tests__/MapoListTable.component.test.d.ts.map +1 -0
  12. package/dist/__tests__/MapoSnackBar.component.test.d.ts +2 -0
  13. package/dist/__tests__/MapoSnackBar.component.test.d.ts.map +1 -0
  14. package/dist/__tests__/__mocks__/nuxt-app.d.ts +9 -0
  15. package/dist/__tests__/__mocks__/nuxt-app.d.ts.map +1 -0
  16. package/dist/__tests__/formValues.test.d.ts +2 -0
  17. package/dist/__tests__/formValues.test.d.ts.map +1 -0
  18. package/dist/__tests__/langInfo.test.d.ts +2 -0
  19. package/dist/__tests__/langInfo.test.d.ts.map +1 -0
  20. package/dist/__tests__/listTable.test.d.ts +2 -0
  21. package/dist/__tests__/listTable.test.d.ts.map +1 -0
  22. package/dist/__tests__/mediaLanguages.test.d.ts +2 -0
  23. package/dist/__tests__/mediaLanguages.test.d.ts.map +1 -0
  24. package/dist/__tests__/runtimePages.test.d.ts +2 -0
  25. package/dist/__tests__/runtimePages.test.d.ts.map +1 -0
  26. package/dist/index.d.mts +2 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.mjs +1 -1
  30. package/dist/module.d.mts +2 -0
  31. package/dist/module.d.ts.map +1 -1
  32. package/dist/module.json +1 -1
  33. package/dist/module.mjs +23 -2
  34. package/dist/runtime/assets/main.css +1 -1
  35. package/dist/runtime/components/MapoConfirmDialog.vue +23 -4
  36. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -1
  37. package/dist/runtime/components/MapoDetail.vue +301 -63
  38. package/dist/runtime/components/MapoDetail.vue.d.ts +191 -9
  39. package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -1
  40. package/dist/runtime/components/MapoDetailExtensions.vue +24 -0
  41. package/dist/runtime/components/MapoDetailExtensions.vue.d.ts +15 -0
  42. package/dist/runtime/components/MapoDetailExtensions.vue.d.ts.map +1 -0
  43. package/dist/runtime/components/MapoDetailLangSwitch.vue +22 -26
  44. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +4 -3
  45. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -1
  46. package/dist/runtime/components/MapoDropArea.vue +5 -1
  47. package/dist/runtime/components/MapoDropArea.vue.d.ts +1 -1
  48. package/dist/runtime/components/MapoDropArea.vue.d.ts.map +1 -1
  49. package/dist/runtime/components/MapoLangSwitcher.vue +39 -0
  50. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts +18 -0
  51. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts.map +1 -0
  52. package/dist/runtime/components/MapoList.vue +7 -3
  53. package/dist/runtime/components/MapoList.vue.d.ts +14 -4
  54. package/dist/runtime/components/MapoList.vue.d.ts.map +1 -1
  55. package/dist/runtime/components/MapoListActions.vue +27 -13
  56. package/dist/runtime/components/MapoListActions.vue.d.ts +4 -0
  57. package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -1
  58. package/dist/runtime/components/MapoListFilters.vue +4 -2
  59. package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -1
  60. package/dist/runtime/components/MapoListQuickEdit.vue +12 -8
  61. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -1
  62. package/dist/runtime/components/MapoListTable.vue +116 -45
  63. package/dist/runtime/components/MapoListTable.vue.d.ts +11 -6
  64. package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -1
  65. package/dist/runtime/components/MapoLogin.vue +13 -10
  66. package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -1
  67. package/dist/runtime/components/MapoLogoutButton.vue +4 -2
  68. package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -1
  69. package/dist/runtime/components/MapoMediaBreadcrumbs.vue +3 -1
  70. package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts.map +1 -1
  71. package/dist/runtime/components/MapoMediaEditor.vue +36 -20
  72. package/dist/runtime/components/MapoMediaEditor.vue.d.ts +1 -0
  73. package/dist/runtime/components/MapoMediaEditor.vue.d.ts.map +1 -1
  74. package/dist/runtime/components/MapoMediaFileChanger.vue +7 -3
  75. package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts.map +1 -1
  76. package/dist/runtime/components/MapoMediaFolders.vue +36 -14
  77. package/dist/runtime/components/MapoMediaFolders.vue.d.ts.map +1 -1
  78. package/dist/runtime/components/MapoMediaGallery.vue +15 -5
  79. package/dist/runtime/components/MapoMediaGallery.vue.d.ts.map +1 -1
  80. package/dist/runtime/components/MapoMediaManager.vue +17 -7
  81. package/dist/runtime/components/MapoMediaManager.vue.d.ts.map +1 -1
  82. package/dist/runtime/components/MapoMediaManagerDialog.vue +8 -4
  83. package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts.map +1 -1
  84. package/dist/runtime/components/MapoMediaUploader.vue +53 -29
  85. package/dist/runtime/components/MapoMediaUploader.vue.d.ts.map +1 -1
  86. package/dist/runtime/components/MapoMenuManager.vue +293 -0
  87. package/dist/runtime/components/MapoMenuManager.vue.d.ts +92 -0
  88. package/dist/runtime/components/MapoMenuManager.vue.d.ts.map +1 -0
  89. package/dist/runtime/components/MapoMenuNodeEditor.vue +201 -0
  90. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts +61 -0
  91. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts.map +1 -0
  92. package/dist/runtime/components/MapoMenuTreeview.vue +181 -0
  93. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts +57 -0
  94. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts.map +1 -0
  95. package/dist/runtime/components/MapoMenuTreeviewNode.vue +175 -0
  96. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts +27 -0
  97. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts.map +1 -0
  98. package/dist/runtime/components/MapoSidebar.vue +3 -1
  99. package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -1
  100. package/dist/runtime/components/MapoSidebarList.vue +1 -1
  101. package/dist/runtime/components/MapoSidebarProfile.vue +6 -2
  102. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -1
  103. package/dist/runtime/components/MapoSnackBar.vue +11 -0
  104. package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -1
  105. package/dist/runtime/components/MapoThemeToggle.vue +5 -1
  106. package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -1
  107. package/dist/runtime/components/menuDndContext.d.ts +19 -0
  108. package/dist/runtime/components/menuDndContext.d.ts.map +1 -0
  109. package/dist/runtime/components/menuDndContext.js +3 -0
  110. package/dist/runtime/composables/defineDetailExtension.d.ts +32 -0
  111. package/dist/runtime/composables/defineDetailExtension.d.ts.map +1 -0
  112. package/dist/runtime/composables/defineDetailExtension.js +34 -0
  113. package/dist/runtime/composables/useMapoDetail.d.ts +18 -0
  114. package/dist/runtime/composables/useMapoDetail.d.ts.map +1 -0
  115. package/dist/runtime/composables/useMapoDetail.js +5 -0
  116. package/dist/runtime/page-meta.nuxt.d.ts +4 -0
  117. package/dist/runtime/pages/index.vue +4 -2
  118. package/dist/runtime/pages/index.vue.d.ts.map +1 -1
  119. package/dist/runtime/plugins/media-adapter.d.ts.map +1 -1
  120. package/dist/runtime/plugins/media-adapter.js +2 -1
  121. package/dist/runtime/stores/media.d.ts +8 -2
  122. package/dist/runtime/stores/media.d.ts.map +1 -1
  123. package/dist/runtime/stores/media.js +45 -13
  124. package/dist/runtime/types/detail.d.ts +167 -0
  125. package/dist/runtime/types/detail.d.ts.map +1 -0
  126. package/dist/runtime/types/detail.js +0 -0
  127. package/dist/runtime/types/list.d.ts +10 -2
  128. package/dist/runtime/types/list.d.ts.map +1 -1
  129. package/dist/runtime/types/menu.d.ts +66 -0
  130. package/dist/runtime/types/menu.d.ts.map +1 -0
  131. package/dist/runtime/types/menu.js +30 -0
  132. package/dist/runtime/utils/formValues.d.ts +8 -0
  133. package/dist/runtime/utils/formValues.d.ts.map +1 -0
  134. package/dist/runtime/utils/formValues.js +19 -0
  135. package/dist/runtime/utils/langInfo.d.ts +30 -0
  136. package/dist/runtime/utils/langInfo.d.ts.map +1 -0
  137. package/dist/runtime/utils/langInfo.js +8 -0
  138. package/dist/runtime/utils/listTable.d.ts +29 -0
  139. package/dist/runtime/utils/listTable.d.ts.map +1 -0
  140. package/dist/runtime/utils/listTable.js +21 -0
  141. package/package.json +12 -10
  142. package/src/__tests__/MapoConfirmDialog.component.test.ts +165 -0
  143. package/src/__tests__/MapoDetail.component.test.ts +1107 -0
  144. package/src/__tests__/MapoDetailLangSwitch.component.test.ts +145 -0
  145. package/src/__tests__/MapoListActions.component.test.ts +175 -0
  146. package/src/__tests__/MapoListTable.component.test.ts +504 -0
  147. package/src/__tests__/MapoSnackBar.component.test.ts +79 -0
  148. package/src/__tests__/__mocks__/nuxt-app.ts +8 -0
  149. package/src/__tests__/formValues.test.ts +31 -0
  150. package/src/__tests__/langInfo.test.ts +48 -0
  151. package/src/__tests__/listTable.test.ts +82 -0
  152. package/src/__tests__/mediaLanguages.test.ts +66 -0
  153. package/src/__tests__/runtimePages.test.ts +17 -0
  154. package/src/index.ts +20 -0
  155. package/src/module.ts +29 -0
  156. package/src/runtime/assets/main.css +13 -0
  157. package/src/runtime/components/MapoConfirmDialog.vue +33 -4
  158. package/src/runtime/components/MapoDetail.vue +520 -89
  159. package/src/runtime/components/MapoDetailExtensions.vue +39 -0
  160. package/src/runtime/components/MapoDetailLangSwitch.vue +27 -28
  161. package/src/runtime/components/MapoDropArea.vue +6 -1
  162. package/src/runtime/components/MapoLangSwitcher.vue +74 -0
  163. package/src/runtime/components/MapoList.vue +21 -6
  164. package/src/runtime/components/MapoListActions.vue +32 -14
  165. package/src/runtime/components/MapoListFilters.vue +5 -2
  166. package/src/runtime/components/MapoListQuickEdit.vue +12 -9
  167. package/src/runtime/components/MapoListTable.vue +147 -55
  168. package/src/runtime/components/MapoLogin.vue +13 -10
  169. package/src/runtime/components/MapoLogoutButton.vue +4 -2
  170. package/src/runtime/components/MapoMediaBreadcrumbs.vue +3 -1
  171. package/src/runtime/components/MapoMediaEditor.vue +43 -20
  172. package/src/runtime/components/MapoMediaFileChanger.vue +8 -3
  173. package/src/runtime/components/MapoMediaFolders.vue +37 -15
  174. package/src/runtime/components/MapoMediaGallery.vue +17 -5
  175. package/src/runtime/components/MapoMediaManager.vue +17 -7
  176. package/src/runtime/components/MapoMediaManagerDialog.vue +10 -4
  177. package/src/runtime/components/MapoMediaUploader.vue +60 -29
  178. package/src/runtime/components/MapoMenuManager.vue +437 -0
  179. package/src/runtime/components/MapoMenuNodeEditor.vue +282 -0
  180. package/src/runtime/components/MapoMenuTreeview.vue +264 -0
  181. package/src/runtime/components/MapoMenuTreeviewNode.vue +234 -0
  182. package/src/runtime/components/MapoSidebar.vue +3 -1
  183. package/src/runtime/components/MapoSidebarList.vue +1 -1
  184. package/src/runtime/components/MapoSidebarProfile.vue +6 -2
  185. package/src/runtime/components/MapoSnackBar.vue +12 -0
  186. package/src/runtime/components/MapoThemeToggle.vue +5 -1
  187. package/src/runtime/components/menuDndContext.ts +22 -0
  188. package/src/runtime/composables/defineDetailExtension.ts +78 -0
  189. package/src/runtime/composables/useMapoDetail.ts +24 -0
  190. package/src/runtime/page-meta.nuxt.d.ts +4 -0
  191. package/src/runtime/pages/index.vue +5 -2
  192. package/src/runtime/plugins/media-adapter.ts +9 -5
  193. package/src/runtime/stores/media.ts +61 -13
  194. package/src/runtime/types/detail.ts +178 -0
  195. package/src/runtime/types/list.ts +10 -2
  196. package/src/runtime/types/menu.ts +105 -0
  197. package/src/runtime/utils/formValues.ts +28 -0
  198. package/src/runtime/utils/langInfo.ts +38 -0
  199. package/src/runtime/utils/listTable.ts +54 -0
@@ -1,5 +1,6 @@
1
1
  import { type VNode } from "vue";
2
- import type { AnyFieldDescriptor, FieldRegistry } from "@mapomodule/form/types";
2
+ import type { AnyFieldDescriptor, FieldAnnotations, FieldRegistry, UseFormFromSchemaOptions } from "@mapomodule/form/types";
3
+ import type { JSONSchema } from "@mapomodule/utils";
3
4
  import type { MultipartPolicy } from "@mapomodule/core";
4
5
  declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
6
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
@@ -7,12 +8,49 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
7
8
  endpoint: string;
8
9
  /** Record id. Pass `'new'` to create. */
9
10
  id: string | number;
10
- /** Fields for the main body form. */
11
- fields: AnyFieldDescriptor<T>[];
11
+ /**
12
+ * Fields for the main body form.
13
+ *
14
+ * Optional only so `experimentalFieldsFromSchema` can supply them; pass them
15
+ * explicitly for any form you care about the layout of.
16
+ */
17
+ fields?: AnyFieldDescriptor<T>[];
18
+ /**
19
+ * EXPERIMENTAL. Build the body fields from the endpoint's OPTIONS response
20
+ * when `fields` is not given.
21
+ *
22
+ * Off by default and deliberately opt-in: a derived form knows types,
23
+ * labels, relations and what is read-only, but nothing editorial — no tabs,
24
+ * no column widths, no rich-text vs textarea, no sidebar split, and no
25
+ * opinion about field order beyond the serializer's. Treat it as a
26
+ * scaffold to start from, not a finished panel.
27
+ *
28
+ * Reads the `schema` the endpoint publishes on OPTIONS (camomilla >= 6.6)
29
+ * or, without one, Django REST Framework's standard metadata
30
+ * (`actions.POST`, which DRF serves to users who can create).
31
+ * `schemaFromMetadata` changes how.
32
+ */
33
+ experimentalFieldsFromSchema?: boolean;
34
+ /**
35
+ * Turns the OPTIONS response into the JSON Schema the body fields are
36
+ * built from, with `experimentalFieldsFromSchema`. Default:
37
+ * `metadataToJsonSchema` from `@mapomodule/utils`, which reads a published
38
+ * `schema`, then DRF metadata. Call it with options, or return your own
39
+ * schema; `undefined` derives no fields.
40
+ */
41
+ schemaFromMetadata?: (metadata: Record<string, unknown>) => JSONSchema | undefined;
42
+ /** Passed straight to useFormFromSchema when deriving. */
43
+ schemaFieldOptions?: UseFormFromSchemaOptions;
12
44
  /** Fields for the sidebar form (optional). */
13
45
  sidebarFields?: AnyFieldDescriptor<T>[];
14
46
  /** Translation language codes (e.g. ['it', 'en']). */
15
47
  languages?: string[];
48
+ /**
49
+ * Number of languages above which the language switcher adds a searchable
50
+ * select next to its tabs. Default `8` (from MapoDetailLangSwitch); `0`
51
+ * always shows it.
52
+ */
53
+ langThreshold?: number;
16
54
  /** Human readable model name shown in the page title. */
17
55
  modelName?: string | null;
18
56
  /** Sidebar column span (1–11 in a 12-col grid). */
@@ -29,13 +67,16 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
29
67
  * Enable automatic draft persistence to localStorage.
30
68
  * When `true`, the key is auto-generated as `${endpoint}:${id}`.
31
69
  * Provide `draftKey` to override with a custom key.
32
- * Drafts expire after 24 h. The built-in banner handles restore/discard.
70
+ * Drafts are kept per user, leave out the fields marked `noDraft`, and
71
+ * expire after 24 h. A new record is saved as a draft once it holds a
72
+ * value. The built-in banner handles restore/discard.
33
73
  */
34
74
  draft?: boolean;
35
75
  /**
36
- * Custom localStorage key for draft persistence. Requires `draft: true`.
37
- * Key is prefixed with `mapo:draft:`.
38
- * Example: `"article:42"` → `mapo:draft:article:42`.
76
+ * Custom localStorage key for draft persistence; setting it also turns
77
+ * drafts on. Key is prefixed with `mapo:draft:` and the signed-in
78
+ * user's id (`anonymous` without one).
79
+ * Example: `"article:42"` → `mapo:draft:1:article:42` for the user with id `1`.
39
80
  * Falls back to `${endpoint}:${id}` when omitted.
40
81
  */
41
82
  draftKey?: string;
@@ -64,6 +105,17 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
64
105
  * the auto-derived list.
65
106
  */
66
107
  forceLanguages?: string[];
108
+ /**
109
+ * Marks shown next to the field labels and counted on the tabs, in the body
110
+ * and in the sidebar forms, keyed by the path of the value (`title`,
111
+ * `translations.it.title`, `blocks.0.title`). See `MapoForm`.
112
+ */
113
+ annotations?: FieldAnnotations;
114
+ /**
115
+ * Which extensions registered with `defineDetailExtension()` the page
116
+ * shows: all (`true`), none (`false`) or the listed keys.
117
+ */
118
+ extensions?: boolean | string[];
67
119
  } & {
68
120
  onDeleted?: (() => any) | undefined;
69
121
  "onDraft-found"?: ((draft: T, savedAt: Date, restore: () => void, discard: () => void) => any) | undefined;
@@ -84,11 +136,17 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
84
136
  /** Page title area. Receives full slot bindings. */
85
137
  title(props: {
86
138
  model: T;
139
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
140
+ fields: AnyFieldDescriptor<T>[];
141
+ /** The sidebar fields rendered. */
142
+ sidebarFields: AnyFieldDescriptor<T>[];
87
143
  errors: Record<string, string[]>;
88
144
  currentLang: string;
89
145
  isNew: boolean;
90
146
  isLoading: boolean;
147
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
91
148
  isSaving: boolean;
149
+ /** From the confirmation until the delete is done and the page has gone back. */
92
150
  isDeleting: boolean;
93
151
  isDirty: boolean;
94
152
  draftBanner: {
@@ -98,18 +156,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
98
156
  } | null;
99
157
  readonly: boolean;
100
158
  canDelete: boolean;
159
+ /** Ignored while a save, a delete or a navigation back is under way. */
101
160
  save: (andBack?: boolean) => Promise<void>;
161
+ /** Ignored while a save, a delete or a navigation back is under way. */
102
162
  deleteItem: () => Promise<void>;
163
+ /** Ignored while a save, a delete or a navigation back is under way. */
103
164
  back: () => void;
104
165
  }): VNode[];
105
166
  /** Replaces the language switcher in the main column. */
106
167
  "body-lang"(props: {
107
168
  model: T;
169
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
170
+ fields: AnyFieldDescriptor<T>[];
171
+ /** The sidebar fields rendered. */
172
+ sidebarFields: AnyFieldDescriptor<T>[];
108
173
  errors: Record<string, string[]>;
109
174
  currentLang: string;
110
175
  isNew: boolean;
111
176
  isLoading: boolean;
177
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
112
178
  isSaving: boolean;
179
+ /** From the confirmation until the delete is done and the page has gone back. */
113
180
  isDeleting: boolean;
114
181
  isDirty: boolean;
115
182
  draftBanner: {
@@ -119,22 +186,33 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
119
186
  } | null;
120
187
  readonly: boolean;
121
188
  canDelete: boolean;
189
+ /** Ignored while a save, a delete or a navigation back is under way. */
122
190
  save: (andBack?: boolean) => Promise<void>;
191
+ /** Ignored while a save, a delete or a navigation back is under way. */
123
192
  deleteItem: () => Promise<void>;
193
+ /** Ignored while a save, a delete or a navigation back is under way. */
124
194
  back: () => void;
125
195
  }): VNode[];
126
196
  /**
127
197
  * Draft restore banner shown when a localStorage draft is found.
128
198
  * Receives `draftBanner` (with `savedAt`, `restore`, `discard`) plus the full slot bindings.
129
- * Override to render a completely custom banner; set to an empty slot to suppress it.
199
+ * Override to render a completely custom banner. To hide it, render an
200
+ * element of your own, such as `<span hidden />`: a slot that gives no
201
+ * element, an empty one included, renders the built-in banner.
130
202
  */
131
203
  "draft-banner"(props: {
132
204
  model: T;
205
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
206
+ fields: AnyFieldDescriptor<T>[];
207
+ /** The sidebar fields rendered. */
208
+ sidebarFields: AnyFieldDescriptor<T>[];
133
209
  errors: Record<string, string[]>;
134
210
  currentLang: string;
135
211
  isNew: boolean;
136
212
  isLoading: boolean;
213
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
137
214
  isSaving: boolean;
215
+ /** From the confirmation until the delete is done and the page has gone back. */
138
216
  isDeleting: boolean;
139
217
  isDirty: boolean;
140
218
  draftBanner: {
@@ -144,18 +222,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
144
222
  } | null;
145
223
  readonly: boolean;
146
224
  canDelete: boolean;
225
+ /** Ignored while a save, a delete or a navigation back is under way. */
147
226
  save: (andBack?: boolean) => Promise<void>;
227
+ /** Ignored while a save, a delete or a navigation back is under way. */
148
228
  deleteItem: () => Promise<void>;
229
+ /** Ignored while a save, a delete or a navigation back is under way. */
149
230
  back: () => void;
150
231
  }): VNode[];
151
232
  /** Extra content above the main form. */
152
233
  "body-top"(props: {
153
234
  model: T;
235
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
236
+ fields: AnyFieldDescriptor<T>[];
237
+ /** The sidebar fields rendered. */
238
+ sidebarFields: AnyFieldDescriptor<T>[];
154
239
  errors: Record<string, string[]>;
155
240
  currentLang: string;
156
241
  isNew: boolean;
157
242
  isLoading: boolean;
243
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
158
244
  isSaving: boolean;
245
+ /** From the confirmation until the delete is done and the page has gone back. */
159
246
  isDeleting: boolean;
160
247
  isDirty: boolean;
161
248
  draftBanner: {
@@ -165,18 +252,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
165
252
  } | null;
166
253
  readonly: boolean;
167
254
  canDelete: boolean;
255
+ /** Ignored while a save, a delete or a navigation back is under way. */
168
256
  save: (andBack?: boolean) => Promise<void>;
257
+ /** Ignored while a save, a delete or a navigation back is under way. */
169
258
  deleteItem: () => Promise<void>;
259
+ /** Ignored while a save, a delete or a navigation back is under way. */
170
260
  back: () => void;
171
261
  }): VNode[];
172
262
  /** Replaces the entire main form. */
173
263
  body(props: {
174
264
  model: T;
265
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
266
+ fields: AnyFieldDescriptor<T>[];
267
+ /** The sidebar fields rendered. */
268
+ sidebarFields: AnyFieldDescriptor<T>[];
175
269
  errors: Record<string, string[]>;
176
270
  currentLang: string;
177
271
  isNew: boolean;
178
272
  isLoading: boolean;
273
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
179
274
  isSaving: boolean;
275
+ /** From the confirmation until the delete is done and the page has gone back. */
180
276
  isDeleting: boolean;
181
277
  isDirty: boolean;
182
278
  draftBanner: {
@@ -186,18 +282,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
186
282
  } | null;
187
283
  readonly: boolean;
188
284
  canDelete: boolean;
285
+ /** Ignored while a save, a delete or a navigation back is under way. */
189
286
  save: (andBack?: boolean) => Promise<void>;
287
+ /** Ignored while a save, a delete or a navigation back is under way. */
190
288
  deleteItem: () => Promise<void>;
289
+ /** Ignored while a save, a delete or a navigation back is under way. */
191
290
  back: () => void;
192
291
  }): VNode[];
193
292
  /** Extra content below the main form. */
194
293
  "body-bottom"(props: {
195
294
  model: T;
295
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
296
+ fields: AnyFieldDescriptor<T>[];
297
+ /** The sidebar fields rendered. */
298
+ sidebarFields: AnyFieldDescriptor<T>[];
196
299
  errors: Record<string, string[]>;
197
300
  currentLang: string;
198
301
  isNew: boolean;
199
302
  isLoading: boolean;
303
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
200
304
  isSaving: boolean;
305
+ /** From the confirmation until the delete is done and the page has gone back. */
201
306
  isDeleting: boolean;
202
307
  isDirty: boolean;
203
308
  draftBanner: {
@@ -207,18 +312,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
207
312
  } | null;
208
313
  readonly: boolean;
209
314
  canDelete: boolean;
315
+ /** Ignored while a save, a delete or a navigation back is under way. */
210
316
  save: (andBack?: boolean) => Promise<void>;
317
+ /** Ignored while a save, a delete or a navigation back is under way. */
211
318
  deleteItem: () => Promise<void>;
319
+ /** Ignored while a save, a delete or a navigation back is under way. */
212
320
  back: () => void;
213
321
  }): VNode[];
214
322
  /** Replaces the entire sidebar action card (save/delete/back buttons). */
215
323
  "side-buttons"(props: {
216
324
  model: T;
325
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
326
+ fields: AnyFieldDescriptor<T>[];
327
+ /** The sidebar fields rendered. */
328
+ sidebarFields: AnyFieldDescriptor<T>[];
217
329
  errors: Record<string, string[]>;
218
330
  currentLang: string;
219
331
  isNew: boolean;
220
332
  isLoading: boolean;
333
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
221
334
  isSaving: boolean;
335
+ /** From the confirmation until the delete is done and the page has gone back. */
222
336
  isDeleting: boolean;
223
337
  isDirty: boolean;
224
338
  draftBanner: {
@@ -228,18 +342,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
228
342
  } | null;
229
343
  readonly: boolean;
230
344
  canDelete: boolean;
345
+ /** Ignored while a save, a delete or a navigation back is under way. */
231
346
  save: (andBack?: boolean) => Promise<void>;
347
+ /** Ignored while a save, a delete or a navigation back is under way. */
232
348
  deleteItem: () => Promise<void>;
349
+ /** Ignored while a save, a delete or a navigation back is under way. */
233
350
  back: () => void;
234
351
  }): VNode[];
235
352
  /** Override just the Save button. */
236
353
  "button-save"(props: {
237
354
  model: T;
355
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
356
+ fields: AnyFieldDescriptor<T>[];
357
+ /** The sidebar fields rendered. */
358
+ sidebarFields: AnyFieldDescriptor<T>[];
238
359
  errors: Record<string, string[]>;
239
360
  currentLang: string;
240
361
  isNew: boolean;
241
362
  isLoading: boolean;
363
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
242
364
  isSaving: boolean;
365
+ /** From the confirmation until the delete is done and the page has gone back. */
243
366
  isDeleting: boolean;
244
367
  isDirty: boolean;
245
368
  draftBanner: {
@@ -249,18 +372,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
249
372
  } | null;
250
373
  readonly: boolean;
251
374
  canDelete: boolean;
375
+ /** Ignored while a save, a delete or a navigation back is under way. */
252
376
  save: (andBack?: boolean) => Promise<void>;
377
+ /** Ignored while a save, a delete or a navigation back is under way. */
253
378
  deleteItem: () => Promise<void>;
379
+ /** Ignored while a save, a delete or a navigation back is under way. */
254
380
  back: () => void;
255
381
  }): VNode[];
256
382
  /** Override just the Save & continue button. */
257
383
  "button-savecontinue"(props: {
258
384
  model: T;
385
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
386
+ fields: AnyFieldDescriptor<T>[];
387
+ /** The sidebar fields rendered. */
388
+ sidebarFields: AnyFieldDescriptor<T>[];
259
389
  errors: Record<string, string[]>;
260
390
  currentLang: string;
261
391
  isNew: boolean;
262
392
  isLoading: boolean;
393
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
263
394
  isSaving: boolean;
395
+ /** From the confirmation until the delete is done and the page has gone back. */
264
396
  isDeleting: boolean;
265
397
  isDirty: boolean;
266
398
  draftBanner: {
@@ -270,18 +402,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
270
402
  } | null;
271
403
  readonly: boolean;
272
404
  canDelete: boolean;
405
+ /** Ignored while a save, a delete or a navigation back is under way. */
273
406
  save: (andBack?: boolean) => Promise<void>;
407
+ /** Ignored while a save, a delete or a navigation back is under way. */
274
408
  deleteItem: () => Promise<void>;
409
+ /** Ignored while a save, a delete or a navigation back is under way. */
275
410
  back: () => void;
276
411
  }): VNode[];
277
412
  /** Override just the Back button. */
278
413
  "button-back"(props: {
279
414
  model: T;
415
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
416
+ fields: AnyFieldDescriptor<T>[];
417
+ /** The sidebar fields rendered. */
418
+ sidebarFields: AnyFieldDescriptor<T>[];
280
419
  errors: Record<string, string[]>;
281
420
  currentLang: string;
282
421
  isNew: boolean;
283
422
  isLoading: boolean;
423
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
284
424
  isSaving: boolean;
425
+ /** From the confirmation until the delete is done and the page has gone back. */
285
426
  isDeleting: boolean;
286
427
  isDirty: boolean;
287
428
  draftBanner: {
@@ -291,18 +432,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
291
432
  } | null;
292
433
  readonly: boolean;
293
434
  canDelete: boolean;
435
+ /** Ignored while a save, a delete or a navigation back is under way. */
294
436
  save: (andBack?: boolean) => Promise<void>;
437
+ /** Ignored while a save, a delete or a navigation back is under way. */
295
438
  deleteItem: () => Promise<void>;
439
+ /** Ignored while a save, a delete or a navigation back is under way. */
296
440
  back: () => void;
297
441
  }): VNode[];
298
442
  /** Override just the Delete button. */
299
443
  "button-delete"(props: {
300
444
  model: T;
445
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
446
+ fields: AnyFieldDescriptor<T>[];
447
+ /** The sidebar fields rendered. */
448
+ sidebarFields: AnyFieldDescriptor<T>[];
301
449
  errors: Record<string, string[]>;
302
450
  currentLang: string;
303
451
  isNew: boolean;
304
452
  isLoading: boolean;
453
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
305
454
  isSaving: boolean;
455
+ /** From the confirmation until the delete is done and the page has gone back. */
306
456
  isDeleting: boolean;
307
457
  isDirty: boolean;
308
458
  draftBanner: {
@@ -312,18 +462,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
312
462
  } | null;
313
463
  readonly: boolean;
314
464
  canDelete: boolean;
465
+ /** Ignored while a save, a delete or a navigation back is under way. */
315
466
  save: (andBack?: boolean) => Promise<void>;
467
+ /** Ignored while a save, a delete or a navigation back is under way. */
316
468
  deleteItem: () => Promise<void>;
469
+ /** Ignored while a save, a delete or a navigation back is under way. */
317
470
  back: () => void;
318
471
  }): VNode[];
319
472
  /** Extra content at the top of the sidebar (below action buttons). */
320
473
  "side-top"(props: {
321
474
  model: T;
475
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
476
+ fields: AnyFieldDescriptor<T>[];
477
+ /** The sidebar fields rendered. */
478
+ sidebarFields: AnyFieldDescriptor<T>[];
322
479
  errors: Record<string, string[]>;
323
480
  currentLang: string;
324
481
  isNew: boolean;
325
482
  isLoading: boolean;
483
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
326
484
  isSaving: boolean;
485
+ /** From the confirmation until the delete is done and the page has gone back. */
327
486
  isDeleting: boolean;
328
487
  isDirty: boolean;
329
488
  draftBanner: {
@@ -333,18 +492,27 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
333
492
  } | null;
334
493
  readonly: boolean;
335
494
  canDelete: boolean;
495
+ /** Ignored while a save, a delete or a navigation back is under way. */
336
496
  save: (andBack?: boolean) => Promise<void>;
497
+ /** Ignored while a save, a delete or a navigation back is under way. */
337
498
  deleteItem: () => Promise<void>;
499
+ /** Ignored while a save, a delete or a navigation back is under way. */
338
500
  back: () => void;
339
501
  }): VNode[];
340
502
  /** Extra content at the bottom of the sidebar, above the danger zone. */
341
503
  "side-bottom"(props: {
342
504
  model: T;
505
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
506
+ fields: AnyFieldDescriptor<T>[];
507
+ /** The sidebar fields rendered. */
508
+ sidebarFields: AnyFieldDescriptor<T>[];
343
509
  errors: Record<string, string[]>;
344
510
  currentLang: string;
345
511
  isNew: boolean;
346
512
  isLoading: boolean;
513
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
347
514
  isSaving: boolean;
515
+ /** From the confirmation until the delete is done and the page has gone back. */
348
516
  isDeleting: boolean;
349
517
  isDirty: boolean;
350
518
  draftBanner: {
@@ -354,21 +522,32 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
354
522
  } | null;
355
523
  readonly: boolean;
356
524
  canDelete: boolean;
525
+ /** Ignored while a save, a delete or a navigation back is under way. */
357
526
  save: (andBack?: boolean) => Promise<void>;
527
+ /** Ignored while a save, a delete or a navigation back is under way. */
358
528
  deleteItem: () => Promise<void>;
529
+ /** Ignored while a save, a delete or a navigation back is under way. */
359
530
  back: () => void;
360
531
  }): VNode[];
361
532
  /**
362
533
  * Danger-zone card at the very bottom of the sidebar (delete action).
363
- * Rendered only for existing records (`!isNew`). Override to replace or suppress it.
534
+ * Rendered only for existing records (`!isNew`). Override to replace it;
535
+ * to hide it, render an element of your own, such as `<span hidden />`: a
536
+ * slot that gives no element, an empty one included, renders the built-in card.
364
537
  */
365
538
  "side-danger"(props: {
366
539
  model: T;
540
+ /** The body fields rendered: the `fields` prop, or the ones derived from the schema. */
541
+ fields: AnyFieldDescriptor<T>[];
542
+ /** The sidebar fields rendered. */
543
+ sidebarFields: AnyFieldDescriptor<T>[];
367
544
  errors: Record<string, string[]>;
368
545
  currentLang: string;
369
546
  isNew: boolean;
370
547
  isLoading: boolean;
548
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
371
549
  isSaving: boolean;
550
+ /** From the confirmation until the delete is done and the page has gone back. */
372
551
  isDeleting: boolean;
373
552
  isDirty: boolean;
374
553
  draftBanner: {
@@ -378,8 +557,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
378
557
  } | null;
379
558
  readonly: boolean;
380
559
  canDelete: boolean;
560
+ /** Ignored while a save, a delete or a navigation back is under way. */
381
561
  save: (andBack?: boolean) => Promise<void>;
562
+ /** Ignored while a save, a delete or a navigation back is under way. */
382
563
  deleteItem: () => Promise<void>;
564
+ /** Ignored while a save, a delete or a navigation back is under way. */
383
565
  back: () => void;
384
566
  }): VNode[];
385
567
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MapoDetail.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoDetail.vue"],"names":[],"mappings":"AAg2BA,OAAO,EAUL,KAAK,KAAK,EACX,MAAM,KAAK,CAAC;AAOb,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACtC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAyxCO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;QArxCpD,uCAAuC;kBAC7B,MAAM;QAChB,yCAAyC;YACrC,MAAM,GAAG,MAAM;QACnB,qCAAqC;gBAC7B,kBAAkB,CAAC,CAAC,CAAC,EAAE;QAC/B,8CAA8C;wBAC9B,kBAAkB,CAAC,CAAC,CAAC,EAAE;QACvC,sDAAsD;oBAC1C,MAAM,EAAE;QACpB,yDAAyD;oBAC7C,MAAM,GAAG,IAAI;QACzB,mDAAmD;sBACrC,MAAM;QACpB,2CAA2C;iBAClC,OAAO;QAChB,uDAAuD;mBAC5C,OAAO;QAClB,4BAA4B;mBACjB,OAAO;QAClB,kEAAkE;mBACvD,aAAa,GAAG,IAAI;QAC/B;;;;;WAKG;gBACK,OAAO;QACf;;;;;WAKG;mBACQ,MAAM;QACjB;;;;;WAKG;oBACS,eAAe;QAC3B;;;;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AE,CAAC;yBACnB,MAAM;mBACZ,OAAO;uBACH,OAAO;YAClB,+FAA+F;sBACrF,OAAO;YACjB,iFAAiF;wBACrE,OAAO;qBACV,OAAO;;yBAnBP,IAAI;yBACJ,MAAM,IAAI;yBACV,MAAM,IAAI;;sBAmBT,OAAO;uBACN,OAAO;YAClB,wEAAwE;kBAClE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC;YAC1C,wEAAwE;wBAC5D,MAAM,OAAO,CAAC,IAAI,CAAC;YAC/B,wEAAwE;kBAClE,MAAM,IAAI;YA0CoB,KAAK,EAAE;;;YArzBvC,OAAO,SAAS,CAAC,GAAG,IAAI;YACxB,SAAS,GAAG,IAAI;YAMf,aAAa,SACT,CAAC,WACC,IAAI,WACJ,MAAM,IAAI,WACV,MAAM,IAAI,GAClB,IAAI;;EAmkDL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAI,CAAC;wBACvD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ <script setup>
2
+ import { computed } from "vue";
3
+ import { useMapoDetail } from "../composables/useMapoDetail";
4
+ import { detailExtensions } from "../composables/defineDetailExtension";
5
+ const props = defineProps({
6
+ placement: { type: String, required: true }
7
+ });
8
+ const detail = useMapoDetail();
9
+ const registry = detailExtensions();
10
+ const shown = computed(() => {
11
+ if (!detail) return [];
12
+ const allowed = detail.extensions.value;
13
+ if (allowed === false) return [];
14
+ return registry.filter((extension) => extension.placement === props.placement).filter((extension) => allowed === true || allowed.includes(extension.key)).filter((extension) => extension.visible?.(detail) ?? true).sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
15
+ });
16
+ </script>
17
+
18
+ <template>
19
+ <component
20
+ :is="extension.component"
21
+ v-for="extension in shown"
22
+ :key="extension.key"
23
+ />
24
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { DetailExtensionPlacement } from "../types/detail";
2
+ /**
3
+ * Renders the extensions registered with `defineDetailExtension()` for one
4
+ * placement of the surrounding `MapoDetail`, in their order. `MapoDetail` uses
5
+ * it itself; place it in a slot that replaces one of those places, such as
6
+ * `side-buttons`, to keep the extensions there.
7
+ */
8
+ type __VLS_Props = {
9
+ /** Which extensions: `actions` or `body-top`. */
10
+ placement: DetailExtensionPlacement;
11
+ };
12
+ 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>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ //# sourceMappingURL=MapoDetailExtensions.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapoDetailExtensions.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoDetailExtensions.vue"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AAgDF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}