tnx-shared 5.3.219 → 5.3.221
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 +7 -1
- package/fesm2015/tnx-shared.js +11 -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
|
}
|
|
@@ -3955,6 +3956,12 @@ class CommonService {
|
|
|
3955
3956
|
const weekdays = ['Chủ nhật', 'Thứ hai', 'Thứ ba', 'Thứ tư', 'Thứ năm', 'Thứ sáu', 'Thứ bảy'];
|
|
3956
3957
|
return weekdays[date.getDay()];
|
|
3957
3958
|
}
|
|
3959
|
+
getQuarterFromDate(date) {
|
|
3960
|
+
if (!date) {
|
|
3961
|
+
date = new Date();
|
|
3962
|
+
}
|
|
3963
|
+
return Math.floor((date.getMonth() + 3) / 3);
|
|
3964
|
+
}
|
|
3958
3965
|
}
|
|
3959
3966
|
CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
3960
3967
|
CommonService.decorators = [
|
|
@@ -12805,7 +12812,10 @@ class CrudFormComponent extends ComponentBase {
|
|
|
12805
12812
|
if (this.isViewMode) {
|
|
12806
12813
|
schema.disabled = true;
|
|
12807
12814
|
}
|
|
12808
|
-
if (
|
|
12815
|
+
if (!schema.showTooltip) {
|
|
12816
|
+
schema.fullLabel = null;
|
|
12817
|
+
}
|
|
12818
|
+
else if (schema.label && !schema.fullLabel) {
|
|
12809
12819
|
schema.fullLabel = schema.label;
|
|
12810
12820
|
}
|
|
12811
12821
|
if (schema['isReadonly']) {
|