ps-toolkit-ui 0.0.171 → 0.0.175
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 +13 -16
- 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/enum.class.js +8 -7
- package/esm2015/lib/classes/table.class.js +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +6 -7
- package/esm2015/lib/components/table/table.component.js +1 -4
- package/fesm2015/ps-toolkit-ui.js +13 -16
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +7 -6
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -817,12 +817,13 @@
|
|
|
817
817
|
})(exports.PermissionAccessTypeEnum || (exports.PermissionAccessTypeEnum = {}));
|
|
818
818
|
(function (PermissionInputActionEnum) {
|
|
819
819
|
PermissionInputActionEnum[PermissionInputActionEnum["None"] = 0] = "None";
|
|
820
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
821
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
822
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
823
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
824
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
825
|
-
PermissionInputActionEnum[PermissionInputActionEnum["
|
|
820
|
+
PermissionInputActionEnum[PermissionInputActionEnum["OnClick"] = 1] = "OnClick";
|
|
821
|
+
PermissionInputActionEnum[PermissionInputActionEnum["Link"] = 2] = "Link";
|
|
822
|
+
PermissionInputActionEnum[PermissionInputActionEnum["LinkNewTab"] = 3] = "LinkNewTab";
|
|
823
|
+
PermissionInputActionEnum[PermissionInputActionEnum["Report"] = 4] = "Report";
|
|
824
|
+
PermissionInputActionEnum[PermissionInputActionEnum["File"] = 5] = "File";
|
|
825
|
+
PermissionInputActionEnum[PermissionInputActionEnum["Modal"] = 6] = "Modal";
|
|
826
|
+
PermissionInputActionEnum[PermissionInputActionEnum["Confirm"] = 7] = "Confirm";
|
|
826
827
|
})(exports.PermissionInputActionEnum || (exports.PermissionInputActionEnum = {}));
|
|
827
828
|
(function (PermissionInputTypeEnum) {
|
|
828
829
|
PermissionInputTypeEnum[PermissionInputTypeEnum["Icon"] = 0] = "Icon";
|
|
@@ -2738,12 +2739,11 @@
|
|
|
2738
2739
|
});
|
|
2739
2740
|
};
|
|
2740
2741
|
}
|
|
2741
|
-
else {
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
}
|
|
2742
|
+
else if (option.InputAction === exports.PermissionInputActionEnum.OnClick) {
|
|
2743
|
+
opt.onClick = function (btn) {
|
|
2744
|
+
console.log(btn, 11111111);
|
|
2745
|
+
_this.table.optionsActions.find(function (x) { return x.name === option.Action; }).onClick(btn);
|
|
2746
|
+
};
|
|
2747
2747
|
}
|
|
2748
2748
|
opts.push(opt);
|
|
2749
2749
|
};
|
|
@@ -3015,9 +3015,6 @@
|
|
|
3015
3015
|
_this.setSortable();
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
|
-
if (this.table.hasChildren && this.table.form) {
|
|
3019
|
-
this.table.form.inputs.push(new InputClass(this.table.environment, this.table.l, 'ParentId', null, exports.InputType.Hidden, null, null, false));
|
|
3020
|
-
}
|
|
3021
3018
|
this.table.set(this.changeRows);
|
|
3022
3019
|
if (this.table.searchForm) {
|
|
3023
3020
|
this.table.searchForm.displayLabel = false;
|
|
@@ -7209,7 +7206,7 @@
|
|
|
7209
7206
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7210
7207
|
if (cId === void 0) { cId = null; }
|
|
7211
7208
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7212
|
-
this.form.url = this.form.baseUrl = this.url + 'Insert' + cId ?
|
|
7209
|
+
this.form.url = this.form.baseUrl = this.url + 'Insert' + (cId ? '/' + cId : '');
|
|
7213
7210
|
this.form.name = insertAccess.Name;
|
|
7214
7211
|
this.form.method = exports.Method.Post;
|
|
7215
7212
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|