@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.
- package/bundles/seniorsistemas-angular-components.umd.js +119 -4
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/components/fields/calendar/calendar-field.component.d.ts +15 -0
- package/esm2015/components/dynamic-form/components/fields/calendar/calendar-field.component.js +71 -2
- package/esm2015/components/dynamic-form/configurations/fields/calendar-field.js +2 -3
- package/esm2015/components/dynamic-form/dynamic-form.module.js +2 -2
- package/esm2015/locale/fallback.js +50 -1
- package/esm5/components/dynamic-form/components/fields/calendar/calendar-field.component.js +70 -3
- package/esm5/components/dynamic-form/configurations/fields/calendar-field.js +2 -3
- package/esm5/components/dynamic-form/dynamic-form.module.js +2 -2
- package/esm5/locale/fallback.js +50 -1
- package/fesm2015/seniorsistemas-angular-components.js +120 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +119 -4
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -2783,7 +2783,7 @@ class CalendarField extends Field {
|
|
|
2783
2783
|
this.defaultDate = config.defaultDate;
|
|
2784
2784
|
this.appendTo = config.appendTo;
|
|
2785
2785
|
this.showOnFocus = typeof config.showOnFocus === "boolean" ? config.showOnFocus : true;
|
|
2786
|
-
this.calendarLocaleOptions = config.calendarLocaleOptions
|
|
2786
|
+
this.calendarLocaleOptions = config.calendarLocaleOptions;
|
|
2787
2787
|
this.onBlur = config.onBlur;
|
|
2788
2788
|
this.onFocus = config.onFocus;
|
|
2789
2789
|
this.onSelect = config.onSelect;
|
|
@@ -6648,7 +6648,75 @@ BooleanSwitchFieldComponent = __decorate([
|
|
|
6648
6648
|
], BooleanSwitchFieldComponent);
|
|
6649
6649
|
|
|
6650
6650
|
let CalendarFieldComponent = class CalendarFieldComponent {
|
|
6651
|
+
constructor(translateService) {
|
|
6652
|
+
this.translateService = translateService;
|
|
6653
|
+
this.locale = {
|
|
6654
|
+
firstDayOfWeek: 0,
|
|
6655
|
+
dayNames: [
|
|
6656
|
+
this.translateService.instant("platform.angular_components.sunday"),
|
|
6657
|
+
this.translateService.instant("platform.angular_components.monday"),
|
|
6658
|
+
this.translateService.instant("platform.angular_components.tuesday"),
|
|
6659
|
+
this.translateService.instant("platform.angular_components.wednesday"),
|
|
6660
|
+
this.translateService.instant("platform.angular_components.thursday"),
|
|
6661
|
+
this.translateService.instant("platform.angular_components.friday"),
|
|
6662
|
+
this.translateService.instant("platform.angular_components.saturday"),
|
|
6663
|
+
],
|
|
6664
|
+
dayNamesShort: [
|
|
6665
|
+
this.translateService.instant("platform.angular_components.sunday_short"),
|
|
6666
|
+
this.translateService.instant("platform.angular_components.monday_short"),
|
|
6667
|
+
this.translateService.instant("platform.angular_components.tuesday_short"),
|
|
6668
|
+
this.translateService.instant("platform.angular_components.wednesday_short"),
|
|
6669
|
+
this.translateService.instant("platform.angular_components.thursday_short"),
|
|
6670
|
+
this.translateService.instant("platform.angular_components.friday_short"),
|
|
6671
|
+
this.translateService.instant("platform.angular_components.saturday_short"),
|
|
6672
|
+
],
|
|
6673
|
+
dayNamesMin: [
|
|
6674
|
+
this.translateService.instant("platform.angular_components.sunday_min"),
|
|
6675
|
+
this.translateService.instant("platform.angular_components.monday_min"),
|
|
6676
|
+
this.translateService.instant("platform.angular_components.tuesday_min"),
|
|
6677
|
+
this.translateService.instant("platform.angular_components.wednesday_min"),
|
|
6678
|
+
this.translateService.instant("platform.angular_components.thursday_min"),
|
|
6679
|
+
this.translateService.instant("platform.angular_components.friday_min"),
|
|
6680
|
+
this.translateService.instant("platform.angular_components.saturday_min"),
|
|
6681
|
+
],
|
|
6682
|
+
monthNames: [
|
|
6683
|
+
this.translateService.instant("platform.angular_components.january"),
|
|
6684
|
+
this.translateService.instant("platform.angular_components.february"),
|
|
6685
|
+
this.translateService.instant("platform.angular_components.march"),
|
|
6686
|
+
this.translateService.instant("platform.angular_components.april"),
|
|
6687
|
+
this.translateService.instant("platform.angular_components.may"),
|
|
6688
|
+
this.translateService.instant("platform.angular_components.june"),
|
|
6689
|
+
this.translateService.instant("platform.angular_components.july"),
|
|
6690
|
+
this.translateService.instant("platform.angular_components.august"),
|
|
6691
|
+
this.translateService.instant("platform.angular_components.september"),
|
|
6692
|
+
this.translateService.instant("platform.angular_components.october"),
|
|
6693
|
+
this.translateService.instant("platform.angular_components.november"),
|
|
6694
|
+
this.translateService.instant("platform.angular_components.december"),
|
|
6695
|
+
],
|
|
6696
|
+
monthNamesShort: [
|
|
6697
|
+
this.translateService.instant("platform.angular_components.january_short"),
|
|
6698
|
+
this.translateService.instant("platform.angular_components.february_short"),
|
|
6699
|
+
this.translateService.instant("platform.angular_components.march_short"),
|
|
6700
|
+
this.translateService.instant("platform.angular_components.april_short"),
|
|
6701
|
+
this.translateService.instant("platform.angular_components.may_short"),
|
|
6702
|
+
this.translateService.instant("platform.angular_components.june_short"),
|
|
6703
|
+
this.translateService.instant("platform.angular_components.july_short"),
|
|
6704
|
+
this.translateService.instant("platform.angular_components.august_short"),
|
|
6705
|
+
this.translateService.instant("platform.angular_components.september_short"),
|
|
6706
|
+
this.translateService.instant("platform.angular_components.october_short"),
|
|
6707
|
+
this.translateService.instant("platform.angular_components.november_short"),
|
|
6708
|
+
this.translateService.instant("platform.angular_components.december_short"),
|
|
6709
|
+
],
|
|
6710
|
+
today: this.translateService.instant("platform.angular_components.today"),
|
|
6711
|
+
clear: this.translateService.instant("platform.angular_components.clear"),
|
|
6712
|
+
dateFormat: this.translateService.instant("platform.angular_components.date_format"),
|
|
6713
|
+
hourFormat: this.translateService.instant("platform.angular_components.hour_format"),
|
|
6714
|
+
};
|
|
6715
|
+
}
|
|
6651
6716
|
};
|
|
6717
|
+
CalendarFieldComponent.ctorParameters = () => [
|
|
6718
|
+
{ type: TranslateService }
|
|
6719
|
+
];
|
|
6652
6720
|
__decorate([
|
|
6653
6721
|
Input()
|
|
6654
6722
|
], CalendarFieldComponent.prototype, "field", void 0);
|
|
@@ -6663,7 +6731,7 @@ __decorate([
|
|
|
6663
6731
|
], CalendarFieldComponent.prototype, "timeOnly", void 0);
|
|
6664
6732
|
CalendarFieldComponent = __decorate([
|
|
6665
6733
|
Component({
|
|
6666
|
-
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.
|
|
6734
|
+
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"
|
|
6667
6735
|
})
|
|
6668
6736
|
], CalendarFieldComponent);
|
|
6669
6737
|
|
|
@@ -7571,7 +7639,7 @@ DynamicFormModule = __decorate([
|
|
|
7571
7639
|
SwitchModule,
|
|
7572
7640
|
PasswordStrengthModule,
|
|
7573
7641
|
SliderModule,
|
|
7574
|
-
TranslateModule,
|
|
7642
|
+
TranslateModule.forChild(),
|
|
7575
7643
|
],
|
|
7576
7644
|
declarations: [
|
|
7577
7645
|
AutocompleteFieldComponent,
|
|
@@ -14519,6 +14587,55 @@ PanelModule = __decorate([
|
|
|
14519
14587
|
], PanelModule);
|
|
14520
14588
|
|
|
14521
14589
|
const fallback = {
|
|
14590
|
+
"platform.angular_components.january": "Janeiro",
|
|
14591
|
+
"platform.angular_components.february": "Fevereiro",
|
|
14592
|
+
"platform.angular_components.march": "Março",
|
|
14593
|
+
"platform.angular_components.april": "Abril",
|
|
14594
|
+
"platform.angular_components.may": "Maio",
|
|
14595
|
+
"platform.angular_components.june": "Junho",
|
|
14596
|
+
"platform.angular_components.july": "Julho",
|
|
14597
|
+
"platform.angular_components.august": "Agosto",
|
|
14598
|
+
"platform.angular_components.september": "Setembro",
|
|
14599
|
+
"platform.angular_components.october": "Outubro",
|
|
14600
|
+
"platform.angular_components.november": "Novembro",
|
|
14601
|
+
"platform.angular_components.december": "Dezembro",
|
|
14602
|
+
"platform.angular_components.january_short": "Jan",
|
|
14603
|
+
"platform.angular_components.february_short": "Fev",
|
|
14604
|
+
"platform.angular_components.march_short": "Mar",
|
|
14605
|
+
"platform.angular_components.april_short": "Abr",
|
|
14606
|
+
"platform.angular_components.may_short": "Mai",
|
|
14607
|
+
"platform.angular_components.june_short": "Jun",
|
|
14608
|
+
"platform.angular_components.july_short": "Jul",
|
|
14609
|
+
"platform.angular_components.august_short": "Ago",
|
|
14610
|
+
"platform.angular_components.september_short": "Set",
|
|
14611
|
+
"platform.angular_components.october_short": "Out",
|
|
14612
|
+
"platform.angular_components.november_short": "Nov",
|
|
14613
|
+
"platform.angular_components.december_short": "Dez",
|
|
14614
|
+
"platform.angular_components.sunday": "Domingo",
|
|
14615
|
+
"platform.angular_components.monday": "Segunda-feira",
|
|
14616
|
+
"platform.angular_components.tuesday": "Terça-feira",
|
|
14617
|
+
"platform.angular_components.wednesday": "Quarta-feira",
|
|
14618
|
+
"platform.angular_components.thursday": "Quinta-feira",
|
|
14619
|
+
"platform.angular_components.friday": "Sexta-feira",
|
|
14620
|
+
"platform.angular_components.saturday": "Sábado",
|
|
14621
|
+
"platform.angular_components.sunday_short": "Dom",
|
|
14622
|
+
"platform.angular_components.monday_short": "Seg",
|
|
14623
|
+
"platform.angular_components.tuesday_short": "Ter",
|
|
14624
|
+
"platform.angular_components.wednesday_short": "Qua",
|
|
14625
|
+
"platform.angular_components.thursday_short": "Qui",
|
|
14626
|
+
"platform.angular_components.friday_short": "Sex",
|
|
14627
|
+
"platform.angular_components.saturday_short": "Sáb",
|
|
14628
|
+
"platform.angular_components.sunday_min": "D",
|
|
14629
|
+
"platform.angular_components.monday_min": "S",
|
|
14630
|
+
"platform.angular_components.tuesday_min": "T",
|
|
14631
|
+
"platform.angular_components.wednesday_min": "Q",
|
|
14632
|
+
"platform.angular_components.thursday_min": "Q",
|
|
14633
|
+
"platform.angular_components.friday_min": "S",
|
|
14634
|
+
"platform.angular_components.saturday_min": "S",
|
|
14635
|
+
"platform.angular_components.today": "Hoje",
|
|
14636
|
+
"platform.angular_components.hour_format": "24",
|
|
14637
|
+
"platform.angular_components.date_format": "dd/mm/yy",
|
|
14638
|
+
"platform.angular_components.ia_text_generator": "Gerador de texto por IA",
|
|
14522
14639
|
"platform.angular_components.attach_files": "Anexar arquivos",
|
|
14523
14640
|
"platform.angular_components.remove": "Remover",
|
|
14524
14641
|
"platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
|