ps-toolkit-ui 0.0.46 → 0.0.50
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 -7
- 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 -8
- package/fesm2015/ps-toolkit-ui.js +14 -7
- 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
|
@@ -4793,7 +4793,6 @@
|
|
|
4793
4793
|
if (isEdit === void 0) { isEdit = false; }
|
|
4794
4794
|
this.inp.error = null;
|
|
4795
4795
|
var va = this.getValue(v);
|
|
4796
|
-
console.log(va, 'selectOption selectOption selectOption');
|
|
4797
4796
|
if (this.inp.multiple) {
|
|
4798
4797
|
this.toggle(va);
|
|
4799
4798
|
this.inp.search = '';
|
|
@@ -4814,12 +4813,14 @@
|
|
|
4814
4813
|
this.inp.rel.index = 0;
|
|
4815
4814
|
this.inp.rel.search = '';
|
|
4816
4815
|
this.inp.rel.options = [];
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
this.inp.rel.
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
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
|
+
}
|
|
4823
4824
|
}
|
|
4824
4825
|
}
|
|
4825
4826
|
if (!isEdit && !this.inp.multiple) {
|
|
@@ -5082,6 +5083,9 @@
|
|
|
5082
5083
|
PermissionClass.prototype.hasAccess = function (a) {
|
|
5083
5084
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
|
|
5084
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
|
+
};
|
|
5085
5089
|
PermissionClass.prototype.hasOption = function (a) {
|
|
5086
5090
|
return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; }).length > 0;
|
|
5087
5091
|
};
|
|
@@ -5092,6 +5096,9 @@
|
|
|
5092
5096
|
var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
|
|
5093
5097
|
return c.length > 0 ? c[0] : null;
|
|
5094
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
|
+
};
|
|
5095
5102
|
PermissionClass.prototype.getUrl = function () {
|
|
5096
5103
|
return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
|
|
5097
5104
|
(this.RelatedId ? this.RelatedId + "/" : '') +
|