ps-toolkit-ui 0.0.133 → 0.0.134
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 +44 -36
- 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 +5 -1
- package/fesm2015/ps-toolkit-ui.js +4 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -7237,48 +7237,56 @@
|
|
|
7237
7237
|
this.permission = false;
|
|
7238
7238
|
return;
|
|
7239
7239
|
}
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
_this.showInsertModal();
|
|
7240
|
+
var _loop_1 = function (access) {
|
|
7241
|
+
if (this_1.buttons.filter(function (x) { return x.name === access.Name; })) {
|
|
7242
|
+
return "continue";
|
|
7243
|
+
}
|
|
7244
|
+
var accessInp = new InputClass(this_1.environment, this_1.l, access.Name, access.Icon, access.InputType === exports.PermissionInputTypeEnum.Button ? exports.InputType.Button : exports.InputType.Icon, 'blue w-u h-30');
|
|
7245
|
+
if (access.Action === 'Insert') {
|
|
7246
|
+
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7247
|
+
if (this_1.form) {
|
|
7248
|
+
this_1.form.url = this_1.form.baseUrl = this_1.url + 'Insert';
|
|
7249
|
+
if (!this_1.form.onTop) {
|
|
7250
|
+
accessInp.onClick = function () {
|
|
7251
|
+
_this.form.onSuccessBase = function () {
|
|
7252
|
+
_this.modal.hide();
|
|
7253
|
+
_this.load();
|
|
7255
7254
|
};
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
this.form.displayLabel = false;
|
|
7259
|
-
}
|
|
7255
|
+
_this.showInsertModal();
|
|
7256
|
+
};
|
|
7260
7257
|
}
|
|
7261
7258
|
else {
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
_this.modal.show();
|
|
7265
|
-
};
|
|
7266
|
-
}
|
|
7267
|
-
else {
|
|
7268
|
-
accessInp.url = this.url + 'Insert';
|
|
7269
|
-
}
|
|
7259
|
+
this_1.form.displayLabel = false;
|
|
7260
|
+
return "continue";
|
|
7270
7261
|
}
|
|
7271
7262
|
}
|
|
7272
|
-
else
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7263
|
+
else {
|
|
7264
|
+
if (this_1.modal) {
|
|
7265
|
+
accessInp.onClick = function () {
|
|
7266
|
+
_this.modal.show();
|
|
7267
|
+
};
|
|
7268
|
+
}
|
|
7269
|
+
else {
|
|
7270
|
+
accessInp.url = this_1.url + 'Insert';
|
|
7271
|
+
}
|
|
7280
7272
|
}
|
|
7281
|
-
|
|
7273
|
+
}
|
|
7274
|
+
else if (access.InputAction === exports.PermissionInputActionEnum.Report) {
|
|
7275
|
+
var p = new PermissionClass();
|
|
7276
|
+
p.RelatedId = 'Index';
|
|
7277
|
+
p.Area = this_1.permissions.Area;
|
|
7278
|
+
p.Controller = 'Print';
|
|
7279
|
+
p.Action = this_1.permissions.Controller;
|
|
7280
|
+
accessInp.url = '/Report' + p.getUrl();
|
|
7281
|
+
accessInp.urlNewTab = true;
|
|
7282
|
+
}
|
|
7283
|
+
this_1.buttons.push(accessInp);
|
|
7284
|
+
};
|
|
7285
|
+
var this_1 = this;
|
|
7286
|
+
try {
|
|
7287
|
+
for (var _b = __values(this.permissions.getAccesses().filter(function (x) { return x.InputAction !== exports.PermissionInputActionEnum.None; })), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7288
|
+
var access = _c.value;
|
|
7289
|
+
_loop_1(access);
|
|
7282
7290
|
}
|
|
7283
7291
|
}
|
|
7284
7292
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|