tnx-shared 5.1.486 → 5.1.488

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.
@@ -8061,6 +8061,11 @@
8061
8061
  };
8062
8062
  return this.defaultPost(url, gridInfo);
8063
8063
  };
8064
+ BaseService.prototype.countByFilter = function (filters) {
8065
+ if (filters === void 0) { filters = []; }
8066
+ var url = this.serviceUri + "/CountByFilter";
8067
+ return this.defaultPost(url, filters);
8068
+ };
8064
8069
  BaseService.prototype.getLastDetailByFilter = function (filters, sorts) {
8065
8070
  if (filters === void 0) { filters = []; }
8066
8071
  if (sorts === void 0) { sorts = []; }
@@ -46447,7 +46452,8 @@
46447
46452
  AutoCompletePickerComponent.prototype.writeValue = function (obj) {
46448
46453
  var _this = this;
46449
46454
  this.hasValue = false;
46450
- this.getDataSelectedValue(obj)
46455
+ var value = !isLiteralObject(obj) ? obj : obj[this.control.valueField];
46456
+ this.getDataSelectedValue(value)
46451
46457
  .then(function (res) {
46452
46458
  _this.updateSelectedValue();
46453
46459
  _this.checkFireReady();
@@ -59634,7 +59640,7 @@
59634
59640
  };
59635
59641
  UserPickerComponent.prototype.writeValue = function (obj) {
59636
59642
  return __awaiter(this, void 0, void 0, function () {
59637
- var filters;
59643
+ var filters, value;
59638
59644
  var _this = this;
59639
59645
  return __generator(this, function (_b) {
59640
59646
  switch (_b.label) {
@@ -59669,7 +59675,8 @@
59669
59675
  case 3: return [3 /*break*/, 5];
59670
59676
  case 4:
59671
59677
  if (obj != null) {
59672
- this.controlPicker.baseService.getDataDropdownByFilter([this.newFilter(this.controlPicker.valueField, exports.Operator.equal, obj)], this.getDropdownOptions()).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
59678
+ value = !isLiteralObject(obj) ? obj : obj[this.controlPicker.valueField];
59679
+ this.controlPicker.baseService.getDataDropdownByFilter([this.newFilter(this.controlPicker.valueField, exports.Operator.equal, value)], this.getDropdownOptions()).then(function (res) { return __awaiter(_this, void 0, void 0, function () {
59673
59680
  return __generator(this, function (_b) {
59674
59681
  switch (_b.label) {
59675
59682
  case 0: