buefy 0.9.9 → 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/CHANGELOG.md +1639 -1609
- package/dist/buefy.css +20 -2
- package/dist/buefy.esm.js +2227 -1869
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +2266 -1907
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +6 -6
- package/dist/cjs/breadcrumb.js +127 -0
- package/dist/cjs/button.js +6 -107
- package/dist/cjs/carousel.js +9 -7
- package/dist/cjs/checkbox.js +5 -5
- package/dist/cjs/{chunk-d33a8a78.js → chunk-114191ae.js} +3 -3
- package/dist/cjs/{chunk-dafdb70c.js → chunk-2062216d.js} +39 -3
- package/dist/cjs/{chunk-64efc596.js → chunk-2911aa4b.js} +20 -16
- package/dist/cjs/{chunk-96ab31c1.js → chunk-2ae50815.js} +7 -7
- package/dist/cjs/{chunk-c3032504.js → chunk-2c7de785.js} +3 -3
- package/dist/cjs/{chunk-50ff3a78.js → chunk-30670fac.js} +96 -15
- package/dist/cjs/{chunk-e57b3891.js → chunk-34949503.js} +2 -2
- package/dist/cjs/{chunk-0abd2223.js → chunk-3b43d77a.js} +2 -2
- package/dist/cjs/{chunk-dcdbe2e8.js → chunk-3cc5d9a6.js} +1 -1
- package/dist/cjs/{chunk-0b57168e.js → chunk-61023b09.js} +3 -3
- package/dist/cjs/chunk-6cb902f8.js +314 -0
- package/dist/cjs/{chunk-adb01a93.js → chunk-7da0c017.js} +26 -24
- package/dist/cjs/{chunk-60255743.js → chunk-9103eeda.js} +4 -0
- package/dist/cjs/{chunk-14c82365.js → chunk-92621ff7.js} +37 -0
- package/dist/cjs/{chunk-816cba7a.js → chunk-9e4cf4c5.js} +1 -1
- package/dist/cjs/{chunk-33b9d1cf.js → chunk-a11294f9.js} +27 -26
- package/dist/cjs/{chunk-430b5370.js → chunk-bfcad370.js} +25 -2
- package/dist/cjs/{chunk-cc470e7c.js → chunk-c6fbc7b4.js} +7 -7
- package/dist/cjs/{chunk-993f89de.js → chunk-c7b2aa4b.js} +5 -4
- package/dist/cjs/{chunk-6474e963.js → chunk-d0f8ea39.js} +9 -9
- package/dist/cjs/{chunk-3acb500b.js → chunk-d120e215.js} +2 -2
- package/dist/cjs/{chunk-f5baaa70.js → chunk-d54e40f6.js} +2 -1
- package/dist/cjs/{chunk-916a2858.js → chunk-f5106717.js} +4 -4
- package/dist/cjs/chunk-fe2f57ee.js +110 -0
- package/dist/cjs/{chunk-2571dc7c.js → chunk-fefd7b77.js} +0 -0
- package/dist/cjs/clockpicker.js +11 -11
- package/dist/cjs/config.js +2 -2
- package/dist/cjs/datepicker.js +12 -12
- package/dist/cjs/datetimepicker.js +22 -15
- package/dist/cjs/dialog.js +13 -11
- package/dist/cjs/dropdown.js +8 -8
- package/dist/cjs/field.js +5 -5
- package/dist/cjs/helpers.js +2 -3
- package/dist/cjs/icon.js +3 -3
- package/dist/cjs/image.js +6 -311
- package/dist/cjs/index.js +29 -23
- package/dist/cjs/input.js +5 -5
- package/dist/cjs/loading.js +6 -6
- package/dist/cjs/menu.js +3 -3
- package/dist/cjs/message.js +6 -6
- package/dist/cjs/modal.js +6 -6
- package/dist/cjs/navbar.js +16 -4
- package/dist/cjs/notification.js +23 -11
- package/dist/cjs/numberinput.js +9 -7
- package/dist/cjs/pagination.js +8 -8
- package/dist/cjs/progress.js +10 -6
- package/dist/cjs/radio.js +3 -3
- package/dist/cjs/rate.js +3 -3
- package/dist/cjs/select.js +7 -7
- package/dist/cjs/sidebar.js +2 -2
- package/dist/cjs/slider.js +4 -4
- package/dist/cjs/snackbar.js +5 -5
- package/dist/cjs/steps.js +8 -8
- package/dist/cjs/switch.js +1 -1
- package/dist/cjs/table.js +13 -13
- package/dist/cjs/tabs.js +8 -8
- package/dist/cjs/tag.js +3 -3
- package/dist/cjs/taginput.js +34 -22
- package/dist/cjs/timepicker.js +13 -13
- package/dist/cjs/toast.js +5 -5
- package/dist/cjs/tooltip.js +5 -5
- package/dist/cjs/upload.js +5 -5
- package/dist/components/autocomplete/index.js +98 -13
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +293 -0
- package/dist/components/breadcrumb/index.min.js +2 -0
- package/dist/components/button/index.js +5 -1
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +348 -15
- package/dist/components/carousel/index.min.js +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +54 -47
- 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 +41 -32
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +75 -58
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +126 -18
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +5 -1
- package/dist/components/dropdown/index.min.js +1 -1
- package/dist/components/field/index.js +29 -23
- package/dist/components/field/index.min.js +2 -2
- package/dist/components/icon/index.js +5 -1
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +463 -444
- package/dist/components/image/index.min.js +2 -2
- package/dist/components/input/index.js +5 -1
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +2 -2
- package/dist/components/loading/index.min.js +2 -2
- package/dist/components/menu/index.js +5 -1
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +43 -3
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +7 -2
- package/dist/components/modal/index.min.js +2 -2
- package/dist/components/navbar/index.js +16 -4
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +59 -6
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +9 -3
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +5 -1
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +10 -2
- package/dist/components/progress/index.min.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +5 -1
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +5 -1
- package/dist/components/select/index.min.js +2 -2
- package/dist/components/sidebar/index.js +5 -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 +5 -1
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +7 -2
- package/dist/components/snackbar/index.min.js +2 -2
- package/dist/components/steps/index.js +5 -1
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +5 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +6 -2
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +5 -1
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +26 -3
- package/dist/components/tag/index.min.js +2 -2
- package/dist/components/taginput/index.js +185 -29
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +54 -47
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +7 -2
- package/dist/components/toast/index.min.js +2 -2
- package/dist/components/tooltip/index.js +5 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +5 -1
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +7 -7
- package/dist/esm/breadcrumb.js +122 -0
- package/dist/esm/button.js +6 -107
- package/dist/esm/carousel.js +7 -5
- package/dist/esm/{chunk-56040896.js → chunk-18e8b067.js} +3 -3
- package/dist/esm/{chunk-fa404a2c.js → chunk-21fc0948.js} +7 -7
- package/dist/esm/{chunk-f9299099.js → chunk-22e9f916.js} +19 -15
- package/dist/esm/{chunk-1fafdf15.js → chunk-2452e3d3.js} +37 -1
- package/dist/esm/{chunk-1297c2c9.js → chunk-29ca0df8.js} +1 -1
- package/dist/esm/{chunk-3c2169d7.js → chunk-2f2f0a74.js} +25 -2
- package/dist/esm/{chunk-cf72ce36.js → chunk-3773c62d.js} +2 -2
- package/dist/esm/{chunk-2c957994.js → chunk-4b67a181.js} +3 -3
- package/dist/esm/{chunk-45740cdc.js → chunk-6019fd7a.js} +96 -15
- package/dist/esm/chunk-71a547bc.js +312 -0
- package/dist/esm/{chunk-516e4877.js → chunk-75a5af93.js} +1 -1
- package/dist/esm/{chunk-4e380ee2.js → chunk-799e084d.js} +2 -1
- package/dist/esm/{chunk-37678809.js → chunk-83eb0d37.js} +3 -3
- package/dist/esm/{chunk-34c74085.js → chunk-8d0f95b8.js} +4 -4
- package/dist/esm/{chunk-652f2dad.js → chunk-8ed29c41.js} +4 -0
- package/dist/esm/{chunk-742a9694.js → chunk-9f7f7441.js} +3 -2
- package/dist/esm/{chunk-f160efb9.js → chunk-ae8ab23a.js} +4 -4
- package/dist/esm/{chunk-c3b09672.js → chunk-b07e3182.js} +26 -24
- package/dist/esm/{chunk-e36a4f2c.js → chunk-b0c0c6b0.js} +0 -0
- package/dist/esm/{chunk-ee935ae6.js → chunk-c9c58d0c.js} +1 -1
- package/dist/esm/{chunk-1d62828e.js → chunk-d7f92d97.js} +39 -3
- package/dist/esm/{chunk-7fd02ffe.js → chunk-d92f0cd9.js} +2 -2
- package/dist/esm/chunk-e7c9b2cb.js +108 -0
- package/dist/esm/{chunk-0e22ae0a.js → chunk-ece062a7.js} +27 -26
- package/dist/esm/clockpicker.js +9 -9
- package/dist/esm/config.js +2 -2
- package/dist/esm/datepicker.js +11 -11
- package/dist/esm/datetimepicker.js +21 -14
- package/dist/esm/dialog.js +10 -8
- package/dist/esm/dropdown.js +5 -5
- package/dist/esm/field.js +4 -4
- package/dist/esm/helpers.js +2 -3
- package/dist/esm/icon.js +4 -4
- package/dist/esm/image.js +6 -311
- package/dist/esm/index.js +106 -100
- package/dist/esm/input.js +6 -6
- package/dist/esm/loading.js +4 -4
- package/dist/esm/menu.js +3 -3
- package/dist/esm/message.js +5 -5
- package/dist/esm/modal.js +4 -4
- package/dist/esm/navbar.js +16 -4
- package/dist/esm/notification.js +22 -10
- package/dist/esm/numberinput.js +9 -7
- package/dist/esm/pagination.js +5 -5
- package/dist/esm/progress.js +8 -4
- package/dist/esm/rate.js +3 -3
- package/dist/esm/select.js +6 -6
- package/dist/esm/sidebar.js +2 -2
- package/dist/esm/slider.js +3 -3
- package/dist/esm/snackbar.js +4 -4
- package/dist/esm/steps.js +6 -6
- package/dist/esm/switch.js +1 -1
- package/dist/esm/table.js +9 -9
- package/dist/esm/tabs.js +6 -6
- package/dist/esm/tag.js +2 -2
- package/dist/esm/taginput.js +33 -21
- package/dist/esm/timepicker.js +12 -12
- package/dist/esm/toast.js +4 -4
- package/dist/esm/tooltip.js +4 -4
- package/dist/esm/upload.js +3 -3
- package/dist/vetur/attributes.json +95 -19
- package/dist/vetur/tags.json +37 -4
- package/package.json +2 -2
- package/src/components/autocomplete/Autocomplete.spec.js +70 -0
- package/src/components/autocomplete/Autocomplete.vue +93 -18
- package/src/components/breadcrumb/Breadcrumb.spec.js +63 -0
- package/src/components/breadcrumb/Breadcrumb.vue +43 -0
- package/src/components/breadcrumb/BreadcrumbItem.spec.js +25 -0
- package/src/components/breadcrumb/BreadcrumbItem.vue +33 -0
- package/src/components/breadcrumb/__snapshots__/Breadcrumb.spec.js.snap +7 -0
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +7 -0
- package/src/components/breadcrumb/index.js +20 -0
- package/src/components/carousel/CarouselList.vue +3 -1
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +128 -8
- package/src/components/clockpicker/Clockpicker.vue +259 -259
- package/src/components/datepicker/Datepicker.vue +10 -6
- package/src/components/datetimepicker/Datetimepicker.vue +8 -1
- package/src/components/dialog/Dialog.vue +10 -10
- package/src/components/field/Field.vue +271 -270
- package/src/components/image/Image.spec.js +197 -183
- package/src/components/image/Image.vue +4 -2
- package/src/components/index.js +2 -0
- package/src/components/loading/Loading.vue +1 -1
- package/src/components/loading/__snapshots__/Loading.spec.js.snap +1 -1
- package/src/components/message/Message.vue +7 -1
- package/src/components/message/__snapshots__/Message.spec.js.snap +1 -0
- package/src/components/modal/Modal.vue +2 -0
- package/src/components/navbar/Navbar.vue +5 -1
- package/src/components/navbar/NavbarBurger.vue +1 -0
- package/src/components/navbar/NavbarDropdown.vue +8 -2
- package/src/components/navbar/__snapshots__/NavBar.spec.js.snap +11 -11
- package/src/components/navbar/__snapshots__/NavBarBurger.spec.js.snap +3 -0
- package/src/components/navbar/__snapshots__/NavbarDropdown.spec.js.snap +1 -1
- package/src/components/notification/Notification.vue +6 -0
- package/src/components/notification/NotificationNotice.vue +16 -3
- package/src/components/notification/__snapshots__/Notification.spec.js.snap +1 -0
- package/src/components/numberinput/Numberinput.spec.js +10 -0
- package/src/components/numberinput/Numberinput.vue +4 -2
- package/src/components/progress/Progress.vue +6 -2
- package/src/components/snackbar/Snackbar.vue +2 -0
- package/src/components/tag/Tag.vue +25 -2
- package/src/components/tag/__snapshots__/Tag.spec.js.snap +1 -1
- package/src/components/taginput/Taginput.spec.js +57 -1
- package/src/components/taginput/Taginput.vue +373 -364
- package/src/components/toast/Toast.vue +1 -1
- package/src/index.js +2 -0
- package/src/scss/buefy.scss +1 -0
- package/src/scss/components/_loading.scss +2 -1
- package/src/scss/components/_message.scss +3 -0
- package/src/scss/components/_notification.scss +8 -0
- package/src/scss/components/_progress.scss +8 -0
- package/src/utils/MessageMixin.js +32 -1
- package/src/utils/NoticeMixin.js +1 -0
- package/src/utils/TimepickerMixin.js +718 -716
- package/src/utils/config.js +4 -0
- package/src/utils/helpers.js +1 -2
- package/types/components.d.ts +5 -0
- package/src/components/navbar/__snapshots__/NavbarBurger.spec.js.snap +0 -3
|
@@ -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) :
|
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
defaultImageResponsive: true,
|
|
164
164
|
defaultImageRatio: null,
|
|
165
165
|
defaultImageSrcsetFormatter: null,
|
|
166
|
+
defaultBreadcrumbTag: 'a',
|
|
167
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
168
|
+
defaultBreadcrumbSeparator: '',
|
|
169
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
166
170
|
customIconPacks: null
|
|
167
171
|
};
|
|
168
172
|
|
|
@@ -271,8 +275,7 @@
|
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
var dtf = new Intl.DateTimeFormat(locale, {
|
|
274
|
-
month: format
|
|
275
|
-
timeZone: 'UTC'
|
|
278
|
+
month: format
|
|
276
279
|
});
|
|
277
280
|
return dates.map(function (d) {
|
|
278
281
|
return dtf.format(d);
|
|
@@ -1879,12 +1882,12 @@
|
|
|
1879
1882
|
return this.grouped || this.groupMultiline || this.hasAddons();
|
|
1880
1883
|
},
|
|
1881
1884
|
|
|
1882
|
-
/**
|
|
1883
|
-
* Correct Bulma class for the side of the addon or group.
|
|
1884
|
-
*
|
|
1885
|
-
* This is not kept like the others (is-small, etc.),
|
|
1886
|
-
* because since 'has-addons' is set automatically it
|
|
1887
|
-
* doesn't make sense to teach users what addons are exactly.
|
|
1885
|
+
/**
|
|
1886
|
+
* Correct Bulma class for the side of the addon or group.
|
|
1887
|
+
*
|
|
1888
|
+
* This is not kept like the others (is-small, etc.),
|
|
1889
|
+
* because since 'has-addons' is set automatically it
|
|
1890
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
1888
1891
|
*/
|
|
1889
1892
|
newPosition: function newPosition() {
|
|
1890
1893
|
if (this.position === undefined) return;
|
|
@@ -1894,9 +1897,9 @@
|
|
|
1894
1897
|
if (this.position) return prefix + position[1];
|
|
1895
1898
|
},
|
|
1896
1899
|
|
|
1897
|
-
/**
|
|
1898
|
-
* Formatted message in case it's an array
|
|
1899
|
-
* (each element is separated by <br> tag)
|
|
1900
|
+
/**
|
|
1901
|
+
* Formatted message in case it's an array
|
|
1902
|
+
* (each element is separated by <br> tag)
|
|
1900
1903
|
*/
|
|
1901
1904
|
formattedMessage: function formattedMessage() {
|
|
1902
1905
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -1966,22 +1969,22 @@
|
|
|
1966
1969
|
}
|
|
1967
1970
|
},
|
|
1968
1971
|
watch: {
|
|
1969
|
-
/**
|
|
1970
|
-
* Set internal type when prop change.
|
|
1972
|
+
/**
|
|
1973
|
+
* Set internal type when prop change.
|
|
1971
1974
|
*/
|
|
1972
1975
|
type: function type(value) {
|
|
1973
1976
|
this.newType = value;
|
|
1974
1977
|
},
|
|
1975
1978
|
|
|
1976
|
-
/**
|
|
1977
|
-
* Set internal message when prop change.
|
|
1979
|
+
/**
|
|
1980
|
+
* Set internal message when prop change.
|
|
1978
1981
|
*/
|
|
1979
1982
|
message: function message(value) {
|
|
1980
1983
|
this.newMessage = value;
|
|
1981
1984
|
},
|
|
1982
1985
|
|
|
1983
|
-
/**
|
|
1984
|
-
* Set parent message if we use Field in Field.
|
|
1986
|
+
/**
|
|
1987
|
+
* Set parent message if we use Field in Field.
|
|
1985
1988
|
*/
|
|
1986
1989
|
newMessage: function newMessage(value) {
|
|
1987
1990
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -1989,16 +1992,18 @@
|
|
|
1989
1992
|
this.parent.newType = this.newType;
|
|
1990
1993
|
}
|
|
1991
1994
|
|
|
1992
|
-
this.parent.
|
|
1995
|
+
if (!this.parent.message) {
|
|
1996
|
+
this.parent.newMessage = value;
|
|
1997
|
+
}
|
|
1993
1998
|
}
|
|
1994
1999
|
}
|
|
1995
2000
|
},
|
|
1996
2001
|
methods: {
|
|
1997
|
-
/**
|
|
1998
|
-
* Field has addons if there are more than one slot
|
|
1999
|
-
* (element / component) in the Field.
|
|
2000
|
-
* Or is grouped when prop is set.
|
|
2001
|
-
* Is a method to be called when component re-render.
|
|
2002
|
+
/**
|
|
2003
|
+
* Field has addons if there are more than one slot
|
|
2004
|
+
* (element / component) in the Field.
|
|
2005
|
+
* Or is grouped when prop is set.
|
|
2006
|
+
* Is a method to be called when component re-render.
|
|
2002
2007
|
*/
|
|
2003
2008
|
fieldType: function fieldType() {
|
|
2004
2009
|
if (this.grouped) return 'is-grouped';
|
|
@@ -2032,7 +2037,7 @@
|
|
|
2032
2037
|
const __vue_script__$5 = script$5;
|
|
2033
2038
|
|
|
2034
2039
|
/* template */
|
|
2035
|
-
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)};
|
|
2036
2041
|
var __vue_staticRenderFns__$4 = [];
|
|
2037
2042
|
|
|
2038
2043
|
/* style */
|
|
@@ -3561,15 +3566,12 @@
|
|
|
3561
3566
|
}).resolvedOptions();
|
|
3562
3567
|
},
|
|
3563
3568
|
dtf: function dtf() {
|
|
3564
|
-
return new Intl.DateTimeFormat(this.locale
|
|
3565
|
-
timeZone: 'UTC'
|
|
3566
|
-
});
|
|
3569
|
+
return new Intl.DateTimeFormat(this.locale);
|
|
3567
3570
|
},
|
|
3568
3571
|
dtfMonth: function dtfMonth() {
|
|
3569
3572
|
return new Intl.DateTimeFormat(this.locale, {
|
|
3570
3573
|
year: this.localeOptions.year || 'numeric',
|
|
3571
|
-
month: this.localeOptions.month || '2-digit'
|
|
3572
|
-
timeZone: 'UTC'
|
|
3574
|
+
month: this.localeOptions.month || '2-digit'
|
|
3573
3575
|
});
|
|
3574
3576
|
},
|
|
3575
3577
|
newMonthNames: function newMonthNames() {
|
|
@@ -3819,9 +3821,10 @@
|
|
|
3819
3821
|
},
|
|
3820
3822
|
updateInternalState: function updateInternalState(value) {
|
|
3821
3823
|
if (this.dateSelected === value) return;
|
|
3822
|
-
var
|
|
3824
|
+
var isArray = Array.isArray(value);
|
|
3825
|
+
var currentDate = isArray ? !value.length ? this.dateCreator() : value[value.length - 1] : !value ? this.dateCreator() : value;
|
|
3823
3826
|
|
|
3824
|
-
if (
|
|
3827
|
+
if (!isArray || isArray && this.dateSelected && value.length > this.dateSelected.length) {
|
|
3825
3828
|
this.focusedDateData = {
|
|
3826
3829
|
day: currentDate.getDate(),
|
|
3827
3830
|
month: currentDate.getMonth(),
|
|
@@ -3899,6 +3902,12 @@
|
|
|
3899
3902
|
if (!value) {
|
|
3900
3903
|
this.onBlur();
|
|
3901
3904
|
}
|
|
3905
|
+
/*
|
|
3906
|
+
* Emit 'active-change' when on dropdown active state change
|
|
3907
|
+
*/
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
this.$emit('active-change', value);
|
|
3902
3911
|
},
|
|
3903
3912
|
changeFocus: function changeFocus(day) {
|
|
3904
3913
|
this.focusedDateData = {
|
|
@@ -4158,7 +4167,8 @@
|
|
|
4158
4167
|
hour: this.localeOptions.hour || 'numeric',
|
|
4159
4168
|
minute: this.localeOptions.minute || 'numeric',
|
|
4160
4169
|
second: this.enableSeconds ? this.localeOptions.second || 'numeric' : undefined,
|
|
4161
|
-
|
|
4170
|
+
// Fixes 12 hour display github.com/buefy/buefy/issues/3418
|
|
4171
|
+
hourCycle: !this.isHourFormat24 ? 'h12' : 'h23'
|
|
4162
4172
|
});
|
|
4163
4173
|
},
|
|
4164
4174
|
newHourFormat: function newHourFormat() {
|
|
@@ -4326,10 +4336,10 @@
|
|
|
4326
4336
|
}
|
|
4327
4337
|
},
|
|
4328
4338
|
|
|
4329
|
-
/**
|
|
4330
|
-
* When v-model is changed:
|
|
4331
|
-
* 1. Update internal value.
|
|
4332
|
-
* 2. If it's invalid, validate again.
|
|
4339
|
+
/**
|
|
4340
|
+
* When v-model is changed:
|
|
4341
|
+
* 1. Update internal value.
|
|
4342
|
+
* 2. If it's invalid, validate again.
|
|
4333
4343
|
*/
|
|
4334
4344
|
value: {
|
|
4335
4345
|
handler: function handler(value) {
|
|
@@ -4391,7 +4401,7 @@
|
|
|
4391
4401
|
time.setHours(hours);
|
|
4392
4402
|
time.setMinutes(minutes);
|
|
4393
4403
|
time.setSeconds(seconds);
|
|
4394
|
-
this.computedValue = new Date(time.getTime());
|
|
4404
|
+
if (!isNaN(time.getTime())) this.computedValue = new Date(time.getTime());
|
|
4395
4405
|
}
|
|
4396
4406
|
},
|
|
4397
4407
|
updateInternalState: function updateInternalState(value) {
|
|
@@ -4541,8 +4551,8 @@
|
|
|
4541
4551
|
return disabled;
|
|
4542
4552
|
},
|
|
4543
4553
|
|
|
4544
|
-
/*
|
|
4545
|
-
* Parse string into date
|
|
4554
|
+
/*
|
|
4555
|
+
* Parse string into date
|
|
4546
4556
|
*/
|
|
4547
4557
|
onChange: function onChange(value) {
|
|
4548
4558
|
var date = this.timeParser(value, this);
|
|
@@ -4557,8 +4567,8 @@
|
|
|
4557
4567
|
}
|
|
4558
4568
|
},
|
|
4559
4569
|
|
|
4560
|
-
/*
|
|
4561
|
-
* Toggle timepicker
|
|
4570
|
+
/*
|
|
4571
|
+
* Toggle timepicker
|
|
4562
4572
|
*/
|
|
4563
4573
|
toggle: function toggle(active) {
|
|
4564
4574
|
if (this.$refs.dropdown) {
|
|
@@ -4566,15 +4576,15 @@
|
|
|
4566
4576
|
}
|
|
4567
4577
|
},
|
|
4568
4578
|
|
|
4569
|
-
/*
|
|
4570
|
-
* Close timepicker
|
|
4579
|
+
/*
|
|
4580
|
+
* Close timepicker
|
|
4571
4581
|
*/
|
|
4572
4582
|
close: function close() {
|
|
4573
4583
|
this.toggle(false);
|
|
4574
4584
|
},
|
|
4575
4585
|
|
|
4576
|
-
/*
|
|
4577
|
-
* Call default onFocus method and show timepicker
|
|
4586
|
+
/*
|
|
4587
|
+
* Call default onFocus method and show timepicker
|
|
4578
4588
|
*/
|
|
4579
4589
|
handleOnFocus: function handleOnFocus() {
|
|
4580
4590
|
this.onFocus();
|
|
@@ -4584,8 +4594,8 @@
|
|
|
4584
4594
|
}
|
|
4585
4595
|
},
|
|
4586
4596
|
|
|
4587
|
-
/*
|
|
4588
|
-
* Format date into string 'HH-MM-SS'
|
|
4597
|
+
/*
|
|
4598
|
+
* Format date into string 'HH-MM-SS'
|
|
4589
4599
|
*/
|
|
4590
4600
|
formatHHMMSS: function formatHHMMSS(value) {
|
|
4591
4601
|
var date = new Date(value);
|
|
@@ -4600,8 +4610,8 @@
|
|
|
4600
4610
|
return '';
|
|
4601
4611
|
},
|
|
4602
4612
|
|
|
4603
|
-
/*
|
|
4604
|
-
* Parse time from string
|
|
4613
|
+
/*
|
|
4614
|
+
* Parse time from string
|
|
4605
4615
|
*/
|
|
4606
4616
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
4607
4617
|
var date = event.target.value;
|
|
@@ -4632,8 +4642,8 @@
|
|
|
4632
4642
|
return (value < 10 ? '0' : '') + value;
|
|
4633
4643
|
},
|
|
4634
4644
|
|
|
4635
|
-
/*
|
|
4636
|
-
* Format date into string
|
|
4645
|
+
/*
|
|
4646
|
+
* Format date into string
|
|
4637
4647
|
*/
|
|
4638
4648
|
formatValue: function formatValue(date) {
|
|
4639
4649
|
if (date && !isNaN(date)) {
|
|
@@ -4643,8 +4653,8 @@
|
|
|
4643
4653
|
}
|
|
4644
4654
|
},
|
|
4645
4655
|
|
|
4646
|
-
/**
|
|
4647
|
-
* Keypress event that is bound to the document.
|
|
4656
|
+
/**
|
|
4657
|
+
* Keypress event that is bound to the document.
|
|
4648
4658
|
*/
|
|
4649
4659
|
keyPress: function keyPress(_ref) {
|
|
4650
4660
|
var key = _ref.key;
|
|
@@ -4654,8 +4664,8 @@
|
|
|
4654
4664
|
}
|
|
4655
4665
|
},
|
|
4656
4666
|
|
|
4657
|
-
/**
|
|
4658
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
4667
|
+
/**
|
|
4668
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
4659
4669
|
*/
|
|
4660
4670
|
onActiveChange: function onActiveChange(value) {
|
|
4661
4671
|
if (!value) {
|
|
@@ -4843,7 +4853,7 @@
|
|
|
4843
4853
|
hour: this.localeOptions.hour || 'numeric',
|
|
4844
4854
|
minute: this.localeOptions.minute || 'numeric',
|
|
4845
4855
|
second: this.enableSeconds() ? this.localeOptions.second || 'numeric' : undefined,
|
|
4846
|
-
|
|
4856
|
+
hourCycle: !this.isHourFormat24() ? 'h12' : 'h23'
|
|
4847
4857
|
});
|
|
4848
4858
|
},
|
|
4849
4859
|
isMobileNative: function isMobileNative() {
|
|
@@ -5003,6 +5013,13 @@
|
|
|
5003
5013
|
this.computedValue = null;
|
|
5004
5014
|
}
|
|
5005
5015
|
},
|
|
5016
|
+
|
|
5017
|
+
/*
|
|
5018
|
+
* Emit 'active-change' on datepicker active state change
|
|
5019
|
+
*/
|
|
5020
|
+
onActiveChange: function onActiveChange(value) {
|
|
5021
|
+
this.$emit('active-change', value);
|
|
5022
|
+
},
|
|
5006
5023
|
formatNative: function formatNative(value) {
|
|
5007
5024
|
var date = new Date(value);
|
|
5008
5025
|
|
|
@@ -5036,7 +5053,7 @@
|
|
|
5036
5053
|
const __vue_script__$c = script$c;
|
|
5037
5054
|
|
|
5038
5055
|
/* template */
|
|
5039
|
-
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isMobile || _vm.inline)?_c('b-datepicker',_vm._b({ref:"datepicker",attrs:{"rounded":_vm.rounded,"open-on-focus":_vm.openOnFocus,"position":_vm.position,"loading":_vm.loading,"inline":_vm.inline,"editable":_vm.editable,"expanded":_vm.expanded,"close-on-click":false,"date-formatter":_vm.defaultDatetimeFormatter,"date-parser":_vm.defaultDatetimeParser,"min-date":_vm.minDate,"max-date":_vm.maxDate,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"size":_vm.datepickerSize,"placeholder":_vm.placeholder,"horizontal-time-picker":_vm.horizontalTimePicker,"range":false,"disabled":_vm.disabled,"mobile-native":_vm.isMobileNative,"locale":_vm.locale,"focusable":_vm.focusable,"append-to-body":_vm.appendToBody},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"icon-right-click":function($event){return _vm.$emit('icon-right-click')},"change-month":function($event){return _vm.$emit('change-month', $event)},"change-year":function($event){return _vm.$emit('change-year', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-datepicker',_vm.datepicker,false),[_c('nav',{staticClass:"level is-mobile"},[(_vm.$slots.left !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("left")],2):_vm._e(),_c('div',{staticClass:"level-item has-text-centered"},[_c('b-timepicker',_vm._b({ref:"timepicker",attrs:{"inline":"","editable":_vm.editable,"min-time":_vm.minTime,"max-time":_vm.maxTime,"size":_vm.timepickerSize,"disabled":_vm.timepickerDisabled,"focusable":_vm.focusable,"mobile-native":_vm.isMobileNative,"locale":_vm.locale},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-timepicker',_vm.timepicker,false))],1),(_vm.$slots.right !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("right")],2):_vm._e()])]):_c('b-input',_vm._b({ref:"input",attrs:{"type":"datetime-local","autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))};
|
|
5056
|
+
var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isMobile || _vm.inline)?_c('b-datepicker',_vm._b({ref:"datepicker",attrs:{"rounded":_vm.rounded,"open-on-focus":_vm.openOnFocus,"position":_vm.position,"loading":_vm.loading,"inline":_vm.inline,"editable":_vm.editable,"expanded":_vm.expanded,"close-on-click":false,"date-formatter":_vm.defaultDatetimeFormatter,"date-parser":_vm.defaultDatetimeParser,"min-date":_vm.minDate,"max-date":_vm.maxDate,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"size":_vm.datepickerSize,"placeholder":_vm.placeholder,"horizontal-time-picker":_vm.horizontalTimePicker,"range":false,"disabled":_vm.disabled,"mobile-native":_vm.isMobileNative,"locale":_vm.locale,"focusable":_vm.focusable,"append-to-body":_vm.appendToBody},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"active-change":_vm.onActiveChange,"icon-right-click":function($event){return _vm.$emit('icon-right-click')},"change-month":function($event){return _vm.$emit('change-month', $event)},"change-year":function($event){return _vm.$emit('change-year', $event)}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-datepicker',_vm.datepicker,false),[_c('nav',{staticClass:"level is-mobile"},[(_vm.$slots.left !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("left")],2):_vm._e(),_c('div',{staticClass:"level-item has-text-centered"},[_c('b-timepicker',_vm._b({ref:"timepicker",attrs:{"inline":"","editable":_vm.editable,"min-time":_vm.minTime,"max-time":_vm.maxTime,"size":_vm.timepickerSize,"disabled":_vm.timepickerDisabled,"focusable":_vm.focusable,"mobile-native":_vm.isMobileNative,"locale":_vm.locale},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}},'b-timepicker',_vm.timepicker,false))],1),(_vm.$slots.right !== undefined)?_c('div',{staticClass:"level-item has-text-centered"},[_vm._t("right")],2):_vm._e()])]):_c('b-input',_vm._b({ref:"input",attrs:{"type":"datetime-local","autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))};
|
|
5040
5057
|
var __vue_staticRenderFns__$b = [];
|
|
5041
5058
|
|
|
5042
5059
|
/* style */
|