ps-toolkit-ui 1.9.64 → 1.9.66

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.
@@ -1679,6 +1679,7 @@
1679
1679
  this.onLoad = null;
1680
1680
  this.onBeforeSubmit = null;
1681
1681
  this.onHideModal = null;
1682
+ this.onShowModal = null;
1682
1683
  this.environment = environment;
1683
1684
  this.l = l;
1684
1685
  this.url = url;
@@ -3158,6 +3159,9 @@
3158
3159
  $__namespace('body').addClass('open-modal');
3159
3160
  $__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
3160
3161
  if (_this.form != null) {
3162
+ if (_this.form.onShowModal) {
3163
+ _this.form.onShowModal();
3164
+ }
3161
3165
  _this.form.focus();
3162
3166
  }
3163
3167
  });
@@ -5800,8 +5804,29 @@
5800
5804
  x.class += ' h-30';
5801
5805
  });
5802
5806
  }
5807
+ var uAccess = new PermissionClass();
5808
+ uAccess.Action = 'Update';
5809
+ uAccess.Type = exports.PermissionTypeEnum.Option;
5810
+ uAccess.InputAction = exports.PermissionInputActionEnum.None;
5811
+ uAccess.InputType = exports.PermissionInputTypeEnum.Icon;
5812
+ uAccess.AccessType = exports.PermissionAccessTypeEnum.Update;
5813
+ uAccess.Icon = 'fad fa-pen';
5814
+ uAccess.Name = 'Update';
5815
+ var dAccess = new PermissionClass();
5816
+ dAccess.Action = 'Delete';
5817
+ dAccess.Type = exports.PermissionTypeEnum.Option;
5818
+ dAccess.InputAction = exports.PermissionInputActionEnum.None;
5819
+ dAccess.InputType = exports.PermissionInputTypeEnum.Icon;
5820
+ dAccess.AccessType = exports.PermissionAccessTypeEnum.Delete;
5821
+ dAccess.Icon = 'fad fa-trash';
5822
+ dAccess.Name = 'Delete';
5803
5823
  this.inp.setValue = function (v) {
5804
- _this.inp.table.rows = v === null ? [] : v;
5824
+ _this.inp.table.rows = v === null ? [] : v.map(function (x) {
5825
+ return {
5826
+ Data: x,
5827
+ Options: [uAccess, dAccess]
5828
+ };
5829
+ });
5805
5830
  };
5806
5831
  this.inp.focus = function () {
5807
5832
  if (_this.inp.table.form) {