@progressio_resources/gravity-design-system 3.0.54 → 3.1.1

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.
Files changed (28) hide show
  1. package/esm2022/lib/components/gravity-calendar-next/components/day-calendar/day-calendar.component.mjs +86 -88
  2. package/esm2022/lib/components/gravity-calendar-next/components/day-calendar/range-days-calendar.utils.mjs +70 -0
  3. package/esm2022/lib/components/gravity-calendar-next/components/dual-month-calendar/dual-month-calendar.component.mjs +113 -0
  4. package/esm2022/lib/components/gravity-calendar-next/components/month-calendar/month-calendar.component.mjs +100 -0
  5. package/esm2022/lib/components/gravity-calendar-next/components/year-calendar/year-calendar.component.mjs +10 -6
  6. package/esm2022/lib/components/gravity-calendar-next/gravity-calendar-next.component.mjs +5 -4
  7. package/esm2022/lib/components/gravity-calendar-next/shared/calendar.constants.mjs +9 -7
  8. package/esm2022/lib/components/gravity-calendar-next/shared/calendar.modal.mjs +1 -1
  9. package/esm2022/lib/components/gravity-calendar-next/shared/calendar.utils.mjs +6 -29
  10. package/esm2022/lib/components/gravity-calendar-v2/gravity-calendar-v2.component.mjs +1 -1
  11. package/esm2022/lib/components/gravity-dropdown-label/gravity-dropdown-label.component.mjs +9 -4
  12. package/esm2022/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +1 -1
  13. package/esm2022/lib/gravity-design-system.module.mjs +6 -3
  14. package/fesm2022/progressio_resources-gravity-design-system.mjs +420 -251
  15. package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
  16. package/lib/components/gravity-calendar-next/components/day-calendar/day-calendar.component.d.ts +35 -19
  17. package/lib/components/gravity-calendar-next/components/day-calendar/range-days-calendar.utils.d.ts +9 -0
  18. package/lib/components/gravity-calendar-next/components/dual-month-calendar/dual-month-calendar.component.d.ts +47 -0
  19. package/lib/components/gravity-calendar-next/components/month-calendar/month-calendar.component.d.ts +40 -0
  20. package/lib/components/gravity-calendar-next/components/year-calendar/year-calendar.component.d.ts +9 -5
  21. package/lib/components/gravity-calendar-next/shared/calendar.constants.d.ts +9 -3
  22. package/lib/components/gravity-calendar-next/shared/calendar.modal.d.ts +4 -4
  23. package/lib/components/gravity-calendar-next/shared/calendar.utils.d.ts +4 -11
  24. package/lib/components/gravity-dropdown-label/gravity-dropdown-label.component.d.ts +2 -1
  25. package/lib/gravity-design-system.module.d.ts +11 -10
  26. package/package.json +1 -1
  27. package/esm2022/lib/components/gravity-calendar-next/components/month-calendary/month-calendar.component.mjs +0 -88
  28. package/lib/components/gravity-calendar-next/components/month-calendary/month-calendar.component.d.ts +0 -34
@@ -1,47 +1,63 @@
1
- import { CalendarDay } from "../../shared/calendar.modal";
1
+ import { CalendarDate } from "../../shared/calendar.modal";
2
+ import { changeDate } from '../../shared/calendar.utils';
2
3
  import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
3
- import { changeMonth, trackByWeek, trackByDay } from '../../shared/calendar.utils';
4
+ import { isPreview, onClearHover, onHoverDay } from "./range-days-calendar.utils";
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class DayCalendarComponent implements OnChanges {
7
+ preSelectedYear: Date;
8
+ preSelectedMonth: Date;
6
9
  range: boolean;
7
10
  restart: boolean;
8
11
  disabled: boolean;
9
12
  language: 'es' | 'en';
10
13
  preSelectedDate: Date | Date[];
11
14
  actionsSection: boolean;
15
+ currentDate: Date;
12
16
  navType: 'prev' | 'next' | 'both';
17
+ clearHover: EventEmitter<void>;
13
18
  clearSelection: EventEmitter<void>;
19
+ changeMonth: EventEmitter<number>;
20
+ hoverDay: EventEmitter<CalendarDate>;
21
+ openIntegratedCalendar: EventEmitter<void>;
22
+ selectedRage: EventEmitter<CalendarDate>;
23
+ changeMonthYearResponse: EventEmitter<Date | Date[]>;
14
24
  calendarResponse: EventEmitter<Date[] | Date>;
15
- protected readonly trackByDay: typeof trackByDay;
16
- protected readonly trackByWeek: typeof trackByWeek;
17
- protected readonly changeMonth: typeof changeMonth;
18
- currentDate: Date;
19
- hoveredDay: CalendarDay | null;
20
- selectedDay: CalendarDay | null;
21
- selectedRangeEnd: CalendarDay | null;
22
- selectedRangeStart: CalendarDay | null;
25
+ showYearCalendar: boolean;
26
+ showMonthCalendar: boolean;
27
+ hoveredDay: CalendarDate | null;
28
+ selectedDay: CalendarDate | null;
29
+ selectedRangeEnd: CalendarDate | null;
30
+ selectedRangeStart: CalendarDate | null;
23
31
  get i18n(): {
24
32
  readonly apply: "Apply";
25
33
  readonly clear: "Clear selection";
34
+ readonly start_date: "Start date";
35
+ readonly end_date: "End date";
26
36
  } | {
27
37
  readonly apply: "Aplicar";
28
38
  readonly clear: "Limpiar selección";
39
+ readonly start_date: "Fecha inicial";
40
+ readonly end_date: "Fecha final";
29
41
  };
30
- get daysList(): string[];
31
42
  get monthsList(): string[];
43
+ get daysList(): string[];
44
+ trackByWeek(index: number, _: any): number;
45
+ trackByDay(_: number, day: CalendarDate): string;
32
46
  ngOnChanges(changes: SimpleChanges): void;
33
47
  private processPreselectedDate;
34
48
  isDateSelected(): boolean;
35
- isPreview(day: CalendarDay): boolean;
36
- getDaySelectionClass(day: CalendarDay): string;
49
+ getDaySelectionClass(day: CalendarDate): string;
37
50
  private getSingleDaySelectionClass;
38
- private getRangeSelectionClass;
51
+ onSelectDay(day: CalendarDate): void;
39
52
  applySelectedDate(): void;
40
53
  clearSelectedDate(): void;
41
- onHoverDay(day: CalendarDay): void;
42
- clearHover(): void;
43
- onSelectDay(day: CalendarDay): void;
44
- getMonthGrid(): CalendarDay[][];
54
+ handleCalendarResponse(date: Date | Date[], isMonth: boolean): void;
55
+ handleOnClickDropdownLabel(isMonth: boolean): void;
56
+ getMonthGrid(): CalendarDate[][];
57
+ protected readonly changeDate: typeof changeDate;
58
+ protected readonly isPreview: typeof isPreview;
59
+ protected readonly onHoverDay: typeof onHoverDay;
60
+ protected readonly onClearHover: typeof onClearHover;
45
61
  static ɵfac: i0.ɵɵFactoryDeclaration<DayCalendarComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<DayCalendarComponent, "day-calendar", never, { "range": { "alias": "range"; "required": false; }; "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; "navType": { "alias": "navType"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<DayCalendarComponent, "day-calendar", never, { "preSelectedYear": { "alias": "preSelectedYear"; "required": false; }; "preSelectedMonth": { "alias": "preSelectedMonth"; "required": false; }; "range": { "alias": "range"; "required": false; }; "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; "currentDate": { "alias": "currentDate"; "required": false; }; "navType": { "alias": "navType"; "required": false; }; }, { "clearHover": "clearHover"; "clearSelection": "clearSelection"; "changeMonth": "changeMonth"; "hoverDay": "hoverDay"; "openIntegratedCalendar": "openIntegratedCalendar"; "selectedRage": "selectedRage"; "changeMonthYearResponse": "changeMonthYearResponse"; "calendarResponse": "response"; }, never, never, false, never>;
47
63
  }
@@ -0,0 +1,9 @@
1
+ import { CalendarDate } from "../../shared/calendar.modal";
2
+ import { DayCalendarComponent } from "./day-calendar.component";
3
+ export declare function isPreview(component: DayCalendarComponent, day: CalendarDate): boolean;
4
+ export declare function processPreselectedRangeDate(component: DayCalendarComponent): void;
5
+ export declare function getRangeSelectionClass(component: DayCalendarComponent, day: CalendarDate): string;
6
+ export declare function onSelectRageDays(component: DayCalendarComponent, day: CalendarDate): void;
7
+ export declare function onApplyRageDate(component: DayCalendarComponent): void;
8
+ export declare function onHoverDay(component: DayCalendarComponent, day: CalendarDate): void;
9
+ export declare function onClearHover(component: DayCalendarComponent): void;
@@ -0,0 +1,47 @@
1
+ import { CalendarDate } from "../../shared/calendar.modal";
2
+ import { DayCalendarComponent } from "../day-calendar/day-calendar.component";
3
+ import { changeDate } from "../../shared/calendar.utils";
4
+ import { onSelectRageDays } from "../day-calendar/range-days-calendar.utils";
5
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DualMonthCalendarComponent implements OnChanges {
8
+ restart: boolean;
9
+ disabled: boolean;
10
+ language: 'es' | 'en';
11
+ preSelectedDate: Date | Date[];
12
+ clearSelection: EventEmitter<void>;
13
+ calendarResponse: EventEmitter<Date[] | Date>;
14
+ leftCalendar: DayCalendarComponent;
15
+ rightCalendar: DayCalendarComponent;
16
+ currentDate: Date;
17
+ showLeftCalendar: boolean;
18
+ showRightCalendar: boolean;
19
+ nextMonth: Date;
20
+ get i18n(): {
21
+ readonly apply: "Apply";
22
+ readonly clear: "Clear selection";
23
+ readonly start_date: "Start date";
24
+ readonly end_date: "End date";
25
+ } | {
26
+ readonly apply: "Aplicar";
27
+ readonly clear: "Limpiar selección";
28
+ readonly start_date: "Fecha inicial";
29
+ readonly end_date: "Fecha final";
30
+ };
31
+ get daysList(): string[];
32
+ get monthsShortList(): string[];
33
+ ngOnChanges(changes: SimpleChanges): void;
34
+ private processPreselectedDate;
35
+ onChangeMonth(calendar: 'left' | 'right', offset: number): void;
36
+ getFormattedDate(day: CalendarDate): string;
37
+ handleHoverDay(day: CalendarDate): void;
38
+ handleClearHover(): void;
39
+ handleApplyResponse($event: Date | Date[]): void;
40
+ handleClearSelection(): void;
41
+ handlerChangeMonthYearResponse($event: Date | Date[], origin: 'left' | 'right'): void;
42
+ protected readonly Date: DateConstructor;
43
+ protected readonly changeDate: typeof changeDate;
44
+ protected readonly onSelectRageDays: typeof onSelectRageDays;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<DualMonthCalendarComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<DualMonthCalendarComponent, "dual-month-calendar", never, { "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
47
+ }
@@ -0,0 +1,40 @@
1
+ import { CalendarPeriod } from "../../shared/calendar.modal";
2
+ import { changeDate } from "../../shared/calendar.utils";
3
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MonthCalendarComponent implements OnChanges {
6
+ restart: boolean;
7
+ disabled: boolean;
8
+ language: 'es' | 'en';
9
+ preSelectedDate: Date | Date[];
10
+ actionsSection: boolean;
11
+ integratedMode: boolean;
12
+ clearSelection: EventEmitter<void>;
13
+ calendarResponse: EventEmitter<Date[] | Date>;
14
+ currentDate: Date;
15
+ selectedMonth: CalendarPeriod;
16
+ get i18n(): {
17
+ readonly apply: "Apply";
18
+ readonly clear: "Clear selection";
19
+ readonly start_date: "Start date";
20
+ readonly end_date: "End date";
21
+ } | {
22
+ readonly apply: "Aplicar";
23
+ readonly clear: "Limpiar selección";
24
+ readonly start_date: "Fecha inicial";
25
+ readonly end_date: "Fecha final";
26
+ };
27
+ get monthsList(): string[];
28
+ get monthsShortList(): string[];
29
+ ngOnChanges(changes: SimpleChanges): void;
30
+ trackByMonth(_: number, month: CalendarPeriod): string;
31
+ private processPreselectedDate;
32
+ onSelectMonth(month: CalendarPeriod): void;
33
+ getMonthSelectionClass(month: CalendarPeriod): string;
34
+ clearSelectedMonth(): void;
35
+ applySelectedMonth(): void;
36
+ getYearMonthsList(): CalendarPeriod[];
37
+ protected readonly changeDate: typeof changeDate;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonthCalendarComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonthCalendarComponent, "month-calendar", never, { "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; "integratedMode": { "alias": "integratedMode"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
40
+ }
@@ -1,12 +1,12 @@
1
- import { trackByYear } from "../../shared/calendar.utils";
2
- import { EventEmitter, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
- export declare class YearCalendarComponent {
3
+ export declare class YearCalendarComponent implements OnChanges, OnInit {
5
4
  restart: boolean;
6
5
  disabled: boolean;
7
6
  language: 'es' | 'en';
8
7
  preSelectedDate: Date | Date[];
9
8
  actionsSection: boolean;
9
+ integratedMode: boolean;
10
10
  clearSelection: EventEmitter<void>;
11
11
  calendarResponse: EventEmitter<Date[] | Date>;
12
12
  startYear: number;
@@ -15,10 +15,15 @@ export declare class YearCalendarComponent {
15
15
  get i18n(): {
16
16
  readonly apply: "Apply";
17
17
  readonly clear: "Clear selection";
18
+ readonly start_date: "Start date";
19
+ readonly end_date: "End date";
18
20
  } | {
19
21
  readonly apply: "Aplicar";
20
22
  readonly clear: "Limpiar selección";
23
+ readonly start_date: "Fecha inicial";
24
+ readonly end_date: "Fecha final";
21
25
  };
26
+ trackByYear(_: number, year: number): string;
22
27
  ngOnInit(): void;
23
28
  ngOnChanges(changes: SimpleChanges): void;
24
29
  private processPreselectedDate;
@@ -28,7 +33,6 @@ export declare class YearCalendarComponent {
28
33
  clearSelectedYear(): void;
29
34
  applySelectedYear(): void;
30
35
  getYearList(): number[];
31
- protected readonly trackByYear: typeof trackByYear;
32
36
  static ɵfac: i0.ɵɵFactoryDeclaration<YearCalendarComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<YearCalendarComponent, "year-calendar", never, { "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<YearCalendarComponent, "year-calendar", never, { "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; "integratedMode": { "alias": "integratedMode"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
34
38
  }
@@ -1,16 +1,22 @@
1
- export declare const DAYS_ES: string[];
2
1
  export declare const DAYS_EN: string[];
2
+ export declare const DAYS_ES: string[];
3
+ export declare const DAYS_SHORT_ES: string[];
4
+ export declare const DAYS_SHORT_EN: string[];
3
5
  export declare const MONTHS_ES: string[];
4
6
  export declare const MONTHS_EN: string[];
5
- export declare const MONTHS_ES_SHORT: string[];
6
- export declare const MONTHS_EN_SHORT: string[];
7
+ export declare const MONTHS_SHORT_ES: string[];
8
+ export declare const MONTHS_SHORT_EN: string[];
7
9
  export declare const CALENDAR_I18N: {
8
10
  readonly en: {
9
11
  readonly apply: "Apply";
10
12
  readonly clear: "Clear selection";
13
+ readonly start_date: "Start date";
14
+ readonly end_date: "End date";
11
15
  };
12
16
  readonly es: {
13
17
  readonly apply: "Aplicar";
14
18
  readonly clear: "Limpiar selección";
19
+ readonly start_date: "Fecha inicial";
20
+ readonly end_date: "Fecha final";
15
21
  };
16
22
  };
@@ -1,11 +1,11 @@
1
- export interface CalendarDay {
1
+ export interface CalendarDate {
2
2
  day: number;
3
- year: number;
4
- month: number;
3
+ weekDay: number;
5
4
  isToday: boolean;
6
5
  inCurrentMonth: boolean;
6
+ monthYear: CalendarPeriod;
7
7
  }
8
- export interface CalendarMonth {
8
+ export interface CalendarPeriod {
9
9
  year: number;
10
10
  month: number;
11
11
  }
@@ -1,12 +1,5 @@
1
- import { CalendarDay, CalendarMonth } from "./calendar.modal";
2
- export declare function trackByWeek(index: number, _: any): number;
3
- export declare function trackByDay(_: number, day: CalendarDay): string;
4
- export declare function trackByMonth(_: number, month: CalendarMonth): string;
5
- export declare function trackByYear(_: number, year: number): string;
6
- export declare function toDate(day: CalendarDay): Date;
7
- export declare function toMonth(month: CalendarMonth): Date;
1
+ import { CalendarDate } from "./calendar.modal";
2
+ export declare function toDate(day: CalendarDate): Date;
8
3
  export declare function getStartDate(date: Date): Date;
9
- export declare function changeMonth(offset: number, currentDate: Date): Date;
10
- export declare function changeYear(offset: number, currentDate: Date): Date;
11
- export declare function toCalendarDay(date: Date): CalendarDay;
12
- export declare function toCalendarMonth(date: Date): CalendarMonth;
4
+ export declare function changeDate(offset: number, currentDate: Date, isMonth: boolean): Date;
5
+ export declare function toCalendarDay(date: Date): CalendarDate;
@@ -6,6 +6,7 @@ export declare class GravityDropdownLabelComponent {
6
6
  isOpen: boolean;
7
7
  stopPropagation: boolean;
8
8
  size: 'sm' | 'md' | 'lg';
9
+ state: 'active' | 'inactive';
9
10
  onClickLabel: EventEmitter<void>;
10
11
  getLabelClass(): "hr-title md-bold" | "hr-headline sm-bold" | "hr-headline md-bold";
11
12
  onClick(event: MouseEvent): void;
@@ -14,5 +15,5 @@ export declare class GravityDropdownLabelComponent {
14
15
  oldIconsSize: "lg-24" | "md-16";
15
16
  };
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<GravityDropdownLabelComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GravityDropdownLabelComponent, "gravity-dropdown-label", never, { "label": { "alias": "label"; "required": false; }; "fontClass": { "alias": "fontClass"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onClickLabel": "onClickLabel"; }, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<GravityDropdownLabelComponent, "gravity-dropdown-label", never, { "label": { "alias": "label"; "required": false; }; "fontClass": { "alias": "fontClass"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; }; "size": { "alias": "size"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "onClickLabel": "onClickLabel"; }, never, never, false, never>;
18
19
  }
@@ -60,18 +60,19 @@ import * as i58 from "./components/gravity-generic-avatar-secondary/gravity-gene
60
60
  import * as i59 from "./components/gravity-backdrop/gravity-backdrop.component";
61
61
  import * as i60 from "./components/gravity-calendar-next/gravity-calendar-next.component";
62
62
  import * as i61 from "./components/gravity-calendar-next/components/day-calendar/day-calendar.component";
63
- import * as i62 from "./components/gravity-calendar-next/components/month-calendary/month-calendar.component";
63
+ import * as i62 from "./components/gravity-calendar-next/components/month-calendar/month-calendar.component";
64
64
  import * as i63 from "./components/gravity-calendar-next/components/year-calendar/year-calendar.component";
65
- import * as i64 from "angular-svg-icon";
66
- import * as i65 from "angular-svg-icon-preloader";
67
- import * as i66 from "ngx-bootstrap/datepicker";
68
- import * as i67 from "@angular/common";
69
- import * as i68 from "@angular/forms";
70
- import * as i69 from "./vendor/gravity-tooltip/gravity-tooltip.module";
71
- import * as i70 from "@ng-bootstrap/ng-bootstrap";
72
- import * as i71 from "@angular/router";
65
+ import * as i64 from "./components/gravity-calendar-next/components/dual-month-calendar/dual-month-calendar.component";
66
+ import * as i65 from "angular-svg-icon";
67
+ import * as i66 from "angular-svg-icon-preloader";
68
+ import * as i67 from "ngx-bootstrap/datepicker";
69
+ import * as i68 from "@angular/common";
70
+ import * as i69 from "@angular/forms";
71
+ import * as i70 from "./vendor/gravity-tooltip/gravity-tooltip.module";
72
+ import * as i71 from "@ng-bootstrap/ng-bootstrap";
73
+ import * as i72 from "@angular/router";
73
74
  export declare class GravityDesignSystemModule {
74
75
  static ɵfac: i0.ɵɵFactoryDeclaration<GravityDesignSystemModule, never>;
75
- static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityAttachFileComponent, typeof i2.GravityAvatarStackComponent, typeof i3.GravityGenericAvatarComponent, typeof i4.GravityButtonComponent, typeof i5.GravityCalendarComponent, typeof i6.GravityCalendarV2Component, typeof i7.GravityCardListComponent, typeof i8.GravityCheckboxComponent, typeof i9.GravityCurrencyComponent, typeof i10.GravityCurrencyDisplayComponent, typeof i11.GravityDataViewComponent, typeof i12.GravityDialogComponent, typeof i13.GravityDropdownListComponent, typeof i14.GravityDropdownListDisplayComponent, typeof i15.GravityIconButtonComponent, typeof i16.GravityIconComponent, typeof i17.GravityMultiLanguageComponent, typeof i18.GravityNetworkPillComponent, typeof i19.GravityNotificationComponent, typeof i20.GravityNotificationInstantContainerComponent, typeof i21.GravityOffcanvasComponent, typeof i22.GravityRadioButtonComponent, typeof i23.GravityStatusIndicatorComponent, typeof i24.GravityStepperComponent, typeof i25.GravitySwitchComponent, typeof i26.GravityTableComponent, typeof i27.GravityTextFieldComponent, typeof i28.GravityTextFieldNumberOnlyComponent, typeof i29.GravityTreeViewComponent, typeof i30.NodeComponent, typeof i31.NodeToggleComponent, typeof i32.NodeCheckboxComponent, typeof i33.NodeNameComponent, typeof i34.FilterByPipe, typeof i35.DateAbbreviationPipe, typeof i36.BsDatepickerDayDecoratorComponent, typeof i37.BsDatepickerNavigationViewComponent, typeof i38.BsDaysCalendarViewComponent, typeof i39.BsMonthCalendarViewComponent, typeof i40.BsYearsCalendarViewComponent, typeof i41.BsDatepickerContainerComponent, typeof i42.BsDatepickerDirective, typeof i43.BsDatepickerInlineContainerComponent, typeof i44.BsDatepickerInlineDirective, typeof i45.BsDaterangepickerContainerComponent, typeof i46.BsDaterangepickerDirective, typeof i47.BsDaterangepickerInlineContainerComponent, typeof i48.BsDaterangepickerInlineDirective, typeof i49.GravityModalComponent, typeof i50.GravityLinkComponent, typeof i51.GravityTabPrimaryComponent, typeof i52.GravityTabSecondaryComponent, typeof i53.GravityChipComponent, typeof i54.GravityEditableInputComponent, typeof i55.GravityCardButtonComponent, typeof i56.GravityDropdownLabelComponent, typeof i57.GravityNavigationCardComponent, typeof i58.GravityGenericAvatarSecondaryComponent, typeof i59.GravityBackdropComponent, typeof i60.GravityCalendarNextComponent, typeof i61.DayCalendarComponent, typeof i62.MonthCalendarComponent, typeof i63.YearCalendarComponent], [typeof i64.AngularSvgIconModule, typeof i65.AngularSvgIconPreloaderModule, typeof i66.BsDatepickerModule, typeof i67.CommonModule, typeof i68.FormsModule, typeof i69.GravityTooltipModule, typeof i70.NgbDatepickerModule, typeof i70.NgbOffcanvasModule, typeof i70.NgbProgressbarModule, typeof i70.NgbToastModule, typeof i68.ReactiveFormsModule, typeof i71.RouterLink], [typeof i1.GravityAttachFileComponent, typeof i2.GravityAvatarStackComponent, typeof i3.GravityGenericAvatarComponent, typeof i4.GravityButtonComponent, typeof i5.GravityCalendarComponent, typeof i6.GravityCalendarV2Component, typeof i7.GravityCardListComponent, typeof i8.GravityCheckboxComponent, typeof i9.GravityCurrencyComponent, typeof i10.GravityCurrencyDisplayComponent, typeof i11.GravityDataViewComponent, typeof i12.GravityDialogComponent, typeof i13.GravityDropdownListComponent, typeof i14.GravityDropdownListDisplayComponent, typeof i15.GravityIconButtonComponent, typeof i16.GravityIconComponent, typeof i17.GravityMultiLanguageComponent, typeof i18.GravityNetworkPillComponent, typeof i20.GravityNotificationInstantContainerComponent, typeof i21.GravityOffcanvasComponent, typeof i22.GravityRadioButtonComponent, typeof i23.GravityStatusIndicatorComponent, typeof i24.GravityStepperComponent, typeof i25.GravitySwitchComponent, typeof i26.GravityTableComponent, typeof i27.GravityTextFieldComponent, typeof i28.GravityTextFieldNumberOnlyComponent, typeof i69.GravityTooltipModule, typeof i29.GravityTreeViewComponent, typeof i49.GravityModalComponent, typeof i50.GravityLinkComponent, typeof i51.GravityTabPrimaryComponent, typeof i52.GravityTabSecondaryComponent, typeof i53.GravityChipComponent, typeof i54.GravityEditableInputComponent, typeof i55.GravityCardButtonComponent, typeof i57.GravityNavigationCardComponent, typeof i58.GravityGenericAvatarSecondaryComponent, typeof i59.GravityBackdropComponent, typeof i60.GravityCalendarNextComponent]>;
76
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityAttachFileComponent, typeof i2.GravityAvatarStackComponent, typeof i3.GravityGenericAvatarComponent, typeof i4.GravityButtonComponent, typeof i5.GravityCalendarComponent, typeof i6.GravityCalendarV2Component, typeof i7.GravityCardListComponent, typeof i8.GravityCheckboxComponent, typeof i9.GravityCurrencyComponent, typeof i10.GravityCurrencyDisplayComponent, typeof i11.GravityDataViewComponent, typeof i12.GravityDialogComponent, typeof i13.GravityDropdownListComponent, typeof i14.GravityDropdownListDisplayComponent, typeof i15.GravityIconButtonComponent, typeof i16.GravityIconComponent, typeof i17.GravityMultiLanguageComponent, typeof i18.GravityNetworkPillComponent, typeof i19.GravityNotificationComponent, typeof i20.GravityNotificationInstantContainerComponent, typeof i21.GravityOffcanvasComponent, typeof i22.GravityRadioButtonComponent, typeof i23.GravityStatusIndicatorComponent, typeof i24.GravityStepperComponent, typeof i25.GravitySwitchComponent, typeof i26.GravityTableComponent, typeof i27.GravityTextFieldComponent, typeof i28.GravityTextFieldNumberOnlyComponent, typeof i29.GravityTreeViewComponent, typeof i30.NodeComponent, typeof i31.NodeToggleComponent, typeof i32.NodeCheckboxComponent, typeof i33.NodeNameComponent, typeof i34.FilterByPipe, typeof i35.DateAbbreviationPipe, typeof i36.BsDatepickerDayDecoratorComponent, typeof i37.BsDatepickerNavigationViewComponent, typeof i38.BsDaysCalendarViewComponent, typeof i39.BsMonthCalendarViewComponent, typeof i40.BsYearsCalendarViewComponent, typeof i41.BsDatepickerContainerComponent, typeof i42.BsDatepickerDirective, typeof i43.BsDatepickerInlineContainerComponent, typeof i44.BsDatepickerInlineDirective, typeof i45.BsDaterangepickerContainerComponent, typeof i46.BsDaterangepickerDirective, typeof i47.BsDaterangepickerInlineContainerComponent, typeof i48.BsDaterangepickerInlineDirective, typeof i49.GravityModalComponent, typeof i50.GravityLinkComponent, typeof i51.GravityTabPrimaryComponent, typeof i52.GravityTabSecondaryComponent, typeof i53.GravityChipComponent, typeof i54.GravityEditableInputComponent, typeof i55.GravityCardButtonComponent, typeof i56.GravityDropdownLabelComponent, typeof i57.GravityNavigationCardComponent, typeof i58.GravityGenericAvatarSecondaryComponent, typeof i59.GravityBackdropComponent, typeof i60.GravityCalendarNextComponent, typeof i61.DayCalendarComponent, typeof i62.MonthCalendarComponent, typeof i63.YearCalendarComponent, typeof i64.DualMonthCalendarComponent], [typeof i65.AngularSvgIconModule, typeof i66.AngularSvgIconPreloaderModule, typeof i67.BsDatepickerModule, typeof i68.CommonModule, typeof i69.FormsModule, typeof i70.GravityTooltipModule, typeof i71.NgbDatepickerModule, typeof i71.NgbOffcanvasModule, typeof i71.NgbProgressbarModule, typeof i71.NgbToastModule, typeof i69.ReactiveFormsModule, typeof i72.RouterLink], [typeof i1.GravityAttachFileComponent, typeof i2.GravityAvatarStackComponent, typeof i3.GravityGenericAvatarComponent, typeof i4.GravityButtonComponent, typeof i5.GravityCalendarComponent, typeof i6.GravityCalendarV2Component, typeof i7.GravityCardListComponent, typeof i8.GravityCheckboxComponent, typeof i9.GravityCurrencyComponent, typeof i10.GravityCurrencyDisplayComponent, typeof i11.GravityDataViewComponent, typeof i12.GravityDialogComponent, typeof i13.GravityDropdownListComponent, typeof i14.GravityDropdownListDisplayComponent, typeof i15.GravityIconButtonComponent, typeof i16.GravityIconComponent, typeof i17.GravityMultiLanguageComponent, typeof i18.GravityNetworkPillComponent, typeof i20.GravityNotificationInstantContainerComponent, typeof i21.GravityOffcanvasComponent, typeof i22.GravityRadioButtonComponent, typeof i23.GravityStatusIndicatorComponent, typeof i24.GravityStepperComponent, typeof i25.GravitySwitchComponent, typeof i26.GravityTableComponent, typeof i27.GravityTextFieldComponent, typeof i28.GravityTextFieldNumberOnlyComponent, typeof i70.GravityTooltipModule, typeof i29.GravityTreeViewComponent, typeof i49.GravityModalComponent, typeof i50.GravityLinkComponent, typeof i51.GravityTabPrimaryComponent, typeof i52.GravityTabSecondaryComponent, typeof i53.GravityChipComponent, typeof i54.GravityEditableInputComponent, typeof i55.GravityCardButtonComponent, typeof i57.GravityNavigationCardComponent, typeof i58.GravityGenericAvatarSecondaryComponent, typeof i59.GravityBackdropComponent, typeof i60.GravityCalendarNextComponent]>;
76
77
  static ɵinj: i0.ɵɵInjectorDeclaration<GravityDesignSystemModule>;
77
78
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progressio_resources/gravity-design-system",
3
3
  "description": "Gravity Design System",
4
- "version": "3.0.54",
4
+ "version": "3.1.1",
5
5
  "license": "SEE LICENSE IN LIBRARY-LICENSE",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^16.2.12",
@@ -1,88 +0,0 @@
1
- import { changeYear, getStartDate, toCalendarMonth, toMonth, trackByMonth } from "../../shared/calendar.utils";
2
- import { Component, EventEmitter, Input, Output } from '@angular/core';
3
- import { CALENDAR_I18N, MONTHS_EN_SHORT, MONTHS_ES_SHORT } from "../../shared/calendar.constants";
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common";
6
- import * as i2 from "../../../gravity-button/gravity-button.component";
7
- import * as i3 from "../../../gravity-icon/gravity-icon.component";
8
- import * as i4 from "../../../gravity-link/gravity-link.component";
9
- export class MonthCalendarComponent {
10
- constructor() {
11
- this.restart = false;
12
- this.disabled = false;
13
- this.language = 'en';
14
- this.actionsSection = true;
15
- this.clearSelection = new EventEmitter();
16
- this.calendarResponse = new EventEmitter();
17
- this.changeYear = changeYear;
18
- this.trackByMonth = trackByMonth;
19
- this.currentDate = new Date();
20
- }
21
- get i18n() { return CALENDAR_I18N[this.language]; }
22
- get monthsList() { return this.language === 'en' ? MONTHS_EN_SHORT : MONTHS_ES_SHORT; }
23
- ngOnChanges(changes) {
24
- const shouldRestart = changes['restart'] && this.restart;
25
- const shouldProcessPreSelected = changes['preSelectedDate'] && this.preSelectedDate;
26
- if (shouldRestart || shouldProcessPreSelected) {
27
- this.processPreselectedDate();
28
- }
29
- }
30
- processPreselectedDate() {
31
- if (this.preSelectedDate instanceof Date) {
32
- this.currentDate = getStartDate(this.preSelectedDate);
33
- this.selectedMonth = toCalendarMonth(this.preSelectedDate);
34
- }
35
- }
36
- onSelectMonth(month) {
37
- this.selectedMonth = month;
38
- this.currentDate = new Date(month.year, month.month, 1);
39
- this.calendarResponse.emit(this.currentDate);
40
- return;
41
- }
42
- getMonthSelectionClass(month) {
43
- if (this.selectedMonth && this.selectedMonth.month === month.month && this.selectedMonth.year === month.year) {
44
- return 'selected';
45
- }
46
- if (new Date().getMonth() === month.month) {
47
- return 'this-month';
48
- }
49
- return '';
50
- }
51
- clearSelectedMonth() {
52
- this.selectedMonth = null;
53
- this.clearSelection.emit();
54
- }
55
- applySelectedMonth() {
56
- const date = toMonth(this.selectedMonth);
57
- this.calendarResponse.emit(date);
58
- }
59
- getYearMonthsList() {
60
- const months = [];
61
- for (let i = 0; i < 12; i++) {
62
- months.push({ month: i, year: this.currentDate.getFullYear() });
63
- }
64
- return months;
65
- }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
67
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MonthCalendarComponent, selector: "month-calendary", inputs: { restart: "restart", disabled: "disabled", language: "language", preSelectedDate: "preSelectedDate", actionsSection: "actionsSection" }, outputs: { clearSelection: "clearSelection", calendarResponse: "response" }, usesOnChanges: true, ngImport: i0, template: "\n<section class=\"gravity-calendar-header\">\n <div class=\"header-container\">\n <div class=\"previous-button\">\n <gravity-icon [style.--icon-color]=\"'var(--text-highlight-primary)'\" [iconName]=\"'arrow-left'\"\n [iconSize]=\"'sm-12'\" (click)=\"currentDate = changeYear(-1, currentDate)\" ></gravity-icon>\n </div>\n\n <div class=\"year-label\">\n <p class=\"'hr-title sm-bold'\"> {{currentDate.getFullYear().toString()}} </p>\n </div>\n\n <div class=\"next-button\">\n <gravity-icon [style.--icon-color]=\"'var(--text-highlight-primary)'\" [iconName]=\"'arrow-right'\"\n [iconSize]=\"'sm-12'\" (click)=\"currentDate = changeYear(1, currentDate)\"></gravity-icon>\n </div>\n </div>\n <div class=\"separator-line\"></div>\n</section>\n\n<section class=\"gravity-calendar-body\">\n <div class=\"months-table\">\n <span class=\"hr-body sm-regular\" *ngFor=\"let month of getYearMonthsList(), trackBy: trackByMonth\"\n [ngClass]=\"disabled ? 'disabled' : getMonthSelectionClass(month)\"\n (click)=\"onSelectMonth(month)\">\n {{ monthsList[month.month] }}\n </span>\n </div>\n\n <div *ngIf=\"actionsSection\" class=\"action-section\" >\n <gravity-link [linkText]=\"i18n.clear\" [state]=\"!selectedMonth ? 'disabled' : 'active'\" (click)=\"clearSelectedMonth()\"></gravity-link>\n <gravity-button [size]=\"'sm'\" [type]=\"'tertiary'\" [disabled]=\"!selectedMonth\" (click)=\"applySelectedMonth()\">{{i18n.apply}}</gravity-button>\n </div>\n</section>", styles: [".gravity-calendar-header{width:215px;height:40px;display:flex;align-self:stretch;align-items:center;flex-direction:column;justify-content:center;gap:var(--gravity-spacing-sm);padding-top:var(--gravity-spacing-xs)}.gravity-calendar-header .header-container{display:flex;align-items:center;align-self:stretch;justify-content:space-between;padding:0 var(--gravity-spacing-xs)}.gravity-calendar-header .header-container .next-button,.gravity-calendar-header .header-container .previous-button{cursor:pointer}.gravity-calendar-header .separator-line{width:215px;border-bottom:2px solid var(--divider-menu-active-primary)}.gravity-calendar-body{width:215px;display:flex;align-items:center;align-self:stretch;flex-direction:column;justify-content:center;gap:var(--gravity-spacing-sm);margin-top:var(--gravity-spacing-sm)}.gravity-calendar-body .months-table{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 var(--gravity-spacing-sm)}.gravity-calendar-body .months-table span{width:37px;height:25px;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--gravity-spacing-xs);border:2px solid var(--bg-calender-primary)}.gravity-calendar-body .months-table span.this-month{border-color:var(--bg-number-calendar-hover-primary)}.gravity-calendar-body .months-table span:not(.disabled):not(.selected):hover{color:var(--on-bg-button-pressed-tertiary);background:var(--bg-button-active-tertiary);border-color:var(--bg-button-active-tertiary)}.gravity-calendar-body .months-table span.selected{color:var(--on-bg-button-pressed-primary);background:var(--bg-button-pressed-primary);border-color:var(--bg-button-pressed-primary)}.gravity-calendar-body .action-section{height:25px;display:flex;align-items:center;align-self:stretch;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.GravityButtonComponent, selector: "gravity-button", inputs: ["cypressTag", "disabled", "customState", "iconPosition", "iconName", "isLoading", "showContent", "size", "type"] }, { kind: "component", type: i3.GravityIconComponent, selector: "gravity-icon", inputs: ["customIconColorVariable", "iconName", "iconSize", "hoverIcon", "size", "isCoin"] }, { kind: "component", type: i4.GravityLinkComponent, selector: "gravity-link", inputs: ["linkText", "fontClass", "link", "cypressTag", "iconName", "target", "iconPosition", "iconSize", "state"] }] }); }
68
- }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MonthCalendarComponent, decorators: [{
70
- type: Component,
71
- args: [{ selector: 'month-calendary', template: "\n<section class=\"gravity-calendar-header\">\n <div class=\"header-container\">\n <div class=\"previous-button\">\n <gravity-icon [style.--icon-color]=\"'var(--text-highlight-primary)'\" [iconName]=\"'arrow-left'\"\n [iconSize]=\"'sm-12'\" (click)=\"currentDate = changeYear(-1, currentDate)\" ></gravity-icon>\n </div>\n\n <div class=\"year-label\">\n <p class=\"'hr-title sm-bold'\"> {{currentDate.getFullYear().toString()}} </p>\n </div>\n\n <div class=\"next-button\">\n <gravity-icon [style.--icon-color]=\"'var(--text-highlight-primary)'\" [iconName]=\"'arrow-right'\"\n [iconSize]=\"'sm-12'\" (click)=\"currentDate = changeYear(1, currentDate)\"></gravity-icon>\n </div>\n </div>\n <div class=\"separator-line\"></div>\n</section>\n\n<section class=\"gravity-calendar-body\">\n <div class=\"months-table\">\n <span class=\"hr-body sm-regular\" *ngFor=\"let month of getYearMonthsList(), trackBy: trackByMonth\"\n [ngClass]=\"disabled ? 'disabled' : getMonthSelectionClass(month)\"\n (click)=\"onSelectMonth(month)\">\n {{ monthsList[month.month] }}\n </span>\n </div>\n\n <div *ngIf=\"actionsSection\" class=\"action-section\" >\n <gravity-link [linkText]=\"i18n.clear\" [state]=\"!selectedMonth ? 'disabled' : 'active'\" (click)=\"clearSelectedMonth()\"></gravity-link>\n <gravity-button [size]=\"'sm'\" [type]=\"'tertiary'\" [disabled]=\"!selectedMonth\" (click)=\"applySelectedMonth()\">{{i18n.apply}}</gravity-button>\n </div>\n</section>", styles: [".gravity-calendar-header{width:215px;height:40px;display:flex;align-self:stretch;align-items:center;flex-direction:column;justify-content:center;gap:var(--gravity-spacing-sm);padding-top:var(--gravity-spacing-xs)}.gravity-calendar-header .header-container{display:flex;align-items:center;align-self:stretch;justify-content:space-between;padding:0 var(--gravity-spacing-xs)}.gravity-calendar-header .header-container .next-button,.gravity-calendar-header .header-container .previous-button{cursor:pointer}.gravity-calendar-header .separator-line{width:215px;border-bottom:2px solid var(--divider-menu-active-primary)}.gravity-calendar-body{width:215px;display:flex;align-items:center;align-self:stretch;flex-direction:column;justify-content:center;gap:var(--gravity-spacing-sm);margin-top:var(--gravity-spacing-sm)}.gravity-calendar-body .months-table{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 var(--gravity-spacing-sm)}.gravity-calendar-body .months-table span{width:37px;height:25px;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--gravity-spacing-xs);border:2px solid var(--bg-calender-primary)}.gravity-calendar-body .months-table span.this-month{border-color:var(--bg-number-calendar-hover-primary)}.gravity-calendar-body .months-table span:not(.disabled):not(.selected):hover{color:var(--on-bg-button-pressed-tertiary);background:var(--bg-button-active-tertiary);border-color:var(--bg-button-active-tertiary)}.gravity-calendar-body .months-table span.selected{color:var(--on-bg-button-pressed-primary);background:var(--bg-button-pressed-primary);border-color:var(--bg-button-pressed-primary)}.gravity-calendar-body .action-section{height:25px;display:flex;align-items:center;align-self:stretch;justify-content:space-between}\n"] }]
72
- }], propDecorators: { restart: [{
73
- type: Input
74
- }], disabled: [{
75
- type: Input
76
- }], language: [{
77
- type: Input
78
- }], preSelectedDate: [{
79
- type: Input
80
- }], actionsSection: [{
81
- type: Input
82
- }], clearSelection: [{
83
- type: Output
84
- }], calendarResponse: [{
85
- type: Output,
86
- args: ['response']
87
- }] } });
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9udGgtY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZ3Jhdml0eS1kZXNpZ24tc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9ncmF2aXR5LWNhbGVuZGFyLW5leHQvY29tcG9uZW50cy9tb250aC1jYWxlbmRhcnkvbW9udGgtY2FsZW5kYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZ3Jhdml0eS1kZXNpZ24tc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9ncmF2aXR5LWNhbGVuZGFyLW5leHQvY29tcG9uZW50cy9tb250aC1jYWxlbmRhcnkvbW9udGgtY2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- import { changeYear, trackByMonth } from "../../shared/calendar.utils";
3
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- export declare class MonthCalendarComponent implements OnChanges {
6
- restart: boolean;
7
- disabled: boolean;
8
- language: 'es' | 'en';
9
- preSelectedDate: Date | Date[];
10
- actionsSection: boolean;
11
- clearSelection: EventEmitter<void>;
12
- calendarResponse: EventEmitter<Date[] | Date>;
13
- protected readonly changeYear: typeof changeYear;
14
- protected readonly trackByMonth: typeof trackByMonth;
15
- selectedMonth: CalendarMonth;
16
- currentDate: Date;
17
- get i18n(): {
18
- readonly apply: "Apply";
19
- readonly clear: "Clear selection";
20
- } | {
21
- readonly apply: "Aplicar";
22
- readonly clear: "Limpiar selección";
23
- };
24
- get monthsList(): string[];
25
- ngOnChanges(changes: SimpleChanges): void;
26
- private processPreselectedDate;
27
- onSelectMonth(month: CalendarMonth): void;
28
- getMonthSelectionClass(month: CalendarMonth): string;
29
- clearSelectedMonth(): void;
30
- applySelectedMonth(): void;
31
- getYearMonthsList(): CalendarMonth[];
32
- static ɵfac: i0.ɵɵFactoryDeclaration<MonthCalendarComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<MonthCalendarComponent, "month-calendary", never, { "restart": { "alias": "restart"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "language": { "alias": "language"; "required": false; }; "preSelectedDate": { "alias": "preSelectedDate"; "required": false; }; "actionsSection": { "alias": "actionsSection"; "required": false; }; }, { "clearSelection": "clearSelection"; "calendarResponse": "response"; }, never, never, false, never>;
34
- }