ps-toolkit-ui 1.18.6 → 1.18.7

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.
@@ -3900,50 +3900,44 @@
3900
3900
  configurable: true
3901
3901
  });
3902
3902
  TableComponent.prototype.ngOnInit = function () {
3903
- var e_1, _b;
3903
+ var e_1, _a;
3904
3904
  var _this = this;
3905
- var _a;
3906
3905
  this.reload = new InputClass(this.table.environment, this.table.l, 'Reload', 'fa-duotone fa-sync-alt', exports.InputType.Icon, 'm-r-10-p');
3907
3906
  this.maximum = new InputClass(this.table.environment, this.table.l, 'Maximum', 'fa-duotone fa-arrows-maximize', exports.InputType.Icon, 'm-r-10-p');
3908
- var _loop_1 = function (c) {
3909
- c.search = new InputClass(this_1.table.environment, this_1.table.l, c.name, null, exports.InputType.Text, 'h-25 table-search', c.searchDefault);
3910
- if (c.type === exports.TableCollType.Date || c.type === exports.TableCollType.DateTime || c.type === exports.TableCollType.DateDif || c.type === exports.TableCollType.DateRemain) {
3911
- c.search.type = exports.InputType.Date;
3912
- }
3913
- else if (c.type === exports.TableCollType.Month) {
3914
- c.search.type = exports.InputType.Month;
3915
- }
3916
- else if (c.type === exports.TableCollType.Year) {
3917
- c.search.type = exports.InputType.Year;
3918
- }
3919
- else if (c.type === exports.TableCollType.Price) {
3920
- c.search.type = exports.InputType.Price;
3921
- }
3922
- else if (c.enum != null) {
3923
- c.search.type = exports.InputType.Select;
3924
- c.search.options = [new OptionClass('', '-1')].concat(EnumUtils.getKeysAndValues(c.enum).map(function (x) { return new OptionClass(_this.table.l(x.key), x.value); }));
3925
- c.search.setSearch((_a = c.search.options.find(function (x) { return x.value === c.searchDefault; })) === null || _a === void 0 ? void 0 : _a.name);
3926
- }
3927
- else {
3928
- c.search.type = exports.InputType.Text;
3929
- }
3930
- c.search.displayLabel = false;
3931
- c.search.onChange = function () {
3932
- _this.table.page = 1;
3933
- _this.table.load();
3934
- };
3935
- };
3936
- var this_1 = this;
3937
3907
  try {
3938
- for (var _c = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _d = _c.next(); !_d.done; _d = _c.next()) {
3939
- var c = _d.value;
3940
- _loop_1(c);
3908
+ for (var _b = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _c = _b.next(); !_c.done; _c = _b.next()) {
3909
+ var c = _c.value;
3910
+ c.search = new InputClass(this.table.environment, this.table.l, c.name, null, exports.InputType.Text, 'h-25 table-search', c.searchDefault);
3911
+ if (c.type === exports.TableCollType.Date || c.type === exports.TableCollType.DateTime || c.type === exports.TableCollType.DateDif || c.type === exports.TableCollType.DateRemain) {
3912
+ c.search.type = exports.InputType.Date;
3913
+ }
3914
+ else if (c.type === exports.TableCollType.Month) {
3915
+ c.search.type = exports.InputType.Month;
3916
+ }
3917
+ else if (c.type === exports.TableCollType.Year) {
3918
+ c.search.type = exports.InputType.Year;
3919
+ }
3920
+ else if (c.type === exports.TableCollType.Price) {
3921
+ c.search.type = exports.InputType.Price;
3922
+ }
3923
+ else if (c.enum != null) {
3924
+ c.search.type = exports.InputType.Select;
3925
+ c.search.options = [new OptionClass('', '-1')].concat(EnumUtils.getKeysAndValues(c.enum).map(function (x) { return new OptionClass(_this.table.l(x.key), x.value); }));
3926
+ }
3927
+ else {
3928
+ c.search.type = exports.InputType.Text;
3929
+ }
3930
+ c.search.displayLabel = false;
3931
+ c.search.onChange = function () {
3932
+ _this.table.page = 1;
3933
+ _this.table.load();
3934
+ };
3941
3935
  }
3942
3936
  }
3943
3937
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3944
3938
  finally {
3945
3939
  try {
3946
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
3940
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3947
3941
  }
3948
3942
  finally { if (e_1) throw e_1.error; }
3949
3943
  }
@@ -6051,6 +6045,7 @@
6051
6045
  }
6052
6046
  this.inp.setValue = function (v, isEdit) {
6053
6047
  if (!_this.inp.multiple) {
6048
+ console.log(v, 'vvvvvvvvvvvvv');
6054
6049
  _this.selectOption(v == null ? null : v.toString(), isEdit);
6055
6050
  }
6056
6051
  else {
@@ -6059,6 +6054,7 @@
6059
6054
  }
6060
6055
  }
6061
6056
  };
6057
+ console.log(this.inp.default, 'this.inp.defaultthis.inp.defaultthis.inp.default');
6062
6058
  if (this.inp.default != null) {
6063
6059
  this.inp.setValue(this.inp.default, false);
6064
6060
  }
@@ -6269,6 +6265,8 @@
6269
6265
  else {
6270
6266
  this.inp.value = v;
6271
6267
  this.inp.search = va ? (((this.inp.type !== exports.InputType.SelectSearch && this.inp.type !== exports.InputType.Select) || va.search) ? va.search : va.name) : '';
6268
+ console.log(this.inp.value, 'this.inp.valuethis.inp.valuethis.inp.valuethis.inp.value');
6269
+ console.log(this.inp.search, 'this.inp.searchthis.inp.searchthis.inp.searchthis.inp.search');
6272
6270
  }
6273
6271
  this.setOptions();
6274
6272
  this.cSearch = this.inp.search;