glib-web 3.8.0 → 3.8.2
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 +0 -0
- package/actions/auth/creditCard.js +0 -0
- package/actions/auth/restart.js +0 -0
- package/actions/commands/copy.js +0 -0
- package/actions/dialogs/close.js +0 -0
- package/actions/dialogs/notification.js +0 -0
- package/actions/dialogs/oauth.js +0 -0
- package/actions/dialogs/open.js +0 -0
- package/actions/dialogs/options.js +0 -0
- package/actions/dialogs/reload.js +0 -0
- package/actions/dialogs/show.js +0 -0
- package/actions/http/delete.js +0 -0
- package/actions/http/patch.js +0 -0
- package/actions/http/post.js +0 -0
- package/actions/http/put.js +0 -0
- package/actions/runMultiple.js +0 -0
- package/actions/sheets/select.js +0 -0
- package/actions/snackbars/alert.js +0 -0
- package/actions/snackbars/select.js +0 -0
- package/actions/timeouts/set.js +0 -0
- package/actions/windows/openWeb.js +0 -0
- package/actions/windows/print.js +0 -0
- package/components/_message.vue +0 -0
- package/components/calendar.vue +0 -0
- package/components/fields/_otp.vue +15 -37
- package/components/fields/country/countries.js +0 -0
- package/components/fields/country/regions.js +0 -0
- package/components/fields/creditCard.vue +0 -0
- package/components/fields/googlePlace.vue +0 -0
- package/components/fields/phone/countries.js +0 -0
- package/components/fields/phone/sprite.css +0 -0
- package/components/fields/stripeToken.vue +0 -0
- package/components/h1.vue +0 -0
- package/components/h2.vue +0 -0
- package/components/h3.vue +0 -0
- package/components/h5.vue +0 -0
- package/components/h6.vue +0 -0
- package/components/hr.vue +0 -0
- package/components/html.vue +0 -0
- package/components/icon.vue +0 -0
- package/components/mixins/chart/annotation.js +0 -0
- package/components/mixins/chart/tooltip.js +0 -0
- package/components/mixins/dataset.js +0 -0
- package/components/mixins/extension.js +0 -0
- package/components/mixins/longClick.js +0 -0
- package/components/mixins/scrolling.js +0 -0
- package/components/mixins/styles.js +42 -16
- package/components/mixins/table/export.js +0 -0
- package/components/mixins/table/import.js +0 -0
- package/components/mixins/text.js +0 -0
- package/components/multimedia/video.vue +0 -0
- package/components/panels/carousel.vue +0 -0
- package/components/panels/web.vue +0 -0
- package/components/spacer.vue +0 -0
- package/keys.js +0 -0
- package/nav/drawer.vue +11 -2
- package/package.json +2 -2
- package/static/plugins/alignment/alignment.js +0 -0
- package/static/plugins/alignment/alignment.min.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.min.js +0 -0
- package/static/plugins/blockcode/blockcode.js +0 -0
- package/static/plugins/blockcode/blockcode.min.js +0 -0
- package/static/plugins/clips/clips.js +0 -0
- package/static/plugins/clips/clips.min.js +0 -0
- package/static/plugins/counter/counter.js +0 -0
- package/static/plugins/counter/counter.min.js +0 -0
- package/static/plugins/definedlinks/definedlinks.js +0 -0
- package/static/plugins/definedlinks/definedlinks.min.js +0 -0
- package/static/plugins/handle/handle.js +0 -0
- package/static/plugins/handle/handle.min.js +0 -0
- package/static/plugins/icons/icons.js +0 -0
- package/static/plugins/icons/icons.min.js +0 -0
- package/static/plugins/imageposition/imageposition.js +0 -0
- package/static/plugins/imageposition/imageposition.min.js +0 -0
- package/static/plugins/inlineformat/inlineformat.js +0 -0
- package/static/plugins/inlineformat/inlineformat.min.js +0 -0
- package/static/plugins/removeformat/removeformat.js +0 -0
- package/static/plugins/removeformat/removeformat.min.js +0 -0
- package/static/plugins/selector/selector.js +0 -0
- package/static/plugins/selector/selector.min.js +0 -0
- package/static/plugins/specialchars/specialchars.js +0 -0
- package/static/plugins/specialchars/specialchars.min.js +0 -0
- package/static/plugins/textdirection/textdirection.js +0 -0
- package/static/plugins/textdirection/textdirection.min.js +0 -0
- package/static/plugins/textexpander/textexpander.js +0 -0
- package/static/plugins/textexpander/textexpander.min.js +0 -0
- package/static/plugins/underline/underline.js +0 -0
- package/static/plugins/underline/underline.min.js +0 -0
- package/static/redactorx.css +0 -0
- package/static/redactorx.min.css +0 -0
- package/static/redactorx.min.js +0 -0
- package/static/redactorx.usm.min.js +0 -0
- package/styles/test.sass +0 -0
- package/styles/test.scss +0 -0
- package/templates/unsupported.vue +0 -0
- package/utils/dom.js +0 -0
- package/utils/helper.js +0 -0
- package/utils/type.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/auth/restart.js
CHANGED
|
File without changes
|
package/actions/commands/copy.js
CHANGED
|
File without changes
|
package/actions/dialogs/close.js
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/dialogs/oauth.js
CHANGED
|
File without changes
|
package/actions/dialogs/open.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/actions/dialogs/show.js
CHANGED
|
File without changes
|
package/actions/http/delete.js
CHANGED
|
File without changes
|
package/actions/http/patch.js
CHANGED
|
File without changes
|
package/actions/http/post.js
CHANGED
|
File without changes
|
package/actions/http/put.js
CHANGED
|
File without changes
|
package/actions/runMultiple.js
CHANGED
|
File without changes
|
package/actions/sheets/select.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/actions/timeouts/set.js
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/windows/print.js
CHANGED
|
File without changes
|
package/components/_message.vue
CHANGED
|
File without changes
|
package/components/calendar.vue
CHANGED
|
File without changes
|
|
@@ -20,51 +20,29 @@ export default {
|
|
|
20
20
|
return {
|
|
21
21
|
otpLength: this.spec.length,
|
|
22
22
|
otp: new Array(6).fill(''),
|
|
23
|
-
hint: false
|
|
23
|
+
hint: false,
|
|
24
|
+
isValueChanged: false
|
|
24
25
|
};
|
|
25
26
|
},
|
|
26
|
-
created() {
|
|
27
|
-
if (this.spec.value) {
|
|
28
|
-
const valueString = this.spec.value.toString();
|
|
29
|
-
|
|
30
|
-
for (let i = 0; i < this.otpLength && i < valueString.length; i++) {
|
|
31
|
-
this.otp[i] = valueString[i];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
mounted() {
|
|
38
|
-
if (this.spec.valueIf) {
|
|
39
|
-
const valueString = this.fieldModel.toString();
|
|
40
|
-
|
|
41
|
-
for (let i = 0; i < this.otpLength && i < valueString.length; i++) {
|
|
42
|
-
this.otp[i] = valueString[i];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
27
|
watch: {
|
|
47
|
-
fieldModel
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
this.otp = [];
|
|
54
|
-
for (let i = 0; i < valueString.length; i++) {
|
|
55
|
-
this.otp[i] = valueString[i];
|
|
56
|
-
}
|
|
57
|
-
|
|
28
|
+
fieldModel: {
|
|
29
|
+
handler(val) {
|
|
30
|
+
this.updateOtp(val)
|
|
31
|
+
},
|
|
32
|
+
immediate: true
|
|
58
33
|
}
|
|
59
34
|
},
|
|
60
35
|
methods: {
|
|
61
36
|
$ready() {
|
|
62
|
-
|
|
63
|
-
|
|
37
|
+
this.updateOtp(this.fieldModel)
|
|
38
|
+
},
|
|
39
|
+
updateOtp(val) {
|
|
40
|
+
if (!val) return;
|
|
64
41
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
42
|
+
const valueString = isNaN(val) ? '' : parseInt(val).toString();
|
|
43
|
+
this.otp = [];
|
|
44
|
+
for (let i = 0; i < this.otpLength && i < valueString.length; i++) {
|
|
45
|
+
this.otp[i] = valueString[i];
|
|
68
46
|
}
|
|
69
47
|
},
|
|
70
48
|
onInput(index) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/h1.vue
CHANGED
|
File without changes
|
package/components/h2.vue
CHANGED
|
File without changes
|
package/components/h3.vue
CHANGED
|
File without changes
|
package/components/h5.vue
CHANGED
|
File without changes
|
package/components/h6.vue
CHANGED
|
File without changes
|
package/components/hr.vue
CHANGED
|
File without changes
|
package/components/html.vue
CHANGED
|
File without changes
|
package/components/icon.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,6 +9,8 @@ export default {
|
|
|
9
9
|
fieldName: null,
|
|
10
10
|
fieldModel: null,
|
|
11
11
|
_show: true,
|
|
12
|
+
_watchers: [],
|
|
13
|
+
_isValueChanged: false,
|
|
12
14
|
// Some components do not support null or empty string value, so we need to use an intermediary value.
|
|
13
15
|
// See https://github.com/vuetifyjs/vuetify/issues/8876
|
|
14
16
|
vuetifyEmptyString: "<EMPTY_STRING>"
|
|
@@ -57,33 +59,57 @@ export default {
|
|
|
57
59
|
valueChanged = false;
|
|
58
60
|
}
|
|
59
61
|
this._linkFieldModels(valueChanged);
|
|
62
|
+
this._initConditional(oldSpec);
|
|
60
63
|
}
|
|
61
64
|
},
|
|
62
65
|
immediate: true
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
|
-
// watch showIf and valueIf
|
|
66
|
-
mounted() {
|
|
67
|
-
if (this.spec && this.spec.valueIf) {
|
|
68
|
-
watchFieldModels(this.spec.valueIf, (value) => this.fieldModel = this.$sanitizeValue(this.$externalizeValue(value)));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (this.spec && (this.spec.showIf || this.spec.loadIf)) {
|
|
72
|
-
watchFieldModels(this.spec.showIf || this.spec.loadIf, (value) => {
|
|
73
|
-
if (value) {
|
|
74
|
-
this._show = true;
|
|
75
|
-
} else {
|
|
76
|
-
this._show = false;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
68
|
unmounted() {
|
|
82
69
|
if (fieldModels[this.fieldName]) {
|
|
83
70
|
delete fieldModels[this.fieldName];
|
|
84
71
|
}
|
|
85
72
|
},
|
|
86
73
|
methods: {
|
|
74
|
+
_initConditional(oldSpec) {
|
|
75
|
+
// unreg old fieldName
|
|
76
|
+
if (oldSpec && fieldModels[oldSpec.name]) {
|
|
77
|
+
delete fieldModels[oldSpec.name];
|
|
78
|
+
}
|
|
79
|
+
// unreg watchers if there is
|
|
80
|
+
this._watchers.forEach(watcher => {
|
|
81
|
+
if (typeof watcher == Function) {
|
|
82
|
+
watcher();
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
let watcher1, watcher2;
|
|
87
|
+
|
|
88
|
+
// watch showIf & loadIf
|
|
89
|
+
if (this.spec && this.spec.valueIf) {
|
|
90
|
+
watcher1 = watchFieldModels(this.spec.valueIf, (value) => {
|
|
91
|
+
// prevent override spec.value
|
|
92
|
+
if (!this._isValueChanged && this.spec.value) {
|
|
93
|
+
this._isValueChanged = true;
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
this.fieldModel = this.$sanitizeValue(this.$externalizeValue(value));
|
|
98
|
+
});
|
|
99
|
+
this._watchers.push(watcher1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (this.spec && (this.spec.showIf || this.spec.loadIf)) {
|
|
103
|
+
watcher2 = watchFieldModels(this.spec.showIf || this.spec.loadIf, (value) => {
|
|
104
|
+
if (value) {
|
|
105
|
+
this._show = true;
|
|
106
|
+
} else {
|
|
107
|
+
this._show = false;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
this._watchers.push(watcher2);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
87
113
|
// TODO: Deprecated
|
|
88
114
|
genericStyles(spec) {
|
|
89
115
|
return this.$styles(spec);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/spacer.vue
CHANGED
|
File without changes
|
package/keys.js
CHANGED
|
File without changes
|
package/nav/drawer.vue
CHANGED
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
<div :class="cssClasses" :style="style">
|
|
6
6
|
<v-navigation-drawer v-model="state" app :dark="cssClasses.includes('dark') || null"
|
|
7
7
|
:permanent="mdAndUp || cssClasses.includes('permanent')" :expand-on-hover="expandOnHover()"
|
|
8
|
-
v-model:mini-variant="shrunk" @input="updateState"
|
|
8
|
+
v-model:mini-variant="shrunk" @input="updateState" @mouseenter="handleDrawerEnter" @mouseleave="handleDrawerLeave"
|
|
9
|
+
:class="isExpand ? 'left-menu-expand' : 'left-menu-shrink'">
|
|
9
10
|
|
|
10
11
|
<template v-if="spec.header">
|
|
11
12
|
<panels-responsive :spec="spec.header" />
|
|
12
13
|
</template>
|
|
13
|
-
|
|
14
14
|
<glib-component v-if="spec.body" :spec="spec.body" />
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
<v-list :dense="true">
|
|
17
18
|
<div v-for="(item, index) in spec.rows" :key="index" class="nav-item">
|
|
18
19
|
<div v-if="item.type == 'button'" class="indicator"></div>
|
|
@@ -64,6 +65,7 @@ export default {
|
|
|
64
65
|
state: null,
|
|
65
66
|
mini: true,
|
|
66
67
|
shrunk: true,
|
|
68
|
+
isExpand: false,
|
|
67
69
|
};
|
|
68
70
|
},
|
|
69
71
|
computed: {
|
|
@@ -110,6 +112,13 @@ export default {
|
|
|
110
112
|
expandOnHover() {
|
|
111
113
|
return this.mini;
|
|
112
114
|
},
|
|
115
|
+
handleDrawerEnter() {
|
|
116
|
+
this.isExpand = true;
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
handleDrawerLeave() {
|
|
120
|
+
this.isExpand = false;
|
|
121
|
+
},
|
|
113
122
|
},
|
|
114
123
|
};
|
|
115
124
|
</script>
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/static/redactorx.css
CHANGED
|
File without changes
|
package/static/redactorx.min.css
CHANGED
|
File without changes
|
package/static/redactorx.min.js
CHANGED
|
File without changes
|
|
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/helper.js
CHANGED
|
File without changes
|
package/utils/type.js
CHANGED
|
File without changes
|