@mapomodule/uikit 2.0.0-beta.1 → 2.0.0-beta.11
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 +33 -1
- package/dist/__tests__/langInfo.test.d.ts +2 -0
- package/dist/__tests__/langInfo.test.d.ts.map +1 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +1 -18
- package/dist/module.d.mts +60 -2
- package/dist/module.d.ts +55 -2
- package/dist/module.d.ts.map +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +174 -13
- package/dist/runtime/adapters/defaultMediaAdapter.d.ts +14 -0
- package/dist/runtime/adapters/defaultMediaAdapter.d.ts.map +1 -0
- package/dist/runtime/adapters/defaultMediaAdapter.js +30 -0
- package/dist/runtime/assets/main.css +1 -0
- package/dist/runtime/components/MapoConfirmDialog.vue +35 -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 +632 -0
- package/dist/runtime/components/MapoDetail.vue.d.ts +422 -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/MapoDropArea.vue +99 -0
- package/dist/runtime/components/MapoDropArea.vue.d.ts +33 -0
- package/dist/runtime/components/MapoDropArea.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoLangSwitcher.vue +39 -0
- package/dist/runtime/components/MapoLangSwitcher.vue.d.ts +18 -0
- package/dist/runtime/components/MapoLangSwitcher.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 +119 -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 +246 -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 +123 -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 +665 -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 +196 -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 +27 -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/MapoMediaBreadcrumbs.vue +47 -0
- package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaBreadcrumbs.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaEditor.vue +320 -0
- package/dist/runtime/components/MapoMediaEditor.vue.d.ts +8 -0
- package/dist/runtime/components/MapoMediaEditor.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue +112 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts +15 -0
- package/dist/runtime/components/MapoMediaFileChanger.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaFolders.vue +220 -0
- package/dist/runtime/components/MapoMediaFolders.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaFolders.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaGallery.vue +219 -0
- package/dist/runtime/components/MapoMediaGallery.vue.d.ts +4 -0
- package/dist/runtime/components/MapoMediaGallery.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaManager.vue +140 -0
- package/dist/runtime/components/MapoMediaManager.vue.d.ts +35 -0
- package/dist/runtime/components/MapoMediaManager.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue +116 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts +41 -0
- package/dist/runtime/components/MapoMediaManagerDialog.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaPreview.vue +92 -0
- package/dist/runtime/components/MapoMediaPreview.vue.d.ts +19 -0
- package/dist/runtime/components/MapoMediaPreview.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMediaUploader.vue +290 -0
- package/dist/runtime/components/MapoMediaUploader.vue.d.ts +8 -0
- package/dist/runtime/components/MapoMediaUploader.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuManager.vue +293 -0
- package/dist/runtime/components/MapoMenuManager.vue.d.ts +92 -0
- package/dist/runtime/components/MapoMenuManager.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue +201 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts +61 -0
- package/dist/runtime/components/MapoMenuNodeEditor.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuTreeview.vue +181 -0
- package/dist/runtime/components/MapoMenuTreeview.vue.d.ts +57 -0
- package/dist/runtime/components/MapoMenuTreeview.vue.d.ts.map +1 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.vue +175 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.vue.d.ts +27 -0
- package/dist/runtime/components/MapoMenuTreeviewNode.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 +89 -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 +55 -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 +23 -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/components/menuDndContext.d.ts +19 -0
- package/dist/runtime/components/menuDndContext.d.ts.map +1 -0
- package/dist/runtime/components/menuDndContext.js +3 -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 +14 -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 +3 -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/plugins/media-adapter.d.ts +18 -0
- package/dist/runtime/plugins/media-adapter.d.ts.map +1 -0
- package/dist/runtime/plugins/media-adapter.js +8 -0
- package/dist/runtime/stores/media.d.ts +462 -0
- package/dist/runtime/stores/media.d.ts.map +1 -0
- package/dist/runtime/stores/media.js +344 -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/runtime/types/media.d.ts +116 -0
- package/dist/runtime/types/media.d.ts.map +1 -0
- package/dist/runtime/types/media.js +0 -0
- package/dist/runtime/types/menu.d.ts +66 -0
- package/dist/runtime/types/menu.d.ts.map +1 -0
- package/dist/runtime/types/menu.js +30 -0
- package/dist/runtime/utils/langInfo.d.ts +30 -0
- package/dist/runtime/utils/langInfo.d.ts.map +1 -0
- package/dist/runtime/utils/langInfo.js +8 -0
- package/dist/types.d.mts +6 -10
- package/package.json +15 -11
- package/src/__tests__/langInfo.test.ts +48 -0
- package/src/index.ts +20 -0
- package/src/module.ts +130 -0
- package/src/runtime/adapters/defaultMediaAdapter.ts +57 -0
- package/src/runtime/components/MapoConfirmDialog.vue +5 -3
- package/src/runtime/components/MapoDetail.vue +130 -55
- package/src/runtime/components/MapoDetailLangSwitch.vue +1 -1
- package/src/runtime/components/MapoDropArea.vue +127 -0
- package/src/runtime/components/MapoLangSwitcher.vue +74 -0
- package/src/runtime/components/MapoList.vue +1 -1
- package/src/runtime/components/MapoListActions.vue +16 -10
- package/src/runtime/components/MapoListFilters.vue +5 -2
- package/src/runtime/components/MapoListQuickEdit.vue +12 -9
- package/src/runtime/components/MapoListTable.vue +26 -21
- package/src/runtime/components/MapoLogin.vue +13 -10
- package/src/runtime/components/MapoLogoutButton.vue +4 -2
- package/src/runtime/components/MapoMediaBreadcrumbs.vue +53 -0
- package/src/runtime/components/MapoMediaEditor.vue +350 -0
- package/src/runtime/components/MapoMediaFileChanger.vue +136 -0
- package/src/runtime/components/MapoMediaFolders.vue +239 -0
- package/src/runtime/components/MapoMediaGallery.vue +239 -0
- package/src/runtime/components/MapoMediaManager.vue +180 -0
- package/src/runtime/components/MapoMediaManagerDialog.vue +148 -0
- package/src/runtime/components/MapoMediaPreview.vue +111 -0
- package/src/runtime/components/MapoMediaUploader.vue +351 -0
- package/src/runtime/components/MapoMenuManager.vue +437 -0
- package/src/runtime/components/MapoMenuNodeEditor.vue +282 -0
- package/src/runtime/components/MapoMenuTreeview.vue +264 -0
- package/src/runtime/components/MapoMenuTreeviewNode.vue +234 -0
- package/src/runtime/components/MapoSidebar.vue +3 -1
- package/src/runtime/components/MapoSidebarList.vue +1 -1
- package/src/runtime/components/MapoSidebarProfile.vue +6 -2
- package/src/runtime/components/MapoThemeToggle.vue +5 -1
- package/src/runtime/components/menuDndContext.ts +22 -0
- package/src/runtime/pages/index.vue +4 -3
- package/src/runtime/pages/login.vue +0 -4
- package/src/runtime/plugins/media-adapter.ts +33 -0
- package/src/runtime/stores/media.ts +474 -0
- package/src/runtime/types/media.ts +126 -0
- package/src/runtime/types/menu.ts +105 -0
- package/src/runtime/utils/langInfo.ts +38 -0
- package/dist/index.d.cts +0 -2
- package/dist/module.d.cts +0 -2
package/README.md
CHANGED
|
@@ -69,6 +69,38 @@ When installed via `mapomodule`, configure under `mapo.uikit` instead.
|
|
|
69
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
70
|
| `MapoListQuickEdit` | Quick-edit modal driven by the same `FieldDescriptor[]` as the detail form |
|
|
71
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
|
+
|
|
72
104
|
#### Detail shell
|
|
73
105
|
|
|
74
106
|
| Component | Description |
|
|
@@ -140,7 +172,7 @@ app/
|
|
|
140
172
|
|
|
141
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.
|
|
142
174
|
|
|
143
|
-
Overridable components: `MapoTopbar`, `MapoSidebar`, `MapoSidebarList`, `MapoSidebarListItem`, `MapoSidebarProfile`, `MapoLogin`, `MapoLogoutButton`, `MapoThemeToggle`, `MapoSnackBar`, `MapoConfirmDialog`, `MapoRootComponents`, `MapoDetail`, `MapoDetailLangSwitch`, `MapoList`, `MapoListTable`, `MapoListFilters`, `MapoListActions`, `MapoListHead`, `MapoListQuickEdit`.
|
|
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`.
|
|
144
176
|
|
|
145
177
|
## Dev workflow
|
|
146
178
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langInfo.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/langInfo.test.ts"],"names":[],"mappings":""}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
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
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const jiti = createJiti(import.meta.url, {
|
|
4
|
-
"interopDefault": true,
|
|
5
|
-
"alias": {
|
|
6
|
-
"@mapomodule/uikit": "/home/runner/work/mapo-new/mapo-new/packages/@mapomodule/uikit"
|
|
7
|
-
},
|
|
8
|
-
"transformOptions": {
|
|
9
|
-
"babel": {
|
|
10
|
-
"plugins": []
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
/** @type {import("/home/runner/work/mapo-new/mapo-new/packages/@mapomodule/uikit/src/index.js")} */
|
|
16
|
-
const _module = await jiti.import("/home/runner/work/mapo-new/mapo-new/packages/@mapomodule/uikit/src/index.ts");
|
|
17
|
-
|
|
18
|
-
export default _module?.default ?? _module;
|
|
1
|
+
export { createMenuNode, findMenuNode, menuTreeDepth, removeMenuNode } from '../dist/runtime/types/menu.js';
|
package/dist/module.d.mts
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
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"}
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,18 +1,179 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
2
4
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const MAPO_MEDIA_DEFAULTS = {
|
|
6
|
+
endpoints: {
|
|
7
|
+
media: "/api/media",
|
|
8
|
+
folders: "/api/media-folders"
|
|
7
9
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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);
|
|
11
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
|
+
});
|
|
12
176
|
}
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
/** @type {import("/home/runner/work/mapo-new/mapo-new/packages/@mapomodule/uikit/src/module.js")} */
|
|
16
|
-
const _module = await jiti.import("/home/runner/work/mapo-new/mapo-new/packages/@mapomodule/uikit/src/module.ts");
|
|
177
|
+
});
|
|
17
178
|
|
|
18
|
-
export
|
|
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"}
|