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
|
@@ -1366,6 +1366,7 @@
|
|
|
1366
1366
|
_this.isHtmlLabel = false;
|
|
1367
1367
|
_this.isHorizontallyLabel = false;
|
|
1368
1368
|
_this.order = 0;
|
|
1369
|
+
_this.showTooltip = true;
|
|
1369
1370
|
for (var key in init) {
|
|
1370
1371
|
_this[key] = init[key];
|
|
1371
1372
|
}
|
|
@@ -4838,6 +4839,12 @@
|
|
|
4838
4839
|
var weekdays = ['Chủ nhật', 'Thứ hai', 'Thứ ba', 'Thứ tư', 'Thứ năm', 'Thứ sáu', 'Thứ bảy'];
|
|
4839
4840
|
return weekdays[date.getDay()];
|
|
4840
4841
|
};
|
|
4842
|
+
CommonService.prototype.getQuarterFromDate = function (date) {
|
|
4843
|
+
if (!date) {
|
|
4844
|
+
date = new Date();
|
|
4845
|
+
}
|
|
4846
|
+
return Math.floor((date.getMonth() + 3) / 3);
|
|
4847
|
+
};
|
|
4841
4848
|
return CommonService;
|
|
4842
4849
|
}());
|
|
4843
4850
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -15214,7 +15221,10 @@
|
|
|
15214
15221
|
if (this.isViewMode) {
|
|
15215
15222
|
schema.disabled = true;
|
|
15216
15223
|
}
|
|
15217
|
-
if (
|
|
15224
|
+
if (!schema.showTooltip) {
|
|
15225
|
+
schema.fullLabel = null;
|
|
15226
|
+
}
|
|
15227
|
+
else if (schema.label && !schema.fullLabel) {
|
|
15218
15228
|
schema.fullLabel = schema.label;
|
|
15219
15229
|
}
|
|
15220
15230
|
if (schema['isReadonly']) {
|