@mapomodule/uikit 1.0.0 → 2.0.0-beta.2

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 (343) hide show
  1. package/README.md +167 -0
  2. package/dist/index.d.mts +3 -0
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.mjs +1 -0
  6. package/dist/module.d.mts +30 -0
  7. package/dist/module.d.ts +27 -0
  8. package/dist/module.d.ts.map +1 -0
  9. package/dist/module.json +9 -0
  10. package/dist/module.mjs +114 -0
  11. package/dist/runtime/assets/main.css +1 -0
  12. package/dist/runtime/components/MapoConfirmDialog.vue +33 -0
  13. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts +4 -0
  14. package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -0
  15. package/dist/runtime/components/MapoDetail.vue +598 -0
  16. package/dist/runtime/components/MapoDetail.vue.d.ts +401 -0
  17. package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -0
  18. package/dist/runtime/components/MapoDetailLangSwitch.vue +126 -0
  19. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +23 -0
  20. package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -0
  21. package/dist/runtime/components/MapoList.vue +191 -0
  22. package/dist/runtime/components/MapoList.vue.d.ts +111 -0
  23. package/dist/runtime/components/MapoList.vue.d.ts.map +1 -0
  24. package/dist/runtime/components/MapoListActions.vue +112 -0
  25. package/dist/runtime/components/MapoListActions.vue.d.ts +33 -0
  26. package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -0
  27. package/dist/runtime/components/MapoListFilters.vue +244 -0
  28. package/dist/runtime/components/MapoListFilters.vue.d.ts +38 -0
  29. package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -0
  30. package/dist/runtime/components/MapoListHead.vue +9 -0
  31. package/dist/runtime/components/MapoListHead.vue.d.ts +14 -0
  32. package/dist/runtime/components/MapoListHead.vue.d.ts.map +1 -0
  33. package/dist/runtime/components/MapoListQuickEdit.vue +119 -0
  34. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts +47 -0
  35. package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -0
  36. package/dist/runtime/components/MapoListTable.vue +660 -0
  37. package/dist/runtime/components/MapoListTable.vue.d.ts +105 -0
  38. package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -0
  39. package/dist/runtime/components/MapoListTabs.vue +38 -0
  40. package/dist/runtime/components/MapoListTabs.vue.d.ts +26 -0
  41. package/dist/runtime/components/MapoListTabs.vue.d.ts.map +1 -0
  42. package/dist/runtime/components/MapoLogin.vue +193 -0
  43. package/dist/runtime/components/MapoLogin.vue.d.ts +22 -0
  44. package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -0
  45. package/dist/runtime/components/MapoLogoutButton.vue +25 -0
  46. package/dist/runtime/components/MapoLogoutButton.vue.d.ts +29 -0
  47. package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -0
  48. package/dist/runtime/components/MapoRootComponents.vue +9 -0
  49. package/dist/runtime/components/MapoRootComponents.vue.d.ts +4 -0
  50. package/dist/runtime/components/MapoRootComponents.vue.d.ts.map +1 -0
  51. package/dist/runtime/components/MapoSidebar.vue +87 -0
  52. package/dist/runtime/components/MapoSidebar.vue.d.ts +22 -0
  53. package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -0
  54. package/dist/runtime/components/MapoSidebarList.vue +27 -0
  55. package/dist/runtime/components/MapoSidebarList.vue.d.ts +8 -0
  56. package/dist/runtime/components/MapoSidebarList.vue.d.ts.map +1 -0
  57. package/dist/runtime/components/MapoSidebarListItem.vue +74 -0
  58. package/dist/runtime/components/MapoSidebarListItem.vue.d.ts +9 -0
  59. package/dist/runtime/components/MapoSidebarListItem.vue.d.ts.map +1 -0
  60. package/dist/runtime/components/MapoSidebarProfile.vue +51 -0
  61. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts +10 -0
  62. package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -0
  63. package/dist/runtime/components/MapoSnackBar.vue +38 -0
  64. package/dist/runtime/components/MapoSnackBar.vue.d.ts +4 -0
  65. package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -0
  66. package/dist/runtime/components/MapoThemeToggle.vue +19 -0
  67. package/dist/runtime/components/MapoThemeToggle.vue.d.ts +4 -0
  68. package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -0
  69. package/dist/runtime/components/MapoTopbar.vue +30 -0
  70. package/dist/runtime/components/MapoTopbar.vue.d.ts +15 -0
  71. package/dist/runtime/components/MapoTopbar.vue.d.ts.map +1 -0
  72. package/dist/runtime/layouts/default.vue +43 -0
  73. package/dist/runtime/layouts/default.vue.d.ts +20 -0
  74. package/dist/runtime/layouts/default.vue.d.ts.map +1 -0
  75. package/dist/runtime/layouts/empty.vue +9 -0
  76. package/dist/runtime/layouts/empty.vue.d.ts +14 -0
  77. package/dist/runtime/layouts/empty.vue.d.ts.map +1 -0
  78. package/dist/runtime/page-meta.nuxt.d.ts +45 -0
  79. package/dist/runtime/pages/index.vue +13 -0
  80. package/dist/runtime/pages/index.vue.d.ts +4 -0
  81. package/dist/runtime/pages/index.vue.d.ts.map +1 -0
  82. package/dist/runtime/pages/login.vue +7 -0
  83. package/dist/runtime/pages/login.vue.d.ts +4 -0
  84. package/dist/runtime/pages/login.vue.d.ts.map +1 -0
  85. package/dist/runtime/types/list.d.ts +59 -0
  86. package/dist/runtime/types/list.d.ts.map +1 -0
  87. package/dist/runtime/types/list.js +0 -0
  88. package/dist/types.d.mts +9 -0
  89. package/package.json +63 -12
  90. package/src/index.ts +10 -0
  91. package/src/module.ts +181 -0
  92. package/src/runtime/assets/main.css +59 -0
  93. package/src/runtime/components/MapoConfirmDialog.vue +34 -0
  94. package/src/runtime/components/MapoDetail.vue +861 -0
  95. package/src/runtime/components/MapoDetailLangSwitch.vue +166 -0
  96. package/src/runtime/components/MapoList.vue +339 -0
  97. package/src/runtime/components/MapoListActions.vue +152 -0
  98. package/src/runtime/components/MapoListFilters.vue +289 -0
  99. package/src/runtime/components/MapoListHead.vue +12 -0
  100. package/src/runtime/components/MapoListQuickEdit.vue +163 -0
  101. package/src/runtime/components/MapoListTable.vue +926 -0
  102. package/src/runtime/components/MapoListTabs.vue +48 -0
  103. package/src/runtime/components/MapoLogin.vue +209 -0
  104. package/src/runtime/components/MapoLogoutButton.vue +46 -0
  105. package/src/runtime/components/MapoRootComponents.vue +9 -0
  106. package/src/runtime/components/MapoSidebar.vue +112 -0
  107. package/src/runtime/components/MapoSidebarList.vue +35 -0
  108. package/src/runtime/components/MapoSidebarListItem.vue +79 -0
  109. package/src/runtime/components/MapoSidebarProfile.vue +57 -0
  110. package/src/runtime/components/MapoSnackBar.vue +42 -0
  111. package/src/runtime/components/MapoThemeToggle.vue +23 -0
  112. package/src/runtime/components/MapoTopbar.vue +36 -0
  113. package/src/runtime/layouts/default.vue +53 -0
  114. package/src/runtime/layouts/empty.vue +9 -0
  115. package/src/runtime/page-meta.nuxt.d.ts +45 -0
  116. package/src/runtime/pages/index.vue +14 -0
  117. package/src/runtime/pages/login.vue +7 -0
  118. package/src/runtime/types/list.ts +64 -0
  119. package/CHANGELOG.md +0 -1030
  120. package/assets/mixins.scss +0 -22
  121. package/assets/variables.scss +0 -18
  122. package/components/ConfirmDialog.vue +0 -173
  123. package/components/Detail/Detail.vue +0 -696
  124. package/components/Detail/DetailLangSwitch.vue +0 -79
  125. package/components/DropArea.vue +0 -257
  126. package/components/Form/Form.vue +0 -218
  127. package/components/Form/FormField.vue +0 -216
  128. package/components/Form/FormGroup.vue +0 -146
  129. package/components/Form/FormTabs.vue +0 -188
  130. package/components/Form/defaults.js +0 -98
  131. package/components/Form/fields/ColorField.vue +0 -79
  132. package/components/Form/fields/DateField.vue +0 -77
  133. package/components/Form/fields/DateTimeField.vue +0 -271
  134. package/components/Form/fields/EnhancedMediaField.vue +0 -224
  135. package/components/Form/fields/FileField.vue +0 -125
  136. package/components/Form/fields/FksField.vue +0 -115
  137. package/components/Form/fields/MediaField.vue +0 -159
  138. package/components/Form/fields/MediaM2mField.vue +0 -149
  139. package/components/Form/fields/Repeater.vue +0 -618
  140. package/components/Form/fields/SeoPreview.vue +0 -89
  141. package/components/Form/fields/TimeField.vue +0 -154
  142. package/components/Form/fields/mapField/leaflet.injector.js +0 -39
  143. package/components/Form/fields/mapField/mapField.vue +0 -350
  144. package/components/Form/fields/wygEditor/defaults.js +0 -25
  145. package/components/Form/fields/wygEditor/utils/events.js +0 -64
  146. package/components/Form/fields/wygEditor/utils/mapomedia.plugin.js +0 -32
  147. package/components/Form/fields/wygEditor/utils/tinymce.injector.js +0 -29
  148. package/components/Form/fields/wygEditor/wygEditor.vue +0 -285
  149. package/components/Form/fields/wygEditorCKE/defaults.js +0 -103
  150. package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +0 -29
  151. package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +0 -270
  152. package/components/LangSwitcher.vue +0 -44
  153. package/components/List/List.vue +0 -271
  154. package/components/List/ListActions.vue +0 -164
  155. package/components/List/ListFilters.vue +0 -372
  156. package/components/List/ListHead.vue +0 -67
  157. package/components/List/ListQuickEdit.vue +0 -228
  158. package/components/List/ListTable.vue +0 -484
  159. package/components/List/ListTabs.vue +0 -65
  160. package/components/Login.vue +0 -125
  161. package/components/Logo.vue +0 -79
  162. package/components/LogoutButton.vue +0 -54
  163. package/components/MediaManager/MediaBreadcrumbs.vue +0 -45
  164. package/components/MediaManager/MediaEditor.vue +0 -340
  165. package/components/MediaManager/MediaFileChanger.vue +0 -78
  166. package/components/MediaManager/MediaFolders.vue +0 -287
  167. package/components/MediaManager/MediaGallery.vue +0 -281
  168. package/components/MediaManager/MediaManager.vue +0 -159
  169. package/components/MediaManager/MediaManagerDialog.vue +0 -104
  170. package/components/MediaManager/MediaPreview.vue +0 -258
  171. package/components/MediaManager/MediaUploader.vue +0 -163
  172. package/components/MenuManager/MenuManager.vue +0 -332
  173. package/components/MenuManager/MenuNodeEditor.vue +0 -270
  174. package/components/MenuManager/MenuTreeview.vue +0 -237
  175. package/components/MenuManager/MenuTreeviewNode.vue +0 -208
  176. package/components/PagePreview.vue +0 -58
  177. package/components/RootComponents.vue +0 -25
  178. package/components/SnackBar.vue +0 -69
  179. package/components/ThemeToggle.vue +0 -13
  180. package/components/layout/Sidebar/Sidebar.vue +0 -89
  181. package/components/layout/Sidebar/SidebarList.vue +0 -49
  182. package/components/layout/Sidebar/SidebarListItem.vue +0 -185
  183. package/components/layout/Sidebar/SidebarProfile.vue +0 -42
  184. package/components/layout/Sidebar/SidebarTitle.vue +0 -45
  185. package/components/layout/Topbar/Topbar.vue +0 -29
  186. package/components/layout/routebuilder.js +0 -48
  187. package/defaults/i18n.js +0 -37
  188. package/defaults/vuetify.js +0 -34
  189. package/layouts/default.vue +0 -47
  190. package/layouts/empty.vue +0 -16
  191. package/module.js +0 -80
  192. package/pages/index.vue +0 -37
  193. package/pages/login.vue +0 -10
  194. package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
  195. package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
  196. package/static/mapo/ckeditor/plugins/image2/dev/contents.css +0 -35
  197. package/static/mapo/ckeditor/plugins/image2/dev/image2.html +0 -338
  198. package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +0 -557
  199. package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
  200. package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
  201. package/static/mapo/ckeditor/plugins/image2/lang/af.js +0 -21
  202. package/static/mapo/ckeditor/plugins/image2/lang/ar.js +0 -21
  203. package/static/mapo/ckeditor/plugins/image2/lang/az.js +0 -21
  204. package/static/mapo/ckeditor/plugins/image2/lang/bg.js +0 -21
  205. package/static/mapo/ckeditor/plugins/image2/lang/bn.js +0 -21
  206. package/static/mapo/ckeditor/plugins/image2/lang/bs.js +0 -21
  207. package/static/mapo/ckeditor/plugins/image2/lang/ca.js +0 -21
  208. package/static/mapo/ckeditor/plugins/image2/lang/cs.js +0 -21
  209. package/static/mapo/ckeditor/plugins/image2/lang/cy.js +0 -21
  210. package/static/mapo/ckeditor/plugins/image2/lang/da.js +0 -21
  211. package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +0 -21
  212. package/static/mapo/ckeditor/plugins/image2/lang/de.js +0 -21
  213. package/static/mapo/ckeditor/plugins/image2/lang/el.js +0 -21
  214. package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +0 -21
  215. package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +0 -21
  216. package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +0 -21
  217. package/static/mapo/ckeditor/plugins/image2/lang/en.js +0 -21
  218. package/static/mapo/ckeditor/plugins/image2/lang/eo.js +0 -21
  219. package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +0 -21
  220. package/static/mapo/ckeditor/plugins/image2/lang/es.js +0 -21
  221. package/static/mapo/ckeditor/plugins/image2/lang/et.js +0 -21
  222. package/static/mapo/ckeditor/plugins/image2/lang/eu.js +0 -21
  223. package/static/mapo/ckeditor/plugins/image2/lang/fa.js +0 -21
  224. package/static/mapo/ckeditor/plugins/image2/lang/fi.js +0 -21
  225. package/static/mapo/ckeditor/plugins/image2/lang/fo.js +0 -21
  226. package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +0 -21
  227. package/static/mapo/ckeditor/plugins/image2/lang/fr.js +0 -21
  228. package/static/mapo/ckeditor/plugins/image2/lang/gl.js +0 -21
  229. package/static/mapo/ckeditor/plugins/image2/lang/gu.js +0 -21
  230. package/static/mapo/ckeditor/plugins/image2/lang/he.js +0 -21
  231. package/static/mapo/ckeditor/plugins/image2/lang/hi.js +0 -21
  232. package/static/mapo/ckeditor/plugins/image2/lang/hr.js +0 -21
  233. package/static/mapo/ckeditor/plugins/image2/lang/hu.js +0 -21
  234. package/static/mapo/ckeditor/plugins/image2/lang/id.js +0 -21
  235. package/static/mapo/ckeditor/plugins/image2/lang/is.js +0 -21
  236. package/static/mapo/ckeditor/plugins/image2/lang/it.js +0 -21
  237. package/static/mapo/ckeditor/plugins/image2/lang/ja.js +0 -21
  238. package/static/mapo/ckeditor/plugins/image2/lang/ka.js +0 -21
  239. package/static/mapo/ckeditor/plugins/image2/lang/km.js +0 -21
  240. package/static/mapo/ckeditor/plugins/image2/lang/ko.js +0 -21
  241. package/static/mapo/ckeditor/plugins/image2/lang/ku.js +0 -21
  242. package/static/mapo/ckeditor/plugins/image2/lang/lt.js +0 -21
  243. package/static/mapo/ckeditor/plugins/image2/lang/lv.js +0 -21
  244. package/static/mapo/ckeditor/plugins/image2/lang/mk.js +0 -21
  245. package/static/mapo/ckeditor/plugins/image2/lang/mn.js +0 -21
  246. package/static/mapo/ckeditor/plugins/image2/lang/ms.js +0 -21
  247. package/static/mapo/ckeditor/plugins/image2/lang/nb.js +0 -21
  248. package/static/mapo/ckeditor/plugins/image2/lang/nl.js +0 -21
  249. package/static/mapo/ckeditor/plugins/image2/lang/no.js +0 -21
  250. package/static/mapo/ckeditor/plugins/image2/lang/oc.js +0 -21
  251. package/static/mapo/ckeditor/plugins/image2/lang/pl.js +0 -21
  252. package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +0 -21
  253. package/static/mapo/ckeditor/plugins/image2/lang/pt.js +0 -21
  254. package/static/mapo/ckeditor/plugins/image2/lang/ro.js +0 -21
  255. package/static/mapo/ckeditor/plugins/image2/lang/ru.js +0 -21
  256. package/static/mapo/ckeditor/plugins/image2/lang/si.js +0 -21
  257. package/static/mapo/ckeditor/plugins/image2/lang/sk.js +0 -21
  258. package/static/mapo/ckeditor/plugins/image2/lang/sl.js +0 -21
  259. package/static/mapo/ckeditor/plugins/image2/lang/sq.js +0 -21
  260. package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +0 -21
  261. package/static/mapo/ckeditor/plugins/image2/lang/sr.js +0 -21
  262. package/static/mapo/ckeditor/plugins/image2/lang/sv.js +0 -21
  263. package/static/mapo/ckeditor/plugins/image2/lang/th.js +0 -21
  264. package/static/mapo/ckeditor/plugins/image2/lang/tr.js +0 -21
  265. package/static/mapo/ckeditor/plugins/image2/lang/tt.js +0 -21
  266. package/static/mapo/ckeditor/plugins/image2/lang/ug.js +0 -21
  267. package/static/mapo/ckeditor/plugins/image2/lang/uk.js +0 -21
  268. package/static/mapo/ckeditor/plugins/image2/lang/vi.js +0 -21
  269. package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +0 -21
  270. package/static/mapo/ckeditor/plugins/image2/lang/zh.js +0 -21
  271. package/static/mapo/ckeditor/plugins/image2/plugin.js +0 -1798
  272. package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
  273. package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
  274. package/static/mapo/ckeditor/plugins/image2/samples/image2.html +0 -68
  275. package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
  276. package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +0 -2374
  277. package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
  278. package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +0 -2722
  279. package/static/mapo/ckeditor/skins/moono/dev/locations.json +0 -144
  280. package/static/mapo/ckeditor/skins/moono/dialog.css +0 -5
  281. package/static/mapo/ckeditor/skins/moono/dialog_ie.css +0 -5
  282. package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +0 -5
  283. package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +0 -5
  284. package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +0 -5
  285. package/static/mapo/ckeditor/skins/moono/editor.css +0 -5
  286. package/static/mapo/ckeditor/skins/moono/editor_gecko.css +0 -5
  287. package/static/mapo/ckeditor/skins/moono/editor_ie.css +0 -5
  288. package/static/mapo/ckeditor/skins/moono/editor_ie7.css +0 -5
  289. package/static/mapo/ckeditor/skins/moono/editor_ie8.css +0 -5
  290. package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +0 -5
  291. package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
  292. package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
  293. package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
  294. package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
  295. package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
  296. package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
  297. package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  298. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  299. package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  300. package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  301. package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
  302. package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
  303. package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
  304. package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
  305. package/static/mapo/ckeditor/skins/moono/readme.md +0 -49
  306. package/static/mapo/ckeditor/skins/moono/skin.js +0 -10
  307. package/static/mapo/ckeditor/skins/moono-dark/dialog.css +0 -5
  308. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +0 -5
  309. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +0 -5
  310. package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +0 -5
  311. package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +0 -5
  312. package/static/mapo/ckeditor/skins/moono-dark/editor.css +0 -5
  313. package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +0 -5
  314. package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +0 -5
  315. package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +0 -5
  316. package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +0 -5
  317. package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +0 -5
  318. package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
  319. package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
  320. package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
  321. package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
  322. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
  323. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
  324. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
  325. package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
  326. package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
  327. package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
  328. package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
  329. package/static/mapo/ckeditor/skins/moono-dark/readme.md +0 -51
  330. package/static/mapo/ckeditor/skins/moono-dark/skin.js +0 -5
  331. package/static/mapo/favicon.ico +0 -0
  332. package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +0 -7
  333. package/static/mapo/tinymce-skins/mapo-dark/content.min.css +0 -7
  334. package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +0 -7
  335. package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +0 -7
  336. package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +0 -7
  337. package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +0 -7
  338. package/static/mapo/tinymce-skins/mapo-light/content.min.css +0 -7
  339. package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +0 -7
  340. package/static/mapo/tinymce-skins/mapo-light/skin.min.css +0 -7
  341. package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +0 -7
  342. package/translations/en-US.js +0 -177
  343. package/translations/it-IT.js +0 -180
package/README.md ADDED
@@ -0,0 +1,167 @@
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
+ #### Detail shell
73
+
74
+ | Component | Description |
75
+ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
76
+ | `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`). |
77
+ | `MapoDetailLangSwitch` | Language tabs with per-language error badge — syncs the `?lang=` query param |
78
+
79
+ ### Layout slots (`mapo-default`)
80
+
81
+ | Slot | Renders in |
82
+ | -------------------- | ---------------------------------------------------- |
83
+ | `sidebar:logo` | Sidebar header — replaces the default logo/name link |
84
+ | `sidebar:nav-top` | Above the auto-generated nav list |
85
+ | `sidebar:nav-bottom` | Below the nav list, above the footer row |
86
+ | `sidebar:footer` | Replaces the user avatar + logout row |
87
+ | `topbar:left` | Immediately after the drawer toggle button |
88
+ | `topbar` | Center area of the topbar (flex-1) |
89
+ | `topbar:right` | Right cluster of the topbar |
90
+
91
+ ## Theming
92
+
93
+ ### ① CSS token override
94
+
95
+ Pass a CSS file via `mapo.uikit.css`. It is loaded **after** the base uikit CSS so your values always win:
96
+
97
+ ```css
98
+ /* assets/css/theme.css */
99
+ @import "tailwindcss";
100
+ @import "@nuxt/ui";
101
+
102
+ :root {
103
+ --color-primary-500: oklch(0.59 0.25 290); /* violet */
104
+ --ui-radius: var(--radius-lg);
105
+ --ui-bg: var(--color-neutral-50);
106
+ }
107
+
108
+ .dark {
109
+ --ui-bg: var(--color-neutral-950);
110
+ }
111
+ ```
112
+
113
+ ### ② Nuxt UI component defaults
114
+
115
+ Pass a partial Nuxt UI config via `mapo.uikit.ui`. Deep-merged into `nuxt.options.ui`:
116
+
117
+ ```ts
118
+ mapo: {
119
+ uikit: {
120
+ ui: {
121
+ button: { defaultVariants: { color: "primary", variant: "solid" } },
122
+ card: { slots: { root: "rounded-xl shadow-md" } },
123
+ input: { defaultVariants: { variant: "outline" } },
124
+ },
125
+ },
126
+ },
127
+ ```
128
+
129
+ ## MapoOverride — component replacement
130
+
131
+ Create a file in `app/mapooverride/` matching any Mapo component name to replace it entirely at build time:
132
+
133
+ ```
134
+ app/
135
+ └── mapooverride/
136
+ ├── MapoTopbar.vue ← replaces MapoTopbar globally
137
+ ├── MapoSidebar.vue
138
+ └── MapoLogin.vue
139
+ ```
140
+
141
+ 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.
142
+
143
+ Overridable components: `MapoTopbar`, `MapoSidebar`, `MapoSidebarList`, `MapoSidebarListItem`, `MapoSidebarProfile`, `MapoLogin`, `MapoLogoutButton`, `MapoThemeToggle`, `MapoSnackBar`, `MapoConfirmDialog`, `MapoRootComponents`, `MapoDetail`, `MapoDetailLangSwitch`, `MapoList`, `MapoListTable`, `MapoListFilters`, `MapoListActions`, `MapoListHead`, `MapoListQuickEdit`.
144
+
145
+ ## Dev workflow
146
+
147
+ ```bash
148
+ # watch mode — rebuilds dist/ on every src/ change
149
+ pnpm --filter @mapomodule/uikit dev
150
+
151
+ # or from the monorepo root
152
+ pnpm dev:uikit
153
+ ```
154
+
155
+ Run alongside a demo app:
156
+
157
+ ```bash
158
+ # terminal 1
159
+ pnpm dev:uikit
160
+
161
+ # terminal 2
162
+ pnpm dev:example-theme # theming demo at http://localhost:3001
163
+ ```
164
+
165
+ ## Reference
166
+
167
+ See [docs/uikit/](../../../docs/uikit/) for the full component and theming documentation.
@@ -0,0 +1,3 @@
1
+ export { MapoUikitOptions } from './module.mjs';
2
+ export { ActionContext, ActionDescriptor, ActiveFilter, FilterChoice, FilterDescriptor, ListColumn, ListTabItem } from '../dist/runtime/types/list.js';
3
+ import '@nuxt/schema';
@@ -0,0 +1,3 @@
1
+ export type { MapoUikitOptions } from "./module";
2
+ export type { ListColumn, FilterChoice, FilterDescriptor, ActiveFilter, ActionContext, ActionDescriptor, ListTabItem, } from "./runtime/types/list.js";
3
+ //# 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"}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,30 @@
1
+ import { NuxtModule } from '@nuxt/schema';
2
+ import '../dist/runtime/types/list.js';
3
+
4
+ interface MapoUikitOptions {
5
+ /**
6
+ * Path to a CSS file that is injected after the base uikit CSS.
7
+ * Use it to override Tailwind theme tokens or add global styles.
8
+ *
9
+ * @example
10
+ * nuxt.config.ts
11
+ * mapoUikit: { css: '~/assets/css/theme.css' }
12
+ *
13
+ * assets/css/theme.css
14
+ * @import "@nuxt/ui";
15
+ * :root {
16
+ * --color-primary-500: oklch(0.7 0.2 240);
17
+ * }
18
+ */
19
+ css?: string;
20
+ /**
21
+ * Default Nuxt UI component config merged into nuxt.options.ui.
22
+ * Deep-merged so the consuming app can override individual keys.
23
+ * @see https://ui.nuxt.com/getting-started/theme
24
+ */
25
+ ui?: Record<string, unknown>;
26
+ }
27
+ declare const _default: NuxtModule<MapoUikitOptions, MapoUikitOptions, false>;
28
+
29
+ export { _default as default };
30
+ export type { MapoUikitOptions };
@@ -0,0 +1,27 @@
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
+ declare const _default: NuxtModule<MapoUikitOptions, MapoUikitOptions, false>;
26
+ export default _default;
27
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAUA,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;CAC9B;;AAED,wBA+I0C"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@mapomodule/uikit",
3
+ "configKey": "mapoUikit",
4
+ "version": "2.0.0-beta.2",
5
+ "builder": {
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "unknown"
8
+ }
9
+ }
@@ -0,0 +1,114 @@
1
+ import { readFileSync, existsSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { defineNuxtModule, createResolver, addTypeTemplate, addComponent, addLayout, extendPages } from '@nuxt/kit';
4
+
5
+ const module$1 = defineNuxtModule({
6
+ meta: {
7
+ name: "@mapomodule/uikit",
8
+ configKey: "mapoUikit"
9
+ },
10
+ defaults: {
11
+ ui: {}
12
+ },
13
+ // @nuxt/ui must be declared BEFORE mapomodule in the consuming app's modules[]
14
+ // so that @nuxt/icon's Icon component is available in SSR. Installing it via
15
+ // installModule() from inside another module causes an SSR Icon infinite loop.
16
+ moduleDependencies: {
17
+ "@nuxt/ui": {}
18
+ },
19
+ async setup(options, nuxt) {
20
+ const resolver = createResolver(import.meta.url);
21
+ addTypeTemplate({
22
+ filename: "types/mapo-uikit-page-meta.d.ts",
23
+ getContents: () => readFileSync(
24
+ resolver.resolve("./runtime/page-meta.nuxt.d.ts"),
25
+ "utf-8"
26
+ )
27
+ });
28
+ nuxt.options.css.unshift(resolver.resolve("./runtime/assets/main.css"));
29
+ nuxt.options.vite.server ??= {};
30
+ nuxt.options.vite.server.fs ??= {};
31
+ nuxt.options.vite.server.fs.allow ??= [];
32
+ nuxt.options.vite.server.fs.allow.push(resolver.resolve("."));
33
+ if (options.css) {
34
+ nuxt.options.css.push(options.css);
35
+ }
36
+ if (options.ui && Object.keys(options.ui).length) {
37
+ nuxt.options.ui = { ...options.ui, ...nuxt.options.ui ?? {} };
38
+ }
39
+ const components = [
40
+ "MapoSnackBar",
41
+ "MapoConfirmDialog",
42
+ "MapoLogin",
43
+ "MapoRootComponents",
44
+ "MapoSidebar",
45
+ "MapoSidebarList",
46
+ "MapoSidebarListItem",
47
+ "MapoLogoutButton",
48
+ "MapoSidebarProfile",
49
+ "MapoTopbar",
50
+ "MapoDetail",
51
+ "MapoDetailLangSwitch",
52
+ "MapoList",
53
+ "MapoListHead",
54
+ "MapoListTabs",
55
+ "MapoListFilters",
56
+ "MapoListActions",
57
+ "MapoListQuickEdit",
58
+ "MapoListTable"
59
+ ];
60
+ for (const name of components) {
61
+ addComponent({
62
+ name,
63
+ filePath: resolver.resolve(`./runtime/components/${name}.vue`)
64
+ });
65
+ }
66
+ addLayout(
67
+ { src: resolver.resolve("./runtime/layouts/default.vue") },
68
+ "mapo-default"
69
+ );
70
+ addLayout(
71
+ { src: resolver.resolve("./runtime/layouts/empty.vue") },
72
+ "mapo-empty"
73
+ );
74
+ nuxt.hook("modules:done", () => {
75
+ const iconOpts = nuxt.options;
76
+ iconOpts.icon ??= {};
77
+ iconOpts.icon.serverBundle ??= {};
78
+ const existing = iconOpts.icon.serverBundle.collections ?? [];
79
+ iconOpts.icon.serverBundle.collections = Array.from(
80
+ /* @__PURE__ */ new Set([...existing, "lucide"])
81
+ );
82
+ });
83
+ nuxt.hook("components:extend", (components2) => {
84
+ const overrideDir = resolve(nuxt.options.srcDir, "mapooverride");
85
+ if (!existsSync(overrideDir)) return;
86
+ for (const component of components2) {
87
+ const c = component;
88
+ const overridePath = resolve(overrideDir, `${c.name}.vue`);
89
+ if (existsSync(overridePath)) {
90
+ c.filePath = overridePath;
91
+ c.shortPath = `mapooverride/${c.name}.vue`;
92
+ }
93
+ }
94
+ });
95
+ extendPages((pages) => {
96
+ if (!pages.some((p) => p.path === "/login"))
97
+ pages.push({
98
+ name: "mapo-login",
99
+ path: "/login",
100
+ file: resolver.resolve("./runtime/pages/login.vue"),
101
+ meta: { layout: "mapo-empty" }
102
+ });
103
+ if (!pages.some((p) => p.path === "/"))
104
+ pages.push({
105
+ name: "mapo-index",
106
+ path: "/",
107
+ file: resolver.resolve("./runtime/pages/index.vue"),
108
+ meta: { layout: "mapo-default" }
109
+ });
110
+ });
111
+ }
112
+ });
113
+
114
+ export { module$1 as default };
@@ -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,33 @@
1
+ <script setup>
2
+ import { useConfirmStore } from "@mapomodule/store/runtime/stores/confirm";
3
+ const store = useConfirmStore();
4
+ </script>
5
+
6
+ <template>
7
+ <UModal v-model:open="store.active" :dismissible="false">
8
+ <template #content>
9
+ <div class="p-6 space-y-4">
10
+ <div class="space-y-1">
11
+ <h3 class="text-base font-semibold text-highlighted">
12
+ {{ store.options?.title ?? "Confirm" }}
13
+ </h3>
14
+ <p class="text-sm text-muted">
15
+ {{ store.options?.message }}
16
+ </p>
17
+ </div>
18
+
19
+ <div class="flex justify-end gap-3">
20
+ <UButton variant="ghost" color="neutral" @click="store.cancel()">
21
+ {{ store.options?.cancelText ?? "Cancel" }}
22
+ </UButton>
23
+ <UButton
24
+ :color="store.options?.dangerous ? 'error' : 'primary'"
25
+ @click="store.confirm()"
26
+ >
27
+ {{ store.options?.confirmText ?? "Confirm" }}
28
+ </UButton>
29
+ </div>
30
+ </div>
31
+ </template>
32
+ </UModal>
33
+ </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":"AAqKA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}