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.
- package/bundles/tnx-shared.umd.js +8 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/dropdown/quick-add-form/quick-add-form.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/dropdown/quick-add-form/quick-add-form.component.js +2 -1
- package/esm2015/services/common.service.js +6 -1
- package/fesm2015/tnx-shared.js +7 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -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) {
|