buefy 0.9.13 → 0.9.17
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 +1706 -1639
- package/README.md +1 -1
- package/dist/buefy.css +313 -1
- package/dist/buefy.esm.js +4431 -2331
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +4467 -2364
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +5 -5
- package/dist/cjs/button.js +3 -3
- package/dist/cjs/carousel.js +4 -4
- package/dist/cjs/{chunk-34949503.js → chunk-0d6f213f.js} +2 -2
- package/dist/cjs/{chunk-2c7de785.js → chunk-0e3108f5.js} +2 -2
- package/dist/cjs/{chunk-2911aa4b.js → chunk-1438658c.js} +14 -11
- package/dist/cjs/{chunk-114191ae.js → chunk-1f7e4ed3.js} +3 -3
- package/dist/cjs/{chunk-a11294f9.js → chunk-334bc809.js} +1 -1
- package/dist/cjs/chunk-45739695.js +332 -0
- package/dist/cjs/{chunk-c7b2aa4b.js → chunk-4bcfaf1c.js} +0 -0
- package/dist/cjs/{chunk-f5106717.js → chunk-5058e659.js} +3 -3
- package/dist/cjs/{chunk-61023b09.js → chunk-545e1c7f.js} +102 -16
- package/dist/cjs/{chunk-30670fac.js → chunk-54b0042d.js} +19 -3
- package/dist/cjs/{chunk-fe2f57ee.js → chunk-5ed8a75a.js} +2 -2
- package/dist/cjs/{chunk-d120e215.js → chunk-73f8eef8.js} +8 -2
- package/dist/cjs/{chunk-2062216d.js → chunk-7c11fdde.js} +5 -4
- package/dist/cjs/{chunk-3cc5d9a6.js → chunk-841c0e0f.js} +1 -1
- package/dist/cjs/{chunk-9e4cf4c5.js → chunk-87a116d9.js} +0 -0
- package/dist/cjs/{chunk-fefd7b77.js → chunk-a53b7aff.js} +0 -0
- package/dist/cjs/{chunk-d0f8ea39.js → chunk-c0a093d7.js} +7 -7
- package/dist/cjs/{chunk-7da0c017.js → chunk-c8abb3ed.js} +21 -21
- package/dist/cjs/{chunk-c6fbc7b4.js → chunk-d0df905a.js} +15 -2
- package/dist/cjs/{chunk-d54e40f6.js → chunk-e86d3eeb.js} +1 -8
- package/dist/cjs/{chunk-6cb902f8.js → chunk-e872f5e2.js} +1 -1
- package/dist/cjs/{chunk-2ae50815.js → chunk-f5285f14.js} +4 -4
- package/dist/cjs/clockpicker.js +8 -8
- package/dist/cjs/colorpicker.js +1752 -0
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/datepicker.js +11 -11
- package/dist/cjs/datetimepicker.js +30 -14
- package/dist/cjs/dialog.js +5 -5
- package/dist/cjs/dropdown.js +3 -3
- package/dist/cjs/field.js +2 -2
- package/dist/cjs/helpers.js +21 -1
- package/dist/cjs/icon.js +2 -2
- package/dist/cjs/image.js +2 -2
- package/dist/cjs/index.js +27 -22
- package/dist/cjs/input.js +4 -4
- package/dist/cjs/loading.js +5 -5
- package/dist/cjs/menu.js +2 -2
- package/dist/cjs/message.js +4 -9
- package/dist/cjs/modal.js +5 -5
- package/dist/cjs/navbar.js +4 -1
- package/dist/cjs/notification.js +7 -7
- package/dist/cjs/numberinput.js +30 -21
- package/dist/cjs/pagination.js +7 -7
- package/dist/cjs/progress.js +3 -3
- package/dist/cjs/rate.js +2 -2
- package/dist/cjs/select.js +4 -4
- package/dist/cjs/sidebar.js +1 -1
- package/dist/cjs/slider.js +3 -3
- package/dist/cjs/snackbar.js +5 -4
- package/dist/cjs/steps.js +5 -5
- package/dist/cjs/table.js +157 -146
- package/dist/cjs/tabs.js +7 -7
- package/dist/cjs/taginput.js +5 -5
- package/dist/cjs/timepicker.js +12 -12
- package/dist/cjs/toast.js +3 -3
- package/dist/cjs/tooltip.js +4 -4
- package/dist/cjs/upload.js +23 -9
- package/dist/components/autocomplete/index.js +24 -2
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +8 -2
- package/dist/components/button/index.min.js +2 -2
- package/dist/components/carousel/index.js +8 -2
- 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 +41 -22
- 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/colorpicker/index.js +4318 -0
- package/dist/components/colorpicker/index.min.js +2 -0
- package/dist/components/datepicker/index.js +48 -26
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +66 -28
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +8 -2
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +14 -1
- package/dist/components/dropdown/index.min.js +2 -2
- package/dist/components/field/index.js +21 -21
- package/dist/components/field/index.min.js +1 -1
- package/dist/components/icon/index.js +8 -2
- package/dist/components/icon/index.min.js +2 -2
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +8 -2
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +8 -2
- package/dist/components/menu/index.min.js +2 -2
- package/dist/components/message/index.js +11 -9
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.min.js +1 -1
- package/dist/components/navbar/index.js +4 -1
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +13 -13
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +34 -19
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +107 -16
- package/dist/components/pagination/index.min.js +2 -2
- package/dist/components/progress/index.js +2 -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 +8 -2
- package/dist/components/rate/index.min.js +2 -2
- package/dist/components/select/index.js +8 -2
- package/dist/components/select/index.min.js +2 -2
- 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 +2 -2
- package/dist/components/slider/index.min.js +2 -2
- package/dist/components/snackbar/index.js +4 -10
- package/dist/components/snackbar/index.min.js +2 -2
- package/dist/components/steps/index.js +8 -2
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +253 -133
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +10 -4
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +24 -2
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +41 -22
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +2 -9
- package/dist/components/toast/index.min.js +2 -2
- package/dist/components/tooltip/index.js +2 -2
- package/dist/components/tooltip/index.min.js +2 -2
- package/dist/components/upload/index.js +20 -6
- package/dist/components/upload/index.min.js +2 -2
- package/dist/esm/autocomplete.js +6 -6
- package/dist/esm/button.js +4 -4
- package/dist/esm/carousel.js +4 -4
- package/dist/esm/{chunk-18e8b067.js → chunk-1a4fde6d.js} +102 -17
- package/dist/esm/{chunk-3773c62d.js → chunk-22cf6667.js} +2 -2
- package/dist/esm/{chunk-ece062a7.js → chunk-262b3f82.js} +1 -1
- package/dist/esm/chunk-455cdeae.js +317 -0
- package/dist/esm/{chunk-d7f92d97.js → chunk-5435bd9a.js} +5 -4
- package/dist/esm/{chunk-e7c9b2cb.js → chunk-58cdbf2b.js} +2 -2
- package/dist/esm/{chunk-29ca0df8.js → chunk-60a03517.js} +1 -1
- package/dist/esm/{chunk-21fc0948.js → chunk-66cef090.js} +7 -7
- package/dist/esm/{chunk-71a547bc.js → chunk-690d5be4.js} +1 -1
- package/dist/esm/{chunk-83eb0d37.js → chunk-6adc5c5d.js} +3 -3
- package/dist/esm/{chunk-c9c58d0c.js → chunk-6d0f2352.js} +0 -0
- package/dist/esm/{chunk-8d0f95b8.js → chunk-6d96579e.js} +4 -4
- package/dist/esm/{chunk-22e9f916.js → chunk-6fb4a069.js} +14 -11
- package/dist/esm/{chunk-75a5af93.js → chunk-84c6dfd6.js} +0 -0
- package/dist/esm/{chunk-ae8ab23a.js → chunk-a628d44d.js} +3 -3
- package/dist/esm/{chunk-b0c0c6b0.js → chunk-c9c18b2f.js} +0 -0
- package/dist/esm/{chunk-9f7f7441.js → chunk-d35985c7.js} +0 -0
- package/dist/esm/{chunk-799e084d.js → chunk-d9232770.js} +1 -8
- package/dist/esm/{chunk-4b67a181.js → chunk-dbd43ef1.js} +15 -2
- package/dist/esm/{chunk-d92f0cd9.js → chunk-e044aa02.js} +8 -2
- package/dist/esm/{chunk-b07e3182.js → chunk-effa4d25.js} +21 -21
- package/dist/esm/{chunk-6019fd7a.js → chunk-f9eaeac4.js} +19 -3
- package/dist/esm/clockpicker.js +8 -8
- package/dist/esm/colorpicker.js +1748 -0
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +10 -10
- package/dist/esm/datetimepicker.js +29 -13
- package/dist/esm/dialog.js +4 -4
- package/dist/esm/dropdown.js +4 -4
- package/dist/esm/field.js +3 -3
- package/dist/esm/helpers.js +20 -2
- package/dist/esm/icon.js +3 -3
- package/dist/esm/image.js +3 -3
- package/dist/esm/index.js +94 -91
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +3 -3
- package/dist/esm/menu.js +2 -2
- package/dist/esm/message.js +3 -8
- package/dist/esm/modal.js +3 -3
- package/dist/esm/navbar.js +4 -1
- package/dist/esm/notification.js +5 -5
- package/dist/esm/numberinput.js +30 -21
- package/dist/esm/pagination.js +4 -4
- package/dist/esm/progress.js +3 -3
- package/dist/esm/rate.js +2 -2
- package/dist/esm/select.js +5 -5
- package/dist/esm/sidebar.js +1 -1
- package/dist/esm/slider.js +2 -2
- package/dist/esm/snackbar.js +4 -3
- package/dist/esm/steps.js +5 -5
- package/dist/esm/table.js +155 -144
- package/dist/esm/tabs.js +7 -7
- package/dist/esm/taginput.js +5 -5
- package/dist/esm/timepicker.js +11 -11
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +3 -3
- package/dist/esm/upload.js +21 -7
- package/dist/vetur/attributes.json +96 -0
- package/dist/vetur/tags.json +30 -1
- package/package.json +1 -1
- package/src/components/autocomplete/Autocomplete.vue +10 -0
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.js.snap +1 -5
- package/src/components/carousel/__snapshots__/CarouselList.spec.js.snap +48 -48
- package/src/components/colorpicker/Colorpicker.spec.js +10 -0
- package/src/components/colorpicker/Colorpicker.vue +354 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.spec.js +14 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.vue +194 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.spec.js +22 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +366 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.spec.js +22 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +442 -0
- package/src/components/colorpicker/__snapshots__/ColorPickerHSLRepresentationSquare.spec.js.snap +12 -0
- package/src/components/colorpicker/__snapshots__/Colorpicker.spec.js.snap +32 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerAlphaSlider.spec.js.snap +11 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationTriangle.spec.js.snap +36 -0
- package/src/components/colorpicker/index.js +17 -0
- package/src/components/datepicker/DatepickerTableRow.spec.js +26 -0
- package/src/components/datepicker/DatepickerTableRow.vue +4 -5
- package/src/components/datetimepicker/Datetimepicker.vue +17 -1
- package/src/components/dropdown/Dropdown.vue +13 -0
- package/src/components/field/Field.vue +271 -271
- package/src/components/index.js +2 -0
- package/src/components/message/Message.vue +0 -5
- package/src/components/navbar/NavbarDropdown.vue +4 -0
- package/src/components/notification/Notification.vue +1 -1
- package/src/components/numberinput/Numberinput.spec.js +62 -0
- package/src/components/numberinput/Numberinput.vue +22 -15
- package/src/components/pagination/Pagination.vue +141 -51
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/snackbar/index.js +2 -1
- package/src/components/table/Table.spec.js +17 -3
- package/src/components/table/Table.vue +1436 -1409
- package/src/components/table/TablePagination.vue +10 -2
- package/src/components/tabs/Tabs.vue +2 -0
- package/src/components/timepicker/__snapshots__/Timepicker.spec.js.snap +18 -47
- package/src/components/tooltip/Tooltip.vue +2 -2
- package/src/components/upload/Upload.vue +19 -7
- package/src/scss/buefy.scss +1 -0
- package/src/scss/components/_colorpicker.scss +283 -0
- package/src/scss/components/_pagination.scss +38 -0
- package/src/utils/MessageMixin.js +2 -1
- package/src/utils/NoticeMixin.js +1 -5
- package/src/utils/color.js +441 -0
- package/src/utils/color.spec.js +52 -0
- package/src/utils/helpers.js +16 -0
- package/src/utils/icons.js +7 -1
- package/types/components.d.ts +7 -2
- package/types/helpers.d.ts +2 -1
- package/dist/cjs/chunk-92621ff7.js +0 -141
- package/dist/esm/chunk-2452e3d3.js +0 -134
package/dist/cjs/table.js
CHANGED
|
@@ -2,38 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var __chunk_1 = require('./chunk-
|
|
5
|
+
var __chunk_1 = require('./chunk-45739695.js');
|
|
6
6
|
var helpers = require('./helpers.js');
|
|
7
7
|
var __chunk_2 = require('./chunk-9103eeda.js');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
var __chunk_4 = require('./chunk-
|
|
8
|
+
require('./chunk-87a116d9.js');
|
|
9
|
+
var __chunk_4 = require('./chunk-73f8eef8.js');
|
|
10
10
|
var __chunk_5 = require('./chunk-13e039f5.js');
|
|
11
|
-
var __chunk_6 = require('./chunk-
|
|
11
|
+
var __chunk_6 = require('./chunk-5058e659.js');
|
|
12
12
|
require('./chunk-8b8384ca.js');
|
|
13
13
|
var __chunk_12 = require('./chunk-3b43d77a.js');
|
|
14
|
-
var __chunk_17 = require('./chunk-
|
|
14
|
+
var __chunk_17 = require('./chunk-1f7e4ed3.js');
|
|
15
15
|
require('./chunk-f1df1c63.js');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var __chunk_27 = require('./chunk-
|
|
19
|
-
|
|
20
|
-
function debounce (func, wait, immediate) {
|
|
21
|
-
var timeout;
|
|
22
|
-
return function () {
|
|
23
|
-
var context = this;
|
|
24
|
-
var args = arguments;
|
|
25
|
-
|
|
26
|
-
var later = function later() {
|
|
27
|
-
timeout = null;
|
|
28
|
-
if (!immediate) func.apply(context, args);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var callNow = immediate && !timeout;
|
|
32
|
-
clearTimeout(timeout);
|
|
33
|
-
timeout = setTimeout(later, wait);
|
|
34
|
-
if (callNow) func.apply(context, args);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
16
|
+
var __chunk_23 = require('./chunk-0e3108f5.js');
|
|
17
|
+
var __chunk_26 = require('./chunk-545e1c7f.js');
|
|
18
|
+
var __chunk_27 = require('./chunk-a53b7aff.js');
|
|
37
19
|
|
|
38
20
|
var _components;
|
|
39
21
|
var script = {
|
|
@@ -340,7 +322,7 @@ const __vue_script__$1 = script$1;
|
|
|
340
322
|
|
|
341
323
|
var script$2 = {
|
|
342
324
|
name: 'BTablePagination',
|
|
343
|
-
components: __chunk_1._defineProperty({},
|
|
325
|
+
components: __chunk_1._defineProperty({}, __chunk_26.Pagination.name, __chunk_26.Pagination),
|
|
344
326
|
props: {
|
|
345
327
|
paginated: Boolean,
|
|
346
328
|
total: [Number, String],
|
|
@@ -353,7 +335,11 @@ var script$2 = {
|
|
|
353
335
|
ariaNextLabel: String,
|
|
354
336
|
ariaPreviousLabel: String,
|
|
355
337
|
ariaPageLabel: String,
|
|
356
|
-
ariaCurrentLabel: String
|
|
338
|
+
ariaCurrentLabel: String,
|
|
339
|
+
pageInput: Boolean,
|
|
340
|
+
paginationOrder: String,
|
|
341
|
+
pageInputPosition: String,
|
|
342
|
+
debouncePageInput: [Number, String]
|
|
357
343
|
},
|
|
358
344
|
data: function data() {
|
|
359
345
|
return {
|
|
@@ -381,7 +367,7 @@ var script$2 = {
|
|
|
381
367
|
const __vue_script__$2 = script$2;
|
|
382
368
|
|
|
383
369
|
/* template */
|
|
384
|
-
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top level"},[_c('div',{staticClass:"level-left"},[_vm._t("default")],2),_c('div',{staticClass:"level-right"},[(_vm.paginated)?_c('div',{staticClass:"level-item"},[_c('b-pagination',{attrs:{"icon-pack":_vm.iconPack,"total":_vm.total,"per-page":_vm.perPage,"simple":_vm.paginationSimple,"size":_vm.paginationSize,"current":_vm.newCurrentPage,"rounded":_vm.rounded,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"change":_vm.pageChanged}})],1):_vm._e()])])};
|
|
370
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"top level"},[_c('div',{staticClass:"level-left"},[_vm._t("default")],2),_c('div',{staticClass:"level-right"},[(_vm.paginated)?_c('div',{staticClass:"level-item"},[_c('b-pagination',{attrs:{"icon-pack":_vm.iconPack,"total":_vm.total,"per-page":_vm.perPage,"simple":_vm.paginationSimple,"size":_vm.paginationSize,"current":_vm.newCurrentPage,"rounded":_vm.rounded,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel,"page-input":_vm.pageInput,"order":_vm.paginationOrder,"page-input-position":_vm.pageInputPosition,"debounce-page-input":_vm.debouncePageInput},on:{"change":_vm.pageChanged}})],1):_vm._e()])])};
|
|
385
371
|
var __vue_staticRenderFns__$1 = [];
|
|
386
372
|
|
|
387
373
|
/* style */
|
|
@@ -412,7 +398,7 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
412
398
|
var _components$1;
|
|
413
399
|
var script$3 = {
|
|
414
400
|
name: 'BTable',
|
|
415
|
-
components: (_components$1 = {}, __chunk_1._defineProperty(_components$1, __chunk_12.Checkbox.name, __chunk_12.Checkbox), __chunk_1._defineProperty(_components$1, __chunk_4.Icon.name, __chunk_4.Icon), __chunk_1._defineProperty(_components$1, __chunk_6.Input.name, __chunk_6.Input), __chunk_1._defineProperty(_components$1,
|
|
401
|
+
components: (_components$1 = {}, __chunk_1._defineProperty(_components$1, __chunk_12.Checkbox.name, __chunk_12.Checkbox), __chunk_1._defineProperty(_components$1, __chunk_4.Icon.name, __chunk_4.Icon), __chunk_1._defineProperty(_components$1, __chunk_6.Input.name, __chunk_6.Input), __chunk_1._defineProperty(_components$1, __chunk_23.Loading.name, __chunk_23.Loading), __chunk_1._defineProperty(_components$1, __chunk_27.SlotComponent.name, __chunk_27.SlotComponent), __chunk_1._defineProperty(_components$1, TableMobileSort.name, TableMobileSort), __chunk_1._defineProperty(_components$1, TableColumn.name, TableColumn), __chunk_1._defineProperty(_components$1, TablePagination.name, TablePagination), _components$1),
|
|
416
402
|
inheritAttrs: false,
|
|
417
403
|
provide: function provide() {
|
|
418
404
|
return {
|
|
@@ -600,7 +586,14 @@ var script$3 = {
|
|
|
600
586
|
showCaption: {
|
|
601
587
|
type: Boolean,
|
|
602
588
|
default: true
|
|
603
|
-
}
|
|
589
|
+
},
|
|
590
|
+
pageInput: {
|
|
591
|
+
type: Boolean,
|
|
592
|
+
default: false
|
|
593
|
+
},
|
|
594
|
+
paginationOrder: String,
|
|
595
|
+
pageInputPosition: String,
|
|
596
|
+
debouncePageInput: [Number, String]
|
|
604
597
|
},
|
|
605
598
|
data: function data() {
|
|
606
599
|
return {
|
|
@@ -650,8 +643,8 @@ var script$3 = {
|
|
|
650
643
|
};
|
|
651
644
|
},
|
|
652
645
|
|
|
653
|
-
/**
|
|
654
|
-
* Splitted data based on the pagination.
|
|
646
|
+
/**
|
|
647
|
+
* Splitted data based on the pagination.
|
|
655
648
|
*/
|
|
656
649
|
visibleData: function visibleData() {
|
|
657
650
|
if (!this.paginated) return this.newData;
|
|
@@ -673,8 +666,8 @@ var script$3 = {
|
|
|
673
666
|
});
|
|
674
667
|
},
|
|
675
668
|
|
|
676
|
-
/**
|
|
677
|
-
* Check if all rows in the page are checked.
|
|
669
|
+
/**
|
|
670
|
+
* Check if all rows in the page are checked.
|
|
678
671
|
*/
|
|
679
672
|
isAllChecked: function isAllChecked() {
|
|
680
673
|
var _this = this;
|
|
@@ -689,8 +682,8 @@ var script$3 = {
|
|
|
689
682
|
return !isAllChecked;
|
|
690
683
|
},
|
|
691
684
|
|
|
692
|
-
/**
|
|
693
|
-
* Check if all rows in the page are checkable.
|
|
685
|
+
/**
|
|
686
|
+
* Check if all rows in the page are checkable.
|
|
694
687
|
*/
|
|
695
688
|
isAllUncheckable: function isAllUncheckable() {
|
|
696
689
|
var _this2 = this;
|
|
@@ -701,8 +694,8 @@ var script$3 = {
|
|
|
701
694
|
return validVisibleData.length === 0;
|
|
702
695
|
},
|
|
703
696
|
|
|
704
|
-
/**
|
|
705
|
-
* Check if has any sortable column.
|
|
697
|
+
/**
|
|
698
|
+
* Check if has any sortable column.
|
|
706
699
|
*/
|
|
707
700
|
hasSortablenewColumns: function hasSortablenewColumns() {
|
|
708
701
|
return this.newColumns.some(function (column) {
|
|
@@ -710,8 +703,8 @@ var script$3 = {
|
|
|
710
703
|
});
|
|
711
704
|
},
|
|
712
705
|
|
|
713
|
-
/**
|
|
714
|
-
* Check if has any searchable column.
|
|
706
|
+
/**
|
|
707
|
+
* Check if has any searchable column.
|
|
715
708
|
*/
|
|
716
709
|
hasSearchablenewColumns: function hasSearchablenewColumns() {
|
|
717
710
|
return this.newColumns.some(function (column) {
|
|
@@ -719,8 +712,8 @@ var script$3 = {
|
|
|
719
712
|
});
|
|
720
713
|
},
|
|
721
714
|
|
|
722
|
-
/**
|
|
723
|
-
* Check if has any column using subheading.
|
|
715
|
+
/**
|
|
716
|
+
* Check if has any column using subheading.
|
|
724
717
|
*/
|
|
725
718
|
hasCustomSubheadings: function hasCustomSubheadings() {
|
|
726
719
|
if (this.$scopedSlots && this.$scopedSlots.subheading) return true;
|
|
@@ -729,8 +722,8 @@ var script$3 = {
|
|
|
729
722
|
});
|
|
730
723
|
},
|
|
731
724
|
|
|
732
|
-
/**
|
|
733
|
-
* Return total column count based if it's checkable or expanded
|
|
725
|
+
/**
|
|
726
|
+
* Return total column count based if it's checkable or expanded
|
|
734
727
|
*/
|
|
735
728
|
columnCount: function columnCount() {
|
|
736
729
|
var count = this.visibleColumns.length;
|
|
@@ -739,16 +732,16 @@ var script$3 = {
|
|
|
739
732
|
return count;
|
|
740
733
|
},
|
|
741
734
|
|
|
742
|
-
/**
|
|
743
|
-
* return if detailed row tabled
|
|
744
|
-
* will be with chevron column & icon or not
|
|
735
|
+
/**
|
|
736
|
+
* return if detailed row tabled
|
|
737
|
+
* will be with chevron column & icon or not
|
|
745
738
|
*/
|
|
746
739
|
showDetailRowIcon: function showDetailRowIcon() {
|
|
747
740
|
return this.detailed && this.showDetailIcon;
|
|
748
741
|
},
|
|
749
742
|
|
|
750
|
-
/**
|
|
751
|
-
* return if scrollable table
|
|
743
|
+
/**
|
|
744
|
+
* return if scrollable table
|
|
752
745
|
*/
|
|
753
746
|
isScrollable: function isScrollable() {
|
|
754
747
|
if (this.scrollable) return true;
|
|
@@ -795,12 +788,12 @@ var script$3 = {
|
|
|
795
788
|
}
|
|
796
789
|
},
|
|
797
790
|
watch: {
|
|
798
|
-
/**
|
|
799
|
-
* When data prop change:
|
|
800
|
-
* 1. Update internal value.
|
|
801
|
-
* 2. Filter data if it's not backend-filtered.
|
|
802
|
-
* 3. Sort again if it's not backend-sorted.
|
|
803
|
-
* 4. Set new total if it's not backend-paginated.
|
|
791
|
+
/**
|
|
792
|
+
* When data prop change:
|
|
793
|
+
* 1. Update internal value.
|
|
794
|
+
* 2. Filter data if it's not backend-filtered.
|
|
795
|
+
* 3. Sort again if it's not backend-sorted.
|
|
796
|
+
* 4. Set new total if it's not backend-paginated.
|
|
804
797
|
*/
|
|
805
798
|
data: function data(value) {
|
|
806
799
|
var _this4 = this;
|
|
@@ -822,9 +815,9 @@ var script$3 = {
|
|
|
822
815
|
}
|
|
823
816
|
},
|
|
824
817
|
|
|
825
|
-
/**
|
|
826
|
-
* When Pagination total change, update internal total
|
|
827
|
-
* only if it's backend-paginated.
|
|
818
|
+
/**
|
|
819
|
+
* When Pagination total change, update internal total
|
|
820
|
+
* only if it's backend-paginated.
|
|
828
821
|
*/
|
|
829
822
|
total: function total(newTotal) {
|
|
830
823
|
if (!this.backendPagination) return;
|
|
@@ -837,22 +830,22 @@ var script$3 = {
|
|
|
837
830
|
this.$emit('update:currentPage', newVal);
|
|
838
831
|
},
|
|
839
832
|
|
|
840
|
-
/**
|
|
841
|
-
* When checkedRows prop change, update internal value without
|
|
842
|
-
* mutating original data.
|
|
833
|
+
/**
|
|
834
|
+
* When checkedRows prop change, update internal value without
|
|
835
|
+
* mutating original data.
|
|
843
836
|
*/
|
|
844
837
|
checkedRows: function checkedRows(rows) {
|
|
845
838
|
this.newCheckedRows = __chunk_1._toConsumableArray(rows);
|
|
846
839
|
},
|
|
847
840
|
|
|
848
|
-
/*
|
|
849
|
-
newColumns(value) {
|
|
850
|
-
this.checkSort()
|
|
851
|
-
},
|
|
841
|
+
/*
|
|
842
|
+
newColumns(value) {
|
|
843
|
+
this.checkSort()
|
|
844
|
+
},
|
|
852
845
|
*/
|
|
853
846
|
debounceSearch: {
|
|
854
847
|
handler: function handler(value) {
|
|
855
|
-
this.debouncedHandleFiltersChange = debounce(this.handleFiltersChange, value);
|
|
848
|
+
this.debouncedHandleFiltersChange = __chunk_26.debounce(this.handleFiltersChange, value);
|
|
856
849
|
},
|
|
857
850
|
immediate: true
|
|
858
851
|
},
|
|
@@ -867,9 +860,9 @@ var script$3 = {
|
|
|
867
860
|
deep: true
|
|
868
861
|
},
|
|
869
862
|
|
|
870
|
-
/**
|
|
871
|
-
* When the user wants to control the detailed rows via props.
|
|
872
|
-
* Or wants to open the details of certain row with the router for example.
|
|
863
|
+
/**
|
|
864
|
+
* When the user wants to control the detailed rows via props.
|
|
865
|
+
* Or wants to open the details of certain row with the router for example.
|
|
873
866
|
*/
|
|
874
867
|
openedDetailed: function openedDetailed(expandedRows) {
|
|
875
868
|
this.visibleDetailRows = expandedRows;
|
|
@@ -921,7 +914,12 @@ var script$3 = {
|
|
|
921
914
|
var formattedSortingPriority = this.sortMultipleDataLocal.map(function (i) {
|
|
922
915
|
return (i.order && i.order === 'desc' ? '-' : '') + i.field;
|
|
923
916
|
});
|
|
924
|
-
|
|
917
|
+
|
|
918
|
+
if (formattedSortingPriority.length === 0) {
|
|
919
|
+
this.resetMultiSorting();
|
|
920
|
+
} else {
|
|
921
|
+
this.newData = helpers.multiColumnSort(this.newData, formattedSortingPriority);
|
|
922
|
+
}
|
|
925
923
|
}
|
|
926
924
|
},
|
|
927
925
|
resetMultiSorting: function resetMultiSorting() {
|
|
@@ -930,9 +928,9 @@ var script$3 = {
|
|
|
930
928
|
this.newData = this.data;
|
|
931
929
|
},
|
|
932
930
|
|
|
933
|
-
/**
|
|
934
|
-
* Sort an array by key without mutating original data.
|
|
935
|
-
* Call the user sort function if it was passed.
|
|
931
|
+
/**
|
|
932
|
+
* Sort an array by key without mutating original data.
|
|
933
|
+
* Call the user sort function if it was passed.
|
|
936
934
|
*/
|
|
937
935
|
sortBy: function sortBy(array, key, fn, isAsc) {
|
|
938
936
|
var sorted = []; // Sorting without mutating original data
|
|
@@ -949,10 +947,12 @@ var script$3 = {
|
|
|
949
947
|
|
|
950
948
|
if (typeof newA === 'boolean' && typeof newB === 'boolean') {
|
|
951
949
|
return isAsc ? newA - newB : newB - newA;
|
|
952
|
-
}
|
|
950
|
+
} // sort null values to the bottom when in asc order
|
|
951
|
+
// and to the top when in desc order
|
|
952
|
+
|
|
953
953
|
|
|
954
|
-
if (!
|
|
955
|
-
if (!
|
|
954
|
+
if (!helpers.isNil(newB) && helpers.isNil(newA)) return isAsc ? 1 : -1;
|
|
955
|
+
if (!helpers.isNil(newA) && helpers.isNil(newB)) return isAsc ? -1 : 1;
|
|
956
956
|
if (newA === newB) return 0;
|
|
957
957
|
newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
|
|
958
958
|
newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
|
|
@@ -989,10 +989,10 @@ var script$3 = {
|
|
|
989
989
|
this.newData = helpers.multiColumnSort(this.newData, formattedSortingPriority);
|
|
990
990
|
},
|
|
991
991
|
|
|
992
|
-
/**
|
|
993
|
-
* Sort the column.
|
|
994
|
-
* Toggle current direction on column if it's sortable
|
|
995
|
-
* and not just updating the prop.
|
|
992
|
+
/**
|
|
993
|
+
* Sort the column.
|
|
994
|
+
* Toggle current direction on column if it's sortable
|
|
995
|
+
* and not just updating the prop.
|
|
996
996
|
*/
|
|
997
997
|
sort: function sort(column) {
|
|
998
998
|
var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -1043,15 +1043,15 @@ var script$3 = {
|
|
|
1043
1043
|
return row === selected;
|
|
1044
1044
|
},
|
|
1045
1045
|
|
|
1046
|
-
/**
|
|
1047
|
-
* Check if the row is checked (is added to the array).
|
|
1046
|
+
/**
|
|
1047
|
+
* Check if the row is checked (is added to the array).
|
|
1048
1048
|
*/
|
|
1049
1049
|
isRowChecked: function isRowChecked(row) {
|
|
1050
1050
|
return helpers.indexOf(this.newCheckedRows, row, this.customIsChecked) >= 0;
|
|
1051
1051
|
},
|
|
1052
1052
|
|
|
1053
|
-
/**
|
|
1054
|
-
* Remove a checked row from the array.
|
|
1053
|
+
/**
|
|
1054
|
+
* Remove a checked row from the array.
|
|
1055
1055
|
*/
|
|
1056
1056
|
removeCheckedRow: function removeCheckedRow(row) {
|
|
1057
1057
|
var index = helpers.indexOf(this.newCheckedRows, row, this.customIsChecked);
|
|
@@ -1061,9 +1061,9 @@ var script$3 = {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
},
|
|
1063
1063
|
|
|
1064
|
-
/**
|
|
1065
|
-
* Header checkbox click listener.
|
|
1066
|
-
* Add or remove all rows in current page.
|
|
1064
|
+
/**
|
|
1065
|
+
* Header checkbox click listener.
|
|
1066
|
+
* Add or remove all rows in current page.
|
|
1067
1067
|
*/
|
|
1068
1068
|
checkAll: function checkAll() {
|
|
1069
1069
|
var _this6 = this;
|
|
@@ -1086,8 +1086,8 @@ var script$3 = {
|
|
|
1086
1086
|
this.$emit('update:checkedRows', this.newCheckedRows);
|
|
1087
1087
|
},
|
|
1088
1088
|
|
|
1089
|
-
/**
|
|
1090
|
-
* Row checkbox click listener.
|
|
1089
|
+
/**
|
|
1090
|
+
* Row checkbox click listener.
|
|
1091
1091
|
*/
|
|
1092
1092
|
checkRow: function checkRow(row, index, event) {
|
|
1093
1093
|
if (!this.isRowCheckable(row)) return;
|
|
@@ -1107,8 +1107,8 @@ var script$3 = {
|
|
|
1107
1107
|
this.$emit('update:checkedRows', this.newCheckedRows);
|
|
1108
1108
|
},
|
|
1109
1109
|
|
|
1110
|
-
/**
|
|
1111
|
-
* Check row when shift is pressed.
|
|
1110
|
+
/**
|
|
1111
|
+
* Check row when shift is pressed.
|
|
1112
1112
|
*/
|
|
1113
1113
|
shiftCheckRow: function shiftCheckRow(row, index, lastCheckedRowIndex) {
|
|
1114
1114
|
var _this7 = this;
|
|
@@ -1126,9 +1126,9 @@ var script$3 = {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
},
|
|
1128
1128
|
|
|
1129
|
-
/**
|
|
1130
|
-
* Row click listener.
|
|
1131
|
-
* Emit all necessary events.
|
|
1129
|
+
/**
|
|
1130
|
+
* Row click listener.
|
|
1131
|
+
* Emit all necessary events.
|
|
1132
1132
|
*/
|
|
1133
1133
|
selectRow: function selectRow(row, index) {
|
|
1134
1134
|
this.$emit('click', row);
|
|
@@ -1140,8 +1140,8 @@ var script$3 = {
|
|
|
1140
1140
|
this.$emit('update:selected', row);
|
|
1141
1141
|
},
|
|
1142
1142
|
|
|
1143
|
-
/**
|
|
1144
|
-
* Toggle to show/hide details slot
|
|
1143
|
+
/**
|
|
1144
|
+
* Toggle to show/hide details slot
|
|
1145
1145
|
*/
|
|
1146
1146
|
toggleDetails: function toggleDetails(obj) {
|
|
1147
1147
|
var found = this.isVisibleDetailRow(obj);
|
|
@@ -1183,14 +1183,7 @@ var script$3 = {
|
|
|
1183
1183
|
var _this8 = this;
|
|
1184
1184
|
|
|
1185
1185
|
var _loop = function _loop(key) {
|
|
1186
|
-
|
|
1187
|
-
if (!_this8.filters[key]) {
|
|
1188
|
-
delete _this8.filters[key];
|
|
1189
|
-
return {
|
|
1190
|
-
v: true
|
|
1191
|
-
};
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1186
|
+
if (!_this8.filters[key]) return "continue";
|
|
1194
1187
|
var input = _this8.filters[key];
|
|
1195
1188
|
|
|
1196
1189
|
var column = _this8.newColumns.filter(function (c) {
|
|
@@ -1214,9 +1207,21 @@ var script$3 = {
|
|
|
1214
1207
|
};
|
|
1215
1208
|
} else {
|
|
1216
1209
|
var re = new RegExp(helpers.escapeRegExpChars(input), 'i');
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1210
|
+
|
|
1211
|
+
if (Array.isArray(value)) {
|
|
1212
|
+
var valid = value.some(function (val) {
|
|
1213
|
+
return re.test(helpers.removeDiacriticsFromString(val)) || re.test(val);
|
|
1214
|
+
});
|
|
1215
|
+
if (!valid) return {
|
|
1216
|
+
v: false
|
|
1217
|
+
};
|
|
1218
|
+
} else {
|
|
1219
|
+
if (!re.test(helpers.removeDiacriticsFromString(value)) && !re.test(value)) {
|
|
1220
|
+
return {
|
|
1221
|
+
v: false
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1220
1225
|
}
|
|
1221
1226
|
}
|
|
1222
1227
|
};
|
|
@@ -1224,15 +1229,21 @@ var script$3 = {
|
|
|
1224
1229
|
for (var key in this.filters) {
|
|
1225
1230
|
var _ret = _loop(key);
|
|
1226
1231
|
|
|
1227
|
-
|
|
1232
|
+
switch (_ret) {
|
|
1233
|
+
case "continue":
|
|
1234
|
+
continue;
|
|
1235
|
+
|
|
1236
|
+
default:
|
|
1237
|
+
if (__chunk_1._typeof(_ret) === "object") return _ret.v;
|
|
1238
|
+
}
|
|
1228
1239
|
}
|
|
1229
1240
|
|
|
1230
1241
|
return true;
|
|
1231
1242
|
},
|
|
1232
1243
|
|
|
1233
|
-
/**
|
|
1234
|
-
* When the detailKey is defined we use the object[detailKey] as index.
|
|
1235
|
-
* If not, use the object reference by default.
|
|
1244
|
+
/**
|
|
1245
|
+
* When the detailKey is defined we use the object[detailKey] as index.
|
|
1246
|
+
* If not, use the object reference by default.
|
|
1236
1247
|
*/
|
|
1237
1248
|
handleDetailKey: function handleDetailKey(index) {
|
|
1238
1249
|
var key = this.detailKey;
|
|
@@ -1246,8 +1257,8 @@ var script$3 = {
|
|
|
1246
1257
|
}
|
|
1247
1258
|
},
|
|
1248
1259
|
|
|
1249
|
-
/**
|
|
1250
|
-
* Call initSort only first time (For example async data).
|
|
1260
|
+
/**
|
|
1261
|
+
* Call initSort only first time (For example async data).
|
|
1251
1262
|
*/
|
|
1252
1263
|
checkSort: function checkSort() {
|
|
1253
1264
|
if (this.newColumns.length && this.firstTimeSort) {
|
|
@@ -1265,8 +1276,8 @@ var script$3 = {
|
|
|
1265
1276
|
}
|
|
1266
1277
|
},
|
|
1267
1278
|
|
|
1268
|
-
/**
|
|
1269
|
-
* Check if footer slot has custom content.
|
|
1279
|
+
/**
|
|
1280
|
+
* Check if footer slot has custom content.
|
|
1270
1281
|
*/
|
|
1271
1282
|
hasCustomFooterSlot: function hasCustomFooterSlot() {
|
|
1272
1283
|
if (this.$slots.footer.length > 1) return true;
|
|
@@ -1275,15 +1286,15 @@ var script$3 = {
|
|
|
1275
1286
|
return true;
|
|
1276
1287
|
},
|
|
1277
1288
|
|
|
1278
|
-
/**
|
|
1279
|
-
* Check if bottom-left slot exists.
|
|
1289
|
+
/**
|
|
1290
|
+
* Check if bottom-left slot exists.
|
|
1280
1291
|
*/
|
|
1281
1292
|
hasBottomLeftSlot: function hasBottomLeftSlot() {
|
|
1282
1293
|
return typeof this.$slots['bottom-left'] !== 'undefined';
|
|
1283
1294
|
},
|
|
1284
1295
|
|
|
1285
|
-
/**
|
|
1286
|
-
* Table arrow keys listener, change selection.
|
|
1296
|
+
/**
|
|
1297
|
+
* Table arrow keys listener, change selection.
|
|
1287
1298
|
*/
|
|
1288
1299
|
pressedArrow: function pressedArrow(pos) {
|
|
1289
1300
|
if (!this.visibleData.length) return;
|
|
@@ -1313,16 +1324,16 @@ var script$3 = {
|
|
|
1313
1324
|
}
|
|
1314
1325
|
},
|
|
1315
1326
|
|
|
1316
|
-
/**
|
|
1317
|
-
* Focus table element if has selected prop.
|
|
1327
|
+
/**
|
|
1328
|
+
* Focus table element if has selected prop.
|
|
1318
1329
|
*/
|
|
1319
1330
|
focus: function focus() {
|
|
1320
1331
|
if (!this.focusable) return;
|
|
1321
1332
|
this.$el.querySelector('table').focus();
|
|
1322
1333
|
},
|
|
1323
1334
|
|
|
1324
|
-
/**
|
|
1325
|
-
* Initial sorted column based on the default-sort prop.
|
|
1335
|
+
/**
|
|
1336
|
+
* Initial sorted column based on the default-sort prop.
|
|
1326
1337
|
*/
|
|
1327
1338
|
initSort: function initSort() {
|
|
1328
1339
|
var _this9 = this;
|
|
@@ -1357,8 +1368,8 @@ var script$3 = {
|
|
|
1357
1368
|
}
|
|
1358
1369
|
},
|
|
1359
1370
|
|
|
1360
|
-
/**
|
|
1361
|
-
* Emits drag start event (row)
|
|
1371
|
+
/**
|
|
1372
|
+
* Emits drag start event (row)
|
|
1362
1373
|
*/
|
|
1363
1374
|
handleDragStart: function handleDragStart(event, row, index) {
|
|
1364
1375
|
if (!this.canDragRow) return;
|
|
@@ -1370,8 +1381,8 @@ var script$3 = {
|
|
|
1370
1381
|
});
|
|
1371
1382
|
},
|
|
1372
1383
|
|
|
1373
|
-
/**
|
|
1374
|
-
* Emits drag leave event (row)
|
|
1384
|
+
/**
|
|
1385
|
+
* Emits drag leave event (row)
|
|
1375
1386
|
*/
|
|
1376
1387
|
handleDragEnd: function handleDragEnd(event, row, index) {
|
|
1377
1388
|
if (!this.canDragRow) return;
|
|
@@ -1383,8 +1394,8 @@ var script$3 = {
|
|
|
1383
1394
|
});
|
|
1384
1395
|
},
|
|
1385
1396
|
|
|
1386
|
-
/**
|
|
1387
|
-
* Emits drop event (row)
|
|
1397
|
+
/**
|
|
1398
|
+
* Emits drop event (row)
|
|
1388
1399
|
*/
|
|
1389
1400
|
handleDrop: function handleDrop(event, row, index) {
|
|
1390
1401
|
if (!this.canDragRow) return;
|
|
@@ -1395,8 +1406,8 @@ var script$3 = {
|
|
|
1395
1406
|
});
|
|
1396
1407
|
},
|
|
1397
1408
|
|
|
1398
|
-
/**
|
|
1399
|
-
* Emits drag over event (row)
|
|
1409
|
+
/**
|
|
1410
|
+
* Emits drag over event (row)
|
|
1400
1411
|
*/
|
|
1401
1412
|
handleDragOver: function handleDragOver(event, row, index) {
|
|
1402
1413
|
if (!this.canDragRow) return;
|
|
@@ -1407,8 +1418,8 @@ var script$3 = {
|
|
|
1407
1418
|
});
|
|
1408
1419
|
},
|
|
1409
1420
|
|
|
1410
|
-
/**
|
|
1411
|
-
* Emits drag leave event (row)
|
|
1421
|
+
/**
|
|
1422
|
+
* Emits drag leave event (row)
|
|
1412
1423
|
*/
|
|
1413
1424
|
handleDragLeave: function handleDragLeave(event, row, index) {
|
|
1414
1425
|
if (!this.canDragRow) return;
|
|
@@ -1422,8 +1433,8 @@ var script$3 = {
|
|
|
1422
1433
|
return this.$listeners[eventName] ? this.$emit(eventName, row, event) : null;
|
|
1423
1434
|
},
|
|
1424
1435
|
|
|
1425
|
-
/**
|
|
1426
|
-
* Emits drag start event (column)
|
|
1436
|
+
/**
|
|
1437
|
+
* Emits drag start event (column)
|
|
1427
1438
|
*/
|
|
1428
1439
|
handleColumnDragStart: function handleColumnDragStart(event, column, index) {
|
|
1429
1440
|
if (!this.canDragColumn) return;
|
|
@@ -1435,8 +1446,8 @@ var script$3 = {
|
|
|
1435
1446
|
});
|
|
1436
1447
|
},
|
|
1437
1448
|
|
|
1438
|
-
/**
|
|
1439
|
-
* Emits drag leave event (column)
|
|
1449
|
+
/**
|
|
1450
|
+
* Emits drag leave event (column)
|
|
1440
1451
|
*/
|
|
1441
1452
|
handleColumnDragEnd: function handleColumnDragEnd(event, column, index) {
|
|
1442
1453
|
if (!this.canDragColumn) return;
|
|
@@ -1448,8 +1459,8 @@ var script$3 = {
|
|
|
1448
1459
|
});
|
|
1449
1460
|
},
|
|
1450
1461
|
|
|
1451
|
-
/**
|
|
1452
|
-
* Emits drop event (column)
|
|
1462
|
+
/**
|
|
1463
|
+
* Emits drop event (column)
|
|
1453
1464
|
*/
|
|
1454
1465
|
handleColumnDrop: function handleColumnDrop(event, column, index) {
|
|
1455
1466
|
if (!this.canDragColumn) return;
|
|
@@ -1460,8 +1471,8 @@ var script$3 = {
|
|
|
1460
1471
|
});
|
|
1461
1472
|
},
|
|
1462
1473
|
|
|
1463
|
-
/**
|
|
1464
|
-
* Emits drag over event (column)
|
|
1474
|
+
/**
|
|
1475
|
+
* Emits drag over event (column)
|
|
1465
1476
|
*/
|
|
1466
1477
|
handleColumnDragOver: function handleColumnDragOver(event, column, index) {
|
|
1467
1478
|
if (!this.canDragColumn) return;
|
|
@@ -1472,8 +1483,8 @@ var script$3 = {
|
|
|
1472
1483
|
});
|
|
1473
1484
|
},
|
|
1474
1485
|
|
|
1475
|
-
/**
|
|
1476
|
-
* Emits drag leave event (column)
|
|
1486
|
+
/**
|
|
1487
|
+
* Emits drag leave event (column)
|
|
1477
1488
|
*/
|
|
1478
1489
|
handleColumnDragLeave: function handleColumnDragLeave(event, column, index) {
|
|
1479
1490
|
if (!this.canDragColumn) return;
|
|
@@ -1498,7 +1509,7 @@ var script$3 = {
|
|
|
1498
1509
|
const __vue_script__$3 = script$3;
|
|
1499
1510
|
|
|
1500
1511
|
/* template */
|
|
1501
|
-
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-table"},[_vm._t("default"),(_vm.mobileCards && _vm.hasSortablenewColumns)?_c('b-table-mobile-sort',{attrs:{"current-sort-column":_vm.currentSortColumn,"sort-multiple":_vm.sortMultiple,"sort-multiple-data":_vm.sortMultipleDataComputed,"is-asc":_vm.isAsc,"columns":_vm.newColumns,"placeholder":_vm.mobileSortPlaceholder,"icon-pack":_vm.iconPack,"sort-icon":_vm.sortIcon,"sort-icon-size":_vm.sortIconSize},on:{"sort":function (column, event) { return _vm.sort(column, null, event); },"removePriority":function (column) { return _vm.removeSortingPriority(column); }}}):_vm._e(),(_vm.paginated && (_vm.paginationPosition === 'top' || _vm.paginationPosition === 'both'))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"rounded":_vm.paginationRounded,"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("top-left")],2)])]:_vm._e(),_c('div',{staticClass:"table-wrapper",class:_vm.tableWrapperClasses,style:(_vm.tableStyle)},[_c('table',{staticClass:"table",class:_vm.tableClasses,attrs:{"tabindex":!_vm.focusable ? false : 0},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(-1)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(1)}]}},[(_vm.caption)?_c('caption',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCaption),expression:"showCaption"}]},[_vm._v(_vm._s(_vm.caption))]):_vm._e(),(_vm.newColumns.length && _vm.showHeader)?_c('thead',[_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th',{class:['checkbox-cell', { 'is-sticky': _vm.stickyCheckbox } ]},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"autocomplete":"off","value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e(),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',_vm._b({key:column.newKey + ':' + index + 'header',class:[column.thClasses, {
|
|
1512
|
+
var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-table"},[_vm._t("default"),(_vm.mobileCards && _vm.hasSortablenewColumns)?_c('b-table-mobile-sort',{attrs:{"current-sort-column":_vm.currentSortColumn,"sort-multiple":_vm.sortMultiple,"sort-multiple-data":_vm.sortMultipleDataComputed,"is-asc":_vm.isAsc,"columns":_vm.newColumns,"placeholder":_vm.mobileSortPlaceholder,"icon-pack":_vm.iconPack,"sort-icon":_vm.sortIcon,"sort-icon-size":_vm.sortIconSize},on:{"sort":function (column, event) { return _vm.sort(column, null, event); },"removePriority":function (column) { return _vm.removeSortingPriority(column); }}}):_vm._e(),(_vm.paginated && (_vm.paginationPosition === 'top' || _vm.paginationPosition === 'both'))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"rounded":_vm.paginationRounded,"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel,"page-input":_vm.pageInput,"pagination-order":_vm.paginationOrder,"page-input-position":_vm.pageInputPosition,"debounce-page-input":_vm.debouncePageInput},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("top-left")],2)])]:_vm._e(),_c('div',{staticClass:"table-wrapper",class:_vm.tableWrapperClasses,style:(_vm.tableStyle)},[_c('table',{staticClass:"table",class:_vm.tableClasses,attrs:{"tabindex":!_vm.focusable ? false : 0},on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(-1)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();return _vm.pressedArrow(1)}]}},[(_vm.caption)?_c('caption',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCaption),expression:"showCaption"}]},[_vm._v(_vm._s(_vm.caption))]):_vm._e(),(_vm.newColumns.length && _vm.showHeader)?_c('thead',[_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{"width":"40px"}}):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th',{class:['checkbox-cell', { 'is-sticky': _vm.stickyCheckbox } ]},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{"autocomplete":"off","value":_vm.isAllChecked,"disabled":_vm.isAllUncheckable},nativeOn:{"change":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e(),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',_vm._b({key:column.newKey + ':' + index + 'header',class:[column.thClasses, {
|
|
1502
1513
|
'is-current-sort': !_vm.sortMultiple && _vm.currentSortColumn === column,
|
|
1503
1514
|
}],style:(column.thStyle),attrs:{"draggable":_vm.canDragColumn},on:{"click":function($event){$event.stopPropagation();return _vm.sort(column, null, $event)},"dragstart":function($event){return _vm.handleColumnDragStart($event, column, index)},"dragend":function($event){return _vm.handleColumnDragEnd($event, column, index)},"drop":function($event){return _vm.handleColumnDrop($event, column, index)},"dragover":function($event){return _vm.handleColumnDragOver($event, column, index)},"dragleave":function($event){return _vm.handleColumnDragLeave($event, column, index)}}},'th',column.thAttrs(column),false),[_c('div',{staticClass:"th-wrap",class:{
|
|
1504
1515
|
'is-numeric': column.numeric,
|
|
@@ -1518,7 +1529,7 @@ var __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _
|
|
|
1518
1529
|
'is-selected': _vm.isRowSelected(row, _vm.selected),
|
|
1519
1530
|
'is-checked': _vm.isRowChecked(row),
|
|
1520
1531
|
}],attrs:{"draggable":_vm.canDragRow},on:{"click":function($event){return _vm.selectRow(row)},"dblclick":function($event){return _vm.$emit('dblclick', row)},"mouseenter":function($event){return _vm.emitEventForRow('mouseenter', $event, row)},"mouseleave":function($event){return _vm.emitEventForRow('mouseleave', $event, row)},"contextmenu":function($event){return _vm.$emit('contextmenu', row, $event)},"dragstart":function($event){return _vm.handleDragStart($event, row, index)},"dragend":function($event){return _vm.handleDragEnd($event, row, index)},"drop":function($event){return _vm.handleDrop($event, row, index)},"dragover":function($event){return _vm.handleDragOver($event, row, index)},"dragleave":function($event){return _vm.handleDragLeave($event, row, index)}}},[(_vm.showDetailRowIcon)?_c('td',{staticClass:"chevron-cell"},[(_vm.hasDetailedVisible(row))?_c('a',{attrs:{"role":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.toggleDetails(row)}}},[_c('b-icon',{class:{'is-expanded': _vm.isVisibleDetailRow(row)},attrs:{"icon":_vm.detailIcon,"pack":_vm.iconPack,"both":""}})],1):_vm._e()]):_vm._e(),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('td',{class:['checkbox-cell', { 'is-sticky': _vm.stickyCheckbox } ]},[_c('b-checkbox',{attrs:{"autocomplete":"off","disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.checkRow(row, index, $event)}}})],1):_vm._e(),_vm._l((_vm.visibleColumns),function(column,colindex){return [(column.$scopedSlots && column.$scopedSlots.default)?[_c('b-slot-component',_vm._b({key:column.newKey + ':' + index + ':' + colindex,class:column.getRootClasses(row),style:(column.getRootStyle(row)),attrs:{"component":column,"scoped":"","name":"default","tag":"td","data-label":column.label,"props":{ row: row, column: column, index: index, colindex: colindex, toggleDetails: _vm.toggleDetails }},nativeOn:{"click":function($event){return _vm.$emit('cellclick',row,column,index,colindex)}}},'b-slot-component',column.tdAttrs(row, column),false))]:_vm._e()]}),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('td',{class:['checkbox-cell', { 'is-sticky': _vm.stickyCheckbox } ]},[_c('b-checkbox',{attrs:{"autocomplete":"off","disabled":!_vm.isRowCheckable(row),"value":_vm.isRowChecked(row)},nativeOn:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.checkRow(row, index, $event)}}})],1):_vm._e()],2),_c('transition',{key:(_vm.customRowKey ? row[_vm.customRowKey] : index) + 'detail',attrs:{"name":_vm.detailTransition}},[(_vm.isActiveDetailRow(row))?_c('tr',{staticClass:"detail"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_c('div',{staticClass:"detail-container"},[_vm._t("detail",null,{"row":row,"index":index})],2)])]):_vm._e()]),(_vm.isActiveCustomDetailRow(row))?_vm._t("detail",null,{"row":row,"index":index}):_vm._e()]}),(!_vm.visibleData.length)?_c('tr',{staticClass:"is-empty"},[_c('td',{attrs:{"colspan":_vm.columnCount}},[_vm._t("empty")],2)]):_vm._e()],2),(_vm.$slots.footer !== undefined)?_c('tfoot',[_c('tr',{staticClass:"table-footer"},[(_vm.hasCustomFooterSlot())?_vm._t("footer"):_c('th',{attrs:{"colspan":_vm.columnCount}},[_vm._t("footer")],2)],2)]):_vm._e()]),(_vm.loading)?[_vm._t("loading",[_c('b-loading',{attrs:{"is-full-page":false,"active":_vm.loading},on:{"update:active":function($event){_vm.loading=$event;}}})])]:_vm._e()],2),((_vm.checkable && _vm.hasBottomLeftSlot()) ||
|
|
1521
|
-
(_vm.paginated && (_vm.paginationPosition === 'bottom' || _vm.paginationPosition === 'both')))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"rounded":_vm.paginationRounded,"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("bottom-left")],2)])]:_vm._e()],2)};
|
|
1532
|
+
(_vm.paginated && (_vm.paginationPosition === 'bottom' || _vm.paginationPosition === 'both')))?[_vm._t("pagination",[_c('b-table-pagination',_vm._b({attrs:{"per-page":_vm.perPage,"paginated":_vm.paginated,"rounded":_vm.paginationRounded,"icon-pack":_vm.iconPack,"total":_vm.newDataTotal,"current-page":_vm.newCurrentPage,"aria-next-label":_vm.ariaNextLabel,"aria-previous-label":_vm.ariaPreviousLabel,"aria-page-label":_vm.ariaPageLabel,"aria-current-label":_vm.ariaCurrentLabel,"page-input":_vm.pageInput,"pagination-order":_vm.paginationOrder,"page-input-position":_vm.pageInputPosition,"debounce-page-input":_vm.debouncePageInput},on:{"update:currentPage":function($event){_vm.newCurrentPage=$event;},"update:current-page":function($event){_vm.newCurrentPage=$event;},"page-change":function (event) { return _vm.$emit('page-change', event); }}},'b-table-pagination',_vm.$attrs,false),[_vm._t("bottom-left")],2)])]:_vm._e()],2)};
|
|
1522
1533
|
var __vue_staticRenderFns__$2 = [];
|
|
1523
1534
|
|
|
1524
1535
|
/* style */
|