glib-web 3.0.10 → 3.0.12

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/LICENSE CHANGED
File without changes
File without changes
@@ -6,7 +6,8 @@ export default class {
6
6
 
7
7
  const target = GLib.component.findById(spec.targetId);
8
8
  if (target) {
9
- Object.assign(target.spec, spec.views[0]);
9
+ // force update
10
+ Object.assign(target.spec, spec.views[0], { forceUpdate: true });
10
11
  }
11
12
  }
12
13
  }
File without changes
File without changes
File without changes
@@ -57,7 +57,11 @@ export default {
57
57
  },
58
58
  viewKey(item, index) {
59
59
  // Use view name for key to avoid component reuse issue
60
- return `view${index}_${item.view}_value${item.value}`
60
+ if (!item.forceUpdate) {
61
+ return `view${index}_${item.view}_value${item.value}`
62
+ } else {
63
+ return `comp-${Date.now().toString()}`
64
+ }
61
65
  // return item
62
66
  },
63
67
  $registryEnabled() {
File without changes
File without changes
File without changes
File without changes
package/components/hr.vue CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/keys.js CHANGED
File without changes
package/nav/dialog.vue CHANGED
@@ -5,17 +5,16 @@
5
5
  <!-- <v-card-title v-if="title || showClose" class="text-h5" primary-title> -->
6
6
 
7
7
  <panels-responsive v-if="header" :spec="header" />
8
- <div class="flex flex-wrap justify-between" v-if="title && showClose">
9
- <div v-if="title" class="dialogs-title theme--light v-subheader">
8
+ <div class="dialog-title flex flex-wrap justify-between" v-if="title">
9
+ <div class="theme--light v-subheader">
10
10
  {{ title }}
11
11
  </div>
12
+ </div>
12
13
 
13
- <v-btn size="small" v-if="showClose" text icon @click="close" class="mr-2 mt-2" variant="flat">
14
+ <div class="dialogs-body relative">
15
+ <v-btn size="small" v-if="showClose" text icon @click="close" class="mr-3 mt-2 close-btn" variant="flat">
14
16
  <v-icon>close</v-icon>
15
17
  </v-btn>
16
- </div>
17
-
18
- <div class="dialogs-body">
19
18
  <component :is="containerComponent" :spec="formSpec">
20
19
  <div v-if="message" class="dialog-message">
21
20
  <common-message :spec="{ message: message }" />
@@ -65,7 +64,7 @@ export default {
65
64
  model: null,
66
65
  url: null,
67
66
  urlLoaded: false,
68
- showClose: false,
67
+ showClose: true,
69
68
  isFormDirty: false,
70
69
  isFormSubmitted: false,
71
70
  isMobile: false,
@@ -149,7 +148,7 @@ export default {
149
148
  show(reload) {
150
149
  const spec = this.spec;
151
150
  this.url = spec.url;
152
- this.showClose = Utils.type.isString(this.url);
151
+ this.showClose = this.spec.showClose || Utils.type.isString(this.url);
153
152
 
154
153
  if (Utils.type.isString(this.url)) {
155
154
  if (!this.urlLoaded) {
@@ -167,7 +166,7 @@ export default {
167
166
  this.header = response.header;
168
167
  this.body = response.body;
169
168
  this.footer = response.footer;
170
- this.showClose = this.spec.showClose || false;
169
+ this.showClose = this.spec.showClose || true;
171
170
 
172
171
  Action.execute(response.onLoad, this);
173
172
  });
@@ -177,7 +176,7 @@ export default {
177
176
  this.title = this.spec.title;
178
177
  this.message = this.spec.message;
179
178
  this.body = this.spec.body;
180
- this.showClose = this.spec.showClose || false;
179
+ this.showClose = this.spec.showClose || true;
181
180
  Action.execute(spec.onLoad, this);
182
181
  }
183
182
 
@@ -200,6 +199,12 @@ export default {
200
199
  /* white-space: pre-wrap; */
201
200
  }
202
201
 
202
+ .close-btn {
203
+ top: 0;
204
+ right: 0;
205
+ position: absolute;
206
+ }
207
+
203
208
  .dialog-close {
204
209
  right: 16px;
205
210
  top: 12px;
@@ -216,6 +221,7 @@ export default {
216
221
  justify-content: space-between;
217
222
  height: 100%;
218
223
  padding: 0;
224
+ position: relative;
219
225
  }
220
226
 
221
227
  .dialogs-body {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
File without changes
package/styles/test.sass CHANGED
File without changes
package/styles/test.scss CHANGED
File without changes
File without changes
package/utils/dom.js CHANGED
File without changes
package/utils/storage.js CHANGED
File without changes
package/utils/url.js CHANGED
File without changes