goodteditor-ui 1.0.37 → 1.0.39
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/package.json
CHANGED
|
@@ -192,10 +192,6 @@ export default {
|
|
|
192
192
|
data() {
|
|
193
193
|
return {
|
|
194
194
|
date: null,
|
|
195
|
-
inputBinds: {
|
|
196
|
-
placeholder: this.placeholder,
|
|
197
|
-
readonly: this.readonly || !this.editable,
|
|
198
|
-
},
|
|
199
195
|
inputEvents: {
|
|
200
196
|
input: this.onInputInput,
|
|
201
197
|
change: this.onInputChange,
|
|
@@ -206,6 +202,21 @@ export default {
|
|
|
206
202
|
inputValueRaw: '',
|
|
207
203
|
};
|
|
208
204
|
},
|
|
205
|
+
computed: {
|
|
206
|
+
isRange() {
|
|
207
|
+
return !!this.datepicker.range;
|
|
208
|
+
},
|
|
209
|
+
valueLabel() {
|
|
210
|
+
return Array.isArray(this.value) ? this.value.join(this.delimiter) : this.value;
|
|
211
|
+
},
|
|
212
|
+
inputBinds() {
|
|
213
|
+
const { placeholder, readonly, editable } = this;
|
|
214
|
+
return {
|
|
215
|
+
placeholder,
|
|
216
|
+
readonly: readonly || !editable
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
209
220
|
watch: {
|
|
210
221
|
value: {
|
|
211
222
|
handler(val) {
|
|
@@ -232,18 +243,7 @@ export default {
|
|
|
232
243
|
* @property {String} date
|
|
233
244
|
*/
|
|
234
245
|
this.$emit('input', val ? [] : '');
|
|
235
|
-
}
|
|
236
|
-
placeholder(placeholder) {
|
|
237
|
-
this.inputBinds = { ...this.inputBinds, placeholder };
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
computed: {
|
|
241
|
-
isRange() {
|
|
242
|
-
return !!this.datepicker.range;
|
|
243
|
-
},
|
|
244
|
-
valueLabel() {
|
|
245
|
-
return Array.isArray(this.value) ? this.value.join(this.delimiter) : this.value;
|
|
246
|
-
},
|
|
246
|
+
}
|
|
247
247
|
},
|
|
248
248
|
methods: {
|
|
249
249
|
clear() {
|
|
@@ -263,6 +263,11 @@ export default {
|
|
|
263
263
|
},
|
|
264
264
|
onInputInput({ target }) {
|
|
265
265
|
this.inputValueRaw = target.value;
|
|
266
|
+
/**
|
|
267
|
+
* Input event
|
|
268
|
+
* @property {String} date
|
|
269
|
+
*/
|
|
270
|
+
this.$emit('input', target.value);
|
|
266
271
|
},
|
|
267
272
|
onInputChange(e) {
|
|
268
273
|
this.setDateFromString(e.target.value);
|
|
@@ -276,11 +281,6 @@ export default {
|
|
|
276
281
|
},
|
|
277
282
|
onDpChange(date) {
|
|
278
283
|
const model = Array.isArray(date) ? date.map(this.toValue) : this.toValue(date);
|
|
279
|
-
/**
|
|
280
|
-
* Input event
|
|
281
|
-
* @property {String|Array} value
|
|
282
|
-
*/
|
|
283
|
-
this.$emit('input', model);
|
|
284
284
|
/**
|
|
285
285
|
* Change event
|
|
286
286
|
* @property {String|Array} value
|
|
@@ -310,11 +310,6 @@ export default {
|
|
|
310
310
|
const d = this.toDate(value);
|
|
311
311
|
model = isDateValid(d) ? this.toValue(d) : '';
|
|
312
312
|
}
|
|
313
|
-
/**
|
|
314
|
-
* Input event
|
|
315
|
-
* @property {String|Array} value
|
|
316
|
-
*/
|
|
317
|
-
this.$emit('input', model);
|
|
318
313
|
/**
|
|
319
314
|
* Change event
|
|
320
315
|
* @property {String|Array} value
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
>
|
|
9
9
|
<div class="ui-input-time-picker-wrapper d-flex flex-v-center w-100">
|
|
10
10
|
<div style="flex: 1 0 0">
|
|
11
|
-
<!--
|
|
11
|
+
<!--
|
|
12
12
|
@slot Custom input slot
|
|
13
13
|
@binding {String} id input id attribute value
|
|
14
14
|
@binding {String} value input value
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/>
|
|
27
27
|
</slot>
|
|
28
28
|
</div>
|
|
29
|
-
<!--
|
|
29
|
+
<!--
|
|
30
30
|
@slot Custom clear icon slot
|
|
31
31
|
@binding {Function} clear function that clears the value
|
|
32
32
|
-->
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<i class="mdi mdi-close"></i>
|
|
36
36
|
</div>
|
|
37
37
|
</slot>
|
|
38
|
-
<!--
|
|
38
|
+
<!--
|
|
39
39
|
@slot Icon slot
|
|
40
40
|
@binding {Function} toggle function that toggles the datepicker
|
|
41
41
|
-->
|
|
@@ -171,10 +171,6 @@ export default {
|
|
|
171
171
|
data() {
|
|
172
172
|
return {
|
|
173
173
|
time: null,
|
|
174
|
-
inputBinds: {
|
|
175
|
-
placeholder: this.placeholder,
|
|
176
|
-
readonly: this.readonly || !this.editable,
|
|
177
|
-
},
|
|
178
174
|
inputEvents: {
|
|
179
175
|
change: this.onInputChange,
|
|
180
176
|
input: this.onInputInput,
|
|
@@ -183,6 +179,15 @@ export default {
|
|
|
183
179
|
},
|
|
184
180
|
};
|
|
185
181
|
},
|
|
182
|
+
computed: {
|
|
183
|
+
inputBinds() {
|
|
184
|
+
const { placeholder, readonly, editable } = this;
|
|
185
|
+
return {
|
|
186
|
+
placeholder,
|
|
187
|
+
readonly: readonly || !editable
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
186
191
|
watch: {
|
|
187
192
|
value: {
|
|
188
193
|
handler(val) {
|