@znap/components-vue2 1.1.2 → 1.1.4
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/index.common.js +234 -175
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +236 -177
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +14 -14
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/components/views/BaseCrudView.vue.d.ts +1 -11
- package/dist/types/components/views/BaseViewLayout.vue.d.ts +2 -5
- package/dist/types/utils/views/generateCrudViewConfigs.d.ts +13 -20
- package/dist/types/utils/views/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -1073,22 +1073,6 @@ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
|
1073
1073
|
})));
|
|
1074
1074
|
|
|
1075
1075
|
|
|
1076
|
-
/***/ }),
|
|
1077
|
-
|
|
1078
|
-
/***/ 589:
|
|
1079
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1080
|
-
|
|
1081
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1082
|
-
|
|
1083
|
-
// load the styles
|
|
1084
|
-
var content = __webpack_require__(7435);
|
|
1085
|
-
if(content.__esModule) content = content.default;
|
|
1086
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1087
|
-
if(content.locals) module.exports = content.locals;
|
|
1088
|
-
// add the styles to the DOM
|
|
1089
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1090
|
-
var update = add("3b3a370b", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1091
|
-
|
|
1092
1076
|
/***/ }),
|
|
1093
1077
|
|
|
1094
1078
|
/***/ 609:
|
|
@@ -3358,6 +3342,27 @@ var update = add("56d50235", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
3358
3342
|
})));
|
|
3359
3343
|
|
|
3360
3344
|
|
|
3345
|
+
/***/ }),
|
|
3346
|
+
|
|
3347
|
+
/***/ 1542:
|
|
3348
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3349
|
+
|
|
3350
|
+
"use strict";
|
|
3351
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3352
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
3353
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
3354
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
3355
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
3356
|
+
// Imports
|
|
3357
|
+
|
|
3358
|
+
|
|
3359
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
3360
|
+
// Module
|
|
3361
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".h-100[data-v-aa8af4a4]{height:100%}", ""]);
|
|
3362
|
+
// Exports
|
|
3363
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
3364
|
+
|
|
3365
|
+
|
|
3361
3366
|
/***/ }),
|
|
3362
3367
|
|
|
3363
3368
|
/***/ 1545:
|
|
@@ -3655,6 +3660,27 @@ module.exports = uncurryThis({}.isPrototypeOf);
|
|
|
3655
3660
|
})));
|
|
3656
3661
|
|
|
3657
3662
|
|
|
3663
|
+
/***/ }),
|
|
3664
|
+
|
|
3665
|
+
/***/ 1683:
|
|
3666
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3667
|
+
|
|
3668
|
+
"use strict";
|
|
3669
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3670
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
3671
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
3672
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
3673
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
3674
|
+
// Imports
|
|
3675
|
+
|
|
3676
|
+
|
|
3677
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
3678
|
+
// Module
|
|
3679
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".edited-row[data-v-3d673e31]{background-color:hsla(44,94%,86%,.714)}.edited-row[data-v-3d673e31]:hover{background-color:hsla(44,93%,72%,.714)!important}.sum-row[data-v-3d673e31]{background-color:#ddd;font-weight:700}.sum-row[data-v-3d673e31]:hover{background-color:#ddd!important}.selected-row[data-v-3d673e31]{background-color:#eee!important}.selected-row[data-v-3d673e31]:hover{background-color:#ddd!important}", ""]);
|
|
3680
|
+
// Exports
|
|
3681
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
3682
|
+
|
|
3683
|
+
|
|
3658
3684
|
/***/ }),
|
|
3659
3685
|
|
|
3660
3686
|
/***/ 1698:
|
|
@@ -7457,22 +7483,6 @@ module.exports = function difference(other) {
|
|
|
7457
7483
|
};
|
|
7458
7484
|
|
|
7459
7485
|
|
|
7460
|
-
/***/ }),
|
|
7461
|
-
|
|
7462
|
-
/***/ 3450:
|
|
7463
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
7464
|
-
|
|
7465
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
7466
|
-
|
|
7467
|
-
// load the styles
|
|
7468
|
-
var content = __webpack_require__(7580);
|
|
7469
|
-
if(content.__esModule) content = content.default;
|
|
7470
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
7471
|
-
if(content.locals) module.exports = content.locals;
|
|
7472
|
-
// add the styles to the DOM
|
|
7473
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
7474
|
-
var update = add("47079f5a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
7475
|
-
|
|
7476
7486
|
/***/ }),
|
|
7477
7487
|
|
|
7478
7488
|
/***/ 3478:
|
|
@@ -18498,6 +18508,22 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
18498
18508
|
});
|
|
18499
18509
|
|
|
18500
18510
|
|
|
18511
|
+
/***/ }),
|
|
18512
|
+
|
|
18513
|
+
/***/ 5936:
|
|
18514
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18515
|
+
|
|
18516
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
18517
|
+
|
|
18518
|
+
// load the styles
|
|
18519
|
+
var content = __webpack_require__(1542);
|
|
18520
|
+
if(content.__esModule) content = content.default;
|
|
18521
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
18522
|
+
if(content.locals) module.exports = content.locals;
|
|
18523
|
+
// add the styles to the DOM
|
|
18524
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
18525
|
+
var update = add("15bb96ae", content, true, {"sourceMap":false,"shadowMode":false});
|
|
18526
|
+
|
|
18501
18527
|
/***/ }),
|
|
18502
18528
|
|
|
18503
18529
|
/***/ 5966:
|
|
@@ -19669,6 +19695,22 @@ var update = add("c605e776", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
19669
19695
|
|
|
19670
19696
|
/***/ }),
|
|
19671
19697
|
|
|
19698
|
+
/***/ 6357:
|
|
19699
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19700
|
+
|
|
19701
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
19702
|
+
|
|
19703
|
+
// load the styles
|
|
19704
|
+
var content = __webpack_require__(1683);
|
|
19705
|
+
if(content.__esModule) content = content.default;
|
|
19706
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
19707
|
+
if(content.locals) module.exports = content.locals;
|
|
19708
|
+
// add the styles to the DOM
|
|
19709
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
19710
|
+
var update = add("734c1184", content, true, {"sourceMap":false,"shadowMode":false});
|
|
19711
|
+
|
|
19712
|
+
/***/ }),
|
|
19713
|
+
|
|
19672
19714
|
/***/ 6395:
|
|
19673
19715
|
/***/ (function(module) {
|
|
19674
19716
|
|
|
@@ -22303,40 +22345,35 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".theme--light.v-small-dialog__actions,
|
|
|
22303
22345
|
|
|
22304
22346
|
/***/ }),
|
|
22305
22347
|
|
|
22306
|
-
/***/
|
|
22307
|
-
/***/ (function(module,
|
|
22308
|
-
|
|
22309
|
-
"use strict";
|
|
22310
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22311
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
22312
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
22313
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
22314
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
22315
|
-
// Imports
|
|
22316
|
-
|
|
22348
|
+
/***/ 7447:
|
|
22349
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22317
22350
|
|
|
22318
|
-
|
|
22319
|
-
// Module
|
|
22320
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".h-100[data-v-b1a1d5fc]{height:100%}", ""]);
|
|
22321
|
-
// Exports
|
|
22322
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22351
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22323
22352
|
|
|
22353
|
+
// load the styles
|
|
22354
|
+
var content = __webpack_require__(3380);
|
|
22355
|
+
if(content.__esModule) content = content.default;
|
|
22356
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22357
|
+
if(content.locals) module.exports = content.locals;
|
|
22358
|
+
// add the styles to the DOM
|
|
22359
|
+
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22360
|
+
var update = add("5a6f590a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22324
22361
|
|
|
22325
22362
|
/***/ }),
|
|
22326
22363
|
|
|
22327
|
-
/***/
|
|
22364
|
+
/***/ 7470:
|
|
22328
22365
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22329
22366
|
|
|
22330
22367
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
22331
22368
|
|
|
22332
22369
|
// load the styles
|
|
22333
|
-
var content = __webpack_require__(
|
|
22370
|
+
var content = __webpack_require__(8384);
|
|
22334
22371
|
if(content.__esModule) content = content.default;
|
|
22335
22372
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
22336
22373
|
if(content.locals) module.exports = content.locals;
|
|
22337
22374
|
// add the styles to the DOM
|
|
22338
22375
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
22339
|
-
var update = add("
|
|
22376
|
+
var update = add("7e5ad3f9", content, true, {"sourceMap":false,"shadowMode":false});
|
|
22340
22377
|
|
|
22341
22378
|
/***/ }),
|
|
22342
22379
|
|
|
@@ -22462,27 +22499,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".container{width:100%;padding:12px;mar
|
|
|
22462
22499
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22463
22500
|
|
|
22464
22501
|
|
|
22465
|
-
/***/ }),
|
|
22466
|
-
|
|
22467
|
-
/***/ 7580:
|
|
22468
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22469
|
-
|
|
22470
|
-
"use strict";
|
|
22471
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22472
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
22473
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
22474
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
22475
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
22476
|
-
// Imports
|
|
22477
|
-
|
|
22478
|
-
|
|
22479
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
22480
|
-
// Module
|
|
22481
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".edited-row{background-color:hsla(44,94%,86%,.714)}.edited-row:hover{background-color:hsla(44,93%,72%,.714)!important}.sum-row{background-color:#ddd;font-weight:700}.sum-row:hover{background-color:#ddd!important}.selected-row{background-color:#eee!important}.selected-row:hover{background-color:#ddd!important}.v-data-table__wrapper{flex-grow:1}", ""]);
|
|
22482
|
-
// Exports
|
|
22483
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22484
|
-
|
|
22485
|
-
|
|
22486
22502
|
/***/ }),
|
|
22487
22503
|
|
|
22488
22504
|
/***/ 7588:
|
|
@@ -24294,6 +24310,27 @@ $({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFI
|
|
|
24294
24310
|
})));
|
|
24295
24311
|
|
|
24296
24312
|
|
|
24313
|
+
/***/ }),
|
|
24314
|
+
|
|
24315
|
+
/***/ 8384:
|
|
24316
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24317
|
+
|
|
24318
|
+
"use strict";
|
|
24319
|
+
__webpack_require__.r(__webpack_exports__);
|
|
24320
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
24321
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
24322
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
24323
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
24324
|
+
// Imports
|
|
24325
|
+
|
|
24326
|
+
|
|
24327
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
24328
|
+
// Module
|
|
24329
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".znap-crud-full-height-container[data-v-3d09d098]{height:calc(100vh - 64px);max-height:calc(100vh - 64px);overflow:hidden;display:flex;flex-direction:column;position:relative}.znap-crud-full-height-container[data-v-3d09d098] .v-container{height:100%;max-height:100%;padding:16px;margin:0;overflow:hidden}.znap-crud-full-height-container[data-v-3d09d098] .v-card{height:100%;max-height:100%;overflow:hidden;display:flex;flex-direction:column;border-radius:4px;margin:0}.znap-crud-full-height-container[data-v-3d09d098] .flex-grow-1{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}.znap-crud-full-height-container[data-v-3d09d098] .v-layout{height:100%;flex:1 1 auto;overflow:hidden}.znap-crud-full-height-container[data-v-3d09d098] .v-data-table{height:100%;max-height:none;display:flex;flex-direction:column}.znap-crud-full-height-container[data-v-3d09d098] .v-data-table__wrapper{flex:1 1 auto;overflow:auto;min-height:0}.znap-crud-full-height-container[data-v-3d09d098] .v-data-table__header{flex-shrink:0}.znap-crud-full-height-container[data-v-3d09d098] .v-data-footer{flex-shrink:0}.znap-crud-full-height-container[data-v-3d09d098] .v-toolbar{flex-shrink:0}", ""]);
|
|
24330
|
+
// Exports
|
|
24331
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
24332
|
+
|
|
24333
|
+
|
|
24297
24334
|
/***/ }),
|
|
24298
24335
|
|
|
24299
24336
|
/***/ 8414:
|
|
@@ -34474,15 +34511,16 @@ var VDivider = __webpack_require__(8999);
|
|
|
34474
34511
|
});
|
|
34475
34512
|
}
|
|
34476
34513
|
}));
|
|
34477
|
-
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseViewLayout.vue?vue&type=template&id=
|
|
34514
|
+
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseViewLayout.vue?vue&type=template&id=3d09d098&scoped=true
|
|
34478
34515
|
|
|
34479
34516
|
|
|
34480
34517
|
|
|
34481
34518
|
|
|
34482
|
-
var
|
|
34519
|
+
var BaseViewLayoutvue_type_template_id_3d09d098_scoped_true_render = function render() {
|
|
34483
34520
|
var _vm = this,
|
|
34484
34521
|
_c = _vm._self._c;
|
|
34485
34522
|
return _c(VContainer, {
|
|
34523
|
+
staticClass: "znap-crud-full-height-container",
|
|
34486
34524
|
attrs: {
|
|
34487
34525
|
"fluid": "",
|
|
34488
34526
|
"fill-height": "",
|
|
@@ -34521,7 +34559,7 @@ var BaseViewLayoutvue_type_template_id_72c9885a_scoped_true_render = function re
|
|
|
34521
34559
|
staticClass: "w-100 flex-grow-1 d-flex flex-column"
|
|
34522
34560
|
}, [_vm._t("default")], 2)], 1)], 1);
|
|
34523
34561
|
};
|
|
34524
|
-
var
|
|
34562
|
+
var BaseViewLayoutvue_type_template_id_3d09d098_scoped_true_staticRenderFns = [];
|
|
34525
34563
|
|
|
34526
34564
|
;// ./node_modules/vuetify/lib/components/VGrid/VSpacer.js
|
|
34527
34565
|
|
|
@@ -34630,56 +34668,61 @@ var ViewHeader_component = normalizeComponent(
|
|
|
34630
34668
|
},
|
|
34631
34669
|
data() {
|
|
34632
34670
|
return {
|
|
34633
|
-
|
|
34634
|
-
defaultContainerSize: {
|
|
34635
|
-
heigth: 0,
|
|
34636
|
-
width: 0
|
|
34637
|
-
}
|
|
34671
|
+
isComponentMounted: false
|
|
34638
34672
|
};
|
|
34639
34673
|
},
|
|
34640
34674
|
emits: ["closeTable"],
|
|
34641
34675
|
mounted() {
|
|
34642
|
-
|
|
34643
|
-
this.
|
|
34644
|
-
|
|
34645
|
-
|
|
34646
|
-
width,
|
|
34647
|
-
height
|
|
34648
|
-
} = entry.contentRect;
|
|
34649
|
-
this.defaultContainerSize.width = width;
|
|
34650
|
-
this.defaultContainerSize.heigth = height;
|
|
34651
|
-
}
|
|
34676
|
+
window.addEventListener("resize", this.adjustComponentLayout);
|
|
34677
|
+
this.isComponentMounted = true;
|
|
34678
|
+
this.$nextTick(() => {
|
|
34679
|
+
this.adjustComponentLayout();
|
|
34652
34680
|
});
|
|
34653
|
-
this.defaultContainerObserver.observe(el);
|
|
34654
34681
|
},
|
|
34655
34682
|
beforeDestroy() {
|
|
34656
|
-
|
|
34657
|
-
|
|
34658
|
-
}
|
|
34683
|
+
this.isComponentMounted = false;
|
|
34684
|
+
window.removeEventListener("resize", this.adjustComponentLayout);
|
|
34659
34685
|
},
|
|
34660
34686
|
methods: {
|
|
34661
34687
|
closeTable() {
|
|
34662
34688
|
this.$emit("closeTable");
|
|
34689
|
+
},
|
|
34690
|
+
adjustComponentLayout() {
|
|
34691
|
+
if (!this.isComponentMounted || !this.$el) return;
|
|
34692
|
+
const appBar = document.querySelector(".v-app-bar");
|
|
34693
|
+
const appBarHeight = appBar ? appBar.offsetHeight : 64;
|
|
34694
|
+
const availableHeight = `calc(100vh - ${appBarHeight}px)`;
|
|
34695
|
+
const container = this.$el;
|
|
34696
|
+
if (container) {
|
|
34697
|
+
container.style.height = availableHeight;
|
|
34698
|
+
container.style.maxHeight = availableHeight;
|
|
34699
|
+
container.style.overflow = "hidden";
|
|
34700
|
+
}
|
|
34663
34701
|
}
|
|
34664
34702
|
}
|
|
34665
34703
|
});
|
|
34666
34704
|
;// ./src/components/views/BaseViewLayout.vue?vue&type=script&lang=js
|
|
34667
34705
|
/* harmony default export */ var views_BaseViewLayoutvue_type_script_lang_js = (BaseViewLayoutvue_type_script_lang_js);
|
|
34706
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseViewLayout.vue?vue&type=style&index=0&id=3d09d098&prod&lang=scss&scoped=true
|
|
34707
|
+
var BaseViewLayoutvue_type_style_index_0_id_3d09d098_prod_lang_scss_scoped_true = __webpack_require__(7470);
|
|
34708
|
+
;// ./src/components/views/BaseViewLayout.vue?vue&type=style&index=0&id=3d09d098&prod&lang=scss&scoped=true
|
|
34709
|
+
|
|
34668
34710
|
;// ./src/components/views/BaseViewLayout.vue
|
|
34669
34711
|
|
|
34670
34712
|
|
|
34671
34713
|
|
|
34714
|
+
;
|
|
34672
34715
|
|
|
34673
34716
|
|
|
34674
34717
|
/* normalize component */
|
|
34675
|
-
|
|
34718
|
+
|
|
34676
34719
|
var BaseViewLayout_component = normalizeComponent(
|
|
34677
34720
|
views_BaseViewLayoutvue_type_script_lang_js,
|
|
34678
|
-
|
|
34679
|
-
|
|
34721
|
+
BaseViewLayoutvue_type_template_id_3d09d098_scoped_true_render,
|
|
34722
|
+
BaseViewLayoutvue_type_template_id_3d09d098_scoped_true_staticRenderFns,
|
|
34680
34723
|
false,
|
|
34681
34724
|
null,
|
|
34682
|
-
"
|
|
34725
|
+
"3d09d098",
|
|
34683
34726
|
null
|
|
34684
34727
|
|
|
34685
34728
|
)
|
|
@@ -43526,7 +43569,7 @@ const VTabs_baseMixins = mixins(colorable, proxyable, themeable);
|
|
|
43526
43569
|
}, [this.genBar(tab, slider), this.genItems(items, item)]);
|
|
43527
43570
|
}
|
|
43528
43571
|
}));
|
|
43529
|
-
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseCrudView.vue?vue&type=template&id=
|
|
43572
|
+
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseCrudView.vue?vue&type=template&id=3d673e31&scoped=true
|
|
43530
43573
|
|
|
43531
43574
|
|
|
43532
43575
|
|
|
@@ -43548,7 +43591,7 @@ const VTabs_baseMixins = mixins(colorable, proxyable, themeable);
|
|
|
43548
43591
|
|
|
43549
43592
|
|
|
43550
43593
|
|
|
43551
|
-
var
|
|
43594
|
+
var BaseCrudViewvue_type_template_id_3d673e31_scoped_true_render = function render() {
|
|
43552
43595
|
var _vm = this,
|
|
43553
43596
|
_c = _vm._self._c;
|
|
43554
43597
|
return _c('BaseViewLayout', {
|
|
@@ -43677,6 +43720,9 @@ var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
|
43677
43720
|
key: "primary-filters",
|
|
43678
43721
|
fn: function () {
|
|
43679
43722
|
return [_vm.hasPrimaryFilters ? _c('section', [_c(VTabs_VTabs, {
|
|
43723
|
+
attrs: {
|
|
43724
|
+
"height": "30"
|
|
43725
|
+
},
|
|
43680
43726
|
model: {
|
|
43681
43727
|
value: _vm.primaryFilterTab,
|
|
43682
43728
|
callback: function ($$v) {
|
|
@@ -43689,6 +43735,7 @@ var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
|
43689
43735
|
key: tabIndex
|
|
43690
43736
|
}, [_vm._v(" " + _vm._s(tab.title) + " ")]);
|
|
43691
43737
|
}), 1), _c(VTabsItems, {
|
|
43738
|
+
staticClass: "mt-3",
|
|
43692
43739
|
model: {
|
|
43693
43740
|
value: _vm.primaryFilterTab,
|
|
43694
43741
|
callback: function ($$v) {
|
|
@@ -43704,7 +43751,11 @@ var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
|
43704
43751
|
key: primaryFilter.column,
|
|
43705
43752
|
staticClass: "flex-grow-1",
|
|
43706
43753
|
attrs: {
|
|
43707
|
-
"cols":
|
|
43754
|
+
"cols": primaryFilter.componentProps?.cols || 'auto',
|
|
43755
|
+
"md": primaryFilter.componentProps?.md || undefined,
|
|
43756
|
+
"sm": primaryFilter.componentProps?.sm || undefined,
|
|
43757
|
+
"lg": primaryFilter.componentProps?.lg || undefined,
|
|
43758
|
+
"xl": primaryFilter.componentProps?.xl || undefined
|
|
43708
43759
|
}
|
|
43709
43760
|
}, [primaryFilter.component === 'v-autocomplete' ? _c(VAutocomplete_VAutocomplete, _vm._b({
|
|
43710
43761
|
attrs: {
|
|
@@ -43805,7 +43856,6 @@ var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
|
43805
43856
|
"items": _vm.apiData,
|
|
43806
43857
|
"loading": _vm.loading,
|
|
43807
43858
|
"fixed-header": "",
|
|
43808
|
-
"height": _vm.tableMaxHeigth,
|
|
43809
43859
|
"item-key": _vm.primaryKey,
|
|
43810
43860
|
"options": _vm.paginationOptions,
|
|
43811
43861
|
"footer-props": {
|
|
@@ -44156,7 +44206,7 @@ var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
|
44156
44206
|
}
|
|
44157
44207
|
})], 1);
|
|
44158
44208
|
};
|
|
44159
|
-
var
|
|
44209
|
+
var BaseCrudViewvue_type_template_id_3d673e31_scoped_true_staticRenderFns = [];
|
|
44160
44210
|
|
|
44161
44211
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
44162
44212
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -48693,7 +48743,7 @@ const VNavigationDrawer_baseMixins = mixins(applicationable('left', ['isActive',
|
|
|
48693
48743
|
}), children);
|
|
48694
48744
|
}
|
|
48695
48745
|
}));
|
|
48696
|
-
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=template&id=
|
|
48746
|
+
;// ./node_modules/vuetify-loader/lib/loader.js??ruleSet[1].rules[0].use!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=template&id=aa8af4a4&scoped=true
|
|
48697
48747
|
|
|
48698
48748
|
|
|
48699
48749
|
|
|
@@ -48705,7 +48755,7 @@ const VNavigationDrawer_baseMixins = mixins(applicationable('left', ['isActive',
|
|
|
48705
48755
|
|
|
48706
48756
|
|
|
48707
48757
|
|
|
48708
|
-
var
|
|
48758
|
+
var BaseCrudSecondaryFiltersDrawervue_type_template_id_aa8af4a4_scoped_true_render = function render() {
|
|
48709
48759
|
var _vm = this,
|
|
48710
48760
|
_c = _vm._self._c;
|
|
48711
48761
|
return _c(VNavigationDrawer_VNavigationDrawer, {
|
|
@@ -48714,7 +48764,7 @@ var BaseCrudSecondaryFiltersDrawervue_type_template_id_b1a1d5fc_scoped_true_rend
|
|
|
48714
48764
|
"hide-overlay": "",
|
|
48715
48765
|
"absolute": "",
|
|
48716
48766
|
"right": "",
|
|
48717
|
-
"width": "
|
|
48767
|
+
"width": "500"
|
|
48718
48768
|
},
|
|
48719
48769
|
model: {
|
|
48720
48770
|
value: _vm.showDrawer,
|
|
@@ -48757,8 +48807,11 @@ var BaseCrudSecondaryFiltersDrawervue_type_template_id_b1a1d5fc_scoped_true_rend
|
|
|
48757
48807
|
}, [_c('LoadingIndicator', {
|
|
48758
48808
|
staticClass: "mt-4"
|
|
48759
48809
|
})], 1) : _c('section', {
|
|
48760
|
-
staticClass: "mx-3"
|
|
48810
|
+
staticClass: "mx-3 mt-4"
|
|
48761
48811
|
}, [_vm.filters?.length ? _c('section', [_c(VTabs_VTabs, {
|
|
48812
|
+
attrs: {
|
|
48813
|
+
"height": "30"
|
|
48814
|
+
},
|
|
48762
48815
|
model: {
|
|
48763
48816
|
value: _vm.tabIndex,
|
|
48764
48817
|
callback: function ($$v) {
|
|
@@ -48771,6 +48824,7 @@ var BaseCrudSecondaryFiltersDrawervue_type_template_id_b1a1d5fc_scoped_true_rend
|
|
|
48771
48824
|
key: tabIndex
|
|
48772
48825
|
}, [_vm._v(" " + _vm._s(tab.title) + " ")]);
|
|
48773
48826
|
}), 1), _c(VTabsItems, {
|
|
48827
|
+
staticClass: "mt-3",
|
|
48774
48828
|
model: {
|
|
48775
48829
|
value: _vm.tabIndex,
|
|
48776
48830
|
callback: function ($$v) {
|
|
@@ -48868,7 +48922,7 @@ var BaseCrudSecondaryFiltersDrawervue_type_template_id_b1a1d5fc_scoped_true_rend
|
|
|
48868
48922
|
}), 1);
|
|
48869
48923
|
}), 1)], 1) : _vm._e()])]);
|
|
48870
48924
|
};
|
|
48871
|
-
var
|
|
48925
|
+
var BaseCrudSecondaryFiltersDrawervue_type_template_id_aa8af4a4_scoped_true_staticRenderFns = [];
|
|
48872
48926
|
|
|
48873
48927
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=script&lang=js
|
|
48874
48928
|
|
|
@@ -48943,9 +48997,9 @@ var BaseCrudSecondaryFiltersDrawervue_type_template_id_b1a1d5fc_scoped_true_stat
|
|
|
48943
48997
|
});
|
|
48944
48998
|
;// ./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=script&lang=js
|
|
48945
48999
|
/* harmony default export */ var drawers_BaseCrudSecondaryFiltersDrawervue_type_script_lang_js = (BaseCrudSecondaryFiltersDrawervue_type_script_lang_js);
|
|
48946
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=style&index=0&id=
|
|
48947
|
-
var
|
|
48948
|
-
;// ./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=style&index=0&id=
|
|
49000
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=style&index=0&id=aa8af4a4&prod&lang=scss&scoped=true
|
|
49001
|
+
var BaseCrudSecondaryFiltersDrawervue_type_style_index_0_id_aa8af4a4_prod_lang_scss_scoped_true = __webpack_require__(5936);
|
|
49002
|
+
;// ./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue?vue&type=style&index=0&id=aa8af4a4&prod&lang=scss&scoped=true
|
|
48949
49003
|
|
|
48950
49004
|
;// ./src/components/drawers/BaseCrudSecondaryFiltersDrawer.vue
|
|
48951
49005
|
|
|
@@ -48958,11 +49012,11 @@ var BaseCrudSecondaryFiltersDrawervue_type_style_index_0_id_b1a1d5fc_prod_lang_s
|
|
|
48958
49012
|
|
|
48959
49013
|
var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
48960
49014
|
drawers_BaseCrudSecondaryFiltersDrawervue_type_script_lang_js,
|
|
48961
|
-
|
|
48962
|
-
|
|
49015
|
+
BaseCrudSecondaryFiltersDrawervue_type_template_id_aa8af4a4_scoped_true_render,
|
|
49016
|
+
BaseCrudSecondaryFiltersDrawervue_type_template_id_aa8af4a4_scoped_true_staticRenderFns,
|
|
48963
49017
|
false,
|
|
48964
49018
|
null,
|
|
48965
|
-
"
|
|
49019
|
+
"aa8af4a4",
|
|
48966
49020
|
null
|
|
48967
49021
|
|
|
48968
49022
|
)
|
|
@@ -49081,11 +49135,6 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49081
49135
|
type: Object,
|
|
49082
49136
|
required: true
|
|
49083
49137
|
},
|
|
49084
|
-
cardSubtractHeigth: {
|
|
49085
|
-
type: Number,
|
|
49086
|
-
required: false,
|
|
49087
|
-
default: 0
|
|
49088
|
-
},
|
|
49089
49138
|
"update:rows-changed": {
|
|
49090
49139
|
type: Function,
|
|
49091
49140
|
required: false
|
|
@@ -49128,7 +49177,8 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49128
49177
|
backupEditedItemsMap: new Map(),
|
|
49129
49178
|
tableMaxHeigth: 0,
|
|
49130
49179
|
alreadySetTableHeigth: false,
|
|
49131
|
-
primaryFilterTab: 0
|
|
49180
|
+
primaryFilterTab: 0,
|
|
49181
|
+
isComponentMounted: false
|
|
49132
49182
|
};
|
|
49133
49183
|
},
|
|
49134
49184
|
computed: {
|
|
@@ -49497,40 +49547,13 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49497
49547
|
},
|
|
49498
49548
|
created() {
|
|
49499
49549
|
this.paginationOptions = this.paginationSettings;
|
|
49500
|
-
},
|
|
49501
|
-
mounted() {
|
|
49502
|
-
let tableFooterHeigth = 60;
|
|
49503
|
-
if (this.cardSubtractHeigth) {
|
|
49504
|
-
tableFooterHeigth += this.cardSubtractHeigth ?? 0;
|
|
49505
|
-
}
|
|
49506
|
-
this.$watch(() => this.$refs.baseViewLayoutRef?.defaultContainerSize?.heigth - tableFooterHeigth, value => {
|
|
49507
|
-
if (this.alreadySetTableHeigth) return;
|
|
49508
|
-
requestAnimationFrame(() => {
|
|
49509
|
-
this.tableMaxHeigth = value;
|
|
49510
|
-
this.alreadySetTableHeigth = true;
|
|
49511
|
-
});
|
|
49512
|
-
}, {
|
|
49513
|
-
immediate: false
|
|
49514
|
-
});
|
|
49515
|
-
this.$watch(() => this.alreadySetTableHeigth, value => {
|
|
49516
|
-
if (value) return;
|
|
49517
|
-
requestAnimationFrame(() => {
|
|
49518
|
-
this.tableMaxHeigth = this.$refs.baseViewLayoutRef?.defaultContainerSize.heigth - tableFooterHeigth;
|
|
49519
|
-
});
|
|
49520
|
-
}, {
|
|
49521
|
-
immediate: false
|
|
49522
|
-
});
|
|
49523
|
-
},
|
|
49524
|
-
destroyed() {
|
|
49525
|
-
this.tableMaxHeigth = 0;
|
|
49526
|
-
this.alreadySetTableHeigth = false;
|
|
49527
49550
|
}
|
|
49528
49551
|
});
|
|
49529
49552
|
;// ./src/components/views/BaseCrudView.vue?vue&type=script&lang=js
|
|
49530
49553
|
/* harmony default export */ var views_BaseCrudViewvue_type_script_lang_js = (BaseCrudViewvue_type_script_lang_js);
|
|
49531
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=
|
|
49532
|
-
var
|
|
49533
|
-
;// ./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=
|
|
49554
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=3d673e31&prod&lang=scss&scoped=true
|
|
49555
|
+
var BaseCrudViewvue_type_style_index_0_id_3d673e31_prod_lang_scss_scoped_true = __webpack_require__(6357);
|
|
49556
|
+
;// ./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=3d673e31&prod&lang=scss&scoped=true
|
|
49534
49557
|
|
|
49535
49558
|
;// ./src/components/views/BaseCrudView.vue
|
|
49536
49559
|
|
|
@@ -49543,11 +49566,11 @@ var BaseCrudViewvue_type_style_index_0_id_80461eb2_prod_lang_scss = __webpack_re
|
|
|
49543
49566
|
|
|
49544
49567
|
var BaseCrudView_component = normalizeComponent(
|
|
49545
49568
|
views_BaseCrudViewvue_type_script_lang_js,
|
|
49546
|
-
|
|
49547
|
-
|
|
49569
|
+
BaseCrudViewvue_type_template_id_3d673e31_scoped_true_render,
|
|
49570
|
+
BaseCrudViewvue_type_template_id_3d673e31_scoped_true_staticRenderFns,
|
|
49548
49571
|
false,
|
|
49549
49572
|
null,
|
|
49550
|
-
|
|
49573
|
+
"3d673e31",
|
|
49551
49574
|
null
|
|
49552
49575
|
|
|
49553
49576
|
)
|
|
@@ -50722,8 +50745,11 @@ class CrudViewConfigs {
|
|
|
50722
50745
|
};
|
|
50723
50746
|
}
|
|
50724
50747
|
validateFiltersKeyHaveChange(filters, currentFilters, keysToValidate = ["search", "primary", "secondary"]) {
|
|
50748
|
+
const filtersToCheck = this.getCurrentFilters(filters);
|
|
50725
50749
|
return keysToValidate.some(key => {
|
|
50726
|
-
if (Array.isArray(filters[key]))
|
|
50750
|
+
if (Array.isArray(filters[key])) {
|
|
50751
|
+
return filtersToCheck[key].some((filterValue, index) => filterValue !== currentFilters[key][index]);
|
|
50752
|
+
}
|
|
50727
50753
|
return filters[key] !== currentFilters[key];
|
|
50728
50754
|
});
|
|
50729
50755
|
}
|
|
@@ -50861,30 +50887,63 @@ class CrudViewConfigs {
|
|
|
50861
50887
|
this.currentFilters.search = filters.search;
|
|
50862
50888
|
return this.currentFilters;
|
|
50863
50889
|
}
|
|
50864
|
-
|
|
50890
|
+
getCurrentFilters(filters) {
|
|
50891
|
+
const currentFilters = {
|
|
50892
|
+
primary: [],
|
|
50893
|
+
secondary: [],
|
|
50894
|
+
search: ""
|
|
50895
|
+
};
|
|
50896
|
+
filters?.primary?.forEach(tab => {
|
|
50897
|
+
tab.filters.forEach(filter => {
|
|
50898
|
+
if (filter?.type === "display") return;
|
|
50899
|
+
currentFilters.primary.push(filter.value);
|
|
50900
|
+
});
|
|
50901
|
+
});
|
|
50902
|
+
filters?.secondary?.forEach(tab => {
|
|
50903
|
+
tab.filters.forEach(filter => {
|
|
50904
|
+
if (filter?.type === "display") return;
|
|
50905
|
+
currentFilters.secondary.push(filter.value);
|
|
50906
|
+
});
|
|
50907
|
+
});
|
|
50908
|
+
currentFilters.search = filters.search;
|
|
50909
|
+
return currentFilters;
|
|
50910
|
+
}
|
|
50911
|
+
async fetchTableOption(tableOption, httpFetcher) {
|
|
50912
|
+
if (!tableOption.endpoint?.length || !tableOption?.endpoint[0]) return;
|
|
50913
|
+
try {
|
|
50914
|
+
const response = await httpFetcher.post(tableOption.endpoint[0], tableOption.endpoint[1] ?? {});
|
|
50915
|
+
tableOption.items = response?.data?.rows ?? [];
|
|
50916
|
+
} catch (error) {
|
|
50917
|
+
console.error(error);
|
|
50918
|
+
}
|
|
50919
|
+
}
|
|
50920
|
+
async fetchTableOptionsData(tableOptions, httpFetcher) {
|
|
50865
50921
|
const optionsPromises = [];
|
|
50866
50922
|
tableOptions.forEach(option => {
|
|
50867
|
-
if (!option.endpoint?.length || !option?.endpoint[0]) return optionsPromises.push(null);
|
|
50868
50923
|
if (option?.ignoreOnFetchFunction) return optionsPromises.push(null);
|
|
50869
|
-
optionsPromises.push(
|
|
50870
|
-
});
|
|
50871
|
-
const optionsData = await Promise.all(optionsPromises);
|
|
50872
|
-
optionsData.forEach((option, index) => {
|
|
50873
|
-
tableOptions[index].items = option?.data?.rows ?? [];
|
|
50924
|
+
optionsPromises.push(this.fetchTableOption(option, httpFetcher));
|
|
50874
50925
|
});
|
|
50926
|
+
await Promise.all(optionsPromises);
|
|
50875
50927
|
}
|
|
50876
|
-
async
|
|
50928
|
+
async fetchFormOption(formOption, httpFetcher) {
|
|
50929
|
+
if (!formOption.endpoint?.length || !formOption?.endpoint[0]) return;
|
|
50930
|
+
try {
|
|
50931
|
+
formOption.loading = true;
|
|
50932
|
+
const response = await httpFetcher.post(formOption.endpoint[0], formOption.endpoint[1] ?? {});
|
|
50933
|
+
formOption.items = response?.data?.rows ?? [];
|
|
50934
|
+
} catch (error) {
|
|
50935
|
+
console.error(error);
|
|
50936
|
+
} finally {
|
|
50937
|
+
formOption.loading = false;
|
|
50938
|
+
}
|
|
50939
|
+
}
|
|
50940
|
+
async fetchFormOptionsData(formOptions, httpFetcher) {
|
|
50877
50941
|
const optionsPromises = [];
|
|
50878
50942
|
formOptions.forEach(option => {
|
|
50879
|
-
option.
|
|
50880
|
-
|
|
50881
|
-
optionsPromises.push(httpFetcher.post(option.endpoint[0], option.endpoint[1] ?? null));
|
|
50882
|
-
});
|
|
50883
|
-
const optionsData = await Promise.all(optionsPromises);
|
|
50884
|
-
optionsData.forEach((option, index) => {
|
|
50885
|
-
formOptions[index].items = option?.data?.rows ?? [];
|
|
50886
|
-
formOptions[index].loading = false;
|
|
50943
|
+
if (option.ignoreOnFetchFunction) return;
|
|
50944
|
+
optionsPromises.push(this.fetchFormOption(option, httpFetcher));
|
|
50887
50945
|
});
|
|
50946
|
+
await Promise.all(optionsPromises);
|
|
50888
50947
|
}
|
|
50889
50948
|
async fetchFilter(filter, httpFetcher) {
|
|
50890
50949
|
if (!filter.endpoint?.length || !filter.endpoint[0]) return;
|
|
@@ -51035,11 +51094,11 @@ class CrudViewConfigs {
|
|
|
51035
51094
|
};
|
|
51036
51095
|
return this;
|
|
51037
51096
|
}
|
|
51038
|
-
setFormModel(model
|
|
51097
|
+
setFormModel(model) {
|
|
51039
51098
|
this.formSettings.baseModel = model;
|
|
51040
51099
|
return this;
|
|
51041
51100
|
}
|
|
51042
|
-
setFormOptions(formOptions
|
|
51101
|
+
setFormOptions(formOptions) {
|
|
51043
51102
|
this.formSettings.formOptions = formOptions;
|
|
51044
51103
|
return this;
|
|
51045
51104
|
}
|
|
@@ -51086,15 +51145,15 @@ class CrudViewConfigs {
|
|
|
51086
51145
|
setPaginationSettings({
|
|
51087
51146
|
page = 1,
|
|
51088
51147
|
itemsPerPage = 15,
|
|
51089
|
-
|
|
51148
|
+
itemsPerPageOptions = [],
|
|
51090
51149
|
serverItemsLength = 0,
|
|
51091
51150
|
sortBy = [],
|
|
51092
51151
|
sortDesc = []
|
|
51093
|
-
}
|
|
51152
|
+
}) {
|
|
51094
51153
|
this.paginationSettings.page = page;
|
|
51095
51154
|
this.paginationSettings.itemsPerPage = itemsPerPage;
|
|
51096
51155
|
this.paginationSettings.serverItemsLength = serverItemsLength;
|
|
51097
|
-
if (
|
|
51156
|
+
if (itemsPerPageOptions?.length) this.paginationSettings.itemsPerPageOptions = itemsPerPageOptions;
|
|
51098
51157
|
if (sortBy.length) this.paginationSettings.sortBy = sortBy;
|
|
51099
51158
|
if (sortDesc.length) this.paginationSettings.sortDesc = sortDesc;
|
|
51100
51159
|
return this;
|