@nethserver/ns8-ui-lib 0.1.20 → 0.1.21
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/ns8-ui-lib.ssr.js
CHANGED
|
@@ -16599,6 +16599,12 @@ var GearsLottie = {
|
|
|
16599
16599
|
type: String,
|
|
16600
16600
|
default: "Try changing your search query"
|
|
16601
16601
|
},
|
|
16602
|
+
filterRowsCallback: {
|
|
16603
|
+
type: Function
|
|
16604
|
+
},
|
|
16605
|
+
customSortTable: {
|
|
16606
|
+
type: Function
|
|
16607
|
+
},
|
|
16602
16608
|
// default value of following props is defined in NsPagination
|
|
16603
16609
|
itemsPerPageLabel: {
|
|
16604
16610
|
type: String,
|
|
@@ -16623,9 +16629,6 @@ var GearsLottie = {
|
|
|
16623
16629
|
pageNumberLabel: {
|
|
16624
16630
|
type: String,
|
|
16625
16631
|
default: undefined
|
|
16626
|
-
},
|
|
16627
|
-
filterRowsCallback: {
|
|
16628
|
-
type: Function
|
|
16629
16632
|
}
|
|
16630
16633
|
},
|
|
16631
16634
|
data: function data() {
|
|
@@ -16773,6 +16776,14 @@ var GearsLottie = {
|
|
|
16773
16776
|
}
|
|
16774
16777
|
|
|
16775
16778
|
var propertyToSort = this.rawColumns[ev.index];
|
|
16779
|
+
|
|
16780
|
+
if (this.customSortTable) {
|
|
16781
|
+
// call custom sort function
|
|
16782
|
+
this.filteredRows.sort(this.customSortTable(propertyToSort));
|
|
16783
|
+
} else {
|
|
16784
|
+
this.filteredRows.sort(this.sortByProperty(propertyToSort));
|
|
16785
|
+
}
|
|
16786
|
+
|
|
16776
16787
|
this.filteredRows.sort(this.sortByProperty(propertyToSort));
|
|
16777
16788
|
|
|
16778
16789
|
if (ev.order === "descending") {
|
|
@@ -17124,7 +17135,7 @@ var __vue_inject_styles__$g = undefined;
|
|
|
17124
17135
|
var __vue_scope_id__$g = undefined;
|
|
17125
17136
|
/* module identifier */
|
|
17126
17137
|
|
|
17127
|
-
var __vue_module_identifier__$g = "data-v-
|
|
17138
|
+
var __vue_module_identifier__$g = "data-v-70a77d4a";
|
|
17128
17139
|
/* functional template */
|
|
17129
17140
|
|
|
17130
17141
|
var __vue_is_functional_template__$g = false;
|
package/package.json
CHANGED
|
@@ -373,6 +373,8 @@ export default {
|
|
|
373
373
|
type: String,
|
|
374
374
|
default: "Try changing your search query",
|
|
375
375
|
},
|
|
376
|
+
filterRowsCallback: { type: Function },
|
|
377
|
+
customSortTable: { type: Function },
|
|
376
378
|
// default value of following props is defined in NsPagination
|
|
377
379
|
itemsPerPageLabel: { type: String, default: undefined },
|
|
378
380
|
rangeOfTotalItemsLabel: { type: String, default: undefined },
|
|
@@ -380,7 +382,6 @@ export default {
|
|
|
380
382
|
backwardText: { type: String, default: undefined },
|
|
381
383
|
forwardText: { type: String, default: undefined },
|
|
382
384
|
pageNumberLabel: { type: String, default: undefined },
|
|
383
|
-
filterRowsCallback: { type: Function },
|
|
384
385
|
},
|
|
385
386
|
data() {
|
|
386
387
|
return {
|
|
@@ -522,6 +523,13 @@ export default {
|
|
|
522
523
|
return;
|
|
523
524
|
}
|
|
524
525
|
const propertyToSort = this.rawColumns[ev.index];
|
|
526
|
+
|
|
527
|
+
if (this.customSortTable) {
|
|
528
|
+
// call custom sort function
|
|
529
|
+
this.filteredRows.sort(this.customSortTable(propertyToSort));
|
|
530
|
+
} else {
|
|
531
|
+
this.filteredRows.sort(this.sortByProperty(propertyToSort));
|
|
532
|
+
}
|
|
525
533
|
this.filteredRows.sort(this.sortByProperty(propertyToSort));
|
|
526
534
|
|
|
527
535
|
if (ev.order === "descending") {
|
|
@@ -531,4 +539,4 @@ export default {
|
|
|
531
539
|
},
|
|
532
540
|
},
|
|
533
541
|
};
|
|
534
|
-
</script>
|
|
542
|
+
</script>
|