@progressio_resources/gravity-design-system 2.6.20 → 2.6.22

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 (88) hide show
  1. package/esm2022/lib/components/gravity-calendar-v2/datepicker/base/bs-datepicker-container.mjs +66 -0
  2. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.component.mjs +129 -0
  3. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.config.mjs +14 -0
  4. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.callbacks.mjs +13 -0
  5. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.component.mjs +210 -0
  6. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.config.mjs +46 -0
  7. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.component.mjs +130 -0
  8. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.config.mjs +18 -0
  9. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.component.mjs +218 -0
  10. package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.config.mjs +18 -0
  11. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-container.component.mjs +134 -0
  12. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-inline-container.component.mjs +33 -0
  13. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-navigation-view/bs-datepicker-navigation-view.component.mjs +44 -0
  14. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-container.component.mjs +190 -0
  15. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-inline-container.component.mjs +33 -0
  16. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-datepicker-day-decorator.directive.mjs +30 -0
  17. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-days-calendar-view.component.mjs +54 -0
  18. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-months-calendar-view/bs-months-calendar-view.component.mjs +49 -0
  19. package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-years-calendar-view/bs-years-calendar-view.component.mjs +50 -0
  20. package/esm2022/lib/components/gravity-calendar-v2/datepicker/datepicker-animations.mjs +16 -0
  21. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/calc-days-calendar.mjs +16 -0
  22. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-days-calendar.mjs +53 -0
  23. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-months-calendar.mjs +39 -0
  24. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-years-calendar.mjs +36 -0
  25. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-days-calendar.mjs +23 -0
  26. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-months-calendar.mjs +23 -0
  27. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-years-calendar.mjs +43 -0
  28. package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/view-mode.mjs +4 -0
  29. package/esm2022/lib/components/gravity-calendar-v2/datepicker/models/index.mjs +7 -0
  30. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/_defaults.mjs +6 -0
  31. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.actions.mjs +64 -0
  32. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.effects.mjs +128 -0
  33. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.reducer.mjs +301 -0
  34. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.state.mjs +16 -0
  35. package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.store.mjs +20 -0
  36. package/esm2022/lib/components/gravity-calendar-v2/datepicker/utils/bs-calendar-utils.mjs +74 -0
  37. package/esm2022/lib/components/gravity-calendar-v2/datepicker/utils/matrix-utils.mjs +14 -0
  38. package/esm2022/lib/components/gravity-calendar-v2/gravity-calendar-v2.component.mjs +227 -0
  39. package/esm2022/lib/gravity-design-system.module.mjs +47 -3
  40. package/esm2022/public-api.mjs +2 -1
  41. package/fesm2022/progressio_resources-gravity-design-system.mjs +2458 -33
  42. package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
  43. package/lib/components/gravity-calendar-v2/datepicker/base/bs-datepicker-container.d.ts +41 -0
  44. package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.component.d.ts +40 -0
  45. package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.config.d.ts +6 -0
  46. package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.callbacks.d.ts +6 -0
  47. package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.component.d.ts +64 -0
  48. package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.config.d.ts +53 -0
  49. package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.component.d.ts +37 -0
  50. package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.config.d.ts +7 -0
  51. package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.component.d.ts +61 -0
  52. package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.config.d.ts +7 -0
  53. package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-container.component.d.ts +34 -0
  54. package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-inline-container.component.d.ts +14 -0
  55. package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-navigation-view/bs-datepicker-navigation-view.component.d.ts +16 -0
  56. package/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-container.component.d.ts +40 -0
  57. package/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-inline-container.component.d.ts +14 -0
  58. package/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-datepicker-day-decorator.directive.d.ts +7 -0
  59. package/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-days-calendar-view.component.d.ts +23 -0
  60. package/lib/components/gravity-calendar-v2/datepicker/components/bs-months-calendar-view/bs-months-calendar-view.component.d.ts +19 -0
  61. package/lib/components/gravity-calendar-v2/datepicker/components/bs-years-calendar-view/bs-years-calendar-view.component.d.ts +19 -0
  62. package/lib/components/gravity-calendar-v2/datepicker/datepicker-animations.d.ts +3 -0
  63. package/lib/components/gravity-calendar-v2/datepicker/engine/calc-days-calendar.d.ts +2 -0
  64. package/lib/components/gravity-calendar-v2/datepicker/engine/flag-days-calendar.d.ts +12 -0
  65. package/lib/components/gravity-calendar-v2/datepicker/engine/flag-months-calendar.d.ts +12 -0
  66. package/lib/components/gravity-calendar-v2/datepicker/engine/flag-years-calendar.d.ts +13 -0
  67. package/lib/components/gravity-calendar-v2/datepicker/engine/format-days-calendar.d.ts +2 -0
  68. package/lib/components/gravity-calendar-v2/datepicker/engine/format-months-calendar.d.ts +2 -0
  69. package/lib/components/gravity-calendar-v2/datepicker/engine/format-years-calendar.d.ts +4 -0
  70. package/lib/components/gravity-calendar-v2/datepicker/engine/view-mode.d.ts +2 -0
  71. package/lib/components/gravity-calendar-v2/datepicker/models/index.d.ts +86 -0
  72. package/lib/components/gravity-calendar-v2/datepicker/reducer/_defaults.d.ts +3 -0
  73. package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.actions.d.ts +34 -0
  74. package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.effects.d.ts +34 -0
  75. package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.reducer.d.ts +3 -0
  76. package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.state.d.ts +34 -0
  77. package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.store.d.ts +8 -0
  78. package/lib/components/gravity-calendar-v2/datepicker/utils/bs-calendar-utils.d.ts +13 -0
  79. package/lib/components/gravity-calendar-v2/datepicker/utils/matrix-utils.d.ts +9 -0
  80. package/lib/components/gravity-calendar-v2/gravity-calendar-v2.component.d.ts +49 -0
  81. package/lib/gravity-design-system.module.d.ts +43 -29
  82. package/package.json +1 -1
  83. package/public-api.d.ts +1 -0
  84. package/src/lib/styles/components/_datepicker-v2.scss +9 -0
  85. package/src/lib/styles/foundations/colors/primitives/_hero.primitives.scss +54 -0
  86. package/src/lib/styles/foundations/colors/themes/_hero.theme.scss +68 -7
  87. package/src/lib/styles/foundations/colors/tokens/_hero.tokens.scss +60 -0
  88. package/src/lib/styles/gravity-design-system.scss +1 -0
@@ -0,0 +1,41 @@
1
+ import { BsCustomDates } from "../utils/bs-calendar-utils";
2
+ import { BsDatepickerEffects } from '../reducer/bs-datepicker.effects';
3
+ import { Observable, Subscription } from 'rxjs';
4
+ import { BsDatepickerViewMode, BsNavigationEvent, CalendarCellViewModel, CellHoverEvent, DatepickerRenderOptions, DaysCalendarViewModel, DayViewModel, MonthsCalendarViewModel, YearsCalendarViewModel } from '../models';
5
+ import { BsDatepickerConfig } from "../bs-datepicker.config";
6
+ export declare abstract class BsDatepickerAbstractComponent {
7
+ _config: BsDatepickerConfig;
8
+ readonly _subs: Subscription[];
9
+ _daysCalendarSub: Subscription;
10
+ _daysCalendar$: Observable<DaysCalendarViewModel[] | undefined>;
11
+ _effects?: BsDatepickerEffects;
12
+ animationState: string;
13
+ chosenRange: Date[];
14
+ isOtherMonthsActive?: boolean;
15
+ isRangePicker?: boolean;
16
+ monthsCalendar?: Observable<MonthsCalendarViewModel[] | undefined>;
17
+ options$: Observable<DatepickerRenderOptions | undefined>;
18
+ viewMode?: Observable<BsDatepickerViewMode | undefined>;
19
+ yearsCalendar?: Observable<YearsCalendarViewModel[] | undefined>;
20
+ get calendarSize(): 'sm' | 'md';
21
+ get daysCalendar$(): Observable<DaysCalendarViewModel[] | undefined>;
22
+ get isDisabled(): boolean;
23
+ get isEmpty(): boolean;
24
+ get showNavigationArrows(): boolean;
25
+ set daysCalendar$(value: Observable<DaysCalendarViewModel[] | undefined>);
26
+ set isDisabled(value: boolean | undefined);
27
+ set maxDate(value: Date | undefined);
28
+ set minDate(value: Date | undefined);
29
+ protected constructor(_config: BsDatepickerConfig);
30
+ setViewMode(event: BsDatepickerViewMode): void;
31
+ navigateTo(event: BsNavigationEvent): void;
32
+ dayHoverHandler(event: CellHoverEvent): void;
33
+ monthHoverHandler(event: CellHoverEvent): void;
34
+ yearHoverHandler(event: CellHoverEvent): void;
35
+ daySelectHandler(day: DayViewModel): void;
36
+ monthSelectHandler(event: CalendarCellViewModel): void;
37
+ yearSelectHandler(event: CalendarCellViewModel): void;
38
+ setRangeOnCalendar(dates: BsCustomDates): void;
39
+ clearDate(): void;
40
+ apply(): void;
41
+ }
@@ -0,0 +1,40 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
3
+ import { Subscription } from 'rxjs';
4
+ import { BsDatepickerInlineConfig } from './bs-datepicker-inline.config';
5
+ import { BsDatepickerViewMode } from "./models";
6
+ import * as i0 from "@angular/core";
7
+ export declare class BsDatepickerInlineDirective implements OnInit, OnDestroy, OnChanges {
8
+ _config: BsDatepickerInlineConfig;
9
+ private _elementRef;
10
+ /** Config object for datepicker */
11
+ bsConfig?: Partial<BsDatepickerInlineConfig>;
12
+ /** Indicates whether datepicker is enabled or not */
13
+ isDisabled: boolean;
14
+ isMobile: boolean;
15
+ /** Maximum date which is available for selection */
16
+ maxDate?: Date;
17
+ /** Minimum date which is available for selection */
18
+ minDate?: Date;
19
+ /** Minimum view mode : day, month, or year */
20
+ minMode?: BsDatepickerViewMode;
21
+ /** Emits when datepicker value has been changed */
22
+ bsValueChange: EventEmitter<Date>;
23
+ onApplyEmit: EventEmitter<void>;
24
+ private _bsValue?;
25
+ /** Initial value of datepicker */
26
+ set bsValue(value: Date | undefined);
27
+ protected _subs: Subscription[];
28
+ private _datepickerRef?;
29
+ private readonly _datepicker;
30
+ constructor(_config: BsDatepickerInlineConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
31
+ ngOnInit(): void;
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ private initSubscribes;
34
+ private unsubscribeSubscriptions;
35
+ /** Set config for datepicker */
36
+ private setConfig;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerInlineDirective, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDatepickerInlineDirective, "[gravityDatePickerInline]", ["gravityDatePickerInline"], { "bsConfig": { "alias": "bsConfig"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "minMode": { "alias": "minMode"; "required": false; }; "bsValue": { "alias": "bsValue"; "required": false; }; }, { "bsValueChange": "bsValueChange"; "onApplyEmit": "onApplyEmit"; }, never, never, false, never>;
40
+ }
@@ -0,0 +1,6 @@
1
+ import { BsDatepickerConfig } from './bs-datepicker.config';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsDatepickerInlineConfig extends BsDatepickerConfig {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerInlineConfig, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerInlineConfig>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BsDatepickerCallbacks {
3
+ hide?: () => void;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerCallbacks, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerCallbacks>;
6
+ }
@@ -0,0 +1,64 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
3
+ import { Subscription } from 'rxjs';
4
+ import { BsDatepickerConfig } from './bs-datepicker.config';
5
+ import { BsDatepickerViewMode } from './models';
6
+ import * as i0 from "@angular/core";
7
+ export declare let previousDate: Date | Date[] | undefined;
8
+ export declare class BsDatepickerDirective implements OnInit, OnDestroy, OnChanges, AfterViewInit {
9
+ _config: BsDatepickerConfig;
10
+ private _elementRef;
11
+ private _renderer;
12
+ /** Config object for datepicker */
13
+ bsConfig?: Partial<BsDatepickerConfig>;
14
+ /** A selector specifying the element the datepicker should be appended to. */
15
+ container: string;
16
+ /** Indicates whether datepicker's content is enabled or not */
17
+ isDisabled: boolean;
18
+ isMobile: boolean;
19
+ /** Maximum date which is available for selection */
20
+ maxDate?: Date;
21
+ /** Minimum date which is available for selection */
22
+ minDate?: Date;
23
+ /** Minimum view mode : day, month, or year */
24
+ minMode?: BsDatepickerViewMode;
25
+ /** Emits when datepicker value has been changed */
26
+ bsValueChange: EventEmitter<Date>;
27
+ onApplyEmit: EventEmitter<void>;
28
+ /** Emits an event when the datepicker is hidden */
29
+ onHidden: EventEmitter<unknown>;
30
+ /** Emits an event when the datepicker is shown */
31
+ onShown: EventEmitter<unknown>;
32
+ private isOpen$;
33
+ /** Returns whether or not the datepicker is currently being shown */
34
+ get isOpen(): boolean;
35
+ set isOpen(value: boolean);
36
+ _bsValue?: Date;
37
+ /** Initial value of datepicker */
38
+ set bsValue(value: Date | undefined);
39
+ protected _subs: Subscription[];
40
+ private _datepicker;
41
+ private _datepickerRef?;
42
+ private isDestroy$;
43
+ private readonly _dateInputFormat$;
44
+ constructor(_config: BsDatepickerConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
45
+ ngOnInit(): void;
46
+ private initPreviousValue;
47
+ ngOnChanges(changes: SimpleChanges): void;
48
+ ngAfterViewInit(): void;
49
+ private initSubscribes;
50
+ private keepDatepickerModalOpened;
51
+ private isDateSame;
52
+ /** Opens an element’s datepicker. This is considered a “manual” triggering of the datepicker. */
53
+ private show;
54
+ /** Closes an element’s datepicker. This is considered a “manual” triggering of the datepicker. */
55
+ hide(): void;
56
+ /** Toggles an element’s datepicker. This is considered a “manual” triggering of the datepicker. */
57
+ private toggle;
58
+ /** Set config for datepicker */
59
+ private setConfig;
60
+ private unsubscribeSubscriptions;
61
+ ngOnDestroy(): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerDirective, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDatepickerDirective, "[gravityDatePicker]", ["gravityDatePicker"], { "bsConfig": { "alias": "bsConfig"; "required": false; }; "container": { "alias": "container"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "minMode": { "alias": "minMode"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "bsValue": { "alias": "bsValue"; "required": false; }; }, { "bsValueChange": "bsValueChange"; "onApplyEmit": "onApplyEmit"; "onHidden": "onHidden"; "onShown": "onShown"; }, never, never, false, never>;
64
+ }
@@ -0,0 +1,53 @@
1
+ import { BsDatepickerViewMode, DatepickerRenderOptions } from './models';
2
+ import { BsCustomDates } from "./utils/bs-calendar-utils";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * For date range picker there are `BsDaterangepickerConfig` which inherits all properties,
6
+ * except `displayMonths`, for range picker it default to `2`
7
+ */
8
+ export declare class BsDatepickerConfig implements DatepickerRenderOptions {
9
+ /** Sets use adaptive position */
10
+ adaptivePosition: boolean;
11
+ calendarLang: string;
12
+ calendarSize: 'md' | 'sm';
13
+ clearable: boolean;
14
+ displayMonths: number;
15
+ /** turn on/off animation */
16
+ isAnimated: boolean;
17
+ isDisabled?: boolean;
18
+ isMobile: boolean;
19
+ /**
20
+ * Set rule for datepicker closing.
21
+ * If value is true datepicker closes only if date is changed, if user changes only time datepicker doesn't close.
22
+ * It is available only if property withTimepicker is set true
23
+ */
24
+ keepDatepickerOpened: boolean;
25
+ /** Default max date for all date/range pickers */
26
+ maxDate?: Date;
27
+ /** Default min date for all date/range pickers */
28
+ minDate?: Date;
29
+ /** Default mode for all date pickers */
30
+ minMode?: BsDatepickerViewMode;
31
+ /** Prevents change to next month for right calendar in two calendars view (dateRangePicker only) */
32
+ preventChangeToNextMonth: boolean;
33
+ /** Makes dates from other months active */
34
+ selectFromOtherMonth: boolean;
35
+ /** The view that the datepicker should start in */
36
+ startView: BsDatepickerViewMode;
37
+ value?: Date | Date[];
38
+ dayLabel: string;
39
+ monthLabel: string;
40
+ monthTitle: string;
41
+ yearLabel: string;
42
+ yearTitle: string;
43
+ /**
44
+ * Predefined ranges
45
+ */
46
+ ranges?: BsCustomDates[];
47
+ /**
48
+ * Max Date Range in days
49
+ */
50
+ maxDateRange?: number;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerConfig, never>;
52
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerConfig>;
53
+ }
@@ -0,0 +1,37 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
3
+ import { Subscription } from 'rxjs';
4
+ import { BsDaterangepickerInlineConfig } from './bs-daterangepicker-inline.config';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BsDaterangepickerInlineDirective implements OnInit, OnDestroy, OnChanges {
7
+ _config: BsDaterangepickerInlineConfig;
8
+ private _elementRef;
9
+ /** Config object for datepicker */
10
+ bsConfig?: Partial<BsDaterangepickerInlineConfig>;
11
+ /** Indicates whether datepicker is enabled or not */
12
+ isDisabled: boolean;
13
+ isMobile: boolean;
14
+ /** Maximum date which is available for selection */
15
+ maxDate?: Date;
16
+ /** Minimum date which is available for selection */
17
+ minDate?: Date;
18
+ /** Emits when daterangepicker value has been changed */
19
+ bsValueChange: EventEmitter<(Date | undefined)[] | undefined>;
20
+ onApplyEmit: EventEmitter<void>;
21
+ private _bsValue?;
22
+ /** Initial value of datepicker */
23
+ set bsValue(value: (Date | undefined)[] | undefined);
24
+ protected _subs: Subscription[];
25
+ private _datepickerRef?;
26
+ private readonly _datepicker;
27
+ constructor(_config: BsDaterangepickerInlineConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
28
+ ngOnInit(): void;
29
+ ngOnChanges(changes: SimpleChanges): void;
30
+ private initSubscribes;
31
+ private unsubscribeSubscriptions;
32
+ /** Set config for datepicker */
33
+ private setConfig;
34
+ ngOnDestroy(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerInlineDirective, never>;
36
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDaterangepickerInlineDirective, "[gravityRangePickerInline]", ["gravityRangePickerInline"], { "bsConfig": { "alias": "bsConfig"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "bsValue": { "alias": "bsValue"; "required": false; }; }, { "bsValueChange": "bsValueChange"; "onApplyEmit": "onApplyEmit"; }, never, never, false, never>;
37
+ }
@@ -0,0 +1,7 @@
1
+ import { BsDatepickerConfig } from './bs-datepicker.config';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsDaterangepickerInlineConfig extends BsDatepickerConfig {
4
+ displayMonths: number;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerInlineConfig, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDaterangepickerInlineConfig>;
7
+ }
@@ -0,0 +1,61 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { BsDaterangepickerConfig } from './bs-daterangepicker.config';
3
+ import { Subscription } from 'rxjs';
4
+ import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
5
+ import * as i0 from "@angular/core";
6
+ export declare let previousDate: (Date | undefined)[] | undefined;
7
+ export declare class BsDaterangepickerDirective implements OnInit, OnDestroy, OnChanges, AfterViewInit {
8
+ _config: BsDaterangepickerConfig;
9
+ private _elementRef;
10
+ private _renderer;
11
+ /** Config object for daterangepicker */
12
+ bsConfig?: Partial<BsDaterangepickerConfig>;
13
+ /** A selector specifying the element the daterangepicker should be appended to. */
14
+ container: string;
15
+ /** Indicates whether daterangepicker's content is enabled or not */
16
+ isDisabled: boolean;
17
+ isMobile: boolean;
18
+ /** Maximum date which is available for selection */
19
+ maxDate?: Date;
20
+ /** Minimum date which is available for selection */
21
+ minDate?: Date;
22
+ /** Emits when daterangepicker value has been changed */
23
+ bsValueChange: EventEmitter<((Date | undefined)[] | undefined)>;
24
+ onApplyEmit: EventEmitter<void>;
25
+ /** Emits an event when the daterangepicker is hidden */
26
+ onHidden: EventEmitter<unknown>;
27
+ /** Emits an event when the daterangepicker is shown */
28
+ onShown: EventEmitter<unknown>;
29
+ private isOpen$;
30
+ /** Returns whether or not the daterangepicker is currently being shown */
31
+ get isOpen(): boolean;
32
+ set isOpen(value: boolean);
33
+ _bsValue?: (Date | undefined)[];
34
+ /** Initial value of daterangepicker */
35
+ set bsValue(value: (Date | undefined)[] | undefined);
36
+ protected _subs: Subscription[];
37
+ private _datepicker;
38
+ private _datepickerRef?;
39
+ private isDestroy$;
40
+ private readonly _rangeInputFormat$;
41
+ constructor(_config: BsDaterangepickerConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
42
+ ngOnInit(): void;
43
+ private initPreviousValue;
44
+ ngOnChanges(changes: SimpleChanges): void;
45
+ ngAfterViewInit(): void;
46
+ private initSubscribes;
47
+ private keepDatepickerModalOpened;
48
+ private isDateSame;
49
+ /** Opens an element’s datepicker. This is considered a “manual” triggering of the datepicker */
50
+ private show;
51
+ /** Closes an element’s datepicker. This is considered a “manual” triggering of the datepicker. */
52
+ hide(): void;
53
+ /** Toggles an element’s datepicker. This is considered a “manual” triggering of the datepicker. */
54
+ private toggle;
55
+ /** Set config for daterangepicker */
56
+ private setConfig;
57
+ private unsubscribeSubscriptions;
58
+ ngOnDestroy(): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerDirective, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDaterangepickerDirective, "[gravityRangePicker]", ["gravityRangePicker"], { "bsConfig": { "alias": "bsConfig"; "required": false; }; "container": { "alias": "container"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "bsValue": { "alias": "bsValue"; "required": false; }; }, { "bsValueChange": "bsValueChange"; "onApplyEmit": "onApplyEmit"; "onHidden": "onHidden"; "onShown": "onShown"; }, never, never, false, never>;
61
+ }
@@ -0,0 +1,7 @@
1
+ import { BsDatepickerConfig } from './bs-datepicker.config';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsDaterangepickerConfig extends BsDatepickerConfig {
4
+ displayMonths: number;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerConfig, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDaterangepickerConfig>;
7
+ }
@@ -0,0 +1,34 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { PositioningService } from 'ngx-bootstrap/positioning';
3
+ import { BsDatepickerAbstractComponent } from '../base/bs-datepicker-container';
4
+ import { BsDatepickerConfig } from '../bs-datepicker.config';
5
+ import { CalendarCellViewModel, DayViewModel } from '../models';
6
+ import { BsDatepickerActions } from '../reducer/bs-datepicker.actions';
7
+ import { BsDatepickerEffects } from '../reducer/bs-datepicker.effects';
8
+ import { BsDatepickerStore } from '../reducer/bs-datepicker.store';
9
+ import { BsDatepickerCallbacks } from "../bs-datepicker.callbacks";
10
+ import * as i0 from "@angular/core";
11
+ export declare class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent implements OnInit, OnDestroy {
12
+ _config: BsDatepickerConfig;
13
+ _callbacks: BsDatepickerCallbacks;
14
+ private _store;
15
+ private _element;
16
+ private _actions;
17
+ private _positionService;
18
+ isRangePicker: boolean;
19
+ onApplyChange: EventEmitter<void>;
20
+ valueChange: EventEmitter<Date>;
21
+ set value(value: Date | undefined);
22
+ constructor(_renderer: Renderer2, _config: BsDatepickerConfig, _callbacks: BsDatepickerCallbacks, _store: BsDatepickerStore, _element: ElementRef, _actions: BsDatepickerActions, _effects: BsDatepickerEffects, _positionService: PositioningService);
23
+ ngOnInit(): void;
24
+ get isTopPosition(): boolean;
25
+ positionServiceEnable(): void;
26
+ daySelectHandler(day: DayViewModel): void;
27
+ monthSelectHandler(day: CalendarCellViewModel): void;
28
+ yearSelectHandler(day: CalendarCellViewModel): void;
29
+ ngOnDestroy(): void;
30
+ clearDate(): void;
31
+ apply(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerContainerComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepickerContainerComponent, "gt-datepicker-container", never, {}, {}, never, never, false, never>;
34
+ }
@@ -0,0 +1,14 @@
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { BsDatepickerContainerComponent } from './bs-datepicker-container.component';
3
+ import { BsDatepickerActions } from '../reducer/bs-datepicker.actions';
4
+ import { BsDatepickerConfig } from '../bs-datepicker.config';
5
+ import { BsDatepickerEffects } from '../reducer/bs-datepicker.effects';
6
+ import { BsDatepickerStore } from '../reducer/bs-datepicker.store';
7
+ import { PositioningService } from 'ngx-bootstrap/positioning';
8
+ import { BsDatepickerCallbacks } from "../bs-datepicker.callbacks";
9
+ import * as i0 from "@angular/core";
10
+ export declare class BsDatepickerInlineContainerComponent extends BsDatepickerContainerComponent implements OnInit, OnDestroy {
11
+ constructor(_renderer: Renderer2, _config: BsDatepickerConfig, _callbacks: BsDatepickerCallbacks, _store: BsDatepickerStore, _element: ElementRef, _actions: BsDatepickerActions, _effects: BsDatepickerEffects, _positioningService: PositioningService);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerInlineContainerComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepickerInlineContainerComponent, "gt-datepicker-inline-container", never, {}, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BsDatepickerViewMode, BsNavigationDirection, NavigationViewModel } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsDatepickerNavigationViewComponent {
5
+ calendar: NavigationViewModel;
6
+ calendarIndex: number;
7
+ showNavigationArrows: boolean;
8
+ isDisabled: boolean;
9
+ type: 'days' | 'months' | 'years';
10
+ onNavigate: EventEmitter<BsNavigationDirection>;
11
+ onViewMode: EventEmitter<BsDatepickerViewMode>;
12
+ navTo(down: boolean, disabled: boolean): void;
13
+ view(viewMode: BsDatepickerViewMode): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerNavigationViewComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepickerNavigationViewComponent, "bs-datepicker-navigation-view", never, { "calendar": { "alias": "calendar"; "required": false; }; "calendarIndex": { "alias": "calendarIndex"; "required": false; }; "showNavigationArrows": { "alias": "showNavigationArrows"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "onNavigate": "onNavigate"; "onViewMode": "onViewMode"; }, never, never, false, never>;
16
+ }
@@ -0,0 +1,40 @@
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { PositioningService } from 'ngx-bootstrap/positioning';
3
+ import { BsDatepickerAbstractComponent } from '../base/bs-datepicker-container';
4
+ import { BsDatepickerConfig } from '../bs-datepicker.config';
5
+ import { CalendarCellViewModel, DayViewModel } from '../models';
6
+ import { BsDatepickerActions } from '../reducer/bs-datepicker.actions';
7
+ import { BsDatepickerEffects } from '../reducer/bs-datepicker.effects';
8
+ import { BsDatepickerStore } from '../reducer/bs-datepicker.store';
9
+ import { BsDatepickerCallbacks } from "../bs-datepicker.callbacks";
10
+ import { BsCustomDates } from "../utils/bs-calendar-utils";
11
+ import * as i0 from "@angular/core";
12
+ export declare class BsDaterangepickerContainerComponent extends BsDatepickerAbstractComponent implements OnInit, OnDestroy {
13
+ _config: BsDatepickerConfig;
14
+ _callbacks: BsDatepickerCallbacks;
15
+ private _store;
16
+ private _element;
17
+ private _actions;
18
+ private _positionService;
19
+ chosenRange: Date[];
20
+ isRangePicker: boolean;
21
+ private _rangeStack;
22
+ valueChange: EventEmitter<Date[]>;
23
+ onApplyChange: EventEmitter<void>;
24
+ set value(value: (Date | undefined)[] | undefined);
25
+ constructor(_renderer: Renderer2, _config: BsDatepickerConfig, _callbacks: BsDatepickerCallbacks, _store: BsDatepickerStore, _element: ElementRef, _actions: BsDatepickerActions, _effects: BsDatepickerEffects, _positionService: PositioningService);
26
+ ngOnInit(): void;
27
+ get isTopPosition(): boolean;
28
+ positionServiceEnable(): void;
29
+ daySelectHandler(day: DayViewModel): void;
30
+ monthSelectHandler(day: CalendarCellViewModel): void;
31
+ yearSelectHandler(day: CalendarCellViewModel): void;
32
+ rangesProcessing(day: CalendarCellViewModel): void;
33
+ ngOnDestroy(): void;
34
+ setRangeOnCalendar(dates: BsCustomDates): void;
35
+ setMaxDateRangeOnCalendar(currentSelection: Date): void;
36
+ clearDate(): void;
37
+ apply(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerContainerComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDaterangepickerContainerComponent, "gt-daterangepicker-container", never, {}, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,14 @@
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { BsDaterangepickerContainerComponent } from './bs-daterangepicker-container.component';
3
+ import { BsDatepickerActions } from '../reducer/bs-datepicker.actions';
4
+ import { BsDatepickerConfig } from '../bs-datepicker.config';
5
+ import { BsDatepickerEffects } from '../reducer/bs-datepicker.effects';
6
+ import { BsDatepickerStore } from '../reducer/bs-datepicker.store';
7
+ import { PositioningService } from 'ngx-bootstrap/positioning';
8
+ import { BsDatepickerCallbacks } from "../bs-datepicker.callbacks";
9
+ import * as i0 from "@angular/core";
10
+ export declare class BsDaterangepickerInlineContainerComponent extends BsDaterangepickerContainerComponent implements OnInit, OnDestroy {
11
+ constructor(_renderer: Renderer2, _config: BsDatepickerConfig, _callbacks: BsDatepickerCallbacks, _store: BsDatepickerStore, _element: ElementRef, _actions: BsDatepickerActions, _effects: BsDatepickerEffects, _positioningService: PositioningService);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaterangepickerInlineContainerComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDaterangepickerInlineContainerComponent, "gt-daterangepicker-inline-container", never, {}, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,7 @@
1
+ import { DayViewModel } from '../../models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsDatepickerDayDecoratorComponent {
4
+ day: DayViewModel;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerDayDecoratorComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepickerDayDecoratorComponent, "[bsDatepickerDayDecorator]", never, { "day": { "alias": "day"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BsDatepickerViewMode, BsNavigationDirection, BsNavigationEvent, CellHoverEvent, DatepickerRenderOptions, DaysCalendarViewModel, DayViewModel } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsDaysCalendarViewComponent {
5
+ calendar: DaysCalendarViewModel;
6
+ calendarIndex: number;
7
+ isDisabled?: boolean;
8
+ options?: DatepickerRenderOptions | null;
9
+ showNavigationArrows: boolean;
10
+ size: 'sm' | 'md' | '';
11
+ onNavigate: EventEmitter<BsNavigationEvent>;
12
+ onViewMode: EventEmitter<BsDatepickerViewMode>;
13
+ onSelect: EventEmitter<DayViewModel>;
14
+ onHover: EventEmitter<CellHoverEvent>;
15
+ isiOS: boolean;
16
+ constructor();
17
+ navigateTo(event: BsNavigationDirection): void;
18
+ changeViewMode(event: BsDatepickerViewMode): void;
19
+ selectDay(event: DayViewModel): void;
20
+ hoverDay(cell: DayViewModel, isHovered: boolean): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDaysCalendarViewComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsDaysCalendarViewComponent, "bs-days-calendar-view", never, { "calendar": { "alias": "calendar"; "required": false; }; "calendarIndex": { "alias": "calendarIndex"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "options": { "alias": "options"; "required": false; }; "showNavigationArrows": { "alias": "showNavigationArrows"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onNavigate": "onNavigate"; "onViewMode": "onViewMode"; "onSelect": "onSelect"; "onHover": "onHover"; }, never, never, false, never>;
23
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BsDatepickerViewMode, BsNavigationDirection, BsNavigationEvent, CalendarCellViewModel, CellHoverEvent, MonthsCalendarViewModel } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsMonthCalendarViewComponent {
5
+ calendar: MonthsCalendarViewModel;
6
+ calendarIndex: number;
7
+ showNavigationArrows: boolean;
8
+ size: 'sm' | 'md' | '';
9
+ onNavigate: EventEmitter<BsNavigationEvent>;
10
+ onViewMode: EventEmitter<BsDatepickerViewMode>;
11
+ onSelect: EventEmitter<CalendarCellViewModel>;
12
+ onHover: EventEmitter<CellHoverEvent>;
13
+ navigateTo(event: BsNavigationDirection): void;
14
+ viewMonth(month: CalendarCellViewModel): void;
15
+ hoverMonth(cell: CalendarCellViewModel, isHovered: boolean): void;
16
+ changeViewMode(event: BsDatepickerViewMode): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsMonthCalendarViewComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsMonthCalendarViewComponent, "bs-month-calendar-view", never, { "calendar": { "alias": "calendar"; "required": false; }; "calendarIndex": { "alias": "calendarIndex"; "required": false; }; "showNavigationArrows": { "alias": "showNavigationArrows"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onNavigate": "onNavigate"; "onViewMode": "onViewMode"; "onSelect": "onSelect"; "onHover": "onHover"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BsDatepickerViewMode, BsNavigationDirection, BsNavigationEvent, CalendarCellViewModel, CellHoverEvent, YearsCalendarViewModel } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsYearsCalendarViewComponent {
5
+ calendar: YearsCalendarViewModel;
6
+ calendarIndex: number;
7
+ showNavigationArrows: boolean;
8
+ size: 'sm' | 'md' | '';
9
+ onNavigate: EventEmitter<BsNavigationEvent>;
10
+ onViewMode: EventEmitter<BsDatepickerViewMode>;
11
+ onSelect: EventEmitter<CalendarCellViewModel>;
12
+ onHover: EventEmitter<CellHoverEvent>;
13
+ navigateTo(event: BsNavigationDirection): void;
14
+ viewYear(year: CalendarCellViewModel): void;
15
+ hoverYear(cell: CalendarCellViewModel, isHovered: boolean): void;
16
+ changeViewMode(event: BsDatepickerViewMode): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsYearsCalendarViewComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsYearsCalendarViewComponent, "bs-years-calendar-view", never, { "calendar": { "alias": "calendar"; "required": false; }; "calendarIndex": { "alias": "calendarIndex"; "required": false; }; "showNavigationArrows": { "alias": "showNavigationArrows"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "onNavigate": "onNavigate"; "onViewMode": "onViewMode"; "onSelect": "onSelect"; "onHover": "onHover"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,3 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ export declare const DATEPICKER_ANIMATION_TIMING = "220ms cubic-bezier(0, 0, 0.2, 1)";
3
+ export declare const datepickerAnimation: AnimationTriggerMetadata;
@@ -0,0 +1,2 @@
1
+ import { DaysCalendarModel, MonthViewOptions } from '../models';
2
+ export declare function calcDaysCalendar(startingDate: Date, options: MonthViewOptions): DaysCalendarModel;
@@ -0,0 +1,12 @@
1
+ import { DaysCalendarViewModel } from '../models';
2
+ export interface FlagDaysCalendarOptions {
3
+ isDisabled: boolean;
4
+ minDate: Date;
5
+ maxDate: Date;
6
+ hoveredDate: Date;
7
+ selectedDate: Date;
8
+ selectedRange: Date[];
9
+ displayMonths: number;
10
+ monthIndex: number;
11
+ }
12
+ export declare function flagDaysCalendar(formattedMonth: DaysCalendarViewModel, options: Partial<FlagDaysCalendarOptions>): DaysCalendarViewModel;
@@ -0,0 +1,12 @@
1
+ import { MonthsCalendarViewModel } from '../models';
2
+ export interface FlagMonthCalendarOptions {
3
+ isDisabled: boolean;
4
+ minDate: Date;
5
+ maxDate: Date;
6
+ hoveredMonth: Date;
7
+ selectedDate: Date;
8
+ selectedRange: Date[];
9
+ displayMonths: number;
10
+ monthIndex: number;
11
+ }
12
+ export declare function flagMonthsCalendar(monthCalendar: MonthsCalendarViewModel, options: Partial<FlagMonthCalendarOptions>): MonthsCalendarViewModel;
@@ -0,0 +1,13 @@
1
+ import { YearsCalendarViewModel } from '../models';
2
+ export interface FlagYearsCalendarOptions {
3
+ isDisabled: boolean;
4
+ minDate: Date;
5
+ maxDate: Date;
6
+ hoveredYear: Date;
7
+ selectedDate: Date;
8
+ selectedRange: Date[];
9
+ displayMonths: number;
10
+ yearIndex: number;
11
+ isToday: boolean;
12
+ }
13
+ export declare function flagYearsCalendar(yearsCalendar: YearsCalendarViewModel, options: Partial<FlagYearsCalendarOptions>): YearsCalendarViewModel;
@@ -0,0 +1,2 @@
1
+ import { DatepickerFormatOptions, DaysCalendarModel, DaysCalendarViewModel } from '../models';
2
+ export declare function formatDaysCalendar(daysCalendar: DaysCalendarModel, formatOptions: DatepickerFormatOptions, monthIndex: number): DaysCalendarViewModel;
@@ -0,0 +1,2 @@
1
+ import { DatepickerFormatOptions, MonthsCalendarViewModel } from '../models';
2
+ export declare function formatMonthsCalendar(viewDate: Date, formatOptions: DatepickerFormatOptions): MonthsCalendarViewModel;
@@ -0,0 +1,4 @@
1
+ import { DatepickerFormatOptions, YearsCalendarViewModel } from '../models';
2
+ export declare const yearsPerCalendar: number;
3
+ export declare const initialYearShift: number;
4
+ export declare function formatYearsCalendar(viewDate: Date, formatOptions: DatepickerFormatOptions, previousInitialDate?: Date, currentSelectedYear?: Date): YearsCalendarViewModel;
@@ -0,0 +1,2 @@
1
+ import { BsDatepickerViewMode } from '../models';
2
+ export declare function canSwitchMode(mode: BsDatepickerViewMode, minMode?: BsDatepickerViewMode): boolean;