@farm-investimentos/front-mfe-components 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/front-mfe-components.common.js +2846 -62
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +2846 -62
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MultipleSelectShortener/MultipleSelectShortener.stories.js +37 -0
- package/src/components/MultipleSelectShortener/MultipleSelectShortener.vue +48 -0
- package/src/components/MultipleSelectShortener/__tests__/MultipleSelectShortener.spec.js +21 -0
- package/src/components/MultipleSelectShortener/index.js +4 -0
- package/src/components/ResetTableRowSelection/ResetTableRowSelection.vue +1 -1
- package/src/components/SelectModalOptions/SelectModalOptions.stories.js +29 -0
- package/src/components/SelectModalOptions/SelectModalOptions.vue +273 -0
- package/src/components/SelectModalOptions/__tests__/SelectModalOptions.spec.js +130 -0
- package/src/components/SelectModalOptions/index.js +4 -0
- package/src/main.js +2 -0
|
@@ -194,6 +194,28 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
194
194
|
});
|
|
195
195
|
|
|
196
196
|
|
|
197
|
+
/***/ }),
|
|
198
|
+
|
|
199
|
+
/***/ "0fa1":
|
|
200
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
201
|
+
|
|
202
|
+
"use strict";
|
|
203
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultipleSelectShortener_vue_vue_type_style_index_0_id_31e8b3ae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f360");
|
|
204
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultipleSelectShortener_vue_vue_type_style_index_0_id_31e8b3ae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MultipleSelectShortener_vue_vue_type_style_index_0_id_31e8b3ae_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
205
|
+
/* unused harmony reexport * */
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
/***/ }),
|
|
209
|
+
|
|
210
|
+
/***/ "1051":
|
|
211
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
212
|
+
|
|
213
|
+
"use strict";
|
|
214
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectModalOptions_vue_vue_type_style_index_0_id_04f9e4b0_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("712a");
|
|
215
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectModalOptions_vue_vue_type_style_index_0_id_04f9e4b0_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectModalOptions_vue_vue_type_style_index_0_id_04f9e4b0_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
216
|
+
/* unused harmony reexport * */
|
|
217
|
+
|
|
218
|
+
|
|
197
219
|
/***/ }),
|
|
198
220
|
|
|
199
221
|
/***/ "107c":
|
|
@@ -607,6 +629,28 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
|
607
629
|
};
|
|
608
630
|
|
|
609
631
|
|
|
632
|
+
/***/ }),
|
|
633
|
+
|
|
634
|
+
/***/ "2532":
|
|
635
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
636
|
+
|
|
637
|
+
"use strict";
|
|
638
|
+
|
|
639
|
+
var $ = __webpack_require__("23e7");
|
|
640
|
+
var notARegExp = __webpack_require__("5a34");
|
|
641
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
642
|
+
var correctIsRegExpLogic = __webpack_require__("ab13");
|
|
643
|
+
|
|
644
|
+
// `String.prototype.includes` method
|
|
645
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
646
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
647
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
648
|
+
return !!~String(requireObjectCoercible(this))
|
|
649
|
+
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
|
|
610
654
|
/***/ }),
|
|
611
655
|
|
|
612
656
|
/***/ "25a8":
|
|
@@ -757,6 +801,17 @@ module.exports = function (it) {
|
|
|
757
801
|
|
|
758
802
|
// extracted by mini-css-extract-plugin
|
|
759
803
|
|
|
804
|
+
/***/ }),
|
|
805
|
+
|
|
806
|
+
/***/ "3d11":
|
|
807
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
808
|
+
|
|
809
|
+
"use strict";
|
|
810
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_befb8b6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d502");
|
|
811
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_befb8b6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_befb8b6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
812
|
+
/* unused harmony reexport * */
|
|
813
|
+
|
|
814
|
+
|
|
760
815
|
/***/ }),
|
|
761
816
|
|
|
762
817
|
/***/ "428f":
|
|
@@ -787,6 +842,33 @@ module.exports = fails(function () {
|
|
|
787
842
|
} : Object;
|
|
788
843
|
|
|
789
844
|
|
|
845
|
+
/***/ }),
|
|
846
|
+
|
|
847
|
+
/***/ "44d2":
|
|
848
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
849
|
+
|
|
850
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
851
|
+
var create = __webpack_require__("7c73");
|
|
852
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
853
|
+
|
|
854
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
855
|
+
var ArrayPrototype = Array.prototype;
|
|
856
|
+
|
|
857
|
+
// Array.prototype[@@unscopables]
|
|
858
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
859
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
860
|
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
861
|
+
configurable: true,
|
|
862
|
+
value: create(null)
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
// add a key to Array.prototype[@@unscopables]
|
|
867
|
+
module.exports = function (key) {
|
|
868
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
|
|
790
872
|
/***/ }),
|
|
791
873
|
|
|
792
874
|
/***/ "44e7":
|
|
@@ -905,6 +987,13 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
905
987
|
});
|
|
906
988
|
|
|
907
989
|
|
|
990
|
+
/***/ }),
|
|
991
|
+
|
|
992
|
+
/***/ "495d":
|
|
993
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
994
|
+
|
|
995
|
+
// extracted by mini-css-extract-plugin
|
|
996
|
+
|
|
908
997
|
/***/ }),
|
|
909
998
|
|
|
910
999
|
/***/ "4b85":
|
|
@@ -1068,6 +1157,20 @@ module.exports = {
|
|
|
1068
1157
|
};
|
|
1069
1158
|
|
|
1070
1159
|
|
|
1160
|
+
/***/ }),
|
|
1161
|
+
|
|
1162
|
+
/***/ "5a34":
|
|
1163
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1164
|
+
|
|
1165
|
+
var isRegExp = __webpack_require__("44e7");
|
|
1166
|
+
|
|
1167
|
+
module.exports = function (it) {
|
|
1168
|
+
if (isRegExp(it)) {
|
|
1169
|
+
throw TypeError("The method doesn't accept regular expressions");
|
|
1170
|
+
} return it;
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
|
|
1071
1174
|
/***/ }),
|
|
1072
1175
|
|
|
1073
1176
|
/***/ "5bea":
|
|
@@ -1336,6 +1439,13 @@ var TEMPLATE = String(String).split('String');
|
|
|
1336
1439
|
});
|
|
1337
1440
|
|
|
1338
1441
|
|
|
1442
|
+
/***/ }),
|
|
1443
|
+
|
|
1444
|
+
/***/ "712a":
|
|
1445
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1446
|
+
|
|
1447
|
+
// extracted by mini-css-extract-plugin
|
|
1448
|
+
|
|
1339
1449
|
/***/ }),
|
|
1340
1450
|
|
|
1341
1451
|
/***/ "7156":
|
|
@@ -1723,6 +1833,13 @@ module.exports = function (S, index, unicode) {
|
|
|
1723
1833
|
|
|
1724
1834
|
/***/ }),
|
|
1725
1835
|
|
|
1836
|
+
/***/ "8b37":
|
|
1837
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1838
|
+
|
|
1839
|
+
// extracted by mini-css-extract-plugin
|
|
1840
|
+
|
|
1841
|
+
/***/ }),
|
|
1842
|
+
|
|
1726
1843
|
/***/ "8bbf":
|
|
1727
1844
|
/***/ (function(module, exports) {
|
|
1728
1845
|
|
|
@@ -1790,6 +1907,13 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
|
1790
1907
|
};
|
|
1791
1908
|
|
|
1792
1909
|
|
|
1910
|
+
/***/ }),
|
|
1911
|
+
|
|
1912
|
+
/***/ "91f4":
|
|
1913
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1914
|
+
|
|
1915
|
+
// extracted by mini-css-extract-plugin
|
|
1916
|
+
|
|
1793
1917
|
/***/ }),
|
|
1794
1918
|
|
|
1795
1919
|
/***/ "9263":
|
|
@@ -2224,6 +2348,28 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
2224
2348
|
}
|
|
2225
2349
|
|
|
2226
2350
|
|
|
2351
|
+
/***/ }),
|
|
2352
|
+
|
|
2353
|
+
/***/ "ab13":
|
|
2354
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2355
|
+
|
|
2356
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
2357
|
+
|
|
2358
|
+
var MATCH = wellKnownSymbol('match');
|
|
2359
|
+
|
|
2360
|
+
module.exports = function (METHOD_NAME) {
|
|
2361
|
+
var regexp = /./;
|
|
2362
|
+
try {
|
|
2363
|
+
'/./'[METHOD_NAME](regexp);
|
|
2364
|
+
} catch (error1) {
|
|
2365
|
+
try {
|
|
2366
|
+
regexp[MATCH] = false;
|
|
2367
|
+
return '/./'[METHOD_NAME](regexp);
|
|
2368
|
+
} catch (error2) { /* empty */ }
|
|
2369
|
+
} return false;
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
|
|
2227
2373
|
/***/ }),
|
|
2228
2374
|
|
|
2229
2375
|
/***/ "ac1f":
|
|
@@ -2555,6 +2701,29 @@ module.exports = function (object, names) {
|
|
|
2555
2701
|
};
|
|
2556
2702
|
|
|
2557
2703
|
|
|
2704
|
+
/***/ }),
|
|
2705
|
+
|
|
2706
|
+
/***/ "caad":
|
|
2707
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2708
|
+
|
|
2709
|
+
"use strict";
|
|
2710
|
+
|
|
2711
|
+
var $ = __webpack_require__("23e7");
|
|
2712
|
+
var $includes = __webpack_require__("4d64").includes;
|
|
2713
|
+
var addToUnscopables = __webpack_require__("44d2");
|
|
2714
|
+
|
|
2715
|
+
// `Array.prototype.includes` method
|
|
2716
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
2717
|
+
$({ target: 'Array', proto: true }, {
|
|
2718
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2719
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2720
|
+
}
|
|
2721
|
+
});
|
|
2722
|
+
|
|
2723
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2724
|
+
addToUnscopables('includes');
|
|
2725
|
+
|
|
2726
|
+
|
|
2558
2727
|
/***/ }),
|
|
2559
2728
|
|
|
2560
2729
|
/***/ "cc12":
|
|
@@ -2609,13 +2778,6 @@ module.exports = function (key, value) {
|
|
|
2609
2778
|
};
|
|
2610
2779
|
|
|
2611
2780
|
|
|
2612
|
-
/***/ }),
|
|
2613
|
-
|
|
2614
|
-
/***/ "ceea":
|
|
2615
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2616
|
-
|
|
2617
|
-
// extracted by mini-css-extract-plugin
|
|
2618
|
-
|
|
2619
2781
|
/***/ }),
|
|
2620
2782
|
|
|
2621
2783
|
/***/ "cf36":
|
|
@@ -2736,6 +2898,13 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
2736
2898
|
}() : undefined);
|
|
2737
2899
|
|
|
2738
2900
|
|
|
2901
|
+
/***/ }),
|
|
2902
|
+
|
|
2903
|
+
/***/ "d502":
|
|
2904
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2905
|
+
|
|
2906
|
+
// extracted by mini-css-extract-plugin
|
|
2907
|
+
|
|
2739
2908
|
/***/ }),
|
|
2740
2909
|
|
|
2741
2910
|
/***/ "d784":
|
|
@@ -2898,17 +3067,6 @@ module.exports = Object.keys || function keys(O) {
|
|
|
2898
3067
|
|
|
2899
3068
|
// extracted by mini-css-extract-plugin
|
|
2900
3069
|
|
|
2901
|
-
/***/ }),
|
|
2902
|
-
|
|
2903
|
-
/***/ "e38b":
|
|
2904
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2905
|
-
|
|
2906
|
-
"use strict";
|
|
2907
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_26f9fbfb_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ceea");
|
|
2908
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_26f9fbfb_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ResetTableRowSelection_vue_vue_type_style_index_0_id_26f9fbfb_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
2909
|
-
/* unused harmony reexport * */
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
3070
|
/***/ }),
|
|
2913
3071
|
|
|
2914
3072
|
/***/ "e53c":
|
|
@@ -2982,6 +3140,13 @@ module.exports = Array.isArray || function isArray(arg) {
|
|
|
2982
3140
|
|
|
2983
3141
|
/***/ }),
|
|
2984
3142
|
|
|
3143
|
+
/***/ "f360":
|
|
3144
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3145
|
+
|
|
3146
|
+
// extracted by mini-css-extract-plugin
|
|
3147
|
+
|
|
3148
|
+
/***/ }),
|
|
3149
|
+
|
|
2985
3150
|
/***/ "f772":
|
|
2986
3151
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2987
3152
|
|
|
@@ -2995,6 +3160,13 @@ module.exports = function (key) {
|
|
|
2995
3160
|
};
|
|
2996
3161
|
|
|
2997
3162
|
|
|
3163
|
+
/***/ }),
|
|
3164
|
+
|
|
3165
|
+
/***/ "f823":
|
|
3166
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3167
|
+
|
|
3168
|
+
// extracted by mini-css-extract-plugin
|
|
3169
|
+
|
|
2998
3170
|
/***/ }),
|
|
2999
3171
|
|
|
3000
3172
|
/***/ "f88b":
|
|
@@ -3041,6 +3213,8 @@ __webpack_require__.d(__webpack_exports__, "RemoveButton", function() { return /
|
|
|
3041
3213
|
__webpack_require__.d(__webpack_exports__, "ProductLogo", function() { return /* reexport */ ProductLogo; });
|
|
3042
3214
|
__webpack_require__.d(__webpack_exports__, "OriginatorLogo", function() { return /* reexport */ OriginatorLogo; });
|
|
3043
3215
|
__webpack_require__.d(__webpack_exports__, "ResetTableRowSelection", function() { return /* reexport */ ResetTableRowSelection; });
|
|
3216
|
+
__webpack_require__.d(__webpack_exports__, "MultipleSelectShortener", function() { return /* reexport */ MultipleSelectShortener; });
|
|
3217
|
+
__webpack_require__.d(__webpack_exports__, "SelectModalOptions", function() { return /* reexport */ SelectModalOptions; });
|
|
3044
3218
|
|
|
3045
3219
|
// NAMESPACE OBJECT: ./node_modules/vuetify/lib/services/goto/easing-patterns.js
|
|
3046
3220
|
var easing_patterns_namespaceObject = {};
|
|
@@ -3083,7 +3257,7 @@ if (typeof window !== 'undefined') {
|
|
|
3083
3257
|
// Indicate to webpack that this file can be concatenated
|
|
3084
3258
|
/* harmony default export */ var setPublicPath = (null);
|
|
3085
3259
|
|
|
3086
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3260
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DataTableEmptyWrapper/DataTableEmptyWrapper.vue?vue&type=template&id=a4b1af68&scoped=true&
|
|
3087
3261
|
var DataTableEmptyWrappervue_type_template_id_a4b1af68_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"align":"center"}},[_c('v-icon',[_vm._v("mdi-magnify")]),_c('p',[_vm._v(_vm._s(_vm.title))]),_c('p',[_vm._v(_vm._s(_vm.subtitle))])],1)}
|
|
3088
3262
|
var staticRenderFns = []
|
|
3089
3263
|
|
|
@@ -3560,7 +3734,7 @@ function remapInternalIcon(vm, iconName) {
|
|
|
3560
3734
|
}
|
|
3561
3735
|
};
|
|
3562
3736
|
}
|
|
3563
|
-
function
|
|
3737
|
+
function helpers_keys(o) {
|
|
3564
3738
|
return Object.keys(o);
|
|
3565
3739
|
}
|
|
3566
3740
|
/**
|
|
@@ -4857,7 +5031,7 @@ function genStyles(theme, cssVar = false) {
|
|
|
4857
5031
|
const value = theme[name];
|
|
4858
5032
|
css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
|
|
4859
5033
|
cssVar && (variablesCss += ` ${genColorVariableName(name)}: ${value.base};\n`);
|
|
4860
|
-
const variants =
|
|
5034
|
+
const variants = helpers_keys(value);
|
|
4861
5035
|
|
|
4862
5036
|
for (let i = 0; i < variants.length; ++i) {
|
|
4863
5037
|
const variant = variants[i];
|
|
@@ -5608,7 +5782,7 @@ const VIcon_VIcon = mixins(binds_attrs, colorable, sizeable, themeable
|
|
|
5608
5782
|
large: this.large,
|
|
5609
5783
|
xLarge: this.xLarge
|
|
5610
5784
|
};
|
|
5611
|
-
const explicitSize =
|
|
5785
|
+
const explicitSize = helpers_keys(sizes).find(key => sizes[key]);
|
|
5612
5786
|
return explicitSize && SIZE_MAP[explicitSize] || convertToUnit(this.size);
|
|
5613
5787
|
},
|
|
5614
5788
|
|
|
@@ -5936,7 +6110,7 @@ var DataTableEmptyWrapper_component = normalizeComponent(
|
|
|
5936
6110
|
// CONCATENATED MODULE: ./src/components/DataTableEmptyWrapper/index.js
|
|
5937
6111
|
|
|
5938
6112
|
/* harmony default export */ var components_DataTableEmptyWrapper = (DataTableEmptyWrapper);
|
|
5939
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6113
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DataTablePaginator/DataTablePaginator.vue?vue&type=template&id=56341a65&
|
|
5940
6114
|
var DataTablePaginatorvue_type_template_id_56341a65_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:"v-data-table-custom-footer",class:{ 'hidden-perpageoptions': _vm.hidePerPageOptions }},[(!_vm.hidePerPageOptions)?_c('div',[_c('v-select',{attrs:{"outlined":"","disabled":!_vm.totalPages || _vm.totalPages < 1,"items":_vm.perPageBuiltItems,"dense":""},model:{value:(_vm.selectedLimit),callback:function ($$v) {_vm.selectedLimit=$$v},expression:"selectedLimit"}})],1):_vm._e(),_c('v-pagination',{attrs:{"disabled":_vm.disabled,"length":_vm.totalPages,"total-visible":7,"color":"secondary"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:"currentPage"}})],1)}
|
|
5941
6115
|
var DataTablePaginatorvue_type_template_id_56341a65_staticRenderFns = []
|
|
5942
6116
|
|
|
@@ -13173,7 +13347,7 @@ var DataTablePaginator_component = normalizeComponent(
|
|
|
13173
13347
|
// CONCATENATED MODULE: ./src/components/DataTablePaginator/index.js
|
|
13174
13348
|
|
|
13175
13349
|
/* harmony default export */ var components_DataTablePaginator = (DataTablePaginator);
|
|
13176
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13350
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DataTableHeader/DataTableHeader.vue?vue&type=template&id=52e3fa44&scoped=true&
|
|
13177
13351
|
var DataTableHeadervue_type_template_id_52e3fa44_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',_vm._l((_vm.headers),function(item,$index){return _c('th',{key:item.value,class:[
|
|
13178
13352
|
item.sortable ? 'sortable' : '',
|
|
13179
13353
|
_vm.sortClick[$index].clicked ? 'active' : '',
|
|
@@ -13420,7 +13594,7 @@ var DataTableHeader_component = normalizeComponent(
|
|
|
13420
13594
|
// CONCATENATED MODULE: ./src/components/DataTableHeader/index.js
|
|
13421
13595
|
|
|
13422
13596
|
/* harmony default export */ var components_DataTableHeader = (DataTableHeader);
|
|
13423
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13597
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AlertReload/AlertReload.vue?vue&type=template&id=abb3d94e&scoped=true&
|
|
13424
13598
|
var AlertReloadvue_type_template_id_abb3d94e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-alert',{staticClass:"farm-alert-reload",attrs:{"dense":"","outlined":"","type":"error"}},[_c('v-row',{attrs:{"align":"center"}},[_c('v-col',{staticClass:"grow"},[_vm._v(" "+_vm._s(_vm.label)+" ")]),_c('v-col',{staticClass:"shrink"},[_c('v-btn',{staticClass:"ml-3",attrs:{"color":"secondary","alt":"Recarregar"},on:{"click":function($event){return _vm.$emit('onClick')}}},[_c('v-icon',{staticClass:"v-icon__refresh"},[_vm._v("mdi-refresh")]),_vm._v(" Recarregar")],1)],1)],1)],1)}
|
|
13425
13599
|
var AlertReloadvue_type_template_id_abb3d94e_scoped_true_staticRenderFns = []
|
|
13426
13600
|
|
|
@@ -14394,7 +14568,7 @@ var AlertReload_component = normalizeComponent(
|
|
|
14394
14568
|
// CONCATENATED MODULE: ./src/components/AlertReload/index.js
|
|
14395
14569
|
|
|
14396
14570
|
/* harmony default export */ var components_AlertReload = (AlertReload);
|
|
14397
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14571
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MainFilter/MainFilter.vue?vue&type=template&id=6d56b8e6&scoped=true&
|
|
14398
14572
|
var MainFiltervue_type_template_id_6d56b8e6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{class:{ 'justify-end': _vm.justifyEnd === true }},[(_vm.hasInitialInput)?_c('fieldset',{staticClass:"fieldset-default"},[_c('label',{attrs:{"for":_vm.elementId}},[_vm._v(" "+_vm._s(_vm.label)+" "),_c('v-icon',{staticStyle:{"vertical-align":"middle"}},[_vm._v(" mdi-file-find ")])],1),_c('v-text-field',{attrs:{"color":"secondary","id":_vm.elementId,"outlined":"","dense":""},on:{"keyup":_vm.onKeyUp},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}})],1):_vm._e(),(_vm.hasExtraFilters)?_c('v-btn',{staticClass:"v-btn--responsive mt-14 mt-sm-8",attrs:{"color":"secondary"},on:{"click":_vm.onFilterClick}},[_c('v-icon',{staticClass:"mr-2",attrs:{"color":"white"}},[_vm._v("mdi-filter")]),_vm._v(" Filtrar ")],1):_vm._e()],1)}
|
|
14399
14573
|
var MainFiltervue_type_template_id_6d56b8e6_scoped_true_staticRenderFns = []
|
|
14400
14574
|
|
|
@@ -14537,7 +14711,7 @@ var MainFilter_component = normalizeComponent(
|
|
|
14537
14711
|
// CONCATENATED MODULE: ./src/components/MainFilter/index.js
|
|
14538
14712
|
|
|
14539
14713
|
/* harmony default export */ var components_MainFilter = (MainFilter);
|
|
14540
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14714
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Loader/Loader.vue?vue&type=template&id=a894d29c&
|
|
14541
14715
|
var Loadervue_type_template_id_a894d29c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.mode === 'overlay')?_c('v-overlay',{attrs:{"opacity":"0.3"}},[_c('v-progress-circular',{attrs:{"indeterminate":"","size":100,"color":"secondary"}})],1):_c('v-progress-circular',{attrs:{"size":_vm.calculateSize,"width":6,"color":"secondary","indeterminate":""}})],1)}
|
|
14542
14716
|
var Loadervue_type_template_id_a894d29c_staticRenderFns = []
|
|
14543
14717
|
|
|
@@ -14704,7 +14878,7 @@ var Loader_component = normalizeComponent(
|
|
|
14704
14878
|
// CONCATENATED MODULE: ./src/components/Loader/index.js
|
|
14705
14879
|
|
|
14706
14880
|
/* harmony default export */ var components_Loader = (Loader);
|
|
14707
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14881
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilePicker/FilePicker.vue?vue&type=template&id=3d9247d5&scoped=true&
|
|
14708
14882
|
var FilePickervue_type_template_id_3d9247d5_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{ref:"container",attrs:{"id":"droparea-container"}},[_c('input',{attrs:{"type":"file","name":"file","accept":_vm.acceptedFileTypes},on:{"change":function($event){return _vm.fileChange($event.target.files)}}}),(!_vm.selectedFile)?_c('div',{staticClass:"selectfile-container"},[_c('v-icon',{attrs:{"color":"secondary"}},[_vm._v("mdi-cloud-upload")]),_c('p',[_vm._v("Clique para selecionar ou arraste o arquivo aqui")])],1):_vm._e(),(_vm.selectedFile)?_c('div',{staticClass:"reset-container"},[_c('div',[_c('v-icon',[_vm._v("mdi-file")]),_vm._v(" Arquivo selecionado: "+_vm._s(_vm.selectedFile.name)+" ("+_vm._s(Math.floor(_vm.selectedFile.size / 1024))+"kB) ")],1),_c('v-btn',{staticClass:"v-btn-responsive",attrs:{"depressed":"","outlined":"","color":"secondary"},on:{"click":_vm.reset}},[_vm._v("Escolher outro")])],1):_vm._e()])}
|
|
14709
14883
|
var FilePickervue_type_template_id_3d9247d5_scoped_true_staticRenderFns = []
|
|
14710
14884
|
|
|
@@ -14814,7 +14988,7 @@ var FilePicker_component = normalizeComponent(
|
|
|
14814
14988
|
// CONCATENATED MODULE: ./src/components/FilePicker/index.js
|
|
14815
14989
|
|
|
14816
14990
|
/* harmony default export */ var components_FilePicker = (FilePicker);
|
|
14817
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14991
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tabs/Tabs.vue?vue&type=template&id=00a31444&scoped=true&
|
|
14818
14992
|
var Tabsvue_type_template_id_00a31444_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-tabs',{attrs:{"color":"secondary"},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:"selected"}},_vm._l((_vm.tabs),function(tab,index){return _c('v-tab',{key:index,class:{ hideCounter: !_vm.showCounter },attrs:{"disabled":!_vm.allowUserChange},on:{"change":function($event){return _vm.changeTab(tab, index)}}},[(_vm.showCounter)?_c('div',{staticClass:"pl-3 pr-3 pt-2 pb-2 mr-2 rounded-circle d-inline-block white--text",class:{ 'is-selected': _vm.isSelected(index) }},[_c('span',[_vm._v(_vm._s(index + 1))])]):_vm._e(),_c('span',{staticClass:"black--text text-capitalize"},[_vm._v(_vm._s(tab.name))])])}),1)}
|
|
14819
14993
|
var Tabsvue_type_template_id_00a31444_scoped_true_staticRenderFns = []
|
|
14820
14994
|
|
|
@@ -14961,7 +15135,7 @@ function touch_inserted(el, binding, vnode) {
|
|
|
14961
15135
|
const handlers = createHandlers(binding.value);
|
|
14962
15136
|
target._touchHandlers = Object(target._touchHandlers);
|
|
14963
15137
|
target._touchHandlers[vnode.context._uid] = handlers;
|
|
14964
|
-
|
|
15138
|
+
helpers_keys(handlers).forEach(eventName => {
|
|
14965
15139
|
target.addEventListener(eventName, handlers[eventName], options);
|
|
14966
15140
|
});
|
|
14967
15141
|
}
|
|
@@ -14970,7 +15144,7 @@ function touch_unbind(el, binding, vnode) {
|
|
|
14970
15144
|
const target = binding.value.parent ? el.parentElement : el;
|
|
14971
15145
|
if (!target || !target._touchHandlers) return;
|
|
14972
15146
|
const handlers = target._touchHandlers[vnode.context._uid];
|
|
14973
|
-
|
|
15147
|
+
helpers_keys(handlers).forEach(eventName => {
|
|
14974
15148
|
target.removeEventListener(eventName, handlers[eventName]);
|
|
14975
15149
|
});
|
|
14976
15150
|
delete target._touchHandlers[vnode.context._uid];
|
|
@@ -16340,7 +16514,7 @@ var Tabs_component = normalizeComponent(
|
|
|
16340
16514
|
// CONCATENATED MODULE: ./src/components/Tabs/index.js
|
|
16341
16515
|
|
|
16342
16516
|
/* harmony default export */ var components_Tabs = (Tabs);
|
|
16343
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16517
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DialogHeader/DialogHeader.vue?vue&type=template&id=93930314&
|
|
16344
16518
|
var DialogHeadervue_type_template_id_93930314_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('header',[(_vm.iconTitle)?_c('v-icon',{staticClass:"dialog-header__title-icon"},[_vm._v(_vm._s('mdi-' + _vm.iconTitle))]):_vm._e(),_vm._v(" "+_vm._s(_vm.title)+" "),(_vm.hasCloseIcon)?_c('v-icon',{staticClass:"dialog-header__close-icon",attrs:{"role":"button","title":"Fechar","color":"secondary"},on:{"click":_vm.onClose}},[_vm._v(" mdi-close-thick ")]):_vm._e()],1)}
|
|
16345
16519
|
var DialogHeadervue_type_template_id_93930314_staticRenderFns = []
|
|
16346
16520
|
|
|
@@ -16433,7 +16607,7 @@ var DialogHeader_component = normalizeComponent(
|
|
|
16433
16607
|
// CONCATENATED MODULE: ./src/components/DialogHeader/index.js
|
|
16434
16608
|
|
|
16435
16609
|
/* harmony default export */ var components_DialogHeader = (DialogHeader);
|
|
16436
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16610
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DialogFooter/DialogFooter.vue?vue&type=template&id=991fb86c&
|
|
16437
16611
|
var DialogFootervue_type_template_id_991fb86c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-dialog__footer d-flex flex-column flex-sm-row justify-end"},[(_vm.hasCancel)?_c('v-btn',{attrs:{"color":"primary","outlined":""},on:{"click":function($event){return _vm.$emit('onClose')}}},[_vm._v(" "+_vm._s(_vm.closeLabel)+" ")]):_vm._e(),_vm._l((_vm.extraButtons),function(button){return _c('v-btn',{key:button.label,staticClass:"ml-sm-3 mt-3 mt-sm-0",attrs:{"color":button.color,"outlined":button.outlined,"depressed":button.outlined,"disabled":button.disabled},on:{"click":function($event){return _vm.$emit(button.listener ? button.listener : '')}}},[_vm._v(" "+_vm._s(button.label)+" ")])}),(_vm.hasConfirm)?_c('v-btn',{staticClass:"ml-sm-3 mt-3 mt-sm-0",attrs:{"color":_vm.confirmColor,"disabled":_vm.isConfirmDisabled},on:{"click":function($event){return _vm.$emit('onConfirm')}}},[(_vm.confirmIcon)?_c('v-icon',[_vm._v("mdi-"+_vm._s(_vm.confirmIcon))]):_vm._e(),_vm._v(" "+_vm._s(_vm.confirmLabel)+" ")],1):_vm._e()],2)}
|
|
16438
16612
|
var DialogFootervue_type_template_id_991fb86c_staticRenderFns = []
|
|
16439
16613
|
|
|
@@ -16576,7 +16750,7 @@ var DialogFooter_component = normalizeComponent(
|
|
|
16576
16750
|
// CONCATENATED MODULE: ./src/components/DialogFooter/index.js
|
|
16577
16751
|
|
|
16578
16752
|
/* harmony default export */ var components_DialogFooter = (DialogFooter);
|
|
16579
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16753
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DefaultTextField/DefaultTextField.vue?vue&type=template&id=36d90281&
|
|
16580
16754
|
var DefaultTextFieldvue_type_template_id_36d90281_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticClass:"v-col-fieldset-default pl-0",attrs:{"cols":"12","sm":"12","md":_vm.item.md ? _vm.item.md : 2}},[_c('label',{attrs:{"for":(_vm.forKey + "-" + (_vm.item.key))}},[_vm._v(" "+_vm._s(_vm.item.label)+" "),(_vm.required && !_vm.disabled)?_c('span',{staticClass:"required"},[_vm._v("*")]):_vm._e()]),_c('v-text-field',{directives:[{name:"mask",rawName:"v-mask",value:(("" + (_vm.mask ? _vm.mask : ''))),expression:"`${mask ? mask : ''}`"}],attrs:{"id":(_vm.forKey + "-" + (_vm.item.key)),"color":"secondary","outlined":"","dense":"","rules":_vm.inputRules,"disabled":_vm.disabled},model:{value:(_vm.inputVal),callback:function ($$v) {_vm.inputVal=$$v},expression:"inputVal"}})],1)}
|
|
16581
16755
|
var DefaultTextFieldvue_type_template_id_36d90281_staticRenderFns = []
|
|
16582
16756
|
|
|
@@ -16685,7 +16859,7 @@ var DefaultTextField_component = normalizeComponent(
|
|
|
16685
16859
|
// CONCATENATED MODULE: ./src/components/DefaultTextField/index.js
|
|
16686
16860
|
|
|
16687
16861
|
/* harmony default export */ var components_DefaultTextField = (DefaultTextField);
|
|
16688
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16862
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/RangeDatePicker/RangeDatePicker.vue?vue&type=template&id=1afb51cd&
|
|
16689
16863
|
var RangeDatePickervue_type_template_id_1afb51cd_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{ref:"menuField",attrs:{"close-on-content-click":false,"nudge-right":40,"return-value":_vm.fieldRange,"transition":"scale-transition","offset-y":"","min-width":"290px"},on:{"update:returnValue":function($event){_vm.fieldRange=$event},"update:return-value":function($event){_vm.fieldRange=$event}},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
|
|
16690
16864
|
var on = ref.on;
|
|
16691
16865
|
return [_c('v-text-field',_vm._g({attrs:{"color":"secondary","append-icon":"mdi-calendar","readonly":"","outlined":"","dense":"","id":_vm.inputId},model:{value:(_vm.fieldRange),callback:function ($$v) {_vm.fieldRange=$$v},expression:"fieldRange"}},on))]}}]),model:{value:(_vm.menuField),callback:function ($$v) {_vm.menuField=$$v},expression:"menuField"}},[(_vm.menuField)?_c('v-date-picker',{attrs:{"no-title":"","scrollable":"","range":"","max":_vm.max,"min":_vm.min,"color":"secondary","locale":"pt-br"},model:{value:(_vm.dateField),callback:function ($$v) {_vm.dateField=$$v},expression:"dateField"}},[_c('v-btn',{attrs:{"outlined":"","color":"primary","tutle":"Fechar"},on:{"click":function($event){_vm.menuField = false}}},[_vm._v(" Fechar ")]),_c('v-btn',{attrs:{"outlined":"","color":"secondary","title":"Limpar"},on:{"click":function($event){return _vm.clear()}}},[_vm._v(" Limpar ")]),_c('v-btn',{attrs:{"color":"secondary","disabled":_vm.canConfirm,"title":"Confirmar"},on:{"click":function($event){return _vm.save()}}},[_vm._v(" Confirmar ")])],1):_vm._e()],1)}
|
|
@@ -19006,7 +19180,7 @@ var RangeDatePicker_component = normalizeComponent(
|
|
|
19006
19180
|
// CONCATENATED MODULE: ./src/components/RangeDatePicker/index.js
|
|
19007
19181
|
|
|
19008
19182
|
/* harmony default export */ var components_RangeDatePicker = (RangeDatePicker);
|
|
19009
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
19183
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatePicker/DatePicker.vue?vue&type=template&id=5d26be56&
|
|
19010
19184
|
var DatePickervue_type_template_id_5d26be56_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{ref:"menuField",attrs:{"close-on-content-click":false,"nudge-right":40,"return-value":_vm.fieldRange,"transition":"scale-transition","offset-y":"","min-width":"290px"},on:{"update:returnValue":function($event){_vm.fieldRange=$event},"update:return-value":function($event){_vm.fieldRange=$event}},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
|
|
19011
19185
|
var on = ref.on;
|
|
19012
19186
|
return [_c('v-text-field',_vm._g({attrs:{"color":"secondary","append-icon":"mdi-calendar","readonly":"","outlined":"","dense":"","id":_vm.inputId,"rules":_vm.required ? [_vm.requiredRule] : []},model:{value:(_vm.fieldRange),callback:function ($$v) {_vm.fieldRange=$$v},expression:"fieldRange"}},on))]}}]),model:{value:(_vm.menuField),callback:function ($$v) {_vm.menuField=$$v},expression:"menuField"}},[(_vm.menuField)?_c('v-date-picker',{attrs:{"no-title":"","scrollable":"","max":_vm.max,"min":_vm.min,"color":"secondary","locale":"pt-br"},model:{value:(_vm.dateField),callback:function ($$v) {_vm.dateField=$$v},expression:"dateField"}},[_c('v-btn',{attrs:{"outlined":"","color":"primary","title":"Fechar"},on:{"click":function($event){_vm.menuField = false}}},[_vm._v(" Fechar ")]),_c('v-btn',{attrs:{"outlined":"","color":"secondary"},on:{"click":_vm.clear}},[_vm._v(" Limpar ")]),_c('v-btn',{attrs:{"color":"secondary","disabled":!_vm.dateField.length,"title":"Confirmar"},on:{"click":function($event){return _vm.save()}}},[_vm._v(" Confirmar ")])],1):_vm._e()],1)}
|
|
@@ -19182,7 +19356,7 @@ var DatePicker_component = normalizeComponent(
|
|
|
19182
19356
|
// CONCATENATED MODULE: ./src/components/DatePicker/index.js
|
|
19183
19357
|
|
|
19184
19358
|
/* harmony default export */ var components_DatePicker = (DatePicker);
|
|
19185
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
19359
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ManagersList/ManagersList.vue?vue&type=template&id=7acbd269&scoped=true&
|
|
19186
19360
|
var ManagersListvue_type_template_id_7acbd269_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',_vm._l((_vm.managers),function(m,index){return _c('li',{key:index},[_vm._v(" "+_vm._s(m)+" ")])}),0)}
|
|
19187
19361
|
var ManagersListvue_type_template_id_7acbd269_scoped_true_staticRenderFns = []
|
|
19188
19362
|
|
|
@@ -19247,7 +19421,7 @@ var ManagersList_component = normalizeComponent(
|
|
|
19247
19421
|
// CONCATENATED MODULE: ./src/components/ManagersList/index.js
|
|
19248
19422
|
|
|
19249
19423
|
/* harmony default export */ var components_ManagersList = (ManagersList);
|
|
19250
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
19424
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PromptUserToConfirm/PromptUserToConfirm.vue?vue&type=template&id=04793cb7&
|
|
19251
19425
|
var PromptUserToConfirmvue_type_template_id_04793cb7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-form',{attrs:{"autocomplete":"off"},model:{value:(_vm.formVal),callback:function ($$v) {_vm.formVal=$$v},expression:"formVal"}},[_c('div',{domProps:{"innerHTML":_vm._s(_vm.title)}}),_c('v-row',[_c('v-col',{staticClass:"mt-3 v-col-fieldset-default",attrs:{"cols":"12","sm":"12"}},[_c('v-text-field',{attrs:{"id":"form-confirm-remove","color":"secondary","outlined":"","dense":"","rules":[_vm.rules.checkRemove]},model:{value:(_vm.matchInput),callback:function ($$v) {_vm.matchInput=$$v},expression:"matchInput"}})],1)],1)],1)}
|
|
19252
19426
|
var PromptUserToConfirmvue_type_template_id_04793cb7_staticRenderFns = []
|
|
19253
19427
|
|
|
@@ -19497,7 +19671,7 @@ var PromptUserToConfirm_component = normalizeComponent(
|
|
|
19497
19671
|
// CONCATENATED MODULE: ./src/components/PromptUserToConfirm/index.js
|
|
19498
19672
|
|
|
19499
19673
|
/* harmony default export */ var components_PromptUserToConfirm = (PromptUserToConfirm);
|
|
19500
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
19674
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ModalPromptUser/ModalPromptUser.vue?vue&type=template&id=6b19751e&
|
|
19501
19675
|
var ModalPromptUservue_type_template_id_6b19751e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{"content-class":"modal-default modal-default-small"},model:{value:(_vm.inputVal),callback:function ($$v) {_vm.inputVal=$$v},expression:"inputVal"}},[_c('DialogHeader',{attrs:{"title":_vm.title},on:{"onClose":_vm.close}}),_c('v-main',[_c('section',{staticClass:"mt-9"},[(_vm.inputVal)?_c('PromptUserToConfirm',{attrs:{"match":_vm.match,"title":_vm.subtitle},model:{value:(_vm.canConfirm),callback:function ($$v) {_vm.canConfirm=$$v},expression:"canConfirm"}}):_vm._e()],1),_c('DialogFooter',{attrs:{"confirmColor":_vm.confirmColor,"confirmLabel":_vm.confirmLabel,"isConfirmDisabled":!_vm.canConfirm},on:{"onClose":_vm.close,"onConfirm":_vm.confirm}})],1)],1)}
|
|
19502
19676
|
var ModalPromptUservue_type_template_id_6b19751e_staticRenderFns = []
|
|
19503
19677
|
|
|
@@ -20220,7 +20394,7 @@ var ModalPromptUser_component = normalizeComponent(
|
|
|
20220
20394
|
// CONCATENATED MODULE: ./src/components/ModalPromptUser/index.js
|
|
20221
20395
|
|
|
20222
20396
|
/* harmony default export */ var components_ModalPromptUser = (ModalPromptUser);
|
|
20223
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20397
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TableContextMenu/TableContextMenu.vue?vue&type=template&id=e042cebc&
|
|
20224
20398
|
var TableContextMenuvue_type_template_id_e042cebc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{scopedSlots:_vm._u([{key:"activator",fn:function(ref){
|
|
20225
20399
|
var on = ref.on;
|
|
20226
20400
|
var attrs = ref.attrs;
|
|
@@ -20318,7 +20492,7 @@ var TableContextMenu_component = normalizeComponent(
|
|
|
20318
20492
|
// CONCATENATED MODULE: ./src/components/TableContextMenu/index.js
|
|
20319
20493
|
|
|
20320
20494
|
/* harmony default export */ var components_TableContextMenu = (TableContextMenu);
|
|
20321
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20495
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IconBox/IconBox.vue?vue&type=template&id=02e53181&scoped=true&
|
|
20322
20496
|
var IconBoxvue_type_template_id_02e53181_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"icon-box"},[_c('div',{staticClass:"icon"},[_c('v-icon',{attrs:{"color":"secondary"}},[_vm._v(_vm._s(_vm.icon))])],1)])}
|
|
20323
20497
|
var IconBoxvue_type_template_id_02e53181_scoped_true_staticRenderFns = []
|
|
20324
20498
|
|
|
@@ -20377,7 +20551,7 @@ var IconBox_component = normalizeComponent(
|
|
|
20377
20551
|
// CONCATENATED MODULE: ./src/components/IconBox/index.js
|
|
20378
20552
|
|
|
20379
20553
|
/* harmony default export */ var components_IconBox = (IconBox);
|
|
20380
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20554
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CardContext/CardContext.vue?vue&type=template&id=bfd0efbc&scoped=true&
|
|
20381
20555
|
var CardContextvue_type_template_id_bfd0efbc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.isHeightFull},[(_vm.isSuccess)?_c('div',{staticClass:"card-context-header"},[_c('IconBox',{attrs:{"icon":_vm.icon}}),_c('div',{staticClass:"card-context-content"},[_c('p',{class:_vm.isBold},[_vm._v(" "+_vm._s(_vm.title)+" ")])])],1):_vm._e(),(_vm.isSuccess)?_c('div',{staticClass:"card-context-body"},[_vm._t("default")],2):_vm._e(),(_vm.isLoading)?_c('div',{staticClass:"card-context-loading-or-error"},[_c('Loader',{attrs:{"size":_vm.isLargeLoading}})],1):_vm._e(),(_vm.isError)?_c('div',{staticClass:"card-context-loading-or-error"},[_c('AlertReload',{attrs:{"label":_vm.errorLabel},on:{"onClick":function($event){return _vm.$emit('onLoad')}}})],1):_vm._e()])}
|
|
20382
20556
|
var CardContextvue_type_template_id_bfd0efbc_scoped_true_staticRenderFns = []
|
|
20383
20557
|
|
|
@@ -20526,7 +20700,7 @@ var CardContext_component = normalizeComponent(
|
|
|
20526
20700
|
// CONCATENATED MODULE: ./src/components/CardContext/index.js
|
|
20527
20701
|
|
|
20528
20702
|
/* harmony default export */ var components_CardContext = (CardContext);
|
|
20529
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20703
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/DefaultButton/DefaultButton.vue?vue&type=template&id=5d6726a7&
|
|
20530
20704
|
var DefaultButtonvue_type_template_id_5d6726a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',_vm._g(_vm._b({},'v-btn',_vm.$attrs,false),_vm.$listeners),[_vm._t("default")],2)}
|
|
20531
20705
|
var DefaultButtonvue_type_template_id_5d6726a7_staticRenderFns = []
|
|
20532
20706
|
|
|
@@ -20575,7 +20749,7 @@ var DefaultButton_component = normalizeComponent(
|
|
|
20575
20749
|
|
|
20576
20750
|
|
|
20577
20751
|
/* harmony default export */ var Buttons_DefaultButton = (DefaultButton);
|
|
20578
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20752
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/DangerButton/DangerButton.vue?vue&type=template&id=9f654838&
|
|
20579
20753
|
var DangerButtonvue_type_template_id_9f654838_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',_vm._g(_vm._b({attrs:{"color":"error"}},'v-btn',_vm.$attrs,false),_vm.$listeners),[(_vm.icon)?_c('v-icon',{staticClass:"mr-3"},[_vm._v(" "+_vm._s(_vm.iconPath)+" ")]):_vm._e(),_vm._t("default")],2)}
|
|
20580
20754
|
var DangerButtonvue_type_template_id_9f654838_staticRenderFns = []
|
|
20581
20755
|
|
|
@@ -20654,7 +20828,7 @@ var DangerButton_component = normalizeComponent(
|
|
|
20654
20828
|
|
|
20655
20829
|
|
|
20656
20830
|
/* harmony default export */ var Buttons_DangerButton = (DangerButton);
|
|
20657
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20831
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/ConfirmButton/ConfirmButton.vue?vue&type=template&id=5c93c8ef&
|
|
20658
20832
|
var ConfirmButtonvue_type_template_id_5c93c8ef_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',_vm._g(_vm._b({attrs:{"color":"secondary"}},'v-btn',_vm.$attrs,false),_vm.$listeners),[(_vm.icon)?_c('v-icon',{staticClass:"mr-3"},[_vm._v(" "+_vm._s(_vm.iconPath)+" ")]):_vm._e(),_vm._t("default")],2)}
|
|
20659
20833
|
var ConfirmButtonvue_type_template_id_5c93c8ef_staticRenderFns = []
|
|
20660
20834
|
|
|
@@ -20733,7 +20907,7 @@ var ConfirmButton_component = normalizeComponent(
|
|
|
20733
20907
|
|
|
20734
20908
|
|
|
20735
20909
|
/* harmony default export */ var Buttons_ConfirmButton = (ConfirmButton);
|
|
20736
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
20910
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/ExportButton/ExportButton.vue?vue&type=template&id=768e6724&scoped=true&
|
|
20737
20911
|
var ExportButtonvue_type_template_id_768e6724_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.optionsList.length == 0)?_c('v-btn',{staticClass:"v-btn--responsive",attrs:{"dense":"","outlined":"","title":"Exportar","disabled":_vm.disabled},on:{"click":_vm.onClick}},[_c('v-icon',{staticClass:"mr-2"},[_vm._v("mdi-file-export-outline")]),_vm._v(" Exportar ")],1):_c('v-menu',{attrs:{"content-class":"elevation-1","offset-y":true,"rounded":'b t-0'},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
|
|
20738
20912
|
var on = ref.on;
|
|
20739
20913
|
var attrs = ref.attrs;
|
|
@@ -20880,7 +21054,7 @@ var ExportButton_component = normalizeComponent(
|
|
|
20880
21054
|
|
|
20881
21055
|
|
|
20882
21056
|
/* harmony default export */ var Buttons_ExportButton = (ExportButton);
|
|
20883
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21057
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/ImportButton/ImportButton.vue?vue&type=template&id=cce173b8&scoped=true&
|
|
20884
21058
|
var ImportButtonvue_type_template_id_cce173b8_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',{staticClass:"v-btn--responsive v-btn--import",attrs:{"dense":"","outlined":"","title":"Importar"},on:{"click":_vm.onClick}},[_c('v-icon',[_vm._v("mdi-upload")]),_vm._v(" "+_vm._s(_vm.label)+" ")],1)}
|
|
20885
21059
|
var ImportButtonvue_type_template_id_cce173b8_scoped_true_staticRenderFns = []
|
|
20886
21060
|
|
|
@@ -20948,7 +21122,7 @@ var ImportButton_component = normalizeComponent(
|
|
|
20948
21122
|
|
|
20949
21123
|
|
|
20950
21124
|
/* harmony default export */ var Buttons_ImportButton = (ImportButton);
|
|
20951
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21125
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/ToggleButton/ToggleButton.vue?vue&type=template&id=1f5968c4&scoped=true&
|
|
20952
21126
|
var ToggleButtonvue_type_template_id_1f5968c4_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',{staticClass:"v-btn--responsive",class:{
|
|
20953
21127
|
'v-btn_icon--prepend': _vm.prepend,
|
|
20954
21128
|
'v-btn_icon--apppend': !_vm.prepend,
|
|
@@ -21077,7 +21251,7 @@ var ToggleButton_component = normalizeComponent(
|
|
|
21077
21251
|
|
|
21078
21252
|
|
|
21079
21253
|
/* harmony default export */ var Buttons_ToggleButton = (ToggleButton);
|
|
21080
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21254
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Buttons/RemoveButton/RemoveButton.vue?vue&type=template&id=7a7c75c6&scoped=true&
|
|
21081
21255
|
var RemoveButtonvue_type_template_id_7a7c75c6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-btn',{staticClass:"v-btn--responsive",attrs:{"dense":"","color":"error","title":_vm.label,"disabled":_vm.disabled},on:{"click":_vm.onClick}},[_c('v-icon',[_vm._v("mdi-trash-can-outline")]),_vm._v(" "+_vm._s(_vm.label)+" ")],1)}
|
|
21082
21256
|
var RemoveButtonvue_type_template_id_7a7c75c6_scoped_true_staticRenderFns = []
|
|
21083
21257
|
|
|
@@ -21160,7 +21334,7 @@ var RemoveButton_component = normalizeComponent(
|
|
|
21160
21334
|
|
|
21161
21335
|
|
|
21162
21336
|
/* harmony default export */ var Buttons_RemoveButton = (RemoveButton);
|
|
21163
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21337
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Logos/ProductLogo/ProductLogo.vue?vue&type=template&id=1081e27d&
|
|
21164
21338
|
var ProductLogovue_type_template_id_1081e27d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.imgSrc}})}
|
|
21165
21339
|
var ProductLogovue_type_template_id_1081e27d_staticRenderFns = []
|
|
21166
21340
|
|
|
@@ -21224,7 +21398,7 @@ var ProductLogo_component = normalizeComponent(
|
|
|
21224
21398
|
|
|
21225
21399
|
|
|
21226
21400
|
/* harmony default export */ var Logos_ProductLogo = (ProductLogo);
|
|
21227
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21401
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Logos/OriginatorLogo/OriginatorLogo.vue?vue&type=template&id=5fd10e58&
|
|
21228
21402
|
var OriginatorLogovue_type_template_id_5fd10e58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.imgSrc}})}
|
|
21229
21403
|
var OriginatorLogovue_type_template_id_5fd10e58_staticRenderFns = []
|
|
21230
21404
|
|
|
@@ -21288,12 +21462,12 @@ var OriginatorLogo_component = normalizeComponent(
|
|
|
21288
21462
|
|
|
21289
21463
|
|
|
21290
21464
|
/* harmony default export */ var Logos_OriginatorLogo = (OriginatorLogo);
|
|
21291
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
21292
|
-
var
|
|
21293
|
-
var
|
|
21465
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=template&id=befb8b6e&scoped=true&
|
|
21466
|
+
var ResetTableRowSelectionvue_type_template_id_befb8b6e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ml-6 mr-3 d-flex align-center"},[_vm._v(" Total de linhas selecionadas: "+_vm._s(_vm.length)+" "),(_vm.length > 0)?_c('v-btn',{staticClass:"ml-3",attrs:{"color":"error","small":"","dense":""},on:{"click":_vm.reset}},[_c('v-icon',{attrs:{"small":""}},[_vm._v(" mdi-trash-can ")]),_vm._v(" Desmarcar ")],1):_vm._e()],1)}
|
|
21467
|
+
var ResetTableRowSelectionvue_type_template_id_befb8b6e_scoped_true_staticRenderFns = []
|
|
21294
21468
|
|
|
21295
21469
|
|
|
21296
|
-
// CONCATENATED MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=template&id=
|
|
21470
|
+
// CONCATENATED MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=template&id=befb8b6e&scoped=true&
|
|
21297
21471
|
|
|
21298
21472
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=script&lang=js&
|
|
21299
21473
|
|
|
@@ -21310,7 +21484,7 @@ var ResetTableRowSelectionvue_type_template_id_26f9fbfb_scoped_true_staticRender
|
|
|
21310
21484
|
|
|
21311
21485
|
|
|
21312
21486
|
/* harmony default export */ var ResetTableRowSelectionvue_type_script_lang_js_ = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
21313
|
-
|
|
21487
|
+
name: 'farm-tablerowselection',
|
|
21314
21488
|
components: {
|
|
21315
21489
|
VBtn: components_VBtn,
|
|
21316
21490
|
VIcon: components_VIcon
|
|
@@ -21332,8 +21506,8 @@ var ResetTableRowSelectionvue_type_template_id_26f9fbfb_scoped_true_staticRender
|
|
|
21332
21506
|
}));
|
|
21333
21507
|
// CONCATENATED MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=script&lang=js&
|
|
21334
21508
|
/* harmony default export */ var ResetTableRowSelection_ResetTableRowSelectionvue_type_script_lang_js_ = (ResetTableRowSelectionvue_type_script_lang_js_);
|
|
21335
|
-
// EXTERNAL MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=style&index=0&id=
|
|
21336
|
-
var
|
|
21509
|
+
// EXTERNAL MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue?vue&type=style&index=0&id=befb8b6e&lang=scss&scoped=true&
|
|
21510
|
+
var ResetTableRowSelectionvue_type_style_index_0_id_befb8b6e_lang_scss_scoped_true_ = __webpack_require__("3d11");
|
|
21337
21511
|
|
|
21338
21512
|
// CONCATENATED MODULE: ./src/components/ResetTableRowSelection/ResetTableRowSelection.vue
|
|
21339
21513
|
|
|
@@ -21346,11 +21520,11 @@ var ResetTableRowSelectionvue_type_style_index_0_id_26f9fbfb_lang_scss_scoped_tr
|
|
|
21346
21520
|
|
|
21347
21521
|
var ResetTableRowSelection_component = normalizeComponent(
|
|
21348
21522
|
ResetTableRowSelection_ResetTableRowSelectionvue_type_script_lang_js_,
|
|
21349
|
-
|
|
21350
|
-
|
|
21523
|
+
ResetTableRowSelectionvue_type_template_id_befb8b6e_scoped_true_render,
|
|
21524
|
+
ResetTableRowSelectionvue_type_template_id_befb8b6e_scoped_true_staticRenderFns,
|
|
21351
21525
|
false,
|
|
21352
21526
|
null,
|
|
21353
|
-
"
|
|
21527
|
+
"befb8b6e",
|
|
21354
21528
|
null
|
|
21355
21529
|
|
|
21356
21530
|
)
|
|
@@ -21360,7 +21534,2617 @@ var ResetTableRowSelection_component = normalizeComponent(
|
|
|
21360
21534
|
|
|
21361
21535
|
|
|
21362
21536
|
/* harmony default export */ var components_ResetTableRowSelection = (ResetTableRowSelection);
|
|
21363
|
-
// CONCATENATED MODULE: ./src/
|
|
21537
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultipleSelectShortener/MultipleSelectShortener.vue?vue&type=template&id=31e8b3ae&scoped=true&
|
|
21538
|
+
var MultipleSelectShortenervue_type_template_id_31e8b3ae_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"align-center"},[(_vm.index === 0)?_c('span',{staticClass:"mr-1 label"},[_vm._v(_vm._s(_vm.item[_vm.labelKey]))]):_vm._e(),(_vm.index === 1)?_c('span',{staticClass:"label"},[_vm._v(" (+"+_vm._s(_vm.itemsLength - 1)+" "+_vm._s(_vm.itemsLength > 2 ? 'outros' : 'outro')+" ) ")]):_vm._e()])}
|
|
21539
|
+
var MultipleSelectShortenervue_type_template_id_31e8b3ae_scoped_true_staticRenderFns = []
|
|
21540
|
+
|
|
21541
|
+
|
|
21542
|
+
// CONCATENATED MODULE: ./src/components/MultipleSelectShortener/MultipleSelectShortener.vue?vue&type=template&id=31e8b3ae&scoped=true&
|
|
21543
|
+
|
|
21544
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultipleSelectShortener/MultipleSelectShortener.vue?vue&type=script&lang=js&
|
|
21545
|
+
|
|
21546
|
+
//
|
|
21547
|
+
//
|
|
21548
|
+
//
|
|
21549
|
+
//
|
|
21550
|
+
//
|
|
21551
|
+
//
|
|
21552
|
+
//
|
|
21553
|
+
//
|
|
21554
|
+
//
|
|
21555
|
+
|
|
21556
|
+
/* harmony default export */ var MultipleSelectShortenervue_type_script_lang_js_ = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
21557
|
+
name: 'farm-multiple-select-shortener',
|
|
21558
|
+
props: {
|
|
21559
|
+
/**
|
|
21560
|
+
* Key used to get value from item
|
|
21561
|
+
*/
|
|
21562
|
+
labelKey: {
|
|
21563
|
+
type: String,
|
|
21564
|
+
default: 'label'
|
|
21565
|
+
},
|
|
21566
|
+
|
|
21567
|
+
/**
|
|
21568
|
+
* Item from v-select
|
|
21569
|
+
*/
|
|
21570
|
+
item: {
|
|
21571
|
+
type: Object
|
|
21572
|
+
},
|
|
21573
|
+
|
|
21574
|
+
/**
|
|
21575
|
+
* Index from slot
|
|
21576
|
+
*/
|
|
21577
|
+
index: {
|
|
21578
|
+
type: Number
|
|
21579
|
+
},
|
|
21580
|
+
|
|
21581
|
+
/**
|
|
21582
|
+
* Items count
|
|
21583
|
+
*/
|
|
21584
|
+
itemsLength: {
|
|
21585
|
+
type: Number
|
|
21586
|
+
}
|
|
21587
|
+
}
|
|
21588
|
+
}));
|
|
21589
|
+
// CONCATENATED MODULE: ./src/components/MultipleSelectShortener/MultipleSelectShortener.vue?vue&type=script&lang=js&
|
|
21590
|
+
/* harmony default export */ var MultipleSelectShortener_MultipleSelectShortenervue_type_script_lang_js_ = (MultipleSelectShortenervue_type_script_lang_js_);
|
|
21591
|
+
// EXTERNAL MODULE: ./src/components/MultipleSelectShortener/MultipleSelectShortener.vue?vue&type=style&index=0&id=31e8b3ae&scoped=true&lang=css&
|
|
21592
|
+
var MultipleSelectShortenervue_type_style_index_0_id_31e8b3ae_scoped_true_lang_css_ = __webpack_require__("0fa1");
|
|
21593
|
+
|
|
21594
|
+
// CONCATENATED MODULE: ./src/components/MultipleSelectShortener/MultipleSelectShortener.vue
|
|
21595
|
+
|
|
21596
|
+
|
|
21597
|
+
|
|
21598
|
+
|
|
21599
|
+
|
|
21600
|
+
|
|
21601
|
+
/* normalize component */
|
|
21602
|
+
|
|
21603
|
+
var MultipleSelectShortener_component = normalizeComponent(
|
|
21604
|
+
MultipleSelectShortener_MultipleSelectShortenervue_type_script_lang_js_,
|
|
21605
|
+
MultipleSelectShortenervue_type_template_id_31e8b3ae_scoped_true_render,
|
|
21606
|
+
MultipleSelectShortenervue_type_template_id_31e8b3ae_scoped_true_staticRenderFns,
|
|
21607
|
+
false,
|
|
21608
|
+
null,
|
|
21609
|
+
"31e8b3ae",
|
|
21610
|
+
null
|
|
21611
|
+
|
|
21612
|
+
)
|
|
21613
|
+
|
|
21614
|
+
/* harmony default export */ var MultipleSelectShortener = (MultipleSelectShortener_component.exports);
|
|
21615
|
+
// CONCATENATED MODULE: ./src/components/MultipleSelectShortener/index.js
|
|
21616
|
+
|
|
21617
|
+
|
|
21618
|
+
/* harmony default export */ var components_MultipleSelectShortener = (MultipleSelectShortener);
|
|
21619
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f88643ee-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectModalOptions/SelectModalOptions.vue?vue&type=template&id=04f9e4b0&scoped=true&
|
|
21620
|
+
var SelectModalOptionsvue_type_template_id_04f9e4b0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-col',{staticClass:"v-col-fieldset-default",attrs:{"cols":"12","sm":"12","md":_vm.config.md ? _vm.config.md : 2}},[_c('label',{attrs:{"for":_vm.inputId}},[_vm._v(" "+_vm._s(_vm.label)+" "),(_vm.config.required)?_c('span',{staticClass:"required"},[_vm._v("*")]):_vm._e()]),_c('v-text-field',{attrs:{"append-icon":"mdi-magnify ","color":"secondary","outlined":"","dense":"","readonly":"","id":_vm.inputId,"value":_vm.selectedValueText},on:{"click":_vm.openModal}}),_c('v-dialog',{attrs:{"content-class":"modal-default modal-default-small"},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:"showModal"}},[_c('DialogHeader',{staticClass:"dialog-header",attrs:{"title":_vm.modalTitle},on:{"onClose":_vm.closeModal}}),_c('v-main',{staticClass:"mt-9"},[(_vm.isLoading)?_c('Loader',{staticClass:"text-center mb-2"}):_vm._e(),(!_vm.isLoading)?_c('fieldset',{staticClass:"fieldset-default mx-4 mb-3"},[_c('label',{attrs:{"for":"searchInput"}},[_vm._v(" "+_vm._s(_vm.label)+" ")]),_c('v-text-field',{attrs:{"color":"secondary","id":"searchInput","outlined":"","dense":"","hide-details":"","placeholder":_vm.placeholder},model:{value:(_vm.searchValue),callback:function ($$v) {_vm.searchValue=$$v},expression:"searchValue"}})],1):_vm._e(),(!_vm.isLoading)?_c('v-data-table',{staticClass:"v-data-table__clickable v-data-table__select-modal",attrs:{"id":"inputModalOptionsTable","hide-default-footer":"","hide-default-header":"","items":_vm.items,"headers":_vm.headers,"options":_vm.pagination,"search":_vm.searchValue,"custom-filter":_vm.customFilter},on:{"update:options":function($event){_vm.pagination=$event},"click:row":_vm.handleClick,"pagination":_vm.handlePagination},scopedSlots:_vm._u([{key:"item.label",fn:function(ref){
|
|
21621
|
+
var item = ref.item;
|
|
21622
|
+
return [_c('td',{attrs:{"title":_vm.getItemLabel(item),"aria-role":"button"}},[_vm._v(" "+_vm._s(_vm.getItemLabel(item))+" ")])]}},{key:"footer",fn:function(){return [_c('DataTablePaginator',{staticClass:"my-6",attrs:{"hidePerPageOptions":"","initialLimitPerPage":_vm.pagination.itemsPerPage,"page":_vm.pagination.page,"totalPages":_vm.pagination.pages},on:{"onChangePage":_vm.onChangePage}})]},proxy:true}],null,true)},[_c('template',{slot:"no-data"},[_c('DataTableEmptyWrapper')],1),_c('template',{slot:"no-results"},[_c('DataTableEmptyWrapper')],1)],2):_vm._e()],1),_c('DialogFooter',{attrs:{"hasConfirm":false},on:{"onClose":_vm.closeModal}})],1)],1)}
|
|
21623
|
+
var SelectModalOptionsvue_type_template_id_04f9e4b0_scoped_true_staticRenderFns = []
|
|
21624
|
+
|
|
21625
|
+
|
|
21626
|
+
// CONCATENATED MODULE: ./src/components/SelectModalOptions/SelectModalOptions.vue?vue&type=template&id=04f9e4b0&scoped=true&
|
|
21627
|
+
|
|
21628
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
21629
|
+
var es_array_includes = __webpack_require__("caad");
|
|
21630
|
+
|
|
21631
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
21632
|
+
var es_string_includes = __webpack_require__("2532");
|
|
21633
|
+
|
|
21634
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VTextField/index.js
|
|
21635
|
+
|
|
21636
|
+
|
|
21637
|
+
/* harmony default export */ var components_VTextField = (VTextField_VTextField);
|
|
21638
|
+
//# sourceMappingURL=index.js.map
|
|
21639
|
+
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VDataTable/VDataTable.sass
|
|
21640
|
+
var VDataTable = __webpack_require__("91f4");
|
|
21641
|
+
|
|
21642
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VData/VData.js
|
|
21643
|
+
// Helpers
|
|
21644
|
+
|
|
21645
|
+
|
|
21646
|
+
/* harmony default export */ var VData = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
21647
|
+
name: 'v-data',
|
|
21648
|
+
inheritAttrs: false,
|
|
21649
|
+
props: {
|
|
21650
|
+
items: {
|
|
21651
|
+
type: Array,
|
|
21652
|
+
default: () => []
|
|
21653
|
+
},
|
|
21654
|
+
options: {
|
|
21655
|
+
type: Object,
|
|
21656
|
+
default: () => ({})
|
|
21657
|
+
},
|
|
21658
|
+
sortBy: {
|
|
21659
|
+
type: [String, Array],
|
|
21660
|
+
default: () => []
|
|
21661
|
+
},
|
|
21662
|
+
sortDesc: {
|
|
21663
|
+
type: [Boolean, Array],
|
|
21664
|
+
default: () => []
|
|
21665
|
+
},
|
|
21666
|
+
customSort: {
|
|
21667
|
+
type: Function,
|
|
21668
|
+
default: sortItems
|
|
21669
|
+
},
|
|
21670
|
+
mustSort: Boolean,
|
|
21671
|
+
multiSort: Boolean,
|
|
21672
|
+
page: {
|
|
21673
|
+
type: Number,
|
|
21674
|
+
default: 1
|
|
21675
|
+
},
|
|
21676
|
+
itemsPerPage: {
|
|
21677
|
+
type: Number,
|
|
21678
|
+
default: 10
|
|
21679
|
+
},
|
|
21680
|
+
groupBy: {
|
|
21681
|
+
type: [String, Array],
|
|
21682
|
+
default: () => []
|
|
21683
|
+
},
|
|
21684
|
+
groupDesc: {
|
|
21685
|
+
type: [Boolean, Array],
|
|
21686
|
+
default: () => []
|
|
21687
|
+
},
|
|
21688
|
+
customGroup: {
|
|
21689
|
+
type: Function,
|
|
21690
|
+
default: groupItems
|
|
21691
|
+
},
|
|
21692
|
+
locale: {
|
|
21693
|
+
type: String,
|
|
21694
|
+
default: 'en-US'
|
|
21695
|
+
},
|
|
21696
|
+
disableSort: Boolean,
|
|
21697
|
+
disablePagination: Boolean,
|
|
21698
|
+
disableFiltering: Boolean,
|
|
21699
|
+
search: String,
|
|
21700
|
+
customFilter: {
|
|
21701
|
+
type: Function,
|
|
21702
|
+
default: searchItems
|
|
21703
|
+
},
|
|
21704
|
+
serverItemsLength: {
|
|
21705
|
+
type: Number,
|
|
21706
|
+
default: -1
|
|
21707
|
+
}
|
|
21708
|
+
},
|
|
21709
|
+
|
|
21710
|
+
data() {
|
|
21711
|
+
let internalOptions = {
|
|
21712
|
+
page: this.page,
|
|
21713
|
+
itemsPerPage: this.itemsPerPage,
|
|
21714
|
+
sortBy: wrapInArray(this.sortBy),
|
|
21715
|
+
sortDesc: wrapInArray(this.sortDesc),
|
|
21716
|
+
groupBy: wrapInArray(this.groupBy),
|
|
21717
|
+
groupDesc: wrapInArray(this.groupDesc),
|
|
21718
|
+
mustSort: this.mustSort,
|
|
21719
|
+
multiSort: this.multiSort
|
|
21720
|
+
};
|
|
21721
|
+
|
|
21722
|
+
if (this.options) {
|
|
21723
|
+
internalOptions = Object.assign(internalOptions, this.options);
|
|
21724
|
+
}
|
|
21725
|
+
|
|
21726
|
+
const {
|
|
21727
|
+
sortBy,
|
|
21728
|
+
sortDesc,
|
|
21729
|
+
groupBy,
|
|
21730
|
+
groupDesc
|
|
21731
|
+
} = internalOptions;
|
|
21732
|
+
const sortDiff = sortBy.length - sortDesc.length;
|
|
21733
|
+
const groupDiff = groupBy.length - groupDesc.length;
|
|
21734
|
+
|
|
21735
|
+
if (sortDiff > 0) {
|
|
21736
|
+
internalOptions.sortDesc.push(...fillArray(sortDiff, false));
|
|
21737
|
+
}
|
|
21738
|
+
|
|
21739
|
+
if (groupDiff > 0) {
|
|
21740
|
+
internalOptions.groupDesc.push(...fillArray(groupDiff, false));
|
|
21741
|
+
}
|
|
21742
|
+
|
|
21743
|
+
return {
|
|
21744
|
+
internalOptions
|
|
21745
|
+
};
|
|
21746
|
+
},
|
|
21747
|
+
|
|
21748
|
+
computed: {
|
|
21749
|
+
itemsLength() {
|
|
21750
|
+
return this.serverItemsLength >= 0 ? this.serverItemsLength : this.filteredItems.length;
|
|
21751
|
+
},
|
|
21752
|
+
|
|
21753
|
+
pageCount() {
|
|
21754
|
+
return this.internalOptions.itemsPerPage <= 0 ? 1 : Math.ceil(this.itemsLength / this.internalOptions.itemsPerPage);
|
|
21755
|
+
},
|
|
21756
|
+
|
|
21757
|
+
pageStart() {
|
|
21758
|
+
if (this.internalOptions.itemsPerPage === -1 || !this.items.length) return 0;
|
|
21759
|
+
return (this.internalOptions.page - 1) * this.internalOptions.itemsPerPage;
|
|
21760
|
+
},
|
|
21761
|
+
|
|
21762
|
+
pageStop() {
|
|
21763
|
+
if (this.internalOptions.itemsPerPage === -1) return this.itemsLength;
|
|
21764
|
+
if (!this.items.length) return 0;
|
|
21765
|
+
return Math.min(this.itemsLength, this.internalOptions.page * this.internalOptions.itemsPerPage);
|
|
21766
|
+
},
|
|
21767
|
+
|
|
21768
|
+
isGrouped() {
|
|
21769
|
+
return !!this.internalOptions.groupBy.length;
|
|
21770
|
+
},
|
|
21771
|
+
|
|
21772
|
+
pagination() {
|
|
21773
|
+
return {
|
|
21774
|
+
page: this.internalOptions.page,
|
|
21775
|
+
itemsPerPage: this.internalOptions.itemsPerPage,
|
|
21776
|
+
pageStart: this.pageStart,
|
|
21777
|
+
pageStop: this.pageStop,
|
|
21778
|
+
pageCount: this.pageCount,
|
|
21779
|
+
itemsLength: this.itemsLength
|
|
21780
|
+
};
|
|
21781
|
+
},
|
|
21782
|
+
|
|
21783
|
+
filteredItems() {
|
|
21784
|
+
let items = this.items.slice();
|
|
21785
|
+
|
|
21786
|
+
if (!this.disableFiltering && this.serverItemsLength <= 0) {
|
|
21787
|
+
items = this.customFilter(items, this.search);
|
|
21788
|
+
}
|
|
21789
|
+
|
|
21790
|
+
return items;
|
|
21791
|
+
},
|
|
21792
|
+
|
|
21793
|
+
computedItems() {
|
|
21794
|
+
let items = this.filteredItems.slice();
|
|
21795
|
+
|
|
21796
|
+
if ((!this.disableSort || this.internalOptions.groupBy.length) && this.serverItemsLength <= 0) {
|
|
21797
|
+
items = this.sortItems(items);
|
|
21798
|
+
}
|
|
21799
|
+
|
|
21800
|
+
if (!this.disablePagination && this.serverItemsLength <= 0) {
|
|
21801
|
+
items = this.paginateItems(items);
|
|
21802
|
+
}
|
|
21803
|
+
|
|
21804
|
+
return items;
|
|
21805
|
+
},
|
|
21806
|
+
|
|
21807
|
+
groupedItems() {
|
|
21808
|
+
return this.isGrouped ? this.groupItems(this.computedItems) : null;
|
|
21809
|
+
},
|
|
21810
|
+
|
|
21811
|
+
scopedProps() {
|
|
21812
|
+
return {
|
|
21813
|
+
sort: this.sort,
|
|
21814
|
+
sortArray: this.sortArray,
|
|
21815
|
+
group: this.group,
|
|
21816
|
+
items: this.computedItems,
|
|
21817
|
+
options: this.internalOptions,
|
|
21818
|
+
updateOptions: this.updateOptions,
|
|
21819
|
+
pagination: this.pagination,
|
|
21820
|
+
groupedItems: this.groupedItems,
|
|
21821
|
+
originalItemsLength: this.items.length
|
|
21822
|
+
};
|
|
21823
|
+
},
|
|
21824
|
+
|
|
21825
|
+
computedOptions() {
|
|
21826
|
+
return { ...this.options
|
|
21827
|
+
};
|
|
21828
|
+
}
|
|
21829
|
+
|
|
21830
|
+
},
|
|
21831
|
+
watch: {
|
|
21832
|
+
computedOptions: {
|
|
21833
|
+
handler(options, old) {
|
|
21834
|
+
if (deepEqual(options, old)) return;
|
|
21835
|
+
this.updateOptions(options);
|
|
21836
|
+
},
|
|
21837
|
+
|
|
21838
|
+
deep: true,
|
|
21839
|
+
immediate: true
|
|
21840
|
+
},
|
|
21841
|
+
internalOptions: {
|
|
21842
|
+
handler(options, old) {
|
|
21843
|
+
if (deepEqual(options, old)) return;
|
|
21844
|
+
this.$emit('update:options', options);
|
|
21845
|
+
},
|
|
21846
|
+
|
|
21847
|
+
deep: true,
|
|
21848
|
+
immediate: true
|
|
21849
|
+
},
|
|
21850
|
+
|
|
21851
|
+
page(page) {
|
|
21852
|
+
this.updateOptions({
|
|
21853
|
+
page
|
|
21854
|
+
});
|
|
21855
|
+
},
|
|
21856
|
+
|
|
21857
|
+
'internalOptions.page'(page) {
|
|
21858
|
+
this.$emit('update:page', page);
|
|
21859
|
+
},
|
|
21860
|
+
|
|
21861
|
+
itemsPerPage(itemsPerPage) {
|
|
21862
|
+
this.updateOptions({
|
|
21863
|
+
itemsPerPage
|
|
21864
|
+
});
|
|
21865
|
+
},
|
|
21866
|
+
|
|
21867
|
+
'internalOptions.itemsPerPage'(itemsPerPage) {
|
|
21868
|
+
this.$emit('update:items-per-page', itemsPerPage);
|
|
21869
|
+
},
|
|
21870
|
+
|
|
21871
|
+
sortBy(sortBy) {
|
|
21872
|
+
this.updateOptions({
|
|
21873
|
+
sortBy: wrapInArray(sortBy)
|
|
21874
|
+
});
|
|
21875
|
+
},
|
|
21876
|
+
|
|
21877
|
+
'internalOptions.sortBy'(sortBy, old) {
|
|
21878
|
+
!deepEqual(sortBy, old) && this.$emit('update:sort-by', Array.isArray(this.sortBy) ? sortBy : sortBy[0]);
|
|
21879
|
+
},
|
|
21880
|
+
|
|
21881
|
+
sortDesc(sortDesc) {
|
|
21882
|
+
this.updateOptions({
|
|
21883
|
+
sortDesc: wrapInArray(sortDesc)
|
|
21884
|
+
});
|
|
21885
|
+
},
|
|
21886
|
+
|
|
21887
|
+
'internalOptions.sortDesc'(sortDesc, old) {
|
|
21888
|
+
!deepEqual(sortDesc, old) && this.$emit('update:sort-desc', Array.isArray(this.sortDesc) ? sortDesc : sortDesc[0]);
|
|
21889
|
+
},
|
|
21890
|
+
|
|
21891
|
+
groupBy(groupBy) {
|
|
21892
|
+
this.updateOptions({
|
|
21893
|
+
groupBy: wrapInArray(groupBy)
|
|
21894
|
+
});
|
|
21895
|
+
},
|
|
21896
|
+
|
|
21897
|
+
'internalOptions.groupBy'(groupBy, old) {
|
|
21898
|
+
!deepEqual(groupBy, old) && this.$emit('update:group-by', Array.isArray(this.groupBy) ? groupBy : groupBy[0]);
|
|
21899
|
+
},
|
|
21900
|
+
|
|
21901
|
+
groupDesc(groupDesc) {
|
|
21902
|
+
this.updateOptions({
|
|
21903
|
+
groupDesc: wrapInArray(groupDesc)
|
|
21904
|
+
});
|
|
21905
|
+
},
|
|
21906
|
+
|
|
21907
|
+
'internalOptions.groupDesc'(groupDesc, old) {
|
|
21908
|
+
!deepEqual(groupDesc, old) && this.$emit('update:group-desc', Array.isArray(this.groupDesc) ? groupDesc : groupDesc[0]);
|
|
21909
|
+
},
|
|
21910
|
+
|
|
21911
|
+
multiSort(multiSort) {
|
|
21912
|
+
this.updateOptions({
|
|
21913
|
+
multiSort
|
|
21914
|
+
});
|
|
21915
|
+
},
|
|
21916
|
+
|
|
21917
|
+
'internalOptions.multiSort'(multiSort) {
|
|
21918
|
+
this.$emit('update:multi-sort', multiSort);
|
|
21919
|
+
},
|
|
21920
|
+
|
|
21921
|
+
mustSort(mustSort) {
|
|
21922
|
+
this.updateOptions({
|
|
21923
|
+
mustSort
|
|
21924
|
+
});
|
|
21925
|
+
},
|
|
21926
|
+
|
|
21927
|
+
'internalOptions.mustSort'(mustSort) {
|
|
21928
|
+
this.$emit('update:must-sort', mustSort);
|
|
21929
|
+
},
|
|
21930
|
+
|
|
21931
|
+
pageCount: {
|
|
21932
|
+
handler(pageCount) {
|
|
21933
|
+
this.$emit('page-count', pageCount);
|
|
21934
|
+
},
|
|
21935
|
+
|
|
21936
|
+
immediate: true
|
|
21937
|
+
},
|
|
21938
|
+
computedItems: {
|
|
21939
|
+
handler(computedItems) {
|
|
21940
|
+
this.$emit('current-items', computedItems);
|
|
21941
|
+
},
|
|
21942
|
+
|
|
21943
|
+
immediate: true
|
|
21944
|
+
},
|
|
21945
|
+
pagination: {
|
|
21946
|
+
handler(pagination, old) {
|
|
21947
|
+
if (deepEqual(pagination, old)) return;
|
|
21948
|
+
this.$emit('pagination', this.pagination);
|
|
21949
|
+
},
|
|
21950
|
+
|
|
21951
|
+
immediate: true
|
|
21952
|
+
}
|
|
21953
|
+
},
|
|
21954
|
+
methods: {
|
|
21955
|
+
toggle(key, oldBy, oldDesc, page, mustSort, multiSort) {
|
|
21956
|
+
let by = oldBy.slice();
|
|
21957
|
+
let desc = oldDesc.slice();
|
|
21958
|
+
const byIndex = by.findIndex(k => k === key);
|
|
21959
|
+
|
|
21960
|
+
if (byIndex < 0) {
|
|
21961
|
+
if (!multiSort) {
|
|
21962
|
+
by = [];
|
|
21963
|
+
desc = [];
|
|
21964
|
+
}
|
|
21965
|
+
|
|
21966
|
+
by.push(key);
|
|
21967
|
+
desc.push(false);
|
|
21968
|
+
} else if (byIndex >= 0 && !desc[byIndex]) {
|
|
21969
|
+
desc[byIndex] = true;
|
|
21970
|
+
} else if (!mustSort) {
|
|
21971
|
+
by.splice(byIndex, 1);
|
|
21972
|
+
desc.splice(byIndex, 1);
|
|
21973
|
+
} else {
|
|
21974
|
+
desc[byIndex] = false;
|
|
21975
|
+
} // Reset page to 1 if sortBy or sortDesc have changed
|
|
21976
|
+
|
|
21977
|
+
|
|
21978
|
+
if (!deepEqual(by, oldBy) || !deepEqual(desc, oldDesc)) {
|
|
21979
|
+
page = 1;
|
|
21980
|
+
}
|
|
21981
|
+
|
|
21982
|
+
return {
|
|
21983
|
+
by,
|
|
21984
|
+
desc,
|
|
21985
|
+
page
|
|
21986
|
+
};
|
|
21987
|
+
},
|
|
21988
|
+
|
|
21989
|
+
group(key) {
|
|
21990
|
+
const {
|
|
21991
|
+
by: groupBy,
|
|
21992
|
+
desc: groupDesc,
|
|
21993
|
+
page
|
|
21994
|
+
} = this.toggle(key, this.internalOptions.groupBy, this.internalOptions.groupDesc, this.internalOptions.page, true, false);
|
|
21995
|
+
this.updateOptions({
|
|
21996
|
+
groupBy,
|
|
21997
|
+
groupDesc,
|
|
21998
|
+
page
|
|
21999
|
+
});
|
|
22000
|
+
},
|
|
22001
|
+
|
|
22002
|
+
sort(key) {
|
|
22003
|
+
if (Array.isArray(key)) return this.sortArray(key);
|
|
22004
|
+
const {
|
|
22005
|
+
by: sortBy,
|
|
22006
|
+
desc: sortDesc,
|
|
22007
|
+
page
|
|
22008
|
+
} = this.toggle(key, this.internalOptions.sortBy, this.internalOptions.sortDesc, this.internalOptions.page, this.internalOptions.mustSort, this.internalOptions.multiSort);
|
|
22009
|
+
this.updateOptions({
|
|
22010
|
+
sortBy,
|
|
22011
|
+
sortDesc,
|
|
22012
|
+
page
|
|
22013
|
+
});
|
|
22014
|
+
},
|
|
22015
|
+
|
|
22016
|
+
sortArray(sortBy) {
|
|
22017
|
+
const sortDesc = sortBy.map(s => {
|
|
22018
|
+
const i = this.internalOptions.sortBy.findIndex(k => k === s);
|
|
22019
|
+
return i > -1 ? this.internalOptions.sortDesc[i] : false;
|
|
22020
|
+
});
|
|
22021
|
+
this.updateOptions({
|
|
22022
|
+
sortBy,
|
|
22023
|
+
sortDesc
|
|
22024
|
+
});
|
|
22025
|
+
},
|
|
22026
|
+
|
|
22027
|
+
updateOptions(options) {
|
|
22028
|
+
this.internalOptions = { ...this.internalOptions,
|
|
22029
|
+
...options,
|
|
22030
|
+
page: this.serverItemsLength < 0 ? Math.max(1, Math.min(options.page || this.internalOptions.page, this.pageCount)) : options.page || this.internalOptions.page
|
|
22031
|
+
};
|
|
22032
|
+
},
|
|
22033
|
+
|
|
22034
|
+
sortItems(items) {
|
|
22035
|
+
let sortBy = [];
|
|
22036
|
+
let sortDesc = [];
|
|
22037
|
+
|
|
22038
|
+
if (!this.disableSort) {
|
|
22039
|
+
sortBy = this.internalOptions.sortBy;
|
|
22040
|
+
sortDesc = this.internalOptions.sortDesc;
|
|
22041
|
+
}
|
|
22042
|
+
|
|
22043
|
+
if (this.internalOptions.groupBy.length) {
|
|
22044
|
+
sortBy = [...this.internalOptions.groupBy, ...sortBy];
|
|
22045
|
+
sortDesc = [...this.internalOptions.groupDesc, ...sortDesc];
|
|
22046
|
+
}
|
|
22047
|
+
|
|
22048
|
+
return this.customSort(items, sortBy, sortDesc, this.locale);
|
|
22049
|
+
},
|
|
22050
|
+
|
|
22051
|
+
groupItems(items) {
|
|
22052
|
+
return this.customGroup(items, this.internalOptions.groupBy, this.internalOptions.groupDesc);
|
|
22053
|
+
},
|
|
22054
|
+
|
|
22055
|
+
paginateItems(items) {
|
|
22056
|
+
// Make sure we don't try to display non-existant page if items suddenly change
|
|
22057
|
+
// TODO: Could possibly move this to pageStart/pageStop?
|
|
22058
|
+
if (this.serverItemsLength === -1 && items.length <= this.pageStart) {
|
|
22059
|
+
this.internalOptions.page = Math.max(1, Math.ceil(items.length / this.internalOptions.itemsPerPage)) || 1; // Prevent NaN
|
|
22060
|
+
}
|
|
22061
|
+
|
|
22062
|
+
return items.slice(this.pageStart, this.pageStop);
|
|
22063
|
+
}
|
|
22064
|
+
|
|
22065
|
+
},
|
|
22066
|
+
|
|
22067
|
+
render() {
|
|
22068
|
+
return this.$scopedSlots.default && this.$scopedSlots.default(this.scopedProps);
|
|
22069
|
+
}
|
|
22070
|
+
|
|
22071
|
+
}));
|
|
22072
|
+
//# sourceMappingURL=VData.js.map
|
|
22073
|
+
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VDataIterator/VDataFooter.sass
|
|
22074
|
+
var VDataFooter = __webpack_require__("495d");
|
|
22075
|
+
|
|
22076
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataIterator/VDataFooter.js
|
|
22077
|
+
// Components
|
|
22078
|
+
|
|
22079
|
+
|
|
22080
|
+
|
|
22081
|
+
// Types
|
|
22082
|
+
|
|
22083
|
+
|
|
22084
|
+
|
|
22085
|
+
/* harmony default export */ var VDataIterator_VDataFooter = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
22086
|
+
name: 'v-data-footer',
|
|
22087
|
+
props: {
|
|
22088
|
+
options: {
|
|
22089
|
+
type: Object,
|
|
22090
|
+
required: true
|
|
22091
|
+
},
|
|
22092
|
+
pagination: {
|
|
22093
|
+
type: Object,
|
|
22094
|
+
required: true
|
|
22095
|
+
},
|
|
22096
|
+
itemsPerPageOptions: {
|
|
22097
|
+
type: Array,
|
|
22098
|
+
default: () => [5, 10, 15, -1]
|
|
22099
|
+
},
|
|
22100
|
+
prevIcon: {
|
|
22101
|
+
type: String,
|
|
22102
|
+
default: '$prev'
|
|
22103
|
+
},
|
|
22104
|
+
nextIcon: {
|
|
22105
|
+
type: String,
|
|
22106
|
+
default: '$next'
|
|
22107
|
+
},
|
|
22108
|
+
firstIcon: {
|
|
22109
|
+
type: String,
|
|
22110
|
+
default: '$first'
|
|
22111
|
+
},
|
|
22112
|
+
lastIcon: {
|
|
22113
|
+
type: String,
|
|
22114
|
+
default: '$last'
|
|
22115
|
+
},
|
|
22116
|
+
itemsPerPageText: {
|
|
22117
|
+
type: String,
|
|
22118
|
+
default: '$vuetify.dataFooter.itemsPerPageText'
|
|
22119
|
+
},
|
|
22120
|
+
itemsPerPageAllText: {
|
|
22121
|
+
type: String,
|
|
22122
|
+
default: '$vuetify.dataFooter.itemsPerPageAll'
|
|
22123
|
+
},
|
|
22124
|
+
showFirstLastPage: Boolean,
|
|
22125
|
+
showCurrentPage: Boolean,
|
|
22126
|
+
disablePagination: Boolean,
|
|
22127
|
+
disableItemsPerPage: Boolean,
|
|
22128
|
+
pageText: {
|
|
22129
|
+
type: String,
|
|
22130
|
+
default: '$vuetify.dataFooter.pageText'
|
|
22131
|
+
}
|
|
22132
|
+
},
|
|
22133
|
+
computed: {
|
|
22134
|
+
disableNextPageIcon() {
|
|
22135
|
+
return this.options.itemsPerPage <= 0 || this.options.page * this.options.itemsPerPage >= this.pagination.itemsLength || this.pagination.pageStop < 0;
|
|
22136
|
+
},
|
|
22137
|
+
|
|
22138
|
+
computedDataItemsPerPageOptions() {
|
|
22139
|
+
return this.itemsPerPageOptions.map(option => {
|
|
22140
|
+
if (typeof option === 'object') return option;else return this.genDataItemsPerPageOption(option);
|
|
22141
|
+
});
|
|
22142
|
+
}
|
|
22143
|
+
|
|
22144
|
+
},
|
|
22145
|
+
methods: {
|
|
22146
|
+
updateOptions(obj) {
|
|
22147
|
+
this.$emit('update:options', Object.assign({}, this.options, obj));
|
|
22148
|
+
},
|
|
22149
|
+
|
|
22150
|
+
onFirstPage() {
|
|
22151
|
+
this.updateOptions({
|
|
22152
|
+
page: 1
|
|
22153
|
+
});
|
|
22154
|
+
},
|
|
22155
|
+
|
|
22156
|
+
onPreviousPage() {
|
|
22157
|
+
this.updateOptions({
|
|
22158
|
+
page: this.options.page - 1
|
|
22159
|
+
});
|
|
22160
|
+
},
|
|
22161
|
+
|
|
22162
|
+
onNextPage() {
|
|
22163
|
+
this.updateOptions({
|
|
22164
|
+
page: this.options.page + 1
|
|
22165
|
+
});
|
|
22166
|
+
},
|
|
22167
|
+
|
|
22168
|
+
onLastPage() {
|
|
22169
|
+
this.updateOptions({
|
|
22170
|
+
page: this.pagination.pageCount
|
|
22171
|
+
});
|
|
22172
|
+
},
|
|
22173
|
+
|
|
22174
|
+
onChangeItemsPerPage(itemsPerPage) {
|
|
22175
|
+
this.updateOptions({
|
|
22176
|
+
itemsPerPage,
|
|
22177
|
+
page: 1
|
|
22178
|
+
});
|
|
22179
|
+
},
|
|
22180
|
+
|
|
22181
|
+
genDataItemsPerPageOption(option) {
|
|
22182
|
+
return {
|
|
22183
|
+
text: option === -1 ? this.$vuetify.lang.t(this.itemsPerPageAllText) : String(option),
|
|
22184
|
+
value: option
|
|
22185
|
+
};
|
|
22186
|
+
},
|
|
22187
|
+
|
|
22188
|
+
genItemsPerPageSelect() {
|
|
22189
|
+
let value = this.options.itemsPerPage;
|
|
22190
|
+
const computedIPPO = this.computedDataItemsPerPageOptions;
|
|
22191
|
+
if (computedIPPO.length <= 1) return null;
|
|
22192
|
+
if (!computedIPPO.find(ippo => ippo.value === value)) value = computedIPPO[0];
|
|
22193
|
+
return this.$createElement('div', {
|
|
22194
|
+
staticClass: 'v-data-footer__select'
|
|
22195
|
+
}, [this.$vuetify.lang.t(this.itemsPerPageText), this.$createElement(VSelect_VSelect, {
|
|
22196
|
+
attrs: {
|
|
22197
|
+
'aria-label': this.$vuetify.lang.t(this.itemsPerPageText)
|
|
22198
|
+
},
|
|
22199
|
+
props: {
|
|
22200
|
+
disabled: this.disableItemsPerPage,
|
|
22201
|
+
items: computedIPPO,
|
|
22202
|
+
value,
|
|
22203
|
+
hideDetails: true,
|
|
22204
|
+
auto: true,
|
|
22205
|
+
minWidth: '75px'
|
|
22206
|
+
},
|
|
22207
|
+
on: {
|
|
22208
|
+
input: this.onChangeItemsPerPage
|
|
22209
|
+
}
|
|
22210
|
+
})]);
|
|
22211
|
+
},
|
|
22212
|
+
|
|
22213
|
+
genPaginationInfo() {
|
|
22214
|
+
let children = ['–'];
|
|
22215
|
+
const itemsLength = this.pagination.itemsLength;
|
|
22216
|
+
let pageStart = this.pagination.pageStart;
|
|
22217
|
+
let pageStop = this.pagination.pageStop;
|
|
22218
|
+
|
|
22219
|
+
if (this.pagination.itemsLength && this.pagination.itemsPerPage) {
|
|
22220
|
+
pageStart = this.pagination.pageStart + 1;
|
|
22221
|
+
pageStop = itemsLength < this.pagination.pageStop || this.pagination.pageStop < 0 ? itemsLength : this.pagination.pageStop;
|
|
22222
|
+
children = this.$scopedSlots['page-text'] ? [this.$scopedSlots['page-text']({
|
|
22223
|
+
pageStart,
|
|
22224
|
+
pageStop,
|
|
22225
|
+
itemsLength
|
|
22226
|
+
})] : [this.$vuetify.lang.t(this.pageText, pageStart, pageStop, itemsLength)];
|
|
22227
|
+
} else if (this.$scopedSlots['page-text']) {
|
|
22228
|
+
children = [this.$scopedSlots['page-text']({
|
|
22229
|
+
pageStart,
|
|
22230
|
+
pageStop,
|
|
22231
|
+
itemsLength
|
|
22232
|
+
})];
|
|
22233
|
+
}
|
|
22234
|
+
|
|
22235
|
+
return this.$createElement('div', {
|
|
22236
|
+
class: 'v-data-footer__pagination'
|
|
22237
|
+
}, children);
|
|
22238
|
+
},
|
|
22239
|
+
|
|
22240
|
+
genIcon(click, disabled, label, icon) {
|
|
22241
|
+
return this.$createElement(components_VBtn, {
|
|
22242
|
+
props: {
|
|
22243
|
+
disabled: disabled || this.disablePagination,
|
|
22244
|
+
icon: true,
|
|
22245
|
+
text: true
|
|
22246
|
+
},
|
|
22247
|
+
on: {
|
|
22248
|
+
click
|
|
22249
|
+
},
|
|
22250
|
+
attrs: {
|
|
22251
|
+
'aria-label': label
|
|
22252
|
+
}
|
|
22253
|
+
}, [this.$createElement(components_VIcon, icon)]);
|
|
22254
|
+
},
|
|
22255
|
+
|
|
22256
|
+
genIcons() {
|
|
22257
|
+
const before = [];
|
|
22258
|
+
const after = [];
|
|
22259
|
+
before.push(this.genIcon(this.onPreviousPage, this.options.page === 1, this.$vuetify.lang.t('$vuetify.dataFooter.prevPage'), this.$vuetify.rtl ? this.nextIcon : this.prevIcon));
|
|
22260
|
+
after.push(this.genIcon(this.onNextPage, this.disableNextPageIcon, this.$vuetify.lang.t('$vuetify.dataFooter.nextPage'), this.$vuetify.rtl ? this.prevIcon : this.nextIcon));
|
|
22261
|
+
|
|
22262
|
+
if (this.showFirstLastPage) {
|
|
22263
|
+
before.unshift(this.genIcon(this.onFirstPage, this.options.page === 1, this.$vuetify.lang.t('$vuetify.dataFooter.firstPage'), this.$vuetify.rtl ? this.lastIcon : this.firstIcon));
|
|
22264
|
+
after.push(this.genIcon(this.onLastPage, this.options.page >= this.pagination.pageCount || this.options.itemsPerPage === -1, this.$vuetify.lang.t('$vuetify.dataFooter.lastPage'), this.$vuetify.rtl ? this.firstIcon : this.lastIcon));
|
|
22265
|
+
}
|
|
22266
|
+
|
|
22267
|
+
return [this.$createElement('div', {
|
|
22268
|
+
staticClass: 'v-data-footer__icons-before'
|
|
22269
|
+
}, before), this.showCurrentPage && this.$createElement('span', [this.options.page.toString()]), this.$createElement('div', {
|
|
22270
|
+
staticClass: 'v-data-footer__icons-after'
|
|
22271
|
+
}, after)];
|
|
22272
|
+
}
|
|
22273
|
+
|
|
22274
|
+
},
|
|
22275
|
+
|
|
22276
|
+
render() {
|
|
22277
|
+
return this.$createElement('div', {
|
|
22278
|
+
staticClass: 'v-data-footer'
|
|
22279
|
+
}, [getSlot(this, 'prepend'), this.genItemsPerPageSelect(), this.genPaginationInfo(), this.genIcons()]);
|
|
22280
|
+
}
|
|
22281
|
+
|
|
22282
|
+
}));
|
|
22283
|
+
//# sourceMappingURL=VDataFooter.js.map
|
|
22284
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataIterator/VDataIterator.js
|
|
22285
|
+
// Components
|
|
22286
|
+
|
|
22287
|
+
// Mixins
|
|
22288
|
+
|
|
22289
|
+
|
|
22290
|
+
// Helpers
|
|
22291
|
+
|
|
22292
|
+
|
|
22293
|
+
|
|
22294
|
+
|
|
22295
|
+
/* @vue/component */
|
|
22296
|
+
|
|
22297
|
+
/* harmony default export */ var VDataIterator = (mixins(mobile, themeable).extend({
|
|
22298
|
+
name: 'v-data-iterator',
|
|
22299
|
+
props: { ...VData.options.props,
|
|
22300
|
+
itemKey: {
|
|
22301
|
+
type: String,
|
|
22302
|
+
default: 'id'
|
|
22303
|
+
},
|
|
22304
|
+
value: {
|
|
22305
|
+
type: Array,
|
|
22306
|
+
default: () => []
|
|
22307
|
+
},
|
|
22308
|
+
singleSelect: Boolean,
|
|
22309
|
+
expanded: {
|
|
22310
|
+
type: Array,
|
|
22311
|
+
default: () => []
|
|
22312
|
+
},
|
|
22313
|
+
mobileBreakpoint: { ...mobile.options.props.mobileBreakpoint,
|
|
22314
|
+
default: 600
|
|
22315
|
+
},
|
|
22316
|
+
singleExpand: Boolean,
|
|
22317
|
+
loading: [Boolean, String],
|
|
22318
|
+
noResultsText: {
|
|
22319
|
+
type: String,
|
|
22320
|
+
default: '$vuetify.dataIterator.noResultsText'
|
|
22321
|
+
},
|
|
22322
|
+
noDataText: {
|
|
22323
|
+
type: String,
|
|
22324
|
+
default: '$vuetify.noDataText'
|
|
22325
|
+
},
|
|
22326
|
+
loadingText: {
|
|
22327
|
+
type: String,
|
|
22328
|
+
default: '$vuetify.dataIterator.loadingText'
|
|
22329
|
+
},
|
|
22330
|
+
hideDefaultFooter: Boolean,
|
|
22331
|
+
footerProps: Object,
|
|
22332
|
+
selectableKey: {
|
|
22333
|
+
type: String,
|
|
22334
|
+
default: 'isSelectable'
|
|
22335
|
+
}
|
|
22336
|
+
},
|
|
22337
|
+
data: () => ({
|
|
22338
|
+
selection: {},
|
|
22339
|
+
expansion: {},
|
|
22340
|
+
internalCurrentItems: [],
|
|
22341
|
+
shiftKeyDown: false,
|
|
22342
|
+
lastEntry: -1
|
|
22343
|
+
}),
|
|
22344
|
+
computed: {
|
|
22345
|
+
everyItem() {
|
|
22346
|
+
return !!this.selectableItems.length && this.selectableItems.every(i => this.isSelected(i));
|
|
22347
|
+
},
|
|
22348
|
+
|
|
22349
|
+
someItems() {
|
|
22350
|
+
return this.selectableItems.some(i => this.isSelected(i));
|
|
22351
|
+
},
|
|
22352
|
+
|
|
22353
|
+
sanitizedFooterProps() {
|
|
22354
|
+
return camelizeObjectKeys(this.footerProps);
|
|
22355
|
+
},
|
|
22356
|
+
|
|
22357
|
+
selectableItems() {
|
|
22358
|
+
return this.internalCurrentItems.filter(item => this.isSelectable(item));
|
|
22359
|
+
}
|
|
22360
|
+
|
|
22361
|
+
},
|
|
22362
|
+
watch: {
|
|
22363
|
+
value: {
|
|
22364
|
+
handler(value) {
|
|
22365
|
+
this.selection = value.reduce((selection, item) => {
|
|
22366
|
+
selection[getObjectValueByPath(item, this.itemKey)] = item;
|
|
22367
|
+
return selection;
|
|
22368
|
+
}, {});
|
|
22369
|
+
},
|
|
22370
|
+
|
|
22371
|
+
immediate: true
|
|
22372
|
+
},
|
|
22373
|
+
|
|
22374
|
+
selection(value, old) {
|
|
22375
|
+
if (deepEqual(Object.keys(value), Object.keys(old))) return;
|
|
22376
|
+
this.$emit('input', Object.values(value));
|
|
22377
|
+
},
|
|
22378
|
+
|
|
22379
|
+
expanded: {
|
|
22380
|
+
handler(value) {
|
|
22381
|
+
this.expansion = value.reduce((expansion, item) => {
|
|
22382
|
+
expansion[getObjectValueByPath(item, this.itemKey)] = true;
|
|
22383
|
+
return expansion;
|
|
22384
|
+
}, {});
|
|
22385
|
+
},
|
|
22386
|
+
|
|
22387
|
+
immediate: true
|
|
22388
|
+
},
|
|
22389
|
+
|
|
22390
|
+
expansion(value, old) {
|
|
22391
|
+
if (deepEqual(value, old)) return;
|
|
22392
|
+
const keys = Object.keys(value).filter(k => value[k]);
|
|
22393
|
+
const expanded = !keys.length ? [] : this.items.filter(i => keys.includes(String(getObjectValueByPath(i, this.itemKey))));
|
|
22394
|
+
this.$emit('update:expanded', expanded);
|
|
22395
|
+
}
|
|
22396
|
+
|
|
22397
|
+
},
|
|
22398
|
+
|
|
22399
|
+
created() {
|
|
22400
|
+
const breakingProps = [['disable-initial-sort', 'sort-by'], ['filter', 'custom-filter'], ['pagination', 'options'], ['total-items', 'server-items-length'], ['hide-actions', 'hide-default-footer'], ['rows-per-page-items', 'footer-props.items-per-page-options'], ['rows-per-page-text', 'footer-props.items-per-page-text'], ['prev-icon', 'footer-props.prev-icon'], ['next-icon', 'footer-props.next-icon']];
|
|
22401
|
+
/* istanbul ignore next */
|
|
22402
|
+
|
|
22403
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
22404
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this);
|
|
22405
|
+
});
|
|
22406
|
+
const removedProps = ['expand', 'content-class', 'content-props', 'content-tag'];
|
|
22407
|
+
/* istanbul ignore next */
|
|
22408
|
+
|
|
22409
|
+
removedProps.forEach(prop => {
|
|
22410
|
+
if (this.$attrs.hasOwnProperty(prop)) removed(prop);
|
|
22411
|
+
});
|
|
22412
|
+
},
|
|
22413
|
+
|
|
22414
|
+
mounted() {
|
|
22415
|
+
window.addEventListener('keydown', this.onKeyDown);
|
|
22416
|
+
window.addEventListener('keyup', this.onKeyUp);
|
|
22417
|
+
},
|
|
22418
|
+
|
|
22419
|
+
beforeDestroy() {
|
|
22420
|
+
window.removeEventListener('keydown', this.onKeyDown);
|
|
22421
|
+
window.removeEventListener('keyup', this.onKeyUp);
|
|
22422
|
+
},
|
|
22423
|
+
|
|
22424
|
+
methods: {
|
|
22425
|
+
onKeyDown(e) {
|
|
22426
|
+
if (e.keyCode !== keyCodes.shift) return;
|
|
22427
|
+
this.shiftKeyDown = true;
|
|
22428
|
+
},
|
|
22429
|
+
|
|
22430
|
+
onKeyUp(e) {
|
|
22431
|
+
if (e.keyCode !== keyCodes.shift) return;
|
|
22432
|
+
this.shiftKeyDown = false;
|
|
22433
|
+
},
|
|
22434
|
+
|
|
22435
|
+
toggleSelectAll(value) {
|
|
22436
|
+
const selection = Object.assign({}, this.selection);
|
|
22437
|
+
|
|
22438
|
+
for (let i = 0; i < this.selectableItems.length; i++) {
|
|
22439
|
+
const item = this.selectableItems[i];
|
|
22440
|
+
if (!this.isSelectable(item)) continue;
|
|
22441
|
+
const key = getObjectValueByPath(item, this.itemKey);
|
|
22442
|
+
if (value) selection[key] = item;else delete selection[key];
|
|
22443
|
+
}
|
|
22444
|
+
|
|
22445
|
+
this.selection = selection;
|
|
22446
|
+
this.$emit('toggle-select-all', {
|
|
22447
|
+
items: this.internalCurrentItems,
|
|
22448
|
+
value
|
|
22449
|
+
});
|
|
22450
|
+
},
|
|
22451
|
+
|
|
22452
|
+
isSelectable(item) {
|
|
22453
|
+
return getObjectValueByPath(item, this.selectableKey) !== false;
|
|
22454
|
+
},
|
|
22455
|
+
|
|
22456
|
+
isSelected(item) {
|
|
22457
|
+
return !!this.selection[getObjectValueByPath(item, this.itemKey)] || false;
|
|
22458
|
+
},
|
|
22459
|
+
|
|
22460
|
+
select(item, value = true, emit = true) {
|
|
22461
|
+
if (!this.isSelectable(item)) return;
|
|
22462
|
+
const selection = this.singleSelect ? {} : Object.assign({}, this.selection);
|
|
22463
|
+
const key = getObjectValueByPath(item, this.itemKey);
|
|
22464
|
+
if (value) selection[key] = item;else delete selection[key];
|
|
22465
|
+
const index = this.selectableItems.findIndex(x => getObjectValueByPath(x, this.itemKey) === key);
|
|
22466
|
+
if (this.lastEntry === -1) this.lastEntry = index;else {
|
|
22467
|
+
const lastEntryKey = getObjectValueByPath(this.selectableItems[this.lastEntry], this.itemKey);
|
|
22468
|
+
const lastEntryKeySelected = Object.keys(this.selection).includes(lastEntryKey.toString());
|
|
22469
|
+
if (this.shiftKeyDown && !this.singleSelect && emit) this.multipleSelect(lastEntryKeySelected, emit, selection, index);
|
|
22470
|
+
}
|
|
22471
|
+
this.lastEntry = index;
|
|
22472
|
+
|
|
22473
|
+
if (this.singleSelect && emit) {
|
|
22474
|
+
const keys = Object.keys(this.selection);
|
|
22475
|
+
const old = keys.length && getObjectValueByPath(this.selection[keys[0]], this.itemKey);
|
|
22476
|
+
old && old !== key && this.$emit('item-selected', {
|
|
22477
|
+
item: this.selection[old],
|
|
22478
|
+
value: false
|
|
22479
|
+
});
|
|
22480
|
+
}
|
|
22481
|
+
|
|
22482
|
+
this.selection = selection;
|
|
22483
|
+
emit && this.$emit('item-selected', {
|
|
22484
|
+
item,
|
|
22485
|
+
value
|
|
22486
|
+
});
|
|
22487
|
+
},
|
|
22488
|
+
|
|
22489
|
+
multipleSelect(value = true, emit = true, selection, index) {
|
|
22490
|
+
const start = index < this.lastEntry ? index : this.lastEntry;
|
|
22491
|
+
const end = index < this.lastEntry ? this.lastEntry : index;
|
|
22492
|
+
|
|
22493
|
+
for (let i = start; i <= end; i++) {
|
|
22494
|
+
const currentItem = this.selectableItems[i];
|
|
22495
|
+
const key = getObjectValueByPath(currentItem, this.itemKey);
|
|
22496
|
+
if (value) selection[key] = currentItem;else delete selection[key];
|
|
22497
|
+
emit && this.$emit('item-selected', {
|
|
22498
|
+
currentItem,
|
|
22499
|
+
value
|
|
22500
|
+
});
|
|
22501
|
+
}
|
|
22502
|
+
},
|
|
22503
|
+
|
|
22504
|
+
isExpanded(item) {
|
|
22505
|
+
return this.expansion[getObjectValueByPath(item, this.itemKey)] || false;
|
|
22506
|
+
},
|
|
22507
|
+
|
|
22508
|
+
expand(item, value = true) {
|
|
22509
|
+
const expansion = this.singleExpand ? {} : Object.assign({}, this.expansion);
|
|
22510
|
+
const key = getObjectValueByPath(item, this.itemKey);
|
|
22511
|
+
if (value) expansion[key] = true;else delete expansion[key];
|
|
22512
|
+
this.expansion = expansion;
|
|
22513
|
+
this.$emit('item-expanded', {
|
|
22514
|
+
item,
|
|
22515
|
+
value
|
|
22516
|
+
});
|
|
22517
|
+
},
|
|
22518
|
+
|
|
22519
|
+
createItemProps(item, index) {
|
|
22520
|
+
return {
|
|
22521
|
+
item,
|
|
22522
|
+
index,
|
|
22523
|
+
select: v => this.select(item, v),
|
|
22524
|
+
isSelected: this.isSelected(item),
|
|
22525
|
+
expand: v => this.expand(item, v),
|
|
22526
|
+
isExpanded: this.isExpanded(item),
|
|
22527
|
+
isMobile: this.isMobile
|
|
22528
|
+
};
|
|
22529
|
+
},
|
|
22530
|
+
|
|
22531
|
+
genEmptyWrapper(content) {
|
|
22532
|
+
return this.$createElement('div', content);
|
|
22533
|
+
},
|
|
22534
|
+
|
|
22535
|
+
genEmpty(originalItemsLength, filteredItemsLength) {
|
|
22536
|
+
if (originalItemsLength === 0 && this.loading) {
|
|
22537
|
+
const loading = this.$slots.loading || this.$vuetify.lang.t(this.loadingText);
|
|
22538
|
+
return this.genEmptyWrapper(loading);
|
|
22539
|
+
} else if (originalItemsLength === 0) {
|
|
22540
|
+
const noData = this.$slots['no-data'] || this.$vuetify.lang.t(this.noDataText);
|
|
22541
|
+
return this.genEmptyWrapper(noData);
|
|
22542
|
+
} else if (filteredItemsLength === 0) {
|
|
22543
|
+
const noResults = this.$slots['no-results'] || this.$vuetify.lang.t(this.noResultsText);
|
|
22544
|
+
return this.genEmptyWrapper(noResults);
|
|
22545
|
+
}
|
|
22546
|
+
|
|
22547
|
+
return null;
|
|
22548
|
+
},
|
|
22549
|
+
|
|
22550
|
+
genItems(props) {
|
|
22551
|
+
const empty = this.genEmpty(props.originalItemsLength, props.pagination.itemsLength);
|
|
22552
|
+
if (empty) return [empty];
|
|
22553
|
+
|
|
22554
|
+
if (this.$scopedSlots.default) {
|
|
22555
|
+
return this.$scopedSlots.default({ ...props,
|
|
22556
|
+
isSelected: this.isSelected,
|
|
22557
|
+
select: this.select,
|
|
22558
|
+
isExpanded: this.isExpanded,
|
|
22559
|
+
isMobile: this.isMobile,
|
|
22560
|
+
expand: this.expand
|
|
22561
|
+
});
|
|
22562
|
+
}
|
|
22563
|
+
|
|
22564
|
+
if (this.$scopedSlots.item) {
|
|
22565
|
+
return props.items.map((item, index) => this.$scopedSlots.item(this.createItemProps(item, index)));
|
|
22566
|
+
}
|
|
22567
|
+
|
|
22568
|
+
return [];
|
|
22569
|
+
},
|
|
22570
|
+
|
|
22571
|
+
genFooter(props) {
|
|
22572
|
+
if (this.hideDefaultFooter) return null;
|
|
22573
|
+
const data = {
|
|
22574
|
+
props: { ...this.sanitizedFooterProps,
|
|
22575
|
+
options: props.options,
|
|
22576
|
+
pagination: props.pagination
|
|
22577
|
+
},
|
|
22578
|
+
on: {
|
|
22579
|
+
'update:options': value => props.updateOptions(value)
|
|
22580
|
+
}
|
|
22581
|
+
};
|
|
22582
|
+
const scopedSlots = getPrefixedScopedSlots('footer.', this.$scopedSlots);
|
|
22583
|
+
return this.$createElement(VDataIterator_VDataFooter, {
|
|
22584
|
+
scopedSlots,
|
|
22585
|
+
...data
|
|
22586
|
+
});
|
|
22587
|
+
},
|
|
22588
|
+
|
|
22589
|
+
genDefaultScopedSlot(props) {
|
|
22590
|
+
const outerProps = { ...props,
|
|
22591
|
+
someItems: this.someItems,
|
|
22592
|
+
everyItem: this.everyItem,
|
|
22593
|
+
toggleSelectAll: this.toggleSelectAll
|
|
22594
|
+
};
|
|
22595
|
+
return this.$createElement('div', {
|
|
22596
|
+
staticClass: 'v-data-iterator'
|
|
22597
|
+
}, [getSlot(this, 'header', outerProps, true), this.genItems(props), this.genFooter(props), getSlot(this, 'footer', outerProps, true)]);
|
|
22598
|
+
}
|
|
22599
|
+
|
|
22600
|
+
},
|
|
22601
|
+
|
|
22602
|
+
render() {
|
|
22603
|
+
return this.$createElement(VData, {
|
|
22604
|
+
props: this.$props,
|
|
22605
|
+
on: {
|
|
22606
|
+
'update:options': (v, old) => !deepEqual(v, old) && this.$emit('update:options', v),
|
|
22607
|
+
'update:page': v => this.$emit('update:page', v),
|
|
22608
|
+
'update:items-per-page': v => this.$emit('update:items-per-page', v),
|
|
22609
|
+
'update:sort-by': v => this.$emit('update:sort-by', v),
|
|
22610
|
+
'update:sort-desc': v => this.$emit('update:sort-desc', v),
|
|
22611
|
+
'update:group-by': v => this.$emit('update:group-by', v),
|
|
22612
|
+
'update:group-desc': v => this.$emit('update:group-desc', v),
|
|
22613
|
+
pagination: (v, old) => !deepEqual(v, old) && this.$emit('pagination', v),
|
|
22614
|
+
'current-items': v => {
|
|
22615
|
+
this.internalCurrentItems = v;
|
|
22616
|
+
this.$emit('current-items', v);
|
|
22617
|
+
},
|
|
22618
|
+
'page-count': v => this.$emit('page-count', v)
|
|
22619
|
+
},
|
|
22620
|
+
scopedSlots: {
|
|
22621
|
+
default: this.genDefaultScopedSlot
|
|
22622
|
+
}
|
|
22623
|
+
});
|
|
22624
|
+
}
|
|
22625
|
+
|
|
22626
|
+
}));
|
|
22627
|
+
//# sourceMappingURL=VDataIterator.js.map
|
|
22628
|
+
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VDataTable/VDataTableHeader.sass
|
|
22629
|
+
var VDataTableHeader = __webpack_require__("f823");
|
|
22630
|
+
|
|
22631
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/mixins/header.js
|
|
22632
|
+
|
|
22633
|
+
|
|
22634
|
+
|
|
22635
|
+
|
|
22636
|
+
/* harmony default export */ var mixins_header = (mixins().extend({
|
|
22637
|
+
// https://github.com/vuejs/vue/issues/6872
|
|
22638
|
+
directives: {
|
|
22639
|
+
ripple: directives_ripple
|
|
22640
|
+
},
|
|
22641
|
+
props: {
|
|
22642
|
+
headers: {
|
|
22643
|
+
type: Array,
|
|
22644
|
+
default: () => []
|
|
22645
|
+
},
|
|
22646
|
+
options: {
|
|
22647
|
+
type: Object,
|
|
22648
|
+
default: () => ({
|
|
22649
|
+
page: 1,
|
|
22650
|
+
itemsPerPage: 10,
|
|
22651
|
+
sortBy: [],
|
|
22652
|
+
sortDesc: [],
|
|
22653
|
+
groupBy: [],
|
|
22654
|
+
groupDesc: [],
|
|
22655
|
+
multiSort: false,
|
|
22656
|
+
mustSort: false
|
|
22657
|
+
})
|
|
22658
|
+
},
|
|
22659
|
+
checkboxColor: String,
|
|
22660
|
+
sortIcon: {
|
|
22661
|
+
type: String,
|
|
22662
|
+
default: '$sort'
|
|
22663
|
+
},
|
|
22664
|
+
everyItem: Boolean,
|
|
22665
|
+
someItems: Boolean,
|
|
22666
|
+
showGroupBy: Boolean,
|
|
22667
|
+
singleSelect: Boolean,
|
|
22668
|
+
disableSort: Boolean
|
|
22669
|
+
},
|
|
22670
|
+
methods: {
|
|
22671
|
+
genSelectAll() {
|
|
22672
|
+
var _this$checkboxColor;
|
|
22673
|
+
|
|
22674
|
+
const data = {
|
|
22675
|
+
props: {
|
|
22676
|
+
value: this.everyItem,
|
|
22677
|
+
indeterminate: !this.everyItem && this.someItems,
|
|
22678
|
+
color: (_this$checkboxColor = this.checkboxColor) != null ? _this$checkboxColor : ''
|
|
22679
|
+
},
|
|
22680
|
+
on: {
|
|
22681
|
+
input: v => this.$emit('toggle-select-all', v)
|
|
22682
|
+
}
|
|
22683
|
+
};
|
|
22684
|
+
|
|
22685
|
+
if (this.$scopedSlots['data-table-select']) {
|
|
22686
|
+
return this.$scopedSlots['data-table-select'](data);
|
|
22687
|
+
}
|
|
22688
|
+
|
|
22689
|
+
return this.$createElement(VCheckbox_VSimpleCheckbox, {
|
|
22690
|
+
staticClass: 'v-data-table__checkbox',
|
|
22691
|
+
...data
|
|
22692
|
+
});
|
|
22693
|
+
},
|
|
22694
|
+
|
|
22695
|
+
genSortIcon() {
|
|
22696
|
+
return this.$createElement(components_VIcon, {
|
|
22697
|
+
staticClass: 'v-data-table-header__icon',
|
|
22698
|
+
props: {
|
|
22699
|
+
size: 18
|
|
22700
|
+
}
|
|
22701
|
+
}, [this.sortIcon]);
|
|
22702
|
+
}
|
|
22703
|
+
|
|
22704
|
+
}
|
|
22705
|
+
}));
|
|
22706
|
+
//# sourceMappingURL=header.js.map
|
|
22707
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/VDataTableHeaderMobile.js
|
|
22708
|
+
|
|
22709
|
+
|
|
22710
|
+
|
|
22711
|
+
|
|
22712
|
+
|
|
22713
|
+
/* harmony default export */ var VDataTableHeaderMobile = (mixins(mixins_header).extend({
|
|
22714
|
+
name: 'v-data-table-header-mobile',
|
|
22715
|
+
props: {
|
|
22716
|
+
sortByText: {
|
|
22717
|
+
type: String,
|
|
22718
|
+
default: '$vuetify.dataTable.sortBy'
|
|
22719
|
+
}
|
|
22720
|
+
},
|
|
22721
|
+
methods: {
|
|
22722
|
+
genSortChip(props) {
|
|
22723
|
+
const children = [props.item.text];
|
|
22724
|
+
const sortIndex = this.options.sortBy.findIndex(k => k === props.item.value);
|
|
22725
|
+
const beingSorted = sortIndex >= 0;
|
|
22726
|
+
const isDesc = this.options.sortDesc[sortIndex];
|
|
22727
|
+
children.push(this.$createElement('div', {
|
|
22728
|
+
staticClass: 'v-chip__close',
|
|
22729
|
+
class: {
|
|
22730
|
+
sortable: true,
|
|
22731
|
+
active: beingSorted,
|
|
22732
|
+
asc: beingSorted && !isDesc,
|
|
22733
|
+
desc: beingSorted && isDesc
|
|
22734
|
+
}
|
|
22735
|
+
}, [this.genSortIcon()]));
|
|
22736
|
+
return this.$createElement(components_VChip, {
|
|
22737
|
+
staticClass: 'sortable',
|
|
22738
|
+
on: {
|
|
22739
|
+
click: e => {
|
|
22740
|
+
e.stopPropagation();
|
|
22741
|
+
this.$emit('sort', props.item.value);
|
|
22742
|
+
}
|
|
22743
|
+
}
|
|
22744
|
+
}, children);
|
|
22745
|
+
},
|
|
22746
|
+
|
|
22747
|
+
genSortSelect(items) {
|
|
22748
|
+
return this.$createElement(VSelect_VSelect, {
|
|
22749
|
+
props: {
|
|
22750
|
+
label: this.$vuetify.lang.t(this.sortByText),
|
|
22751
|
+
items,
|
|
22752
|
+
hideDetails: true,
|
|
22753
|
+
multiple: this.options.multiSort,
|
|
22754
|
+
value: this.options.multiSort ? this.options.sortBy : this.options.sortBy[0],
|
|
22755
|
+
menuProps: {
|
|
22756
|
+
closeOnContentClick: true
|
|
22757
|
+
}
|
|
22758
|
+
},
|
|
22759
|
+
on: {
|
|
22760
|
+
change: v => this.$emit('sort', v)
|
|
22761
|
+
},
|
|
22762
|
+
scopedSlots: {
|
|
22763
|
+
selection: props => this.genSortChip(props)
|
|
22764
|
+
}
|
|
22765
|
+
});
|
|
22766
|
+
}
|
|
22767
|
+
|
|
22768
|
+
},
|
|
22769
|
+
|
|
22770
|
+
render(h) {
|
|
22771
|
+
const children = [];
|
|
22772
|
+
const header = this.headers.find(h => h.value === 'data-table-select');
|
|
22773
|
+
|
|
22774
|
+
if (header && !this.singleSelect) {
|
|
22775
|
+
children.push(this.$createElement('div', {
|
|
22776
|
+
class: ['v-data-table-header-mobile__select', ...wrapInArray(header.class)],
|
|
22777
|
+
attrs: {
|
|
22778
|
+
width: header.width
|
|
22779
|
+
}
|
|
22780
|
+
}, [this.genSelectAll()]));
|
|
22781
|
+
}
|
|
22782
|
+
|
|
22783
|
+
const sortHeaders = this.headers.filter(h => h.sortable !== false && h.value !== 'data-table-select').map(h => ({
|
|
22784
|
+
text: h.text,
|
|
22785
|
+
value: h.value
|
|
22786
|
+
}));
|
|
22787
|
+
|
|
22788
|
+
if (!this.disableSort && sortHeaders.length) {
|
|
22789
|
+
children.push(this.genSortSelect(sortHeaders));
|
|
22790
|
+
}
|
|
22791
|
+
|
|
22792
|
+
const th = h('th', [h('div', {
|
|
22793
|
+
staticClass: 'v-data-table-header-mobile__wrapper'
|
|
22794
|
+
}, children)]);
|
|
22795
|
+
const tr = h('tr', [th]);
|
|
22796
|
+
return h('thead', {
|
|
22797
|
+
staticClass: 'v-data-table-header v-data-table-header-mobile'
|
|
22798
|
+
}, [tr]);
|
|
22799
|
+
}
|
|
22800
|
+
|
|
22801
|
+
}));
|
|
22802
|
+
//# sourceMappingURL=VDataTableHeaderMobile.js.map
|
|
22803
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/VDataTableHeaderDesktop.js
|
|
22804
|
+
|
|
22805
|
+
|
|
22806
|
+
|
|
22807
|
+
/* harmony default export */ var VDataTableHeaderDesktop = (mixins(mixins_header).extend({
|
|
22808
|
+
name: 'v-data-table-header-desktop',
|
|
22809
|
+
methods: {
|
|
22810
|
+
genGroupByToggle(header) {
|
|
22811
|
+
return this.$createElement('span', {
|
|
22812
|
+
on: {
|
|
22813
|
+
click: e => {
|
|
22814
|
+
e.stopPropagation();
|
|
22815
|
+
this.$emit('group', header.value);
|
|
22816
|
+
}
|
|
22817
|
+
}
|
|
22818
|
+
}, ['group']);
|
|
22819
|
+
},
|
|
22820
|
+
|
|
22821
|
+
getAria(beingSorted, isDesc) {
|
|
22822
|
+
const $t = key => this.$vuetify.lang.t(`$vuetify.dataTable.ariaLabel.${key}`);
|
|
22823
|
+
|
|
22824
|
+
let ariaSort = 'none';
|
|
22825
|
+
let ariaLabel = [$t('sortNone'), $t('activateAscending')];
|
|
22826
|
+
|
|
22827
|
+
if (!beingSorted) {
|
|
22828
|
+
return {
|
|
22829
|
+
ariaSort,
|
|
22830
|
+
ariaLabel: ariaLabel.join(' ')
|
|
22831
|
+
};
|
|
22832
|
+
}
|
|
22833
|
+
|
|
22834
|
+
if (isDesc) {
|
|
22835
|
+
ariaSort = 'descending';
|
|
22836
|
+
ariaLabel = [$t('sortDescending'), $t(this.options.mustSort ? 'activateAscending' : 'activateNone')];
|
|
22837
|
+
} else {
|
|
22838
|
+
ariaSort = 'ascending';
|
|
22839
|
+
ariaLabel = [$t('sortAscending'), $t('activateDescending')];
|
|
22840
|
+
}
|
|
22841
|
+
|
|
22842
|
+
return {
|
|
22843
|
+
ariaSort,
|
|
22844
|
+
ariaLabel: ariaLabel.join(' ')
|
|
22845
|
+
};
|
|
22846
|
+
},
|
|
22847
|
+
|
|
22848
|
+
genHeader(header) {
|
|
22849
|
+
const data = {
|
|
22850
|
+
attrs: {
|
|
22851
|
+
role: 'columnheader',
|
|
22852
|
+
scope: 'col',
|
|
22853
|
+
'aria-label': header.text || ''
|
|
22854
|
+
},
|
|
22855
|
+
style: {
|
|
22856
|
+
width: convertToUnit(header.width),
|
|
22857
|
+
minWidth: convertToUnit(header.width)
|
|
22858
|
+
},
|
|
22859
|
+
class: [`text-${header.align || 'start'}`, ...wrapInArray(header.class), header.divider && 'v-data-table__divider'],
|
|
22860
|
+
on: {}
|
|
22861
|
+
};
|
|
22862
|
+
const children = [];
|
|
22863
|
+
|
|
22864
|
+
if (header.value === 'data-table-select' && !this.singleSelect) {
|
|
22865
|
+
return this.$createElement('th', data, [this.genSelectAll()]);
|
|
22866
|
+
}
|
|
22867
|
+
|
|
22868
|
+
children.push(this.$scopedSlots[header.value] ? this.$scopedSlots[header.value]({
|
|
22869
|
+
header
|
|
22870
|
+
}) : this.$createElement('span', [header.text]));
|
|
22871
|
+
|
|
22872
|
+
if (!this.disableSort && (header.sortable || !header.hasOwnProperty('sortable'))) {
|
|
22873
|
+
data.on.click = () => this.$emit('sort', header.value);
|
|
22874
|
+
|
|
22875
|
+
const sortIndex = this.options.sortBy.findIndex(k => k === header.value);
|
|
22876
|
+
const beingSorted = sortIndex >= 0;
|
|
22877
|
+
const isDesc = this.options.sortDesc[sortIndex];
|
|
22878
|
+
data.class.push('sortable');
|
|
22879
|
+
const {
|
|
22880
|
+
ariaLabel,
|
|
22881
|
+
ariaSort
|
|
22882
|
+
} = this.getAria(beingSorted, isDesc);
|
|
22883
|
+
data.attrs['aria-label'] += `${header.text ? ': ' : ''}${ariaLabel}`;
|
|
22884
|
+
data.attrs['aria-sort'] = ariaSort;
|
|
22885
|
+
|
|
22886
|
+
if (beingSorted) {
|
|
22887
|
+
data.class.push('active');
|
|
22888
|
+
data.class.push(isDesc ? 'desc' : 'asc');
|
|
22889
|
+
}
|
|
22890
|
+
|
|
22891
|
+
if (header.align === 'end') children.unshift(this.genSortIcon());else children.push(this.genSortIcon());
|
|
22892
|
+
|
|
22893
|
+
if (this.options.multiSort && beingSorted) {
|
|
22894
|
+
children.push(this.$createElement('span', {
|
|
22895
|
+
class: 'v-data-table-header__sort-badge'
|
|
22896
|
+
}, [String(sortIndex + 1)]));
|
|
22897
|
+
}
|
|
22898
|
+
}
|
|
22899
|
+
|
|
22900
|
+
if (this.showGroupBy && header.groupable !== false) children.push(this.genGroupByToggle(header));
|
|
22901
|
+
return this.$createElement('th', data, children);
|
|
22902
|
+
}
|
|
22903
|
+
|
|
22904
|
+
},
|
|
22905
|
+
|
|
22906
|
+
render() {
|
|
22907
|
+
return this.$createElement('thead', {
|
|
22908
|
+
staticClass: 'v-data-table-header'
|
|
22909
|
+
}, [this.$createElement('tr', this.headers.map(header => this.genHeader(header)))]);
|
|
22910
|
+
}
|
|
22911
|
+
|
|
22912
|
+
}));
|
|
22913
|
+
//# sourceMappingURL=VDataTableHeaderDesktop.js.map
|
|
22914
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/dedupeModelListeners.js
|
|
22915
|
+
/**
|
|
22916
|
+
* Removes duplicate `@input` listeners when
|
|
22917
|
+
* using v-model with functional components
|
|
22918
|
+
*
|
|
22919
|
+
* @see https://github.com/vuetifyjs/vuetify/issues/4460
|
|
22920
|
+
*/
|
|
22921
|
+
function dedupeModelListeners(data) {
|
|
22922
|
+
if (data.model && data.on && data.on.input) {
|
|
22923
|
+
if (Array.isArray(data.on.input)) {
|
|
22924
|
+
const i = data.on.input.indexOf(data.model.callback);
|
|
22925
|
+
if (i > -1) data.on.input.splice(i, 1);
|
|
22926
|
+
} else {
|
|
22927
|
+
delete data.on.input;
|
|
22928
|
+
}
|
|
22929
|
+
}
|
|
22930
|
+
}
|
|
22931
|
+
//# sourceMappingURL=dedupeModelListeners.js.map
|
|
22932
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/rebuildFunctionalSlots.js
|
|
22933
|
+
function rebuildFunctionalSlots(slots, h) {
|
|
22934
|
+
const children = [];
|
|
22935
|
+
|
|
22936
|
+
for (const slot in slots) {
|
|
22937
|
+
if (slots.hasOwnProperty(slot)) {
|
|
22938
|
+
children.push(h('template', {
|
|
22939
|
+
slot
|
|
22940
|
+
}, slots[slot]));
|
|
22941
|
+
}
|
|
22942
|
+
}
|
|
22943
|
+
|
|
22944
|
+
return children;
|
|
22945
|
+
}
|
|
22946
|
+
//# sourceMappingURL=rebuildFunctionalSlots.js.map
|
|
22947
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/VDataTableHeader.js
|
|
22948
|
+
// Styles
|
|
22949
|
+
// Components
|
|
22950
|
+
|
|
22951
|
+
|
|
22952
|
+
// Mixins
|
|
22953
|
+
|
|
22954
|
+
// Utilities
|
|
22955
|
+
|
|
22956
|
+
|
|
22957
|
+
|
|
22958
|
+
// Types
|
|
22959
|
+
|
|
22960
|
+
|
|
22961
|
+
/* @vue/component */
|
|
22962
|
+
|
|
22963
|
+
/* harmony default export */ var VDataTable_VDataTableHeader = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
22964
|
+
name: 'v-data-table-header',
|
|
22965
|
+
functional: true,
|
|
22966
|
+
props: { ...mixins_header.options.props,
|
|
22967
|
+
mobile: Boolean
|
|
22968
|
+
},
|
|
22969
|
+
|
|
22970
|
+
render(h, {
|
|
22971
|
+
props,
|
|
22972
|
+
data,
|
|
22973
|
+
slots
|
|
22974
|
+
}) {
|
|
22975
|
+
dedupeModelListeners(data);
|
|
22976
|
+
const children = rebuildFunctionalSlots(slots(), h);
|
|
22977
|
+
data = mergeData(data, {
|
|
22978
|
+
props
|
|
22979
|
+
});
|
|
22980
|
+
|
|
22981
|
+
if (props.mobile) {
|
|
22982
|
+
return h(VDataTableHeaderMobile, data, children);
|
|
22983
|
+
} else {
|
|
22984
|
+
return h(VDataTableHeaderDesktop, data, children);
|
|
22985
|
+
}
|
|
22986
|
+
}
|
|
22987
|
+
|
|
22988
|
+
}));
|
|
22989
|
+
//# sourceMappingURL=VDataTableHeader.js.map
|
|
22990
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/Row.js
|
|
22991
|
+
// Types
|
|
22992
|
+
// Utils
|
|
22993
|
+
|
|
22994
|
+
|
|
22995
|
+
/* harmony default export */ var Row = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
22996
|
+
name: 'row',
|
|
22997
|
+
functional: true,
|
|
22998
|
+
props: {
|
|
22999
|
+
headers: Array,
|
|
23000
|
+
index: Number,
|
|
23001
|
+
item: Object,
|
|
23002
|
+
rtl: Boolean
|
|
23003
|
+
},
|
|
23004
|
+
|
|
23005
|
+
render(h, {
|
|
23006
|
+
props,
|
|
23007
|
+
slots,
|
|
23008
|
+
data
|
|
23009
|
+
}) {
|
|
23010
|
+
const computedSlots = slots();
|
|
23011
|
+
const columns = props.headers.map(header => {
|
|
23012
|
+
const children = [];
|
|
23013
|
+
const value = getObjectValueByPath(props.item, header.value);
|
|
23014
|
+
const slotName = header.value;
|
|
23015
|
+
const scopedSlot = data.scopedSlots && data.scopedSlots[slotName];
|
|
23016
|
+
const regularSlot = computedSlots[slotName];
|
|
23017
|
+
|
|
23018
|
+
if (scopedSlot) {
|
|
23019
|
+
children.push(scopedSlot({
|
|
23020
|
+
item: props.item,
|
|
23021
|
+
isMobile: false,
|
|
23022
|
+
header,
|
|
23023
|
+
index: props.index,
|
|
23024
|
+
value
|
|
23025
|
+
}));
|
|
23026
|
+
} else if (regularSlot) {
|
|
23027
|
+
children.push(regularSlot);
|
|
23028
|
+
} else {
|
|
23029
|
+
children.push(value == null ? value : String(value));
|
|
23030
|
+
}
|
|
23031
|
+
|
|
23032
|
+
const textAlign = `text-${header.align || 'start'}`;
|
|
23033
|
+
return h('td', {
|
|
23034
|
+
class: [textAlign, header.cellClass, {
|
|
23035
|
+
'v-data-table__divider': header.divider
|
|
23036
|
+
}]
|
|
23037
|
+
}, children);
|
|
23038
|
+
});
|
|
23039
|
+
return h('tr', data, columns);
|
|
23040
|
+
}
|
|
23041
|
+
|
|
23042
|
+
}));
|
|
23043
|
+
//# sourceMappingURL=Row.js.map
|
|
23044
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/RowGroup.js
|
|
23045
|
+
|
|
23046
|
+
/* harmony default export */ var RowGroup = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
23047
|
+
name: 'row-group',
|
|
23048
|
+
functional: true,
|
|
23049
|
+
props: {
|
|
23050
|
+
value: {
|
|
23051
|
+
type: Boolean,
|
|
23052
|
+
default: true
|
|
23053
|
+
},
|
|
23054
|
+
headerClass: {
|
|
23055
|
+
type: String,
|
|
23056
|
+
default: 'v-row-group__header'
|
|
23057
|
+
},
|
|
23058
|
+
contentClass: String,
|
|
23059
|
+
summaryClass: {
|
|
23060
|
+
type: String,
|
|
23061
|
+
default: 'v-row-group__summary'
|
|
23062
|
+
}
|
|
23063
|
+
},
|
|
23064
|
+
|
|
23065
|
+
render(h, {
|
|
23066
|
+
slots,
|
|
23067
|
+
props
|
|
23068
|
+
}) {
|
|
23069
|
+
const computedSlots = slots();
|
|
23070
|
+
const children = [];
|
|
23071
|
+
|
|
23072
|
+
if (computedSlots['column.header']) {
|
|
23073
|
+
children.push(h('tr', {
|
|
23074
|
+
staticClass: props.headerClass
|
|
23075
|
+
}, computedSlots['column.header']));
|
|
23076
|
+
} else if (computedSlots['row.header']) {
|
|
23077
|
+
children.push(...computedSlots['row.header']);
|
|
23078
|
+
}
|
|
23079
|
+
|
|
23080
|
+
if (computedSlots['row.content'] && props.value) children.push(...computedSlots['row.content']);
|
|
23081
|
+
|
|
23082
|
+
if (computedSlots['column.summary']) {
|
|
23083
|
+
children.push(h('tr', {
|
|
23084
|
+
staticClass: props.summaryClass
|
|
23085
|
+
}, computedSlots['column.summary']));
|
|
23086
|
+
} else if (computedSlots['row.summary']) {
|
|
23087
|
+
children.push(...computedSlots['row.summary']);
|
|
23088
|
+
}
|
|
23089
|
+
|
|
23090
|
+
return children;
|
|
23091
|
+
}
|
|
23092
|
+
|
|
23093
|
+
}));
|
|
23094
|
+
//# sourceMappingURL=RowGroup.js.map
|
|
23095
|
+
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VDataTable/VSimpleTable.sass
|
|
23096
|
+
var VSimpleTable = __webpack_require__("8b37");
|
|
23097
|
+
|
|
23098
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/VSimpleTable.js
|
|
23099
|
+
|
|
23100
|
+
|
|
23101
|
+
|
|
23102
|
+
|
|
23103
|
+
/* harmony default export */ var VDataTable_VSimpleTable = (mixins(themeable).extend({
|
|
23104
|
+
name: 'v-simple-table',
|
|
23105
|
+
props: {
|
|
23106
|
+
dense: Boolean,
|
|
23107
|
+
fixedHeader: Boolean,
|
|
23108
|
+
height: [Number, String]
|
|
23109
|
+
},
|
|
23110
|
+
computed: {
|
|
23111
|
+
classes() {
|
|
23112
|
+
return {
|
|
23113
|
+
'v-data-table--dense': this.dense,
|
|
23114
|
+
'v-data-table--fixed-height': !!this.height && !this.fixedHeader,
|
|
23115
|
+
'v-data-table--fixed-header': this.fixedHeader,
|
|
23116
|
+
'v-data-table--has-top': !!this.$slots.top,
|
|
23117
|
+
'v-data-table--has-bottom': !!this.$slots.bottom,
|
|
23118
|
+
...this.themeClasses
|
|
23119
|
+
};
|
|
23120
|
+
}
|
|
23121
|
+
|
|
23122
|
+
},
|
|
23123
|
+
methods: {
|
|
23124
|
+
genWrapper() {
|
|
23125
|
+
return this.$slots.wrapper || this.$createElement('div', {
|
|
23126
|
+
staticClass: 'v-data-table__wrapper',
|
|
23127
|
+
style: {
|
|
23128
|
+
height: convertToUnit(this.height)
|
|
23129
|
+
}
|
|
23130
|
+
}, [this.$createElement('table', this.$slots.default)]);
|
|
23131
|
+
}
|
|
23132
|
+
|
|
23133
|
+
},
|
|
23134
|
+
|
|
23135
|
+
render(h) {
|
|
23136
|
+
return h('div', {
|
|
23137
|
+
staticClass: 'v-data-table',
|
|
23138
|
+
class: this.classes
|
|
23139
|
+
}, [this.$slots.top, this.genWrapper(), this.$slots.bottom]);
|
|
23140
|
+
}
|
|
23141
|
+
|
|
23142
|
+
}));
|
|
23143
|
+
//# sourceMappingURL=VSimpleTable.js.map
|
|
23144
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/MobileRow.js
|
|
23145
|
+
|
|
23146
|
+
|
|
23147
|
+
/* harmony default export */ var MobileRow = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
23148
|
+
name: 'row',
|
|
23149
|
+
functional: true,
|
|
23150
|
+
props: {
|
|
23151
|
+
headers: Array,
|
|
23152
|
+
hideDefaultHeader: Boolean,
|
|
23153
|
+
index: Number,
|
|
23154
|
+
item: Object,
|
|
23155
|
+
rtl: Boolean
|
|
23156
|
+
},
|
|
23157
|
+
|
|
23158
|
+
render(h, {
|
|
23159
|
+
props,
|
|
23160
|
+
slots,
|
|
23161
|
+
data
|
|
23162
|
+
}) {
|
|
23163
|
+
const computedSlots = slots();
|
|
23164
|
+
const columns = props.headers.map(header => {
|
|
23165
|
+
const classes = {
|
|
23166
|
+
'v-data-table__mobile-row': true
|
|
23167
|
+
};
|
|
23168
|
+
const children = [];
|
|
23169
|
+
const value = getObjectValueByPath(props.item, header.value);
|
|
23170
|
+
const slotName = header.value;
|
|
23171
|
+
const scopedSlot = data.scopedSlots && data.scopedSlots[slotName];
|
|
23172
|
+
const regularSlot = computedSlots[slotName];
|
|
23173
|
+
|
|
23174
|
+
if (scopedSlot) {
|
|
23175
|
+
children.push(scopedSlot({
|
|
23176
|
+
item: props.item,
|
|
23177
|
+
isMobile: true,
|
|
23178
|
+
header,
|
|
23179
|
+
index: props.index,
|
|
23180
|
+
value
|
|
23181
|
+
}));
|
|
23182
|
+
} else if (regularSlot) {
|
|
23183
|
+
children.push(regularSlot);
|
|
23184
|
+
} else {
|
|
23185
|
+
children.push(value == null ? value : String(value));
|
|
23186
|
+
}
|
|
23187
|
+
|
|
23188
|
+
const mobileRowChildren = [h('div', {
|
|
23189
|
+
staticClass: 'v-data-table__mobile-row__cell'
|
|
23190
|
+
}, children)];
|
|
23191
|
+
|
|
23192
|
+
if (header.value !== 'dataTableSelect' && !props.hideDefaultHeader) {
|
|
23193
|
+
mobileRowChildren.unshift(h('div', {
|
|
23194
|
+
staticClass: 'v-data-table__mobile-row__header'
|
|
23195
|
+
}, [header.text]));
|
|
23196
|
+
}
|
|
23197
|
+
|
|
23198
|
+
return h('td', {
|
|
23199
|
+
class: classes
|
|
23200
|
+
}, mobileRowChildren);
|
|
23201
|
+
});
|
|
23202
|
+
return h('tr', { ...data,
|
|
23203
|
+
staticClass: 'v-data-table__mobile-table-row'
|
|
23204
|
+
}, columns);
|
|
23205
|
+
}
|
|
23206
|
+
|
|
23207
|
+
}));
|
|
23208
|
+
//# sourceMappingURL=MobileRow.js.map
|
|
23209
|
+
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDataTable/VDataTable.js
|
|
23210
|
+
// Components
|
|
23211
|
+
|
|
23212
|
+
|
|
23213
|
+
|
|
23214
|
+
|
|
23215
|
+
// import VVirtualTable from './VVirtualTable'
|
|
23216
|
+
|
|
23217
|
+
|
|
23218
|
+
|
|
23219
|
+
|
|
23220
|
+
|
|
23221
|
+
|
|
23222
|
+
// Mixins
|
|
23223
|
+
|
|
23224
|
+
// Directives
|
|
23225
|
+
|
|
23226
|
+
// Helpers
|
|
23227
|
+
|
|
23228
|
+
|
|
23229
|
+
|
|
23230
|
+
|
|
23231
|
+
|
|
23232
|
+
|
|
23233
|
+
function filterFn(item, search, filter) {
|
|
23234
|
+
return header => {
|
|
23235
|
+
const value = getObjectValueByPath(item, header.value);
|
|
23236
|
+
return header.filter ? header.filter(value, search, item) : filter(value, search, item);
|
|
23237
|
+
};
|
|
23238
|
+
}
|
|
23239
|
+
|
|
23240
|
+
function searchTableItems(items, search, headersWithCustomFilters, headersWithoutCustomFilters, customFilter) {
|
|
23241
|
+
search = typeof search === 'string' ? search.trim() : null;
|
|
23242
|
+
return items.filter(item => {
|
|
23243
|
+
// Headers with custom filters are evaluated whether or not a search term has been provided.
|
|
23244
|
+
// We need to match every filter to be included in the results.
|
|
23245
|
+
const matchesColumnFilters = headersWithCustomFilters.every(filterFn(item, search, defaultFilter)); // Headers without custom filters are only filtered by the `search` property if it is defined.
|
|
23246
|
+
// We only need a single column to match the search term to be included in the results.
|
|
23247
|
+
|
|
23248
|
+
const matchesSearchTerm = !search || headersWithoutCustomFilters.some(filterFn(item, search, customFilter));
|
|
23249
|
+
return matchesColumnFilters && matchesSearchTerm;
|
|
23250
|
+
});
|
|
23251
|
+
}
|
|
23252
|
+
/* @vue/component */
|
|
23253
|
+
|
|
23254
|
+
|
|
23255
|
+
/* harmony default export */ var VDataTable_VDataTable = (mixins(VDataIterator, loadable).extend({
|
|
23256
|
+
name: 'v-data-table',
|
|
23257
|
+
// https://github.com/vuejs/vue/issues/6872
|
|
23258
|
+
directives: {
|
|
23259
|
+
ripple: directives_ripple
|
|
23260
|
+
},
|
|
23261
|
+
props: {
|
|
23262
|
+
headers: {
|
|
23263
|
+
type: Array,
|
|
23264
|
+
default: () => []
|
|
23265
|
+
},
|
|
23266
|
+
showSelect: Boolean,
|
|
23267
|
+
checkboxColor: String,
|
|
23268
|
+
showExpand: Boolean,
|
|
23269
|
+
showGroupBy: Boolean,
|
|
23270
|
+
// TODO: Fix
|
|
23271
|
+
// virtualRows: Boolean,
|
|
23272
|
+
height: [Number, String],
|
|
23273
|
+
hideDefaultHeader: Boolean,
|
|
23274
|
+
caption: String,
|
|
23275
|
+
dense: Boolean,
|
|
23276
|
+
headerProps: Object,
|
|
23277
|
+
calculateWidths: Boolean,
|
|
23278
|
+
fixedHeader: Boolean,
|
|
23279
|
+
headersLength: Number,
|
|
23280
|
+
expandIcon: {
|
|
23281
|
+
type: String,
|
|
23282
|
+
default: '$expand'
|
|
23283
|
+
},
|
|
23284
|
+
customFilter: {
|
|
23285
|
+
type: Function,
|
|
23286
|
+
default: defaultFilter
|
|
23287
|
+
},
|
|
23288
|
+
itemClass: {
|
|
23289
|
+
type: [String, Function],
|
|
23290
|
+
default: () => ''
|
|
23291
|
+
},
|
|
23292
|
+
loaderHeight: {
|
|
23293
|
+
type: [Number, String],
|
|
23294
|
+
default: 4
|
|
23295
|
+
}
|
|
23296
|
+
},
|
|
23297
|
+
|
|
23298
|
+
data() {
|
|
23299
|
+
return {
|
|
23300
|
+
internalGroupBy: [],
|
|
23301
|
+
openCache: {},
|
|
23302
|
+
widths: []
|
|
23303
|
+
};
|
|
23304
|
+
},
|
|
23305
|
+
|
|
23306
|
+
computed: {
|
|
23307
|
+
computedHeaders() {
|
|
23308
|
+
if (!this.headers) return [];
|
|
23309
|
+
const headers = this.headers.filter(h => h.value === undefined || !this.internalGroupBy.find(v => v === h.value));
|
|
23310
|
+
const defaultHeader = {
|
|
23311
|
+
text: '',
|
|
23312
|
+
sortable: false,
|
|
23313
|
+
width: '1px'
|
|
23314
|
+
};
|
|
23315
|
+
|
|
23316
|
+
if (this.showSelect) {
|
|
23317
|
+
const index = headers.findIndex(h => h.value === 'data-table-select');
|
|
23318
|
+
if (index < 0) headers.unshift({ ...defaultHeader,
|
|
23319
|
+
value: 'data-table-select'
|
|
23320
|
+
});else headers.splice(index, 1, { ...defaultHeader,
|
|
23321
|
+
...headers[index]
|
|
23322
|
+
});
|
|
23323
|
+
}
|
|
23324
|
+
|
|
23325
|
+
if (this.showExpand) {
|
|
23326
|
+
const index = headers.findIndex(h => h.value === 'data-table-expand');
|
|
23327
|
+
if (index < 0) headers.unshift({ ...defaultHeader,
|
|
23328
|
+
value: 'data-table-expand'
|
|
23329
|
+
});else headers.splice(index, 1, { ...defaultHeader,
|
|
23330
|
+
...headers[index]
|
|
23331
|
+
});
|
|
23332
|
+
}
|
|
23333
|
+
|
|
23334
|
+
return headers;
|
|
23335
|
+
},
|
|
23336
|
+
|
|
23337
|
+
colspanAttrs() {
|
|
23338
|
+
return this.isMobile ? undefined : {
|
|
23339
|
+
colspan: this.headersLength || this.computedHeaders.length
|
|
23340
|
+
};
|
|
23341
|
+
},
|
|
23342
|
+
|
|
23343
|
+
columnSorters() {
|
|
23344
|
+
return this.computedHeaders.reduce((acc, header) => {
|
|
23345
|
+
if (header.sort) acc[header.value] = header.sort;
|
|
23346
|
+
return acc;
|
|
23347
|
+
}, {});
|
|
23348
|
+
},
|
|
23349
|
+
|
|
23350
|
+
headersWithCustomFilters() {
|
|
23351
|
+
return this.headers.filter(header => header.filter && (!header.hasOwnProperty('filterable') || header.filterable === true));
|
|
23352
|
+
},
|
|
23353
|
+
|
|
23354
|
+
headersWithoutCustomFilters() {
|
|
23355
|
+
return this.headers.filter(header => !header.filter && (!header.hasOwnProperty('filterable') || header.filterable === true));
|
|
23356
|
+
},
|
|
23357
|
+
|
|
23358
|
+
sanitizedHeaderProps() {
|
|
23359
|
+
return camelizeObjectKeys(this.headerProps);
|
|
23360
|
+
},
|
|
23361
|
+
|
|
23362
|
+
computedItemsPerPage() {
|
|
23363
|
+
const itemsPerPage = this.options && this.options.itemsPerPage ? this.options.itemsPerPage : this.itemsPerPage;
|
|
23364
|
+
const itemsPerPageOptions = this.sanitizedFooterProps.itemsPerPageOptions;
|
|
23365
|
+
|
|
23366
|
+
if (itemsPerPageOptions && !itemsPerPageOptions.find(item => typeof item === 'number' ? item === itemsPerPage : item.value === itemsPerPage)) {
|
|
23367
|
+
const firstOption = itemsPerPageOptions[0];
|
|
23368
|
+
return typeof firstOption === 'object' ? firstOption.value : firstOption;
|
|
23369
|
+
}
|
|
23370
|
+
|
|
23371
|
+
return itemsPerPage;
|
|
23372
|
+
}
|
|
23373
|
+
|
|
23374
|
+
},
|
|
23375
|
+
|
|
23376
|
+
created() {
|
|
23377
|
+
const breakingProps = [['sort-icon', 'header-props.sort-icon'], ['hide-headers', 'hide-default-header'], ['select-all', 'show-select']];
|
|
23378
|
+
/* istanbul ignore next */
|
|
23379
|
+
|
|
23380
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
23381
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this);
|
|
23382
|
+
});
|
|
23383
|
+
},
|
|
23384
|
+
|
|
23385
|
+
mounted() {
|
|
23386
|
+
// if ((!this.sortBy || !this.sortBy.length) && (!this.options.sortBy || !this.options.sortBy.length)) {
|
|
23387
|
+
// const firstSortable = this.headers.find(h => !('sortable' in h) || !!h.sortable)
|
|
23388
|
+
// if (firstSortable) this.updateOptions({ sortBy: [firstSortable.value], sortDesc: [false] })
|
|
23389
|
+
// }
|
|
23390
|
+
if (this.calculateWidths) {
|
|
23391
|
+
window.addEventListener('resize', this.calcWidths);
|
|
23392
|
+
this.calcWidths();
|
|
23393
|
+
}
|
|
23394
|
+
},
|
|
23395
|
+
|
|
23396
|
+
beforeDestroy() {
|
|
23397
|
+
if (this.calculateWidths) {
|
|
23398
|
+
window.removeEventListener('resize', this.calcWidths);
|
|
23399
|
+
}
|
|
23400
|
+
},
|
|
23401
|
+
|
|
23402
|
+
methods: {
|
|
23403
|
+
calcWidths() {
|
|
23404
|
+
this.widths = Array.from(this.$el.querySelectorAll('th')).map(e => e.clientWidth);
|
|
23405
|
+
},
|
|
23406
|
+
|
|
23407
|
+
customFilterWithColumns(items, search) {
|
|
23408
|
+
return searchTableItems(items, search, this.headersWithCustomFilters, this.headersWithoutCustomFilters, this.customFilter);
|
|
23409
|
+
},
|
|
23410
|
+
|
|
23411
|
+
customSortWithHeaders(items, sortBy, sortDesc, locale) {
|
|
23412
|
+
return this.customSort(items, sortBy, sortDesc, locale, this.columnSorters);
|
|
23413
|
+
},
|
|
23414
|
+
|
|
23415
|
+
createItemProps(item, index) {
|
|
23416
|
+
const props = VDataIterator.options.methods.createItemProps.call(this, item, index);
|
|
23417
|
+
return Object.assign(props, {
|
|
23418
|
+
headers: this.computedHeaders
|
|
23419
|
+
});
|
|
23420
|
+
},
|
|
23421
|
+
|
|
23422
|
+
genCaption(props) {
|
|
23423
|
+
if (this.caption) return [this.$createElement('caption', [this.caption])];
|
|
23424
|
+
return getSlot(this, 'caption', props, true);
|
|
23425
|
+
},
|
|
23426
|
+
|
|
23427
|
+
genColgroup(props) {
|
|
23428
|
+
return this.$createElement('colgroup', this.computedHeaders.map(header => {
|
|
23429
|
+
return this.$createElement('col', {
|
|
23430
|
+
class: {
|
|
23431
|
+
divider: header.divider
|
|
23432
|
+
}
|
|
23433
|
+
});
|
|
23434
|
+
}));
|
|
23435
|
+
},
|
|
23436
|
+
|
|
23437
|
+
genLoading() {
|
|
23438
|
+
const th = this.$createElement('th', {
|
|
23439
|
+
staticClass: 'column',
|
|
23440
|
+
attrs: this.colspanAttrs
|
|
23441
|
+
}, [this.genProgress()]);
|
|
23442
|
+
const tr = this.$createElement('tr', {
|
|
23443
|
+
staticClass: 'v-data-table__progress'
|
|
23444
|
+
}, [th]);
|
|
23445
|
+
return this.$createElement('thead', [tr]);
|
|
23446
|
+
},
|
|
23447
|
+
|
|
23448
|
+
genHeaders(props) {
|
|
23449
|
+
const data = {
|
|
23450
|
+
props: { ...this.sanitizedHeaderProps,
|
|
23451
|
+
headers: this.computedHeaders,
|
|
23452
|
+
options: props.options,
|
|
23453
|
+
mobile: this.isMobile,
|
|
23454
|
+
showGroupBy: this.showGroupBy,
|
|
23455
|
+
checkboxColor: this.checkboxColor,
|
|
23456
|
+
someItems: this.someItems,
|
|
23457
|
+
everyItem: this.everyItem,
|
|
23458
|
+
singleSelect: this.singleSelect,
|
|
23459
|
+
disableSort: this.disableSort
|
|
23460
|
+
},
|
|
23461
|
+
on: {
|
|
23462
|
+
sort: props.sort,
|
|
23463
|
+
group: props.group,
|
|
23464
|
+
'toggle-select-all': this.toggleSelectAll
|
|
23465
|
+
}
|
|
23466
|
+
}; // TODO: rename to 'head'? (thead, tbody, tfoot)
|
|
23467
|
+
|
|
23468
|
+
const children = [getSlot(this, 'header', { ...data,
|
|
23469
|
+
isMobile: this.isMobile
|
|
23470
|
+
})];
|
|
23471
|
+
|
|
23472
|
+
if (!this.hideDefaultHeader) {
|
|
23473
|
+
const scopedSlots = getPrefixedScopedSlots('header.', this.$scopedSlots);
|
|
23474
|
+
children.push(this.$createElement(VDataTable_VDataTableHeader, { ...data,
|
|
23475
|
+
scopedSlots
|
|
23476
|
+
}));
|
|
23477
|
+
}
|
|
23478
|
+
|
|
23479
|
+
if (this.loading) children.push(this.genLoading());
|
|
23480
|
+
return children;
|
|
23481
|
+
},
|
|
23482
|
+
|
|
23483
|
+
genEmptyWrapper(content) {
|
|
23484
|
+
return this.$createElement('tr', {
|
|
23485
|
+
staticClass: 'v-data-table__empty-wrapper'
|
|
23486
|
+
}, [this.$createElement('td', {
|
|
23487
|
+
attrs: this.colspanAttrs
|
|
23488
|
+
}, content)]);
|
|
23489
|
+
},
|
|
23490
|
+
|
|
23491
|
+
genItems(items, props) {
|
|
23492
|
+
const empty = this.genEmpty(props.originalItemsLength, props.pagination.itemsLength);
|
|
23493
|
+
if (empty) return [empty];
|
|
23494
|
+
return props.groupedItems ? this.genGroupedRows(props.groupedItems, props) : this.genRows(items, props);
|
|
23495
|
+
},
|
|
23496
|
+
|
|
23497
|
+
genGroupedRows(groupedItems, props) {
|
|
23498
|
+
return groupedItems.map(group => {
|
|
23499
|
+
if (!this.openCache.hasOwnProperty(group.name)) this.$set(this.openCache, group.name, true);
|
|
23500
|
+
|
|
23501
|
+
if (this.$scopedSlots.group) {
|
|
23502
|
+
return this.$scopedSlots.group({
|
|
23503
|
+
group: group.name,
|
|
23504
|
+
options: props.options,
|
|
23505
|
+
isMobile: this.isMobile,
|
|
23506
|
+
items: group.items,
|
|
23507
|
+
headers: this.computedHeaders
|
|
23508
|
+
});
|
|
23509
|
+
} else {
|
|
23510
|
+
return this.genDefaultGroupedRow(group.name, group.items, props);
|
|
23511
|
+
}
|
|
23512
|
+
});
|
|
23513
|
+
},
|
|
23514
|
+
|
|
23515
|
+
genDefaultGroupedRow(group, items, props) {
|
|
23516
|
+
const isOpen = !!this.openCache[group];
|
|
23517
|
+
const children = [this.$createElement('template', {
|
|
23518
|
+
slot: 'row.content'
|
|
23519
|
+
}, this.genRows(items, props))];
|
|
23520
|
+
|
|
23521
|
+
const toggleFn = () => this.$set(this.openCache, group, !this.openCache[group]);
|
|
23522
|
+
|
|
23523
|
+
const removeFn = () => props.updateOptions({
|
|
23524
|
+
groupBy: [],
|
|
23525
|
+
groupDesc: []
|
|
23526
|
+
});
|
|
23527
|
+
|
|
23528
|
+
if (this.$scopedSlots['group.header']) {
|
|
23529
|
+
children.unshift(this.$createElement('template', {
|
|
23530
|
+
slot: 'column.header'
|
|
23531
|
+
}, [this.$scopedSlots['group.header']({
|
|
23532
|
+
group,
|
|
23533
|
+
groupBy: props.options.groupBy,
|
|
23534
|
+
isMobile: this.isMobile,
|
|
23535
|
+
items,
|
|
23536
|
+
headers: this.computedHeaders,
|
|
23537
|
+
isOpen,
|
|
23538
|
+
toggle: toggleFn,
|
|
23539
|
+
remove: removeFn
|
|
23540
|
+
})]));
|
|
23541
|
+
} else {
|
|
23542
|
+
const toggle = this.$createElement(components_VBtn, {
|
|
23543
|
+
staticClass: 'ma-0',
|
|
23544
|
+
props: {
|
|
23545
|
+
icon: true,
|
|
23546
|
+
small: true
|
|
23547
|
+
},
|
|
23548
|
+
on: {
|
|
23549
|
+
click: toggleFn
|
|
23550
|
+
}
|
|
23551
|
+
}, [this.$createElement(components_VIcon, [isOpen ? '$minus' : '$plus'])]);
|
|
23552
|
+
const remove = this.$createElement(components_VBtn, {
|
|
23553
|
+
staticClass: 'ma-0',
|
|
23554
|
+
props: {
|
|
23555
|
+
icon: true,
|
|
23556
|
+
small: true
|
|
23557
|
+
},
|
|
23558
|
+
on: {
|
|
23559
|
+
click: removeFn
|
|
23560
|
+
}
|
|
23561
|
+
}, [this.$createElement(components_VIcon, ['$close'])]);
|
|
23562
|
+
const column = this.$createElement('td', {
|
|
23563
|
+
staticClass: 'text-start',
|
|
23564
|
+
attrs: this.colspanAttrs
|
|
23565
|
+
}, [toggle, `${props.options.groupBy[0]}: ${group}`, remove]);
|
|
23566
|
+
children.unshift(this.$createElement('template', {
|
|
23567
|
+
slot: 'column.header'
|
|
23568
|
+
}, [column]));
|
|
23569
|
+
}
|
|
23570
|
+
|
|
23571
|
+
if (this.$scopedSlots['group.summary']) {
|
|
23572
|
+
children.push(this.$createElement('template', {
|
|
23573
|
+
slot: 'column.summary'
|
|
23574
|
+
}, [this.$scopedSlots['group.summary']({
|
|
23575
|
+
group,
|
|
23576
|
+
groupBy: props.options.groupBy,
|
|
23577
|
+
isMobile: this.isMobile,
|
|
23578
|
+
items,
|
|
23579
|
+
headers: this.computedHeaders,
|
|
23580
|
+
isOpen,
|
|
23581
|
+
toggle: toggleFn
|
|
23582
|
+
})]));
|
|
23583
|
+
}
|
|
23584
|
+
|
|
23585
|
+
return this.$createElement(RowGroup, {
|
|
23586
|
+
key: group,
|
|
23587
|
+
props: {
|
|
23588
|
+
value: isOpen
|
|
23589
|
+
}
|
|
23590
|
+
}, children);
|
|
23591
|
+
},
|
|
23592
|
+
|
|
23593
|
+
genRows(items, props) {
|
|
23594
|
+
return this.$scopedSlots.item ? this.genScopedRows(items, props) : this.genDefaultRows(items, props);
|
|
23595
|
+
},
|
|
23596
|
+
|
|
23597
|
+
genScopedRows(items, props) {
|
|
23598
|
+
const rows = [];
|
|
23599
|
+
|
|
23600
|
+
for (let i = 0; i < items.length; i++) {
|
|
23601
|
+
const item = items[i];
|
|
23602
|
+
rows.push(this.$scopedSlots.item({ ...this.createItemProps(item, i),
|
|
23603
|
+
isMobile: this.isMobile
|
|
23604
|
+
}));
|
|
23605
|
+
|
|
23606
|
+
if (this.isExpanded(item)) {
|
|
23607
|
+
rows.push(this.$scopedSlots['expanded-item']({
|
|
23608
|
+
headers: this.computedHeaders,
|
|
23609
|
+
isMobile: this.isMobile,
|
|
23610
|
+
index: i,
|
|
23611
|
+
item
|
|
23612
|
+
}));
|
|
23613
|
+
}
|
|
23614
|
+
}
|
|
23615
|
+
|
|
23616
|
+
return rows;
|
|
23617
|
+
},
|
|
23618
|
+
|
|
23619
|
+
genDefaultRows(items, props) {
|
|
23620
|
+
return this.$scopedSlots['expanded-item'] ? items.map((item, index) => this.genDefaultExpandedRow(item, index)) : items.map((item, index) => this.genDefaultSimpleRow(item, index));
|
|
23621
|
+
},
|
|
23622
|
+
|
|
23623
|
+
genDefaultExpandedRow(item, index) {
|
|
23624
|
+
const isExpanded = this.isExpanded(item);
|
|
23625
|
+
const classes = {
|
|
23626
|
+
'v-data-table__expanded v-data-table__expanded__row': isExpanded
|
|
23627
|
+
};
|
|
23628
|
+
const headerRow = this.genDefaultSimpleRow(item, index, classes);
|
|
23629
|
+
const expandedRow = this.$createElement('tr', {
|
|
23630
|
+
staticClass: 'v-data-table__expanded v-data-table__expanded__content'
|
|
23631
|
+
}, [this.$scopedSlots['expanded-item']({
|
|
23632
|
+
headers: this.computedHeaders,
|
|
23633
|
+
isMobile: this.isMobile,
|
|
23634
|
+
item
|
|
23635
|
+
})]);
|
|
23636
|
+
return this.$createElement(RowGroup, {
|
|
23637
|
+
props: {
|
|
23638
|
+
value: isExpanded
|
|
23639
|
+
}
|
|
23640
|
+
}, [this.$createElement('template', {
|
|
23641
|
+
slot: 'row.header'
|
|
23642
|
+
}, [headerRow]), this.$createElement('template', {
|
|
23643
|
+
slot: 'row.content'
|
|
23644
|
+
}, [expandedRow])]);
|
|
23645
|
+
},
|
|
23646
|
+
|
|
23647
|
+
genDefaultSimpleRow(item, index, classes = {}) {
|
|
23648
|
+
const scopedSlots = getPrefixedScopedSlots('item.', this.$scopedSlots);
|
|
23649
|
+
const data = this.createItemProps(item, index);
|
|
23650
|
+
|
|
23651
|
+
if (this.showSelect) {
|
|
23652
|
+
const slot = scopedSlots['data-table-select'];
|
|
23653
|
+
scopedSlots['data-table-select'] = slot ? () => slot({ ...data,
|
|
23654
|
+
isMobile: this.isMobile
|
|
23655
|
+
}) : () => {
|
|
23656
|
+
var _this$checkboxColor;
|
|
23657
|
+
|
|
23658
|
+
return this.$createElement(VCheckbox_VSimpleCheckbox, {
|
|
23659
|
+
staticClass: 'v-data-table__checkbox',
|
|
23660
|
+
props: {
|
|
23661
|
+
value: data.isSelected,
|
|
23662
|
+
disabled: !this.isSelectable(item),
|
|
23663
|
+
color: (_this$checkboxColor = this.checkboxColor) != null ? _this$checkboxColor : ''
|
|
23664
|
+
},
|
|
23665
|
+
on: {
|
|
23666
|
+
input: val => data.select(val)
|
|
23667
|
+
}
|
|
23668
|
+
});
|
|
23669
|
+
};
|
|
23670
|
+
}
|
|
23671
|
+
|
|
23672
|
+
if (this.showExpand) {
|
|
23673
|
+
const slot = scopedSlots['data-table-expand'];
|
|
23674
|
+
scopedSlots['data-table-expand'] = slot ? () => slot(data) : () => this.$createElement(components_VIcon, {
|
|
23675
|
+
staticClass: 'v-data-table__expand-icon',
|
|
23676
|
+
class: {
|
|
23677
|
+
'v-data-table__expand-icon--active': data.isExpanded
|
|
23678
|
+
},
|
|
23679
|
+
on: {
|
|
23680
|
+
click: e => {
|
|
23681
|
+
e.stopPropagation();
|
|
23682
|
+
data.expand(!data.isExpanded);
|
|
23683
|
+
}
|
|
23684
|
+
}
|
|
23685
|
+
}, [this.expandIcon]);
|
|
23686
|
+
}
|
|
23687
|
+
|
|
23688
|
+
return this.$createElement(this.isMobile ? MobileRow : Row, {
|
|
23689
|
+
key: getObjectValueByPath(item, this.itemKey),
|
|
23690
|
+
class: mergeClasses({ ...classes,
|
|
23691
|
+
'v-data-table__selected': data.isSelected
|
|
23692
|
+
}, getPropertyFromItem(item, this.itemClass)),
|
|
23693
|
+
props: {
|
|
23694
|
+
headers: this.computedHeaders,
|
|
23695
|
+
hideDefaultHeader: this.hideDefaultHeader,
|
|
23696
|
+
index,
|
|
23697
|
+
item,
|
|
23698
|
+
rtl: this.$vuetify.rtl
|
|
23699
|
+
},
|
|
23700
|
+
scopedSlots,
|
|
23701
|
+
on: {
|
|
23702
|
+
// TODO: for click, the first argument should be the event, and the second argument should be data,
|
|
23703
|
+
// but this is a breaking change so it's for v3
|
|
23704
|
+
click: () => this.$emit('click:row', item, data),
|
|
23705
|
+
contextmenu: event => this.$emit('contextmenu:row', event, data),
|
|
23706
|
+
dblclick: event => this.$emit('dblclick:row', event, data)
|
|
23707
|
+
}
|
|
23708
|
+
});
|
|
23709
|
+
},
|
|
23710
|
+
|
|
23711
|
+
genBody(props) {
|
|
23712
|
+
const data = { ...props,
|
|
23713
|
+
expand: this.expand,
|
|
23714
|
+
headers: this.computedHeaders,
|
|
23715
|
+
isExpanded: this.isExpanded,
|
|
23716
|
+
isMobile: this.isMobile,
|
|
23717
|
+
isSelected: this.isSelected,
|
|
23718
|
+
select: this.select
|
|
23719
|
+
};
|
|
23720
|
+
|
|
23721
|
+
if (this.$scopedSlots.body) {
|
|
23722
|
+
return this.$scopedSlots.body(data);
|
|
23723
|
+
}
|
|
23724
|
+
|
|
23725
|
+
return this.$createElement('tbody', [getSlot(this, 'body.prepend', data, true), this.genItems(props.items, props), getSlot(this, 'body.append', data, true)]);
|
|
23726
|
+
},
|
|
23727
|
+
|
|
23728
|
+
genFoot(props) {
|
|
23729
|
+
var _this$$scopedSlots$fo, _this$$scopedSlots;
|
|
23730
|
+
|
|
23731
|
+
return (_this$$scopedSlots$fo = (_this$$scopedSlots = this.$scopedSlots).foot) == null ? void 0 : _this$$scopedSlots$fo.call(_this$$scopedSlots, props);
|
|
23732
|
+
},
|
|
23733
|
+
|
|
23734
|
+
genFooters(props) {
|
|
23735
|
+
const data = {
|
|
23736
|
+
props: {
|
|
23737
|
+
options: props.options,
|
|
23738
|
+
pagination: props.pagination,
|
|
23739
|
+
itemsPerPageText: '$vuetify.dataTable.itemsPerPageText',
|
|
23740
|
+
...this.sanitizedFooterProps
|
|
23741
|
+
},
|
|
23742
|
+
on: {
|
|
23743
|
+
'update:options': value => props.updateOptions(value)
|
|
23744
|
+
},
|
|
23745
|
+
widths: this.widths,
|
|
23746
|
+
headers: this.computedHeaders
|
|
23747
|
+
};
|
|
23748
|
+
const children = [getSlot(this, 'footer', data, true)];
|
|
23749
|
+
|
|
23750
|
+
if (!this.hideDefaultFooter) {
|
|
23751
|
+
children.push(this.$createElement(VDataIterator_VDataFooter, { ...data,
|
|
23752
|
+
scopedSlots: getPrefixedScopedSlots('footer.', this.$scopedSlots)
|
|
23753
|
+
}));
|
|
23754
|
+
}
|
|
23755
|
+
|
|
23756
|
+
return children;
|
|
23757
|
+
},
|
|
23758
|
+
|
|
23759
|
+
genDefaultScopedSlot(props) {
|
|
23760
|
+
const simpleProps = {
|
|
23761
|
+
height: this.height,
|
|
23762
|
+
fixedHeader: this.fixedHeader,
|
|
23763
|
+
dense: this.dense
|
|
23764
|
+
}; // if (this.virtualRows) {
|
|
23765
|
+
// return this.$createElement(VVirtualTable, {
|
|
23766
|
+
// props: Object.assign(simpleProps, {
|
|
23767
|
+
// items: props.items,
|
|
23768
|
+
// height: this.height,
|
|
23769
|
+
// rowHeight: this.dense ? 24 : 48,
|
|
23770
|
+
// headerHeight: this.dense ? 32 : 48,
|
|
23771
|
+
// // TODO: expose rest of props from virtual table?
|
|
23772
|
+
// }),
|
|
23773
|
+
// scopedSlots: {
|
|
23774
|
+
// items: ({ items }) => this.genItems(items, props) as any,
|
|
23775
|
+
// },
|
|
23776
|
+
// }, [
|
|
23777
|
+
// this.proxySlot('body.before', [this.genCaption(props), this.genHeaders(props)]),
|
|
23778
|
+
// this.proxySlot('bottom', this.genFooters(props)),
|
|
23779
|
+
// ])
|
|
23780
|
+
// }
|
|
23781
|
+
|
|
23782
|
+
return this.$createElement(VDataTable_VSimpleTable, {
|
|
23783
|
+
props: simpleProps,
|
|
23784
|
+
class: {
|
|
23785
|
+
'v-data-table--mobile': this.isMobile
|
|
23786
|
+
}
|
|
23787
|
+
}, [this.proxySlot('top', getSlot(this, 'top', { ...props,
|
|
23788
|
+
isMobile: this.isMobile
|
|
23789
|
+
}, true)), this.genCaption(props), this.genColgroup(props), this.genHeaders(props), this.genBody(props), this.genFoot(props), this.proxySlot('bottom', this.genFooters(props))]);
|
|
23790
|
+
},
|
|
23791
|
+
|
|
23792
|
+
proxySlot(slot, content) {
|
|
23793
|
+
return this.$createElement('template', {
|
|
23794
|
+
slot
|
|
23795
|
+
}, content);
|
|
23796
|
+
}
|
|
23797
|
+
|
|
23798
|
+
},
|
|
23799
|
+
|
|
23800
|
+
render() {
|
|
23801
|
+
return this.$createElement(VData, {
|
|
23802
|
+
props: { ...this.$props,
|
|
23803
|
+
customFilter: this.customFilterWithColumns,
|
|
23804
|
+
customSort: this.customSortWithHeaders,
|
|
23805
|
+
itemsPerPage: this.computedItemsPerPage
|
|
23806
|
+
},
|
|
23807
|
+
on: {
|
|
23808
|
+
'update:options': (v, old) => {
|
|
23809
|
+
this.internalGroupBy = v.groupBy || [];
|
|
23810
|
+
!deepEqual(v, old) && this.$emit('update:options', v);
|
|
23811
|
+
},
|
|
23812
|
+
'update:page': v => this.$emit('update:page', v),
|
|
23813
|
+
'update:items-per-page': v => this.$emit('update:items-per-page', v),
|
|
23814
|
+
'update:sort-by': v => this.$emit('update:sort-by', v),
|
|
23815
|
+
'update:sort-desc': v => this.$emit('update:sort-desc', v),
|
|
23816
|
+
'update:group-by': v => this.$emit('update:group-by', v),
|
|
23817
|
+
'update:group-desc': v => this.$emit('update:group-desc', v),
|
|
23818
|
+
pagination: (v, old) => !deepEqual(v, old) && this.$emit('pagination', v),
|
|
23819
|
+
'current-items': v => {
|
|
23820
|
+
this.internalCurrentItems = v;
|
|
23821
|
+
this.$emit('current-items', v);
|
|
23822
|
+
},
|
|
23823
|
+
'page-count': v => this.$emit('page-count', v)
|
|
23824
|
+
},
|
|
23825
|
+
scopedSlots: {
|
|
23826
|
+
default: this.genDefaultScopedSlot
|
|
23827
|
+
}
|
|
23828
|
+
});
|
|
23829
|
+
}
|
|
23830
|
+
|
|
23831
|
+
}));
|
|
23832
|
+
//# sourceMappingURL=VDataTable.js.map
|
|
23833
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectModalOptions/SelectModalOptions.vue?vue&type=script&lang=js&
|
|
23834
|
+
|
|
23835
|
+
|
|
23836
|
+
//
|
|
23837
|
+
//
|
|
23838
|
+
//
|
|
23839
|
+
//
|
|
23840
|
+
//
|
|
23841
|
+
//
|
|
23842
|
+
//
|
|
23843
|
+
//
|
|
23844
|
+
//
|
|
23845
|
+
//
|
|
23846
|
+
//
|
|
23847
|
+
//
|
|
23848
|
+
//
|
|
23849
|
+
//
|
|
23850
|
+
//
|
|
23851
|
+
//
|
|
23852
|
+
//
|
|
23853
|
+
//
|
|
23854
|
+
//
|
|
23855
|
+
//
|
|
23856
|
+
//
|
|
23857
|
+
//
|
|
23858
|
+
//
|
|
23859
|
+
//
|
|
23860
|
+
//
|
|
23861
|
+
//
|
|
23862
|
+
//
|
|
23863
|
+
//
|
|
23864
|
+
//
|
|
23865
|
+
//
|
|
23866
|
+
//
|
|
23867
|
+
//
|
|
23868
|
+
//
|
|
23869
|
+
//
|
|
23870
|
+
//
|
|
23871
|
+
//
|
|
23872
|
+
//
|
|
23873
|
+
//
|
|
23874
|
+
//
|
|
23875
|
+
//
|
|
23876
|
+
//
|
|
23877
|
+
//
|
|
23878
|
+
//
|
|
23879
|
+
//
|
|
23880
|
+
//
|
|
23881
|
+
//
|
|
23882
|
+
//
|
|
23883
|
+
//
|
|
23884
|
+
//
|
|
23885
|
+
//
|
|
23886
|
+
//
|
|
23887
|
+
//
|
|
23888
|
+
//
|
|
23889
|
+
//
|
|
23890
|
+
//
|
|
23891
|
+
//
|
|
23892
|
+
//
|
|
23893
|
+
//
|
|
23894
|
+
//
|
|
23895
|
+
//
|
|
23896
|
+
//
|
|
23897
|
+
//
|
|
23898
|
+
//
|
|
23899
|
+
//
|
|
23900
|
+
//
|
|
23901
|
+
//
|
|
23902
|
+
//
|
|
23903
|
+
//
|
|
23904
|
+
//
|
|
23905
|
+
//
|
|
23906
|
+
//
|
|
23907
|
+
//
|
|
23908
|
+
//
|
|
23909
|
+
//
|
|
23910
|
+
//
|
|
23911
|
+
//
|
|
23912
|
+
//
|
|
23913
|
+
|
|
23914
|
+
|
|
23915
|
+
|
|
23916
|
+
|
|
23917
|
+
|
|
23918
|
+
|
|
23919
|
+
|
|
23920
|
+
/* harmony default export */ var SelectModalOptionsvue_type_script_lang_js_ = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
|
|
23921
|
+
name: 'farm-select-modal-options',
|
|
23922
|
+
components: {
|
|
23923
|
+
VTextField: components_VTextField,
|
|
23924
|
+
VCol: VCol,
|
|
23925
|
+
VMain: VMain_VMain,
|
|
23926
|
+
VDataTable: VDataTable_VDataTable,
|
|
23927
|
+
VDialog: VDialog_VDialog,
|
|
23928
|
+
DialogHeader: components_DialogHeader,
|
|
23929
|
+
DialogFooter: components_DialogFooter,
|
|
23930
|
+
DataTableEmptyWrapper: components_DataTableEmptyWrapper,
|
|
23931
|
+
DataTablePaginator: components_DataTablePaginator
|
|
23932
|
+
},
|
|
23933
|
+
props: {
|
|
23934
|
+
/**
|
|
23935
|
+
* Input Label
|
|
23936
|
+
*/
|
|
23937
|
+
label: {
|
|
23938
|
+
type: String,
|
|
23939
|
+
required: true
|
|
23940
|
+
},
|
|
23941
|
+
|
|
23942
|
+
/**
|
|
23943
|
+
* Input ID
|
|
23944
|
+
*/
|
|
23945
|
+
inputId: {
|
|
23946
|
+
type: String,
|
|
23947
|
+
required: true
|
|
23948
|
+
},
|
|
23949
|
+
|
|
23950
|
+
/**
|
|
23951
|
+
* Key used to get value from selected item
|
|
23952
|
+
*/
|
|
23953
|
+
selectIdentifier: {
|
|
23954
|
+
type: String,
|
|
23955
|
+
default: 'id'
|
|
23956
|
+
},
|
|
23957
|
+
|
|
23958
|
+
/**
|
|
23959
|
+
* Format label from each item
|
|
23960
|
+
* If value is a function, it is evaluted (use it to build complex strings)
|
|
23961
|
+
* Otherwise, will get item value from the key with the prop value
|
|
23962
|
+
*/
|
|
23963
|
+
itemLabelFormatter: {
|
|
23964
|
+
default: 'name'
|
|
23965
|
+
},
|
|
23966
|
+
|
|
23967
|
+
/**
|
|
23968
|
+
* Items to be shown in the table
|
|
23969
|
+
*/
|
|
23970
|
+
items: {
|
|
23971
|
+
type: Array,
|
|
23972
|
+
default: function _default() {
|
|
23973
|
+
return [];
|
|
23974
|
+
}
|
|
23975
|
+
},
|
|
23976
|
+
|
|
23977
|
+
/**
|
|
23978
|
+
* Function that will be called when user focus/click the input
|
|
23979
|
+
*/
|
|
23980
|
+
loadFn: {
|
|
23981
|
+
type: Function,
|
|
23982
|
+
default: function _default() {}
|
|
23983
|
+
},
|
|
23984
|
+
|
|
23985
|
+
/**
|
|
23986
|
+
* Request Status from the loader function
|
|
23987
|
+
*/
|
|
23988
|
+
loadingRequestStatus: {
|
|
23989
|
+
default: 'IDLE'
|
|
23990
|
+
},
|
|
23991
|
+
|
|
23992
|
+
/**
|
|
23993
|
+
* Title from the modal
|
|
23994
|
+
*/
|
|
23995
|
+
modalTitle: {
|
|
23996
|
+
type: String,
|
|
23997
|
+
default: 'Selecione um item'
|
|
23998
|
+
},
|
|
23999
|
+
|
|
24000
|
+
/**
|
|
24001
|
+
* General configuration
|
|
24002
|
+
*/
|
|
24003
|
+
config: {
|
|
24004
|
+
default: function _default() {
|
|
24005
|
+
return {
|
|
24006
|
+
md: 2,
|
|
24007
|
+
required: false
|
|
24008
|
+
};
|
|
24009
|
+
}
|
|
24010
|
+
},
|
|
24011
|
+
|
|
24012
|
+
/**
|
|
24013
|
+
* Placeholder from the search input
|
|
24014
|
+
*/
|
|
24015
|
+
placeholder: {
|
|
24016
|
+
type: String,
|
|
24017
|
+
default: 'Pesquise'
|
|
24018
|
+
},
|
|
24019
|
+
|
|
24020
|
+
/**
|
|
24021
|
+
* v-model
|
|
24022
|
+
*/
|
|
24023
|
+
value: {
|
|
24024
|
+
required: true
|
|
24025
|
+
}
|
|
24026
|
+
},
|
|
24027
|
+
computed: {
|
|
24028
|
+
inputVal: {
|
|
24029
|
+
get: function get() {
|
|
24030
|
+
return this.value;
|
|
24031
|
+
},
|
|
24032
|
+
set: function set(val) {
|
|
24033
|
+
this.$emit('input', val);
|
|
24034
|
+
}
|
|
24035
|
+
},
|
|
24036
|
+
isLoading: function isLoading() {
|
|
24037
|
+
return this.loadingRequestStatus === 'START';
|
|
24038
|
+
},
|
|
24039
|
+
selectedValueText: {
|
|
24040
|
+
get: function get() {
|
|
24041
|
+
return this.selectedItem ? this.getItemLabel(this.selectedItem) : '';
|
|
24042
|
+
}
|
|
24043
|
+
},
|
|
24044
|
+
totalPages: function totalPages() {
|
|
24045
|
+
if (this.items !== undefined) {
|
|
24046
|
+
return Math.ceil(this.items.length / 10);
|
|
24047
|
+
}
|
|
24048
|
+
|
|
24049
|
+
return 0;
|
|
24050
|
+
}
|
|
24051
|
+
},
|
|
24052
|
+
data: function data() {
|
|
24053
|
+
return {
|
|
24054
|
+
selectedValue: {},
|
|
24055
|
+
showModal: false,
|
|
24056
|
+
selectedItem: null,
|
|
24057
|
+
searchValue: '',
|
|
24058
|
+
headers: [{
|
|
24059
|
+
text: 'Label',
|
|
24060
|
+
sortable: false,
|
|
24061
|
+
value: 'label',
|
|
24062
|
+
align: 'left'
|
|
24063
|
+
}],
|
|
24064
|
+
pagination: {
|
|
24065
|
+
page: 1,
|
|
24066
|
+
itemsPerPage: 10,
|
|
24067
|
+
pages: 0
|
|
24068
|
+
}
|
|
24069
|
+
};
|
|
24070
|
+
},
|
|
24071
|
+
watch: {
|
|
24072
|
+
value: function value(newValue) {
|
|
24073
|
+
if (!newValue || newValue === undefined) {
|
|
24074
|
+
this.selectedItem = null;
|
|
24075
|
+
}
|
|
24076
|
+
},
|
|
24077
|
+
items: function items(newValue) {
|
|
24078
|
+
this.pagination.pages = Math.ceil(newValue.length / 10);
|
|
24079
|
+
}
|
|
24080
|
+
},
|
|
24081
|
+
methods: {
|
|
24082
|
+
handlePagination: function handlePagination(tablePagination) {
|
|
24083
|
+
if (tablePagination.page === 1 && tablePagination.itemsLength !== this.pagination.pages) {
|
|
24084
|
+
this.pagination.pages = Math.ceil(tablePagination.itemsLength / 10);
|
|
24085
|
+
}
|
|
24086
|
+
},
|
|
24087
|
+
openModal: function openModal() {
|
|
24088
|
+
this.loadFn();
|
|
24089
|
+
this.showModal = true;
|
|
24090
|
+
},
|
|
24091
|
+
closeModal: function closeModal() {
|
|
24092
|
+
this.showModal = false;
|
|
24093
|
+
},
|
|
24094
|
+
onChangePage: function onChangePage(newPage) {
|
|
24095
|
+
this.pagination.page = newPage;
|
|
24096
|
+
},
|
|
24097
|
+
getItemLabel: function getItemLabel(item) {
|
|
24098
|
+
if (typeof this.itemLabelFormatter === 'function') {
|
|
24099
|
+
return this.itemLabelFormatter(item);
|
|
24100
|
+
}
|
|
24101
|
+
|
|
24102
|
+
return item[this.itemLabelFormatter];
|
|
24103
|
+
},
|
|
24104
|
+
handleClick: function handleClick(item) {
|
|
24105
|
+
this.inputVal = item[this.selectIdentifier];
|
|
24106
|
+
this.showModal = false;
|
|
24107
|
+
this.selectedItem = item;
|
|
24108
|
+
},
|
|
24109
|
+
customFilter: function customFilter(_, search, item) {
|
|
24110
|
+
var label = this.getItemLabel(item);
|
|
24111
|
+
return label.toLowerCase().includes(search.toLowerCase());
|
|
24112
|
+
}
|
|
24113
|
+
}
|
|
24114
|
+
}));
|
|
24115
|
+
// CONCATENATED MODULE: ./src/components/SelectModalOptions/SelectModalOptions.vue?vue&type=script&lang=js&
|
|
24116
|
+
/* harmony default export */ var SelectModalOptions_SelectModalOptionsvue_type_script_lang_js_ = (SelectModalOptionsvue_type_script_lang_js_);
|
|
24117
|
+
// EXTERNAL MODULE: ./src/components/SelectModalOptions/SelectModalOptions.vue?vue&type=style&index=0&id=04f9e4b0&lang=scss&scoped=true&
|
|
24118
|
+
var SelectModalOptionsvue_type_style_index_0_id_04f9e4b0_lang_scss_scoped_true_ = __webpack_require__("1051");
|
|
24119
|
+
|
|
24120
|
+
// CONCATENATED MODULE: ./src/components/SelectModalOptions/SelectModalOptions.vue
|
|
24121
|
+
|
|
24122
|
+
|
|
24123
|
+
|
|
24124
|
+
|
|
24125
|
+
|
|
24126
|
+
|
|
24127
|
+
/* normalize component */
|
|
24128
|
+
|
|
24129
|
+
var SelectModalOptions_component = normalizeComponent(
|
|
24130
|
+
SelectModalOptions_SelectModalOptionsvue_type_script_lang_js_,
|
|
24131
|
+
SelectModalOptionsvue_type_template_id_04f9e4b0_scoped_true_render,
|
|
24132
|
+
SelectModalOptionsvue_type_template_id_04f9e4b0_scoped_true_staticRenderFns,
|
|
24133
|
+
false,
|
|
24134
|
+
null,
|
|
24135
|
+
"04f9e4b0",
|
|
24136
|
+
null
|
|
24137
|
+
|
|
24138
|
+
)
|
|
24139
|
+
|
|
24140
|
+
/* harmony default export */ var SelectModalOptions = (SelectModalOptions_component.exports);
|
|
24141
|
+
// CONCATENATED MODULE: ./src/components/SelectModalOptions/index.js
|
|
24142
|
+
|
|
24143
|
+
|
|
24144
|
+
/* harmony default export */ var components_SelectModalOptions = (SelectModalOptions);
|
|
24145
|
+
// CONCATENATED MODULE: ./src/main.js
|
|
24146
|
+
|
|
24147
|
+
|
|
21364
24148
|
|
|
21365
24149
|
|
|
21366
24150
|
|