@ngx-smz/core 19.5.0 → 19.5.2

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.
@@ -1300,6 +1300,9 @@ function fixDateProperties(data) {
1300
1300
  const fixedDate = fixStringDate$1(data[key]);
1301
1301
  data[key] = new Date(fixedDate.getUTCFullYear(), fixedDate.getUTCMonth(), fixedDate.getUTCDate());
1302
1302
  }
1303
+ else if (key === 'createdAt') {
1304
+ data[key] = fixStringDate$1(data[key]);
1305
+ }
1303
1306
  else if (key === 'lastUpdate') {
1304
1307
  data[key] = fixStringDate$1(data[key]);
1305
1308
  }
@@ -2734,11 +2737,11 @@ class CalendarComponent {
2734
2737
  ngOnInit() {
2735
2738
  }
2736
2739
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2737
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: CalendarComponent, isStandalone: false, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"input_inner__wrapper flex flex-col flex-auto p-0 gap-1\">\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning\">\r\n </smz-label>\r\n <p-datepicker\r\n class=\"w-full smz__input_value\"\r\n styleClass=\"w-full\"\r\n [monthNavigator]=\"true\"\r\n [yearNavigator]=\"true\"\r\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n [timeOnly]=\"input.timeOnly\"\r\n [showTime]=\"input.showTime\"\r\n\r\n [id]=\"input.propertyName\"\r\n [formControl]=\"control\">\r\n </p-datepicker>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>", dependencies: [{ kind: "component", type: i1$1.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "fluid", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "size", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: LabelComponent, selector: "smz-label", inputs: ["text", "propertyName", "showLabel", "warning"] }, { kind: "component", type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }] });
2740
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: CalendarComponent, isStandalone: false, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"input_inner__wrapper flex flex-col flex-auto p-0 gap-1\">\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning\">\r\n </smz-label>\r\n <p-datepicker\r\n class=\"w-full smz__input_value\"\r\n styleClass=\"w-full\"\r\n appendTo=\"body\"\r\n [monthNavigator]=\"true\"\r\n [yearNavigator]=\"true\"\r\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n [timeOnly]=\"input.timeOnly\"\r\n [showTime]=\"input.showTime\"\r\n\r\n [id]=\"input.propertyName\"\r\n [formControl]=\"control\">\r\n </p-datepicker>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>", dependencies: [{ kind: "component", type: i1$1.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "fluid", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "variant", "size", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: LabelComponent, selector: "smz-label", inputs: ["text", "propertyName", "showLabel", "warning"] }, { kind: "component", type: ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }] });
2738
2741
  }
2739
2742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: CalendarComponent, decorators: [{
2740
2743
  type: Component,
2741
- args: [{ selector: 'smz-calendar', standalone: false, template: "<div class=\"input_inner__wrapper flex flex-col flex-auto p-0 gap-1\">\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning\">\r\n </smz-label>\r\n <p-datepicker\r\n class=\"w-full smz__input_value\"\r\n styleClass=\"w-full\"\r\n [monthNavigator]=\"true\"\r\n [yearNavigator]=\"true\"\r\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n [timeOnly]=\"input.timeOnly\"\r\n [showTime]=\"input.showTime\"\r\n\r\n [id]=\"input.propertyName\"\r\n [formControl]=\"control\">\r\n </p-datepicker>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>" }]
2744
+ args: [{ selector: 'smz-calendar', standalone: false, template: "<div class=\"input_inner__wrapper flex flex-col flex-auto p-0 gap-1\">\r\n <smz-label\r\n class=\"smz__input_name\"\r\n [text]=\"input.name\"\r\n [propertyName]=\"input.propertyName\"\r\n [showLabel]=\"input.hideLabel != true\"\r\n [warning]=\"input.warning\">\r\n </smz-label>\r\n <p-datepicker\r\n class=\"w-full smz__input_value\"\r\n styleClass=\"w-full\"\r\n appendTo=\"body\"\r\n [monthNavigator]=\"true\"\r\n [yearNavigator]=\"true\"\r\n [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n [timeOnly]=\"input.timeOnly\"\r\n [showTime]=\"input.showTime\"\r\n\r\n [id]=\"input.propertyName\"\r\n [formControl]=\"control\">\r\n </p-datepicker>\r\n <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n</div>" }]
2742
2745
  }], ctorParameters: () => [], propDecorators: { input: [{
2743
2746
  type: Input
2744
2747
  }], control: [{