glib-web 3.4.3 → 3.4.4
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/close.js +0 -0
- package/actions/windows/closeAll.js +0 -0
- package/actions/windows/open.js +0 -0
- package/actions/windows/openWeb.js +0 -0
- package/actions/windows/print.js +0 -0
- package/actions/windows/reload.js +0 -0
- package/components/_message.vue +0 -0
- package/components/calendar.vue +0 -0
- package/components/fab.vue +0 -0
- package/components/fields/_otp.vue +88 -111
- 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/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/package.json +1 -1
- 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
|
package/actions/windows/close.js
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/windows/open.js
CHANGED
|
File without changes
|
|
File without changes
|
package/actions/windows/print.js
CHANGED
|
File without changes
|
|
File without changes
|
package/components/_message.vue
CHANGED
|
File without changes
|
package/components/calendar.vue
CHANGED
|
File without changes
|
package/components/fab.vue
CHANGED
|
File without changes
|
|
@@ -1,161 +1,138 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :style="$styles()" :class="$classes()">
|
|
3
|
-
<div
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
3
|
+
<div>
|
|
4
|
+
<div v-for="i in otpLength" :key="i" class="otp-input">
|
|
5
|
+
<input v-model="otp[i - 1]" :id="'otp-' + i" :maxlength="1" @input="onInput(i)" @keydown="onKeyDown(i, $event)"
|
|
6
|
+
@focus="onFocus(i)" @paste="onPaste(i, $event)" ref="otpInput" type="text" />
|
|
7
|
+
</div>
|
|
8
|
+
<input type="hidden" :name="fieldName" v-model="fieldModel" />
|
|
9
9
|
</div>
|
|
10
|
-
<
|
|
11
|
-
<input v-for="(digit, index) in digits" :key="index" ref="input" :value="val[index]" type="number"
|
|
12
|
-
oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
|
|
13
|
-
maxlength="1" class="otp-input" @input="handleInput($event, index)" @keydown="handleKeydown($event, index)"
|
|
14
|
-
@paste="handlePaste($event, index)" @focus="handleFocus($event, index)" @blur="handleBlur($event, index)"
|
|
15
|
-
@click="handleClick($event)" />
|
|
16
|
-
<label class="hint">{{ spec.hint }}</label>
|
|
17
|
-
</div>
|
|
18
|
-
<input type="hidden" :name="fieldName" v-model="fieldModel" />
|
|
10
|
+
<label class="hint" v-if="hint == true">{{ spec.hint }}</label>
|
|
19
11
|
</div>
|
|
20
12
|
</template>
|
|
21
13
|
|
|
22
14
|
<script>
|
|
23
|
-
import bus from '../../utils/eventBus'
|
|
24
|
-
|
|
25
15
|
export default {
|
|
26
16
|
props: {
|
|
27
17
|
spec: { type: Object, required: true }
|
|
28
18
|
},
|
|
29
19
|
data() {
|
|
30
20
|
return {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
otpLength: this.spec.length,
|
|
22
|
+
otp: new Array(6).fill(''),
|
|
23
|
+
hint: false
|
|
24
|
+
};
|
|
34
25
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
// created() {
|
|
27
|
+
// if (this.spec.value) {
|
|
28
|
+
// const valueString = this.spec.value.toString();
|
|
38
29
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
digits() {
|
|
43
|
-
return this.spec.length
|
|
44
|
-
},
|
|
45
|
-
val() {
|
|
46
|
-
const field = this.fieldModel == null ? [] : this.fieldModel.toString().split("")
|
|
30
|
+
// for (let i = 0; i < this.otpLength && i < valueString.length; i++) {
|
|
31
|
+
// this.otp[i] = valueString[i];
|
|
32
|
+
// }
|
|
47
33
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return field
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
return field
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
if (this.spec.valueIf == null) {
|
|
64
|
-
return this.otp
|
|
65
|
-
} else {
|
|
66
|
-
return field
|
|
67
|
-
}
|
|
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];
|
|
68
43
|
}
|
|
69
|
-
}
|
|
44
|
+
}
|
|
70
45
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this.focusNext(index);
|
|
46
|
+
watch: {
|
|
47
|
+
fieldModel(newFieldModel) {
|
|
48
|
+
let valueString = '';
|
|
49
|
+
|
|
50
|
+
if (newFieldModel !== '') {
|
|
51
|
+
valueString = isNaN(newFieldModel) ? '' : parseInt(newFieldModel).toString();
|
|
78
52
|
}
|
|
79
|
-
this.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
53
|
+
this.otp = []
|
|
54
|
+
for (let i = 0; i < valueString.length; i++) {
|
|
55
|
+
this.otp[i] = valueString[i];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
$ready() {
|
|
62
|
+
if (this.spec.value) {
|
|
63
|
+
const valueString = this.spec.value.toString();
|
|
64
|
+
|
|
65
|
+
for (let i = 0; i < this.otpLength && i < valueString.length; i++) {
|
|
66
|
+
this.otp[i] = valueString[i];
|
|
90
67
|
}
|
|
91
68
|
}
|
|
92
69
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
.getData("text")
|
|
97
|
-
.slice(0, this.digits - index);
|
|
98
|
-
for (let i = 0; i < pasted.length; i++) {
|
|
99
|
-
this.$set(this.otp, index + i, pasted[i]);
|
|
70
|
+
onInput(index) {
|
|
71
|
+
if (this.otp[index - 1] && index < this.otpLength) {
|
|
72
|
+
this.$refs['otpInput'][index].focus();
|
|
100
73
|
}
|
|
101
|
-
this.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if (index > 0 && this.otp[index - 1] === "") {
|
|
105
|
-
this.focusPrevious(index);
|
|
74
|
+
this.fieldModel = this.otp.join("");
|
|
75
|
+
if (this.spec.hint) {
|
|
76
|
+
this.hint = true
|
|
106
77
|
}
|
|
107
78
|
},
|
|
108
|
-
|
|
109
|
-
if (this.otp
|
|
110
|
-
|
|
79
|
+
onKeyDown(index, event) {
|
|
80
|
+
if (event.key === 'Backspace' && !this.otp[index - 1] && index > 1) {
|
|
81
|
+
this.$refs['otpInput'][index - 2].focus();
|
|
111
82
|
}
|
|
112
83
|
},
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
this.$refs
|
|
84
|
+
onFocus(index) {
|
|
85
|
+
if (this.otp[index - 1]) {
|
|
86
|
+
this.$refs['otpInput'][index - 1].select();
|
|
116
87
|
}
|
|
117
88
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
89
|
+
onPaste(index, event) {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
const clipboardData = event.clipboardData.getData('text');
|
|
92
|
+
const clipboardDigits = clipboardData.replace(/\D/g, '');
|
|
93
|
+
const remainingLength = this.otpLength - index + 1;
|
|
94
|
+
const pasteDigits = clipboardDigits.slice(0, remainingLength);
|
|
95
|
+
|
|
96
|
+
for (let i = 0; i < pasteDigits.length; i++) {
|
|
97
|
+
this.otp[index - 1 + i] = pasteDigits[i];
|
|
121
98
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
event.target.select();
|
|
99
|
+
|
|
100
|
+
this.$refs['otpInput'][this.otpLength - 1].focus();
|
|
125
101
|
}
|
|
126
|
-
}
|
|
102
|
+
},
|
|
127
103
|
};
|
|
128
104
|
</script>
|
|
105
|
+
|
|
129
106
|
<style scoped>
|
|
130
107
|
.otp-input {
|
|
108
|
+
display: inline-block;
|
|
109
|
+
width: 2rem;
|
|
110
|
+
text-align: center;
|
|
111
|
+
margin-right: 8px;
|
|
112
|
+
margin-bottom: 8px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
input {
|
|
131
116
|
border: 1px solid #47495f;
|
|
132
117
|
text-align: center;
|
|
133
118
|
width: 50px;
|
|
134
119
|
height: 50px;
|
|
135
120
|
border-radius: 4px;
|
|
136
121
|
font-size: 24px;
|
|
137
|
-
margin: 8px;
|
|
138
122
|
}
|
|
139
123
|
|
|
140
|
-
|
|
141
|
-
input::-webkit-outer-spin-button
|
|
142
|
-
input::-webkit-inner-spin-button {
|
|
124
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
125
|
+
input[type="number"]::-webkit-outer-spin-button {
|
|
143
126
|
-webkit-appearance: none;
|
|
144
127
|
margin: 0;
|
|
145
128
|
}
|
|
146
129
|
|
|
147
|
-
|
|
148
|
-
input
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
display: none;
|
|
154
|
-
}
|
|
130
|
+
@media (max-width: 768px) {
|
|
131
|
+
.otp-input {
|
|
132
|
+
width: 1rem;
|
|
133
|
+
margin-right: 24px;
|
|
134
|
+
margin-bottom: 24px;
|
|
135
|
+
}
|
|
155
136
|
|
|
156
|
-
input:focus~.hint,
|
|
157
|
-
input:focus-visible~.hint {
|
|
158
|
-
display: block;
|
|
159
|
-
padding: 8px 16px;
|
|
160
137
|
}
|
|
161
138
|
</style>
|
|
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
|
|
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/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
|