tnx-shared 5.3.220 → 5.3.222
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 +11 -1
- 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/crud/crud-form/crud-form.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/crud/crud-form/crud-form.component.js +5 -2
- package/esm2015/services/common.service.js +6 -1
- package/fesm2015/tnx-shared.js +10 -1
- 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
|
@@ -894,6 +894,7 @@ class FormSchemaBase extends SchemaBase {
|
|
|
894
894
|
this.isHtmlLabel = false;
|
|
895
895
|
this.isHorizontallyLabel = false;
|
|
896
896
|
this.order = 0;
|
|
897
|
+
this.showTooltip = true;
|
|
897
898
|
for (const key in init) {
|
|
898
899
|
this[key] = init[key];
|
|
899
900
|
}
|
|
@@ -3961,6 +3962,11 @@ class CommonService {
|
|
|
3961
3962
|
}
|
|
3962
3963
|
return Math.floor((date.getMonth() + 3) / 3);
|
|
3963
3964
|
}
|
|
3965
|
+
generateIndex(index, maxLength = 8) {
|
|
3966
|
+
const stringIndex = `${index}`;
|
|
3967
|
+
const diff = (maxLength < stringIndex.length) ? 0 : maxLength - stringIndex.length;
|
|
3968
|
+
return `${Array(diff).map(x => '').join(' ')}${stringIndex}`;
|
|
3969
|
+
}
|
|
3964
3970
|
}
|
|
3965
3971
|
CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
3966
3972
|
CommonService.decorators = [
|
|
@@ -12811,7 +12817,10 @@ class CrudFormComponent extends ComponentBase {
|
|
|
12811
12817
|
if (this.isViewMode) {
|
|
12812
12818
|
schema.disabled = true;
|
|
12813
12819
|
}
|
|
12814
|
-
if (
|
|
12820
|
+
if (!schema.showTooltip) {
|
|
12821
|
+
schema.fullLabel = null;
|
|
12822
|
+
}
|
|
12823
|
+
else if (schema.label && !schema.fullLabel) {
|
|
12815
12824
|
schema.fullLabel = schema.label;
|
|
12816
12825
|
}
|
|
12817
12826
|
if (schema['isReadonly']) {
|