ps-toolkit-ui 0.0.42 → 0.0.43
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 +6 -0
- 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 +2 -1
- package/esm2015/lib/classes/table.class.js +6 -1
- package/fesm2015/ps-toolkit-ui.js +6 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/permission.class.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5072,6 +5072,7 @@
|
|
|
5072
5072
|
this.Condition = Condition;
|
|
5073
5073
|
this.Accesses = Accesses;
|
|
5074
5074
|
this.RelatedId = null;
|
|
5075
|
+
this.OnClick = null;
|
|
5075
5076
|
}
|
|
5076
5077
|
PermissionClass.prototype.getAccess = function (a) {
|
|
5077
5078
|
var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; });
|
|
@@ -7237,6 +7238,11 @@
|
|
|
7237
7238
|
});
|
|
7238
7239
|
};
|
|
7239
7240
|
}
|
|
7241
|
+
else if (option.Type === exports.PermissionTypeEnum.OptionIcon && option.OnClick) {
|
|
7242
|
+
opt.onClick = function (btn) {
|
|
7243
|
+
option.OnClick(btn);
|
|
7244
|
+
};
|
|
7245
|
+
}
|
|
7240
7246
|
this_1.options.push(opt);
|
|
7241
7247
|
};
|
|
7242
7248
|
var this_1 = this;
|