@mapomodule/uikit 1.0.0-alpha.6 → 1.0.0-alpha.7

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 CHANGED
@@ -3,6 +3,52 @@
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.7](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-01-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **detail:** fix v-card content margin on detail component ([f07d5c1](https://github.com/lotrekagency/mapo/commit/f07d5c1581e71407e79fce95c8dc10109196ed0b))
12
+ * **detail:** remove lang swtch if only one lang is selected ([35cf58a](https://github.com/lotrekagency/mapo/commit/35cf58aa17ce4350f983643a8182fdf795dd4abb))
13
+ * **detail:** remove v-container from detail component to fix sizing ([2947652](https://github.com/lotrekagency/mapo/commit/29476528a6c13325c4da49a3e2aa842302e6bd04))
14
+ * **list:** fix search box for very small displays ([edf7287](https://github.com/lotrekagency/mapo/commit/edf7287c6974b8bb1412d9e0fb8bc4b1f1b48480))
15
+ * **media:** fix reset on media dialog ([3727502](https://github.com/lotrekagency/mapo/commit/3727502b59c9fa809b4dbc139b0cd01198008a18))
16
+ * **media:** reset media dialog after close ([5aded79](https://github.com/lotrekagency/mapo/commit/5aded794dbfb5482119db45bfb975e7241f86f15))
17
+ * **mediamanager:** better display of folder path in media manager ([bdc5692](https://github.com/lotrekagency/mapo/commit/bdc569264164e61af1c210aeb1c5da9d5b21220a))
18
+ * **mediamanager:** better ui for selection ([2307d38](https://github.com/lotrekagency/mapo/commit/2307d38a5a4e0fe838b5f9173692e132fe69e3be))
19
+ * **mediamanager:** fix backbutton background in media editor ([315d9df](https://github.com/lotrekagency/mapo/commit/315d9df2a9021ee1ea1328b4d959f0fd5f652f47))
20
+ * **mediamanager:** fix corb errors loading image preview in mediamanager ([7f34e34](https://github.com/lotrekagency/mapo/commit/7f34e34dfdfe4380d1704c0c8dda0a507676aeae))
21
+ * **mediamanager:** fix DOMException: The play() request was interrupted ([89a2a3e](https://github.com/lotrekagency/mapo/commit/89a2a3e1bb47178245ca7d131bdfedbcbcc41c17))
22
+ * **mediamanager:** fix editor opening ([3888652](https://github.com/lotrekagency/mapo/commit/3888652b0441cd17f0468db57fd895afd97a3625))
23
+ * **mediamanager:** make editing animation smooth ([81bd34b](https://github.com/lotrekagency/mapo/commit/81bd34b04d0d561317a1928dcdc796adc539350b))
24
+ * **mediamanager:** minor fixes to mediamanager ui ([a7b6089](https://github.com/lotrekagency/mapo/commit/a7b6089c38af9a6079bd8bebfeddd2dcff0b2c75))
25
+ * **mediamanager:** prevent media type check fail if no media type present ([2ee88fe](https://github.com/lotrekagency/mapo/commit/2ee88fed81d527434cf854e68ff8210247b2cf39))
26
+ * **mediamanagerdialog:** better positioning on small device of media manager dialog content ([9da147c](https://github.com/lotrekagency/mapo/commit/9da147c7e2d356da7f74e2edcbf05c5dafcbd94d))
27
+ * **sidebar:** fix nested SidebarListItems not triggering active class when the list-item is not a link ([9e92971](https://github.com/lotrekagency/mapo/commit/9e929710e74946c1470c29c007d780a1e712170b))
28
+ * **tinymce:** added missing al text to image tag ([55a3926](https://github.com/lotrekagency/mapo/commit/55a39261b3e449381d974eaa1b328a46dffb6f51))
29
+ * **uikit:** fix some content disposition in main layout ([1e9c79b](https://github.com/lotrekagency/mapo/commit/1e9c79b6b80d781c5aded10800c9df255b6ef8e8))
30
+
31
+
32
+ ### Features
33
+
34
+ * **media:** added mime type filtering ([da01658](https://github.com/lotrekagency/mapo/commit/da016585d450143f6419d98a7f53ee5ec8cf7358))
35
+ * **media:** added search input ([a1ac6ae](https://github.com/lotrekagency/mapo/commit/a1ac6aef8d28a248431cd80955c5a1446f41f608))
36
+ * **media:** selection prop 2-way binded ([e87f21c](https://github.com/lotrekagency/mapo/commit/e87f21c085e0cf0a61a99025d9f5e7970285ab72))
37
+ * **mediafield:** update media field to handle files ([5158108](https://github.com/lotrekagency/mapo/commit/51581086d96e09af31471721f0ea32df3fe58e09))
38
+ * **mediamanager:** added audio playback for audio files ([6aec9f7](https://github.com/lotrekagency/mapo/commit/6aec9f7b749c5002832fd194d565742b99a4b700))
39
+ * **mediamanager:** added icon for media that are not images ([d77f17b](https://github.com/lotrekagency/mapo/commit/d77f17b2d77db7bf4dc387be0b6d3892a4772b02))
40
+ * **mediamanager:** added link to img shortcut button in editor ([1dd446f](https://github.com/lotrekagency/mapo/commit/1dd446f76df1d3a7e71fdefb81ad60de1fdb4e93))
41
+ * **mediamanager:** added the possibility to change the media file using same url of the old file ([f21f383](https://github.com/lotrekagency/mapo/commit/f21f383b6f3f0176f806688a50ebff93a53d3203))
42
+ * **mediamanager:** added video preview for video mime types ([55fc423](https://github.com/lotrekagency/mapo/commit/55fc423c03265fb2c17bc42f1be0ba511928267c))
43
+ * **mediamanager:** many ui enhancements for mediamanager ([30ab3ff](https://github.com/lotrekagency/mapo/commit/30ab3ff89dc0ff3b9a210cfd32e2a874dfc073a6))
44
+ * **mediamanager:** media folders manager graphic enhancements ([0e8e7ec](https://github.com/lotrekagency/mapo/commit/0e8e7ec35482d043c42c88c38c9d32c8fa8e54e9))
45
+ * **sidebar:** added spidermenu for nested routes ([084029d](https://github.com/lotrekagency/mapo/commit/084029de717f29412b045fe703c4cfbd19353400))
46
+ * **tinymce:** added callback to manage video and documents insertions with mapomedia plugin ([b4e6f63](https://github.com/lotrekagency/mapo/commit/b4e6f6362e025010614e7ca8351a9d1e3af08650))
47
+
48
+
49
+
50
+
51
+
6
52
  # [1.0.0-alpha.6](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2021-12-26)
7
53
 
8
54
 
@@ -1,10 +1,10 @@
1
1
  <template>
2
- <v-container>
2
+ <div>
3
3
  <!-- Use this to override the title of the detail component. -->
4
4
  <slot name="title" v-bind="slotBindings">
5
5
  <!-- `<h1> "Create | Edit" + modelName </h1>` -->
6
- <v-row class="mb-14">
7
- <h1>{{ isNew ? "Create" : "Edit" }} {{ modelName }}</h1>
6
+ <v-row class="mb-5">
7
+ <v-col col="12"><h1 class="display-1">{{ isNew ? "Create" : "Edit" }} {{ modelName }}</h1></v-col>
8
8
  </v-row>
9
9
  </slot>
10
10
  <v-form ref="form">
@@ -16,7 +16,7 @@
16
16
  <slot name="body.lang" v-bind="slotBindings">
17
17
  <!-- [`DetailLangSwitch`](/components/detail/DetailLangSwitch/) -->
18
18
  <DetailLangSwitch
19
- v-if="langs && langs.length"
19
+ v-if="langs && langs.length > 1"
20
20
  class="mb-4"
21
21
  v-model="currentLang"
22
22
  :langs="langs"
@@ -39,30 +39,32 @@
39
39
  <v-icon left> {{ field.group.icon }} </v-icon>
40
40
  <span>{{ field.group.name }}</span>
41
41
  </v-card-title>
42
- <v-card-text class="row">
43
- <div
44
- v-for="(fields, fieldsI) in field.fields"
45
- :key="fieldsI"
46
- class="col-12"
47
- :class="fields.class"
48
- >
49
- <!-- This is a dynamic slot. You can use it to override a field component. For example use `fields.title` to override the component of the field with value `title`. -->
50
- <slot
51
- :name="fields.slotName"
52
- v-bind="{
53
- conf: fields,
54
- ...slotBindings,
55
- }"
42
+ <div class="container">
43
+ <div class="row">
44
+ <div
45
+ v-for="(fields, fieldsI) in field.fields"
46
+ :key="fieldsI"
47
+ class="col-12"
48
+ :class="fields.class"
56
49
  >
57
- <!-- A [`DetailField`](/components/detail/DetailField/) configured by a [`FieldConfiguration`](#fieldconfiguration). -->
58
- <DetailField
59
- v-model="model"
60
- :conf="fields"
61
- :errors="errors"
62
- />
63
- </slot>
50
+ <!-- This is a dynamic slot. You can use it to override a field component. For example use `fields.title` to override the component of the field with value `title`. -->
51
+ <slot
52
+ :name="fields.slotName"
53
+ v-bind="{
54
+ conf: fields,
55
+ ...slotBindings,
56
+ }"
57
+ >
58
+ <!-- A [`DetailField`](/components/detail/DetailField/) configured by a [`FieldConfiguration`](#fieldconfiguration). -->
59
+ <DetailField
60
+ v-model="model"
61
+ :conf="fields"
62
+ :errors="errors"
63
+ />
64
+ </slot>
65
+ </div>
64
66
  </div>
65
- </v-card-text>
67
+ </div>
66
68
  </v-card>
67
69
  <slot
68
70
  v-else
@@ -138,29 +140,31 @@
138
140
  <v-icon left> {{ field.group.icon }} </v-icon>
139
141
  <span>{{ field.group.name }}</span>
140
142
  </v-card-title>
141
- <v-card-text class="row">
142
- <div
143
- v-for="(fields, fieldsI) in field.fields"
144
- :key="fieldsI"
145
- class="col-12"
146
- :class="field.class"
147
- >
148
- <!-- @vuese-ignore -->
149
- <slot
150
- :name="fields.slotName"
151
- v-bind="{
152
- conf: fields,
153
- ...slotBindings,
154
- }"
143
+ <div class="container">
144
+ <div class="row">
145
+ <div
146
+ v-for="(fields, fieldsI) in field.fields"
147
+ :key="fieldsI"
148
+ class="col-12"
149
+ :class="field.class"
155
150
  >
156
- <DetailField
157
- v-model="model"
158
- :conf="fields"
159
- :errors="errors"
160
- />
161
- </slot>
151
+ <!-- @vuese-ignore -->
152
+ <slot
153
+ :name="fields.slotName"
154
+ v-bind="{
155
+ conf: fields,
156
+ ...slotBindings,
157
+ }"
158
+ >
159
+ <DetailField
160
+ v-model="model"
161
+ :conf="fields"
162
+ :errors="errors"
163
+ />
164
+ </slot>
165
+ </div>
162
166
  </div>
163
- </v-card-text>
167
+ </div>
164
168
  </v-card>
165
169
  <slot
166
170
  v-else
@@ -180,7 +184,7 @@
180
184
  </v-col>
181
185
  </v-row>
182
186
  </v-form>
183
- </v-container>
187
+ </div>
184
188
  </template>
185
189
 
186
190
 
@@ -69,7 +69,7 @@
69
69
  <!-- Slot to provide custom button actions inside the drop area -->
70
70
  <slot v-bind:clearList="clearList" name="actions">
71
71
  <!-- `<v-btn @click="clearList" icon><v-icon>mdi-close</v-icon></v-btn>` -->
72
- <v-btn @click="clearList" icon>
72
+ <v-btn v-if="uploadedFiles && uploadedFiles.length" @click="clearList" icon>
73
73
  <v-icon>mdi-close</v-icon>
74
74
  </v-btn>
75
75
  </slot>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="list__head">
3
- <h2 class="list__head__title display-1">{{ title }}</h2>
3
+ <h1 class="list__head__title display-1">{{ title }}</h1>
4
4
  <div class="list__head__button">
5
5
  <v-btn
6
6
  v-if="addItem"
@@ -28,16 +28,16 @@
28
28
  dense
29
29
  clearable
30
30
  :loading="loadingSearch"
31
- style="max-width: 300px"
31
+ class="search-input"
32
32
  ></v-text-field>
33
33
  <v-spacer></v-spacer>
34
34
  <slot name="dtable.top.center"></slot>
35
35
  <v-spacer></v-spacer>
36
- <v-btn text v-if="quickModeEnabled" @click="quickAction()">
37
- <v-icon small left class="mr-2"> mdi-plus </v-icon>
38
- Quick add
36
+ <v-btn text v-if="quickModeEnabled" class="ml-2" @click="quickAction()">
37
+ <v-icon small left class="d-none d-sm-block mr-2"> mdi-plus </v-icon>
38
+ <span class="d-none d-sm-block">Quick</span> add
39
39
  </v-btn>
40
- <v-btn v-if="serverPaginationEnabled" class="ma-2" @click="getDataFromApi(false)" icon>
40
+ <v-btn v-if="serverPaginationEnabled" class=" mx-sm-2 ma-2 mx-0" @click="getDataFromApi(false)" icon>
41
41
  <v-icon>mdi-update</v-icon>
42
42
  </v-btn>
43
43
  </v-toolbar>
@@ -86,12 +86,28 @@
86
86
  </div>
87
87
  </template>
88
88
 
89
- <style lang="scss">
89
+ <style lang="scss" scoped>
90
90
  .mapo__listtable__all_selected {
91
91
  .v-data-table__selected {
92
92
  background: none !important;
93
93
  }
94
94
  }
95
+ .search-input{
96
+ max-width: 300px;
97
+ @media (max-width: 400px) {
98
+ &.v-input--is-focused{
99
+ position: absolute;
100
+ z-index: 1;
101
+ width: calc(100% - 32px);
102
+ &.theme--dark{
103
+ background: #272727;
104
+ }
105
+ &.theme--light{
106
+ background: #fff;
107
+ }
108
+ }
109
+ }
110
+ }
95
111
  </style>
96
112
 
97
113
  <script>