@mapomodule/uikit 1.0.0-alpha.15 → 1.0.0-alpha.16
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/CHANGELOG.md +29 -0
- package/components/Detail/Detail.vue +15 -5
- package/components/List/List.vue +3 -1
- package/components/List/ListQuickEdit.vue +6 -1
- package/components/List/ListTable.vue +15 -9
- package/components/MediaManager/MediaFolders.vue +10 -3
- package/components/MediaManager/MediaManager.vue +15 -10
- package/components/MediaManager/MediaManagerDialog.vue +1 -1
- package/components/MediaManager/MediaUploader.vue +1 -1
- package/components/ThemeToggle.vue +13 -0
- package/components/fields/FileField.vue +4 -4
- package/components/fields/Repeater.vue +23 -15
- package/components/fields/wygEditor/wygEditor.vue +62 -5
- package/components/layout/Topbar/Topbar.vue +5 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,35 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.16](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-04-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **detail:** fix reference errors in detail component ([f5c3fb2](https://github.com/lotrekagency/mapo/commit/f5c3fb2eefb565ad4a0e58b8d899b86f683caa24))
|
|
12
|
+
* **list:** fix offlineMode data table reordering ([55eb55f](https://github.com/lotrekagency/mapo/commit/55eb55f9fc6b13c7052f946ead68a860cde89e06))
|
|
13
|
+
* **mediamanager:** fix dialog style ([732d748](https://github.com/lotrekagency/mapo/commit/732d74813d81dffc13530aa5a6c8ebf70513a6ef))
|
|
14
|
+
* **mediamanager:** fix media folder style ([0ac29c8](https://github.com/lotrekagency/mapo/commit/0ac29c84efbce03f70ae81cf7fb9d264fac40c4c))
|
|
15
|
+
* prevent filefield bad mount ([cc84540](https://github.com/lotrekagency/mapo/commit/cc84540bd9b93eba95fb8fb92a0862ddeedb0684))
|
|
16
|
+
* **repeater:** fix reordering animation ([fe192fe](https://github.com/lotrekagency/mapo/commit/fe192fe42c44f7f4985d3ba430d5b3dd2d1da692))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* Added mapo integrations module! 🎉 ([76d2c80](https://github.com/lotrekagency/mapo/commit/76d2c805245b4cf49a33696339da52e4c17f4053))
|
|
22
|
+
* **quick-edit:** added possibility to customize dialog props of ListQuickEdit ([f3028c0](https://github.com/lotrekagency/mapo/commit/f3028c0f1d5d5f4a93962158d55bcef3afc46dad))
|
|
23
|
+
* **repeater:** added readonly state to repeater field ([d2aa979](https://github.com/lotrekagency/mapo/commit/d2aa979ffb653e9d53c066fb321b8db679c3b51b))
|
|
24
|
+
* **theme:** added dark/light mode switcher ([1c45cb1](https://github.com/lotrekagency/mapo/commit/1c45cb1dd97f72c4fbf5e607c40e31c1ee615efb))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### BREAKING CHANGES
|
|
28
|
+
|
|
29
|
+
* This change removes all the camomilla cms references moving the compatibility layer in a detached package [mapo-integrations-camomilla](https://github.com/lotrekagency/mapo-integrations-camomilla). The guidelines to make mapo work with camomilla will be provided in the package readme.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
6
35
|
# [1.0.0-alpha.15](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-11)
|
|
7
36
|
|
|
8
37
|
|
|
@@ -382,8 +382,8 @@ export default {
|
|
|
382
382
|
},
|
|
383
383
|
computed: {
|
|
384
384
|
canGoBack() {
|
|
385
|
-
if (
|
|
386
|
-
return this.$nuxt
|
|
385
|
+
if (typeof window !== "undefined") {
|
|
386
|
+
return this.$nuxt?.context?.from?.name !== "login" && window.history.length > 1 || window.history.length > 3
|
|
387
387
|
}
|
|
388
388
|
return true;
|
|
389
389
|
},
|
|
@@ -510,11 +510,12 @@ Here the list of the FieldConfiguration type association.
|
|
|
510
510
|
- `textarea` ==> [v-textarea](https://vuetifyjs.com/en/components/textareas/),
|
|
511
511
|
- `switch` ==> [v-switch](https://vuetifyjs.com/en/components/switches/),
|
|
512
512
|
- `slider` ==> [v-slider](https://vuetifyjs.com/en/components/sliders/),
|
|
513
|
-
- `file` ==> [
|
|
513
|
+
- `file` ==> [file-field](/components/fields/FileField/),
|
|
514
514
|
- `editor` ==> [wyg-editor](/components/fields/wygEditor/wygEditor/),
|
|
515
515
|
- `media` ==> [media-field](/components/fields/MediaField/),
|
|
516
|
+
- `mediaList` ==> [media-m2m-field](/components/fields/MediaM2mField/)
|
|
516
517
|
- `m2m` or `fks` ==> [fks-field](/components/fields/FksField/),
|
|
517
|
-
- `
|
|
518
|
+
- `repeater` ==> [repeater](/components/fields/Repeater/),
|
|
518
519
|
|
|
519
520
|
|
|
520
521
|
#### Example of a [`FieldConfiguration`](#fieldconfiguration):
|
|
@@ -551,8 +552,9 @@ This is an interactive example. You can play with it but remember that all http
|
|
|
551
552
|
::: demo
|
|
552
553
|
<template>
|
|
553
554
|
<v-app>
|
|
555
|
+
<div class="d-flex justify-end"><ThemeToggle/></div>
|
|
554
556
|
<Detail
|
|
555
|
-
endpoint="api/
|
|
557
|
+
endpoint="api/articles"
|
|
556
558
|
identifier="new"
|
|
557
559
|
:fields="fields"
|
|
558
560
|
:languages="['it', 'en', 'de']"
|
|
@@ -568,6 +570,14 @@ export default {
|
|
|
568
570
|
main: [
|
|
569
571
|
{ value: "identifier", synci18n: true },
|
|
570
572
|
{ value: "content", type: "editor" },
|
|
573
|
+
{ value: "sections", type: "repeater", attrs: {
|
|
574
|
+
sortable: true,
|
|
575
|
+
fields: [
|
|
576
|
+
{ value: "title", class: "col-md-6" },
|
|
577
|
+
{ value: "subtitle", class: "col-md-6" },
|
|
578
|
+
{ value: "content", type: "textarea" },
|
|
579
|
+
]}
|
|
580
|
+
},
|
|
571
581
|
{
|
|
572
582
|
group: "Seo",
|
|
573
583
|
fields: [
|
package/components/List/List.vue
CHANGED
|
@@ -174,6 +174,7 @@ This is an interactive example. You can play with it but remember that all http
|
|
|
174
174
|
::: demo
|
|
175
175
|
<template>
|
|
176
176
|
<v-app>
|
|
177
|
+
<div class="d-flex justify-end"><ThemeToggle/></div>
|
|
177
178
|
<List
|
|
178
179
|
show-select
|
|
179
180
|
title="Sweets archive:"
|
|
@@ -186,11 +187,12 @@ This is an interactive example. You can play with it but remember that all http
|
|
|
186
187
|
searchable
|
|
187
188
|
:data.sync="desserts"
|
|
188
189
|
:actions="[]"
|
|
190
|
+
drag-reorder
|
|
189
191
|
>
|
|
190
192
|
</List>
|
|
191
193
|
<br>
|
|
192
194
|
<h3> Data: </h3>
|
|
193
|
-
<pre>{{ desserts }}</pre>
|
|
195
|
+
<pre style="background-color: unset">{{ desserts }}</pre>
|
|
194
196
|
</v-app>
|
|
195
197
|
</template>
|
|
196
198
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<slot v-bind="{ on, attrs }" name="activator"></slot>
|
|
4
|
-
<v-dialog v-model="dialog"
|
|
4
|
+
<v-dialog v-model="dialog" v-bind="dialogProps">
|
|
5
5
|
<v-card v-bind="$attrs">
|
|
6
6
|
<v-card-title class="pa-0 mb-3">
|
|
7
7
|
<div style="max-width: calc(100% - 40px)">
|
|
@@ -153,6 +153,11 @@ export default {
|
|
|
153
153
|
type: Object,
|
|
154
154
|
required: true,
|
|
155
155
|
},
|
|
156
|
+
dialogProps: {
|
|
157
|
+
type: Object,
|
|
158
|
+
required: false,
|
|
159
|
+
default: { width: 600, scrollable: true }
|
|
160
|
+
},
|
|
156
161
|
offline: Boolean,
|
|
157
162
|
},
|
|
158
163
|
watch: {
|
|
@@ -271,15 +271,21 @@ export default {
|
|
|
271
271
|
});
|
|
272
272
|
}, 500),
|
|
273
273
|
changeOrder(event){
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
this.
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
274
|
+
if (this.offlineMode) {
|
|
275
|
+
const element = this.items[event.oldIndex]
|
|
276
|
+
this.items.splice(event.oldIndex, 1, )
|
|
277
|
+
this.items.splice(event.newIndex, 0, element);
|
|
278
|
+
} else {
|
|
279
|
+
this.crud.update_order(this.items[event.oldIndex][this.lookup], this.items[event.newIndex][this.lookup]).then(
|
|
280
|
+
res => res.reordered && this.getDataFromApi()
|
|
281
|
+
).catch(error => {
|
|
282
|
+
this.getDataFromApi()
|
|
283
|
+
this.$mapo.$snack.open({
|
|
284
|
+
message: error.response?.data?.detail || "Reorder failed",
|
|
285
|
+
color: "error",
|
|
286
|
+
})
|
|
287
|
+
});
|
|
288
|
+
}
|
|
283
289
|
},
|
|
284
290
|
setQparams(options) {
|
|
285
291
|
this.$router.push({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div class="media-folders-wrapper">
|
|
3
3
|
<div v-if="parentFolders && parentFolders.length">
|
|
4
4
|
<span class="mx-2 mt-1 d-flex flex-wrap align-center">
|
|
5
5
|
<span class="mb-1">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</span>
|
|
13
13
|
</span>
|
|
14
14
|
</div>
|
|
15
|
-
<v-card-actions class="flex-wrap">
|
|
15
|
+
<v-card-actions class="flex-wrap px-0">
|
|
16
16
|
<div v-if="parentFolder" class="d-none d-sm-block">
|
|
17
17
|
<v-btn
|
|
18
18
|
class="px-2"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
v-for="folder in folders"
|
|
30
30
|
:key="folder.id"
|
|
31
31
|
class="d-flex child-flex"
|
|
32
|
-
:class="{ '
|
|
32
|
+
:class="{ 'px-1': expanded }"
|
|
33
33
|
>
|
|
34
34
|
<div class="folder_grid d-flex flex-column" :class="{ expanded }">
|
|
35
35
|
<v-icon @click.stop="goToFolder(folder)" :size="expanded ? 100 : 40">
|
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
</div>
|
|
121
121
|
</template>
|
|
122
122
|
<style lang="scss" scoped>
|
|
123
|
+
.media-folders-wrapper{
|
|
124
|
+
width: 100%;
|
|
125
|
+
font-size: 1rem;
|
|
126
|
+
font-weight: 400;
|
|
127
|
+
letter-spacing: 0;
|
|
128
|
+
line-height: 1.4rem;
|
|
129
|
+
}
|
|
123
130
|
.folder_grid {
|
|
124
131
|
.folder_slug {
|
|
125
132
|
width: 65px;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-card elevation="0">
|
|
3
|
-
<v-card-title class="d-flex flex-wrap
|
|
3
|
+
<v-card-title class="d-flex flex-wrap pa-0">
|
|
4
4
|
<div>
|
|
5
5
|
<v-tabs v-model="tab" right background-color="transparent">
|
|
6
6
|
<v-tab>Gallery</v-tab>
|
|
7
7
|
<v-tab>Uploader</v-tab>
|
|
8
8
|
</v-tabs>
|
|
9
9
|
</div>
|
|
10
|
-
<v-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<v-btn v-show="$vuetify.breakpoint.xs" class="ma-2 ml-auto" @click="getRoot" icon>
|
|
11
|
+
<v-icon>mdi-update</v-icon>
|
|
12
|
+
</v-btn>
|
|
13
|
+
<div class="d-flex ma-auto mr-0" :style="$vuetify.breakpoint.xs ? 'width: 100%' : ''">
|
|
14
|
+
<v-text-field
|
|
15
|
+
v-show="!editMedia && tab == 0"
|
|
13
16
|
v-model="searchValue"
|
|
14
17
|
@input="
|
|
15
18
|
loadingSearch = true;
|
|
@@ -23,14 +26,14 @@
|
|
|
23
26
|
dense
|
|
24
27
|
clearable
|
|
25
28
|
:loading="loadingSearch"
|
|
26
|
-
class="mx-2
|
|
29
|
+
class="mx-2 mt-2"
|
|
27
30
|
></v-text-field>
|
|
28
|
-
<v-btn class="ma-2" @click="getRoot" icon>
|
|
31
|
+
<v-btn v-show="!$vuetify.breakpoint.xs" class="ma-2" @click="getRoot" icon>
|
|
29
32
|
<v-icon>mdi-update</v-icon>
|
|
30
33
|
</v-btn>
|
|
31
|
-
|
|
32
|
-
<v-card-text class="pa-0">
|
|
34
|
+
</div>
|
|
33
35
|
<MediaFolders
|
|
36
|
+
v-show="!editMedia"
|
|
34
37
|
v-if="!noFolders"
|
|
35
38
|
v-bind="{ folders, parentFolders, loading }"
|
|
36
39
|
@updateFolder="updateOrCreateFolder($event)"
|
|
@@ -40,6 +43,8 @@
|
|
|
40
43
|
getRoot();
|
|
41
44
|
"
|
|
42
45
|
/>
|
|
46
|
+
</v-card-title>
|
|
47
|
+
<v-card-text class="pa-0">
|
|
43
48
|
<v-tabs-items v-model="tab" class="transparent">
|
|
44
49
|
<v-tab-item>
|
|
45
50
|
<MediaGallery
|
|
@@ -118,12 +123,12 @@ export default {
|
|
|
118
123
|
computed: {
|
|
119
124
|
mediaFolderCrud() {
|
|
120
125
|
this._mediaFolderCrud =
|
|
121
|
-
this._mediaFolderCrud || this.$mapo.$api.crud("api/
|
|
126
|
+
this._mediaFolderCrud || this.$mapo.$api.crud("api/media-folders");
|
|
122
127
|
return this._mediaFolderCrud;
|
|
123
128
|
},
|
|
124
129
|
mediaFileCrud() {
|
|
125
130
|
this._mediaFileCrud =
|
|
126
|
-
this._mediaFileCrud || this.$mapo.$api.crud("api/
|
|
131
|
+
this._mediaFileCrud || this.$mapo.$api.crud("api/media");
|
|
127
132
|
return this._mediaFileCrud;
|
|
128
133
|
},
|
|
129
134
|
parentFolder: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<slot v-bind="{ on, attrs }" name="activator"></slot>
|
|
4
|
-
<v-dialog v-model="dialog" width="800" scrollable>
|
|
4
|
+
<v-dialog v-model="dialog" max-width="100%" width="800" scrollable>
|
|
5
5
|
<media-manager
|
|
6
6
|
@selectionChange="selectionChange($event)"
|
|
7
7
|
:selection="$attrs.selection"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
41
|
/**
|
|
42
|
-
* This component is made to
|
|
42
|
+
* This component is made to enhance [v-file-input](https://vuetifyjs.com/en/components/file-inputs/). The main upgrade from the vuetify component is the ability to maintain and show the url of the current saved file.
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
export default {
|
|
@@ -58,9 +58,6 @@ export default {
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
computed: {
|
|
61
|
-
isString() {
|
|
62
|
-
return typeof this.model == "string";
|
|
63
|
-
},
|
|
64
61
|
model: {
|
|
65
62
|
get() {
|
|
66
63
|
return this.file;
|
|
@@ -104,5 +101,8 @@ export default {
|
|
|
104
101
|
}
|
|
105
102
|
},
|
|
106
103
|
},
|
|
104
|
+
created(){
|
|
105
|
+
this.model = this.value;
|
|
106
|
+
}
|
|
107
107
|
};
|
|
108
108
|
</script>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<draggable
|
|
6
6
|
v-model="items"
|
|
7
7
|
handle=".repeater-handle-sort"
|
|
8
|
+
animation="150"
|
|
8
9
|
@change="sortCallback({ ...$event, items, eventType: 'move' })"
|
|
9
10
|
>
|
|
10
11
|
<div
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
<v-tooltip right>
|
|
36
37
|
<template v-slot:activator="{ on, attrs }">
|
|
37
38
|
<v-icon
|
|
38
|
-
v-if="sortable"
|
|
39
|
+
v-if="!readonly && sortable"
|
|
39
40
|
v-bind="attrs"
|
|
40
41
|
v-on="on"
|
|
41
42
|
color="grey darken-3"
|
|
@@ -46,11 +47,11 @@
|
|
|
46
47
|
</template>
|
|
47
48
|
<span>Add here</span>
|
|
48
49
|
</v-tooltip>
|
|
49
|
-
|
|
50
50
|
<v-tooltip right>
|
|
51
51
|
<template v-slot:activator="{ on, attrs }">
|
|
52
52
|
<v-hover v-slot="{ hover }">
|
|
53
53
|
<v-icon
|
|
54
|
+
v-if="!readonly"
|
|
54
55
|
v-bind="attrs"
|
|
55
56
|
v-on="on"
|
|
56
57
|
:color="hover ? 'error' : 'grey darken-3'"
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
<span>Remove</span>
|
|
64
65
|
</v-tooltip>
|
|
65
66
|
<v-icon
|
|
66
|
-
v-if="sortable"
|
|
67
|
+
v-if="!readonly && sortable"
|
|
67
68
|
color="grey darken-3"
|
|
68
69
|
class="repeater-action repeater-handle-sort"
|
|
69
70
|
>mdi-drag</v-icon
|
|
@@ -74,7 +75,14 @@
|
|
|
74
75
|
</div>
|
|
75
76
|
</draggable>
|
|
76
77
|
<div class="d-flex justify-end">
|
|
77
|
-
<v-btn
|
|
78
|
+
<v-btn
|
|
79
|
+
class="repeater-add-line"
|
|
80
|
+
@click="addItem"
|
|
81
|
+
:disabled="readonly"
|
|
82
|
+
outlined
|
|
83
|
+
tile
|
|
84
|
+
text
|
|
85
|
+
>
|
|
78
86
|
<v-icon>mdi-plus</v-icon> Add</v-btn
|
|
79
87
|
>
|
|
80
88
|
</div>
|
|
@@ -142,24 +150,24 @@ export default {
|
|
|
142
150
|
type: Array,
|
|
143
151
|
default: () => [],
|
|
144
152
|
},
|
|
145
|
-
//
|
|
146
|
-
|
|
153
|
+
// The main configuration that determines the arrangement of the fields in each line.
|
|
154
|
+
fields: {
|
|
155
|
+
// [`Array<FieldConfiguration>`](/components/Detail/Detail/#fieldconfiguration)
|
|
147
156
|
type: Array,
|
|
148
157
|
default: () => [],
|
|
149
158
|
},
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
type: String,
|
|
153
|
-
},
|
|
154
|
-
// The main configuration that determines the arrangement of the fields in each line.
|
|
155
|
-
fields: {
|
|
156
|
-
// [`DetailConfiguration`](/components/Detail/Detail/#detailconfiguration)
|
|
159
|
+
// Puts the input in an error state and passes through custom error messages.
|
|
160
|
+
errorMessages: {
|
|
157
161
|
type: Array,
|
|
158
162
|
default: () => [],
|
|
159
163
|
},
|
|
164
|
+
// Sets input label.
|
|
165
|
+
label: String,
|
|
166
|
+
// Makes all the repeater items readonly.
|
|
167
|
+
readonly: Boolean,
|
|
160
168
|
// Makes the repeater field sortable.
|
|
161
169
|
sortable: Boolean,
|
|
162
|
-
// This callback is called during sort/add/remove item if the Repeater is sortable. Use this callback to change some prop of the items in the list.
|
|
170
|
+
// This callback is called during sort/add/remove item if the Repeater is sortable. Use this callback to change some prop of the items in the list.
|
|
163
171
|
sortCallback: {
|
|
164
172
|
type: Function,
|
|
165
173
|
default: () => {},
|
|
@@ -202,7 +210,7 @@ export default {
|
|
|
202
210
|
const conf = typeof field === "string" ? { value: field } : field;
|
|
203
211
|
conf.value = conf.value || "";
|
|
204
212
|
conf.slotName = `fields.${conf.value || i}`;
|
|
205
|
-
if (this.
|
|
213
|
+
if (this.readonly) {
|
|
206
214
|
conf.attrs = { ...conf.attrs, readonly: true };
|
|
207
215
|
}
|
|
208
216
|
return conf;
|
|
@@ -177,23 +177,80 @@ This is the default [wygEditor configuration](https://www.tiny.cloud/docs/config
|
|
|
177
177
|
|
|
178
178
|
```js
|
|
179
179
|
{
|
|
180
|
-
plugins: 'mapomedia preview paste importcss searchreplace autolink directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor
|
|
180
|
+
plugins: 'mapomedia preview paste importcss searchreplace autolink directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount textpattern noneditable help charmap quickbars emoticons',
|
|
181
181
|
menubar: 'file edit view insert format tools table help',
|
|
182
|
-
|
|
182
|
+
menu: { insert: { title: 'Insert', items: 'link mapomedia media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor | insertdatetime' } },
|
|
183
|
+
toolbar: 'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen preview | mapomedia media template link anchor codesample | ltr rtl',
|
|
183
184
|
toolbar_sticky: true,
|
|
184
185
|
image_advtab: true,
|
|
185
186
|
importcss_append: true,
|
|
186
187
|
template_cdate_format: '[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]',
|
|
187
188
|
template_mdate_format: '[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]',
|
|
188
|
-
height:
|
|
189
|
+
height: 400,
|
|
189
190
|
image_caption: true,
|
|
190
|
-
|
|
191
|
+
quickbars_insert_toolbar: 'mapomedia quicktable',
|
|
192
|
+
quickbars_selection_toolbar: 'bold italic | quicklink h2 h3 blockquote mapomedia quicktable',
|
|
191
193
|
noneditable_noneditable_class: 'mceNonEditable',
|
|
192
194
|
toolbar_mode: 'sliding',
|
|
193
|
-
contextmenu: 'link
|
|
195
|
+
contextmenu: 'link mapomedia table',
|
|
194
196
|
skin: useDarkMode ? 'oxide-dark' : 'oxide',
|
|
195
197
|
content_css: useDarkMode ? 'dark' : 'default',
|
|
196
198
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
197
199
|
}
|
|
198
200
|
```
|
|
201
|
+
<br><br>
|
|
202
|
+
|
|
203
|
+
## Live Demo
|
|
204
|
+
|
|
205
|
+
<br>
|
|
206
|
+
|
|
207
|
+
::: warning LIVE DEMO 🎉🎉🎉
|
|
208
|
+
This is an interactive example. You can play with it but remember that all http features are disabled since there is no backend server.
|
|
209
|
+
:::
|
|
210
|
+
|
|
211
|
+
::: demo
|
|
212
|
+
<template>
|
|
213
|
+
<v-app>
|
|
214
|
+
<wygEditor v-model="tinyInput" :readonly="readonly" />
|
|
215
|
+
<v-btn dark class="mb-2" @click.native="readonly = !readonly">
|
|
216
|
+
{{ readonly ? "Enable" : "Disable" }} editor
|
|
217
|
+
</v-btn>
|
|
218
|
+
</v-app>
|
|
219
|
+
</template>
|
|
220
|
+
|
|
221
|
+
<script>
|
|
222
|
+
export default {
|
|
223
|
+
data() {
|
|
224
|
+
return {
|
|
225
|
+
readonly: false,
|
|
226
|
+
tinyInput: `
|
|
227
|
+
<p style="text-align: center;"><span style="color: #bdc3c7;">→ This is a full-featured editor demo. Please explore!
|
|
228
|
+
←</span></p>
|
|
229
|
+
<p style="text-align: center;"> </p>
|
|
230
|
+
<h2 style="text-align: center;">TinyMCE is the world's most customizable, and flexible, rich text editor.</h2>
|
|
231
|
+
<p style="text-align: center;"><strong> <span style="font-size: 14pt;"> <span style="color: #7e8c8d; font-weight: 600;">
|
|
232
|
+
A featherweight download, TinyMCE can handle any challenge you throw at it. </span> </span> </strong>
|
|
233
|
+
</p>
|
|
234
|
+
<p style="text-align: center;"> </p>
|
|
235
|
+
<table style="border-collapse: collapse; width: 85%; margin-left: auto; margin-right: auto; border: 0;">
|
|
236
|
+
<tbody>
|
|
237
|
+
<tr>
|
|
238
|
+
<td style="width: 25%; text-align: center; padding: 7px;"><span style="color: #95a5a6;">🛠 50+
|
|
239
|
+
Plugins</span></td>
|
|
240
|
+
<td style="width: 25%; text-align: center; padding: 7px;"><span style="color: #95a5a6;">💡 Premium
|
|
241
|
+
Support</span></td>
|
|
242
|
+
<td style="width: 25%; text-align: center; padding: 7px;"><span style="color: #95a5a6;">🖍 Custom
|
|
243
|
+
Skins</span></td>
|
|
244
|
+
<td style="width: 25%; text-align: center; padding: 7px;"><span style="color: #95a5a6;">⚙ Full API
|
|
245
|
+
Access</span></td>
|
|
246
|
+
</tr>
|
|
247
|
+
</tbody>
|
|
248
|
+
</table>
|
|
249
|
+
`,
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
</script>
|
|
254
|
+
:::
|
|
255
|
+
|
|
199
256
|
</docs>
|
|
@@ -8,20 +8,21 @@
|
|
|
8
8
|
>
|
|
9
9
|
<v-app-bar-nav-icon @click.stop="drawerReverse()" />
|
|
10
10
|
<v-toolbar-title v-text="title" />
|
|
11
|
+
<v-spacer />
|
|
12
|
+
<ThemeToggle/>
|
|
11
13
|
</v-app-bar>
|
|
12
14
|
</template>
|
|
13
15
|
|
|
14
16
|
<script>
|
|
15
|
-
|
|
16
17
|
export default {
|
|
17
18
|
name: "Topbar",
|
|
18
19
|
props: {
|
|
19
|
-
title: String
|
|
20
|
+
title: String,
|
|
20
21
|
},
|
|
21
22
|
methods: {
|
|
22
23
|
drawerReverse() {
|
|
23
24
|
this.$store.dispatch("mapo/app/toggleSidebarDrawer");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
},
|
|
26
27
|
};
|
|
27
28
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapomodule/uikit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "This is part of Mapo nuxt module. Injects Mapo ui components in the nuxt component discovery system.",
|
|
6
6
|
"author": "bnznamco <gabriele.baldi.01@gmail.com>",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "2ef4275464cd8eb28cbbc61c980355b1379186b5"
|
|
18
18
|
}
|