tnx-shared 5.3.221 → 5.3.223

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.
@@ -1463,6 +1463,7 @@ class DropdownControlSchema extends DataSourceControlSchema {
1463
1463
  this.initData = {};
1464
1464
  this.defaultIndex = -1;
1465
1465
  this.popupSize = new PopupSize({ width: 750, height: 400 });
1466
+ this.insertPlusUrl = '';
1466
1467
  this.loadInFirstDisplay = true;
1467
1468
  this.autoGetData = true;
1468
1469
  this.valueField = 'id';
@@ -3962,6 +3963,11 @@ class CommonService {
3962
3963
  }
3963
3964
  return Math.floor((date.getMonth() + 3) / 3);
3964
3965
  }
3966
+ generateIndex(index, maxLength = 8) {
3967
+ const stringIndex = `${index}`;
3968
+ const diff = (maxLength < stringIndex.length) ? 0 : maxLength - stringIndex.length;
3969
+ return `${Array(diff).map(x => '').join(' ')}${stringIndex}`;
3970
+ }
3965
3971
  }
3966
3972
  CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
3967
3973
  CommonService.decorators = [
@@ -40118,6 +40124,7 @@ class QuickAddFormComponent extends DataFormBase {
40118
40124
  ngOnInit() {
40119
40125
  super.ngOnInit();
40120
40126
  this.setting.baseService = this.baseService;
40127
+ this.insertPlusUrl = this.control.insertPlusUrl;
40121
40128
  this.setting.schema = this.control.cols;
40122
40129
  }
40123
40130
  onFormInitialized(formEvent) {