buefy 0.9.12 → 0.9.13
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/dist/buefy.css +1 -1
- package/dist/buefy.esm.js +106 -104
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +106 -104
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +4 -4
- package/dist/cjs/button.js +2 -2
- package/dist/cjs/carousel.js +5 -5
- package/dist/cjs/{chunk-47e1b22b.js → chunk-114191ae.js} +2 -2
- package/dist/cjs/{chunk-db3fa73a.js → chunk-2062216d.js} +1 -1
- package/dist/cjs/{chunk-d9a33552.js → chunk-2911aa4b.js} +45 -45
- package/dist/cjs/{chunk-de7a7f98.js → chunk-2ae50815.js} +3 -3
- package/dist/cjs/{chunk-01268607.js → chunk-2c7de785.js} +0 -0
- package/dist/cjs/{chunk-30d55827.js → chunk-30670fac.js} +2 -2
- package/dist/cjs/{chunk-c3495010.js → chunk-34949503.js} +0 -0
- package/dist/cjs/{chunk-2dc027c9.js → chunk-3cc5d9a6.js} +0 -0
- package/dist/cjs/{chunk-a14ca5bf.js → chunk-61023b09.js} +1 -1
- package/dist/cjs/{chunk-c5a552d4.js → chunk-6cb902f8.js} +0 -0
- package/dist/cjs/{chunk-7b13241d.js → chunk-7da0c017.js} +4 -2
- package/dist/cjs/{chunk-bd1feb6c.js → chunk-9e4cf4c5.js} +0 -0
- package/dist/cjs/{chunk-ea7e1e7e.js → chunk-a11294f9.js} +1 -1
- package/dist/cjs/{chunk-3aaecc36.js → chunk-c6fbc7b4.js} +1 -1
- package/dist/cjs/{chunk-dcf024d2.js → chunk-c7b2aa4b.js} +0 -0
- package/dist/cjs/{chunk-40697b2f.js → chunk-d0f8ea39.js} +6 -6
- package/dist/cjs/{chunk-c00639be.js → chunk-d120e215.js} +0 -0
- package/dist/cjs/{chunk-cb3ee6f4.js → chunk-d54e40f6.js} +0 -0
- package/dist/cjs/{chunk-adaa5792.js → chunk-f5106717.js} +2 -2
- package/dist/cjs/{chunk-66710d19.js → chunk-fe2f57ee.js} +1 -1
- package/dist/cjs/{chunk-344f6275.js → chunk-fefd7b77.js} +0 -0
- package/dist/cjs/clockpicker.js +7 -7
- package/dist/cjs/datepicker.js +8 -8
- package/dist/cjs/datetimepicker.js +10 -10
- package/dist/cjs/dialog.js +10 -10
- package/dist/cjs/dropdown.js +2 -2
- package/dist/cjs/field.js +1 -1
- package/dist/cjs/helpers.js +50 -50
- package/dist/cjs/icon.js +1 -1
- package/dist/cjs/image.js +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/input.js +3 -3
- package/dist/cjs/loading.js +1 -1
- package/dist/cjs/menu.js +1 -1
- package/dist/cjs/message.js +2 -2
- package/dist/cjs/modal.js +1 -1
- package/dist/cjs/notification.js +3 -3
- package/dist/cjs/numberinput.js +6 -6
- package/dist/cjs/pagination.js +2 -2
- package/dist/cjs/progress.js +1 -1
- package/dist/cjs/rate.js +1 -1
- package/dist/cjs/select.js +3 -3
- package/dist/cjs/slider.js +1 -1
- package/dist/cjs/snackbar.js +1 -1
- package/dist/cjs/steps.js +4 -4
- package/dist/cjs/table.js +7 -7
- package/dist/cjs/tabs.js +4 -4
- package/dist/cjs/taginput.js +4 -4
- package/dist/cjs/timepicker.js +9 -9
- package/dist/cjs/toast.js +1 -1
- package/dist/cjs/tooltip.js +1 -1
- package/dist/cjs/upload.js +1 -1
- package/dist/components/autocomplete/index.js +5 -5
- package/dist/components/autocomplete/index.min.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +3 -3
- package/dist/components/button/index.min.js +1 -1
- package/dist/components/carousel/index.js +26 -26
- package/dist/components/carousel/index.min.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +22 -20
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/datepicker/index.js +71 -69
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +71 -69
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +10 -10
- package/dist/components/dialog/index.min.js +1 -1
- package/dist/components/dropdown/index.js +6 -6
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +5 -3
- package/dist/components/field/index.min.js +2 -2
- package/dist/components/icon/index.js +3 -3
- package/dist/components/icon/index.min.js +1 -1
- package/dist/components/image/index.js +4 -4
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +3 -3
- package/dist/components/input/index.min.js +1 -1
- package/dist/components/loading/index.js +3 -3
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +3 -3
- package/dist/components/menu/index.min.js +1 -1
- package/dist/components/message/index.js +3 -3
- package/dist/components/message/index.min.js +1 -1
- package/dist/components/modal/index.js +3 -3
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +1 -1
- package/dist/components/navbar/index.min.js +1 -1
- package/dist/components/notification/index.js +3 -3
- package/dist/components/notification/index.min.js +1 -1
- package/dist/components/numberinput/index.js +6 -6
- package/dist/components/numberinput/index.min.js +1 -1
- package/dist/components/pagination/index.js +3 -3
- package/dist/components/pagination/index.min.js +1 -1
- package/dist/components/progress/index.js +6 -6
- package/dist/components/progress/index.min.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +3 -3
- package/dist/components/rate/index.min.js +1 -1
- package/dist/components/select/index.js +3 -3
- package/dist/components/select/index.min.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/index.min.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +7 -7
- package/dist/components/slider/index.min.js +1 -1
- package/dist/components/snackbar/index.js +3 -3
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +14 -14
- package/dist/components/steps/index.min.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +10 -10
- package/dist/components/table/index.min.js +1 -1
- package/dist/components/tabs/index.js +14 -14
- package/dist/components/tabs/index.min.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +5 -5
- package/dist/components/taginput/index.min.js +1 -1
- package/dist/components/timepicker/index.js +22 -20
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +3 -3
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/index.min.js +1 -1
- package/dist/esm/autocomplete.js +5 -5
- package/dist/esm/button.js +3 -3
- package/dist/esm/carousel.js +5 -5
- package/dist/esm/{chunk-3dbb54cd.js → chunk-18e8b067.js} +1 -1
- package/dist/esm/{chunk-7d9db167.js → chunk-21fc0948.js} +6 -6
- package/dist/esm/{chunk-a146937d.js → chunk-22e9f916.js} +45 -45
- package/dist/esm/{chunk-18fcd4ac.js → chunk-29ca0df8.js} +0 -0
- package/dist/esm/{chunk-affd6df1.js → chunk-3773c62d.js} +0 -0
- package/dist/esm/{chunk-7ee6c15c.js → chunk-4b67a181.js} +1 -1
- package/dist/esm/{chunk-f97f6a90.js → chunk-6019fd7a.js} +2 -2
- package/dist/esm/{chunk-d9794c38.js → chunk-71a547bc.js} +0 -0
- package/dist/esm/{chunk-161dac72.js → chunk-75a5af93.js} +0 -0
- package/dist/esm/{chunk-4f046bae.js → chunk-799e084d.js} +0 -0
- package/dist/esm/{chunk-6b53dd42.js → chunk-83eb0d37.js} +2 -2
- package/dist/esm/{chunk-80ec133b.js → chunk-8d0f95b8.js} +3 -3
- package/dist/esm/{chunk-50188ced.js → chunk-9f7f7441.js} +0 -0
- package/dist/esm/{chunk-3098b0e9.js → chunk-ae8ab23a.js} +2 -2
- package/dist/esm/{chunk-0f30042f.js → chunk-b07e3182.js} +4 -2
- package/dist/esm/{chunk-a64bdef6.js → chunk-b0c0c6b0.js} +0 -0
- package/dist/esm/{chunk-cdfb7fda.js → chunk-c9c58d0c.js} +0 -0
- package/dist/esm/{chunk-f6b30428.js → chunk-d7f92d97.js} +1 -1
- package/dist/esm/{chunk-9957ac1a.js → chunk-d92f0cd9.js} +0 -0
- package/dist/esm/{chunk-72ad8d50.js → chunk-e7c9b2cb.js} +1 -1
- package/dist/esm/{chunk-8b279c1f.js → chunk-ece062a7.js} +1 -1
- package/dist/esm/clockpicker.js +7 -7
- package/dist/esm/datepicker.js +9 -9
- package/dist/esm/datetimepicker.js +10 -10
- package/dist/esm/dialog.js +10 -10
- package/dist/esm/dropdown.js +3 -3
- package/dist/esm/field.js +2 -2
- package/dist/esm/helpers.js +50 -50
- package/dist/esm/icon.js +2 -2
- package/dist/esm/image.js +2 -2
- package/dist/esm/index.js +21 -21
- package/dist/esm/input.js +4 -4
- package/dist/esm/loading.js +2 -2
- package/dist/esm/menu.js +1 -1
- package/dist/esm/message.js +2 -2
- package/dist/esm/modal.js +2 -2
- package/dist/esm/notification.js +3 -3
- package/dist/esm/numberinput.js +6 -6
- package/dist/esm/pagination.js +3 -3
- package/dist/esm/progress.js +1 -1
- package/dist/esm/rate.js +1 -1
- package/dist/esm/select.js +4 -4
- package/dist/esm/slider.js +1 -1
- package/dist/esm/snackbar.js +1 -1
- package/dist/esm/steps.js +4 -4
- package/dist/esm/table.js +7 -7
- package/dist/esm/tabs.js +4 -4
- package/dist/esm/taginput.js +4 -4
- package/dist/esm/timepicker.js +10 -10
- package/dist/esm/toast.js +1 -1
- package/dist/esm/tooltip.js +2 -2
- package/dist/esm/upload.js +1 -1
- package/package.json +171 -171
- package/src/components/breadcrumb/BreadcrumbItem.spec.js +25 -25
- package/src/components/carousel/CarouselList.vue +313 -313
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +156 -156
- package/src/components/datepicker/Datepicker.vue +843 -843
- package/src/components/dialog/Dialog.vue +256 -256
- package/src/components/field/Field.vue +3 -3
- package/src/components/image/Image.vue +309 -309
- package/src/components/numberinput/Numberinput.vue +309 -309
- package/src/utils/helpers.js +291 -291
package/dist/buefy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
/**
|
|
142
|
-
* +/- function to native math sign
|
|
141
|
+
/**
|
|
142
|
+
* +/- function to native math sign
|
|
143
143
|
*/
|
|
144
144
|
function signPoly(value) {
|
|
145
145
|
if (value < 0) return -1;
|
|
@@ -147,41 +147,41 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
var sign = Math.sign || signPoly;
|
|
150
|
-
/**
|
|
151
|
-
* Checks if the flag is set
|
|
152
|
-
* @param val
|
|
153
|
-
* @param flag
|
|
154
|
-
* @returns {boolean}
|
|
150
|
+
/**
|
|
151
|
+
* Checks if the flag is set
|
|
152
|
+
* @param val
|
|
153
|
+
* @param flag
|
|
154
|
+
* @returns {boolean}
|
|
155
155
|
*/
|
|
156
156
|
|
|
157
157
|
function hasFlag(val, flag) {
|
|
158
158
|
return (val & flag) === flag;
|
|
159
159
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Native modulo bug with negative numbers
|
|
162
|
-
* @param n
|
|
163
|
-
* @param mod
|
|
164
|
-
* @returns {number}
|
|
160
|
+
/**
|
|
161
|
+
* Native modulo bug with negative numbers
|
|
162
|
+
* @param n
|
|
163
|
+
* @param mod
|
|
164
|
+
* @returns {number}
|
|
165
165
|
*/
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
function mod(n, mod) {
|
|
169
169
|
return (n % mod + mod) % mod;
|
|
170
170
|
}
|
|
171
|
-
/**
|
|
172
|
-
* Asserts a value is beetween min and max
|
|
173
|
-
* @param val
|
|
174
|
-
* @param min
|
|
175
|
-
* @param max
|
|
176
|
-
* @returns {number}
|
|
171
|
+
/**
|
|
172
|
+
* Asserts a value is beetween min and max
|
|
173
|
+
* @param val
|
|
174
|
+
* @param min
|
|
175
|
+
* @param max
|
|
176
|
+
* @returns {number}
|
|
177
177
|
*/
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
function bound(val, min, max) {
|
|
181
181
|
return Math.max(min, Math.min(max, val));
|
|
182
182
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Get value of an object property/path even if it's nested
|
|
183
|
+
/**
|
|
184
|
+
* Get value of an object property/path even if it's nested
|
|
185
185
|
*/
|
|
186
186
|
|
|
187
187
|
function getValueByPath(obj, path) {
|
|
@@ -189,8 +189,8 @@
|
|
|
189
189
|
return o ? o[i] : null;
|
|
190
190
|
}, obj);
|
|
191
191
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Extension of indexOf method by equality function if specified
|
|
192
|
+
/**
|
|
193
|
+
* Extension of indexOf method by equality function if specified
|
|
194
194
|
*/
|
|
195
195
|
|
|
196
196
|
function indexOf(array, obj, fn) {
|
|
@@ -205,8 +205,8 @@
|
|
|
205
205
|
|
|
206
206
|
return -1;
|
|
207
207
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Merge function to replace Object.assign with deep merging possibility
|
|
208
|
+
/**
|
|
209
|
+
* Merge function to replace Object.assign with deep merging possibility
|
|
210
210
|
*/
|
|
211
211
|
|
|
212
212
|
var isObject = function isObject(item) {
|
|
@@ -233,9 +233,9 @@
|
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
var merge = mergeFn;
|
|
236
|
-
/**
|
|
237
|
-
* Mobile detection
|
|
238
|
-
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
236
|
+
/**
|
|
237
|
+
* Mobile detection
|
|
238
|
+
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
239
239
|
*/
|
|
240
240
|
|
|
241
241
|
var isMobile = {
|
|
@@ -280,9 +280,9 @@
|
|
|
280
280
|
function isVueComponent(c) {
|
|
281
281
|
return c && c._isVue;
|
|
282
282
|
}
|
|
283
|
-
/**
|
|
284
|
-
* Escape regex characters
|
|
285
|
-
* http://stackoverflow.com/a/6969486
|
|
283
|
+
/**
|
|
284
|
+
* Escape regex characters
|
|
285
|
+
* http://stackoverflow.com/a/6969486
|
|
286
286
|
*/
|
|
287
287
|
|
|
288
288
|
function escapeRegExpChars(value) {
|
|
@@ -330,11 +330,11 @@
|
|
|
330
330
|
function toCssWidth(width) {
|
|
331
331
|
return width === undefined ? null : isNaN(width) ? width : width + 'px';
|
|
332
332
|
}
|
|
333
|
-
/**
|
|
334
|
-
* Return month names according to a specified locale
|
|
335
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
336
|
-
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
337
|
-
* @return {Array<String>} An array of month names
|
|
333
|
+
/**
|
|
334
|
+
* Return month names according to a specified locale
|
|
335
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
336
|
+
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
337
|
+
* @return {Array<String>} An array of month names
|
|
338
338
|
*/
|
|
339
339
|
|
|
340
340
|
function getMonthNames() {
|
|
@@ -353,11 +353,11 @@
|
|
|
353
353
|
return dtf.format(d);
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
/**
|
|
357
|
-
* Return weekday names according to a specified locale
|
|
358
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
359
|
-
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
360
|
-
* @return {Array<String>} An array of weekday names
|
|
356
|
+
/**
|
|
357
|
+
* Return weekday names according to a specified locale
|
|
358
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
359
|
+
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
360
|
+
* @return {Array<String>} An array of weekday names
|
|
361
361
|
*/
|
|
362
362
|
|
|
363
363
|
function getWeekdayNames() {
|
|
@@ -377,13 +377,13 @@
|
|
|
377
377
|
return dtf.format(d);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
/**
|
|
381
|
-
* Accept a regex with group names and return an object
|
|
382
|
-
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
383
|
-
* will return { year: 2000, month: 12, day: 25 }
|
|
384
|
-
* @param {String} includes injections of (?!={groupname}) for each group
|
|
385
|
-
* @param {String} the string to run regex
|
|
386
|
-
* @return {Object} an object with a property for each group having the group's match as the value
|
|
380
|
+
/**
|
|
381
|
+
* Accept a regex with group names and return an object
|
|
382
|
+
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
383
|
+
* will return { year: 2000, month: 12, day: 25 }
|
|
384
|
+
* @param {String} includes injections of (?!={groupname}) for each group
|
|
385
|
+
* @param {String} the string to run regex
|
|
386
|
+
* @return {Object} an object with a property for each group having the group's match as the value
|
|
387
387
|
*/
|
|
388
388
|
|
|
389
389
|
function matchWithGroups(pattern, str) {
|
|
@@ -410,9 +410,9 @@
|
|
|
410
410
|
return acc;
|
|
411
411
|
}, {});
|
|
412
412
|
}
|
|
413
|
-
/**
|
|
414
|
-
* Based on
|
|
415
|
-
* https://github.com/fregante/supports-webp
|
|
413
|
+
/**
|
|
414
|
+
* Based on
|
|
415
|
+
* https://github.com/fregante/supports-webp
|
|
416
416
|
*/
|
|
417
417
|
|
|
418
418
|
function isWebpSupported() {
|
|
@@ -3109,8 +3109,8 @@
|
|
|
3109
3109
|
}
|
|
3110
3110
|
},
|
|
3111
3111
|
watch: {
|
|
3112
|
-
/**
|
|
3113
|
-
* When v-model is changed set the new active item.
|
|
3112
|
+
/**
|
|
3113
|
+
* When v-model is changed set the new active item.
|
|
3114
3114
|
*/
|
|
3115
3115
|
value: function value(_value) {
|
|
3116
3116
|
this.switchTo(this.asIndicator ? _value - (this.itemsToShow - 3) / 2 : _value);
|
|
@@ -5104,7 +5104,9 @@
|
|
|
5104
5104
|
this.parent.newType = this.newType;
|
|
5105
5105
|
}
|
|
5106
5106
|
|
|
5107
|
-
this.parent.
|
|
5107
|
+
if (!this.parent.message) {
|
|
5108
|
+
this.parent.newMessage = value;
|
|
5109
|
+
}
|
|
5108
5110
|
}
|
|
5109
5111
|
}
|
|
5110
5112
|
},
|
|
@@ -5147,7 +5149,7 @@
|
|
|
5147
5149
|
const __vue_script__$g = script$g;
|
|
5148
5150
|
|
|
5149
5151
|
/* template */
|
|
5150
|
-
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false
|
|
5152
|
+
var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
|
|
5151
5153
|
var __vue_staticRenderFns__$e = [];
|
|
5152
5154
|
|
|
5153
5155
|
/* style */
|
|
@@ -7166,9 +7168,9 @@
|
|
|
7166
7168
|
});
|
|
7167
7169
|
},
|
|
7168
7170
|
|
|
7169
|
-
/*
|
|
7170
|
-
* Returns an array of years for the year dropdown. If earliest/latest
|
|
7171
|
-
* dates are set by props, range of years will fall within those dates.
|
|
7171
|
+
/*
|
|
7172
|
+
* Returns an array of years for the year dropdown. If earliest/latest
|
|
7173
|
+
* dates are set by props, range of years will fall within those dates.
|
|
7172
7174
|
*/
|
|
7173
7175
|
listOfYears: function listOfYears() {
|
|
7174
7176
|
var latestYear = this.focusedDateData.year + this.yearsRange[1];
|
|
@@ -7226,10 +7228,10 @@
|
|
|
7226
7228
|
}
|
|
7227
7229
|
},
|
|
7228
7230
|
watch: {
|
|
7229
|
-
/**
|
|
7230
|
-
* When v-model is changed:
|
|
7231
|
-
* 1. Update internal value.
|
|
7232
|
-
* 2. If it's invalid, validate again.
|
|
7231
|
+
/**
|
|
7232
|
+
* When v-model is changed:
|
|
7233
|
+
* 1. Update internal value.
|
|
7234
|
+
* 2. If it's invalid, validate again.
|
|
7233
7235
|
*/
|
|
7234
7236
|
value: function value(_value) {
|
|
7235
7237
|
this.updateInternalState(_value);
|
|
@@ -7245,8 +7247,8 @@
|
|
|
7245
7247
|
}
|
|
7246
7248
|
},
|
|
7247
7249
|
|
|
7248
|
-
/*
|
|
7249
|
-
* Emit input event on month and/or year change
|
|
7250
|
+
/*
|
|
7251
|
+
* Emit input event on month and/or year change
|
|
7250
7252
|
*/
|
|
7251
7253
|
'focusedDateData.month': function focusedDateDataMonth(value) {
|
|
7252
7254
|
this.$emit('change-month', value);
|
|
@@ -7256,8 +7258,8 @@
|
|
|
7256
7258
|
}
|
|
7257
7259
|
},
|
|
7258
7260
|
methods: {
|
|
7259
|
-
/*
|
|
7260
|
-
* Parse string into date
|
|
7261
|
+
/*
|
|
7262
|
+
* Parse string into date
|
|
7261
7263
|
*/
|
|
7262
7264
|
onChange: function onChange(value) {
|
|
7263
7265
|
var date = this.dateParser(value, this);
|
|
@@ -7274,8 +7276,8 @@
|
|
|
7274
7276
|
}
|
|
7275
7277
|
},
|
|
7276
7278
|
|
|
7277
|
-
/*
|
|
7278
|
-
* Format date into string
|
|
7279
|
+
/*
|
|
7280
|
+
* Format date into string
|
|
7279
7281
|
*/
|
|
7280
7282
|
formatValue: function formatValue(value) {
|
|
7281
7283
|
if (Array.isArray(value)) {
|
|
@@ -7288,9 +7290,9 @@
|
|
|
7288
7290
|
return value && !isNaN(value) ? this.dateFormatter(value, this) : null;
|
|
7289
7291
|
},
|
|
7290
7292
|
|
|
7291
|
-
/*
|
|
7292
|
-
* Either decrement month by 1 if not January or decrement year by 1
|
|
7293
|
-
* and set month to 11 (December) or decrement year when 'month'
|
|
7293
|
+
/*
|
|
7294
|
+
* Either decrement month by 1 if not January or decrement year by 1
|
|
7295
|
+
* and set month to 11 (December) or decrement year when 'month'
|
|
7294
7296
|
*/
|
|
7295
7297
|
prev: function prev() {
|
|
7296
7298
|
if (this.disabled) return;
|
|
@@ -7307,9 +7309,9 @@
|
|
|
7307
7309
|
}
|
|
7308
7310
|
},
|
|
7309
7311
|
|
|
7310
|
-
/*
|
|
7311
|
-
* Either increment month by 1 if not December or increment year by 1
|
|
7312
|
-
* and set month to 0 (January) or increment year when 'month'
|
|
7312
|
+
/*
|
|
7313
|
+
* Either increment month by 1 if not December or increment year by 1
|
|
7314
|
+
* and set month to 0 (January) or increment year when 'month'
|
|
7313
7315
|
*/
|
|
7314
7316
|
next: function next() {
|
|
7315
7317
|
if (this.disabled) return;
|
|
@@ -7329,8 +7331,8 @@
|
|
|
7329
7331
|
return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);
|
|
7330
7332
|
},
|
|
7331
7333
|
|
|
7332
|
-
/*
|
|
7333
|
-
* Format date into string 'YYYY-MM-DD'
|
|
7334
|
+
/*
|
|
7335
|
+
* Format date into string 'YYYY-MM-DD'
|
|
7334
7336
|
*/
|
|
7335
7337
|
formatYYYYMMDD: function formatYYYYMMDD(value) {
|
|
7336
7338
|
var date = new Date(value);
|
|
@@ -7345,8 +7347,8 @@
|
|
|
7345
7347
|
return '';
|
|
7346
7348
|
},
|
|
7347
7349
|
|
|
7348
|
-
/*
|
|
7349
|
-
* Format date into string 'YYYY-MM'
|
|
7350
|
+
/*
|
|
7351
|
+
* Format date into string 'YYYY-MM'
|
|
7350
7352
|
*/
|
|
7351
7353
|
formatYYYYMM: function formatYYYYMM(value) {
|
|
7352
7354
|
var date = new Date(value);
|
|
@@ -7360,8 +7362,8 @@
|
|
|
7360
7362
|
return '';
|
|
7361
7363
|
},
|
|
7362
7364
|
|
|
7363
|
-
/*
|
|
7364
|
-
* Parse date from string
|
|
7365
|
+
/*
|
|
7366
|
+
* Parse date from string
|
|
7365
7367
|
*/
|
|
7366
7368
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
7367
7369
|
var date = event.target.value;
|
|
@@ -7392,8 +7394,8 @@
|
|
|
7392
7394
|
this.dateSelected = value;
|
|
7393
7395
|
},
|
|
7394
7396
|
|
|
7395
|
-
/*
|
|
7396
|
-
* Toggle datepicker
|
|
7397
|
+
/*
|
|
7398
|
+
* Toggle datepicker
|
|
7397
7399
|
*/
|
|
7398
7400
|
togglePicker: function togglePicker(active) {
|
|
7399
7401
|
if (this.$refs.dropdown) {
|
|
@@ -7407,8 +7409,8 @@
|
|
|
7407
7409
|
}
|
|
7408
7410
|
},
|
|
7409
7411
|
|
|
7410
|
-
/*
|
|
7411
|
-
* Call default onFocus method and show datepicker
|
|
7412
|
+
/*
|
|
7413
|
+
* Call default onFocus method and show datepicker
|
|
7412
7414
|
*/
|
|
7413
7415
|
handleOnFocus: function handleOnFocus(event) {
|
|
7414
7416
|
this.onFocus(event);
|
|
@@ -7418,8 +7420,8 @@
|
|
|
7418
7420
|
}
|
|
7419
7421
|
},
|
|
7420
7422
|
|
|
7421
|
-
/*
|
|
7422
|
-
* Toggle dropdown
|
|
7423
|
+
/*
|
|
7424
|
+
* Toggle dropdown
|
|
7423
7425
|
*/
|
|
7424
7426
|
toggle: function toggle() {
|
|
7425
7427
|
if (this.mobileNative && this.isMobile) {
|
|
@@ -7432,8 +7434,8 @@
|
|
|
7432
7434
|
this.$refs.dropdown.toggle();
|
|
7433
7435
|
},
|
|
7434
7436
|
|
|
7435
|
-
/*
|
|
7436
|
-
* Avoid dropdown toggle when is already visible
|
|
7437
|
+
/*
|
|
7438
|
+
* Avoid dropdown toggle when is already visible
|
|
7437
7439
|
*/
|
|
7438
7440
|
onInputClick: function onInputClick(event) {
|
|
7439
7441
|
if (this.$refs.dropdown.isActive) {
|
|
@@ -7441,8 +7443,8 @@
|
|
|
7441
7443
|
}
|
|
7442
7444
|
},
|
|
7443
7445
|
|
|
7444
|
-
/**
|
|
7445
|
-
* Keypress event that is bound to the document.
|
|
7446
|
+
/**
|
|
7447
|
+
* Keypress event that is bound to the document.
|
|
7446
7448
|
*/
|
|
7447
7449
|
keyPress: function keyPress(_ref) {
|
|
7448
7450
|
var key = _ref.key;
|
|
@@ -7452,15 +7454,15 @@
|
|
|
7452
7454
|
}
|
|
7453
7455
|
},
|
|
7454
7456
|
|
|
7455
|
-
/**
|
|
7456
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
7457
|
+
/**
|
|
7458
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
7457
7459
|
*/
|
|
7458
7460
|
onActiveChange: function onActiveChange(value) {
|
|
7459
7461
|
if (!value) {
|
|
7460
7462
|
this.onBlur();
|
|
7461
7463
|
}
|
|
7462
|
-
/*
|
|
7463
|
-
* Emit 'active-change' when on dropdown active state change
|
|
7464
|
+
/*
|
|
7465
|
+
* Emit 'active-change' when on dropdown active state change
|
|
7464
7466
|
*/
|
|
7465
7467
|
|
|
7466
7468
|
|
|
@@ -8290,8 +8292,8 @@
|
|
|
8290
8292
|
}];
|
|
8291
8293
|
},
|
|
8292
8294
|
|
|
8293
|
-
/**
|
|
8294
|
-
* Icon name (MDI) based on the type.
|
|
8295
|
+
/**
|
|
8296
|
+
* Icon name (MDI) based on the type.
|
|
8295
8297
|
*/
|
|
8296
8298
|
iconByType: function iconByType() {
|
|
8297
8299
|
switch (this.type) {
|
|
@@ -8316,9 +8318,9 @@
|
|
|
8316
8318
|
}
|
|
8317
8319
|
},
|
|
8318
8320
|
methods: {
|
|
8319
|
-
/**
|
|
8320
|
-
* If it's a prompt Dialog, validate the input.
|
|
8321
|
-
* Call the onConfirm prop (function) and close the Dialog.
|
|
8321
|
+
/**
|
|
8322
|
+
* If it's a prompt Dialog, validate the input.
|
|
8323
|
+
* Call the onConfirm prop (function) and close the Dialog.
|
|
8322
8324
|
*/
|
|
8323
8325
|
confirm: function confirm() {
|
|
8324
8326
|
var _this = this;
|
|
@@ -8340,8 +8342,8 @@
|
|
|
8340
8342
|
if (this.closeOnConfirm) this.close();
|
|
8341
8343
|
},
|
|
8342
8344
|
|
|
8343
|
-
/**
|
|
8344
|
-
* Close the Dialog.
|
|
8345
|
+
/**
|
|
8346
|
+
* Close the Dialog.
|
|
8345
8347
|
*/
|
|
8346
8348
|
close: function close() {
|
|
8347
8349
|
var _this2 = this;
|
|
@@ -10382,9 +10384,9 @@
|
|
|
10382
10384
|
}
|
|
10383
10385
|
},
|
|
10384
10386
|
watch: {
|
|
10385
|
-
/**
|
|
10386
|
-
* When v-model is changed:
|
|
10387
|
-
* 1. Set internal value.
|
|
10387
|
+
/**
|
|
10388
|
+
* When v-model is changed:
|
|
10389
|
+
* 1. Set internal value.
|
|
10388
10390
|
*/
|
|
10389
10391
|
value: {
|
|
10390
10392
|
immediate: true,
|