ps-toolkit-ui 1.3.67 → 1.3.68

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.
@@ -2616,7 +2616,7 @@
2616
2616
  if (option.AccessType === exports.PermissionAccessTypeEnum.Update) {
2617
2617
  if (this_2.table.form) {
2618
2618
  opt.onClick = function () {
2619
- _this.table.form.url = _this.table.url + 'Update/' + _this.row.Data.Id;
2619
+ _this.table.form.url = _this.table.url + 'update/' + _this.row.Data.Id;
2620
2620
  if (_this.table.hasChildren && _this.row.Data.ParentId != null) {
2621
2621
  _this.table.form.onSuccessBase = function () {
2622
2622
  _this.table.modal.hide();
@@ -2641,7 +2641,7 @@
2641
2641
  };
2642
2642
  }
2643
2643
  else {
2644
- opt.url = this_2.table.url + '/Update/' + this_2.row.Data.Id;
2644
+ opt.url = this_2.table.url + '/update/' + this_2.row.Data.Id;
2645
2645
  }
2646
2646
  }
2647
2647
  else if (option.AccessType === exports.PermissionAccessTypeEnum.Delete) {
@@ -2696,15 +2696,15 @@
2696
2696
  p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
2697
2697
  opt.modal.table.permissions = p;
2698
2698
  if (opt.modal.table.form) {
2699
- opt.modal.table.form.url = p.getUrl() + 'Insert';
2700
- opt.modal.table.form.baseUrl = p.getUrl() + 'Insert';
2699
+ opt.modal.table.form.url = p.getUrl() + 'insert';
2700
+ opt.modal.table.form.baseUrl = p.getUrl() + 'insert';
2701
2701
  }
2702
2702
  opt.modal.table.set();
2703
2703
  }
2704
2704
  if (opt.modal.form) {
2705
2705
  opt.modal.form.name = option.Name;
2706
- opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + _this.row.Data.Id;
2707
- opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + _this.row.Data.Id);
2706
+ opt.modal.form.url = opt.modal.form.baseUrl + 'update/' + _this.row.Data.Id;
2707
+ opt.modal.form.loadData(opt.modal.form.baseUrl + 'get/' + _this.row.Data.Id);
2708
2708
  opt.modal.form.onSuccessBase = function () {
2709
2709
  opt.modal.hide();
2710
2710
  };
@@ -2722,8 +2722,8 @@
2722
2722
  p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
2723
2723
  r.table.permissions = p;
2724
2724
  if (r.table.form) {
2725
- r.table.form.url = p.getUrl() + 'Insert';
2726
- r.table.form.baseUrl = p.getUrl() + 'Insert';
2725
+ r.table.form.url = p.getUrl() + 'insert';
2726
+ r.table.form.baseUrl = p.getUrl() + 'insert';
2727
2727
  }
2728
2728
  r.table.set();
2729
2729
  }
@@ -5440,13 +5440,13 @@
5440
5440
  var p = new PermissionClass();
5441
5441
  p.Type = exports.PermissionTypeEnum.Form;
5442
5442
  var lAccess = new PermissionClass();
5443
- lAccess.Action = 'List';
5443
+ lAccess.Action = 'list';
5444
5444
  var iAccess = new PermissionClass();
5445
- iAccess.Action = 'Insert';
5445
+ iAccess.Action = 'insert';
5446
5446
  var uAccess = new PermissionClass();
5447
- uAccess.Action = 'Update';
5447
+ uAccess.Action = 'update';
5448
5448
  var dAccess = new PermissionClass();
5449
- dAccess.Action = 'Delete';
5449
+ dAccess.Action = 'delete';
5450
5450
  p.Accesses = [
5451
5451
  lAccess,
5452
5452
  iAccess,
@@ -7355,12 +7355,12 @@
7355
7355
  return this.searchForm ? this.searchForm.json(d) : d;
7356
7356
  };
7357
7357
  TableClass.prototype.getUrl = function () {
7358
- return this.url + 'List';
7358
+ return this.url + 'list';
7359
7359
  };
7360
7360
  TableClass.prototype.showInsertModal = function (cId) {
7361
7361
  if (cId === void 0) { cId = null; }
7362
7362
  var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
7363
- this.form.url = this.form.baseUrl = this.url + 'Insert' + (cId ? '/' + cId : '');
7363
+ this.form.url = this.form.baseUrl = this.url + 'insert' + (cId ? '/' + cId : '');
7364
7364
  this.form.name = insertAccess.Name;
7365
7365
  this.form.method = exports.Method.Post;
7366
7366
  this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
@@ -7397,7 +7397,7 @@
7397
7397
  if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
7398
7398
  accessInp.class = accessInp.class.replace('blue', 'green');
7399
7399
  if (this_1.form) {
7400
- this_1.form.url = this_1.form.baseUrl = this_1.url + 'Insert';
7400
+ this_1.form.url = this_1.form.baseUrl = this_1.url + 'insert';
7401
7401
  if (!this_1.form.onTop) {
7402
7402
  accessInp.onClick = function () {
7403
7403
  _this.form.onSuccessBase = function () {
@@ -7419,7 +7419,7 @@
7419
7419
  };
7420
7420
  }
7421
7421
  else {
7422
- accessInp.url = this_1.url + 'Insert';
7422
+ accessInp.url = this_1.url + 'insert';
7423
7423
  }
7424
7424
  }
7425
7425
  }
@@ -7427,10 +7427,10 @@
7427
7427
  accessInp.onClick = function () {
7428
7428
  var p = new PermissionClass();
7429
7429
  p.Area = _this.permissions.Area;
7430
- p.Controller = 'Print';
7430
+ p.Controller = 'print';
7431
7431
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
7432
7432
  var params = $$1.param(_this.searchData(true));
7433
- window.open('/Report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
7433
+ window.open('/report' + p.getUrl() + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
7434
7434
  (params ? '?' + params : ''), '_blank');
7435
7435
  };
7436
7436
  }