@mapomodule/uikit 2.0.0-beta.2 → 2.0.0-beta.20

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 (258) hide show
  1. package/README.md +46 -142
  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__/MapoList.component.test.d.ts +2 -0
  9. package/dist/__tests__/MapoList.component.test.d.ts.map +1 -0
  10. package/dist/__tests__/MapoListActions.component.test.d.ts +2 -0
  11. package/dist/__tests__/MapoListActions.component.test.d.ts.map +1 -0
  12. package/dist/__tests__/MapoListTable.component.test.d.ts +2 -0
  13. package/dist/__tests__/MapoListTable.component.test.d.ts.map +1 -0
  14. package/dist/__tests__/MapoMediaEditor.component.test.d.ts +2 -0
  15. package/dist/__tests__/MapoMediaEditor.component.test.d.ts.map +1 -0
  16. package/dist/__tests__/MapoMediaFolderPicker.component.test.d.ts +2 -0
  17. package/dist/__tests__/MapoMediaFolderPicker.component.test.d.ts.map +1 -0
  18. package/dist/__tests__/MapoMediaFolders.component.test.d.ts +2 -0
  19. package/dist/__tests__/MapoMediaFolders.component.test.d.ts.map +1 -0
  20. package/dist/__tests__/MapoMediaGallery.component.test.d.ts +2 -0
  21. package/dist/__tests__/MapoMediaGallery.component.test.d.ts.map +1 -0
  22. package/dist/__tests__/MapoMediaUploadHandover.component.test.d.ts +2 -0
  23. package/dist/__tests__/MapoMediaUploadHandover.component.test.d.ts.map +1 -0
  24. package/dist/__tests__/MapoMenuManager.component.test.d.ts +2 -0
  25. package/dist/__tests__/MapoMenuManager.component.test.d.ts.map +1 -0
  26. package/dist/__tests__/MapoSnackBar.component.test.d.ts +2 -0
  27. package/dist/__tests__/MapoSnackBar.component.test.d.ts.map +1 -0
  28. package/dist/__tests__/__mocks__/nuxt-app.d.ts +9 -0
  29. package/dist/__tests__/__mocks__/nuxt-app.d.ts.map +1 -0
  30. package/dist/__tests__/langInfo.test.d.ts +2 -0
  31. package/dist/__tests__/langInfo.test.d.ts.map +1 -0
  32. package/dist/__tests__/listTable.test.d.ts +2 -0
  33. package/dist/__tests__/listTable.test.d.ts.map +1 -0
  34. package/dist/__tests__/mediaDrag.test.d.ts +2 -0
  35. package/dist/__tests__/mediaDrag.test.d.ts.map +1 -0
  36. package/dist/__tests__/mediaFolders.test.d.ts +2 -0
  37. package/dist/__tests__/mediaFolders.test.d.ts.map +1 -0
  38. package/dist/__tests__/mediaLanguages.test.d.ts +2 -0
  39. package/dist/__tests__/mediaLanguages.test.d.ts.map +1 -0
  40. package/dist/__tests__/mediaMetadata.test.d.ts +2 -0
  41. package/dist/__tests__/mediaMetadata.test.d.ts.map +1 -0
  42. package/dist/__tests__/mediaStore.test.d.ts +2 -0
  43. package/dist/__tests__/mediaStore.test.d.ts.map +1 -0
  44. package/dist/__tests__/mediaUrl.test.d.ts +2 -0
  45. package/dist/__tests__/mediaUrl.test.d.ts.map +1 -0
  46. package/dist/index.d.mts +3 -0
  47. package/dist/index.d.ts +4 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.mjs +1 -1
  50. package/dist/module.d.mts +48 -1
  51. package/dist/module.d.ts +44 -0
  52. package/dist/module.d.ts.map +1 -1
  53. package/dist/module.json +1 -1
  54. package/dist/module.mjs +71 -2
  55. package/dist/runtime/adapters/defaultMediaAdapter.d.ts +15 -0
  56. package/dist/runtime/adapters/defaultMediaAdapter.d.ts.map +1 -0
  57. package/dist/runtime/adapters/defaultMediaAdapter.js +35 -0
  58. package/dist/runtime/assets/main.css +1 -1
  59. package/dist/runtime/components/MapoConfirmDialog.vue +23 -4
  60. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -1
  61. package/dist/runtime/components/MapoDetail.vue +127 -55
  62. package/dist/runtime/components/MapoDetail.vue.d.ts +102 -5
  63. package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -1
  64. package/dist/runtime/components/MapoDetailLangSwitch.vue +22 -26
  65. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +4 -3
  66. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -1
  67. package/dist/runtime/components/MapoDropArea.vue +110 -0
  68. package/dist/runtime/components/MapoDropArea.vue.d.ts +33 -0
  69. package/dist/runtime/components/MapoDropArea.vue.d.ts.map +1 -0
  70. package/dist/runtime/components/MapoLangSwitcher.vue +39 -0
  71. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts +18 -0
  72. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts.map +1 -0
  73. package/dist/runtime/components/MapoList.vue +45 -31
  74. package/dist/runtime/components/MapoList.vue.d.ts +18 -5
  75. package/dist/runtime/components/MapoList.vue.d.ts.map +1 -1
  76. package/dist/runtime/components/MapoListActions.vue +27 -13
  77. package/dist/runtime/components/MapoListActions.vue.d.ts +4 -0
  78. package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -1
  79. package/dist/runtime/components/MapoListFilters.vue +4 -2
  80. package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -1
  81. package/dist/runtime/components/MapoListQuickEdit.vue +20 -10
  82. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -1
  83. package/dist/runtime/components/MapoListTable.vue +125 -49
  84. package/dist/runtime/components/MapoListTable.vue.d.ts +13 -5
  85. package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -1
  86. package/dist/runtime/components/MapoLogin.vue +13 -10
  87. package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -1
  88. package/dist/runtime/components/MapoLogoutButton.vue +4 -2
  89. package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -1
  90. package/dist/runtime/components/MapoMediaBreadcrumbs.vue +47 -0
  91. package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts +4 -0
  92. package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts.map +1 -0
  93. package/dist/runtime/components/MapoMediaEditor.vue +382 -0
  94. package/dist/runtime/components/MapoMediaEditor.vue.d.ts +13 -0
  95. package/dist/runtime/components/MapoMediaEditor.vue.d.ts.map +1 -0
  96. package/dist/runtime/components/MapoMediaFileChanger.vue +112 -0
  97. package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts +15 -0
  98. package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts.map +1 -0
  99. package/dist/runtime/components/MapoMediaFolderPicker.vue +129 -0
  100. package/dist/runtime/components/MapoMediaFolderPicker.vue.d.ts +33 -0
  101. package/dist/runtime/components/MapoMediaFolderPicker.vue.d.ts.map +1 -0
  102. package/dist/runtime/components/MapoMediaFolders.vue +402 -0
  103. package/dist/runtime/components/MapoMediaFolders.vue.d.ts +4 -0
  104. package/dist/runtime/components/MapoMediaFolders.vue.d.ts.map +1 -0
  105. package/dist/runtime/components/MapoMediaGallery.vue +304 -0
  106. package/dist/runtime/components/MapoMediaGallery.vue.d.ts +8 -0
  107. package/dist/runtime/components/MapoMediaGallery.vue.d.ts.map +1 -0
  108. package/dist/runtime/components/MapoMediaManager.vue +144 -0
  109. package/dist/runtime/components/MapoMediaManager.vue.d.ts +44 -0
  110. package/dist/runtime/components/MapoMediaManager.vue.d.ts.map +1 -0
  111. package/dist/runtime/components/MapoMediaManagerDialog.vue +116 -0
  112. package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts +41 -0
  113. package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts.map +1 -0
  114. package/dist/runtime/components/MapoMediaPreview.vue +94 -0
  115. package/dist/runtime/components/MapoMediaPreview.vue.d.ts +19 -0
  116. package/dist/runtime/components/MapoMediaPreview.vue.d.ts.map +1 -0
  117. package/dist/runtime/components/MapoMediaUploader.vue +294 -0
  118. package/dist/runtime/components/MapoMediaUploader.vue.d.ts +8 -0
  119. package/dist/runtime/components/MapoMediaUploader.vue.d.ts.map +1 -0
  120. package/dist/runtime/components/MapoMenuManager.vue +301 -0
  121. package/dist/runtime/components/MapoMenuManager.vue.d.ts +92 -0
  122. package/dist/runtime/components/MapoMenuManager.vue.d.ts.map +1 -0
  123. package/dist/runtime/components/MapoMenuNodeEditor.vue +201 -0
  124. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts +61 -0
  125. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts.map +1 -0
  126. package/dist/runtime/components/MapoMenuTreeview.vue +181 -0
  127. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts +57 -0
  128. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts.map +1 -0
  129. package/dist/runtime/components/MapoMenuTreeviewNode.vue +175 -0
  130. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts +27 -0
  131. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts.map +1 -0
  132. package/dist/runtime/components/MapoSidebar.vue +3 -1
  133. package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -1
  134. package/dist/runtime/components/MapoSidebarList.vue +1 -1
  135. package/dist/runtime/components/MapoSidebarProfile.vue +6 -2
  136. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -1
  137. package/dist/runtime/components/MapoSnackBar.vue +11 -0
  138. package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -1
  139. package/dist/runtime/components/MapoThemeToggle.vue +5 -1
  140. package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -1
  141. package/dist/runtime/components/menuDndContext.d.ts +19 -0
  142. package/dist/runtime/components/menuDndContext.d.ts.map +1 -0
  143. package/dist/runtime/components/menuDndContext.js +3 -0
  144. package/dist/runtime/page-meta.nuxt.d.ts +4 -0
  145. package/dist/runtime/pages/index.vue +4 -3
  146. package/dist/runtime/pages/index.vue.d.ts.map +1 -1
  147. package/dist/runtime/pages/login.vue +0 -4
  148. package/dist/runtime/pages/login.vue.d.ts.map +1 -1
  149. package/dist/runtime/plugins/media-adapter.d.ts +18 -0
  150. package/dist/runtime/plugins/media-adapter.d.ts.map +1 -0
  151. package/dist/runtime/plugins/media-adapter.js +8 -0
  152. package/dist/runtime/stores/media.d.ts +505 -0
  153. package/dist/runtime/stores/media.d.ts.map +1 -0
  154. package/dist/runtime/stores/media.js +545 -0
  155. package/dist/runtime/types/list.d.ts +10 -2
  156. package/dist/runtime/types/list.d.ts.map +1 -1
  157. package/dist/runtime/types/media.d.ts +131 -0
  158. package/dist/runtime/types/media.d.ts.map +1 -0
  159. package/dist/runtime/types/media.js +0 -0
  160. package/dist/runtime/types/menu.d.ts +66 -0
  161. package/dist/runtime/types/menu.d.ts.map +1 -0
  162. package/dist/runtime/types/menu.js +30 -0
  163. package/dist/runtime/utils/contentLanguages.d.ts +9 -0
  164. package/dist/runtime/utils/contentLanguages.d.ts.map +1 -0
  165. package/dist/runtime/utils/contentLanguages.js +8 -0
  166. package/dist/runtime/utils/langInfo.d.ts +43 -0
  167. package/dist/runtime/utils/langInfo.d.ts.map +1 -0
  168. package/dist/runtime/utils/langInfo.js +17 -0
  169. package/dist/runtime/utils/listTable.d.ts +29 -0
  170. package/dist/runtime/utils/listTable.d.ts.map +1 -0
  171. package/dist/runtime/utils/listTable.js +21 -0
  172. package/dist/runtime/utils/mediaDrag.d.ts +21 -0
  173. package/dist/runtime/utils/mediaDrag.d.ts.map +1 -0
  174. package/dist/runtime/utils/mediaDrag.js +11 -0
  175. package/dist/runtime/utils/mediaFolders.d.ts +65 -0
  176. package/dist/runtime/utils/mediaFolders.d.ts.map +1 -0
  177. package/dist/runtime/utils/mediaFolders.js +97 -0
  178. package/dist/runtime/utils/mediaMetadata.d.ts +39 -0
  179. package/dist/runtime/utils/mediaMetadata.d.ts.map +1 -0
  180. package/dist/runtime/utils/mediaMetadata.js +97 -0
  181. package/dist/runtime/utils/mediaUrl.d.ts +16 -0
  182. package/dist/runtime/utils/mediaUrl.d.ts.map +1 -0
  183. package/dist/runtime/utils/mediaUrl.js +12 -0
  184. package/dist/types.d.mts +1 -1
  185. package/package.json +15 -11
  186. package/src/__tests__/MapoConfirmDialog.component.test.ts +165 -0
  187. package/src/__tests__/MapoDetail.component.test.ts +393 -0
  188. package/src/__tests__/MapoDetailLangSwitch.component.test.ts +145 -0
  189. package/src/__tests__/MapoList.component.test.ts +166 -0
  190. package/src/__tests__/MapoListActions.component.test.ts +175 -0
  191. package/src/__tests__/MapoListTable.component.test.ts +545 -0
  192. package/src/__tests__/MapoMediaEditor.component.test.ts +447 -0
  193. package/src/__tests__/MapoMediaFolderPicker.component.test.ts +220 -0
  194. package/src/__tests__/MapoMediaFolders.component.test.ts +519 -0
  195. package/src/__tests__/MapoMediaGallery.component.test.ts +211 -0
  196. package/src/__tests__/MapoMediaUploadHandover.component.test.ts +241 -0
  197. package/src/__tests__/MapoMenuManager.component.test.ts +175 -0
  198. package/src/__tests__/MapoSnackBar.component.test.ts +79 -0
  199. package/src/__tests__/__mocks__/nuxt-app.ts +8 -0
  200. package/src/__tests__/langInfo.test.ts +85 -0
  201. package/src/__tests__/listTable.test.ts +82 -0
  202. package/src/__tests__/mediaDrag.test.ts +42 -0
  203. package/src/__tests__/mediaFolders.test.ts +204 -0
  204. package/src/__tests__/mediaLanguages.test.ts +66 -0
  205. package/src/__tests__/mediaMetadata.test.ts +169 -0
  206. package/src/__tests__/mediaStore.test.ts +569 -0
  207. package/src/__tests__/mediaUrl.test.ts +44 -0
  208. package/src/index.ts +21 -0
  209. package/src/module.ts +155 -0
  210. package/src/runtime/adapters/defaultMediaAdapter.ts +67 -0
  211. package/src/runtime/assets/main.css +9 -0
  212. package/src/runtime/components/MapoConfirmDialog.vue +33 -4
  213. package/src/runtime/components/MapoDetail.vue +229 -73
  214. package/src/runtime/components/MapoDetailLangSwitch.vue +27 -28
  215. package/src/runtime/components/MapoDropArea.vue +145 -0
  216. package/src/runtime/components/MapoLangSwitcher.vue +74 -0
  217. package/src/runtime/components/MapoList.vue +65 -34
  218. package/src/runtime/components/MapoListActions.vue +32 -14
  219. package/src/runtime/components/MapoListFilters.vue +5 -2
  220. package/src/runtime/components/MapoListQuickEdit.vue +22 -10
  221. package/src/runtime/components/MapoListTable.vue +159 -59
  222. package/src/runtime/components/MapoLogin.vue +13 -10
  223. package/src/runtime/components/MapoLogoutButton.vue +4 -2
  224. package/src/runtime/components/MapoMediaBreadcrumbs.vue +53 -0
  225. package/src/runtime/components/MapoMediaEditor.vue +447 -0
  226. package/src/runtime/components/MapoMediaFileChanger.vue +136 -0
  227. package/src/runtime/components/MapoMediaFolderPicker.vue +176 -0
  228. package/src/runtime/components/MapoMediaFolders.vue +478 -0
  229. package/src/runtime/components/MapoMediaGallery.vue +350 -0
  230. package/src/runtime/components/MapoMediaManager.vue +194 -0
  231. package/src/runtime/components/MapoMediaManagerDialog.vue +148 -0
  232. package/src/runtime/components/MapoMediaPreview.vue +116 -0
  233. package/src/runtime/components/MapoMediaUploader.vue +362 -0
  234. package/src/runtime/components/MapoMenuManager.vue +454 -0
  235. package/src/runtime/components/MapoMenuNodeEditor.vue +282 -0
  236. package/src/runtime/components/MapoMenuTreeview.vue +264 -0
  237. package/src/runtime/components/MapoMenuTreeviewNode.vue +234 -0
  238. package/src/runtime/components/MapoSidebar.vue +3 -1
  239. package/src/runtime/components/MapoSidebarList.vue +1 -1
  240. package/src/runtime/components/MapoSidebarProfile.vue +6 -2
  241. package/src/runtime/components/MapoSnackBar.vue +12 -0
  242. package/src/runtime/components/MapoThemeToggle.vue +5 -1
  243. package/src/runtime/components/menuDndContext.ts +22 -0
  244. package/src/runtime/page-meta.nuxt.d.ts +4 -0
  245. package/src/runtime/pages/index.vue +4 -3
  246. package/src/runtime/pages/login.vue +0 -4
  247. package/src/runtime/plugins/media-adapter.ts +33 -0
  248. package/src/runtime/stores/media.ts +820 -0
  249. package/src/runtime/types/list.ts +10 -2
  250. package/src/runtime/types/media.ts +144 -0
  251. package/src/runtime/types/menu.ts +105 -0
  252. package/src/runtime/utils/contentLanguages.ts +18 -0
  253. package/src/runtime/utils/langInfo.ts +63 -0
  254. package/src/runtime/utils/listTable.ts +54 -0
  255. package/src/runtime/utils/mediaDrag.ts +29 -0
  256. package/src/runtime/utils/mediaFolders.ts +182 -0
  257. package/src/runtime/utils/mediaMetadata.ts +165 -0
  258. package/src/runtime/utils/mediaUrl.ts +30 -0
@@ -1,5 +1,6 @@
1
1
  import { type VNode } from "vue";
2
2
  import type { AnyFieldDescriptor, FieldRegistry } from "@mapomodule/form/types";
3
+ import type { UseFormFromSchemaOptions } from "@mapomodule/form/runtime/composables/useFormFromSchema";
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,38 @@ 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 schema
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
+ * Requires a backend that publishes `schema` on OPTIONS (camomilla >= 6.6).
29
+ */
30
+ experimentalFieldsFromSchema?: boolean;
31
+ /** Passed straight to useFormFromSchema when deriving. */
32
+ schemaFieldOptions?: UseFormFromSchemaOptions;
12
33
  /** Fields for the sidebar form (optional). */
13
34
  sidebarFields?: AnyFieldDescriptor<T>[];
14
35
  /** Translation language codes (e.g. ['it', 'en']). */
15
36
  languages?: string[];
37
+ /**
38
+ * Number of languages above which the language switcher adds a searchable
39
+ * select next to its tabs. Default `8` (from MapoDetailLangSwitch); `0`
40
+ * always shows it.
41
+ */
42
+ langThreshold?: number;
16
43
  /** Human readable model name shown in the page title. */
17
44
  modelName?: string | null;
18
45
  /** Sidebar column span (1–11 in a 12-col grid). */
@@ -59,9 +86,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
59
86
  */
60
87
  previewField?: string;
61
88
  /**
62
- * Override the language list regardless of what `lang_info.site_languages`
63
- * returns from the backend. Takes precedence over both `languages` prop and
64
- * the auto-derived list.
89
+ * Override the language list regardless of what the backend declares
90
+ * (`lang_info.languages`). Takes precedence over the `languages` prop, the
91
+ * auto-derived list and the app's `mapo.uikit.contentLanguages`.
65
92
  */
66
93
  forceLanguages?: string[];
67
94
  } & {
@@ -88,7 +115,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
88
115
  currentLang: string;
89
116
  isNew: boolean;
90
117
  isLoading: boolean;
118
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
91
119
  isSaving: boolean;
120
+ /** From the confirmation until the delete is done and the page has gone back. */
92
121
  isDeleting: boolean;
93
122
  isDirty: boolean;
94
123
  draftBanner: {
@@ -98,8 +127,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
98
127
  } | null;
99
128
  readonly: boolean;
100
129
  canDelete: boolean;
130
+ /** Ignored while a save, a delete or a navigation back is under way. */
101
131
  save: (andBack?: boolean) => Promise<void>;
132
+ /** Ignored while a save, a delete or a navigation back is under way. */
102
133
  deleteItem: () => Promise<void>;
134
+ /** Ignored while a save, a delete or a navigation back is under way. */
103
135
  back: () => void;
104
136
  }): VNode[];
105
137
  /** Replaces the language switcher in the main column. */
@@ -109,7 +141,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
109
141
  currentLang: string;
110
142
  isNew: boolean;
111
143
  isLoading: boolean;
144
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
112
145
  isSaving: boolean;
146
+ /** From the confirmation until the delete is done and the page has gone back. */
113
147
  isDeleting: boolean;
114
148
  isDirty: boolean;
115
149
  draftBanner: {
@@ -119,8 +153,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
119
153
  } | null;
120
154
  readonly: boolean;
121
155
  canDelete: boolean;
156
+ /** Ignored while a save, a delete or a navigation back is under way. */
122
157
  save: (andBack?: boolean) => Promise<void>;
158
+ /** Ignored while a save, a delete or a navigation back is under way. */
123
159
  deleteItem: () => Promise<void>;
160
+ /** Ignored while a save, a delete or a navigation back is under way. */
124
161
  back: () => void;
125
162
  }): VNode[];
126
163
  /**
@@ -134,7 +171,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
134
171
  currentLang: string;
135
172
  isNew: boolean;
136
173
  isLoading: boolean;
174
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
137
175
  isSaving: boolean;
176
+ /** From the confirmation until the delete is done and the page has gone back. */
138
177
  isDeleting: boolean;
139
178
  isDirty: boolean;
140
179
  draftBanner: {
@@ -144,8 +183,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
144
183
  } | null;
145
184
  readonly: boolean;
146
185
  canDelete: boolean;
186
+ /** Ignored while a save, a delete or a navigation back is under way. */
147
187
  save: (andBack?: boolean) => Promise<void>;
188
+ /** Ignored while a save, a delete or a navigation back is under way. */
148
189
  deleteItem: () => Promise<void>;
190
+ /** Ignored while a save, a delete or a navigation back is under way. */
149
191
  back: () => void;
150
192
  }): VNode[];
151
193
  /** Extra content above the main form. */
@@ -155,7 +197,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
155
197
  currentLang: string;
156
198
  isNew: boolean;
157
199
  isLoading: boolean;
200
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
158
201
  isSaving: boolean;
202
+ /** From the confirmation until the delete is done and the page has gone back. */
159
203
  isDeleting: boolean;
160
204
  isDirty: boolean;
161
205
  draftBanner: {
@@ -165,8 +209,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
165
209
  } | null;
166
210
  readonly: boolean;
167
211
  canDelete: boolean;
212
+ /** Ignored while a save, a delete or a navigation back is under way. */
168
213
  save: (andBack?: boolean) => Promise<void>;
214
+ /** Ignored while a save, a delete or a navigation back is under way. */
169
215
  deleteItem: () => Promise<void>;
216
+ /** Ignored while a save, a delete or a navigation back is under way. */
170
217
  back: () => void;
171
218
  }): VNode[];
172
219
  /** Replaces the entire main form. */
@@ -176,7 +223,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
176
223
  currentLang: string;
177
224
  isNew: boolean;
178
225
  isLoading: boolean;
226
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
179
227
  isSaving: boolean;
228
+ /** From the confirmation until the delete is done and the page has gone back. */
180
229
  isDeleting: boolean;
181
230
  isDirty: boolean;
182
231
  draftBanner: {
@@ -186,8 +235,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
186
235
  } | null;
187
236
  readonly: boolean;
188
237
  canDelete: boolean;
238
+ /** Ignored while a save, a delete or a navigation back is under way. */
189
239
  save: (andBack?: boolean) => Promise<void>;
240
+ /** Ignored while a save, a delete or a navigation back is under way. */
190
241
  deleteItem: () => Promise<void>;
242
+ /** Ignored while a save, a delete or a navigation back is under way. */
191
243
  back: () => void;
192
244
  }): VNode[];
193
245
  /** Extra content below the main form. */
@@ -197,7 +249,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
197
249
  currentLang: string;
198
250
  isNew: boolean;
199
251
  isLoading: boolean;
252
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
200
253
  isSaving: boolean;
254
+ /** From the confirmation until the delete is done and the page has gone back. */
201
255
  isDeleting: boolean;
202
256
  isDirty: boolean;
203
257
  draftBanner: {
@@ -207,8 +261,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
207
261
  } | null;
208
262
  readonly: boolean;
209
263
  canDelete: boolean;
264
+ /** Ignored while a save, a delete or a navigation back is under way. */
210
265
  save: (andBack?: boolean) => Promise<void>;
266
+ /** Ignored while a save, a delete or a navigation back is under way. */
211
267
  deleteItem: () => Promise<void>;
268
+ /** Ignored while a save, a delete or a navigation back is under way. */
212
269
  back: () => void;
213
270
  }): VNode[];
214
271
  /** Replaces the entire sidebar action card (save/delete/back buttons). */
@@ -218,7 +275,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
218
275
  currentLang: string;
219
276
  isNew: boolean;
220
277
  isLoading: boolean;
278
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
221
279
  isSaving: boolean;
280
+ /** From the confirmation until the delete is done and the page has gone back. */
222
281
  isDeleting: boolean;
223
282
  isDirty: boolean;
224
283
  draftBanner: {
@@ -228,8 +287,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
228
287
  } | null;
229
288
  readonly: boolean;
230
289
  canDelete: boolean;
290
+ /** Ignored while a save, a delete or a navigation back is under way. */
231
291
  save: (andBack?: boolean) => Promise<void>;
292
+ /** Ignored while a save, a delete or a navigation back is under way. */
232
293
  deleteItem: () => Promise<void>;
294
+ /** Ignored while a save, a delete or a navigation back is under way. */
233
295
  back: () => void;
234
296
  }): VNode[];
235
297
  /** Override just the Save button. */
@@ -239,7 +301,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
239
301
  currentLang: string;
240
302
  isNew: boolean;
241
303
  isLoading: boolean;
304
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
242
305
  isSaving: boolean;
306
+ /** From the confirmation until the delete is done and the page has gone back. */
243
307
  isDeleting: boolean;
244
308
  isDirty: boolean;
245
309
  draftBanner: {
@@ -249,8 +313,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
249
313
  } | null;
250
314
  readonly: boolean;
251
315
  canDelete: boolean;
316
+ /** Ignored while a save, a delete or a navigation back is under way. */
252
317
  save: (andBack?: boolean) => Promise<void>;
318
+ /** Ignored while a save, a delete or a navigation back is under way. */
253
319
  deleteItem: () => Promise<void>;
320
+ /** Ignored while a save, a delete or a navigation back is under way. */
254
321
  back: () => void;
255
322
  }): VNode[];
256
323
  /** Override just the Save & continue button. */
@@ -260,7 +327,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
260
327
  currentLang: string;
261
328
  isNew: boolean;
262
329
  isLoading: boolean;
330
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
263
331
  isSaving: boolean;
332
+ /** From the confirmation until the delete is done and the page has gone back. */
264
333
  isDeleting: boolean;
265
334
  isDirty: boolean;
266
335
  draftBanner: {
@@ -270,8 +339,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
270
339
  } | null;
271
340
  readonly: boolean;
272
341
  canDelete: boolean;
342
+ /** Ignored while a save, a delete or a navigation back is under way. */
273
343
  save: (andBack?: boolean) => Promise<void>;
344
+ /** Ignored while a save, a delete or a navigation back is under way. */
274
345
  deleteItem: () => Promise<void>;
346
+ /** Ignored while a save, a delete or a navigation back is under way. */
275
347
  back: () => void;
276
348
  }): VNode[];
277
349
  /** Override just the Back button. */
@@ -281,7 +353,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
281
353
  currentLang: string;
282
354
  isNew: boolean;
283
355
  isLoading: boolean;
356
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
284
357
  isSaving: boolean;
358
+ /** From the confirmation until the delete is done and the page has gone back. */
285
359
  isDeleting: boolean;
286
360
  isDirty: boolean;
287
361
  draftBanner: {
@@ -291,8 +365,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
291
365
  } | null;
292
366
  readonly: boolean;
293
367
  canDelete: boolean;
368
+ /** Ignored while a save, a delete or a navigation back is under way. */
294
369
  save: (andBack?: boolean) => Promise<void>;
370
+ /** Ignored while a save, a delete or a navigation back is under way. */
295
371
  deleteItem: () => Promise<void>;
372
+ /** Ignored while a save, a delete or a navigation back is under way. */
296
373
  back: () => void;
297
374
  }): VNode[];
298
375
  /** Override just the Delete button. */
@@ -302,7 +379,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
302
379
  currentLang: string;
303
380
  isNew: boolean;
304
381
  isLoading: boolean;
382
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
305
383
  isSaving: boolean;
384
+ /** From the confirmation until the delete is done and the page has gone back. */
306
385
  isDeleting: boolean;
307
386
  isDirty: boolean;
308
387
  draftBanner: {
@@ -312,8 +391,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
312
391
  } | null;
313
392
  readonly: boolean;
314
393
  canDelete: boolean;
394
+ /** Ignored while a save, a delete or a navigation back is under way. */
315
395
  save: (andBack?: boolean) => Promise<void>;
396
+ /** Ignored while a save, a delete or a navigation back is under way. */
316
397
  deleteItem: () => Promise<void>;
398
+ /** Ignored while a save, a delete or a navigation back is under way. */
317
399
  back: () => void;
318
400
  }): VNode[];
319
401
  /** Extra content at the top of the sidebar (below action buttons). */
@@ -323,7 +405,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
323
405
  currentLang: string;
324
406
  isNew: boolean;
325
407
  isLoading: boolean;
408
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
326
409
  isSaving: boolean;
410
+ /** From the confirmation until the delete is done and the page has gone back. */
327
411
  isDeleting: boolean;
328
412
  isDirty: boolean;
329
413
  draftBanner: {
@@ -333,8 +417,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
333
417
  } | null;
334
418
  readonly: boolean;
335
419
  canDelete: boolean;
420
+ /** Ignored while a save, a delete or a navigation back is under way. */
336
421
  save: (andBack?: boolean) => Promise<void>;
422
+ /** Ignored while a save, a delete or a navigation back is under way. */
337
423
  deleteItem: () => Promise<void>;
424
+ /** Ignored while a save, a delete or a navigation back is under way. */
338
425
  back: () => void;
339
426
  }): VNode[];
340
427
  /** Extra content at the bottom of the sidebar, above the danger zone. */
@@ -344,7 +431,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
344
431
  currentLang: string;
345
432
  isNew: boolean;
346
433
  isLoading: boolean;
434
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
347
435
  isSaving: boolean;
436
+ /** From the confirmation until the delete is done and the page has gone back. */
348
437
  isDeleting: boolean;
349
438
  isDirty: boolean;
350
439
  draftBanner: {
@@ -354,8 +443,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
354
443
  } | null;
355
444
  readonly: boolean;
356
445
  canDelete: boolean;
446
+ /** Ignored while a save, a delete or a navigation back is under way. */
357
447
  save: (andBack?: boolean) => Promise<void>;
448
+ /** Ignored while a save, a delete or a navigation back is under way. */
358
449
  deleteItem: () => Promise<void>;
450
+ /** Ignored while a save, a delete or a navigation back is under way. */
359
451
  back: () => void;
360
452
  }): VNode[];
361
453
  /**
@@ -368,7 +460,9 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
368
460
  currentLang: string;
369
461
  isNew: boolean;
370
462
  isLoading: boolean;
463
+ /** From the click until the save is done; after `save(true)`, until the page has gone back. */
371
464
  isSaving: boolean;
465
+ /** From the confirmation until the delete is done and the page has gone back. */
372
466
  isDeleting: boolean;
373
467
  isDirty: boolean;
374
468
  draftBanner: {
@@ -378,8 +472,11 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
378
472
  } | null;
379
473
  readonly: boolean;
380
474
  canDelete: boolean;
475
+ /** Ignored while a save, a delete or a navigation back is under way. */
381
476
  save: (andBack?: boolean) => Promise<void>;
477
+ /** Ignored while a save, a delete or a navigation back is under way. */
382
478
  deleteItem: () => Promise<void>;
479
+ /** Ignored while a save, a delete or a navigation back is under way. */
383
480
  back: () => void;
384
481
  }): VNode[];
385
482
  };
@@ -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,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O,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC;YAC1C,wEAAwE;wBAC5D,MAAM,OAAO,CAAC,IAAI,CAAC;YAC/B,wEAAwE;kBAClE,MAAM,IAAI;YAsCoB,KAAK,EAAE;;;YAtlBvC,OAAO,SAAS,CAAC,GAAG,IAAI;YACxB,SAAS,GAAG,IAAI;YAMf,aAAa,SACT,CAAC,WACC,IAAI,WACJ,MAAM,IAAI,WACV,MAAM,IAAI,GAClB,IAAI;;EAs0CL,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"}
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { ref, computed, watch, onMounted, nextTick } from "vue";
3
- import { useRoute, useRouter } from "vue-router";
3
+ import { useRoute, useRouter } from "#app";
4
4
  const props = defineProps({
5
5
  modelValue: { type: String, required: true },
6
6
  langs: { type: Array, required: true },
@@ -39,6 +39,7 @@ function onSelectChange(v) {
39
39
  const lang = typeof v === "object" && v !== null ? v.value : v;
40
40
  if (lang) selectLang(lang);
41
41
  }
42
+ const showSelect = computed(() => props.langs.length > props.langThreshold);
42
43
  const selectItems = computed(
43
44
  () => props.langs.map((lang) => ({
44
45
  label: lang.toUpperCase(),
@@ -68,26 +69,21 @@ watch(
68
69
  <div
69
70
  class="flex items-end gap-0 border-b border-gray-200 dark:border-gray-700 mt-2 mb-4"
70
71
  >
71
- <!-- Language select — always visible, aligned at bottom of row -->
72
- <USelectMenu
73
- :model-value="modelValue"
74
- :items="selectItems"
75
- value-key="value"
76
- label-key="label"
77
- size="sm"
78
- class="w-28 shrink-0 mb-px"
79
- @update:model-value="onSelectChange"
80
- >
81
- <template #default="{ open }">
82
- <UButton
83
- size="sm"
84
- variant="ghost"
85
- color="neutral"
86
- :trailing-icon="
87
- open ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'
88
- "
89
- class="w-full justify-between font-medium"
90
- >
72
+ <!-- Language select — above langThreshold only, aligned at bottom of row -->
73
+ <template v-if="showSelect">
74
+ <USelectMenu
75
+ :model-value="modelValue"
76
+ :items="selectItems"
77
+ value-key="value"
78
+ label-key="label"
79
+ size="sm"
80
+ variant="ghost"
81
+ class="w-28 shrink-0 mb-px font-medium"
82
+ @update:model-value="onSelectChange"
83
+ >
84
+ <!-- The trigger is already a button with its own chevron: the slot
85
+ holds only what it shows, never another button. -->
86
+ <template #default>
91
87
  <span class="flex items-center gap-1">
92
88
  <span
93
89
  v-if="hasErrors(modelValue)"
@@ -95,12 +91,12 @@ watch(
95
91
  />
96
92
  {{ modelValue.toUpperCase() }}
97
93
  </span>
98
- </UButton>
99
- </template>
100
- </USelectMenu>
94
+ </template>
95
+ </USelectMenu>
101
96
 
102
- <!-- Divider -->
103
- <div class="h-5 w-px bg-gray-200 dark:bg-gray-700 mx-2 shrink-0" />
97
+ <!-- Divider -->
98
+ <div class="h-5 w-px bg-gray-200 dark:bg-gray-700 mx-2 shrink-0" />
99
+ </template>
104
100
 
105
101
  <!-- Tab bar — always shown, scrollable -->
106
102
  <div class="flex gap-1 overflow-x-auto scrollbar-none flex-1">
@@ -4,8 +4,9 @@ type __VLS_Props = {
4
4
  errors?: Record<string, string[]>;
5
5
  noRouteChange?: boolean;
6
6
  /**
7
- * Number of languages above which the select also shows a dropdown
8
- * alongside the tab bar (for quick navigation). Default: `8`.
7
+ * Number of languages above which a searchable select appears next to the
8
+ * tab bar, for quick navigation. Default: `8`. `0` always shows it,
9
+ * `Infinity` never does.
9
10
  */
10
11
  langThreshold?: number;
11
12
  };
@@ -15,8 +16,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
15
16
  "onUpdate:modelValue"?: ((lang: string) => any) | undefined;
16
17
  }>, {
17
18
  errors: Record<string, string[]>;
18
- noRouteChange: boolean;
19
19
  langThreshold: number;
20
+ noRouteChange: boolean;
20
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
22
  declare const _default: typeof __VLS_export;
22
23
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"MapoDetailLangSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoDetailLangSwitch.vue"],"names":[],"mappings":"AA4KA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAuRJ,QAAA,MAAM,YAAY;;;;;YA9RL,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;mBACjB,OAAO;mBAKP,MAAM;6EA4RxB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"MapoDetailLangSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoDetailLangSwitch.vue"],"names":[],"mappings":"AA2KA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAkQJ,QAAA,MAAM,YAAY;;;;;YA1QL,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;mBAOjB,MAAM;mBANN,OAAO;6EA6QzB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,110 @@
1
+ <script setup>
2
+ import { ref } from "vue";
3
+ import { useI18n } from "vue-i18n";
4
+ import { isMediaDrag } from "../utils/mediaDrag.js";
5
+ const { t } = useI18n();
6
+ const props = defineProps({
7
+ accept: { type: String, required: false, default: "*/*" },
8
+ multiple: { type: Boolean, required: false, default: true },
9
+ disabled: { type: Boolean, required: false, default: false }
10
+ });
11
+ const emit = defineEmits(["files"]);
12
+ const isDragging = ref(false);
13
+ const fileInput = ref(null);
14
+ let dragCounter = 0;
15
+ function carriesFiles(e) {
16
+ const hasFiles = Array.from(e.dataTransfer?.types ?? []).includes("Files");
17
+ return hasFiles && !isMediaDrag(e);
18
+ }
19
+ function onDragEnter(e) {
20
+ if (props.disabled || !carriesFiles(e)) return;
21
+ e.preventDefault();
22
+ dragCounter++;
23
+ isDragging.value = true;
24
+ }
25
+ function onDragOver(e) {
26
+ if (props.disabled || !carriesFiles(e)) return;
27
+ e.preventDefault();
28
+ }
29
+ function onDragLeave(e) {
30
+ if (!carriesFiles(e)) return;
31
+ dragCounter--;
32
+ if (dragCounter <= 0) {
33
+ dragCounter = 0;
34
+ isDragging.value = false;
35
+ }
36
+ }
37
+ function onDrop(e) {
38
+ if (props.disabled || !carriesFiles(e)) return;
39
+ e.preventDefault();
40
+ isDragging.value = false;
41
+ dragCounter = 0;
42
+ const files = filterFiles(Array.from(e.dataTransfer?.files ?? []));
43
+ if (files.length) emit("files", files);
44
+ }
45
+ function onFileInput(e) {
46
+ const input = e.target;
47
+ const files = filterFiles(Array.from(input.files ?? []));
48
+ if (files.length) emit("files", files);
49
+ input.value = "";
50
+ }
51
+ function triggerPick() {
52
+ if (!props.disabled) fileInput.value?.click();
53
+ }
54
+ function filterFiles(files) {
55
+ if (!props.accept || props.accept === "*/*") return files;
56
+ return files.filter((f) => matchesMime(f.type, props.accept));
57
+ }
58
+ function matchesMime(mime, accept) {
59
+ return accept.split(",").some((pattern) => {
60
+ const p = pattern.trim();
61
+ if (p === "*/*") return true;
62
+ if (p.endsWith("/*")) return mime.startsWith(p.replace("/*", "/"));
63
+ return mime === p;
64
+ });
65
+ }
66
+ defineExpose({ triggerPick });
67
+ </script>
68
+
69
+ <template>
70
+ <div
71
+ class="mapo-drop-area relative"
72
+ :class="{
73
+ 'mapo-drop-area--dragging': isDragging,
74
+ 'opacity-50 pointer-events-none': disabled
75
+ }"
76
+ @dragenter="onDragEnter"
77
+ @dragover="onDragOver"
78
+ @dragleave="onDragLeave"
79
+ @drop="onDrop"
80
+ >
81
+ <input
82
+ ref="fileInput"
83
+ type="file"
84
+ class="sr-only"
85
+ :accept="accept"
86
+ :multiple="multiple"
87
+ @change="onFileInput"
88
+ />
89
+
90
+ <slot :trigger-pick="triggerPick" :is-dragging="isDragging" />
91
+
92
+ <Transition name="drop-overlay">
93
+ <div
94
+ v-if="isDragging"
95
+ class="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-lg border-2 border-dashed border-primary bg-default/80"
96
+ >
97
+ <div class="flex flex-col items-center gap-2 text-primary">
98
+ <UIcon name="i-lucide-upload-cloud" class="size-10" />
99
+ <span class="text-sm font-medium">{{
100
+ t("mapo.dropArea.dropHere")
101
+ }}</span>
102
+ </div>
103
+ </div>
104
+ </Transition>
105
+ </div>
106
+ </template>
107
+
108
+ <style scoped>
109
+ .drop-overlay-enter-active,.drop-overlay-leave-active{transition:opacity .15s ease}.drop-overlay-enter-from,.drop-overlay-leave-to{opacity:0}
110
+ </style>
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ accept?: string;
3
+ multiple?: boolean;
4
+ disabled?: boolean;
5
+ };
6
+ declare function triggerPick(): void;
7
+ declare var __VLS_1: {
8
+ triggerPick: typeof triggerPick;
9
+ isDragging: boolean;
10
+ };
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
15
+ triggerPick: typeof triggerPick;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ files: (files: File[]) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onFiles?: ((files: File[]) => any) | undefined;
20
+ }>, {
21
+ multiple: boolean;
22
+ accept: string;
23
+ disabled: boolean;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
33
+ //# sourceMappingURL=MapoDropArea.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapoDropArea.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoDropArea.vue"],"names":[],"mappings":"AA0JA,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkEJ,iBAAS,WAAW,SAEnB;AAiJD,QAAA,IAAI,OAAO;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;cAhOD,OAAO;YADT,MAAM;cAEJ,OAAO;6EAoOpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}