@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.
@@ -3112,7 +3112,7 @@
3112
3112
  _this.defaultDate = config.defaultDate;
3113
3113
  _this.appendTo = config.appendTo;
3114
3114
  _this.showOnFocus = typeof config.showOnFocus === "boolean" ? config.showOnFocus : true;
3115
- _this.calendarLocaleOptions = config.calendarLocaleOptions || new CalendarLocaleOptions();
3115
+ _this.calendarLocaleOptions = config.calendarLocaleOptions;
3116
3116
  _this.onBlur = config.onBlur;
3117
3117
  _this.onFocus = config.onFocus;
3118
3118
  _this.onSelect = config.onSelect;
@@ -7318,8 +7318,74 @@
7318
7318
  }());
7319
7319
 
7320
7320
  var CalendarFieldComponent = /** @class */ (function () {
7321
- function CalendarFieldComponent() {
7321
+ function CalendarFieldComponent(translateService) {
7322
+ this.translateService = translateService;
7323
+ this.locale = {
7324
+ firstDayOfWeek: 0,
7325
+ dayNames: [
7326
+ this.translateService.instant("platform.angular_components.sunday"),
7327
+ this.translateService.instant("platform.angular_components.monday"),
7328
+ this.translateService.instant("platform.angular_components.tuesday"),
7329
+ this.translateService.instant("platform.angular_components.wednesday"),
7330
+ this.translateService.instant("platform.angular_components.thursday"),
7331
+ this.translateService.instant("platform.angular_components.friday"),
7332
+ this.translateService.instant("platform.angular_components.saturday"),
7333
+ ],
7334
+ dayNamesShort: [
7335
+ this.translateService.instant("platform.angular_components.sunday_short"),
7336
+ this.translateService.instant("platform.angular_components.monday_short"),
7337
+ this.translateService.instant("platform.angular_components.tuesday_short"),
7338
+ this.translateService.instant("platform.angular_components.wednesday_short"),
7339
+ this.translateService.instant("platform.angular_components.thursday_short"),
7340
+ this.translateService.instant("platform.angular_components.friday_short"),
7341
+ this.translateService.instant("platform.angular_components.saturday_short"),
7342
+ ],
7343
+ dayNamesMin: [
7344
+ this.translateService.instant("platform.angular_components.sunday_min"),
7345
+ this.translateService.instant("platform.angular_components.monday_min"),
7346
+ this.translateService.instant("platform.angular_components.tuesday_min"),
7347
+ this.translateService.instant("platform.angular_components.wednesday_min"),
7348
+ this.translateService.instant("platform.angular_components.thursday_min"),
7349
+ this.translateService.instant("platform.angular_components.friday_min"),
7350
+ this.translateService.instant("platform.angular_components.saturday_min"),
7351
+ ],
7352
+ monthNames: [
7353
+ this.translateService.instant("platform.angular_components.january"),
7354
+ this.translateService.instant("platform.angular_components.february"),
7355
+ this.translateService.instant("platform.angular_components.march"),
7356
+ this.translateService.instant("platform.angular_components.april"),
7357
+ this.translateService.instant("platform.angular_components.may"),
7358
+ this.translateService.instant("platform.angular_components.june"),
7359
+ this.translateService.instant("platform.angular_components.july"),
7360
+ this.translateService.instant("platform.angular_components.august"),
7361
+ this.translateService.instant("platform.angular_components.september"),
7362
+ this.translateService.instant("platform.angular_components.october"),
7363
+ this.translateService.instant("platform.angular_components.november"),
7364
+ this.translateService.instant("platform.angular_components.december"),
7365
+ ],
7366
+ monthNamesShort: [
7367
+ this.translateService.instant("platform.angular_components.january_short"),
7368
+ this.translateService.instant("platform.angular_components.february_short"),
7369
+ this.translateService.instant("platform.angular_components.march_short"),
7370
+ this.translateService.instant("platform.angular_components.april_short"),
7371
+ this.translateService.instant("platform.angular_components.may_short"),
7372
+ this.translateService.instant("platform.angular_components.june_short"),
7373
+ this.translateService.instant("platform.angular_components.july_short"),
7374
+ this.translateService.instant("platform.angular_components.august_short"),
7375
+ this.translateService.instant("platform.angular_components.september_short"),
7376
+ this.translateService.instant("platform.angular_components.october_short"),
7377
+ this.translateService.instant("platform.angular_components.november_short"),
7378
+ this.translateService.instant("platform.angular_components.december_short"),
7379
+ ],
7380
+ today: this.translateService.instant("platform.angular_components.today"),
7381
+ clear: this.translateService.instant("platform.angular_components.clear"),
7382
+ dateFormat: this.translateService.instant("platform.angular_components.date_format"),
7383
+ hourFormat: this.translateService.instant("platform.angular_components.hour_format"),
7384
+ };
7322
7385
  }
7386
+ CalendarFieldComponent.ctorParameters = function () { return [
7387
+ { type: core$1.TranslateService }
7388
+ ]; };
7323
7389
  __decorate([
7324
7390
  core.Input()
7325
7391
  ], CalendarFieldComponent.prototype, "field", void 0);
@@ -7334,7 +7400,7 @@
7334
7400
  ], CalendarFieldComponent.prototype, "timeOnly", void 0);
7335
7401
  CalendarFieldComponent = __decorate([
7336
7402
  core.Component({
7337
- 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"
7403
+ 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"
7338
7404
  })
7339
7405
  ], CalendarFieldComponent);
7340
7406
  return CalendarFieldComponent;
@@ -8299,7 +8365,7 @@
8299
8365
  SwitchModule,
8300
8366
  PasswordStrengthModule,
8301
8367
  slider.SliderModule,
8302
- core$1.TranslateModule,
8368
+ core$1.TranslateModule.forChild(),
8303
8369
  ],
8304
8370
  declarations: [
8305
8371
  AutocompleteFieldComponent,
@@ -15683,6 +15749,55 @@
15683
15749
  }());
15684
15750
 
15685
15751
  var fallback = {
15752
+ "platform.angular_components.january": "Janeiro",
15753
+ "platform.angular_components.february": "Fevereiro",
15754
+ "platform.angular_components.march": "Março",
15755
+ "platform.angular_components.april": "Abril",
15756
+ "platform.angular_components.may": "Maio",
15757
+ "platform.angular_components.june": "Junho",
15758
+ "platform.angular_components.july": "Julho",
15759
+ "platform.angular_components.august": "Agosto",
15760
+ "platform.angular_components.september": "Setembro",
15761
+ "platform.angular_components.october": "Outubro",
15762
+ "platform.angular_components.november": "Novembro",
15763
+ "platform.angular_components.december": "Dezembro",
15764
+ "platform.angular_components.january_short": "Jan",
15765
+ "platform.angular_components.february_short": "Fev",
15766
+ "platform.angular_components.march_short": "Mar",
15767
+ "platform.angular_components.april_short": "Abr",
15768
+ "platform.angular_components.may_short": "Mai",
15769
+ "platform.angular_components.june_short": "Jun",
15770
+ "platform.angular_components.july_short": "Jul",
15771
+ "platform.angular_components.august_short": "Ago",
15772
+ "platform.angular_components.september_short": "Set",
15773
+ "platform.angular_components.october_short": "Out",
15774
+ "platform.angular_components.november_short": "Nov",
15775
+ "platform.angular_components.december_short": "Dez",
15776
+ "platform.angular_components.sunday": "Domingo",
15777
+ "platform.angular_components.monday": "Segunda-feira",
15778
+ "platform.angular_components.tuesday": "Terça-feira",
15779
+ "platform.angular_components.wednesday": "Quarta-feira",
15780
+ "platform.angular_components.thursday": "Quinta-feira",
15781
+ "platform.angular_components.friday": "Sexta-feira",
15782
+ "platform.angular_components.saturday": "Sábado",
15783
+ "platform.angular_components.sunday_short": "Dom",
15784
+ "platform.angular_components.monday_short": "Seg",
15785
+ "platform.angular_components.tuesday_short": "Ter",
15786
+ "platform.angular_components.wednesday_short": "Qua",
15787
+ "platform.angular_components.thursday_short": "Qui",
15788
+ "platform.angular_components.friday_short": "Sex",
15789
+ "platform.angular_components.saturday_short": "Sáb",
15790
+ "platform.angular_components.sunday_min": "D",
15791
+ "platform.angular_components.monday_min": "S",
15792
+ "platform.angular_components.tuesday_min": "T",
15793
+ "platform.angular_components.wednesday_min": "Q",
15794
+ "platform.angular_components.thursday_min": "Q",
15795
+ "platform.angular_components.friday_min": "S",
15796
+ "platform.angular_components.saturday_min": "S",
15797
+ "platform.angular_components.today": "Hoje",
15798
+ "platform.angular_components.hour_format": "24",
15799
+ "platform.angular_components.date_format": "dd/mm/yy",
15800
+ "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
15686
15801
  "platform.angular_components.attach_files": "Anexar arquivos",
15687
15802
  "platform.angular_components.remove": "Remover",
15688
15803
  "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",