@mapomodule/uikit 1.0.0 → 2.0.0-beta.10

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 (427) hide show
  1. package/README.md +199 -0
  2. package/dist/index.d.mts +5 -0
  3. package/dist/index.d.ts +6 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.mjs +1 -0
  6. package/dist/module.d.mts +60 -0
  7. package/dist/module.d.ts +55 -0
  8. package/dist/module.d.ts.map +1 -0
  9. package/dist/module.json +9 -0
  10. package/dist/module.mjs +179 -0
  11. package/dist/runtime/adapters/defaultMediaAdapter.d.ts +14 -0
  12. package/dist/runtime/adapters/defaultMediaAdapter.d.ts.map +1 -0
  13. package/dist/runtime/adapters/defaultMediaAdapter.js +30 -0
  14. package/dist/runtime/assets/main.css +1 -0
  15. package/dist/runtime/components/MapoConfirmDialog.vue +35 -0
  16. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts +4 -0
  17. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -0
  18. package/dist/runtime/components/MapoDetail.vue +606 -0
  19. package/dist/runtime/components/MapoDetail.vue.d.ts +401 -0
  20. package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -0
  21. package/dist/runtime/components/MapoDetailLangSwitch.vue +126 -0
  22. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +23 -0
  23. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -0
  24. package/dist/runtime/components/MapoDropArea.vue +99 -0
  25. package/dist/runtime/components/MapoDropArea.vue.d.ts +33 -0
  26. package/dist/runtime/components/MapoDropArea.vue.d.ts.map +1 -0
  27. package/dist/runtime/components/MapoLangSwitcher.vue +39 -0
  28. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts +18 -0
  29. package/dist/runtime/components/MapoLangSwitcher.vue.d.ts.map +1 -0
  30. package/dist/runtime/components/MapoList.vue +191 -0
  31. package/dist/runtime/components/MapoList.vue.d.ts +111 -0
  32. package/dist/runtime/components/MapoList.vue.d.ts.map +1 -0
  33. package/dist/runtime/components/MapoListActions.vue +119 -0
  34. package/dist/runtime/components/MapoListActions.vue.d.ts +33 -0
  35. package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -0
  36. package/dist/runtime/components/MapoListFilters.vue +246 -0
  37. package/dist/runtime/components/MapoListFilters.vue.d.ts +38 -0
  38. package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -0
  39. package/dist/runtime/components/MapoListHead.vue +9 -0
  40. package/dist/runtime/components/MapoListHead.vue.d.ts +14 -0
  41. package/dist/runtime/components/MapoListHead.vue.d.ts.map +1 -0
  42. package/dist/runtime/components/MapoListQuickEdit.vue +123 -0
  43. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts +47 -0
  44. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -0
  45. package/dist/runtime/components/MapoListTable.vue +665 -0
  46. package/dist/runtime/components/MapoListTable.vue.d.ts +105 -0
  47. package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -0
  48. package/dist/runtime/components/MapoListTabs.vue +38 -0
  49. package/dist/runtime/components/MapoListTabs.vue.d.ts +26 -0
  50. package/dist/runtime/components/MapoListTabs.vue.d.ts.map +1 -0
  51. package/dist/runtime/components/MapoLogin.vue +196 -0
  52. package/dist/runtime/components/MapoLogin.vue.d.ts +22 -0
  53. package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -0
  54. package/dist/runtime/components/MapoLogoutButton.vue +27 -0
  55. package/dist/runtime/components/MapoLogoutButton.vue.d.ts +29 -0
  56. package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -0
  57. package/dist/runtime/components/MapoMediaBreadcrumbs.vue +47 -0
  58. package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts +4 -0
  59. package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts.map +1 -0
  60. package/dist/runtime/components/MapoMediaEditor.vue +320 -0
  61. package/dist/runtime/components/MapoMediaEditor.vue.d.ts +8 -0
  62. package/dist/runtime/components/MapoMediaEditor.vue.d.ts.map +1 -0
  63. package/dist/runtime/components/MapoMediaFileChanger.vue +112 -0
  64. package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts +15 -0
  65. package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts.map +1 -0
  66. package/dist/runtime/components/MapoMediaFolders.vue +220 -0
  67. package/dist/runtime/components/MapoMediaFolders.vue.d.ts +4 -0
  68. package/dist/runtime/components/MapoMediaFolders.vue.d.ts.map +1 -0
  69. package/dist/runtime/components/MapoMediaGallery.vue +219 -0
  70. package/dist/runtime/components/MapoMediaGallery.vue.d.ts +4 -0
  71. package/dist/runtime/components/MapoMediaGallery.vue.d.ts.map +1 -0
  72. package/dist/runtime/components/MapoMediaManager.vue +140 -0
  73. package/dist/runtime/components/MapoMediaManager.vue.d.ts +35 -0
  74. package/dist/runtime/components/MapoMediaManager.vue.d.ts.map +1 -0
  75. package/dist/runtime/components/MapoMediaManagerDialog.vue +116 -0
  76. package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts +41 -0
  77. package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts.map +1 -0
  78. package/dist/runtime/components/MapoMediaPreview.vue +92 -0
  79. package/dist/runtime/components/MapoMediaPreview.vue.d.ts +19 -0
  80. package/dist/runtime/components/MapoMediaPreview.vue.d.ts.map +1 -0
  81. package/dist/runtime/components/MapoMediaUploader.vue +290 -0
  82. package/dist/runtime/components/MapoMediaUploader.vue.d.ts +8 -0
  83. package/dist/runtime/components/MapoMediaUploader.vue.d.ts.map +1 -0
  84. package/dist/runtime/components/MapoMenuManager.vue +273 -0
  85. package/dist/runtime/components/MapoMenuManager.vue.d.ts +92 -0
  86. package/dist/runtime/components/MapoMenuManager.vue.d.ts.map +1 -0
  87. package/dist/runtime/components/MapoMenuNodeEditor.vue +201 -0
  88. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts +61 -0
  89. package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts.map +1 -0
  90. package/dist/runtime/components/MapoMenuTreeview.vue +181 -0
  91. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts +57 -0
  92. package/dist/runtime/components/MapoMenuTreeview.vue.d.ts.map +1 -0
  93. package/dist/runtime/components/MapoMenuTreeviewNode.vue +175 -0
  94. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts +27 -0
  95. package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts.map +1 -0
  96. package/dist/runtime/components/MapoRootComponents.vue +9 -0
  97. package/dist/runtime/components/MapoRootComponents.vue.d.ts +4 -0
  98. package/dist/runtime/components/MapoRootComponents.vue.d.ts.map +1 -0
  99. package/dist/runtime/components/MapoSidebar.vue +89 -0
  100. package/dist/runtime/components/MapoSidebar.vue.d.ts +22 -0
  101. package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -0
  102. package/dist/runtime/components/MapoSidebarList.vue +27 -0
  103. package/dist/runtime/components/MapoSidebarList.vue.d.ts +8 -0
  104. package/dist/runtime/components/MapoSidebarList.vue.d.ts.map +1 -0
  105. package/dist/runtime/components/MapoSidebarListItem.vue +74 -0
  106. package/dist/runtime/components/MapoSidebarListItem.vue.d.ts +9 -0
  107. package/dist/runtime/components/MapoSidebarListItem.vue.d.ts.map +1 -0
  108. package/dist/runtime/components/MapoSidebarProfile.vue +55 -0
  109. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts +10 -0
  110. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -0
  111. package/dist/runtime/components/MapoSnackBar.vue +38 -0
  112. package/dist/runtime/components/MapoSnackBar.vue.d.ts +4 -0
  113. package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -0
  114. package/dist/runtime/components/MapoThemeToggle.vue +23 -0
  115. package/dist/runtime/components/MapoThemeToggle.vue.d.ts +4 -0
  116. package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -0
  117. package/dist/runtime/components/MapoTopbar.vue +30 -0
  118. package/dist/runtime/components/MapoTopbar.vue.d.ts +15 -0
  119. package/dist/runtime/components/MapoTopbar.vue.d.ts.map +1 -0
  120. package/dist/runtime/components/menuDndContext.d.ts +19 -0
  121. package/dist/runtime/components/menuDndContext.d.ts.map +1 -0
  122. package/dist/runtime/components/menuDndContext.js +3 -0
  123. package/dist/runtime/layouts/default.vue +43 -0
  124. package/dist/runtime/layouts/default.vue.d.ts +20 -0
  125. package/dist/runtime/layouts/default.vue.d.ts.map +1 -0
  126. package/dist/runtime/layouts/empty.vue +9 -0
  127. package/dist/runtime/layouts/empty.vue.d.ts +14 -0
  128. package/dist/runtime/layouts/empty.vue.d.ts.map +1 -0
  129. package/dist/runtime/page-meta.nuxt.d.ts +45 -0
  130. package/dist/runtime/pages/index.vue +14 -0
  131. package/dist/runtime/pages/index.vue.d.ts +4 -0
  132. package/dist/runtime/pages/index.vue.d.ts.map +1 -0
  133. package/dist/runtime/pages/login.vue +3 -0
  134. package/dist/runtime/pages/login.vue.d.ts +4 -0
  135. package/dist/runtime/pages/login.vue.d.ts.map +1 -0
  136. package/dist/runtime/plugins/media-adapter.d.ts +18 -0
  137. package/dist/runtime/plugins/media-adapter.d.ts.map +1 -0
  138. package/dist/runtime/plugins/media-adapter.js +8 -0
  139. package/dist/runtime/stores/media.d.ts +462 -0
  140. package/dist/runtime/stores/media.d.ts.map +1 -0
  141. package/dist/runtime/stores/media.js +344 -0
  142. package/dist/runtime/types/list.d.ts +59 -0
  143. package/dist/runtime/types/list.d.ts.map +1 -0
  144. package/dist/runtime/types/list.js +0 -0
  145. package/dist/runtime/types/media.d.ts +116 -0
  146. package/dist/runtime/types/media.d.ts.map +1 -0
  147. package/dist/runtime/types/media.js +0 -0
  148. package/dist/runtime/types/menu.d.ts +66 -0
  149. package/dist/runtime/types/menu.d.ts.map +1 -0
  150. package/dist/runtime/types/menu.js +30 -0
  151. package/dist/types.d.mts +9 -0
  152. package/package.json +67 -12
  153. package/src/index.ts +30 -0
  154. package/src/module.ts +311 -0
  155. package/src/runtime/adapters/defaultMediaAdapter.ts +57 -0
  156. package/src/runtime/assets/main.css +59 -0
  157. package/src/runtime/components/MapoConfirmDialog.vue +36 -0
  158. package/src/runtime/components/MapoDetail.vue +864 -0
  159. package/src/runtime/components/MapoDetailLangSwitch.vue +166 -0
  160. package/src/runtime/components/MapoDropArea.vue +127 -0
  161. package/src/runtime/components/MapoLangSwitcher.vue +74 -0
  162. package/src/runtime/components/MapoList.vue +339 -0
  163. package/src/runtime/components/MapoListActions.vue +158 -0
  164. package/src/runtime/components/MapoListFilters.vue +292 -0
  165. package/src/runtime/components/MapoListHead.vue +12 -0
  166. package/src/runtime/components/MapoListQuickEdit.vue +166 -0
  167. package/src/runtime/components/MapoListTable.vue +931 -0
  168. package/src/runtime/components/MapoListTabs.vue +48 -0
  169. package/src/runtime/components/MapoLogin.vue +212 -0
  170. package/src/runtime/components/MapoLogoutButton.vue +48 -0
  171. package/src/runtime/components/MapoMediaBreadcrumbs.vue +53 -0
  172. package/src/runtime/components/MapoMediaEditor.vue +350 -0
  173. package/src/runtime/components/MapoMediaFileChanger.vue +136 -0
  174. package/src/runtime/components/MapoMediaFolders.vue +239 -0
  175. package/src/runtime/components/MapoMediaGallery.vue +239 -0
  176. package/src/runtime/components/MapoMediaManager.vue +180 -0
  177. package/src/runtime/components/MapoMediaManagerDialog.vue +148 -0
  178. package/src/runtime/components/MapoMediaPreview.vue +111 -0
  179. package/src/runtime/components/MapoMediaUploader.vue +351 -0
  180. package/src/runtime/components/MapoMenuManager.vue +402 -0
  181. package/src/runtime/components/MapoMenuNodeEditor.vue +282 -0
  182. package/src/runtime/components/MapoMenuTreeview.vue +264 -0
  183. package/src/runtime/components/MapoMenuTreeviewNode.vue +234 -0
  184. package/src/runtime/components/MapoRootComponents.vue +9 -0
  185. package/src/runtime/components/MapoSidebar.vue +114 -0
  186. package/src/runtime/components/MapoSidebarList.vue +35 -0
  187. package/src/runtime/components/MapoSidebarListItem.vue +79 -0
  188. package/src/runtime/components/MapoSidebarProfile.vue +61 -0
  189. package/src/runtime/components/MapoSnackBar.vue +42 -0
  190. package/src/runtime/components/MapoThemeToggle.vue +27 -0
  191. package/src/runtime/components/MapoTopbar.vue +36 -0
  192. package/src/runtime/components/menuDndContext.ts +22 -0
  193. package/src/runtime/layouts/default.vue +53 -0
  194. package/src/runtime/layouts/empty.vue +9 -0
  195. package/src/runtime/page-meta.nuxt.d.ts +45 -0
  196. package/src/runtime/pages/index.vue +15 -0
  197. package/src/runtime/pages/login.vue +3 -0
  198. package/src/runtime/plugins/media-adapter.ts +33 -0
  199. package/src/runtime/stores/media.ts +474 -0
  200. package/src/runtime/types/list.ts +64 -0
  201. package/src/runtime/types/media.ts +126 -0
  202. package/src/runtime/types/menu.ts +105 -0
  203. package/CHANGELOG.md +0 -1030
  204. package/assets/mixins.scss +0 -22
  205. package/assets/variables.scss +0 -18
  206. package/components/ConfirmDialog.vue +0 -173
  207. package/components/Detail/Detail.vue +0 -696
  208. package/components/Detail/DetailLangSwitch.vue +0 -79
  209. package/components/DropArea.vue +0 -257
  210. package/components/Form/Form.vue +0 -218
  211. package/components/Form/FormField.vue +0 -216
  212. package/components/Form/FormGroup.vue +0 -146
  213. package/components/Form/FormTabs.vue +0 -188
  214. package/components/Form/defaults.js +0 -98
  215. package/components/Form/fields/ColorField.vue +0 -79
  216. package/components/Form/fields/DateField.vue +0 -77
  217. package/components/Form/fields/DateTimeField.vue +0 -271
  218. package/components/Form/fields/EnhancedMediaField.vue +0 -224
  219. package/components/Form/fields/FileField.vue +0 -125
  220. package/components/Form/fields/FksField.vue +0 -115
  221. package/components/Form/fields/MediaField.vue +0 -159
  222. package/components/Form/fields/MediaM2mField.vue +0 -149
  223. package/components/Form/fields/Repeater.vue +0 -618
  224. package/components/Form/fields/SeoPreview.vue +0 -89
  225. package/components/Form/fields/TimeField.vue +0 -154
  226. package/components/Form/fields/mapField/leaflet.injector.js +0 -39
  227. package/components/Form/fields/mapField/mapField.vue +0 -350
  228. package/components/Form/fields/wygEditor/defaults.js +0 -25
  229. package/components/Form/fields/wygEditor/utils/events.js +0 -64
  230. package/components/Form/fields/wygEditor/utils/mapomedia.plugin.js +0 -32
  231. package/components/Form/fields/wygEditor/utils/tinymce.injector.js +0 -29
  232. package/components/Form/fields/wygEditor/wygEditor.vue +0 -285
  233. package/components/Form/fields/wygEditorCKE/defaults.js +0 -103
  234. package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +0 -29
  235. package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +0 -270
  236. package/components/LangSwitcher.vue +0 -44
  237. package/components/List/List.vue +0 -271
  238. package/components/List/ListActions.vue +0 -164
  239. package/components/List/ListFilters.vue +0 -372
  240. package/components/List/ListHead.vue +0 -67
  241. package/components/List/ListQuickEdit.vue +0 -228
  242. package/components/List/ListTable.vue +0 -484
  243. package/components/List/ListTabs.vue +0 -65
  244. package/components/Login.vue +0 -125
  245. package/components/Logo.vue +0 -79
  246. package/components/LogoutButton.vue +0 -54
  247. package/components/MediaManager/MediaBreadcrumbs.vue +0 -45
  248. package/components/MediaManager/MediaEditor.vue +0 -340
  249. package/components/MediaManager/MediaFileChanger.vue +0 -78
  250. package/components/MediaManager/MediaFolders.vue +0 -287
  251. package/components/MediaManager/MediaGallery.vue +0 -281
  252. package/components/MediaManager/MediaManager.vue +0 -159
  253. package/components/MediaManager/MediaManagerDialog.vue +0 -104
  254. package/components/MediaManager/MediaPreview.vue +0 -258
  255. package/components/MediaManager/MediaUploader.vue +0 -163
  256. package/components/MenuManager/MenuManager.vue +0 -332
  257. package/components/MenuManager/MenuNodeEditor.vue +0 -270
  258. package/components/MenuManager/MenuTreeview.vue +0 -237
  259. package/components/MenuManager/MenuTreeviewNode.vue +0 -208
  260. package/components/PagePreview.vue +0 -58
  261. package/components/RootComponents.vue +0 -25
  262. package/components/SnackBar.vue +0 -69
  263. package/components/ThemeToggle.vue +0 -13
  264. package/components/layout/Sidebar/Sidebar.vue +0 -89
  265. package/components/layout/Sidebar/SidebarList.vue +0 -49
  266. package/components/layout/Sidebar/SidebarListItem.vue +0 -185
  267. package/components/layout/Sidebar/SidebarProfile.vue +0 -42
  268. package/components/layout/Sidebar/SidebarTitle.vue +0 -45
  269. package/components/layout/Topbar/Topbar.vue +0 -29
  270. package/components/layout/routebuilder.js +0 -48
  271. package/defaults/i18n.js +0 -37
  272. package/defaults/vuetify.js +0 -34
  273. package/layouts/default.vue +0 -47
  274. package/layouts/empty.vue +0 -16
  275. package/module.js +0 -80
  276. package/pages/index.vue +0 -37
  277. package/pages/login.vue +0 -10
  278. package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
  279. package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
  280. package/static/mapo/ckeditor/plugins/image2/dev/contents.css +0 -35
  281. package/static/mapo/ckeditor/plugins/image2/dev/image2.html +0 -338
  282. package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +0 -557
  283. package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
  284. package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
  285. package/static/mapo/ckeditor/plugins/image2/lang/af.js +0 -21
  286. package/static/mapo/ckeditor/plugins/image2/lang/ar.js +0 -21
  287. package/static/mapo/ckeditor/plugins/image2/lang/az.js +0 -21
  288. package/static/mapo/ckeditor/plugins/image2/lang/bg.js +0 -21
  289. package/static/mapo/ckeditor/plugins/image2/lang/bn.js +0 -21
  290. package/static/mapo/ckeditor/plugins/image2/lang/bs.js +0 -21
  291. package/static/mapo/ckeditor/plugins/image2/lang/ca.js +0 -21
  292. package/static/mapo/ckeditor/plugins/image2/lang/cs.js +0 -21
  293. package/static/mapo/ckeditor/plugins/image2/lang/cy.js +0 -21
  294. package/static/mapo/ckeditor/plugins/image2/lang/da.js +0 -21
  295. package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +0 -21
  296. package/static/mapo/ckeditor/plugins/image2/lang/de.js +0 -21
  297. package/static/mapo/ckeditor/plugins/image2/lang/el.js +0 -21
  298. package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +0 -21
  299. package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +0 -21
  300. package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +0 -21
  301. package/static/mapo/ckeditor/plugins/image2/lang/en.js +0 -21
  302. package/static/mapo/ckeditor/plugins/image2/lang/eo.js +0 -21
  303. package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +0 -21
  304. package/static/mapo/ckeditor/plugins/image2/lang/es.js +0 -21
  305. package/static/mapo/ckeditor/plugins/image2/lang/et.js +0 -21
  306. package/static/mapo/ckeditor/plugins/image2/lang/eu.js +0 -21
  307. package/static/mapo/ckeditor/plugins/image2/lang/fa.js +0 -21
  308. package/static/mapo/ckeditor/plugins/image2/lang/fi.js +0 -21
  309. package/static/mapo/ckeditor/plugins/image2/lang/fo.js +0 -21
  310. package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +0 -21
  311. package/static/mapo/ckeditor/plugins/image2/lang/fr.js +0 -21
  312. package/static/mapo/ckeditor/plugins/image2/lang/gl.js +0 -21
  313. package/static/mapo/ckeditor/plugins/image2/lang/gu.js +0 -21
  314. package/static/mapo/ckeditor/plugins/image2/lang/he.js +0 -21
  315. package/static/mapo/ckeditor/plugins/image2/lang/hi.js +0 -21
  316. package/static/mapo/ckeditor/plugins/image2/lang/hr.js +0 -21
  317. package/static/mapo/ckeditor/plugins/image2/lang/hu.js +0 -21
  318. package/static/mapo/ckeditor/plugins/image2/lang/id.js +0 -21
  319. package/static/mapo/ckeditor/plugins/image2/lang/is.js +0 -21
  320. package/static/mapo/ckeditor/plugins/image2/lang/it.js +0 -21
  321. package/static/mapo/ckeditor/plugins/image2/lang/ja.js +0 -21
  322. package/static/mapo/ckeditor/plugins/image2/lang/ka.js +0 -21
  323. package/static/mapo/ckeditor/plugins/image2/lang/km.js +0 -21
  324. package/static/mapo/ckeditor/plugins/image2/lang/ko.js +0 -21
  325. package/static/mapo/ckeditor/plugins/image2/lang/ku.js +0 -21
  326. package/static/mapo/ckeditor/plugins/image2/lang/lt.js +0 -21
  327. package/static/mapo/ckeditor/plugins/image2/lang/lv.js +0 -21
  328. package/static/mapo/ckeditor/plugins/image2/lang/mk.js +0 -21
  329. package/static/mapo/ckeditor/plugins/image2/lang/mn.js +0 -21
  330. package/static/mapo/ckeditor/plugins/image2/lang/ms.js +0 -21
  331. package/static/mapo/ckeditor/plugins/image2/lang/nb.js +0 -21
  332. package/static/mapo/ckeditor/plugins/image2/lang/nl.js +0 -21
  333. package/static/mapo/ckeditor/plugins/image2/lang/no.js +0 -21
  334. package/static/mapo/ckeditor/plugins/image2/lang/oc.js +0 -21
  335. package/static/mapo/ckeditor/plugins/image2/lang/pl.js +0 -21
  336. package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +0 -21
  337. package/static/mapo/ckeditor/plugins/image2/lang/pt.js +0 -21
  338. package/static/mapo/ckeditor/plugins/image2/lang/ro.js +0 -21
  339. package/static/mapo/ckeditor/plugins/image2/lang/ru.js +0 -21
  340. package/static/mapo/ckeditor/plugins/image2/lang/si.js +0 -21
  341. package/static/mapo/ckeditor/plugins/image2/lang/sk.js +0 -21
  342. package/static/mapo/ckeditor/plugins/image2/lang/sl.js +0 -21
  343. package/static/mapo/ckeditor/plugins/image2/lang/sq.js +0 -21
  344. package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +0 -21
  345. package/static/mapo/ckeditor/plugins/image2/lang/sr.js +0 -21
  346. package/static/mapo/ckeditor/plugins/image2/lang/sv.js +0 -21
  347. package/static/mapo/ckeditor/plugins/image2/lang/th.js +0 -21
  348. package/static/mapo/ckeditor/plugins/image2/lang/tr.js +0 -21
  349. package/static/mapo/ckeditor/plugins/image2/lang/tt.js +0 -21
  350. package/static/mapo/ckeditor/plugins/image2/lang/ug.js +0 -21
  351. package/static/mapo/ckeditor/plugins/image2/lang/uk.js +0 -21
  352. package/static/mapo/ckeditor/plugins/image2/lang/vi.js +0 -21
  353. package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +0 -21
  354. package/static/mapo/ckeditor/plugins/image2/lang/zh.js +0 -21
  355. package/static/mapo/ckeditor/plugins/image2/plugin.js +0 -1798
  356. package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
  357. package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
  358. package/static/mapo/ckeditor/plugins/image2/samples/image2.html +0 -68
  359. package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
  360. package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +0 -2374
  361. package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
  362. package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +0 -2722
  363. package/static/mapo/ckeditor/skins/moono/dev/locations.json +0 -144
  364. package/static/mapo/ckeditor/skins/moono/dialog.css +0 -5
  365. package/static/mapo/ckeditor/skins/moono/dialog_ie.css +0 -5
  366. package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +0 -5
  367. package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +0 -5
  368. package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  369. package/static/mapo/ckeditor/skins/moono/editor.css +0 -5
  370. package/static/mapo/ckeditor/skins/moono/editor_gecko.css +0 -5
  371. package/static/mapo/ckeditor/skins/moono/editor_ie.css +0 -5
  372. package/static/mapo/ckeditor/skins/moono/editor_ie7.css +0 -5
  373. package/static/mapo/ckeditor/skins/moono/editor_ie8.css +0 -5
  374. package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +0 -5
  375. package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
  376. package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
  377. package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
  378. package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
  379. package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
  380. package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
  381. package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  382. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  383. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  384. package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  385. package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
  386. package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
  387. package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
  388. package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
  389. package/static/mapo/ckeditor/skins/moono/readme.md +0 -49
  390. package/static/mapo/ckeditor/skins/moono/skin.js +0 -10
  391. package/static/mapo/ckeditor/skins/moono-dark/dialog.css +0 -5
  392. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +0 -5
  393. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +0 -5
  394. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +0 -5
  395. package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +0 -5
  396. package/static/mapo/ckeditor/skins/moono-dark/editor.css +0 -5
  397. package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +0 -5
  398. package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +0 -5
  399. package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +0 -5
  400. package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +0 -5
  401. package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +0 -5
  402. package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
  403. package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
  404. package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
  405. package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
  406. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
  407. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
  408. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
  409. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
  410. package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
  411. package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
  412. package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
  413. package/static/mapo/ckeditor/skins/moono-dark/readme.md +0 -51
  414. package/static/mapo/ckeditor/skins/moono-dark/skin.js +0 -5
  415. package/static/mapo/favicon.ico +0 -0
  416. package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +0 -7
  417. package/static/mapo/tinymce-skins/mapo-dark/content.min.css +0 -7
  418. package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +0 -7
  419. package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +0 -7
  420. package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +0 -7
  421. package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +0 -7
  422. package/static/mapo/tinymce-skins/mapo-light/content.min.css +0 -7
  423. package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +0 -7
  424. package/static/mapo/tinymce-skins/mapo-light/skin.min.css +0 -7
  425. package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +0 -7
  426. package/translations/en-US.js +0 -177
  427. package/translations/it-IT.js +0 -180
package/README.md ADDED
@@ -0,0 +1,199 @@
1
+ # @mapomodule/uikit
2
+
3
+ The UI shell of Mapo. Provides the admin layout, sidebar, topbar, login page, feedback components, and the **MapoOverride** system for full component replacement.
4
+
5
+ Built on [Nuxt UI v3](https://ui.nuxt.com) + [Tailwind v4](https://tailwindcss.com).
6
+
7
+ ## Installation
8
+
9
+ Typically installed via the meta-package [`mapomodule`](../../mapomodule/). Standalone:
10
+
11
+ ```bash
12
+ pnpm add @mapomodule/uikit @nuxt/ui
13
+ ```
14
+
15
+ ```ts
16
+ // nuxt.config.ts — @nuxt/ui MUST come before mapomodule
17
+ export default defineNuxtConfig({
18
+ modules: ["@nuxt/ui", "@mapomodule/uikit"],
19
+ mapoUikit: {
20
+ css: "~/assets/css/theme.css", // optional CSS token override
21
+ ui: { button: { defaultVariants: { color: "primary" } } }, // optional Nuxt UI defaults
22
+ },
23
+ });
24
+ ```
25
+
26
+ When installed via `mapomodule`, configure under `mapo.uikit` instead.
27
+
28
+ ## What you get
29
+
30
+ ### Layouts
31
+
32
+ | Layout | Description |
33
+ | -------------- | ------------------------------------------------------------------------ |
34
+ | `mapo-default` | Full admin shell: collapsible sidebar + topbar + scrollable content area |
35
+ | `mapo-empty` | Bare wrapper — used for the login page |
36
+
37
+ ### Components (auto-imported)
38
+
39
+ #### Layout & navigation
40
+
41
+ | Component | Description |
42
+ | --------------------- | ---------------------------------------------------------------------------- |
43
+ | `MapoSidebar` | Collapsible sidebar with mini mode, auto-nav from route meta, footer section |
44
+ | `MapoSidebarList` | Recursive nav tree built from `route.meta.label` / `meta.parent` |
45
+ | `MapoSidebarListItem` | Single nav item with permission filtering and nested collapse |
46
+ | `MapoSidebarProfile` | User profile row (avatar + username + logout) for the sidebar footer |
47
+ | `MapoTopbar` | Top bar with drawer toggle and left/default/right slots |
48
+ | `MapoThemeToggle` | Dark/light mode toggle via `useColorMode()` — drop-in for any slot |
49
+ | `MapoLogoutButton` | Standalone logout button with `variant`, `color`, `size`, `iconOnly` props |
50
+
51
+ #### Feedback
52
+
53
+ | Component | Description |
54
+ | -------------------- | --------------------------------------------------------- |
55
+ | `MapoLogin` | Split-panel login form; slots: `brand`, `panel`, `footer` |
56
+ | `MapoSnackBar` | Imperative snackbar driven by `useSnackStore` |
57
+ | `MapoConfirmDialog` | Promise-based confirm dialog driven by `useConfirmStore` |
58
+ | `MapoRootComponents` | Mounts `MapoSnackBar` + `MapoConfirmDialog` in the layout |
59
+
60
+ #### List engine
61
+
62
+ | Component | Description |
63
+ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
64
+ | `MapoList` | Full list shell: composes head, filters, actions, tabs, table, and quick-edit. URL state (page, sort, search, filters, tab) synced automatically. |
65
+ | `MapoListHead` | Title, search bar, and primary action button row |
66
+ | `MapoListFilters` | Filter panel driven by `FilterDescriptor[]`. v1 backend contract (`key=v1,v2`); per-filter override slots (`filter.{value}` / `.title` / `.content` / `.icon`) |
67
+ | `MapoListActions` | Bulk-action toolbar (delete, reorder) — appears on selection. Supports `ActionDescriptor.dangerous` to render Apply/confirm with error styling for destructive actions. |
68
+ | `MapoListTabs` | Tabbed status filter via `meta.tabs` |
69
+ | `MapoListTable` | Data table with server-side pagination, sort, selection, and whole-row drag reorder (drop-line feedback; auto-disabled while a search/sort is active). Pass `permissionModel` to gate edit/delete row actions. |
70
+ | `MapoListQuickEdit` | Quick-edit modal driven by the same `FieldDescriptor[]` as the detail form |
71
+
72
+ #### Media Manager
73
+
74
+ | Component | Description |
75
+ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
76
+ | `MapoDropArea` | Standalone drag-and-drop area (reusable outside media manager) |
77
+ | `MapoMediaPreview` | MIME-aware preview: `image` → `<img>`, `video` → `<video>`, other → file icon |
78
+ | `MapoMediaBreadcrumbs` | Folder navigation breadcrumb |
79
+ | `MapoMediaFolders` | Folder sidebar with MIME filters (image/video/audio/document) |
80
+ | `MapoMediaGallery` | Responsive CSS Grid gallery with bulk selection and pagination |
81
+ | `MapoMediaEditor` | Right-side drawer for editing media metadata (title, alt text, translations); shows linked models, open-in-new-tab, and gates Edit/Delete on the media model permissions |
82
+ | `MapoMediaFileChanger` | Replace an existing file while optionally preserving its URL |
83
+ | `MapoMediaUploader` | Upload queue with per-file progress, inline metadata (title/alt/description), and destination-folder selection |
84
+ | `MapoMediaManager` | Main orchestrator shell (sidebar + gallery + uploader + editor drawer) |
85
+ | `MapoMediaManagerDialog` | `UModal` wrapper for picker mode — single or multi selection with confirm |
86
+
87
+ **Form fields** — the `media`, `media-m2m`, and `enhanced-media` field types ship with [`@mapomodule/form`](../form/README.md) in its default registry; they drive the picker above and need this package installed to work.
88
+
89
+ Media config (endpoints + upload limits) goes under `mapo.uikit.media`; backend-specific request/response transforms are handled by a pluggable `$mapoMediaAdapter` (Camomilla ships its own). See [docs/uikit/media.md](../../../docs/uikit/media.md).
90
+
91
+ ```ts
92
+ mapo: {
93
+ uikit: {
94
+ media: {
95
+ endpoints: { media: "/api/media", folders: "/api/media-folders" },
96
+ maxImageSize: 10, // MB
97
+ maxVideoSize: 100, // MB
98
+ permissionsModel: "media", // Django model for editor change/delete checks
99
+ },
100
+ },
101
+ },
102
+ ```
103
+
104
+ #### Detail shell
105
+
106
+ | Component | Description |
107
+ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
+ | `MapoDetail` | Two-column detail shell: `useCrud` lifecycle, differential PATCH, error mapping, draft auto-save (`:draft="true"`). Supports permission gating (`permissionModel`), multipart control (`multipart`), live preview (`previewField`), and backend-derived languages (`forceLanguages`). |
109
+ | `MapoDetailLangSwitch` | Language tabs with per-language error badge — syncs the `?lang=` query param |
110
+
111
+ ### Layout slots (`mapo-default`)
112
+
113
+ | Slot | Renders in |
114
+ | -------------------- | ---------------------------------------------------- |
115
+ | `sidebar:logo` | Sidebar header — replaces the default logo/name link |
116
+ | `sidebar:nav-top` | Above the auto-generated nav list |
117
+ | `sidebar:nav-bottom` | Below the nav list, above the footer row |
118
+ | `sidebar:footer` | Replaces the user avatar + logout row |
119
+ | `topbar:left` | Immediately after the drawer toggle button |
120
+ | `topbar` | Center area of the topbar (flex-1) |
121
+ | `topbar:right` | Right cluster of the topbar |
122
+
123
+ ## Theming
124
+
125
+ ### ① CSS token override
126
+
127
+ Pass a CSS file via `mapo.uikit.css`. It is loaded **after** the base uikit CSS so your values always win:
128
+
129
+ ```css
130
+ /* assets/css/theme.css */
131
+ @import "tailwindcss";
132
+ @import "@nuxt/ui";
133
+
134
+ :root {
135
+ --color-primary-500: oklch(0.59 0.25 290); /* violet */
136
+ --ui-radius: var(--radius-lg);
137
+ --ui-bg: var(--color-neutral-50);
138
+ }
139
+
140
+ .dark {
141
+ --ui-bg: var(--color-neutral-950);
142
+ }
143
+ ```
144
+
145
+ ### ② Nuxt UI component defaults
146
+
147
+ Pass a partial Nuxt UI config via `mapo.uikit.ui`. Deep-merged into `nuxt.options.ui`:
148
+
149
+ ```ts
150
+ mapo: {
151
+ uikit: {
152
+ ui: {
153
+ button: { defaultVariants: { color: "primary", variant: "solid" } },
154
+ card: { slots: { root: "rounded-xl shadow-md" } },
155
+ input: { defaultVariants: { variant: "outline" } },
156
+ },
157
+ },
158
+ },
159
+ ```
160
+
161
+ ## MapoOverride — component replacement
162
+
163
+ Create a file in `app/mapooverride/` matching any Mapo component name to replace it entirely at build time:
164
+
165
+ ```
166
+ app/
167
+ └── mapooverride/
168
+ ├── MapoTopbar.vue ← replaces MapoTopbar globally
169
+ ├── MapoSidebar.vue
170
+ └── MapoLogin.vue
171
+ ```
172
+
173
+ The `@mapomodule/uikit` module hooks into Nuxt's `components:extend` and swaps the `filePath` — no imports, no registration needed. Keep props and slots compatible with the original.
174
+
175
+ Overridable components: `MapoTopbar`, `MapoSidebar`, `MapoSidebarList`, `MapoSidebarListItem`, `MapoSidebarProfile`, `MapoLogin`, `MapoLogoutButton`, `MapoThemeToggle`, `MapoSnackBar`, `MapoConfirmDialog`, `MapoRootComponents`, `MapoDetail`, `MapoDetailLangSwitch`, `MapoList`, `MapoListTable`, `MapoListFilters`, `MapoListActions`, `MapoListHead`, `MapoListQuickEdit`, `MapoMediaManager`, `MapoMediaManagerDialog`, `MapoMediaGallery`, `MapoMediaEditor`, `MapoMediaUploader`, `MapoMediaFolders`.
176
+
177
+ ## Dev workflow
178
+
179
+ ```bash
180
+ # watch mode — rebuilds dist/ on every src/ change
181
+ pnpm --filter @mapomodule/uikit dev
182
+
183
+ # or from the monorepo root
184
+ pnpm dev:uikit
185
+ ```
186
+
187
+ Run alongside a demo app:
188
+
189
+ ```bash
190
+ # terminal 1
191
+ pnpm dev:uikit
192
+
193
+ # terminal 2
194
+ pnpm dev:example-theme # theming demo at http://localhost:3001
195
+ ```
196
+
197
+ ## Reference
198
+
199
+ See [docs/uikit/](../../../docs/uikit/) for the full component and theming documentation.
@@ -0,0 +1,5 @@
1
+ export { MapoUikitOptions } from './module.mjs';
2
+ export { ActionContext, ActionDescriptor, ActiveFilter, FilterChoice, FilterDescriptor, ListColumn, ListTabItem } from '../dist/runtime/types/list.js';
3
+ export { MediaApiResponse, MediaFolder, MediaGetRootParams, MediaItem, MediaUploadPayload, SelectMode } from '../dist/runtime/types/media.js';
4
+ export { MapoMenu, MenuNodeLink, MenuTranslation, MenuTreeNode, createMenuNode, findMenuNode, menuTreeDepth, removeMenuNode } from '../dist/runtime/types/menu.js';
5
+ import '@nuxt/schema';
@@ -0,0 +1,6 @@
1
+ export type { MapoUikitOptions } from "./module";
2
+ export type { ListColumn, FilterChoice, FilterDescriptor, ActiveFilter, ActionContext, ActionDescriptor, ListTabItem, } from "./runtime/types/list.js";
3
+ export type { MediaItem, MediaFolder, MediaApiResponse, MediaGetRootParams, MediaUploadPayload, SelectMode, } from "./runtime/types/media.js";
4
+ export type { MapoMenu, MenuTreeNode, MenuNodeLink, MenuTranslation, } from "./runtime/types/menu.js";
5
+ export { createMenuNode, menuTreeDepth, findMenuNode, removeMenuNode, } from "./runtime/types/menu.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,YAAY,EACV,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,GACX,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACZ,cAAc,GACf,MAAM,yBAAyB,CAAC"}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export { createMenuNode, findMenuNode, menuTreeDepth, removeMenuNode } from '../dist/runtime/types/menu.js';
@@ -0,0 +1,60 @@
1
+ import { NuxtModule } from '@nuxt/schema';
2
+ import '../dist/runtime/types/list.js';
3
+ import '../dist/runtime/types/media.js';
4
+ import '../dist/runtime/types/menu.js';
5
+
6
+ interface MapoUikitOptions {
7
+ /**
8
+ * Path to a CSS file that is injected after the base uikit CSS.
9
+ * Use it to override Tailwind theme tokens or add global styles.
10
+ *
11
+ * @example
12
+ * nuxt.config.ts
13
+ * mapoUikit: { css: '~/assets/css/theme.css' }
14
+ *
15
+ * assets/css/theme.css
16
+ * @import "@nuxt/ui";
17
+ * :root {
18
+ * --color-primary-500: oklch(0.7 0.2 240);
19
+ * }
20
+ */
21
+ css?: string;
22
+ /**
23
+ * Default Nuxt UI component config merged into nuxt.options.ui.
24
+ * Deep-merged so the consuming app can override individual keys.
25
+ * @see https://ui.nuxt.com/getting-started/theme
26
+ */
27
+ ui?: Record<string, unknown>;
28
+ /**
29
+ * Media Manager configuration. Endpoints and upload limits are
30
+ * forwarded to `runtimeConfig.public.mapoMedia` and read by `useMediaStore`.
31
+ */
32
+ media?: MapoMediaOptions;
33
+ }
34
+ interface MapoMediaOptions {
35
+ /**
36
+ * REST endpoints used by the media store.
37
+ * Defaults align with the Camomilla integration path-rewrites.
38
+ */
39
+ endpoints?: {
40
+ /** Single-media CRUD (detail, update, delete, upload). Default `/api/media`. */
41
+ media?: string;
42
+ /** Folder navigation + CRUD. Default `/api/media-folders`. */
43
+ folders?: string;
44
+ };
45
+ /** Max image upload size in MB. Default 10. */
46
+ maxImageSize?: number;
47
+ /** Max video upload size in MB. Default 100. */
48
+ maxVideoSize?: number;
49
+ /** Max size for any other file type in MB. Default 10. */
50
+ maxDefaultSize?: number;
51
+ /**
52
+ * Django model used for media permission checks (`change_<model>`,
53
+ * `delete_<model>`) in the editor. Default `"media"`.
54
+ */
55
+ permissionsModel?: string;
56
+ }
57
+ declare const _default: NuxtModule<MapoUikitOptions, MapoUikitOptions, false>;
58
+
59
+ export { _default as default };
60
+ export type { MapoMediaOptions, MapoUikitOptions };
@@ -0,0 +1,55 @@
1
+ import type { NuxtModule } from "@nuxt/schema";
2
+ export interface MapoUikitOptions {
3
+ /**
4
+ * Path to a CSS file that is injected after the base uikit CSS.
5
+ * Use it to override Tailwind theme tokens or add global styles.
6
+ *
7
+ * @example
8
+ * nuxt.config.ts
9
+ * mapoUikit: { css: '~/assets/css/theme.css' }
10
+ *
11
+ * assets/css/theme.css
12
+ * @import "@nuxt/ui";
13
+ * :root {
14
+ * --color-primary-500: oklch(0.7 0.2 240);
15
+ * }
16
+ */
17
+ css?: string;
18
+ /**
19
+ * Default Nuxt UI component config merged into nuxt.options.ui.
20
+ * Deep-merged so the consuming app can override individual keys.
21
+ * @see https://ui.nuxt.com/getting-started/theme
22
+ */
23
+ ui?: Record<string, unknown>;
24
+ /**
25
+ * Media Manager configuration. Endpoints and upload limits are
26
+ * forwarded to `runtimeConfig.public.mapoMedia` and read by `useMediaStore`.
27
+ */
28
+ media?: MapoMediaOptions;
29
+ }
30
+ export interface MapoMediaOptions {
31
+ /**
32
+ * REST endpoints used by the media store.
33
+ * Defaults align with the Camomilla integration path-rewrites.
34
+ */
35
+ endpoints?: {
36
+ /** Single-media CRUD (detail, update, delete, upload). Default `/api/media`. */
37
+ media?: string;
38
+ /** Folder navigation + CRUD. Default `/api/media-folders`. */
39
+ folders?: string;
40
+ };
41
+ /** Max image upload size in MB. Default 10. */
42
+ maxImageSize?: number;
43
+ /** Max video upload size in MB. Default 100. */
44
+ maxVideoSize?: number;
45
+ /** Max size for any other file type in MB. Default 10. */
46
+ maxDefaultSize?: number;
47
+ /**
48
+ * Django model used for media permission checks (`change_<model>`,
49
+ * `delete_<model>`) in the editor. Default `"media"`.
50
+ */
51
+ permissionsModel?: string;
52
+ }
53
+ declare const _default: NuxtModule<MapoUikitOptions, MapoUikitOptions, false>;
54
+ export default _default;
55
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE7B;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV,gFAAgF;QAChF,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,8DAA8D;QAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;;AAaD,wBAoO0C"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@mapomodule/uikit",
3
+ "configKey": "mapoUikit",
4
+ "version": "2.0.0-beta.10",
5
+ "builder": {
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "unknown"
8
+ }
9
+ }
@@ -0,0 +1,179 @@
1
+ import { readFileSync, existsSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { defineNuxtModule, createResolver, hasNuxtModule, installModule, addTypeTemplate, addComponent, addLayout, addPlugin, addImports, extendPages } from '@nuxt/kit';
4
+
5
+ const MAPO_MEDIA_DEFAULTS = {
6
+ endpoints: {
7
+ media: "/api/media",
8
+ folders: "/api/media-folders"
9
+ },
10
+ maxImageSize: 10,
11
+ maxVideoSize: 100,
12
+ maxDefaultSize: 10,
13
+ permissionsModel: "media"
14
+ };
15
+ const module$1 = defineNuxtModule({
16
+ meta: {
17
+ name: "@mapomodule/uikit",
18
+ configKey: "mapoUikit"
19
+ },
20
+ defaults: {
21
+ ui: {}
22
+ },
23
+ // @nuxt/ui must be declared BEFORE mapomodule in the consuming app's modules[]
24
+ // so that @nuxt/icon's Icon component is available in SSR. Installing it via
25
+ // installModule() from inside another module causes an SSR Icon infinite loop.
26
+ moduleDependencies: {
27
+ "@nuxt/ui": {}
28
+ },
29
+ async setup(options, nuxt) {
30
+ const resolver = createResolver(import.meta.url);
31
+ nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
32
+ nuxt.options.imports.transform ??= {};
33
+ (nuxt.options.imports.transform.include ??= []).push(
34
+ /@mapomodule[\\/]uikit[\\/]/
35
+ );
36
+ if (!hasNuxtModule("@mapomodule/i18n")) {
37
+ await installModule(await resolver.resolvePath("@mapomodule/i18n"));
38
+ }
39
+ addTypeTemplate({
40
+ filename: "types/mapo-uikit-page-meta.d.ts",
41
+ getContents: () => readFileSync(
42
+ resolver.resolve("./runtime/page-meta.nuxt.d.ts"),
43
+ "utf-8"
44
+ )
45
+ });
46
+ nuxt.options.css.unshift(resolver.resolve("./runtime/assets/main.css"));
47
+ nuxt.options.vite.server ??= {};
48
+ nuxt.options.vite.server.fs ??= {};
49
+ nuxt.options.vite.server.fs.allow ??= [];
50
+ nuxt.options.vite.server.fs.allow.push(resolver.resolve("."));
51
+ if (options.css) {
52
+ nuxt.options.css.push(options.css);
53
+ }
54
+ if (options.ui && Object.keys(options.ui).length) {
55
+ nuxt.options.ui = { ...options.ui, ...nuxt.options.ui ?? {} };
56
+ }
57
+ const media = options.media ?? {};
58
+ nuxt.options.runtimeConfig.public.mapoMedia = {
59
+ endpoints: {
60
+ media: media.endpoints?.media ?? MAPO_MEDIA_DEFAULTS.endpoints.media,
61
+ folders: media.endpoints?.folders ?? MAPO_MEDIA_DEFAULTS.endpoints.folders
62
+ },
63
+ maxImageSize: media.maxImageSize ?? MAPO_MEDIA_DEFAULTS.maxImageSize,
64
+ maxVideoSize: media.maxVideoSize ?? MAPO_MEDIA_DEFAULTS.maxVideoSize,
65
+ maxDefaultSize: media.maxDefaultSize ?? MAPO_MEDIA_DEFAULTS.maxDefaultSize,
66
+ permissionsModel: media.permissionsModel ?? MAPO_MEDIA_DEFAULTS.permissionsModel
67
+ };
68
+ const components = [
69
+ // ─── Shell / Layout ───────────────────────────────────────────────────
70
+ "MapoSnackBar",
71
+ "MapoConfirmDialog",
72
+ "MapoLogin",
73
+ "MapoRootComponents",
74
+ "MapoSidebar",
75
+ "MapoSidebarList",
76
+ "MapoSidebarListItem",
77
+ "MapoLogoutButton",
78
+ "MapoSidebarProfile",
79
+ "MapoTopbar",
80
+ "MapoLangSwitcher",
81
+ "MapoThemeToggle",
82
+ // ─── CRUD / Detail / List ─────────────────────────────────────────────
83
+ "MapoDetail",
84
+ "MapoDetailLangSwitch",
85
+ "MapoList",
86
+ "MapoListHead",
87
+ "MapoListTabs",
88
+ "MapoListFilters",
89
+ "MapoListActions",
90
+ "MapoListQuickEdit",
91
+ "MapoListTable",
92
+ // ─── Media ───────────────────────────────────────────────────────────
93
+ "MapoDropArea",
94
+ "MapoMediaBreadcrumbs",
95
+ "MapoMediaFolders",
96
+ "MapoMediaGallery",
97
+ "MapoMediaFileChanger",
98
+ "MapoMediaEditor",
99
+ "MapoMediaUploader",
100
+ "MapoMediaManager",
101
+ "MapoMediaManagerDialog",
102
+ // ─── Menu Manager ─────────────────────────────────────────────────────
103
+ "MapoMenuTreeviewNode",
104
+ "MapoMenuTreeview",
105
+ "MapoMenuNodeEditor",
106
+ "MapoMenuManager"
107
+ ];
108
+ for (const name of components) {
109
+ addComponent({
110
+ name,
111
+ filePath: resolver.resolve(`./runtime/components/${name}.vue`)
112
+ });
113
+ }
114
+ for (const name of ["MapoMediaManagerDialog", "MapoMediaPreview"]) {
115
+ addComponent({
116
+ name,
117
+ global: true,
118
+ filePath: resolver.resolve(`./runtime/components/${name}.vue`)
119
+ });
120
+ }
121
+ addLayout(
122
+ { src: resolver.resolve("./runtime/layouts/default.vue") },
123
+ "mapo-default"
124
+ );
125
+ addLayout(
126
+ { src: resolver.resolve("./runtime/layouts/empty.vue") },
127
+ "mapo-empty"
128
+ );
129
+ nuxt.hook("modules:done", () => {
130
+ const iconOpts = nuxt.options;
131
+ iconOpts.icon ??= {};
132
+ iconOpts.icon.serverBundle ??= {};
133
+ const existing = iconOpts.icon.serverBundle.collections ?? [];
134
+ iconOpts.icon.serverBundle.collections = Array.from(
135
+ /* @__PURE__ */ new Set([...existing, "lucide"])
136
+ );
137
+ });
138
+ addPlugin({
139
+ src: resolver.resolve("./runtime/plugins/media-adapter"),
140
+ order: 5
141
+ });
142
+ addImports([
143
+ {
144
+ name: "useMediaStore",
145
+ from: resolver.resolve("./runtime/stores/media")
146
+ }
147
+ ]);
148
+ nuxt.hook("components:extend", (components2) => {
149
+ const overrideDir = resolve(nuxt.options.srcDir, "mapooverride");
150
+ if (!existsSync(overrideDir)) return;
151
+ for (const component of components2) {
152
+ const c = component;
153
+ const overridePath = resolve(overrideDir, `${c.name}.vue`);
154
+ if (existsSync(overridePath)) {
155
+ c.filePath = overridePath;
156
+ c.shortPath = `mapooverride/${c.name}.vue`;
157
+ }
158
+ }
159
+ });
160
+ extendPages((pages) => {
161
+ if (!pages.some((p) => p.path === "/login"))
162
+ pages.push({
163
+ name: "mapo-login",
164
+ path: "/login",
165
+ file: resolver.resolve("./runtime/pages/login.vue"),
166
+ meta: { layout: "mapo-empty" }
167
+ });
168
+ if (!pages.some((p) => p.path === "/"))
169
+ pages.push({
170
+ name: "mapo-index",
171
+ path: "/",
172
+ file: resolver.resolve("./runtime/pages/index.vue"),
173
+ meta: { layout: "mapo-default" }
174
+ });
175
+ });
176
+ }
177
+ });
178
+
179
+ export { module$1 as default };
@@ -0,0 +1,14 @@
1
+ import type { MediaAdapter } from "../types/media.js";
2
+ /**
3
+ * Default media adapter — plain REST semantics.
4
+ *
5
+ * - List/detail params: passes `page`, `search`, `all`, and `mime` as-is.
6
+ * - Response: assumes the backend already returns the canonical
7
+ * `{ media: { items, paginator }, folders, parent_folder }` shape.
8
+ * - Detail params: passes `language_code` when a language is active.
9
+ *
10
+ * Integrations override any subset of these via their own `$mapoMediaAdapter`
11
+ * plugin (see `@mapomodule/mapo-integrations-camomilla`).
12
+ */
13
+ export declare const defaultMediaAdapter: Required<MediaAdapter>;
14
+ //# sourceMappingURL=defaultMediaAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultMediaAdapter.d.ts","sourceRoot":"","sources":["../../../src/runtime/adapters/defaultMediaAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAKb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,YAAY,CAqCtD,CAAC"}
@@ -0,0 +1,30 @@
1
+ export const defaultMediaAdapter = {
2
+ buildListParams(ctx) {
3
+ const params = {};
4
+ if (ctx.page != null) params.page = ctx.page;
5
+ if (ctx.search) params.search = ctx.search;
6
+ if (ctx.all) params.all = true;
7
+ if (ctx.mime) params.mime = ctx.mime;
8
+ return params;
9
+ },
10
+ parseRootResponse(raw) {
11
+ return raw;
12
+ },
13
+ buildDetailParams(ctx) {
14
+ return ctx.lang ? { language_code: ctx.lang } : {};
15
+ },
16
+ buildFolderPayload(folder) {
17
+ return { ...folder };
18
+ },
19
+ buildMediaPatchPayload(media) {
20
+ return {
21
+ title: media.title,
22
+ alt_text: media.alt_text,
23
+ description: media.description,
24
+ translations: media.translations
25
+ };
26
+ },
27
+ buildReplaceFilePayload(file, maintainUrl) {
28
+ return { file, maintain_url: maintainUrl };
29
+ }
30
+ };
@@ -0,0 +1 @@
1
+ @import "tailwindcss";@import "@nuxt/ui";@source "../components/**/*.vue";@source "../layouts/**/*.vue";@source "../pages/**/*.vue";@source "../../../../form/src/runtime/components/**/*.vue";@source "../../../../form/src/runtime/composables/**/*.ts";@source inline("col-span-1 col-span-2 col-span-3 col-span-4 col-span-5 col-span-6 col-span-7 col-span-8 col-span-9 col-span-10 col-span-11 col-span-12");@source inline("md:col-span-1 md:col-span-2 md:col-span-3 md:col-span-4 md:col-span-5 md:col-span-6 md:col-span-7 md:col-span-8 md:col-span-9 md:col-span-10 md:col-span-11 md:col-span-12");@source inline("grid-cols-12");@source inline("flex-1 min-h-0 h-full");.mapo-group-expand-body,.mapo-group-expand-body .mapo-form-field,.mapo-group-expand-body .mapo-form-field>div,.mapo-group-expand-body>*{flex:1;min-height:0}.mapo-group-expand-body [contenteditable],.mapo-group-expand-body textarea{height:100%!important;overflow-y:auto!important;resize:none!important}.mapo-group-expand-body .mapo-form-field>div>*{height:100%}@layer base{body,html{height:100%}:root{--mapo-topbar-height:56px}#__nuxt,#__nuxt>*{height:100%}}
@@ -0,0 +1,35 @@
1
+ <script setup>
2
+ import { useI18n } from "vue-i18n";
3
+ import { useConfirmStore } from "@mapomodule/store/runtime/stores/confirm";
4
+ const { t } = useI18n();
5
+ const store = useConfirmStore();
6
+ </script>
7
+
8
+ <template>
9
+ <UModal v-model:open="store.active" :dismissible="false">
10
+ <template #content>
11
+ <div class="p-6 space-y-4">
12
+ <div class="space-y-1">
13
+ <h3 class="text-base font-semibold text-highlighted">
14
+ {{ store.options?.title ?? t("mapo.confirm") }}
15
+ </h3>
16
+ <p class="text-sm text-muted">
17
+ {{ store.options?.message }}
18
+ </p>
19
+ </div>
20
+
21
+ <div class="flex justify-end gap-3">
22
+ <UButton variant="ghost" color="neutral" @click="store.cancel()">
23
+ {{ store.options?.cancelText ?? t("mapo.cancel") }}
24
+ </UButton>
25
+ <UButton
26
+ :color="store.options?.dangerous ? 'error' : 'primary'"
27
+ @click="store.confirm()"
28
+ >
29
+ {{ store.options?.confirmText ?? t("mapo.confirm") }}
30
+ </UButton>
31
+ </div>
32
+ </div>
33
+ </template>
34
+ </UModal>
35
+ </template>
@@ -0,0 +1,4 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ //# sourceMappingURL=MapoConfirmDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapoConfirmDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/runtime/components/MapoConfirmDialog.vue"],"names":[],"mappings":"AA0KA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}