ps-toolkit-ui 0.0.45 → 0.0.49
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/bundles/ps-toolkit-ui.umd.js +14 -6
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/permission.class.js +7 -1
- package/esm2015/lib/components/form/select/form.select.component.js +9 -7
- package/fesm2015/ps-toolkit-ui.js +14 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/permission.class.d.ts +2 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -4813,12 +4813,14 @@
|
|
|
4813
4813
|
this.inp.rel.index = 0;
|
|
4814
4814
|
this.inp.rel.search = '';
|
|
4815
4815
|
this.inp.rel.options = [];
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
this.inp.rel.
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4816
|
+
if (v !== null) {
|
|
4817
|
+
this.inp.rel.url = this.inp.relUrl.replace('{}', this.inp.value);
|
|
4818
|
+
if (this.inp.rel.type !== exports.InputType.SelectAutoComplete) {
|
|
4819
|
+
this.inp.rel.load();
|
|
4820
|
+
}
|
|
4821
|
+
else {
|
|
4822
|
+
this.inp.rel.url += '_{}';
|
|
4823
|
+
}
|
|
4822
4824
|
}
|
|
4823
4825
|
}
|
|
4824
4826
|
if (!isEdit && !this.inp.multiple) {
|
|
@@ -5081,6 +5083,9 @@
|
|
|
5081
5083
|
PermissionClass.prototype.hasAccess = function (a) {
|
|
5082
5084
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
|
|
5083
5085
|
};
|
|
5086
|
+
PermissionClass.prototype.deleteAccess = function (a) {
|
|
5087
|
+
this.Accesses = this.Accesses.filter(function (x) { return x.Action !== a && x.Type === exports.PermissionTypeEnum.Access; });
|
|
5088
|
+
};
|
|
5084
5089
|
PermissionClass.prototype.hasOption = function (a) {
|
|
5085
5090
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; }).length > 0;
|
|
5086
5091
|
};
|
|
@@ -5091,6 +5096,9 @@
|
|
|
5091
5096
|
var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
|
|
5092
5097
|
return c.length > 0 ? c[0] : null;
|
|
5093
5098
|
};
|
|
5099
|
+
PermissionClass.prototype.deleteOption = function (a) {
|
|
5100
|
+
this.Accesses = this.Accesses.filter(function (x) { return x.Action !== a && x.Type !== exports.PermissionTypeEnum.Access; });
|
|
5101
|
+
};
|
|
5094
5102
|
PermissionClass.prototype.getUrl = function () {
|
|
5095
5103
|
return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
|
|
5096
5104
|
(this.RelatedId ? this.RelatedId + "/" : '') +
|