ps-toolkit-ui 1.9.87 → 1.9.89

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.
@@ -2242,7 +2242,7 @@
2242
2242
  { type: core.Component, args: [{
2243
2243
  selector: 'lib-modal',
2244
2244
  template: "<div [id]=\"modal.id + 'Modal'\" class=\"modal\">\r\n <div [className]=\"(modal.class ? modal.class : '') + (modal.class.includes('xlg') ? '' : modal.class.includes('lg') ? ' w-1000-60 m-r-1000-20 w-700-70 m-r-700-15' : modal.class.includes('sm') ? ' w-1300-20 m-r-1300-40 w-1100-30 m-r-1100-35 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10' : ' w-1300-40 m-r-1300-30 w-1100-50 m-r-1100-25 w-600-60 m-r-600-20 w-500-70 m-r-500-15 w-400-80 m-r-400-10') + ' content w-90 m-r-5'\">\r\n <lib-form-button [inp]=\"close\"></lib-form-button>\r\n <div class=\"body\">\r\n <ng-content></ng-content>\r\n <lib-form *ngIf=\"modal.form != null && modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-table *ngIf=\"modal.table != null\" [table]=\"modal.table\"></lib-table>\r\n <lib-form *ngIf=\"modal.form != null && !modal.firstForm\" [form]=\"modal.form\"></lib-form>\r\n <lib-accordion *ngIf=\"modal.accordion != null\" [accordion]=\"modal.accordion\"></lib-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n",
2245
- styles: [".modal{background-color:rgba(51,51,51,.8);display:none;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:999}.modal .content{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-modal);margin-bottom:50px;margin-top:50px;position:relative;z-index:2}.modal .content .header{float:right;position:relative;text-align:center;width:100%}.modal .content .header .title{float:left;font-size:18px;font-weight:700;height:40px;line-height:40px;width:100%}::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-25px;position:absolute;top:-10px;z-index:5}::ng-deep .modal .content .body .table-con{box-shadow:unset!important}.modal .content .body{float:right;position:relative;width:100%}@media (max-width:399.98px){::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-10px;padding:0}}"]
2245
+ styles: [".modal{background-color:rgba(51,51,51,.8);display:none;height:100%;overflow-y:auto;position:fixed;right:0;top:0;width:100%;z-index:999}.modal .content{background-color:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-modal);margin-bottom:50px;margin-top:50px;position:relative;z-index:2}.modal .content .header{float:right;position:relative;text-align:center;width:100%}.modal .content .header .title{float:left;font-size:18px;font-weight:700;height:40px;line-height:40px;width:100%}::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-25px;position:absolute;top:-10px;z-index:105}::ng-deep .modal .content .body .table-con{box-shadow:unset!important}.modal .content .body{float:right;position:relative;width:100%}@media (max-width:399.98px){::ng-deep .modal .content>lib-form-button .form-input-con.button{left:-10px;padding:0}}"]
2246
2246
  },] }
2247
2247
  ];
2248
2248
  ModalComponent.ctorParameters = function () { return []; };
@@ -5773,11 +5773,10 @@
5773
5773
  p.Accesses = [
5774
5774
  lAccess,
5775
5775
  iAccess,
5776
- ];
5776
+ ].concat(this.inp.table.withSelect ? [] : [iAccess]);
5777
5777
  this.inp.table.permissions = p;
5778
5778
  this.inp.table.displayLabel = false;
5779
5779
  this.inp.table.style = { padding: 0, boxShadow: 'unset' };
5780
- this.inp.table.permissions = p;
5781
5780
  this.inp.table.showExtraButtons = false;
5782
5781
  this.inp.table.loading = false;
5783
5782
  this.inp.table.cols.forEach(function (x) {
@@ -5792,6 +5791,9 @@
5792
5791
  x.class += ' h-30';
5793
5792
  });
5794
5793
  }
5794
+ if (this.inp.table.withSelect) {
5795
+ this.inp.table.load();
5796
+ }
5795
5797
  var uAccess = new PermissionClass();
5796
5798
  uAccess.Action = 'Update';
5797
5799
  uAccess.Type = exports.PermissionTypeEnum.Option;
@@ -5865,7 +5867,7 @@
5865
5867
  { type: core.Component, args: [{
5866
5868
  selector: 'lib-form-table',
5867
5869
  template: "<div #inputDiv [id]=\"inp.id + 'TableInput'\" [style]=\"inp.style\" [className]=\"'form-input-con table w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</div>\r\n <div class=\"control\">\r\n <lib-table (changeRows)=\"changeRows($event)\" [table]=\"inp.table\"></lib-table>\r\n </div>\r\n </div>\r\n</div>\r\n",
5868
- styles: [".form-input-con.table{padding:0 15px;position:relative}.form-input-con.table .form-input{float:right;position:relative;width:100%}.form-input-con.table .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.table.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.table .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.table .form-input .control{border:var(--border-input);border-radius:var(--border-radius-base);float:right;padding:0 10px;width:100%}.form-input-con.table.error .form-input .control{border:var(--border-input-red)}"]
5870
+ styles: [".form-input-con.table{padding:0 15px;position:relative}.form-input-con.table .form-input{float:right;position:relative;width:100%}.form-input-con.table .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.table.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.table .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.table .form-input .control{border:var(--border-input);border-radius:var(--border-radius-base);float:right;width:100%}.form-input-con.table.error .form-input .control{border:var(--border-input-red)}"]
5869
5871
  },] }
5870
5872
  ];
5871
5873
  FormTableComponent.ctorParameters = function () { return []; };
@@ -8096,7 +8098,7 @@
8096
8098
  return this.rows.filter(function (x) { return x.selected; }).map(function (x) { return x.Data; });
8097
8099
  };
8098
8100
  TableClass.prototype.searchData = function (report) {
8099
- var e_1, _a;
8101
+ var e_1, _a, e_2, _b;
8100
8102
  if (report === void 0) { report = false; }
8101
8103
  var d = {};
8102
8104
  if (!report) {
@@ -8112,15 +8114,33 @@
8112
8114
  d.SortType = this.sortType;
8113
8115
  }
8114
8116
  try {
8115
- for (var _b = __values(this.cols.filter(function (x) { return x.withSearch && x.search != null && x.search.data() != null && x.search.data() !== ''; })), _c = _b.next(); !_c.done; _c = _b.next()) {
8116
- var c = _c.value;
8117
- d[c.name] = c.search.data();
8117
+ for (var _c = __values(this.cols.filter(function (x) { return x.withSearch && x.search != null && x.search.data() != null && x.search.data() !== ''; })), _d = _c.next(); !_d.done; _d = _c.next()) {
8118
+ var c = _d.value;
8119
+ var vl = c.search.data();
8120
+ if (typeof vl === 'object' && !(vl instanceof Array)) {
8121
+ try {
8122
+ for (var _e = (e_2 = void 0, __values(Object.entries(vl))), _f = _e.next(); !_f.done; _f = _e.next()) {
8123
+ var _g = __read(_f.value, 2), key = _g[0], value = _g[1];
8124
+ d[key] = value;
8125
+ }
8126
+ }
8127
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
8128
+ finally {
8129
+ try {
8130
+ if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
8131
+ }
8132
+ finally { if (e_2) throw e_2.error; }
8133
+ }
8134
+ }
8135
+ else {
8136
+ d[c.name] = vl;
8137
+ }
8118
8138
  }
8119
8139
  }
8120
8140
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
8121
8141
  finally {
8122
8142
  try {
8123
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8143
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
8124
8144
  }
8125
8145
  finally { if (e_1) throw e_1.error; }
8126
8146
  }
@@ -8142,7 +8162,7 @@
8142
8162
  this.modal.show();
8143
8163
  };
8144
8164
  TableClass.prototype.set = function (changeRows) {
8145
- var e_2, _a;
8165
+ var e_3, _a;
8146
8166
  var _this = this;
8147
8167
  if (changeRows === void 0) { changeRows = null; }
8148
8168
  this.permission = true;
@@ -8224,12 +8244,12 @@
8224
8244
  _loop_1(access);
8225
8245
  }
8226
8246
  }
8227
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
8247
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
8228
8248
  finally {
8229
8249
  try {
8230
8250
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8231
8251
  }
8232
- finally { if (e_2) throw e_2.error; }
8252
+ finally { if (e_3) throw e_3.error; }
8233
8253
  }
8234
8254
  if (this.form) {
8235
8255
  this.form.addButtons('Save', 'green', true, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {