verben-authentication-ui 0.8.0 → 0.8.1
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/esm2022/lib/components/role-control/role-control.component.mjs +31 -19
- package/esm2022/lib/models/SearchPropertyValue.mjs +1 -1
- package/esm2022/lib/models/SortDirection.mjs +7 -0
- package/fesm2022/verben-authentication-ui.mjs +36 -18
- package/fesm2022/verben-authentication-ui.mjs.map +1 -1
- package/lib/components/user-management/services/user-management.service.d.ts +1 -1
- package/lib/models/SearchPropertyValue.d.ts +2 -0
- package/lib/models/SortDirection.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VhcmNoUHJvcGVydHlWYWx1ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZlcmJlbi1hdXRoZW50aWNhdGlvbi11aS9zcmMvbGliL21vZGVscy9TZWFyY2hQcm9wZXJ0eVZhbHVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTZWFyY2hPcGVyYXRvciB9IGZyb20gJy4vU2VhcmNoT3BlcmF0b3InO1xuaW1wb3J0IHsgU2VhcmNoUHJvcGVydHlTaWduIH0gZnJvbSAnLi9TZWFyY2hQcm9wZXJ0eVNpZ24nO1xuaW1wb3J0IHsgU2VhcmNoUHJvcGVydHlWYWx1ZVR5cGUgfSBmcm9tICcuL1NlYXJjaFByb3BlcnR5VmFsdWVUeXBlJztcbmltcG9ydCB7IFNvcnREaXJlY3Rpb24gfSBmcm9tICcuL1NvcnREaXJlY3Rpb24nO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNlYXJjaFByb3BlcnR5VmFsdWUge1xuICBQcm9wZXJ0eU5hbWU6IHN0cmluZztcbiAgRW50aXR5VmFsdWU6IHN0cmluZztcbiAgVHlwZT86IFNlYXJjaFByb3BlcnR5VmFsdWVUeXBlO1xuICBPcGVyYXRvcjogU2VhcmNoT3BlcmF0b3I7XG4gIFNpZ246IFNlYXJjaFByb3BlcnR5U2lnbjtcbiAgU29ydD86IFNvcnREaXJlY3Rpb247XG59XG4iXX0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var SortDirection;
|
|
2
|
+
(function (SortDirection) {
|
|
3
|
+
SortDirection["Asc"] = "Asc";
|
|
4
|
+
SortDirection["Desc"] = "Desc";
|
|
5
|
+
SortDirection["None"] = "None";
|
|
6
|
+
})(SortDirection || (SortDirection = {}));
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29ydERpcmVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZlcmJlbi1hdXRoZW50aWNhdGlvbi11aS9zcmMvbGliL21vZGVscy9Tb3J0RGlyZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDdkIsNEJBQVcsQ0FBQTtJQUNYLDhCQUFhLENBQUE7SUFDYiw4QkFBYSxDQUFBO0FBQ2YsQ0FBQyxFQUpXLGFBQWEsS0FBYixhQUFhLFFBSXhCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gU29ydERpcmVjdGlvbiB7XG4gIEFzYyA9ICdBc2MnLFxuICBEZXNjID0gJ0Rlc2MnLFxuICBOb25lID0gJ05vbmUnLFxufVxuIl19
|
|
@@ -4570,6 +4570,13 @@ var ChildrenType;
|
|
|
4570
4570
|
ChildrenType["Action"] = "Action";
|
|
4571
4571
|
})(ChildrenType || (ChildrenType = {}));
|
|
4572
4572
|
|
|
4573
|
+
var SortDirection;
|
|
4574
|
+
(function (SortDirection) {
|
|
4575
|
+
SortDirection["Asc"] = "Asc";
|
|
4576
|
+
SortDirection["Desc"] = "Desc";
|
|
4577
|
+
SortDirection["None"] = "None";
|
|
4578
|
+
})(SortDirection || (SortDirection = {}));
|
|
4579
|
+
|
|
4573
4580
|
class RoleControlService {
|
|
4574
4581
|
constructor() { }
|
|
4575
4582
|
get roleColumns() {
|
|
@@ -5680,19 +5687,24 @@ class RoleControlComponent {
|
|
|
5680
5687
|
Operator: SearchOperator.And,
|
|
5681
5688
|
Sign: SearchPropertySign.EQ,
|
|
5682
5689
|
});
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5690
|
+
for (let sort of this.currentSorts) {
|
|
5691
|
+
payload.push({
|
|
5692
|
+
PropertyName: sort.name,
|
|
5693
|
+
EntityValue: '',
|
|
5694
|
+
Operator: SearchOperator.And,
|
|
5695
|
+
Sign: SearchPropertySign.EQ,
|
|
5696
|
+
Sort: sort.value.toLowerCase() == SortDirection.Asc.toLowerCase()
|
|
5697
|
+
? SortDirection.Asc
|
|
5698
|
+
: sort.value.toLowerCase() == SortDirection.Desc.toLowerCase()
|
|
5699
|
+
? SortDirection.Desc
|
|
5700
|
+
: SortDirection.None,
|
|
5701
|
+
});
|
|
5702
|
+
}
|
|
5689
5703
|
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
5690
5704
|
this.utilService.sendBI(true);
|
|
5691
5705
|
const res = searchTermExists
|
|
5692
5706
|
? await this.server.get(`Role/GetRolesWithParam/${this.currentSearchTerm.trim()}/0/${this.pageSize}`)
|
|
5693
|
-
: await this.server.post(
|
|
5694
|
-
? `Role/SearchRoles/0/${this.pageSize}/${sortParam.Param}/${sortParam.Order}`
|
|
5695
|
-
: `Role/SearchRoles/0/${this.pageSize}`, payload);
|
|
5707
|
+
: await this.server.post(`Role/SearchRoles/0/${this.pageSize}`, payload);
|
|
5696
5708
|
this.utilService.sendBI(false);
|
|
5697
5709
|
if (res instanceof ErrorResponse) {
|
|
5698
5710
|
this.currentFilters = [];
|
|
@@ -5727,19 +5739,24 @@ class RoleControlComponent {
|
|
|
5727
5739
|
Operator: SearchOperator.And,
|
|
5728
5740
|
Sign: SearchPropertySign.EQ,
|
|
5729
5741
|
});
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5742
|
+
for (let sort of this.currentSorts) {
|
|
5743
|
+
payload.push({
|
|
5744
|
+
PropertyName: sort.name,
|
|
5745
|
+
EntityValue: '',
|
|
5746
|
+
Operator: SearchOperator.And,
|
|
5747
|
+
Sign: SearchPropertySign.EQ,
|
|
5748
|
+
Sort: sort.value.toLowerCase() == SortDirection.Asc.toLowerCase()
|
|
5749
|
+
? SortDirection.Asc
|
|
5750
|
+
: sort.value.toLowerCase() == SortDirection.Desc.toLowerCase()
|
|
5751
|
+
? SortDirection.Desc
|
|
5752
|
+
: SortDirection.None,
|
|
5753
|
+
});
|
|
5754
|
+
}
|
|
5736
5755
|
const searchTermExists = this.currentSearchTerm.trim().length > 0;
|
|
5737
5756
|
this.utilService.sendBI(true);
|
|
5738
5757
|
const res = searchTermExists
|
|
5739
5758
|
? await this.server.get(`Role/GetRolesWithParam/${this.currentSearchTerm.trim()}/${this.pageState.Skip}/${this.pageSize}`)
|
|
5740
|
-
: await this.server.post(
|
|
5741
|
-
? `Role/SearchRoles/${this.pageState.Skip}/${this.pageSize}/${sortParam.Param}/${sortParam.Order}`
|
|
5742
|
-
: `Role/SearchRoles/${this.pageState.Skip}/${this.pageSize}`, payload);
|
|
5759
|
+
: await this.server.post(`Role/SearchRoles/${this.pageState.Skip}/${this.pageSize}`, payload);
|
|
5743
5760
|
this.utilService.sendBI(false);
|
|
5744
5761
|
if (res instanceof ErrorResponse) {
|
|
5745
5762
|
return undefined;
|
|
@@ -5758,6 +5775,7 @@ class RoleControlComponent {
|
|
|
5758
5775
|
}
|
|
5759
5776
|
onSortUpdated(updatedSorts) {
|
|
5760
5777
|
this.currentSorts = updatedSorts;
|
|
5778
|
+
console.log({ CurrSorts: this.currentSorts });
|
|
5761
5779
|
this.updateFiltersAndSorts();
|
|
5762
5780
|
}
|
|
5763
5781
|
handleSearch(event) {
|