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.
@@ -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 (schema.label && !schema.fullLabel) {
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']) {