@seniorsistemas/angular-components 17.2.12 → 17.2.14

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.
@@ -2965,7 +2965,7 @@ var CalendarField = /** @class */ (function (_super) {
2965
2965
  _this.defaultDate = config.defaultDate;
2966
2966
  _this.appendTo = config.appendTo;
2967
2967
  _this.showOnFocus = typeof config.showOnFocus === "boolean" ? config.showOnFocus : true;
2968
- _this.calendarLocaleOptions = config.calendarLocaleOptions || new CalendarLocaleOptions();
2968
+ _this.calendarLocaleOptions = config.calendarLocaleOptions;
2969
2969
  _this.onBlur = config.onBlur;
2970
2970
  _this.onFocus = config.onFocus;
2971
2971
  _this.onSelect = config.onSelect;
@@ -7171,8 +7171,74 @@ var BooleanSwitchFieldComponent = /** @class */ (function () {
7171
7171
  }());
7172
7172
 
7173
7173
  var CalendarFieldComponent = /** @class */ (function () {
7174
- function CalendarFieldComponent() {
7174
+ function CalendarFieldComponent(translateService) {
7175
+ this.translateService = translateService;
7176
+ this.locale = {
7177
+ firstDayOfWeek: 0,
7178
+ dayNames: [
7179
+ this.translateService.instant("platform.angular_components.sunday"),
7180
+ this.translateService.instant("platform.angular_components.monday"),
7181
+ this.translateService.instant("platform.angular_components.tuesday"),
7182
+ this.translateService.instant("platform.angular_components.wednesday"),
7183
+ this.translateService.instant("platform.angular_components.thursday"),
7184
+ this.translateService.instant("platform.angular_components.friday"),
7185
+ this.translateService.instant("platform.angular_components.saturday"),
7186
+ ],
7187
+ dayNamesShort: [
7188
+ this.translateService.instant("platform.angular_components.sunday_short"),
7189
+ this.translateService.instant("platform.angular_components.monday_short"),
7190
+ this.translateService.instant("platform.angular_components.tuesday_short"),
7191
+ this.translateService.instant("platform.angular_components.wednesday_short"),
7192
+ this.translateService.instant("platform.angular_components.thursday_short"),
7193
+ this.translateService.instant("platform.angular_components.friday_short"),
7194
+ this.translateService.instant("platform.angular_components.saturday_short"),
7195
+ ],
7196
+ dayNamesMin: [
7197
+ this.translateService.instant("platform.angular_components.sunday_min"),
7198
+ this.translateService.instant("platform.angular_components.monday_min"),
7199
+ this.translateService.instant("platform.angular_components.tuesday_min"),
7200
+ this.translateService.instant("platform.angular_components.wednesday_min"),
7201
+ this.translateService.instant("platform.angular_components.thursday_min"),
7202
+ this.translateService.instant("platform.angular_components.friday_min"),
7203
+ this.translateService.instant("platform.angular_components.saturday_min"),
7204
+ ],
7205
+ monthNames: [
7206
+ this.translateService.instant("platform.angular_components.january"),
7207
+ this.translateService.instant("platform.angular_components.february"),
7208
+ this.translateService.instant("platform.angular_components.march"),
7209
+ this.translateService.instant("platform.angular_components.april"),
7210
+ this.translateService.instant("platform.angular_components.may"),
7211
+ this.translateService.instant("platform.angular_components.june"),
7212
+ this.translateService.instant("platform.angular_components.july"),
7213
+ this.translateService.instant("platform.angular_components.august"),
7214
+ this.translateService.instant("platform.angular_components.september"),
7215
+ this.translateService.instant("platform.angular_components.october"),
7216
+ this.translateService.instant("platform.angular_components.november"),
7217
+ this.translateService.instant("platform.angular_components.december"),
7218
+ ],
7219
+ monthNamesShort: [
7220
+ this.translateService.instant("platform.angular_components.january_short"),
7221
+ this.translateService.instant("platform.angular_components.february_short"),
7222
+ this.translateService.instant("platform.angular_components.march_short"),
7223
+ this.translateService.instant("platform.angular_components.april_short"),
7224
+ this.translateService.instant("platform.angular_components.may_short"),
7225
+ this.translateService.instant("platform.angular_components.june_short"),
7226
+ this.translateService.instant("platform.angular_components.july_short"),
7227
+ this.translateService.instant("platform.angular_components.august_short"),
7228
+ this.translateService.instant("platform.angular_components.september_short"),
7229
+ this.translateService.instant("platform.angular_components.october_short"),
7230
+ this.translateService.instant("platform.angular_components.november_short"),
7231
+ this.translateService.instant("platform.angular_components.december_short"),
7232
+ ],
7233
+ today: this.translateService.instant("platform.angular_components.today"),
7234
+ clear: this.translateService.instant("platform.angular_components.clear"),
7235
+ dateFormat: this.translateService.instant("platform.angular_components.date_format"),
7236
+ hourFormat: this.translateService.instant("platform.angular_components.hour_format"),
7237
+ };
7175
7238
  }
7239
+ CalendarFieldComponent.ctorParameters = function () { return [
7240
+ { type: TranslateService }
7241
+ ]; };
7176
7242
  __decorate([
7177
7243
  Input()
7178
7244
  ], CalendarFieldComponent.prototype, "field", void 0);
@@ -7187,7 +7253,7 @@ var CalendarFieldComponent = /** @class */ (function () {
7187
7253
  ], CalendarFieldComponent.prototype, "timeOnly", void 0);
7188
7254
  CalendarFieldComponent = __decorate([
7189
7255
  Component({
7190
- template: "<div\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\">\n <!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela anima\u00E7\u00E3o do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. -->\n <p-calendar\n #calendar\n sCalendarMask\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [showIcon]=\"true\"\n [timeOnly]=\"timeOnly\"\n [selectionMode]=\"field.selectionMode\"\n [rangeSeparator]=\"field.rangeSeparator\"\n [showTime]=\"showTime\"\n [showSeconds]=\"field.showSeconds\"\n [showOnFocus]=\"field.showOnFocus\"\n [formControl]=\"formControl\"\n [icon]=\"timeOnly ? 'fa fa-clock' : 'fa fa-calendar'\"\n [minDate]=\"field.minDate\"\n [maxDate]=\"field.maxDate\"\n [defaultDate]=\"field.defaultDate\"\n [locale]=\"field.calendarLocaleOptions\"\n [dateFormat]=\"field.calendarLocaleOptions.dateFormat\"\n [hourFormat]=\"field.calendarLocaleOptions.hourFormat\"\n [view]=\"field.view\"\n [placeholder]=\"field.placeholder\"\n inputStyleClass=\"mousetrap\"\n [appendTo]=\"field.appendTo\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event): null\"\n (onSelect)=\"field.onSelect ? field.onSelect($event) : null\"\n (onClose)=\"field.onClose ? field.onClose($event) : null\"\n (onTodayClick)=\"field.onTodayClick ? field.onTodayClick($event) : null\"\n (onClearClick)=\"field.onClearClick ? field.onClearClick($event) : null\"\n (onMonthChange)=\"field.onMonthChange ? field.onMonthChange($event) : null\"\n (onYearChange)=\"field.onYearChange ? field.onYearChange($event) : null\"\n [showTransitionOptions]=\"'0ms'\"\n [hideTransitionOptions]=\"'0ms'\">\n </p-calendar>\n</div>\n"
7256
+ template: "<div\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\">\n <!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela anima\u00E7\u00E3o do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. -->\n <p-calendar\n #calendar\n sCalendarMask\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [showIcon]=\"true\"\n [timeOnly]=\"timeOnly\"\n [selectionMode]=\"field.selectionMode\"\n [rangeSeparator]=\"field.rangeSeparator\"\n [showTime]=\"showTime\"\n [showSeconds]=\"field.showSeconds\"\n [showOnFocus]=\"field.showOnFocus\"\n [formControl]=\"formControl\"\n [icon]=\"timeOnly ? 'fa fa-clock' : 'fa fa-calendar'\"\n [minDate]=\"field.minDate\"\n [maxDate]=\"field.maxDate\"\n [defaultDate]=\"field.defaultDate\"\n [locale]=\"field.calendarLocaleOptions || locale\"\n [dateFormat]=\"field.calendarLocaleOptions?.dateFormat || 'platform.angular_components.hour_format' | translate\"\n [hourFormat]=\"field.calendarLocaleOptions?.hourFormat || 'platform.angular_components.date_format' | translate\"\n [view]=\"field.view\"\n [placeholder]=\"field.placeholder\"\n inputStyleClass=\"mousetrap\"\n [appendTo]=\"field.appendTo\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n (onFocus)=\"field.onFocus ? field.onFocus($event): null\"\n (onSelect)=\"field.onSelect ? field.onSelect($event) : null\"\n (onClose)=\"field.onClose ? field.onClose($event) : null\"\n (onTodayClick)=\"field.onTodayClick ? field.onTodayClick($event) : null\"\n (onClearClick)=\"field.onClearClick ? field.onClearClick($event) : null\"\n (onMonthChange)=\"field.onMonthChange ? field.onMonthChange($event) : null\"\n (onYearChange)=\"field.onYearChange ? field.onYearChange($event) : null\"\n [showTransitionOptions]=\"'0ms'\"\n [hideTransitionOptions]=\"'0ms'\">\n </p-calendar>\n</div>\n"
7191
7257
  })
7192
7258
  ], CalendarFieldComponent);
7193
7259
  return CalendarFieldComponent;
@@ -8152,7 +8218,7 @@ var DynamicFormModule = /** @class */ (function () {
8152
8218
  SwitchModule,
8153
8219
  PasswordStrengthModule,
8154
8220
  SliderModule,
8155
- TranslateModule,
8221
+ TranslateModule.forChild(),
8156
8222
  ],
8157
8223
  declarations: [
8158
8224
  AutocompleteFieldComponent,
@@ -15536,6 +15602,55 @@ var PanelModule = /** @class */ (function () {
15536
15602
  }());
15537
15603
 
15538
15604
  var fallback = {
15605
+ "platform.angular_components.january": "Janeiro",
15606
+ "platform.angular_components.february": "Fevereiro",
15607
+ "platform.angular_components.march": "Março",
15608
+ "platform.angular_components.april": "Abril",
15609
+ "platform.angular_components.may": "Maio",
15610
+ "platform.angular_components.june": "Junho",
15611
+ "platform.angular_components.july": "Julho",
15612
+ "platform.angular_components.august": "Agosto",
15613
+ "platform.angular_components.september": "Setembro",
15614
+ "platform.angular_components.october": "Outubro",
15615
+ "platform.angular_components.november": "Novembro",
15616
+ "platform.angular_components.december": "Dezembro",
15617
+ "platform.angular_components.january_short": "Jan",
15618
+ "platform.angular_components.february_short": "Fev",
15619
+ "platform.angular_components.march_short": "Mar",
15620
+ "platform.angular_components.april_short": "Abr",
15621
+ "platform.angular_components.may_short": "Mai",
15622
+ "platform.angular_components.june_short": "Jun",
15623
+ "platform.angular_components.july_short": "Jul",
15624
+ "platform.angular_components.august_short": "Ago",
15625
+ "platform.angular_components.september_short": "Set",
15626
+ "platform.angular_components.october_short": "Out",
15627
+ "platform.angular_components.november_short": "Nov",
15628
+ "platform.angular_components.december_short": "Dez",
15629
+ "platform.angular_components.sunday": "Domingo",
15630
+ "platform.angular_components.monday": "Segunda-feira",
15631
+ "platform.angular_components.tuesday": "Terça-feira",
15632
+ "platform.angular_components.wednesday": "Quarta-feira",
15633
+ "platform.angular_components.thursday": "Quinta-feira",
15634
+ "platform.angular_components.friday": "Sexta-feira",
15635
+ "platform.angular_components.saturday": "Sábado",
15636
+ "platform.angular_components.sunday_short": "Dom",
15637
+ "platform.angular_components.monday_short": "Seg",
15638
+ "platform.angular_components.tuesday_short": "Ter",
15639
+ "platform.angular_components.wednesday_short": "Qua",
15640
+ "platform.angular_components.thursday_short": "Qui",
15641
+ "platform.angular_components.friday_short": "Sex",
15642
+ "platform.angular_components.saturday_short": "Sáb",
15643
+ "platform.angular_components.sunday_min": "D",
15644
+ "platform.angular_components.monday_min": "S",
15645
+ "platform.angular_components.tuesday_min": "T",
15646
+ "platform.angular_components.wednesday_min": "Q",
15647
+ "platform.angular_components.thursday_min": "Q",
15648
+ "platform.angular_components.friday_min": "S",
15649
+ "platform.angular_components.saturday_min": "S",
15650
+ "platform.angular_components.today": "Hoje",
15651
+ "platform.angular_components.hour_format": "24",
15652
+ "platform.angular_components.date_format": "dd/mm/yy",
15653
+ "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
15539
15654
  "platform.angular_components.attach_files": "Anexar arquivos",
15540
15655
  "platform.angular_components.remove": "Remover",
15541
15656
  "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",