@znap/components-vue2 1.1.0 → 1.1.2
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 +191 -251
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +191 -251
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +12 -12
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/components/views/BaseCrudView.vue.d.ts +6 -4
- package/dist/types/utils/views/generateCrudViewConfigs.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -1073,69 +1073,6 @@ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
|
1073
1073
|
})));
|
|
1074
1074
|
|
|
1075
1075
|
|
|
1076
|
-
/***/ }),
|
|
1077
|
-
|
|
1078
|
-
/***/ 531:
|
|
1079
|
-
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
1080
|
-
|
|
1081
|
-
"use strict";
|
|
1082
|
-
|
|
1083
|
-
var $ = __webpack_require__(6518);
|
|
1084
|
-
var call = __webpack_require__(9565);
|
|
1085
|
-
var aCallable = __webpack_require__(9306);
|
|
1086
|
-
var anObject = __webpack_require__(8551);
|
|
1087
|
-
var getIteratorDirect = __webpack_require__(1767);
|
|
1088
|
-
var getIteratorFlattenable = __webpack_require__(8646);
|
|
1089
|
-
var createIteratorProxy = __webpack_require__(9462);
|
|
1090
|
-
var iteratorClose = __webpack_require__(9539);
|
|
1091
|
-
var IS_PURE = __webpack_require__(6395);
|
|
1092
|
-
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
|
|
1093
|
-
|
|
1094
|
-
var flatMapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('flatMap', TypeError);
|
|
1095
|
-
|
|
1096
|
-
var IteratorProxy = createIteratorProxy(function () {
|
|
1097
|
-
var iterator = this.iterator;
|
|
1098
|
-
var mapper = this.mapper;
|
|
1099
|
-
var result, inner;
|
|
1100
|
-
|
|
1101
|
-
while (true) {
|
|
1102
|
-
if (inner = this.inner) try {
|
|
1103
|
-
result = anObject(call(inner.next, inner.iterator));
|
|
1104
|
-
if (!result.done) return result.value;
|
|
1105
|
-
this.inner = null;
|
|
1106
|
-
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
1107
|
-
|
|
1108
|
-
result = anObject(call(this.next, iterator));
|
|
1109
|
-
|
|
1110
|
-
if (this.done = !!result.done) return;
|
|
1111
|
-
|
|
1112
|
-
try {
|
|
1113
|
-
this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false);
|
|
1114
|
-
} catch (error) { iteratorClose(iterator, 'throw', error); }
|
|
1115
|
-
}
|
|
1116
|
-
});
|
|
1117
|
-
|
|
1118
|
-
// `Iterator.prototype.flatMap` method
|
|
1119
|
-
// https://tc39.es/ecma262/#sec-iterator.prototype.flatmap
|
|
1120
|
-
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || flatMapWithoutClosingOnEarlyError }, {
|
|
1121
|
-
flatMap: function flatMap(mapper) {
|
|
1122
|
-
anObject(this);
|
|
1123
|
-
try {
|
|
1124
|
-
aCallable(mapper);
|
|
1125
|
-
} catch (error) {
|
|
1126
|
-
iteratorClose(this, 'throw', error);
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
if (flatMapWithoutClosingOnEarlyError) return call(flatMapWithoutClosingOnEarlyError, this, mapper);
|
|
1130
|
-
|
|
1131
|
-
return new IteratorProxy(getIteratorDirect(this), {
|
|
1132
|
-
mapper: mapper,
|
|
1133
|
-
inner: null
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
1076
|
/***/ }),
|
|
1140
1077
|
|
|
1141
1078
|
/***/ 589:
|
|
@@ -1628,27 +1565,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
1628
1565
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
1629
1566
|
var update = add("421265eb", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1630
1567
|
|
|
1631
|
-
/***/ }),
|
|
1632
|
-
|
|
1633
|
-
/***/ 837:
|
|
1634
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1635
|
-
|
|
1636
|
-
"use strict";
|
|
1637
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1638
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
|
1639
|
-
/* 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__);
|
|
1640
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
|
1641
|
-
/* 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__);
|
|
1642
|
-
// Imports
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
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()));
|
|
1646
|
-
// Module
|
|
1647
|
-
___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}", ""]);
|
|
1648
|
-
// Exports
|
|
1649
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
1568
|
/***/ }),
|
|
1653
1569
|
|
|
1654
1570
|
/***/ 838:
|
|
@@ -5811,69 +5727,21 @@ ___CSS_LOADER_EXPORT___.push([module.id, "/*!\n * Copyright (c) HANDSONCODE sp.
|
|
|
5811
5727
|
/***/ 2475:
|
|
5812
5728
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
5813
5729
|
|
|
5814
|
-
|
|
5815
|
-
//! locale : Uzbek Latin [uz-latn]
|
|
5816
|
-
//! author : Rasulbek Mirzayev : github.com/Rasulbeeek
|
|
5817
|
-
|
|
5818
|
-
;(function (global, factory) {
|
|
5819
|
-
true ? factory(__webpack_require__(5093)) :
|
|
5820
|
-
0
|
|
5821
|
-
}(this, (function (moment) { 'use strict';
|
|
5822
|
-
|
|
5823
|
-
//! moment.js locale configuration
|
|
5730
|
+
"use strict";
|
|
5824
5731
|
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
),
|
|
5829
|
-
monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
|
|
5830
|
-
weekdays:
|
|
5831
|
-
'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
|
|
5832
|
-
'_'
|
|
5833
|
-
),
|
|
5834
|
-
weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
|
|
5835
|
-
weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
|
|
5836
|
-
longDateFormat: {
|
|
5837
|
-
LT: 'HH:mm',
|
|
5838
|
-
LTS: 'HH:mm:ss',
|
|
5839
|
-
L: 'DD/MM/YYYY',
|
|
5840
|
-
LL: 'D MMMM YYYY',
|
|
5841
|
-
LLL: 'D MMMM YYYY HH:mm',
|
|
5842
|
-
LLLL: 'D MMMM YYYY, dddd HH:mm',
|
|
5843
|
-
},
|
|
5844
|
-
calendar: {
|
|
5845
|
-
sameDay: '[Bugun soat] LT [da]',
|
|
5846
|
-
nextDay: '[Ertaga] LT [da]',
|
|
5847
|
-
nextWeek: 'dddd [kuni soat] LT [da]',
|
|
5848
|
-
lastDay: '[Kecha soat] LT [da]',
|
|
5849
|
-
lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
|
|
5850
|
-
sameElse: 'L',
|
|
5851
|
-
},
|
|
5852
|
-
relativeTime: {
|
|
5853
|
-
future: 'Yaqin %s ichida',
|
|
5854
|
-
past: 'Bir necha %s oldin',
|
|
5855
|
-
s: 'soniya',
|
|
5856
|
-
ss: '%d soniya',
|
|
5857
|
-
m: 'bir daqiqa',
|
|
5858
|
-
mm: '%d daqiqa',
|
|
5859
|
-
h: 'bir soat',
|
|
5860
|
-
hh: '%d soat',
|
|
5861
|
-
d: 'bir kun',
|
|
5862
|
-
dd: '%d kun',
|
|
5863
|
-
M: 'bir oy',
|
|
5864
|
-
MM: '%d oy',
|
|
5865
|
-
y: 'bir yil',
|
|
5866
|
-
yy: '%d yil',
|
|
5867
|
-
},
|
|
5868
|
-
week: {
|
|
5869
|
-
dow: 1, // Monday is the first day of the week.
|
|
5870
|
-
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
5871
|
-
},
|
|
5872
|
-
});
|
|
5732
|
+
var $ = __webpack_require__(6518);
|
|
5733
|
+
var isSupersetOf = __webpack_require__(8527);
|
|
5734
|
+
var setMethodAcceptSetLike = __webpack_require__(4916);
|
|
5873
5735
|
|
|
5874
|
-
|
|
5736
|
+
var INCORRECT = !setMethodAcceptSetLike('isSupersetOf', function (result) {
|
|
5737
|
+
return !result;
|
|
5738
|
+
});
|
|
5875
5739
|
|
|
5876
|
-
|
|
5740
|
+
// `Set.prototype.isSupersetOf` method
|
|
5741
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
5742
|
+
$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
5743
|
+
isSupersetOf: isSupersetOf
|
|
5744
|
+
});
|
|
5877
5745
|
|
|
5878
5746
|
|
|
5879
5747
|
/***/ }),
|
|
@@ -7589,6 +7457,22 @@ module.exports = function difference(other) {
|
|
|
7589
7457
|
};
|
|
7590
7458
|
|
|
7591
7459
|
|
|
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
|
+
|
|
7592
7476
|
/***/ }),
|
|
7593
7477
|
|
|
7594
7478
|
/***/ 3478:
|
|
@@ -10758,21 +10642,69 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".v-tooltip{display:none}.v-tooltip--at
|
|
|
10758
10642
|
/***/ 4856:
|
|
10759
10643
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
10760
10644
|
|
|
10761
|
-
|
|
10645
|
+
//! moment.js locale configuration
|
|
10646
|
+
//! locale : Uzbek Latin [uz-latn]
|
|
10647
|
+
//! author : Rasulbek Mirzayev : github.com/Rasulbeeek
|
|
10762
10648
|
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10649
|
+
;(function (global, factory) {
|
|
10650
|
+
true ? factory(__webpack_require__(5093)) :
|
|
10651
|
+
0
|
|
10652
|
+
}(this, (function (moment) { 'use strict';
|
|
10766
10653
|
|
|
10767
|
-
|
|
10768
|
-
return !result;
|
|
10769
|
-
});
|
|
10654
|
+
//! moment.js locale configuration
|
|
10770
10655
|
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10656
|
+
var uzLatn = moment.defineLocale('uz-latn', {
|
|
10657
|
+
months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
|
|
10658
|
+
'_'
|
|
10659
|
+
),
|
|
10660
|
+
monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
|
|
10661
|
+
weekdays:
|
|
10662
|
+
'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
|
|
10663
|
+
'_'
|
|
10664
|
+
),
|
|
10665
|
+
weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
|
|
10666
|
+
weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
|
|
10667
|
+
longDateFormat: {
|
|
10668
|
+
LT: 'HH:mm',
|
|
10669
|
+
LTS: 'HH:mm:ss',
|
|
10670
|
+
L: 'DD/MM/YYYY',
|
|
10671
|
+
LL: 'D MMMM YYYY',
|
|
10672
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
10673
|
+
LLLL: 'D MMMM YYYY, dddd HH:mm',
|
|
10674
|
+
},
|
|
10675
|
+
calendar: {
|
|
10676
|
+
sameDay: '[Bugun soat] LT [da]',
|
|
10677
|
+
nextDay: '[Ertaga] LT [da]',
|
|
10678
|
+
nextWeek: 'dddd [kuni soat] LT [da]',
|
|
10679
|
+
lastDay: '[Kecha soat] LT [da]',
|
|
10680
|
+
lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
|
|
10681
|
+
sameElse: 'L',
|
|
10682
|
+
},
|
|
10683
|
+
relativeTime: {
|
|
10684
|
+
future: 'Yaqin %s ichida',
|
|
10685
|
+
past: 'Bir necha %s oldin',
|
|
10686
|
+
s: 'soniya',
|
|
10687
|
+
ss: '%d soniya',
|
|
10688
|
+
m: 'bir daqiqa',
|
|
10689
|
+
mm: '%d daqiqa',
|
|
10690
|
+
h: 'bir soat',
|
|
10691
|
+
hh: '%d soat',
|
|
10692
|
+
d: 'bir kun',
|
|
10693
|
+
dd: '%d kun',
|
|
10694
|
+
M: 'bir oy',
|
|
10695
|
+
MM: '%d oy',
|
|
10696
|
+
y: 'bir yil',
|
|
10697
|
+
yy: '%d yil',
|
|
10698
|
+
},
|
|
10699
|
+
week: {
|
|
10700
|
+
dow: 1, // Monday is the first day of the week.
|
|
10701
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
10702
|
+
},
|
|
10703
|
+
});
|
|
10704
|
+
|
|
10705
|
+
return uzLatn;
|
|
10706
|
+
|
|
10707
|
+
})));
|
|
10776
10708
|
|
|
10777
10709
|
|
|
10778
10710
|
/***/ }),
|
|
@@ -17375,8 +17307,8 @@ var map = {
|
|
|
17375
17307
|
"./ur": 158,
|
|
17376
17308
|
"./ur.js": 158,
|
|
17377
17309
|
"./uz": 7609,
|
|
17378
|
-
"./uz-latn":
|
|
17379
|
-
"./uz-latn.js":
|
|
17310
|
+
"./uz-latn": 4856,
|
|
17311
|
+
"./uz-latn.js": 4856,
|
|
17380
17312
|
"./uz.js": 7609,
|
|
17381
17313
|
"./vi": 1135,
|
|
17382
17314
|
"./vi.js": 1135,
|
|
@@ -19737,22 +19669,6 @@ var update = add("c605e776", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
19737
19669
|
|
|
19738
19670
|
/***/ }),
|
|
19739
19671
|
|
|
19740
|
-
/***/ 6383:
|
|
19741
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19742
|
-
|
|
19743
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
19744
|
-
|
|
19745
|
-
// load the styles
|
|
19746
|
-
var content = __webpack_require__(837);
|
|
19747
|
-
if(content.__esModule) content = content.default;
|
|
19748
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
19749
|
-
if(content.locals) module.exports = content.locals;
|
|
19750
|
-
// add the styles to the DOM
|
|
19751
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
19752
|
-
var update = add("64114d76", content, true, {"sourceMap":false,"shadowMode":false});
|
|
19753
|
-
|
|
19754
|
-
/***/ }),
|
|
19755
|
-
|
|
19756
19672
|
/***/ 6395:
|
|
19757
19673
|
/***/ (function(module) {
|
|
19758
19674
|
|
|
@@ -22546,6 +22462,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".container{width:100%;padding:12px;mar
|
|
|
22546
22462
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22547
22463
|
|
|
22548
22464
|
|
|
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
|
+
|
|
22549
22486
|
/***/ }),
|
|
22550
22487
|
|
|
22551
22488
|
/***/ 7588:
|
|
@@ -24703,25 +24640,6 @@ var WeakMap = globalThis.WeakMap;
|
|
|
24703
24640
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
24704
24641
|
|
|
24705
24642
|
|
|
24706
|
-
/***/ }),
|
|
24707
|
-
|
|
24708
|
-
/***/ 8646:
|
|
24709
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24710
|
-
|
|
24711
|
-
"use strict";
|
|
24712
|
-
|
|
24713
|
-
var call = __webpack_require__(9565);
|
|
24714
|
-
var anObject = __webpack_require__(8551);
|
|
24715
|
-
var getIteratorDirect = __webpack_require__(1767);
|
|
24716
|
-
var getIteratorMethod = __webpack_require__(851);
|
|
24717
|
-
|
|
24718
|
-
module.exports = function (obj, stringHandling) {
|
|
24719
|
-
if (!stringHandling || typeof obj !== 'string') anObject(obj);
|
|
24720
|
-
var method = getIteratorMethod(obj);
|
|
24721
|
-
return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj));
|
|
24722
|
-
};
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
24643
|
/***/ }),
|
|
24726
24644
|
|
|
24727
24645
|
/***/ 8671:
|
|
@@ -43608,7 +43526,7 @@ const VTabs_baseMixins = mixins(colorable, proxyable, themeable);
|
|
|
43608
43526
|
}, [this.genBar(tab, slider), this.genItems(items, item)]);
|
|
43609
43527
|
}
|
|
43610
43528
|
}));
|
|
43611
|
-
;// ./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=
|
|
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=80461eb2
|
|
43612
43530
|
|
|
43613
43531
|
|
|
43614
43532
|
|
|
@@ -43630,7 +43548,7 @@ const VTabs_baseMixins = mixins(colorable, proxyable, themeable);
|
|
|
43630
43548
|
|
|
43631
43549
|
|
|
43632
43550
|
|
|
43633
|
-
var
|
|
43551
|
+
var BaseCrudViewvue_type_template_id_80461eb2_render = function render() {
|
|
43634
43552
|
var _vm = this,
|
|
43635
43553
|
_c = _vm._self._c;
|
|
43636
43554
|
return _c('BaseViewLayout', {
|
|
@@ -43697,7 +43615,7 @@ var BaseCrudViewvue_type_template_id_64fd7006_render = function render() {
|
|
|
43697
43615
|
return _vm.showConfirmDeleteDialog();
|
|
43698
43616
|
}
|
|
43699
43617
|
}
|
|
43700
|
-
}) : _vm._e(), _vm.
|
|
43618
|
+
}) : _vm._e(), _vm.hasSecondaryFilters ? _c('FiltersButton', {
|
|
43701
43619
|
attrs: {
|
|
43702
43620
|
"buttonClass": "mr-4 pa-0"
|
|
43703
43621
|
},
|
|
@@ -43758,7 +43676,7 @@ var BaseCrudViewvue_type_template_id_64fd7006_render = function render() {
|
|
|
43758
43676
|
}, {
|
|
43759
43677
|
key: "primary-filters",
|
|
43760
43678
|
fn: function () {
|
|
43761
|
-
return [_vm.
|
|
43679
|
+
return [_vm.hasPrimaryFilters ? _c('section', [_c(VTabs_VTabs, {
|
|
43762
43680
|
model: {
|
|
43763
43681
|
value: _vm.primaryFilterTab,
|
|
43764
43682
|
callback: function ($$v) {
|
|
@@ -44238,8 +44156,22 @@ var BaseCrudViewvue_type_template_id_64fd7006_render = function render() {
|
|
|
44238
44156
|
}
|
|
44239
44157
|
})], 1);
|
|
44240
44158
|
};
|
|
44241
|
-
var
|
|
44159
|
+
var BaseCrudViewvue_type_template_id_80461eb2_staticRenderFns = [];
|
|
44242
44160
|
|
|
44161
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
44162
|
+
var es_set_difference_v2 = __webpack_require__(7642);
|
|
44163
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
|
|
44164
|
+
var es_set_intersection_v2 = __webpack_require__(8004);
|
|
44165
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
|
|
44166
|
+
var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
|
|
44167
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
|
|
44168
|
+
var es_set_is_subset_of_v2 = __webpack_require__(5876);
|
|
44169
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
|
|
44170
|
+
var es_set_is_superset_of_v2 = __webpack_require__(2475);
|
|
44171
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
|
|
44172
|
+
var es_set_symmetric_difference_v2 = __webpack_require__(5024);
|
|
44173
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
|
|
44174
|
+
var es_set_union_v2 = __webpack_require__(1698);
|
|
44243
44175
|
;// ./node_modules/vuetify/lib/components/VCard/index.js
|
|
44244
44176
|
|
|
44245
44177
|
|
|
@@ -49049,6 +48981,14 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49049
48981
|
|
|
49050
48982
|
|
|
49051
48983
|
|
|
48984
|
+
|
|
48985
|
+
|
|
48986
|
+
|
|
48987
|
+
|
|
48988
|
+
|
|
48989
|
+
|
|
48990
|
+
|
|
48991
|
+
|
|
49052
48992
|
/* harmony default export */ var BaseCrudViewvue_type_script_lang_js = ({
|
|
49053
48993
|
props: {
|
|
49054
48994
|
tableIcon: {
|
|
@@ -49060,7 +49000,7 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49060
49000
|
required: true
|
|
49061
49001
|
},
|
|
49062
49002
|
endpoint: {
|
|
49063
|
-
type:
|
|
49003
|
+
type: Array,
|
|
49064
49004
|
required: true
|
|
49065
49005
|
},
|
|
49066
49006
|
filters: {
|
|
@@ -49114,7 +49054,7 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49114
49054
|
required: true
|
|
49115
49055
|
},
|
|
49116
49056
|
rowsChanged: {
|
|
49117
|
-
type:
|
|
49057
|
+
type: Set,
|
|
49118
49058
|
required: true
|
|
49119
49059
|
},
|
|
49120
49060
|
onReload: {
|
|
@@ -49275,6 +49215,12 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49275
49215
|
headersArray.push(header);
|
|
49276
49216
|
}
|
|
49277
49217
|
return headersArray;
|
|
49218
|
+
},
|
|
49219
|
+
hasPrimaryFilters() {
|
|
49220
|
+
return this.filters?.primary.some(tab => tab.filters.length);
|
|
49221
|
+
},
|
|
49222
|
+
hasSecondaryFilters() {
|
|
49223
|
+
return this.filters?.secondary.some(tab => tab.filters.length);
|
|
49278
49224
|
}
|
|
49279
49225
|
},
|
|
49280
49226
|
methods: {
|
|
@@ -49582,9 +49528,9 @@ var BaseCrudSecondaryFiltersDrawer_component = normalizeComponent(
|
|
|
49582
49528
|
});
|
|
49583
49529
|
;// ./src/components/views/BaseCrudView.vue?vue&type=script&lang=js
|
|
49584
49530
|
/* harmony default export */ var views_BaseCrudViewvue_type_script_lang_js = (BaseCrudViewvue_type_script_lang_js);
|
|
49585
|
-
// 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=
|
|
49586
|
-
var
|
|
49587
|
-
;// ./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=
|
|
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=80461eb2&prod&lang=scss
|
|
49532
|
+
var BaseCrudViewvue_type_style_index_0_id_80461eb2_prod_lang_scss = __webpack_require__(3450);
|
|
49533
|
+
;// ./src/components/views/BaseCrudView.vue?vue&type=style&index=0&id=80461eb2&prod&lang=scss
|
|
49588
49534
|
|
|
49589
49535
|
;// ./src/components/views/BaseCrudView.vue
|
|
49590
49536
|
|
|
@@ -49597,8 +49543,8 @@ var BaseCrudViewvue_type_style_index_0_id_64fd7006_prod_lang_scss = __webpack_re
|
|
|
49597
49543
|
|
|
49598
49544
|
var BaseCrudView_component = normalizeComponent(
|
|
49599
49545
|
views_BaseCrudViewvue_type_script_lang_js,
|
|
49600
|
-
|
|
49601
|
-
|
|
49546
|
+
BaseCrudViewvue_type_template_id_80461eb2_render,
|
|
49547
|
+
BaseCrudViewvue_type_template_id_80461eb2_staticRenderFns,
|
|
49602
49548
|
false,
|
|
49603
49549
|
null,
|
|
49604
49550
|
null,
|
|
@@ -50651,22 +50597,6 @@ function _defineProperty(e, r, t) {
|
|
|
50651
50597
|
}) : e[r] = t, e;
|
|
50652
50598
|
}
|
|
50653
50599
|
|
|
50654
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.flat-map.js
|
|
50655
|
-
var es_iterator_flat_map = __webpack_require__(531);
|
|
50656
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
50657
|
-
var es_set_difference_v2 = __webpack_require__(7642);
|
|
50658
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js
|
|
50659
|
-
var es_set_intersection_v2 = __webpack_require__(8004);
|
|
50660
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js
|
|
50661
|
-
var es_set_is_disjoint_from_v2 = __webpack_require__(3853);
|
|
50662
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js
|
|
50663
|
-
var es_set_is_subset_of_v2 = __webpack_require__(5876);
|
|
50664
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js
|
|
50665
|
-
var es_set_is_superset_of_v2 = __webpack_require__(4856);
|
|
50666
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js
|
|
50667
|
-
var es_set_symmetric_difference_v2 = __webpack_require__(5024);
|
|
50668
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
|
|
50669
|
-
var es_set_union_v2 = __webpack_require__(1698);
|
|
50670
50600
|
;// ./src/utils/views/generateCrudViewConfigs.ts
|
|
50671
50601
|
|
|
50672
50602
|
|
|
@@ -50681,7 +50611,6 @@ var es_set_union_v2 = __webpack_require__(1698);
|
|
|
50681
50611
|
|
|
50682
50612
|
|
|
50683
50613
|
|
|
50684
|
-
|
|
50685
50614
|
class CrudViewConfigs {
|
|
50686
50615
|
constructor({
|
|
50687
50616
|
viewTitle,
|
|
@@ -50720,8 +50649,14 @@ class CrudViewConfigs {
|
|
|
50720
50649
|
_defineProperty(this, "searchColums", []);
|
|
50721
50650
|
_defineProperty(this, "rowsChanged", new Set());
|
|
50722
50651
|
_defineProperty(this, "filters", {
|
|
50723
|
-
primary: [
|
|
50724
|
-
|
|
50652
|
+
primary: [{
|
|
50653
|
+
filters: [],
|
|
50654
|
+
title: "Filtros Principais"
|
|
50655
|
+
}],
|
|
50656
|
+
secondary: [{
|
|
50657
|
+
filters: [],
|
|
50658
|
+
title: "Filtros Secundários"
|
|
50659
|
+
}],
|
|
50725
50660
|
search: ""
|
|
50726
50661
|
});
|
|
50727
50662
|
_defineProperty(this, "currentFilters", {
|
|
@@ -50951,36 +50886,33 @@ class CrudViewConfigs {
|
|
|
50951
50886
|
formOptions[index].loading = false;
|
|
50952
50887
|
});
|
|
50953
50888
|
}
|
|
50954
|
-
async
|
|
50955
|
-
|
|
50956
|
-
|
|
50957
|
-
|
|
50958
|
-
filter.props.loading = true;
|
|
50959
|
-
const response = await httpFetcher.post(filter.endpoint[0], filter.endpoint[1] ?? {});
|
|
50960
|
-
return [index, response?.data];
|
|
50961
|
-
}) ?? [];
|
|
50962
|
-
const secondaryFiltersPromises = filters?.secondary?.flatMap(async (filter, index) => {
|
|
50963
|
-
if (!filter.endpoint?.length || !filter.endpoint[0]) return [index, null];
|
|
50964
|
-
if (filter.ignoreOnFetchFunction || filter?.type === "display") return [index, null];
|
|
50965
|
-
filter.props.loading = true;
|
|
50889
|
+
async fetchFilter(filter, httpFetcher) {
|
|
50890
|
+
if (!filter.endpoint?.length || !filter.endpoint[0]) return;
|
|
50891
|
+
try {
|
|
50892
|
+
filter.componentProps.loading = true;
|
|
50966
50893
|
const response = await httpFetcher.post(filter.endpoint[0], filter.endpoint[1] ?? {});
|
|
50967
|
-
|
|
50968
|
-
})
|
|
50969
|
-
|
|
50970
|
-
|
|
50971
|
-
|
|
50972
|
-
|
|
50973
|
-
|
|
50974
|
-
|
|
50975
|
-
|
|
50894
|
+
filter.items = response?.data?.rows ?? [];
|
|
50895
|
+
} catch (error) {
|
|
50896
|
+
console.error(error);
|
|
50897
|
+
} finally {
|
|
50898
|
+
filter.componentProps.loading = false;
|
|
50899
|
+
}
|
|
50900
|
+
}
|
|
50901
|
+
async fetchFiltersData(filters, httpFetcher) {
|
|
50902
|
+
const filterPromises = [];
|
|
50903
|
+
filters.primary.forEach(tab => {
|
|
50904
|
+
tab.filters.forEach(filter => {
|
|
50905
|
+
if (filter.ignoreOnFetchFunction) return;
|
|
50906
|
+
filterPromises.push(this.fetchFilter(filter, httpFetcher));
|
|
50907
|
+
});
|
|
50976
50908
|
});
|
|
50977
|
-
|
|
50978
|
-
|
|
50979
|
-
|
|
50980
|
-
|
|
50981
|
-
|
|
50982
|
-
filters.secondary[filterIndex].props.loading = false;
|
|
50909
|
+
filters.secondary.forEach(tab => {
|
|
50910
|
+
tab.filters.forEach(filter => {
|
|
50911
|
+
if (filter.ignoreOnFetchFunction) return;
|
|
50912
|
+
filterPromises.push(this.fetchFilter(filter, httpFetcher));
|
|
50913
|
+
});
|
|
50983
50914
|
});
|
|
50915
|
+
await Promise.all([filterPromises]);
|
|
50984
50916
|
}
|
|
50985
50917
|
static generateEndpoint(url = "", params = {
|
|
50986
50918
|
conditions: []
|
|
@@ -51020,10 +50952,18 @@ class CrudViewConfigs {
|
|
|
51020
50952
|
this.filters.primary.push(tab);
|
|
51021
50953
|
return this;
|
|
51022
50954
|
}
|
|
50955
|
+
addPrimaryFilter(filterData) {
|
|
50956
|
+
this.filters.primary[0].filters.push(this.generateFilter(filterData));
|
|
50957
|
+
return this;
|
|
50958
|
+
}
|
|
51023
50959
|
addNewSecondaryFilterTab(tab) {
|
|
51024
50960
|
this.filters.secondary.push(tab);
|
|
51025
50961
|
return this;
|
|
51026
50962
|
}
|
|
50963
|
+
addSecondaryFilter(filterData) {
|
|
50964
|
+
this.filters.secondary[0].filters.push(this.generateFilter(filterData));
|
|
50965
|
+
return this;
|
|
50966
|
+
}
|
|
51027
50967
|
generateFilter({
|
|
51028
50968
|
column = "",
|
|
51029
50969
|
component,
|