ps-toolkit-ui 0.0.90 → 0.0.94
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 +5 -9
- 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/table.class.js +1 -10
- package/esm2015/lib/components/form/label/form.label.component.js +2 -1
- package/esm2015/lib/components/sidebar/sidebar.component.js +4 -1
- package/fesm2015/ps-toolkit-ui.js +4 -9
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2152,7 +2152,10 @@
|
|
|
2152
2152
|
this.currentSidebar = this.getSidebarActive(this.sidebar, active);
|
|
2153
2153
|
};
|
|
2154
2154
|
SidebarComponent.prototype.ngOnInit = function () {
|
|
2155
|
+
console.log(this.permissions, 'this.permissions');
|
|
2156
|
+
console.log(this.permissions.filter(function (x) { return x.Type === exports.PermissionTypeEnum.Item; }), 'this.permissions.filter(x => x.Type === PermissionTypeEnum.Item)');
|
|
2155
2157
|
this.sidebar = this.getSidebar();
|
|
2158
|
+
console.log(this.sidebar, 'this.sidebar');
|
|
2156
2159
|
this.setActive();
|
|
2157
2160
|
};
|
|
2158
2161
|
SidebarComponent.prototype.getSidebar = function (parentId) {
|
|
@@ -3855,7 +3858,9 @@
|
|
|
3855
3858
|
function FormLabelComponent() {
|
|
3856
3859
|
}
|
|
3857
3860
|
FormLabelComponent.prototype.ngOnInit = function () {
|
|
3861
|
+
var _this = this;
|
|
3858
3862
|
this.inp.setValue = function (v) {
|
|
3863
|
+
_this.inp.value = v;
|
|
3859
3864
|
};
|
|
3860
3865
|
this.inp.isValid = function () {
|
|
3861
3866
|
return true;
|
|
@@ -7213,15 +7218,6 @@
|
|
|
7213
7218
|
opt.modal.table.set();
|
|
7214
7219
|
}
|
|
7215
7220
|
if (opt.modal.form) {
|
|
7216
|
-
var p = new PermissionClass();
|
|
7217
|
-
p.RelatedId = btn.row.Id;
|
|
7218
|
-
p.Area = _this.permissions.Area;
|
|
7219
|
-
p.Controller = _this.permissions.Controller;
|
|
7220
|
-
p.Action = option.Action;
|
|
7221
|
-
p.Accesses = option.Accesses;
|
|
7222
|
-
console.log(p.getUrl(), 'p.getUrl()');
|
|
7223
|
-
console.log(opt.modal.form, 'opt.modal.form');
|
|
7224
|
-
console.log(opt.modal.form.baseUrl, 'opt.modal.form.baseUrl');
|
|
7225
7221
|
opt.modal.form.name = option.Name;
|
|
7226
7222
|
opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
|
|
7227
7223
|
opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);
|