ps-toolkit-ui 1.18.5 → 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,51 +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
- console.log(c.search.options.find(function (x) { return x.value === c.searchDefault; }));
3926
- c.search.search = (_a = c.search.options.find(function (x) { return x.value === c.searchDefault; })) === null || _a === void 0 ? void 0 : _a.name;
3927
- }
3928
- else {
3929
- c.search.type = exports.InputType.Text;
3930
- }
3931
- c.search.displayLabel = false;
3932
- c.search.onChange = function () {
3933
- _this.table.page = 1;
3934
- _this.table.load();
3935
- };
3936
- };
3937
- var this_1 = this;
3938
3907
  try {
3939
- for (var _c = __values(this.table.cols.filter(function (x) { return x.withSearch; })), _d = _c.next(); !_d.done; _d = _c.next()) {
3940
- var c = _d.value;
3941
- _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
+ };
3942
3935
  }
3943
3936
  }
3944
3937
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3945
3938
  finally {
3946
3939
  try {
3947
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
3940
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3948
3941
  }
3949
3942
  finally { if (e_1) throw e_1.error; }
3950
3943
  }
@@ -6052,6 +6045,7 @@
6052
6045
  }
6053
6046
  this.inp.setValue = function (v, isEdit) {
6054
6047
  if (!_this.inp.multiple) {
6048
+ console.log(v, 'vvvvvvvvvvvvv');
6055
6049
  _this.selectOption(v == null ? null : v.toString(), isEdit);
6056
6050
  }
6057
6051
  else {
@@ -6060,6 +6054,7 @@
6060
6054
  }
6061
6055
  }
6062
6056
  };
6057
+ console.log(this.inp.default, 'this.inp.defaultthis.inp.defaultthis.inp.default');
6063
6058
  if (this.inp.default != null) {
6064
6059
  this.inp.setValue(this.inp.default, false);
6065
6060
  }
@@ -6270,6 +6265,8 @@
6270
6265
  else {
6271
6266
  this.inp.value = v;
6272
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');
6273
6270
  }
6274
6271
  this.setOptions();
6275
6272
  this.cSearch = this.inp.search;