@mapomodule/uikit 1.0.0-alpha.9 → 2.0.0-beta.1
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.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +18 -0
- package/dist/module.d.cts +2 -0
- package/dist/module.d.mts +2 -0
- package/dist/module.d.ts +2 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +18 -0
- package/dist/types.d.mts +13 -0
- package/package.json +63 -10
- 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 -177
- package/LICENSE.md +0 -20
- package/assets/mixins.scss +0 -22
- package/assets/variables.scss +0 -18
- package/components/ConfirmDialog.vue +0 -152
- package/components/Detail/Detail.vue +0 -566
- package/components/Detail/DetailField.vue +0 -142
- package/components/Detail/DetailLangSwitch.vue +0 -72
- package/components/Detail/defaults.js +0 -57
- package/components/DropArea.vue +0 -250
- package/components/List/List.vue +0 -254
- package/components/List/ListActions.vue +0 -164
- package/components/List/ListFilters.vue +0 -334
- package/components/List/ListHead.vue +0 -67
- package/components/List/ListQuickEdit.vue +0 -302
- package/components/List/ListTable.vue +0 -406
- package/components/List/ListTabs.vue +0 -65
- package/components/Login.vue +0 -124
- package/components/Logo.vue +0 -79
- package/components/LogoutButton.vue +0 -39
- package/components/MediaManager/MediaEditor.vue +0 -309
- package/components/MediaManager/MediaFolders.vue +0 -263
- package/components/MediaManager/MediaGallery.vue +0 -206
- package/components/MediaManager/MediaManager.vue +0 -233
- package/components/MediaManager/MediaManagerDialog.vue +0 -96
- package/components/MediaManager/MediaPreview.vue +0 -180
- package/components/MediaManager/MediaUploader.vue +0 -165
- package/components/RootComponents.vue +0 -25
- package/components/SnackBar.vue +0 -70
- package/components/fields/DateField.vue +0 -74
- package/components/fields/FksField.vue +0 -60
- package/components/fields/MediaField.vue +0 -213
- package/components/fields/MediaM2mField.vue +0 -243
- package/components/fields/SeoPreview.vue +0 -89
- package/components/fields/wygEditor/defaults.js +0 -55
- package/components/fields/wygEditor/utils/events.js +0 -64
- package/components/fields/wygEditor/utils/mapomedia.plugin.js +0 -31
- package/components/fields/wygEditor/utils/script.injector.js +0 -29
- package/components/fields/wygEditor/wygEditor.vue +0 -196
- package/components/layout/Sidebar/Sidebar.vue +0 -80
- package/components/layout/Sidebar/SidebarFooter.vue +0 -71
- package/components/layout/Sidebar/SidebarList.vue +0 -44
- package/components/layout/Sidebar/SidebarListItem.vue +0 -144
- package/components/layout/Topbar/Topbar.vue +0 -27
- package/components/layout/routebuilder.js +0 -48
- package/defaults.js +0 -29
- package/layouts/default.vue +0 -21
- package/layouts/empty.vue +0 -6
- package/layouts/error.vue +0 -45
- package/module.js +0 -78
- package/pages/index.vue +0 -35
- package/pages/login.vue +0 -10
- package/static/favicon.ico +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useSidebarStore } from "@mapomodule/store/runtime/stores/sidebar";
|
|
3
|
+
|
|
4
|
+
defineSlots<{
|
|
5
|
+
left(): void;
|
|
6
|
+
default(): void;
|
|
7
|
+
right(): void;
|
|
8
|
+
}>();
|
|
9
|
+
|
|
10
|
+
const sidebar = useSidebarStore();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<header
|
|
15
|
+
class="flex h-14 shrink-0 items-center gap-3 border-b border-muted bg-elevated/60 px-4 backdrop-blur-sm"
|
|
16
|
+
>
|
|
17
|
+
<UButton
|
|
18
|
+
v-if="!sidebar.drawer"
|
|
19
|
+
variant="ghost"
|
|
20
|
+
color="neutral"
|
|
21
|
+
icon="i-lucide-panel-left-open"
|
|
22
|
+
size="sm"
|
|
23
|
+
@click="sidebar.toggleDrawer()"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<slot name="left" />
|
|
27
|
+
|
|
28
|
+
<div class="flex-1">
|
|
29
|
+
<slot />
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="flex items-center gap-1.5">
|
|
33
|
+
<slot name="right" />
|
|
34
|
+
</div>
|
|
35
|
+
</header>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineOptions({ name: "MapoDefaultLayout" });
|
|
3
|
+
|
|
4
|
+
defineSlots<{
|
|
5
|
+
default(): void;
|
|
6
|
+
"sidebar:logo"(): void;
|
|
7
|
+
"sidebar:nav-top"(): void;
|
|
8
|
+
"sidebar:nav-bottom"(): void;
|
|
9
|
+
"sidebar:footer"(): void;
|
|
10
|
+
"topbar:left"(): void;
|
|
11
|
+
topbar(): void;
|
|
12
|
+
"topbar:right"(): void;
|
|
13
|
+
}>();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div class="flex h-full overflow-hidden bg-default">
|
|
18
|
+
<MapoSidebar>
|
|
19
|
+
<template v-if="$slots['sidebar:logo']" #logo>
|
|
20
|
+
<slot name="sidebar:logo" />
|
|
21
|
+
</template>
|
|
22
|
+
<template v-if="$slots['sidebar:nav-top']" #nav-top>
|
|
23
|
+
<slot name="sidebar:nav-top" />
|
|
24
|
+
</template>
|
|
25
|
+
<template v-if="$slots['sidebar:nav-bottom']" #nav-bottom>
|
|
26
|
+
<slot name="sidebar:nav-bottom" />
|
|
27
|
+
</template>
|
|
28
|
+
<template v-if="$slots['sidebar:footer']" #footer>
|
|
29
|
+
<slot name="sidebar:footer" />
|
|
30
|
+
</template>
|
|
31
|
+
</MapoSidebar>
|
|
32
|
+
|
|
33
|
+
<div class="flex flex-1 flex-col min-w-0 overflow-hidden">
|
|
34
|
+
<MapoTopbar>
|
|
35
|
+
<template v-if="$slots['topbar:left']" #left>
|
|
36
|
+
<slot name="topbar:left" />
|
|
37
|
+
</template>
|
|
38
|
+
<template v-if="$slots['topbar']" #default>
|
|
39
|
+
<slot name="topbar" />
|
|
40
|
+
</template>
|
|
41
|
+
<template v-if="$slots['topbar:right']" #right>
|
|
42
|
+
<slot name="topbar:right" />
|
|
43
|
+
</template>
|
|
44
|
+
</MapoTopbar>
|
|
45
|
+
|
|
46
|
+
<main class="flex-1 overflow-y-auto">
|
|
47
|
+
<slot />
|
|
48
|
+
</main>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<MapoRootComponents />
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare module "#app" {
|
|
2
|
+
interface PageMeta {
|
|
3
|
+
/** Human-readable label shown in sidebar/navigation. Pages without a label are excluded from the menu. */
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Icon name used in sidebar/navigation (e.g. 'i-lucide-user-check'). */
|
|
6
|
+
icon?: string;
|
|
7
|
+
/** Hide this page from automatic sidebar/navigation generation even if it has a label. */
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
/** Path of the parent route for nested menu grouping. */
|
|
10
|
+
parent?: string;
|
|
11
|
+
/** Pin this page to the sidebar footer instead of the main navigation list. */
|
|
12
|
+
sidebarFooter?: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module "vue-router" {
|
|
17
|
+
/**
|
|
18
|
+
* Route meta extension mirrored from Nuxt `PageMeta` so runtime route records
|
|
19
|
+
* keep the same navigation-related fields after compilation.
|
|
20
|
+
*/
|
|
21
|
+
interface RouteMeta {
|
|
22
|
+
/** Human-readable label shown in sidebar/navigation. */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Icon name used in sidebar/navigation (e.g. 'i-lucide-user-check'). */
|
|
25
|
+
icon?: string;
|
|
26
|
+
/** Hide this page from automatic sidebar/navigation generation. */
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
/** Path of the parent route for nested menu grouping. */
|
|
29
|
+
parent?: string;
|
|
30
|
+
/** Pin this page to the sidebar footer instead of the main navigation list. */
|
|
31
|
+
sidebarFooter?: boolean;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare global {
|
|
36
|
+
/**
|
|
37
|
+
* Nuxt compile-time macro used in page SFCs to define route metadata.
|
|
38
|
+
*
|
|
39
|
+
* This declaration provides package-local type support when Nuxt-generated
|
|
40
|
+
* `#imports` types are not available to the TypeScript language service.
|
|
41
|
+
*/
|
|
42
|
+
const definePageMeta: (meta: import("#app").PageMeta) => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { version } from "../../../package.json";
|
|
3
|
+
|
|
4
|
+
definePageMeta({ layout: "mapo-default" });
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="flex h-full items-center justify-center p-8">
|
|
9
|
+
<div class="space-y-4 rounded-lg border bg-white p-8 text-center shadow">
|
|
10
|
+
<h1 class="text-2xl font-bold">Mapo UI Kit</h1>
|
|
11
|
+
<p class="text-gray-600">Version {{ version }}</p>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/** Defines a single column in the list table. */
|
|
2
|
+
export interface ListColumn<T = Record<string, unknown>> {
|
|
3
|
+
/** Property name on the row object. Must be a key of `T`. */
|
|
4
|
+
key: keyof T & string;
|
|
5
|
+
label: string;
|
|
6
|
+
sortable?: boolean;
|
|
7
|
+
/** CSS class applied to the `<td>` cell. */
|
|
8
|
+
class?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** A single selectable option inside a filter dropdown. */
|
|
12
|
+
export interface FilterChoice {
|
|
13
|
+
text: string;
|
|
14
|
+
value: unknown;
|
|
15
|
+
icon?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Describes a filter control rendered in the list filter bar. */
|
|
19
|
+
export interface FilterDescriptor {
|
|
20
|
+
/** Query parameter name sent to the backend (e.g. `"status"`, `"date_range"`). */
|
|
21
|
+
value: string;
|
|
22
|
+
/** Label displayed in the filter dropdown. */
|
|
23
|
+
text: string;
|
|
24
|
+
choices?: FilterChoice[];
|
|
25
|
+
datepicker?: boolean;
|
|
26
|
+
/** When `true`, multiple choices can be selected simultaneously (default: `false` → exclusive). */
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
/** Default value applied on mount (same format as `choice.value`; comma-separated for multi). */
|
|
29
|
+
defaultChoice?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** A filter descriptor with its current active selection state. */
|
|
33
|
+
export interface ActiveFilter extends FilterDescriptor {
|
|
34
|
+
active: FilterChoice[];
|
|
35
|
+
dates?: string[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Context passed to a bulk action handler. */
|
|
39
|
+
export interface ActionContext<T = Record<string, unknown>> {
|
|
40
|
+
/** Selected row objects, or `null` when the "select all" mode is active. */
|
|
41
|
+
selection: T[] | null;
|
|
42
|
+
selectionQuery: URLSearchParams;
|
|
43
|
+
lookup: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Describes a bulk action available in the list actions toolbar. */
|
|
47
|
+
export interface ActionDescriptor<T = Record<string, unknown>> {
|
|
48
|
+
label: string;
|
|
49
|
+
handler: (ctx: ActionContext<T>) => Promise<unknown>;
|
|
50
|
+
permissions?: string | string[];
|
|
51
|
+
/** Action is available when individual rows are selected. Default: `true`. */
|
|
52
|
+
handleMultiple?: boolean;
|
|
53
|
+
/** Action is available when the "select all" mode is active. Default: `false`. */
|
|
54
|
+
handleAll?: boolean;
|
|
55
|
+
/** When true, Apply and confirm buttons are rendered with a destructive/error color. */
|
|
56
|
+
dangerous?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** A single tab item used in the list tab bar to filter by a fixed value. */
|
|
60
|
+
export interface ListTabItem {
|
|
61
|
+
text: string;
|
|
62
|
+
value: string;
|
|
63
|
+
count?: number;
|
|
64
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [1.0.0-alpha.9](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-02-08)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* **datefield:** graphic fix for datefield ([2cf2a8f](https://github.com/lotrekagency/mapo/commit/2cf2a8fe4a18717c6a1b1589e9fbc10273399fb5))
|
|
12
|
-
* **fksfield:** added fks alias to field ([d5b5ecf](https://github.com/lotrekagency/mapo/commit/d5b5ecf9f7bc7b270a8a2f22940281ef8453fb78))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Features
|
|
16
|
-
|
|
17
|
-
* **detail:** added possibility to remove group icon in detail field configuration ([a8f63e0](https://github.com/lotrekagency/mapo/commit/a8f63e00a03b5467db057f6ab813621e480eaeae))
|
|
18
|
-
* **detailfield:** added hidden label to simplify external graphic personalization of fields ([4e1de0d](https://github.com/lotrekagency/mapo/commit/4e1de0d9a256241ce010daaf058b6282c7279808))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# [1.0.0-alpha.8](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-01-23)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* **detail:** fix lang switch crop in small devices ([fc05f1e](https://github.com/lotrekagency/mapo/commit/fc05f1e437c8c9318354a95c9edd19fb12e0cff9))
|
|
30
|
-
* **detailfield:** fix default prop handling ([b3297f1](https://github.com/lotrekagency/mapo/commit/b3297f10a1ca2bf8db1690c6dcf680baaf96f71b))
|
|
31
|
-
* **langs:** fixed lang detection from model api ([1653740](https://github.com/lotrekagency/mapo/commit/165374080e91571e89b1fc48f43983b681b1ffc0))
|
|
32
|
-
* **list:** remove quickadd if user cannot add ([aef919e](https://github.com/lotrekagency/mapo/commit/aef919ee94c71475b812378126369233df09d055))
|
|
33
|
-
* **login:** fix bad handling of login call ([2d73570](https://github.com/lotrekagency/mapo/commit/2d73570720c91cf8922ed750adeb8cf7f89360c7))
|
|
34
|
-
* **m2m:** let v-model be an object to let field manage fk ([5500870](https://github.com/lotrekagency/mapo/commit/550087025235adf5016ea9340090b3ce1278e126))
|
|
35
|
-
* **mediamanager:** fix linked models ([35611ed](https://github.com/lotrekagency/mapo/commit/35611ed104643c72d5317beef3349928eed09ee8))
|
|
36
|
-
* **permissions:** collect route middleware info directly from ([e1937cc](https://github.com/lotrekagency/mapo/commit/e1937cc835cd4d331a43c4bbf9581c16bfc03f41))
|
|
37
|
-
* **quickedit:** fix close button position ([8e15d47](https://github.com/lotrekagency/mapo/commit/8e15d47c6dd69dfbb2cbf3f70f2fb342202bf9a2))
|
|
38
|
-
* **quickedit:** temporary disable patch diff to fix translation problems ([1ec4b04](https://github.com/lotrekagency/mapo/commit/1ec4b04723d2d25ffdabfb5e5e69dd7c66735fe4))
|
|
39
|
-
* **sidebar:** fix footer menu auth ([6a986ba](https://github.com/lotrekagency/mapo/commit/6a986ba6def87a341e2bf670278716811336c725))
|
|
40
|
-
* **snackbar:** fix snack color ([9fcc053](https://github.com/lotrekagency/mapo/commit/9fcc053a1a52c3970706dcb4393be3aec0aa8c55))
|
|
41
|
-
* fix m2mfield for null values ([fbdf045](https://github.com/lotrekagency/mapo/commit/fbdf0456660b4cc6f46ac7d0ca40278451e87059))
|
|
42
|
-
* **uikit:** fix color mismatch in some components ([06cc23c](https://github.com/lotrekagency/mapo/commit/06cc23c8835c891e9ff15d277ba8bc4e54f1b8b8))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Features
|
|
46
|
-
|
|
47
|
-
* **detail:** added permission logics to detail component ([475d063](https://github.com/lotrekagency/mapo/commit/475d063ac1979380ec64afc057786a6b2ec142ba))
|
|
48
|
-
* **detail:** added permission logics to list actions component ([eebe25a](https://github.com/lotrekagency/mapo/commit/eebe25a8e0ef6f7d89dd7e1eca762d65ecc090a0))
|
|
49
|
-
* **detail:** added permission logics to list component ([83343ca](https://github.com/lotrekagency/mapo/commit/83343ca4038002d4528de0ec5d746c4420d5d157))
|
|
50
|
-
* **detail:** added permission logics to list head component ([95a37a2](https://github.com/lotrekagency/mapo/commit/95a37a2139726eed85824cf425dd15022d37bf88))
|
|
51
|
-
* **detail:** show backend error messages on model update ([a456a81](https://github.com/lotrekagency/mapo/commit/a456a81610b7b95e231f33cc35f2c87fb9a80071))
|
|
52
|
-
* **fields:** added readonly prop to date custom field ([682bab5](https://github.com/lotrekagency/mapo/commit/682bab59ce88a0dbfa1be644103ccf8b0cb6bf41))
|
|
53
|
-
* **fields:** added readonly prop to various custom fields ([ed45190](https://github.com/lotrekagency/mapo/commit/ed45190cec6250bb26e91b26dc570e07e0fd800c))
|
|
54
|
-
* **m2m:** added autocomplete by default ([1956427](https://github.com/lotrekagency/mapo/commit/19564271f71a289d840a3e1200098e911935da4f))
|
|
55
|
-
* **m2m:** autodisable chips if multiple = false ([5dcc88d](https://github.com/lotrekagency/mapo/commit/5dcc88d671b4c06bd378573a27c9bc1b44b4b736))
|
|
56
|
-
* **m2m:** restyle m2m field ([bb49f3d](https://github.com/lotrekagency/mapo/commit/bb49f3dbf9ba3d6fb2a78e69113645fdde2e1cce))
|
|
57
|
-
* **M2m:** added max height ([d32a383](https://github.com/lotrekagency/mapo/commit/d32a3831f903d20924408536b2921fba3f5e683e))
|
|
58
|
-
* **quickedit:** add close button on hover ([c365f51](https://github.com/lotrekagency/mapo/commit/c365f515dbb2edbf9d964c63b170bf3247309d70))
|
|
59
|
-
* **quickedit:** added non field errors ([4b63e73](https://github.com/lotrekagency/mapo/commit/4b63e734818a0d690831c39ccbe73403400dffd4))
|
|
60
|
-
* **quickedit:** merge detail component logics in to quickedit ([691f610](https://github.com/lotrekagency/mapo/commit/691f610b156f58a5d30598d89bf06425d90451d8))
|
|
61
|
-
* **sidebar:** hide not navigable entries depending on user permissions ([349dd6c](https://github.com/lotrekagency/mapo/commit/349dd6c102cdf80d25de4db988f1ccf29047dfcd))
|
|
62
|
-
* **uikit:** more consistent ui style ([54c464f](https://github.com/lotrekagency/mapo/commit/54c464f0c8ea86d87e5ae2004b7744bb4126ebba))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
# [1.0.0-alpha.7](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-01-13)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
|
-
* **detail:** fix v-card content margin on detail component ([f07d5c1](https://github.com/lotrekagency/mapo/commit/f07d5c1581e71407e79fce95c8dc10109196ed0b))
|
|
74
|
-
* **detail:** remove lang swtch if only one lang is selected ([35cf58a](https://github.com/lotrekagency/mapo/commit/35cf58aa17ce4350f983643a8182fdf795dd4abb))
|
|
75
|
-
* **detail:** remove v-container from detail component to fix sizing ([2947652](https://github.com/lotrekagency/mapo/commit/29476528a6c13325c4da49a3e2aa842302e6bd04))
|
|
76
|
-
* **list:** fix search box for very small displays ([edf7287](https://github.com/lotrekagency/mapo/commit/edf7287c6974b8bb1412d9e0fb8bc4b1f1b48480))
|
|
77
|
-
* **media:** fix reset on media dialog ([3727502](https://github.com/lotrekagency/mapo/commit/3727502b59c9fa809b4dbc139b0cd01198008a18))
|
|
78
|
-
* **media:** reset media dialog after close ([5aded79](https://github.com/lotrekagency/mapo/commit/5aded794dbfb5482119db45bfb975e7241f86f15))
|
|
79
|
-
* **mediamanager:** better display of folder path in media manager ([bdc5692](https://github.com/lotrekagency/mapo/commit/bdc569264164e61af1c210aeb1c5da9d5b21220a))
|
|
80
|
-
* **mediamanager:** better ui for selection ([2307d38](https://github.com/lotrekagency/mapo/commit/2307d38a5a4e0fe838b5f9173692e132fe69e3be))
|
|
81
|
-
* **mediamanager:** fix backbutton background in media editor ([315d9df](https://github.com/lotrekagency/mapo/commit/315d9df2a9021ee1ea1328b4d959f0fd5f652f47))
|
|
82
|
-
* **mediamanager:** fix corb errors loading image preview in mediamanager ([7f34e34](https://github.com/lotrekagency/mapo/commit/7f34e34dfdfe4380d1704c0c8dda0a507676aeae))
|
|
83
|
-
* **mediamanager:** fix DOMException: The play() request was interrupted ([89a2a3e](https://github.com/lotrekagency/mapo/commit/89a2a3e1bb47178245ca7d131bdfedbcbcc41c17))
|
|
84
|
-
* **mediamanager:** fix editor opening ([3888652](https://github.com/lotrekagency/mapo/commit/3888652b0441cd17f0468db57fd895afd97a3625))
|
|
85
|
-
* **mediamanager:** make editing animation smooth ([81bd34b](https://github.com/lotrekagency/mapo/commit/81bd34b04d0d561317a1928dcdc796adc539350b))
|
|
86
|
-
* **mediamanager:** minor fixes to mediamanager ui ([a7b6089](https://github.com/lotrekagency/mapo/commit/a7b6089c38af9a6079bd8bebfeddd2dcff0b2c75))
|
|
87
|
-
* **mediamanager:** prevent media type check fail if no media type present ([2ee88fe](https://github.com/lotrekagency/mapo/commit/2ee88fed81d527434cf854e68ff8210247b2cf39))
|
|
88
|
-
* **mediamanagerdialog:** better positioning on small device of media manager dialog content ([9da147c](https://github.com/lotrekagency/mapo/commit/9da147c7e2d356da7f74e2edcbf05c5dafcbd94d))
|
|
89
|
-
* **sidebar:** fix nested SidebarListItems not triggering active class when the list-item is not a link ([9e92971](https://github.com/lotrekagency/mapo/commit/9e929710e74946c1470c29c007d780a1e712170b))
|
|
90
|
-
* **tinymce:** added missing al text to image tag ([55a3926](https://github.com/lotrekagency/mapo/commit/55a39261b3e449381d974eaa1b328a46dffb6f51))
|
|
91
|
-
* **uikit:** fix some content disposition in main layout ([1e9c79b](https://github.com/lotrekagency/mapo/commit/1e9c79b6b80d781c5aded10800c9df255b6ef8e8))
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Features
|
|
95
|
-
|
|
96
|
-
* **media:** added mime type filtering ([da01658](https://github.com/lotrekagency/mapo/commit/da016585d450143f6419d98a7f53ee5ec8cf7358))
|
|
97
|
-
* **media:** added search input ([a1ac6ae](https://github.com/lotrekagency/mapo/commit/a1ac6aef8d28a248431cd80955c5a1446f41f608))
|
|
98
|
-
* **media:** selection prop 2-way binded ([e87f21c](https://github.com/lotrekagency/mapo/commit/e87f21c085e0cf0a61a99025d9f5e7970285ab72))
|
|
99
|
-
* **mediafield:** update media field to handle files ([5158108](https://github.com/lotrekagency/mapo/commit/51581086d96e09af31471721f0ea32df3fe58e09))
|
|
100
|
-
* **mediamanager:** added audio playback for audio files ([6aec9f7](https://github.com/lotrekagency/mapo/commit/6aec9f7b749c5002832fd194d565742b99a4b700))
|
|
101
|
-
* **mediamanager:** added icon for media that are not images ([d77f17b](https://github.com/lotrekagency/mapo/commit/d77f17b2d77db7bf4dc387be0b6d3892a4772b02))
|
|
102
|
-
* **mediamanager:** added link to img shortcut button in editor ([1dd446f](https://github.com/lotrekagency/mapo/commit/1dd446f76df1d3a7e71fdefb81ad60de1fdb4e93))
|
|
103
|
-
* **mediamanager:** added the possibility to change the media file using same url of the old file ([f21f383](https://github.com/lotrekagency/mapo/commit/f21f383b6f3f0176f806688a50ebff93a53d3203))
|
|
104
|
-
* **mediamanager:** added video preview for video mime types ([55fc423](https://github.com/lotrekagency/mapo/commit/55fc423c03265fb2c17bc42f1be0ba511928267c))
|
|
105
|
-
* **mediamanager:** many ui enhancements for mediamanager ([30ab3ff](https://github.com/lotrekagency/mapo/commit/30ab3ff89dc0ff3b9a210cfd32e2a874dfc073a6))
|
|
106
|
-
* **mediamanager:** media folders manager graphic enhancements ([0e8e7ec](https://github.com/lotrekagency/mapo/commit/0e8e7ec35482d043c42c88c38c9d32c8fa8e54e9))
|
|
107
|
-
* **sidebar:** added spidermenu for nested routes ([084029d](https://github.com/lotrekagency/mapo/commit/084029de717f29412b045fe703c4cfbd19353400))
|
|
108
|
-
* **tinymce:** added callback to manage video and documents insertions with mapomedia plugin ([b4e6f63](https://github.com/lotrekagency/mapo/commit/b4e6f6362e025010614e7ca8351a9d1e3af08650))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# [1.0.0-alpha.6](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2021-12-26)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Bug Fixes
|
|
118
|
-
|
|
119
|
-
* **uikit:** fix sidebar footer items not collapsing on mini variant ([04c510e](https://github.com/lotrekagency/mapo/commit/04c510ee87bd7b74161725c366e2eac2bd3efe9f))
|
|
120
|
-
* **uikit:** fix sidebar items not collapsing on mini variant ([67a9524](https://github.com/lotrekagency/mapo/commit/67a9524b17b6cbdf455b8e6f56f7cc0674b1dbed))
|
|
121
|
-
* various css fixes ([658c363](https://github.com/lotrekagency/mapo/commit/658c3636e869f0a2bd53efe41295cf87d6af3962))
|
|
122
|
-
* **list:** fix v-menu position on large screens ([41bd08d](https://github.com/lotrekagency/mapo/commit/41bd08d36d85e685a755c7e0de97bbb05a24c03d))
|
|
123
|
-
* **list:** fixed v-menu filter positioning ([e99848e](https://github.com/lotrekagency/mapo/commit/e99848e0beb2df124db1ba9968696bbe8ee7b683))
|
|
124
|
-
* **list:** fixed v-menu position for filters ([cb95260](https://github.com/lotrekagency/mapo/commit/cb9526085d536ff7b468316b1d2571c7ae9509d8))
|
|
125
|
-
* **list:** load page from query params ([88dea98](https://github.com/lotrekagency/mapo/commit/88dea98063cdab79c9c518fe0e3bf8d3c90f0161))
|
|
126
|
-
* **list:** refactoring for injected elements and FE pagination ([f9c968e](https://github.com/lotrekagency/mapo/commit/f9c968e0edf87654df60781d7d2d465d15e40ab9))
|
|
127
|
-
* **list:** removed lock to BE pagination if items in list are less than itemsPerPage ([3fe34e0](https://github.com/lotrekagency/mapo/commit/3fe34e0d1438a0980e8819070f9b158ad3b6e0b8))
|
|
128
|
-
* **uikit:** better handle detail component lang switches ([5297e49](https://github.com/lotrekagency/mapo/commit/5297e4956536b382600c250f5c797c8db5e58f84))
|
|
129
|
-
* **uikit:** fix detailfield not reading conf value changes ([5628268](https://github.com/lotrekagency/mapo/commit/5628268e4e78201523eba60adaf17286dfb38c8b))
|
|
130
|
-
* **uikit:** fix lang changhe in detail component ([32494f7](https://github.com/lotrekagency/mapo/commit/32494f7d094f7e9cebc14f7524ad716eb89fd6d7))
|
|
131
|
-
* **uikit:** fix positioning of element in list component and subcomponents ([887c3b6](https://github.com/lotrekagency/mapo/commit/887c3b6aae52d1a3494ebcc01f0f155f21373f9c))
|
|
132
|
-
* **uikit:** set endpoint to default null in detail field ([5c9296c](https://github.com/lotrekagency/mapo/commit/5c9296c81f8667319699e933f528c4c05a1f541d))
|
|
133
|
-
* fixed v-model with datepicker filter ([ef4634e](https://github.com/lotrekagency/mapo/commit/ef4634e8ad0719ec2991a8c40a87191c0e32d7ec))
|
|
134
|
-
* load saved date range into datepicker ([eb94dd5](https://github.com/lotrekagency/mapo/commit/eb94dd5686b9fed16e0f39bf122c767d8bd1017b))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### Features
|
|
138
|
-
|
|
139
|
-
* **list:** added support to offline items ([495fd1f](https://github.com/lotrekagency/mapo/commit/495fd1f30cd0adc228b48ca4384b9df572e69216))
|
|
140
|
-
* **list:** handle multisort ([41feb88](https://github.com/lotrekagency/mapo/commit/41feb88ec15be5cc9afbcdf3d2dea23142301153))
|
|
141
|
-
* **uikit:** add possibility to remove icon from sidebar ([106d85f](https://github.com/lotrekagency/mapo/commit/106d85f576cdc9e6438b48fa8e695315cac2262b))
|
|
142
|
-
* **uikit:** added langChange event to detail component ([70d3430](https://github.com/lotrekagency/mapo/commit/70d3430694e67dfcd65539a3d474847123e05db5))
|
|
143
|
-
* **uikit:** added possibility to change detail component current lang fromprop ([1993aa7](https://github.com/lotrekagency/mapo/commit/1993aa74a66768eea319f41a41878916544adcbb))
|
|
144
|
-
* **uikit:** added possibility to override field container class in detail component with key class in field configuration ([afe1e52](https://github.com/lotrekagency/mapo/commit/afe1e522683d08c5e63650e55dbe2f9a9404e681))
|
|
145
|
-
* **uikit:** added seopreview field ([03e52fe](https://github.com/lotrekagency/mapo/commit/03e52fed08e60c8b43226856a8d05d4c724ad9b2))
|
|
146
|
-
* **uikit:** added v-model to Detail Component, now you can bind the payload externally from detail field. ([a50b082](https://github.com/lotrekagency/mapo/commit/a50b08261d6b8eba3e5b6f1ea2f1f4bb0d591b8e))
|
|
147
|
-
* **uikit:** display errors on tinymce component also with red label shake animation ([2c9e158](https://github.com/lotrekagency/mapo/commit/2c9e158090ee1f770518ad755437171a1b16afbd))
|
|
148
|
-
* **uikit:** newsidebar built with vuetify components to better support theming ([9cc237f](https://github.com/lotrekagency/mapo/commit/9cc237fa7dcfe193edc0fd9cb90e3bbbb103931d))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
# [1.0.0-alpha.5](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-12-20)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
### Bug Fixes
|
|
158
|
-
|
|
159
|
-
* **uikit:** fix list component http call with no pagination at all ([ebe4b61](https://github.com/lotrekagency/mapo/commit/ebe4b617f3be5ccb70c10c041c81868e9ee6b828))
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Features
|
|
163
|
-
|
|
164
|
-
* added search field on list component ([0c845e2](https://github.com/lotrekagency/mapo/commit/0c845e26e30afed66b351cc7a0f940f9a20e0943))
|
|
165
|
-
* select all option on list component ([588d2c5](https://github.com/lotrekagency/mapo/commit/588d2c57ca5fd36477cf1ee3c33e2289eb979acf))
|
|
166
|
-
* slot for selected items' counter ([0551b5e](https://github.com/lotrekagency/mapo/commit/0551b5e916f25fc740a0cae58c5548ab0c6e35ff))
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
# [1.0.0-alpha.4](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-10-25)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Bug Fixes
|
|
176
|
-
|
|
177
|
-
* Display corret version of mapo in index page ([22ae4cf](https://github.com/lotrekagency/mapo/commit/22ae4cf55f1f3c6fcda64b085fe3c13c416bafb8))
|
package/LICENSE.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Lotrek 2021
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
package/assets/mixins.scss
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// To handle vertical margin spacing, parameter is a string
|
|
3
|
-
// supported values: s, xs, m, l, xl
|
|
4
|
-
// example: @include spacing(m);
|
|
5
|
-
// output: margin: 32px 0;
|
|
6
|
-
@mixin spacing($size) {
|
|
7
|
-
@if $size=="xs" {
|
|
8
|
-
margin: 0.5rem 0;
|
|
9
|
-
}
|
|
10
|
-
@if $size=="s" {
|
|
11
|
-
margin: 1rem 0;
|
|
12
|
-
}
|
|
13
|
-
@if $size=="m" {
|
|
14
|
-
margin: 2rem 0;
|
|
15
|
-
}
|
|
16
|
-
@if $size=="l" {
|
|
17
|
-
margin: 3rem 0;
|
|
18
|
-
}
|
|
19
|
-
@if $size=="xl" {
|
|
20
|
-
margin: 4rem 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
package/assets/variables.scss
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Ref: https://github.com/nuxt-community/vuetify-module#customvariables
|
|
2
|
-
//
|
|
3
|
-
// The variables you want to modify
|
|
4
|
-
// $font-size-root: 20px;
|
|
5
|
-
|
|
6
|
-
// Colors
|
|
7
|
-
$black: #000;
|
|
8
|
-
$white: #fff;
|
|
9
|
-
$b-1: #333;
|
|
10
|
-
$b-2: #262626;
|
|
11
|
-
$w-1: #e5e5e5;
|
|
12
|
-
$w-2: #EAEAEA;
|
|
13
|
-
$w-3: #b3b3b3;
|
|
14
|
-
$g-1: #309A00;
|
|
15
|
-
$r-1: #FF5252;
|
|
16
|
-
|
|
17
|
-
// Sizes
|
|
18
|
-
// Using rem units instead of variables
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<!-- Activator slot, this follows the logics of <a href="https://vuetifyjs.com/en/api/v-dialog/#api-slots" target="__blank">vuetify activator</a>.-->
|
|
4
|
-
<slot v-bind="{ on, attrs: options.attrs }" name="activator"></slot>
|
|
5
|
-
<v-dialog v-model="dialog" v-bind="{ width: 350, ...options.attrs }">
|
|
6
|
-
<v-card v-bind="options.attrs">
|
|
7
|
-
<v-card-title>{{ options.title }}</v-card-title>
|
|
8
|
-
<v-card-text class="headline">{{ options.question }}</v-card-text>
|
|
9
|
-
<v-card-actions>
|
|
10
|
-
<v-spacer></v-spacer>
|
|
11
|
-
<v-btn v-bind="dismissAttrs" @click="close">{{ dismissTxt }}</v-btn>
|
|
12
|
-
<v-btn @click="accept" v-bind="approveAttrs">{{ approveTxt }}</v-btn>
|
|
13
|
-
</v-card-actions>
|
|
14
|
-
</v-card>
|
|
15
|
-
</v-dialog>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
<script>
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* This component is embedded in the default layout.
|
|
22
|
-
* It's a dynamic dialog which is used to ask the user for confirmation before performing an operation.<br>
|
|
23
|
-
* For example: `Do you really want to delete the content 'abcd'?` <br><br>
|
|
24
|
-
* It can be globally accessed with [this.$mapo.$confirm](/core/#confirm)
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
export default {
|
|
28
|
-
name: "ConfirmDialog",
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
response: null,
|
|
32
|
-
dialog: false,
|
|
33
|
-
optionsBk: null,
|
|
34
|
-
options: {
|
|
35
|
-
title: this.title,
|
|
36
|
-
question: this.question,
|
|
37
|
-
dismissButton: this.dismissButton,
|
|
38
|
-
approveButton: this.approveButton,
|
|
39
|
-
attrs: { ...this.$attrs }
|
|
40
|
-
},
|
|
41
|
-
on: {
|
|
42
|
-
click: event => {
|
|
43
|
-
event.preventDefault();
|
|
44
|
-
event.stopPropagation();
|
|
45
|
-
this.dialog = !this.dialog;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
props: {
|
|
51
|
-
// v-model boolean that controll the status of the dialog (opened/closed)
|
|
52
|
-
value: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
// The text in the body of the dialog.
|
|
57
|
-
question: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "Are you sure of what you are doing?"
|
|
60
|
-
},
|
|
61
|
-
// The title of the dialog.
|
|
62
|
-
title: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: "Confirm"
|
|
65
|
-
},
|
|
66
|
-
// The text plus props passed to the dismiss Button.
|
|
67
|
-
dismissButton: {
|
|
68
|
-
// `{ text: String, attrs: Object }`
|
|
69
|
-
type: Object,
|
|
70
|
-
default: () => ({ text: "Cancel", attrs: { text: true } })
|
|
71
|
-
},
|
|
72
|
-
// The text plus props passed to the approve Button.
|
|
73
|
-
approveButton: {
|
|
74
|
-
// `{ text: String, attrs: Object }`
|
|
75
|
-
type: Object,
|
|
76
|
-
default: () => ({ text: "Ok", attrs: { color: "primary", text: true } })
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
computed: {
|
|
80
|
-
approveTxt() {
|
|
81
|
-
return this.options.approveButton?.text || "Ok";
|
|
82
|
-
},
|
|
83
|
-
approveAttrs() {
|
|
84
|
-
return this.options.approveButton?.attrs || {};
|
|
85
|
-
},
|
|
86
|
-
dismissTxt() {
|
|
87
|
-
return this.options.dismissButton?.text || "Cancel";
|
|
88
|
-
},
|
|
89
|
-
dismissAttrs() {
|
|
90
|
-
return this.options.dismissButton?.attrs || {};
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
watch: {
|
|
94
|
-
value(val) {
|
|
95
|
-
this.dialog = val;
|
|
96
|
-
},
|
|
97
|
-
dialog(val) {
|
|
98
|
-
// Fired when the v-model changes.
|
|
99
|
-
// @arg Emits `true|false` based on the dialog status `open|close`.
|
|
100
|
-
this.$emit("input", val);
|
|
101
|
-
if (val) {
|
|
102
|
-
// Fired when the dialog opens
|
|
103
|
-
this.$emit("open")
|
|
104
|
-
} else {
|
|
105
|
-
// Fired when the dialog closes
|
|
106
|
-
this.$emit("close")
|
|
107
|
-
}
|
|
108
|
-
if (!val && this.resolve) {
|
|
109
|
-
this.resolve(null);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
methods: {
|
|
114
|
-
/**
|
|
115
|
-
* @vuese
|
|
116
|
-
* This open the Confirm dialog component showing to the user a question. Returns a promise with the user response.
|
|
117
|
-
* See [this.$mapo.$confirm.open](/core/#confirm)
|
|
118
|
-
* @arg The payload containing the information to show to the user in the confirm dialog.
|
|
119
|
-
*/
|
|
120
|
-
open(options) {
|
|
121
|
-
this.optionsBk = { ...this.options };
|
|
122
|
-
this.options = { ...this.options, ...options };
|
|
123
|
-
this.dialog = true;
|
|
124
|
-
return new Promise((resolve, reject) => {
|
|
125
|
-
this.resolve = resolve;
|
|
126
|
-
this.reject = reject;
|
|
127
|
-
});
|
|
128
|
-
},
|
|
129
|
-
/**
|
|
130
|
-
* @vuese
|
|
131
|
-
* This forces the dialog to close, giving a positive response.
|
|
132
|
-
* See [this.$mapo.$confirm.close](/core/#confirm)
|
|
133
|
-
*/
|
|
134
|
-
accept() {
|
|
135
|
-
this.response = true;
|
|
136
|
-
this.close();
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* @vuese
|
|
140
|
-
* This forces the dialog to close, giving a positive response.
|
|
141
|
-
* See [this.$mapo.$confirm.accept](/core/#confirm)
|
|
142
|
-
*/
|
|
143
|
-
close() {
|
|
144
|
-
if (this.resolve) {
|
|
145
|
-
this.resolve(this.response);
|
|
146
|
-
}
|
|
147
|
-
this.dialog = false;
|
|
148
|
-
this.options = { ...this.optionsBk };
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
</script>
|