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,5 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { c as config } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
3
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
4
4
|
|
|
5
5
|
var script = {
|
|
@@ -137,12 +137,12 @@ var script$1 = {
|
|
|
137
137
|
return this.grouped || this.groupMultiline || this.hasAddons();
|
|
138
138
|
},
|
|
139
139
|
|
|
140
|
-
/**
|
|
141
|
-
* Correct Bulma class for the side of the addon or group.
|
|
142
|
-
*
|
|
143
|
-
* This is not kept like the others (is-small, etc.),
|
|
144
|
-
* because since 'has-addons' is set automatically it
|
|
145
|
-
* doesn't make sense to teach users what addons are exactly.
|
|
140
|
+
/**
|
|
141
|
+
* Correct Bulma class for the side of the addon or group.
|
|
142
|
+
*
|
|
143
|
+
* This is not kept like the others (is-small, etc.),
|
|
144
|
+
* because since 'has-addons' is set automatically it
|
|
145
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
146
146
|
*/
|
|
147
147
|
newPosition: function newPosition() {
|
|
148
148
|
if (this.position === undefined) return;
|
|
@@ -152,9 +152,9 @@ var script$1 = {
|
|
|
152
152
|
if (this.position) return prefix + position[1];
|
|
153
153
|
},
|
|
154
154
|
|
|
155
|
-
/**
|
|
156
|
-
* Formatted message in case it's an array
|
|
157
|
-
* (each element is separated by <br> tag)
|
|
155
|
+
/**
|
|
156
|
+
* Formatted message in case it's an array
|
|
157
|
+
* (each element is separated by <br> tag)
|
|
158
158
|
*/
|
|
159
159
|
formattedMessage: function formattedMessage() {
|
|
160
160
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -224,22 +224,22 @@ var script$1 = {
|
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
226
|
watch: {
|
|
227
|
-
/**
|
|
228
|
-
* Set internal type when prop change.
|
|
227
|
+
/**
|
|
228
|
+
* Set internal type when prop change.
|
|
229
229
|
*/
|
|
230
230
|
type: function type(value) {
|
|
231
231
|
this.newType = value;
|
|
232
232
|
},
|
|
233
233
|
|
|
234
|
-
/**
|
|
235
|
-
* Set internal message when prop change.
|
|
234
|
+
/**
|
|
235
|
+
* Set internal message when prop change.
|
|
236
236
|
*/
|
|
237
237
|
message: function message(value) {
|
|
238
238
|
this.newMessage = value;
|
|
239
239
|
},
|
|
240
240
|
|
|
241
|
-
/**
|
|
242
|
-
* Set parent message if we use Field in Field.
|
|
241
|
+
/**
|
|
242
|
+
* Set parent message if we use Field in Field.
|
|
243
243
|
*/
|
|
244
244
|
newMessage: function newMessage(value) {
|
|
245
245
|
if (this.parent && this.parent.hasInnerField) {
|
|
@@ -247,16 +247,18 @@ var script$1 = {
|
|
|
247
247
|
this.parent.newType = this.newType;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
this.parent.
|
|
250
|
+
if (!this.parent.message) {
|
|
251
|
+
this.parent.newMessage = value;
|
|
252
|
+
}
|
|
251
253
|
}
|
|
252
254
|
}
|
|
253
255
|
},
|
|
254
256
|
methods: {
|
|
255
|
-
/**
|
|
256
|
-
* Field has addons if there are more than one slot
|
|
257
|
-
* (element / component) in the Field.
|
|
258
|
-
* Or is grouped when prop is set.
|
|
259
|
-
* Is a method to be called when component re-render.
|
|
257
|
+
/**
|
|
258
|
+
* Field has addons if there are more than one slot
|
|
259
|
+
* (element / component) in the Field.
|
|
260
|
+
* Or is grouped when prop is set.
|
|
261
|
+
* Is a method to be called when component re-render.
|
|
260
262
|
*/
|
|
261
263
|
fieldType: function fieldType() {
|
|
262
264
|
if (this.grouped) return 'is-grouped';
|
|
@@ -290,7 +292,7 @@ var script$1 = {
|
|
|
290
292
|
const __vue_script__$1 = script$1;
|
|
291
293
|
|
|
292
294
|
/* template */
|
|
293
|
-
var __vue_render__ = 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
|
|
295
|
+
var __vue_render__ = 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)};
|
|
294
296
|
var __vue_staticRenderFns__ = [];
|
|
295
297
|
|
|
296
298
|
/* style */
|
|
File without changes
|
|
@@ -114,7 +114,7 @@ var script = {
|
|
|
114
114
|
const __vue_script__ = script;
|
|
115
115
|
|
|
116
116
|
/* template */
|
|
117
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[
|
|
117
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"loading-overlay is-active",class:{ 'is-full-page': _vm.displayInFullPage }},[_c('div',{staticClass:"loading-background",on:{"click":_vm.cancel}}),_vm._t("default",[_c('div',{staticClass:"loading-icon"})])],2)])};
|
|
118
118
|
var __vue_staticRenderFns__ = [];
|
|
119
119
|
|
|
120
120
|
/* style */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
3
3
|
|
|
4
4
|
var MessageMixin = {
|
|
5
5
|
components: _defineProperty({}, Icon.name, Icon),
|
|
@@ -32,11 +32,17 @@ var MessageMixin = {
|
|
|
32
32
|
duration: {
|
|
33
33
|
type: Number,
|
|
34
34
|
default: 2000
|
|
35
|
+
},
|
|
36
|
+
progressBar: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
data: function data() {
|
|
38
42
|
return {
|
|
39
|
-
isActive: this.active
|
|
43
|
+
isActive: this.active,
|
|
44
|
+
remainingTime: this.duration / 1000 // in seconds
|
|
45
|
+
|
|
40
46
|
};
|
|
41
47
|
},
|
|
42
48
|
watch: {
|
|
@@ -46,6 +52,7 @@ var MessageMixin = {
|
|
|
46
52
|
isActive: function isActive(value) {
|
|
47
53
|
if (value) {
|
|
48
54
|
this.setAutoClose();
|
|
55
|
+
this.setDurationProgress();
|
|
49
56
|
} else {
|
|
50
57
|
if (this.timer) {
|
|
51
58
|
clearTimeout(this.timer);
|
|
@@ -86,6 +93,7 @@ var MessageMixin = {
|
|
|
86
93
|
*/
|
|
87
94
|
close: function close() {
|
|
88
95
|
this.isActive = false;
|
|
96
|
+
this.resetDurationProgress();
|
|
89
97
|
this.$emit('close');
|
|
90
98
|
this.$emit('update:active', false);
|
|
91
99
|
},
|
|
@@ -106,6 +114,34 @@ var MessageMixin = {
|
|
|
106
114
|
}
|
|
107
115
|
}, this.duration);
|
|
108
116
|
}
|
|
117
|
+
},
|
|
118
|
+
setDurationProgress: function setDurationProgress() {
|
|
119
|
+
var _this2 = this;
|
|
120
|
+
|
|
121
|
+
if (this.progressBar) {
|
|
122
|
+
/**
|
|
123
|
+
* Runs every one second to set the duration passed before
|
|
124
|
+
* the alert will auto close to show it in the progress bar (Remaining Time)
|
|
125
|
+
*/
|
|
126
|
+
this.$buefy.globalNoticeInterval = setInterval(function () {
|
|
127
|
+
if (_this2.remainingTime !== 0) {
|
|
128
|
+
_this2.remainingTime -= 1;
|
|
129
|
+
} else {
|
|
130
|
+
_this2.resetDurationProgress();
|
|
131
|
+
}
|
|
132
|
+
}, 1000);
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
resetDurationProgress: function resetDurationProgress() {
|
|
136
|
+
var _this3 = this;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Wait until the component get closed and then reset
|
|
140
|
+
**/
|
|
141
|
+
setTimeout(function () {
|
|
142
|
+
_this3.remainingTime = _this3.duration / 1000;
|
|
143
|
+
clearInterval(_this3.$buefy.globalNoticeInterval);
|
|
144
|
+
}, 100);
|
|
109
145
|
}
|
|
110
146
|
},
|
|
111
147
|
mounted: function mounted() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as _toArray } from './chunk-
|
|
1
|
+
import { c as _toArray } from './chunk-2452e3d3.js';
|
|
2
2
|
import { merge } from './helpers.js';
|
|
3
|
-
import { c as config } from './chunk-
|
|
3
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
5
|
|
|
6
6
|
var mdiIcons = {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
4
|
+
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
|
+
|
|
6
|
+
var script = {
|
|
7
|
+
name: 'BButton',
|
|
8
|
+
components: _defineProperty({}, Icon.name, Icon),
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
type: [String, Object],
|
|
12
|
+
size: String,
|
|
13
|
+
label: String,
|
|
14
|
+
iconPack: String,
|
|
15
|
+
iconLeft: String,
|
|
16
|
+
iconRight: String,
|
|
17
|
+
rounded: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: function _default() {
|
|
20
|
+
return config.defaultButtonRounded;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
loading: Boolean,
|
|
24
|
+
outlined: Boolean,
|
|
25
|
+
expanded: Boolean,
|
|
26
|
+
inverted: Boolean,
|
|
27
|
+
focused: Boolean,
|
|
28
|
+
active: Boolean,
|
|
29
|
+
hovered: Boolean,
|
|
30
|
+
selected: Boolean,
|
|
31
|
+
nativeType: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'button',
|
|
34
|
+
validator: function validator(value) {
|
|
35
|
+
return ['button', 'submit', 'reset'].indexOf(value) >= 0;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
tag: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'button',
|
|
41
|
+
validator: function validator(value) {
|
|
42
|
+
return config.defaultLinkTags.indexOf(value) >= 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
computedTag: function computedTag() {
|
|
48
|
+
if (this.$attrs.disabled !== undefined && this.$attrs.disabled !== false) {
|
|
49
|
+
return 'button';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return this.tag;
|
|
53
|
+
},
|
|
54
|
+
iconSize: function iconSize() {
|
|
55
|
+
if (!this.size || this.size === 'is-medium') {
|
|
56
|
+
return 'is-small';
|
|
57
|
+
} else if (this.size === 'is-large') {
|
|
58
|
+
return 'is-medium';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return this.size;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/* script */
|
|
67
|
+
const __vue_script__ = script;
|
|
68
|
+
|
|
69
|
+
/* template */
|
|
70
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.computedTag,_vm._g(_vm._b({tag:"component",staticClass:"button",class:[_vm.size, _vm.type, {
|
|
71
|
+
'is-rounded': _vm.rounded,
|
|
72
|
+
'is-loading': _vm.loading,
|
|
73
|
+
'is-outlined': _vm.outlined,
|
|
74
|
+
'is-fullwidth': _vm.expanded,
|
|
75
|
+
'is-inverted': _vm.inverted,
|
|
76
|
+
'is-focused': _vm.focused,
|
|
77
|
+
'is-active': _vm.active,
|
|
78
|
+
'is-hovered': _vm.hovered,
|
|
79
|
+
'is-selected': _vm.selected
|
|
80
|
+
}],attrs:{"type":_vm.nativeType}},'component',_vm.$attrs,false),_vm.$listeners),[(_vm.iconLeft)?_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.iconLeft,"size":_vm.iconSize}}):_vm._e(),(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):(_vm.$slots.default)?_c('span',[_vm._t("default")],2):_vm._e(),(_vm.iconRight)?_c('b-icon',{attrs:{"pack":_vm.iconPack,"icon":_vm.iconRight,"size":_vm.iconSize}}):_vm._e()],1)};
|
|
81
|
+
var __vue_staticRenderFns__ = [];
|
|
82
|
+
|
|
83
|
+
/* style */
|
|
84
|
+
const __vue_inject_styles__ = undefined;
|
|
85
|
+
/* scoped */
|
|
86
|
+
const __vue_scope_id__ = undefined;
|
|
87
|
+
/* module identifier */
|
|
88
|
+
const __vue_module_identifier__ = undefined;
|
|
89
|
+
/* functional template */
|
|
90
|
+
const __vue_is_functional_template__ = false;
|
|
91
|
+
/* style inject */
|
|
92
|
+
|
|
93
|
+
/* style inject SSR */
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
var Button = __vue_normalize__(
|
|
98
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
99
|
+
__vue_inject_styles__,
|
|
100
|
+
__vue_script__,
|
|
101
|
+
__vue_scope_id__,
|
|
102
|
+
__vue_is_functional_template__,
|
|
103
|
+
__vue_module_identifier__,
|
|
104
|
+
undefined,
|
|
105
|
+
undefined
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
export { Button as B };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMobile, matchWithGroups } from './helpers.js';
|
|
2
|
-
import { c as config } from './chunk-
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
2
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
3
|
+
import { F as FormElementMixin } from './chunk-75a5af93.js';
|
|
4
4
|
|
|
5
5
|
var AM = 'AM';
|
|
6
6
|
var PM = 'PM';
|
|
@@ -208,7 +208,8 @@ var TimepickerMixin = {
|
|
|
208
208
|
hour: this.localeOptions.hour || 'numeric',
|
|
209
209
|
minute: this.localeOptions.minute || 'numeric',
|
|
210
210
|
second: this.enableSeconds ? this.localeOptions.second || 'numeric' : undefined,
|
|
211
|
-
|
|
211
|
+
// Fixes 12 hour display github.com/buefy/buefy/issues/3418
|
|
212
|
+
hourCycle: !this.isHourFormat24 ? 'h12' : 'h23'
|
|
212
213
|
});
|
|
213
214
|
},
|
|
214
215
|
newHourFormat: function newHourFormat() {
|
|
@@ -376,10 +377,10 @@ var TimepickerMixin = {
|
|
|
376
377
|
}
|
|
377
378
|
},
|
|
378
379
|
|
|
379
|
-
/**
|
|
380
|
-
* When v-model is changed:
|
|
381
|
-
* 1. Update internal value.
|
|
382
|
-
* 2. If it's invalid, validate again.
|
|
380
|
+
/**
|
|
381
|
+
* When v-model is changed:
|
|
382
|
+
* 1. Update internal value.
|
|
383
|
+
* 2. If it's invalid, validate again.
|
|
383
384
|
*/
|
|
384
385
|
value: {
|
|
385
386
|
handler: function handler(value) {
|
|
@@ -441,7 +442,7 @@ var TimepickerMixin = {
|
|
|
441
442
|
time.setHours(hours);
|
|
442
443
|
time.setMinutes(minutes);
|
|
443
444
|
time.setSeconds(seconds);
|
|
444
|
-
this.computedValue = new Date(time.getTime());
|
|
445
|
+
if (!isNaN(time.getTime())) this.computedValue = new Date(time.getTime());
|
|
445
446
|
}
|
|
446
447
|
},
|
|
447
448
|
updateInternalState: function updateInternalState(value) {
|
|
@@ -591,8 +592,8 @@ var TimepickerMixin = {
|
|
|
591
592
|
return disabled;
|
|
592
593
|
},
|
|
593
594
|
|
|
594
|
-
/*
|
|
595
|
-
* Parse string into date
|
|
595
|
+
/*
|
|
596
|
+
* Parse string into date
|
|
596
597
|
*/
|
|
597
598
|
onChange: function onChange(value) {
|
|
598
599
|
var date = this.timeParser(value, this);
|
|
@@ -607,8 +608,8 @@ var TimepickerMixin = {
|
|
|
607
608
|
}
|
|
608
609
|
},
|
|
609
610
|
|
|
610
|
-
/*
|
|
611
|
-
* Toggle timepicker
|
|
611
|
+
/*
|
|
612
|
+
* Toggle timepicker
|
|
612
613
|
*/
|
|
613
614
|
toggle: function toggle(active) {
|
|
614
615
|
if (this.$refs.dropdown) {
|
|
@@ -616,15 +617,15 @@ var TimepickerMixin = {
|
|
|
616
617
|
}
|
|
617
618
|
},
|
|
618
619
|
|
|
619
|
-
/*
|
|
620
|
-
* Close timepicker
|
|
620
|
+
/*
|
|
621
|
+
* Close timepicker
|
|
621
622
|
*/
|
|
622
623
|
close: function close() {
|
|
623
624
|
this.toggle(false);
|
|
624
625
|
},
|
|
625
626
|
|
|
626
|
-
/*
|
|
627
|
-
* Call default onFocus method and show timepicker
|
|
627
|
+
/*
|
|
628
|
+
* Call default onFocus method and show timepicker
|
|
628
629
|
*/
|
|
629
630
|
handleOnFocus: function handleOnFocus() {
|
|
630
631
|
this.onFocus();
|
|
@@ -634,8 +635,8 @@ var TimepickerMixin = {
|
|
|
634
635
|
}
|
|
635
636
|
},
|
|
636
637
|
|
|
637
|
-
/*
|
|
638
|
-
* Format date into string 'HH-MM-SS'
|
|
638
|
+
/*
|
|
639
|
+
* Format date into string 'HH-MM-SS'
|
|
639
640
|
*/
|
|
640
641
|
formatHHMMSS: function formatHHMMSS(value) {
|
|
641
642
|
var date = new Date(value);
|
|
@@ -650,8 +651,8 @@ var TimepickerMixin = {
|
|
|
650
651
|
return '';
|
|
651
652
|
},
|
|
652
653
|
|
|
653
|
-
/*
|
|
654
|
-
* Parse time from string
|
|
654
|
+
/*
|
|
655
|
+
* Parse time from string
|
|
655
656
|
*/
|
|
656
657
|
onChangeNativePicker: function onChangeNativePicker(event) {
|
|
657
658
|
var date = event.target.value;
|
|
@@ -682,8 +683,8 @@ var TimepickerMixin = {
|
|
|
682
683
|
return (value < 10 ? '0' : '') + value;
|
|
683
684
|
},
|
|
684
685
|
|
|
685
|
-
/*
|
|
686
|
-
* Format date into string
|
|
686
|
+
/*
|
|
687
|
+
* Format date into string
|
|
687
688
|
*/
|
|
688
689
|
formatValue: function formatValue(date) {
|
|
689
690
|
if (date && !isNaN(date)) {
|
|
@@ -693,8 +694,8 @@ var TimepickerMixin = {
|
|
|
693
694
|
}
|
|
694
695
|
},
|
|
695
696
|
|
|
696
|
-
/**
|
|
697
|
-
* Keypress event that is bound to the document.
|
|
697
|
+
/**
|
|
698
|
+
* Keypress event that is bound to the document.
|
|
698
699
|
*/
|
|
699
700
|
keyPress: function keyPress(_ref) {
|
|
700
701
|
var key = _ref.key;
|
|
@@ -704,8 +705,8 @@ var TimepickerMixin = {
|
|
|
704
705
|
}
|
|
705
706
|
},
|
|
706
707
|
|
|
707
|
-
/**
|
|
708
|
-
* Emit 'blur' event on dropdown is not active (closed)
|
|
708
|
+
/**
|
|
709
|
+
* Emit 'blur' event on dropdown is not active (closed)
|
|
709
710
|
*/
|
|
710
711
|
onActiveChange: function onActiveChange(value) {
|
|
711
712
|
if (!value) {
|
package/dist/esm/clockpicker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
2
|
import './helpers.js';
|
|
3
|
-
import { c as config } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { I as Icon } from './chunk-
|
|
3
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
4
|
+
import './chunk-75a5af93.js';
|
|
5
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
6
6
|
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
7
|
-
import { I as Input } from './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { T as TimepickerMixin } from './chunk-
|
|
7
|
+
import { I as Input } from './chunk-ae8ab23a.js';
|
|
8
|
+
import './chunk-29ca0df8.js';
|
|
9
|
+
import { T as TimepickerMixin } from './chunk-ece062a7.js';
|
|
10
10
|
import './chunk-42f463e6.js';
|
|
11
|
-
import { D as Dropdown, a as DropdownItem } from './chunk-
|
|
12
|
-
import { F as Field } from './chunk-
|
|
11
|
+
import { D as Dropdown, a as DropdownItem } from './chunk-4b67a181.js';
|
|
12
|
+
import { F as Field } from './chunk-b07e3182.js';
|
|
13
13
|
|
|
14
14
|
//
|
|
15
15
|
//
|
package/dist/esm/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-2452e3d3.js';
|
|
2
2
|
import { merge } from './helpers.js';
|
|
3
|
-
import { c as config, a as setOptions } from './chunk-
|
|
3
|
+
import { c as config, a as setOptions } from './chunk-8ed29c41.js';
|
|
4
4
|
|
|
5
5
|
var ConfigComponent = {
|
|
6
6
|
getOptions: function getOptions() {
|
package/dist/esm/datepicker.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-2452e3d3.js';
|
|
2
2
|
import './helpers.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import './chunk-8ed29c41.js';
|
|
4
|
+
import './chunk-75a5af93.js';
|
|
5
|
+
import './chunk-d92f0cd9.js';
|
|
6
6
|
import { r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-ae8ab23a.js';
|
|
8
|
+
import './chunk-29ca0df8.js';
|
|
9
9
|
import './chunk-42f463e6.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import { D as Datepicker } from './chunk-
|
|
14
|
-
export { D as BDatepicker } from './chunk-
|
|
10
|
+
import './chunk-4b67a181.js';
|
|
11
|
+
import './chunk-b07e3182.js';
|
|
12
|
+
import './chunk-83eb0d37.js';
|
|
13
|
+
import { D as Datepicker } from './chunk-22e9f916.js';
|
|
14
|
+
export { D as BDatepicker } from './chunk-22e9f916.js';
|
|
15
15
|
|
|
16
16
|
var Plugin = {
|
|
17
17
|
install: function install(Vue) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
2
|
import { isMobile, matchWithGroups } from './helpers.js';
|
|
3
|
-
import { c as config } from './chunk-
|
|
4
|
-
import { F as FormElementMixin } from './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import { c as config } from './chunk-8ed29c41.js';
|
|
4
|
+
import { F as FormElementMixin } from './chunk-75a5af93.js';
|
|
5
|
+
import './chunk-d92f0cd9.js';
|
|
6
6
|
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
7
|
+
import './chunk-ae8ab23a.js';
|
|
8
|
+
import './chunk-29ca0df8.js';
|
|
9
|
+
import './chunk-ece062a7.js';
|
|
10
10
|
import './chunk-42f463e6.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import { D as Datepicker } from './chunk-
|
|
15
|
-
import { T as Timepicker } from './chunk-
|
|
11
|
+
import './chunk-4b67a181.js';
|
|
12
|
+
import './chunk-b07e3182.js';
|
|
13
|
+
import './chunk-83eb0d37.js';
|
|
14
|
+
import { D as Datepicker } from './chunk-22e9f916.js';
|
|
15
|
+
import { T as Timepicker } from './chunk-21fc0948.js';
|
|
16
16
|
|
|
17
17
|
var _components;
|
|
18
18
|
var AM = 'AM';
|
|
@@ -132,7 +132,7 @@ var script = {
|
|
|
132
132
|
hour: this.localeOptions.hour || 'numeric',
|
|
133
133
|
minute: this.localeOptions.minute || 'numeric',
|
|
134
134
|
second: this.enableSeconds() ? this.localeOptions.second || 'numeric' : undefined,
|
|
135
|
-
|
|
135
|
+
hourCycle: !this.isHourFormat24() ? 'h12' : 'h23'
|
|
136
136
|
});
|
|
137
137
|
},
|
|
138
138
|
isMobileNative: function isMobileNative() {
|
|
@@ -292,6 +292,13 @@ var script = {
|
|
|
292
292
|
this.computedValue = null;
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
|
+
|
|
296
|
+
/*
|
|
297
|
+
* Emit 'active-change' on datepicker active state change
|
|
298
|
+
*/
|
|
299
|
+
onActiveChange: function onActiveChange(value) {
|
|
300
|
+
this.$emit('active-change', value);
|
|
301
|
+
},
|
|
295
302
|
formatNative: function formatNative(value) {
|
|
296
303
|
var date = new Date(value);
|
|
297
304
|
|
|
@@ -325,7 +332,7 @@ var script = {
|
|
|
325
332
|
const __vue_script__ = script;
|
|
326
333
|
|
|
327
334
|
/* template */
|
|
328
|
-
var __vue_render__ = 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))};
|
|
335
|
+
var __vue_render__ = 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))};
|
|
329
336
|
var __vue_staticRenderFns__ = [];
|
|
330
337
|
|
|
331
338
|
/* style */
|
package/dist/esm/dialog.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-2452e3d3.js';
|
|
2
2
|
import { removeElement, merge } from './helpers.js';
|
|
3
|
-
import { c as config, V as VueInstance } from './chunk-
|
|
4
|
-
import { I as Icon } from './chunk-
|
|
3
|
+
import { c as config, V as VueInstance } from './chunk-8ed29c41.js';
|
|
4
|
+
import { I as Icon } from './chunk-d92f0cd9.js';
|
|
5
5
|
import { _ as __vue_normalize__, r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';
|
|
6
|
+
import { B as Button } from './chunk-e7c9b2cb.js';
|
|
6
7
|
import { t as trapFocus } from './chunk-42f463e6.js';
|
|
7
|
-
import { M as Modal } from './chunk-
|
|
8
|
+
import { M as Modal } from './chunk-9f7f7441.js';
|
|
8
9
|
|
|
10
|
+
var _components;
|
|
9
11
|
var script = {
|
|
10
12
|
name: 'BDialog',
|
|
11
|
-
components:
|
|
13
|
+
components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Button.name, Button), _components),
|
|
12
14
|
directives: {
|
|
13
15
|
trapFocus: trapFocus
|
|
14
16
|
},
|
|
@@ -182,9 +184,9 @@ var script = {
|
|
|
182
184
|
if (_this4.hasInput) {
|
|
183
185
|
_this4.$refs.input.focus();
|
|
184
186
|
} else if (_this4.focusOn === 'cancel' && _this4.showCancel) {
|
|
185
|
-
_this4.$refs.cancelButton.focus();
|
|
187
|
+
_this4.$refs.cancelButton.$el.focus();
|
|
186
188
|
} else {
|
|
187
|
-
_this4.$refs.confirmButton.focus();
|
|
189
|
+
_this4.$refs.confirmButton.$el.focus();
|
|
188
190
|
}
|
|
189
191
|
});
|
|
190
192
|
}
|
|
@@ -194,7 +196,7 @@ var script = {
|
|
|
194
196
|
const __vue_script__ = script;
|
|
195
197
|
|
|
196
198
|
/* template */
|
|
197
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"dialog modal is-active",class:_vm.dialogClass,attrs:{"role":_vm.ariaRole,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"modal-card animation-content"},[(_vm.title)?_c('header',{staticClass:"modal-card-head"},[_c('p',{staticClass:"modal-card-title"},[_vm._v(_vm._s(_vm.title))])]):_vm._e(),_c('section',{staticClass:"modal-card-body",class:{ 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon }},[_c('div',{staticClass:"media"},[(_vm.hasIcon && (_vm.icon || _vm.iconByType))?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.icon ? _vm.icon : _vm.iconByType,"pack":_vm.iconPack,"type":_vm.type,"both":!_vm.icon,"size":"is-large"}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[_c('p',[(_vm.$slots.default)?[_vm._t("default")]:[_c('div',{domProps:{"innerHTML":_vm._s(_vm.message)}})]],2),(_vm.hasInput)?_c('div',{staticClass:"field"},[_c('div',{staticClass:"control"},[(((_vm.inputAttrs).type)==='checkbox')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.prompt)?_vm._i(_vm.prompt,null)>-1:(_vm.prompt)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){var $$a=_vm.prompt,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.prompt=$$a.concat([$$v]));}else{$$i>-1&&(_vm.prompt=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.prompt=$$c;}}}},'input',_vm.inputAttrs,false)):(((_vm.inputAttrs).type)==='radio')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"radio"},domProps:{"checked":_vm._q(_vm.prompt,null)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){_vm.prompt=null;}}},'input',_vm.inputAttrs,false)):_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":(_vm.inputAttrs).type},domProps:{"value":(_vm.prompt)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"input":function($event){if($event.target.composing){ return; }_vm.prompt=$event.target.value;}}},'input',_vm.inputAttrs,false))]),_c('p',{staticClass:"help is-danger"},[_vm._v(_vm._s(_vm.validationMessage))])]):_vm._e()])])]),_c('footer',{staticClass:"modal-card-foot"},[(_vm.showCancel)?_c('button',{ref:"cancelButton",
|
|
199
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"dialog modal is-active",class:_vm.dialogClass,attrs:{"role":_vm.ariaRole,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"modal-card animation-content"},[(_vm.title)?_c('header',{staticClass:"modal-card-head"},[_c('p',{staticClass:"modal-card-title"},[_vm._v(_vm._s(_vm.title))])]):_vm._e(),_c('section',{staticClass:"modal-card-body",class:{ 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon }},[_c('div',{staticClass:"media"},[(_vm.hasIcon && (_vm.icon || _vm.iconByType))?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.icon ? _vm.icon : _vm.iconByType,"pack":_vm.iconPack,"type":_vm.type,"both":!_vm.icon,"size":"is-large"}})],1):_vm._e(),_c('div',{staticClass:"media-content"},[_c('p',[(_vm.$slots.default)?[_vm._t("default")]:[_c('div',{domProps:{"innerHTML":_vm._s(_vm.message)}})]],2),(_vm.hasInput)?_c('div',{staticClass:"field"},[_c('div',{staticClass:"control"},[(((_vm.inputAttrs).type)==='checkbox')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.prompt)?_vm._i(_vm.prompt,null)>-1:(_vm.prompt)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){var $$a=_vm.prompt,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.prompt=$$a.concat([$$v]));}else{$$i>-1&&(_vm.prompt=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.prompt=$$c;}}}},'input',_vm.inputAttrs,false)):(((_vm.inputAttrs).type)==='radio')?_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":"radio"},domProps:{"checked":_vm._q(_vm.prompt,null)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"change":function($event){_vm.prompt=null;}}},'input',_vm.inputAttrs,false)):_c('input',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.prompt),expression:"prompt"}],ref:"input",staticClass:"input",class:{ 'is-danger': _vm.validationMessage },attrs:{"type":(_vm.inputAttrs).type},domProps:{"value":(_vm.prompt)},on:{"compositionstart":function($event){_vm.isCompositing = true;},"compositionend":function($event){_vm.isCompositing = false;},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.confirm($event)},"input":function($event){if($event.target.composing){ return; }_vm.prompt=$event.target.value;}}},'input',_vm.inputAttrs,false))]),_c('p',{staticClass:"help is-danger"},[_vm._v(_vm._s(_vm.validationMessage))])]):_vm._e()])])]),_c('footer',{staticClass:"modal-card-foot"},[(_vm.showCancel)?_c('b-button',{ref:"cancelButton",on:{"click":function($event){return _vm.cancel('button')}}},[_vm._v(_vm._s(_vm.cancelText))]):_vm._e(),_c('b-button',{ref:"confirmButton",attrs:{"type":_vm.type},on:{"click":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmText))])],1)])]):_vm._e()])};
|
|
198
200
|
var __vue_staticRenderFns__ = [];
|
|
199
201
|
|
|
200
202
|
/* style */
|