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.css
CHANGED
package/dist/buefy.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.13 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
function _typeof(obj) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
|
|
@@ -132,8 +132,8 @@ function _nonIterableRest() {
|
|
|
132
132
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
/**
|
|
136
|
-
* +/- function to native math sign
|
|
135
|
+
/**
|
|
136
|
+
* +/- function to native math sign
|
|
137
137
|
*/
|
|
138
138
|
function signPoly(value) {
|
|
139
139
|
if (value < 0) return -1;
|
|
@@ -141,41 +141,41 @@ function signPoly(value) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
var sign = Math.sign || signPoly;
|
|
144
|
-
/**
|
|
145
|
-
* Checks if the flag is set
|
|
146
|
-
* @param val
|
|
147
|
-
* @param flag
|
|
148
|
-
* @returns {boolean}
|
|
144
|
+
/**
|
|
145
|
+
* Checks if the flag is set
|
|
146
|
+
* @param val
|
|
147
|
+
* @param flag
|
|
148
|
+
* @returns {boolean}
|
|
149
149
|
*/
|
|
150
150
|
|
|
151
151
|
function hasFlag(val, flag) {
|
|
152
152
|
return (val & flag) === flag;
|
|
153
153
|
}
|
|
154
|
-
/**
|
|
155
|
-
* Native modulo bug with negative numbers
|
|
156
|
-
* @param n
|
|
157
|
-
* @param mod
|
|
158
|
-
* @returns {number}
|
|
154
|
+
/**
|
|
155
|
+
* Native modulo bug with negative numbers
|
|
156
|
+
* @param n
|
|
157
|
+
* @param mod
|
|
158
|
+
* @returns {number}
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
function mod(n, mod) {
|
|
163
163
|
return (n % mod + mod) % mod;
|
|
164
164
|
}
|
|
165
|
-
/**
|
|
166
|
-
* Asserts a value is beetween min and max
|
|
167
|
-
* @param val
|
|
168
|
-
* @param min
|
|
169
|
-
* @param max
|
|
170
|
-
* @returns {number}
|
|
165
|
+
/**
|
|
166
|
+
* Asserts a value is beetween min and max
|
|
167
|
+
* @param val
|
|
168
|
+
* @param min
|
|
169
|
+
* @param max
|
|
170
|
+
* @returns {number}
|
|
171
171
|
*/
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
function bound(val, min, max) {
|
|
175
175
|
return Math.max(min, Math.min(max, val));
|
|
176
176
|
}
|
|
177
|
-
/**
|
|
178
|
-
* Get value of an object property/path even if it's nested
|
|
177
|
+
/**
|
|
178
|
+
* Get value of an object property/path even if it's nested
|
|
179
179
|
*/
|
|
180
180
|
|
|
181
181
|
function getValueByPath(obj, path) {
|
|
@@ -183,8 +183,8 @@ function getValueByPath(obj, path) {
|
|
|
183
183
|
return o ? o[i] : null;
|
|
184
184
|
}, obj);
|
|
185
185
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Extension of indexOf method by equality function if specified
|
|
186
|
+
/**
|
|
187
|
+
* Extension of indexOf method by equality function if specified
|
|
188
188
|
*/
|
|
189
189
|
|
|
190
190
|
function indexOf(array, obj, fn) {
|
|
@@ -199,8 +199,8 @@ function indexOf(array, obj, fn) {
|
|
|
199
199
|
|
|
200
200
|
return -1;
|
|
201
201
|
}
|
|
202
|
-
/**
|
|
203
|
-
* Merge function to replace Object.assign with deep merging possibility
|
|
202
|
+
/**
|
|
203
|
+
* Merge function to replace Object.assign with deep merging possibility
|
|
204
204
|
*/
|
|
205
205
|
|
|
206
206
|
var isObject = function isObject(item) {
|
|
@@ -227,9 +227,9 @@ var mergeFn = function mergeFn(target, source) {
|
|
|
227
227
|
};
|
|
228
228
|
|
|
229
229
|
var merge = mergeFn;
|
|
230
|
-
/**
|
|
231
|
-
* Mobile detection
|
|
232
|
-
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
230
|
+
/**
|
|
231
|
+
* Mobile detection
|
|
232
|
+
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
233
233
|
*/
|
|
234
234
|
|
|
235
235
|
var isMobile = {
|
|
@@ -274,9 +274,9 @@ function createAbsoluteElement(el) {
|
|
|
274
274
|
function isVueComponent(c) {
|
|
275
275
|
return c && c._isVue;
|
|
276
276
|
}
|
|
277
|
-
/**
|
|
278
|
-
* Escape regex characters
|
|
279
|
-
* http://stackoverflow.com/a/6969486
|
|
277
|
+
/**
|
|
278
|
+
* Escape regex characters
|
|
279
|
+
* http://stackoverflow.com/a/6969486
|
|
280
280
|
*/
|
|
281
281
|
|
|
282
282
|
function escapeRegExpChars(value) {
|
|
@@ -324,11 +324,11 @@ function createNewEvent(eventName) {
|
|
|
324
324
|
function toCssWidth(width) {
|
|
325
325
|
return width === undefined ? null : isNaN(width) ? width : width + 'px';
|
|
326
326
|
}
|
|
327
|
-
/**
|
|
328
|
-
* Return month names according to a specified locale
|
|
329
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
330
|
-
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
331
|
-
* @return {Array<String>} An array of month names
|
|
327
|
+
/**
|
|
328
|
+
* Return month names according to a specified locale
|
|
329
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
330
|
+
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
331
|
+
* @return {Array<String>} An array of month names
|
|
332
332
|
*/
|
|
333
333
|
|
|
334
334
|
function getMonthNames() {
|
|
@@ -347,11 +347,11 @@ function getMonthNames() {
|
|
|
347
347
|
return dtf.format(d);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
/**
|
|
351
|
-
* Return weekday names according to a specified locale
|
|
352
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
353
|
-
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
354
|
-
* @return {Array<String>} An array of weekday names
|
|
350
|
+
/**
|
|
351
|
+
* Return weekday names according to a specified locale
|
|
352
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
353
|
+
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
354
|
+
* @return {Array<String>} An array of weekday names
|
|
355
355
|
*/
|
|
356
356
|
|
|
357
357
|
function getWeekdayNames() {
|
|
@@ -371,13 +371,13 @@ function getWeekdayNames() {
|
|
|
371
371
|
return dtf.format(d);
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
/**
|
|
375
|
-
* Accept a regex with group names and return an object
|
|
376
|
-
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
377
|
-
* will return { year: 2000, month: 12, day: 25 }
|
|
378
|
-
* @param {String} includes injections of (?!={groupname}) for each group
|
|
379
|
-
* @param {String} the string to run regex
|
|
380
|
-
* @return {Object} an object with a property for each group having the group's match as the value
|
|
374
|
+
/**
|
|
375
|
+
* Accept a regex with group names and return an object
|
|
376
|
+
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
377
|
+
* will return { year: 2000, month: 12, day: 25 }
|
|
378
|
+
* @param {String} includes injections of (?!={groupname}) for each group
|
|
379
|
+
* @param {String} the string to run regex
|
|
380
|
+
* @return {Object} an object with a property for each group having the group's match as the value
|
|
381
381
|
*/
|
|
382
382
|
|
|
383
383
|
function matchWithGroups(pattern, str) {
|
|
@@ -404,9 +404,9 @@ function matchWithGroups(pattern, str) {
|
|
|
404
404
|
return acc;
|
|
405
405
|
}, {});
|
|
406
406
|
}
|
|
407
|
-
/**
|
|
408
|
-
* Based on
|
|
409
|
-
* https://github.com/fregante/supports-webp
|
|
407
|
+
/**
|
|
408
|
+
* Based on
|
|
409
|
+
* https://github.com/fregante/supports-webp
|
|
410
410
|
*/
|
|
411
411
|
|
|
412
412
|
function isWebpSupported() {
|
|
@@ -3103,8 +3103,8 @@ var script$9 = {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
},
|
|
3105
3105
|
watch: {
|
|
3106
|
-
/**
|
|
3107
|
-
* When v-model is changed set the new active item.
|
|
3106
|
+
/**
|
|
3107
|
+
* When v-model is changed set the new active item.
|
|
3108
3108
|
*/
|
|
3109
3109
|
value: function value(_value) {
|
|
3110
3110
|
this.switchTo(this.asIndicator ? _value - (this.itemsToShow - 3) / 2 : _value);
|
|
@@ -5098,7 +5098,9 @@ var script$g = {
|
|
|
5098
5098
|
this.parent.newType = this.newType;
|
|
5099
5099
|
}
|
|
5100
5100
|
|
|
5101
|
-
this.parent.
|
|
5101
|
+
if (!this.parent.message) {
|
|
5102
|
+
this.parent.newMessage = value;
|
|
5103
|
+
}
|
|
5102
5104
|
}
|
|
5103
5105
|
}
|
|
5104
5106
|
},
|
|
@@ -5141,7 +5143,7 @@ var script$g = {
|
|
|
5141
5143
|
const __vue_script__$g = script$g;
|
|
5142
5144
|
|
|
5143
5145
|
/* template */
|
|
5144
|
-
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
|
|
5146
|
+
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)};
|
|
5145
5147
|
var __vue_staticRenderFns__$e = [];
|
|
5146
5148
|
|
|
5147
5149
|
/* style */
|
|
@@ -7160,9 +7162,9 @@ var script$n = {
|
|
|
7160
7162
|
});
|
|
7161
7163
|
},
|
|
7162
7164
|
|
|
7163
|
-
/*
|
|
7164
|
-
* Returns an array of years for the year dropdown. If earliest/latest
|
|
7165
|
-
* dates are set by props, range of years will fall within those dates.
|
|
7165
|
+
/*
|
|
7166
|
+
* Returns an array of years for the year dropdown. If earliest/latest
|
|
7167
|
+
* dates are set by props, range of years will fall within those dates.
|
|
7166
7168
|
*/
|
|
7167
7169
|
listOfYears: function listOfYears() {
|
|
7168
7170
|
var latestYear = this.focusedDateData.year + this.yearsRange[1];
|
|
@@ -7220,10 +7222,10 @@ var script$n = {
|
|
|
7220
7222
|
}
|
|
7221
7223
|
},
|
|
7222
7224
|
watch: {
|
|
7223
|
-
/**
|
|
7224
|
-
* When v-model is changed:
|
|
7225
|
-
* 1. Update internal value.
|
|
7226
|
-
* 2. If it's invalid, validate again.
|
|
7225
|
+
/**
|
|
7226
|
+
* When v-model is changed:
|
|
7227
|
+
* 1. Update internal value.
|
|
7228
|
+
* 2. If it's invalid, validate again.
|
|
7227
7229
|
*/
|
|
7228
7230
|
value: function value(_value) {
|
|
7229
7231
|
this.updateInternalState(_value);
|
|
@@ -7239,8 +7241,8 @@ var script$n = {
|
|
|
7239
7241
|
}
|
|
7240
7242
|
},
|
|
7241
7243
|
|
|
7242
|
-
/*
|
|
7243
|
-
* Emit input event on month and/or year change
|
|
7244
|
+
/*
|
|
7245
|
+
* Emit input event on month and/or year change
|
|
7244
7246
|
*/
|
|
7245
7247
|
'focusedDateData.month': function focusedDateDataMonth(value) {
|
|
7246
7248
|
this.$emit('change-month', value);
|
|
@@ -7250,8 +7252,8 @@ var script$n = {
|
|
|
7250
7252
|
}
|
|
7251
7253
|
},
|
|
7252
7254
|
methods: {
|
|
7253
|
-
/*
|
|
7254
|
-
* Parse string into date
|
|
7255
|
+
/*
|
|
7256
|
+
* Parse string into date
|
|
7255
7257
|
*/
|
|
7256
7258
|
onChange: function onChange(value) {
|
|
7257
7259
|
var date = this.dateParser(value, this);
|
|
@@ -7268,8 +7270,8 @@ var script$n = {
|
|
|
7268
7270
|
}
|
|
7269
7271
|
},
|
|
7270
7272
|
|
|
7271
|
-
/*
|
|
7272
|
-
* Format date into string
|
|
7273
|
+
/*
|
|
7274
|
+
* Format date into string
|
|
7273
7275
|
*/
|
|
7274
7276
|
formatValue: function formatValue(value) {
|
|
7275
7277
|
if (Array.isArray(value)) {
|
|
@@ -7282,9 +7284,9 @@ var script$n = {
|
|
|
7282
7284
|
return value && !isNaN(value) ? this.dateFormatter(value, this) : null;
|
|
7283
7285
|
},
|
|
7284
7286
|
|
|
7285
|
-
/*
|
|
7286
|
-
* Either decrement month by 1 if not January or decrement year by 1
|
|
7287
|
-
* and set month to 11 (December) or decrement year when 'month'
|
|
7287
|
+
/*
|
|
7288
|
+
* Either decrement month by 1 if not January or decrement year by 1
|
|
7289
|
+
* and set month to 11 (December) or decrement year when 'month'
|
|
7288
7290
|
*/
|
|
7289
7291
|
prev: function prev() {
|
|
7290
7292
|
if (this.disabled) return;
|
|
@@ -7301,9 +7303,9 @@ var script$n = {
|
|
|
7301
7303
|
}
|
|
7302
7304
|
},
|
|
7303
7305
|
|
|
7304
|
-
/*
|
|
7305
|
-
* Either increment month by 1 if not December or increment year by 1
|
|
7306
|
-
* and set month to 0 (January) or increment year when 'month'
|
|
7306
|
+
/*
|
|
7307
|
+
* Either increment month by 1 if not December or increment year by 1
|
|
7308
|
+
* and set month to 0 (January) or increment year when 'month'
|
|
7307
7309
|
*/
|
|
7308
7310
|
next: function next() {
|
|
7309
7311
|
if (this.disabled) return;
|
|
@@ -7323,8 +7325,8 @@ var script$n = {
|
|
|
7323
7325
|
return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);
|
|
7324
7326
|
},
|
|
7325
7327
|
|
|
7326
|
-
/*
|
|
7327
|
-
* Format date into string 'YYYY-MM-DD'
|
|
7328
|
+
/*
|
|
7329
|
+
* Format date into string 'YYYY-MM-DD'
|
|
7328
7330
|
*/
|
|
7329
7331
|
formatYYYYMMDD: function formatYYYYMMDD(value) {
|
|
7330
7332
|
var date = new Date(value);
|
|
@@ -7339,8 +7341,8 @@ var script$n = {
|
|
|
7339
7341
|
return '';
|
|
7340
7342
|
},
|
|
7341
7343
|
|
|
7342
|
-
/*
|
|
7343
|
-
* Format date into string 'YYYY-MM'
|
|
7344
|
+
/*
|
|
7345
|
+
* Format date into string 'YYYY-MM'
|
|
7344
7346
|
*/
|
|
7345
7347
|
formatYYYYMM: function formatYYYYMM(value) {
|
|
7346
7348
|
var date = new Date(value);
|
|
@@ -7354,8 +7356,8 @@ var script$n = {
|
|
|
7354
7356
|
return '';
|
|
7355
7357
|
},
|
|
7356
7358
|
|
|
7357
|
-
/*
|
|
7358
|
-
* Parse date from string
|
|
7359
|
+
/*
|
|
7360
|
+
* Parse date from string
|
|
7359
7361
|
*/
|
|
7360
7362
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
7361
7363
|
var date = event.target.value;
|
|
@@ -7386,8 +7388,8 @@ var script$n = {
|
|
|
7386
7388
|
this.dateSelected = value;
|
|
7387
7389
|
},
|
|
7388
7390
|
|
|
7389
|
-
/*
|
|
7390
|
-
* Toggle datepicker
|
|
7391
|
+
/*
|
|
7392
|
+
* Toggle datepicker
|
|
7391
7393
|
*/
|
|
7392
7394
|
togglePicker: function togglePicker(active) {
|
|
7393
7395
|
if (this.$refs.dropdown) {
|
|
@@ -7401,8 +7403,8 @@ var script$n = {
|
|
|
7401
7403
|
}
|
|
7402
7404
|
},
|
|
7403
7405
|
|
|
7404
|
-
/*
|
|
7405
|
-
* Call default onFocus method and show datepicker
|
|
7406
|
+
/*
|
|
7407
|
+
* Call default onFocus method and show datepicker
|
|
7406
7408
|
*/
|
|
7407
7409
|
handleOnFocus: function handleOnFocus(event) {
|
|
7408
7410
|
this.onFocus(event);
|
|
@@ -7412,8 +7414,8 @@ var script$n = {
|
|
|
7412
7414
|
}
|
|
7413
7415
|
},
|
|
7414
7416
|
|
|
7415
|
-
/*
|
|
7416
|
-
* Toggle dropdown
|
|
7417
|
+
/*
|
|
7418
|
+
* Toggle dropdown
|
|
7417
7419
|
*/
|
|
7418
7420
|
toggle: function toggle() {
|
|
7419
7421
|
if (this.mobileNative && this.isMobile) {
|
|
@@ -7426,8 +7428,8 @@ var script$n = {
|
|
|
7426
7428
|
this.$refs.dropdown.toggle();
|
|
7427
7429
|
},
|
|
7428
7430
|
|
|
7429
|
-
/*
|
|
7430
|
-
* Avoid dropdown toggle when is already visible
|
|
7431
|
+
/*
|
|
7432
|
+
* Avoid dropdown toggle when is already visible
|
|
7431
7433
|
*/
|
|
7432
7434
|
onInputClick: function onInputClick(event) {
|
|
7433
7435
|
if (this.$refs.dropdown.isActive) {
|
|
@@ -7435,8 +7437,8 @@ var script$n = {
|
|
|
7435
7437
|
}
|
|
7436
7438
|
},
|
|
7437
7439
|
|
|
7438
|
-
/**
|
|
7439
|
-
* Keypress event that is bound to the document.
|
|
7440
|
+
/**
|
|
7441
|
+
* Keypress event that is bound to the document.
|
|
7440
7442
|
*/
|
|
7441
7443
|
keyPress: function keyPress(_ref) {
|
|
7442
7444
|
var key = _ref.key;
|
|
@@ -7446,15 +7448,15 @@ var script$n = {
|
|
|
7446
7448
|
}
|
|
7447
7449
|
},
|
|
7448
7450
|
|
|
7449
|
-
/**
|
|
7450
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
7451
|
+
/**
|
|
7452
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
7451
7453
|
*/
|
|
7452
7454
|
onActiveChange: function onActiveChange(value) {
|
|
7453
7455
|
if (!value) {
|
|
7454
7456
|
this.onBlur();
|
|
7455
7457
|
}
|
|
7456
|
-
/*
|
|
7457
|
-
* Emit 'active-change' when on dropdown active state change
|
|
7458
|
+
/*
|
|
7459
|
+
* Emit 'active-change' when on dropdown active state change
|
|
7458
7460
|
*/
|
|
7459
7461
|
|
|
7460
7462
|
|
|
@@ -8284,8 +8286,8 @@ var script$r = {
|
|
|
8284
8286
|
}];
|
|
8285
8287
|
},
|
|
8286
8288
|
|
|
8287
|
-
/**
|
|
8288
|
-
* Icon name (MDI) based on the type.
|
|
8289
|
+
/**
|
|
8290
|
+
* Icon name (MDI) based on the type.
|
|
8289
8291
|
*/
|
|
8290
8292
|
iconByType: function iconByType() {
|
|
8291
8293
|
switch (this.type) {
|
|
@@ -8310,9 +8312,9 @@ var script$r = {
|
|
|
8310
8312
|
}
|
|
8311
8313
|
},
|
|
8312
8314
|
methods: {
|
|
8313
|
-
/**
|
|
8314
|
-
* If it's a prompt Dialog, validate the input.
|
|
8315
|
-
* Call the onConfirm prop (function) and close the Dialog.
|
|
8315
|
+
/**
|
|
8316
|
+
* If it's a prompt Dialog, validate the input.
|
|
8317
|
+
* Call the onConfirm prop (function) and close the Dialog.
|
|
8316
8318
|
*/
|
|
8317
8319
|
confirm: function confirm() {
|
|
8318
8320
|
var _this = this;
|
|
@@ -8334,8 +8336,8 @@ var script$r = {
|
|
|
8334
8336
|
if (this.closeOnConfirm) this.close();
|
|
8335
8337
|
},
|
|
8336
8338
|
|
|
8337
|
-
/**
|
|
8338
|
-
* Close the Dialog.
|
|
8339
|
+
/**
|
|
8340
|
+
* Close the Dialog.
|
|
8339
8341
|
*/
|
|
8340
8342
|
close: function close() {
|
|
8341
8343
|
var _this2 = this;
|
|
@@ -10376,9 +10378,9 @@ var script$D = {
|
|
|
10376
10378
|
}
|
|
10377
10379
|
},
|
|
10378
10380
|
watch: {
|
|
10379
|
-
/**
|
|
10380
|
-
* When v-model is changed:
|
|
10381
|
-
* 1. Set internal value.
|
|
10381
|
+
/**
|
|
10382
|
+
* When v-model is changed:
|
|
10383
|
+
* 1. Set internal value.
|
|
10382
10384
|
*/
|
|
10383
10385
|
value: {
|
|
10384
10386
|
immediate: true,
|