@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.
- package/README.md +167 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/module.d.mts +30 -0
- package/dist/module.d.ts +27 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +114 -0
- package/dist/runtime/assets/main.css +1 -0
- package/dist/runtime/components/MapoConfirmDialog.vue +33 -0
- package/dist/runtime/components/MapoConfirmDialog.vue.d.ts +4 -0
- package/dist/runtime/components/MapoConfirmDialog.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoDetail.vue +598 -0
- package/dist/runtime/components/MapoDetail.vue.d.ts +401 -0
- package/dist/runtime/components/MapoDetail.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue +126 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts +23 -0
- package/dist/runtime/components/MapoDetailLangSwitch.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoList.vue +191 -0
- package/dist/runtime/components/MapoList.vue.d.ts +111 -0
- package/dist/runtime/components/MapoList.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListActions.vue +112 -0
- package/dist/runtime/components/MapoListActions.vue.d.ts +33 -0
- package/dist/runtime/components/MapoListActions.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListFilters.vue +244 -0
- package/dist/runtime/components/MapoListFilters.vue.d.ts +38 -0
- package/dist/runtime/components/MapoListFilters.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListHead.vue +9 -0
- package/dist/runtime/components/MapoListHead.vue.d.ts +14 -0
- package/dist/runtime/components/MapoListHead.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListQuickEdit.vue +119 -0
- package/dist/runtime/components/MapoListQuickEdit.vue.d.ts +47 -0
- package/dist/runtime/components/MapoListQuickEdit.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListTable.vue +660 -0
- package/dist/runtime/components/MapoListTable.vue.d.ts +105 -0
- package/dist/runtime/components/MapoListTable.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoListTabs.vue +38 -0
- package/dist/runtime/components/MapoListTabs.vue.d.ts +26 -0
- package/dist/runtime/components/MapoListTabs.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLogin.vue +193 -0
- package/dist/runtime/components/MapoLogin.vue.d.ts +22 -0
- package/dist/runtime/components/MapoLogin.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLogoutButton.vue +25 -0
- package/dist/runtime/components/MapoLogoutButton.vue.d.ts +29 -0
- package/dist/runtime/components/MapoLogoutButton.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoRootComponents.vue +9 -0
- package/dist/runtime/components/MapoRootComponents.vue.d.ts +4 -0
- package/dist/runtime/components/MapoRootComponents.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebar.vue +87 -0
- package/dist/runtime/components/MapoSidebar.vue.d.ts +22 -0
- package/dist/runtime/components/MapoSidebar.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarList.vue +27 -0
- package/dist/runtime/components/MapoSidebarList.vue.d.ts +8 -0
- package/dist/runtime/components/MapoSidebarList.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarListItem.vue +74 -0
- package/dist/runtime/components/MapoSidebarListItem.vue.d.ts +9 -0
- package/dist/runtime/components/MapoSidebarListItem.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSidebarProfile.vue +51 -0
- package/dist/runtime/components/MapoSidebarProfile.vue.d.ts +10 -0
- package/dist/runtime/components/MapoSidebarProfile.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoSnackBar.vue +38 -0
- package/dist/runtime/components/MapoSnackBar.vue.d.ts +4 -0
- package/dist/runtime/components/MapoSnackBar.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoThemeToggle.vue +19 -0
- package/dist/runtime/components/MapoThemeToggle.vue.d.ts +4 -0
- package/dist/runtime/components/MapoThemeToggle.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoTopbar.vue +30 -0
- package/dist/runtime/components/MapoTopbar.vue.d.ts +15 -0
- package/dist/runtime/components/MapoTopbar.vue.d.ts.map +1 -0
- package/dist/runtime/layouts/default.vue +43 -0
- package/dist/runtime/layouts/default.vue.d.ts +20 -0
- package/dist/runtime/layouts/default.vue.d.ts.map +1 -0
- package/dist/runtime/layouts/empty.vue +9 -0
- package/dist/runtime/layouts/empty.vue.d.ts +14 -0
- package/dist/runtime/layouts/empty.vue.d.ts.map +1 -0
- package/dist/runtime/page-meta.nuxt.d.ts +45 -0
- package/dist/runtime/pages/index.vue +13 -0
- package/dist/runtime/pages/index.vue.d.ts +4 -0
- package/dist/runtime/pages/index.vue.d.ts.map +1 -0
- package/dist/runtime/pages/login.vue +7 -0
- package/dist/runtime/pages/login.vue.d.ts +4 -0
- package/dist/runtime/pages/login.vue.d.ts.map +1 -0
- package/dist/runtime/types/list.d.ts +59 -0
- package/dist/runtime/types/list.d.ts.map +1 -0
- package/dist/runtime/types/list.js +0 -0
- package/dist/types.d.mts +9 -0
- package/package.json +63 -12
- package/src/index.ts +10 -0
- package/src/module.ts +181 -0
- package/src/runtime/assets/main.css +59 -0
- package/src/runtime/components/MapoConfirmDialog.vue +34 -0
- package/src/runtime/components/MapoDetail.vue +861 -0
- package/src/runtime/components/MapoDetailLangSwitch.vue +166 -0
- package/src/runtime/components/MapoList.vue +339 -0
- package/src/runtime/components/MapoListActions.vue +152 -0
- package/src/runtime/components/MapoListFilters.vue +289 -0
- package/src/runtime/components/MapoListHead.vue +12 -0
- package/src/runtime/components/MapoListQuickEdit.vue +163 -0
- package/src/runtime/components/MapoListTable.vue +926 -0
- package/src/runtime/components/MapoListTabs.vue +48 -0
- package/src/runtime/components/MapoLogin.vue +209 -0
- package/src/runtime/components/MapoLogoutButton.vue +46 -0
- package/src/runtime/components/MapoRootComponents.vue +9 -0
- package/src/runtime/components/MapoSidebar.vue +112 -0
- package/src/runtime/components/MapoSidebarList.vue +35 -0
- package/src/runtime/components/MapoSidebarListItem.vue +79 -0
- package/src/runtime/components/MapoSidebarProfile.vue +57 -0
- package/src/runtime/components/MapoSnackBar.vue +42 -0
- package/src/runtime/components/MapoThemeToggle.vue +23 -0
- package/src/runtime/components/MapoTopbar.vue +36 -0
- package/src/runtime/layouts/default.vue +53 -0
- package/src/runtime/layouts/empty.vue +9 -0
- package/src/runtime/page-meta.nuxt.d.ts +45 -0
- package/src/runtime/pages/index.vue +14 -0
- package/src/runtime/pages/login.vue +7 -0
- package/src/runtime/types/list.ts +64 -0
- package/CHANGELOG.md +0 -1030
- package/assets/mixins.scss +0 -22
- package/assets/variables.scss +0 -18
- package/components/ConfirmDialog.vue +0 -173
- package/components/Detail/Detail.vue +0 -696
- package/components/Detail/DetailLangSwitch.vue +0 -79
- package/components/DropArea.vue +0 -257
- package/components/Form/Form.vue +0 -218
- package/components/Form/FormField.vue +0 -216
- package/components/Form/FormGroup.vue +0 -146
- package/components/Form/FormTabs.vue +0 -188
- package/components/Form/defaults.js +0 -98
- package/components/Form/fields/ColorField.vue +0 -79
- package/components/Form/fields/DateField.vue +0 -77
- package/components/Form/fields/DateTimeField.vue +0 -271
- package/components/Form/fields/EnhancedMediaField.vue +0 -224
- package/components/Form/fields/FileField.vue +0 -125
- package/components/Form/fields/FksField.vue +0 -115
- package/components/Form/fields/MediaField.vue +0 -159
- package/components/Form/fields/MediaM2mField.vue +0 -149
- package/components/Form/fields/Repeater.vue +0 -618
- package/components/Form/fields/SeoPreview.vue +0 -89
- package/components/Form/fields/TimeField.vue +0 -154
- package/components/Form/fields/mapField/leaflet.injector.js +0 -39
- package/components/Form/fields/mapField/mapField.vue +0 -350
- package/components/Form/fields/wygEditor/defaults.js +0 -25
- package/components/Form/fields/wygEditor/utils/events.js +0 -64
- package/components/Form/fields/wygEditor/utils/mapomedia.plugin.js +0 -32
- package/components/Form/fields/wygEditor/utils/tinymce.injector.js +0 -29
- package/components/Form/fields/wygEditor/wygEditor.vue +0 -285
- package/components/Form/fields/wygEditorCKE/defaults.js +0 -103
- package/components/Form/fields/wygEditorCKE/utils/ckeditor.injector.js +0 -29
- package/components/Form/fields/wygEditorCKE/wygEditorCKE.vue +0 -270
- package/components/LangSwitcher.vue +0 -44
- package/components/List/List.vue +0 -271
- package/components/List/ListActions.vue +0 -164
- package/components/List/ListFilters.vue +0 -372
- package/components/List/ListHead.vue +0 -67
- package/components/List/ListQuickEdit.vue +0 -228
- package/components/List/ListTable.vue +0 -484
- package/components/List/ListTabs.vue +0 -65
- package/components/Login.vue +0 -125
- package/components/Logo.vue +0 -79
- package/components/LogoutButton.vue +0 -54
- package/components/MediaManager/MediaBreadcrumbs.vue +0 -45
- package/components/MediaManager/MediaEditor.vue +0 -340
- package/components/MediaManager/MediaFileChanger.vue +0 -78
- package/components/MediaManager/MediaFolders.vue +0 -287
- package/components/MediaManager/MediaGallery.vue +0 -281
- package/components/MediaManager/MediaManager.vue +0 -159
- package/components/MediaManager/MediaManagerDialog.vue +0 -104
- package/components/MediaManager/MediaPreview.vue +0 -258
- package/components/MediaManager/MediaUploader.vue +0 -163
- package/components/MenuManager/MenuManager.vue +0 -332
- package/components/MenuManager/MenuNodeEditor.vue +0 -270
- package/components/MenuManager/MenuTreeview.vue +0 -237
- package/components/MenuManager/MenuTreeviewNode.vue +0 -208
- package/components/PagePreview.vue +0 -58
- package/components/RootComponents.vue +0 -25
- package/components/SnackBar.vue +0 -69
- package/components/ThemeToggle.vue +0 -13
- package/components/layout/Sidebar/Sidebar.vue +0 -89
- package/components/layout/Sidebar/SidebarList.vue +0 -49
- package/components/layout/Sidebar/SidebarListItem.vue +0 -185
- package/components/layout/Sidebar/SidebarProfile.vue +0 -42
- package/components/layout/Sidebar/SidebarTitle.vue +0 -45
- package/components/layout/Topbar/Topbar.vue +0 -29
- package/components/layout/routebuilder.js +0 -48
- package/defaults/i18n.js +0 -37
- package/defaults/vuetify.js +0 -34
- package/layouts/default.vue +0 -47
- package/layouts/empty.vue +0 -16
- package/module.js +0 -80
- package/pages/index.vue +0 -37
- package/pages/login.vue +0 -10
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/dev/contents.css +0 -35
- package/static/mapo/ckeditor/plugins/image2/dev/image2.html +0 -338
- package/static/mapo/ckeditor/plugins/image2/dialogs/image2.js +0 -557
- package/static/mapo/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/icons/image.png +0 -0
- package/static/mapo/ckeditor/plugins/image2/lang/af.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ar.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/az.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bg.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/bs.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/cs.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/cy.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/da.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/de-ch.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/de.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/el.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-au.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en-gb.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/en.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/eo.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/es-mx.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/es.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/et.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/eu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fa.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fo.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fr-ca.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/fr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/gl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/gu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/he.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/hu.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/id.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/is.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/it.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ja.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ka.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/km.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ko.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ku.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/lt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/lv.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/mk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/mn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ms.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/nb.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/nl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/no.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/oc.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pt-br.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/pt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ro.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ru.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/si.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sl.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sq.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sr-latn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/sv.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/th.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/tr.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/tt.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/ug.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/uk.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/vi.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/zh-cn.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/lang/zh.js +0 -21
- package/static/mapo/ckeditor/plugins/image2/plugin.js +0 -1798
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
- package/static/mapo/ckeditor/plugins/image2/samples/image2.html +0 -68
- package/static/mapo/ckeditor/skins/moono/dev/icons16.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons16.svg +0 -2374
- package/static/mapo/ckeditor/skins/moono/dev/icons32.png +0 -0
- package/static/mapo/ckeditor/skins/moono/dev/icons32.svg +0 -2722
- package/static/mapo/ckeditor/skins/moono/dev/locations.json +0 -144
- package/static/mapo/ckeditor/skins/moono/dialog.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono/dialog_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_gecko.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono/editor_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/anchor.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono/images/spinner.gif +0 -0
- package/static/mapo/ckeditor/skins/moono/readme.md +0 -49
- package/static/mapo/ckeditor/skins/moono/skin.js +0 -10
- package/static/mapo/ckeditor/skins/moono-dark/dialog.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/dialog_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_gecko.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie7.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_ie8.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/editor_iequirks.css +0 -5
- package/static/mapo/ckeditor/skins/moono-dark/icons.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/icons_hidpi.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/arrow.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/close.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/hidpi/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock-open.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/lock.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/images/refresh.png +0 -0
- package/static/mapo/ckeditor/skins/moono-dark/readme.md +0 -51
- package/static/mapo/ckeditor/skins/moono-dark/skin.js +0 -5
- package/static/mapo/favicon.ico +0 -0
- package/static/mapo/tinymce-skins/mapo-dark/content.inline.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/content.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/content.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/skin.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-dark/skin.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.inline.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/content.mobile.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/skin.min.css +0 -7
- package/static/mapo/tinymce-skins/mapo-light/skin.mobile.min.css +0 -7
- package/translations/en-US.js +0 -177
- 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.
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -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 };
|
package/dist/module.d.ts
ADDED
|
@@ -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"}
|
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -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"}
|