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
|
@@ -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) :
|
|
@@ -170,18 +170,18 @@
|
|
|
170
170
|
customIconPacks: null
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
/**
|
|
174
|
-
* Checks if the flag is set
|
|
175
|
-
* @param val
|
|
176
|
-
* @param flag
|
|
177
|
-
* @returns {boolean}
|
|
173
|
+
/**
|
|
174
|
+
* Checks if the flag is set
|
|
175
|
+
* @param val
|
|
176
|
+
* @param flag
|
|
177
|
+
* @returns {boolean}
|
|
178
178
|
*/
|
|
179
179
|
|
|
180
180
|
function hasFlag(val, flag) {
|
|
181
181
|
return (val & flag) === flag;
|
|
182
182
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Merge function to replace Object.assign with deep merging possibility
|
|
183
|
+
/**
|
|
184
|
+
* Merge function to replace Object.assign with deep merging possibility
|
|
185
185
|
*/
|
|
186
186
|
|
|
187
187
|
var isObject = function isObject(item) {
|
|
@@ -208,9 +208,9 @@
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
var merge = mergeFn;
|
|
211
|
-
/**
|
|
212
|
-
* Mobile detection
|
|
213
|
-
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
211
|
+
/**
|
|
212
|
+
* Mobile detection
|
|
213
|
+
* https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
|
|
214
214
|
*/
|
|
215
215
|
|
|
216
216
|
var isMobile = {
|
|
@@ -258,11 +258,11 @@
|
|
|
258
258
|
function toCssWidth(width) {
|
|
259
259
|
return width === undefined ? null : isNaN(width) ? width : width + 'px';
|
|
260
260
|
}
|
|
261
|
-
/**
|
|
262
|
-
* Return month names according to a specified locale
|
|
263
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
264
|
-
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
265
|
-
* @return {Array<String>} An array of month names
|
|
261
|
+
/**
|
|
262
|
+
* Return month names according to a specified locale
|
|
263
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
264
|
+
* @param {String} format long (ex. March), short (ex. Mar) or narrow (M)
|
|
265
|
+
* @return {Array<String>} An array of month names
|
|
266
266
|
*/
|
|
267
267
|
|
|
268
268
|
function getMonthNames() {
|
|
@@ -281,11 +281,11 @@
|
|
|
281
281
|
return dtf.format(d);
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
/**
|
|
285
|
-
* Return weekday names according to a specified locale
|
|
286
|
-
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
287
|
-
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
288
|
-
* @return {Array<String>} An array of weekday names
|
|
284
|
+
/**
|
|
285
|
+
* Return weekday names according to a specified locale
|
|
286
|
+
* @param {String} locale A bcp47 localerouter. undefined will use the user browser locale
|
|
287
|
+
* @param {String} format long (ex. Thursday), short (ex. Thu) or narrow (T)
|
|
288
|
+
* @return {Array<String>} An array of weekday names
|
|
289
289
|
*/
|
|
290
290
|
|
|
291
291
|
function getWeekdayNames() {
|
|
@@ -305,13 +305,13 @@
|
|
|
305
305
|
return dtf.format(d);
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
/**
|
|
309
|
-
* Accept a regex with group names and return an object
|
|
310
|
-
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
311
|
-
* will return { year: 2000, month: 12, day: 25 }
|
|
312
|
-
* @param {String} includes injections of (?!={groupname}) for each group
|
|
313
|
-
* @param {String} the string to run regex
|
|
314
|
-
* @return {Object} an object with a property for each group having the group's match as the value
|
|
308
|
+
/**
|
|
309
|
+
* Accept a regex with group names and return an object
|
|
310
|
+
* ex. matchWithGroups(/((?!=<year>)\d+)\/((?!=<month>)\d+)\/((?!=<day>)\d+)/, '2000/12/25')
|
|
311
|
+
* will return { year: 2000, month: 12, day: 25 }
|
|
312
|
+
* @param {String} includes injections of (?!={groupname}) for each group
|
|
313
|
+
* @param {String} the string to run regex
|
|
314
|
+
* @return {Object} an object with a property for each group having the group's match as the value
|
|
315
315
|
*/
|
|
316
316
|
|
|
317
317
|
function matchWithGroups(pattern, str) {
|
|
@@ -1992,7 +1992,9 @@
|
|
|
1992
1992
|
this.parent.newType = this.newType;
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
|
-
this.parent.
|
|
1995
|
+
if (!this.parent.message) {
|
|
1996
|
+
this.parent.newMessage = value;
|
|
1997
|
+
}
|
|
1996
1998
|
}
|
|
1997
1999
|
}
|
|
1998
2000
|
},
|
|
@@ -2035,7 +2037,7 @@
|
|
|
2035
2037
|
const __vue_script__$5 = script$5;
|
|
2036
2038
|
|
|
2037
2039
|
/* template */
|
|
2038
|
-
var __vue_render__$4 = 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
|
|
2040
|
+
var __vue_render__$4 = 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)};
|
|
2039
2041
|
var __vue_staticRenderFns__$4 = [];
|
|
2040
2042
|
|
|
2041
2043
|
/* style */
|
|
@@ -3607,9 +3609,9 @@
|
|
|
3607
3609
|
});
|
|
3608
3610
|
},
|
|
3609
3611
|
|
|
3610
|
-
/*
|
|
3611
|
-
* Returns an array of years for the year dropdown. If earliest/latest
|
|
3612
|
-
* dates are set by props, range of years will fall within those dates.
|
|
3612
|
+
/*
|
|
3613
|
+
* Returns an array of years for the year dropdown. If earliest/latest
|
|
3614
|
+
* dates are set by props, range of years will fall within those dates.
|
|
3613
3615
|
*/
|
|
3614
3616
|
listOfYears: function listOfYears() {
|
|
3615
3617
|
var latestYear = this.focusedDateData.year + this.yearsRange[1];
|
|
@@ -3667,10 +3669,10 @@
|
|
|
3667
3669
|
}
|
|
3668
3670
|
},
|
|
3669
3671
|
watch: {
|
|
3670
|
-
/**
|
|
3671
|
-
* When v-model is changed:
|
|
3672
|
-
* 1. Update internal value.
|
|
3673
|
-
* 2. If it's invalid, validate again.
|
|
3672
|
+
/**
|
|
3673
|
+
* When v-model is changed:
|
|
3674
|
+
* 1. Update internal value.
|
|
3675
|
+
* 2. If it's invalid, validate again.
|
|
3674
3676
|
*/
|
|
3675
3677
|
value: function value(_value) {
|
|
3676
3678
|
this.updateInternalState(_value);
|
|
@@ -3686,8 +3688,8 @@
|
|
|
3686
3688
|
}
|
|
3687
3689
|
},
|
|
3688
3690
|
|
|
3689
|
-
/*
|
|
3690
|
-
* Emit input event on month and/or year change
|
|
3691
|
+
/*
|
|
3692
|
+
* Emit input event on month and/or year change
|
|
3691
3693
|
*/
|
|
3692
3694
|
'focusedDateData.month': function focusedDateDataMonth(value) {
|
|
3693
3695
|
this.$emit('change-month', value);
|
|
@@ -3697,8 +3699,8 @@
|
|
|
3697
3699
|
}
|
|
3698
3700
|
},
|
|
3699
3701
|
methods: {
|
|
3700
|
-
/*
|
|
3701
|
-
* Parse string into date
|
|
3702
|
+
/*
|
|
3703
|
+
* Parse string into date
|
|
3702
3704
|
*/
|
|
3703
3705
|
onChange: function onChange(value) {
|
|
3704
3706
|
var date = this.dateParser(value, this);
|
|
@@ -3715,8 +3717,8 @@
|
|
|
3715
3717
|
}
|
|
3716
3718
|
},
|
|
3717
3719
|
|
|
3718
|
-
/*
|
|
3719
|
-
* Format date into string
|
|
3720
|
+
/*
|
|
3721
|
+
* Format date into string
|
|
3720
3722
|
*/
|
|
3721
3723
|
formatValue: function formatValue(value) {
|
|
3722
3724
|
if (Array.isArray(value)) {
|
|
@@ -3729,9 +3731,9 @@
|
|
|
3729
3731
|
return value && !isNaN(value) ? this.dateFormatter(value, this) : null;
|
|
3730
3732
|
},
|
|
3731
3733
|
|
|
3732
|
-
/*
|
|
3733
|
-
* Either decrement month by 1 if not January or decrement year by 1
|
|
3734
|
-
* and set month to 11 (December) or decrement year when 'month'
|
|
3734
|
+
/*
|
|
3735
|
+
* Either decrement month by 1 if not January or decrement year by 1
|
|
3736
|
+
* and set month to 11 (December) or decrement year when 'month'
|
|
3735
3737
|
*/
|
|
3736
3738
|
prev: function prev() {
|
|
3737
3739
|
if (this.disabled) return;
|
|
@@ -3748,9 +3750,9 @@
|
|
|
3748
3750
|
}
|
|
3749
3751
|
},
|
|
3750
3752
|
|
|
3751
|
-
/*
|
|
3752
|
-
* Either increment month by 1 if not December or increment year by 1
|
|
3753
|
-
* and set month to 0 (January) or increment year when 'month'
|
|
3753
|
+
/*
|
|
3754
|
+
* Either increment month by 1 if not December or increment year by 1
|
|
3755
|
+
* and set month to 0 (January) or increment year when 'month'
|
|
3754
3756
|
*/
|
|
3755
3757
|
next: function next() {
|
|
3756
3758
|
if (this.disabled) return;
|
|
@@ -3770,8 +3772,8 @@
|
|
|
3770
3772
|
return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);
|
|
3771
3773
|
},
|
|
3772
3774
|
|
|
3773
|
-
/*
|
|
3774
|
-
* Format date into string 'YYYY-MM-DD'
|
|
3775
|
+
/*
|
|
3776
|
+
* Format date into string 'YYYY-MM-DD'
|
|
3775
3777
|
*/
|
|
3776
3778
|
formatYYYYMMDD: function formatYYYYMMDD(value) {
|
|
3777
3779
|
var date = new Date(value);
|
|
@@ -3786,8 +3788,8 @@
|
|
|
3786
3788
|
return '';
|
|
3787
3789
|
},
|
|
3788
3790
|
|
|
3789
|
-
/*
|
|
3790
|
-
* Format date into string 'YYYY-MM'
|
|
3791
|
+
/*
|
|
3792
|
+
* Format date into string 'YYYY-MM'
|
|
3791
3793
|
*/
|
|
3792
3794
|
formatYYYYMM: function formatYYYYMM(value) {
|
|
3793
3795
|
var date = new Date(value);
|
|
@@ -3801,8 +3803,8 @@
|
|
|
3801
3803
|
return '';
|
|
3802
3804
|
},
|
|
3803
3805
|
|
|
3804
|
-
/*
|
|
3805
|
-
* Parse date from string
|
|
3806
|
+
/*
|
|
3807
|
+
* Parse date from string
|
|
3806
3808
|
*/
|
|
3807
3809
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
3808
3810
|
var date = event.target.value;
|
|
@@ -3833,8 +3835,8 @@
|
|
|
3833
3835
|
this.dateSelected = value;
|
|
3834
3836
|
},
|
|
3835
3837
|
|
|
3836
|
-
/*
|
|
3837
|
-
* Toggle datepicker
|
|
3838
|
+
/*
|
|
3839
|
+
* Toggle datepicker
|
|
3838
3840
|
*/
|
|
3839
3841
|
togglePicker: function togglePicker(active) {
|
|
3840
3842
|
if (this.$refs.dropdown) {
|
|
@@ -3848,8 +3850,8 @@
|
|
|
3848
3850
|
}
|
|
3849
3851
|
},
|
|
3850
3852
|
|
|
3851
|
-
/*
|
|
3852
|
-
* Call default onFocus method and show datepicker
|
|
3853
|
+
/*
|
|
3854
|
+
* Call default onFocus method and show datepicker
|
|
3853
3855
|
*/
|
|
3854
3856
|
handleOnFocus: function handleOnFocus(event) {
|
|
3855
3857
|
this.onFocus(event);
|
|
@@ -3859,8 +3861,8 @@
|
|
|
3859
3861
|
}
|
|
3860
3862
|
},
|
|
3861
3863
|
|
|
3862
|
-
/*
|
|
3863
|
-
* Toggle dropdown
|
|
3864
|
+
/*
|
|
3865
|
+
* Toggle dropdown
|
|
3864
3866
|
*/
|
|
3865
3867
|
toggle: function toggle() {
|
|
3866
3868
|
if (this.mobileNative && this.isMobile) {
|
|
@@ -3873,8 +3875,8 @@
|
|
|
3873
3875
|
this.$refs.dropdown.toggle();
|
|
3874
3876
|
},
|
|
3875
3877
|
|
|
3876
|
-
/*
|
|
3877
|
-
* Avoid dropdown toggle when is already visible
|
|
3878
|
+
/*
|
|
3879
|
+
* Avoid dropdown toggle when is already visible
|
|
3878
3880
|
*/
|
|
3879
3881
|
onInputClick: function onInputClick(event) {
|
|
3880
3882
|
if (this.$refs.dropdown.isActive) {
|
|
@@ -3882,8 +3884,8 @@
|
|
|
3882
3884
|
}
|
|
3883
3885
|
},
|
|
3884
3886
|
|
|
3885
|
-
/**
|
|
3886
|
-
* Keypress event that is bound to the document.
|
|
3887
|
+
/**
|
|
3888
|
+
* Keypress event that is bound to the document.
|
|
3887
3889
|
*/
|
|
3888
3890
|
keyPress: function keyPress(_ref) {
|
|
3889
3891
|
var key = _ref.key;
|
|
@@ -3893,15 +3895,15 @@
|
|
|
3893
3895
|
}
|
|
3894
3896
|
},
|
|
3895
3897
|
|
|
3896
|
-
/**
|
|
3897
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
3898
|
+
/**
|
|
3899
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
3898
3900
|
*/
|
|
3899
3901
|
onActiveChange: function onActiveChange(value) {
|
|
3900
3902
|
if (!value) {
|
|
3901
3903
|
this.onBlur();
|
|
3902
3904
|
}
|
|
3903
|
-
/*
|
|
3904
|
-
* Emit 'active-change' when on dropdown active state change
|
|
3905
|
+
/*
|
|
3906
|
+
* Emit 'active-change' when on dropdown active state change
|
|
3905
3907
|
*/
|
|
3906
3908
|
|
|
3907
3909
|
|