@progressio_resources/gravity-design-system 2.6.21 → 2.6.23
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/esm2022/lib/components/gravity-calendar-v2/datepicker/base/bs-datepicker-container.mjs +66 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.component.mjs +129 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.config.mjs +14 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.callbacks.mjs +13 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.component.mjs +210 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.config.mjs +46 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.component.mjs +130 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.config.mjs +18 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.component.mjs +218 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.config.mjs +18 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-container.component.mjs +134 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-inline-container.component.mjs +33 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-navigation-view/bs-datepicker-navigation-view.component.mjs +44 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-container.component.mjs +190 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-inline-container.component.mjs +33 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-datepicker-day-decorator.directive.mjs +30 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-days-calendar-view.component.mjs +54 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-months-calendar-view/bs-months-calendar-view.component.mjs +49 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/components/bs-years-calendar-view/bs-years-calendar-view.component.mjs +50 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/datepicker-animations.mjs +16 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/calc-days-calendar.mjs +16 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-days-calendar.mjs +53 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-months-calendar.mjs +39 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/flag-years-calendar.mjs +36 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-days-calendar.mjs +23 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-months-calendar.mjs +23 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/format-years-calendar.mjs +43 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/engine/view-mode.mjs +4 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/models/index.mjs +7 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/_defaults.mjs +6 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.actions.mjs +64 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.effects.mjs +128 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.reducer.mjs +301 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.state.mjs +16 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.store.mjs +20 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/utils/bs-calendar-utils.mjs +74 -0
- package/esm2022/lib/components/gravity-calendar-v2/datepicker/utils/matrix-utils.mjs +14 -0
- package/esm2022/lib/components/gravity-calendar-v2/gravity-calendar-v2.component.mjs +227 -0
- package/esm2022/lib/gravity-design-system.module.mjs +47 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/progressio_resources-gravity-design-system.mjs +2458 -33
- package/fesm2022/progressio_resources-gravity-design-system.mjs.map +1 -1
- package/lib/components/gravity-calendar-v2/datepicker/base/bs-datepicker-container.d.ts +41 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.component.d.ts +40 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker-inline.config.d.ts +6 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.callbacks.d.ts +6 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.component.d.ts +64 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-datepicker.config.d.ts +53 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.component.d.ts +37 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.config.d.ts +7 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.component.d.ts +61 -0
- package/lib/components/gravity-calendar-v2/datepicker/bs-daterangepicker.config.d.ts +7 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-container.component.d.ts +34 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-inline-container.component.d.ts +14 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-datepicker-navigation-view/bs-datepicker-navigation-view.component.d.ts +16 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-container.component.d.ts +40 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-inline-container.component.d.ts +14 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-datepicker-day-decorator.directive.d.ts +7 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-days-calendar-view.component.d.ts +23 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-months-calendar-view/bs-months-calendar-view.component.d.ts +19 -0
- package/lib/components/gravity-calendar-v2/datepicker/components/bs-years-calendar-view/bs-years-calendar-view.component.d.ts +19 -0
- package/lib/components/gravity-calendar-v2/datepicker/datepicker-animations.d.ts +3 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/calc-days-calendar.d.ts +2 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/flag-days-calendar.d.ts +12 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/flag-months-calendar.d.ts +12 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/flag-years-calendar.d.ts +13 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/format-days-calendar.d.ts +2 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/format-months-calendar.d.ts +2 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/format-years-calendar.d.ts +4 -0
- package/lib/components/gravity-calendar-v2/datepicker/engine/view-mode.d.ts +2 -0
- package/lib/components/gravity-calendar-v2/datepicker/models/index.d.ts +86 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/_defaults.d.ts +3 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.actions.d.ts +34 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.effects.d.ts +34 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.reducer.d.ts +3 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.state.d.ts +34 -0
- package/lib/components/gravity-calendar-v2/datepicker/reducer/bs-datepicker.store.d.ts +8 -0
- package/lib/components/gravity-calendar-v2/datepicker/utils/bs-calendar-utils.d.ts +13 -0
- package/lib/components/gravity-calendar-v2/datepicker/utils/matrix-utils.d.ts +9 -0
- package/lib/components/gravity-calendar-v2/gravity-calendar-v2.component.d.ts +49 -0
- package/lib/gravity-design-system.module.d.ts +43 -29
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/styles/components/_datepicker-v2.scss +9 -0
- package/src/lib/styles/gravity-design-system.scss +1 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TimeUnit } from 'ngx-bootstrap/chronos';
|
|
2
|
+
export type BsDatepickerViewMode = 'day' | 'month' | 'year';
|
|
3
|
+
/** *************** */
|
|
4
|
+
export interface NavigationViewModel {
|
|
5
|
+
monthTitle: string;
|
|
6
|
+
yearTitle: string;
|
|
7
|
+
hideLeftArrow: boolean;
|
|
8
|
+
hideRightArrow: boolean;
|
|
9
|
+
disableLeftArrow: boolean;
|
|
10
|
+
disableRightArrow: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface CalendarCellViewModel {
|
|
13
|
+
date: Date;
|
|
14
|
+
label: string;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
isHovered?: boolean;
|
|
17
|
+
isSelected?: boolean;
|
|
18
|
+
isToday?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** *************** */
|
|
21
|
+
export interface DayViewModel extends CalendarCellViewModel {
|
|
22
|
+
isOtherMonth?: boolean;
|
|
23
|
+
isInRange?: boolean;
|
|
24
|
+
isSelectionStart?: boolean;
|
|
25
|
+
isSelectionEnd?: boolean;
|
|
26
|
+
isToday?: boolean;
|
|
27
|
+
monthIndex?: number;
|
|
28
|
+
weekIndex?: number;
|
|
29
|
+
dayIndex?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface WeekViewModel {
|
|
32
|
+
days: DayViewModel[];
|
|
33
|
+
isHovered?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface DaysCalendarViewModel extends NavigationViewModel {
|
|
36
|
+
weeks: WeekViewModel[];
|
|
37
|
+
month: Date;
|
|
38
|
+
weekdays: string[];
|
|
39
|
+
}
|
|
40
|
+
/** *************** */
|
|
41
|
+
export interface MonthsCalendarViewModel extends NavigationViewModel {
|
|
42
|
+
months: CalendarCellViewModel[][];
|
|
43
|
+
}
|
|
44
|
+
export interface YearsCalendarViewModel extends NavigationViewModel {
|
|
45
|
+
years: CalendarCellViewModel[][];
|
|
46
|
+
}
|
|
47
|
+
/** *************** */
|
|
48
|
+
export interface DaysCalendarModel {
|
|
49
|
+
daysMatrix: Date[][];
|
|
50
|
+
month: Date;
|
|
51
|
+
}
|
|
52
|
+
/** *************** */
|
|
53
|
+
export interface MonthViewOptions {
|
|
54
|
+
width?: number;
|
|
55
|
+
height?: number;
|
|
56
|
+
firstDayOfWeek?: number;
|
|
57
|
+
}
|
|
58
|
+
/** *************** */
|
|
59
|
+
export interface DatepickerFormatOptions {
|
|
60
|
+
locale?: string;
|
|
61
|
+
monthTitle?: string;
|
|
62
|
+
yearTitle?: string;
|
|
63
|
+
dayLabel?: string;
|
|
64
|
+
monthLabel?: string;
|
|
65
|
+
yearLabel?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface DatepickerRenderOptions {
|
|
68
|
+
displayMonths: number;
|
|
69
|
+
}
|
|
70
|
+
/** *************** */
|
|
71
|
+
export declare enum BsNavigationDirection {
|
|
72
|
+
UP = 0,
|
|
73
|
+
DOWN = 1
|
|
74
|
+
}
|
|
75
|
+
export interface BsNavigationEvent {
|
|
76
|
+
direction?: BsNavigationDirection;
|
|
77
|
+
step?: TimeUnit;
|
|
78
|
+
}
|
|
79
|
+
export interface BsViewNavigationEvent {
|
|
80
|
+
unit?: TimeUnit;
|
|
81
|
+
viewMode: BsDatepickerViewMode;
|
|
82
|
+
}
|
|
83
|
+
export interface CellHoverEvent {
|
|
84
|
+
cell: CalendarCellViewModel;
|
|
85
|
+
isHovered: boolean;
|
|
86
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TimeUnit } from 'ngx-bootstrap/chronos';
|
|
2
|
+
import { Action } from 'ngx-bootstrap/mini-ngrx';
|
|
3
|
+
import { BsDatepickerViewMode, BsViewNavigationEvent, CellHoverEvent, DatepickerRenderOptions } from '../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsDatepickerActions {
|
|
6
|
+
static readonly CALCULATE: string;
|
|
7
|
+
static readonly CHANGE_VIEWMODE: string;
|
|
8
|
+
static readonly FLAG: string;
|
|
9
|
+
static readonly FORMAT: string;
|
|
10
|
+
static readonly HOVER: string;
|
|
11
|
+
static readonly NAVIGATE_OFFSET: string;
|
|
12
|
+
static readonly NAVIGATE_TO: string;
|
|
13
|
+
static readonly SELECT: string;
|
|
14
|
+
static readonly SELECT_RANGE: string;
|
|
15
|
+
static readonly SET_IS_DISABLED: string;
|
|
16
|
+
static readonly SET_MAX_DATE: string;
|
|
17
|
+
static readonly SET_MIN_DATE: string;
|
|
18
|
+
static readonly SET_OPTIONS: string;
|
|
19
|
+
calculate(): Action;
|
|
20
|
+
format(): Action;
|
|
21
|
+
flag(): Action;
|
|
22
|
+
select(date?: Date): Action;
|
|
23
|
+
changeViewMode(event: BsDatepickerViewMode): Action;
|
|
24
|
+
navigateTo(event: BsViewNavigationEvent): Action;
|
|
25
|
+
navigateStep(step?: TimeUnit): Action;
|
|
26
|
+
setOptions(options: DatepickerRenderOptions): Action;
|
|
27
|
+
selectRange(value?: (Date | undefined)[] | undefined): Action;
|
|
28
|
+
hoverDay(event: CellHoverEvent): Action;
|
|
29
|
+
minDate(date?: Date): Action;
|
|
30
|
+
maxDate(date?: Date): Action;
|
|
31
|
+
isDisabled(value?: boolean): Action;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerActions, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerActions>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BsDatepickerAbstractComponent } from '../base/bs-datepicker-container';
|
|
3
|
+
import { BsDatepickerConfig } from '../bs-datepicker.config';
|
|
4
|
+
import { BsDatepickerViewMode, DatepickerRenderOptions, DaysCalendarViewModel, MonthsCalendarViewModel, YearsCalendarViewModel } from '../models';
|
|
5
|
+
import { BsDatepickerActions } from './bs-datepicker.actions';
|
|
6
|
+
import { BsDatepickerStore } from './bs-datepicker.store';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BsDatepickerEffects {
|
|
9
|
+
private _actions;
|
|
10
|
+
viewMode?: Observable<BsDatepickerViewMode>;
|
|
11
|
+
daysCalendar?: Observable<DaysCalendarViewModel[]>;
|
|
12
|
+
monthsCalendar?: Observable<MonthsCalendarViewModel[]>;
|
|
13
|
+
yearsCalendar?: Observable<YearsCalendarViewModel[]>;
|
|
14
|
+
options?: Observable<DatepickerRenderOptions>;
|
|
15
|
+
private _store?;
|
|
16
|
+
private _subs;
|
|
17
|
+
constructor(_actions: BsDatepickerActions);
|
|
18
|
+
init(_bsDatepickerStore: BsDatepickerStore): BsDatepickerEffects;
|
|
19
|
+
/** setters */
|
|
20
|
+
setValue(value?: Date): void;
|
|
21
|
+
setRangeValue(value?: (Date | undefined)[] | undefined): void;
|
|
22
|
+
setMinDate(value?: Date): BsDatepickerEffects;
|
|
23
|
+
setMaxDate(value?: Date): BsDatepickerEffects;
|
|
24
|
+
setDisabled(value?: boolean): BsDatepickerEffects;
|
|
25
|
+
setOptions(_config: BsDatepickerConfig): BsDatepickerEffects;
|
|
26
|
+
/** view to mode bindings */
|
|
27
|
+
setBindings(container: BsDatepickerAbstractComponent): BsDatepickerEffects;
|
|
28
|
+
/** event handlers */
|
|
29
|
+
setEventHandlers(container: BsDatepickerAbstractComponent): BsDatepickerEffects;
|
|
30
|
+
registerDatepickerSideEffects(): BsDatepickerEffects;
|
|
31
|
+
destroy(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerEffects, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerEffects>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BsDatepickerViewMode, DatepickerFormatOptions, DatepickerRenderOptions, DaysCalendarModel, DaysCalendarViewModel, MonthsCalendarViewModel, MonthViewOptions, YearsCalendarViewModel } from '../models';
|
|
2
|
+
export interface BsDatepickerViewState {
|
|
3
|
+
date: Date;
|
|
4
|
+
mode: BsDatepickerViewMode;
|
|
5
|
+
}
|
|
6
|
+
export declare class BsDatepickerState implements DatepickerRenderOptions, DatepickerFormatOptions {
|
|
7
|
+
selectedDate?: Date;
|
|
8
|
+
selectedRange?: Date[];
|
|
9
|
+
view?: BsDatepickerViewState;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
minDate?: Date;
|
|
12
|
+
maxDate?: Date;
|
|
13
|
+
minMode?: BsDatepickerViewMode;
|
|
14
|
+
hoveredDate?: Date;
|
|
15
|
+
hoveredMonth?: Date;
|
|
16
|
+
hoveredYear?: Date;
|
|
17
|
+
monthsModel?: DaysCalendarModel[];
|
|
18
|
+
formattedMonths?: DaysCalendarViewModel[];
|
|
19
|
+
flaggedMonths?: DaysCalendarViewModel[];
|
|
20
|
+
preventChangeToNextMonth?: boolean;
|
|
21
|
+
monthsCalendar?: MonthsCalendarViewModel[];
|
|
22
|
+
flaggedMonthsCalendar?: MonthsCalendarViewModel[];
|
|
23
|
+
yearsCalendarModel?: YearsCalendarViewModel[];
|
|
24
|
+
yearsCalendarFlagged?: YearsCalendarViewModel[];
|
|
25
|
+
monthViewOptions?: MonthViewOptions;
|
|
26
|
+
displayMonths: number;
|
|
27
|
+
locale?: string;
|
|
28
|
+
monthTitle?: string;
|
|
29
|
+
yearTitle?: string;
|
|
30
|
+
dayLabel?: string;
|
|
31
|
+
monthLabel?: string;
|
|
32
|
+
yearLabel?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const initialDatepickerState: BsDatepickerState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MiniStore } from 'ngx-bootstrap/mini-ngrx';
|
|
2
|
+
import { BsDatepickerState } from './bs-datepicker.state';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BsDatepickerStore extends MiniStore<BsDatepickerState> {
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerStore, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsDatepickerStore>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BsDatepickerState } from '../reducer/bs-datepicker.state';
|
|
2
|
+
export declare function getStartingDayOfCalendar(date: Date, options: {
|
|
3
|
+
firstDayOfWeek?: number;
|
|
4
|
+
}): Date;
|
|
5
|
+
export declare function calculateDateOffset(weekday: number, startingDayOffset?: number): number;
|
|
6
|
+
export declare function isMonthDisabled(date: Date, min?: Date, max?: Date): boolean;
|
|
7
|
+
export declare function isYearDisabled(date: Date, min?: Date, max?: Date): boolean;
|
|
8
|
+
export declare function getYearsCalendarInitialDate(state: BsDatepickerState, calendarIndex?: number): Date | undefined;
|
|
9
|
+
export declare function checkRangesWithMaxDate(ranges?: BsCustomDates[], maxDate?: Date): BsCustomDates[] | undefined;
|
|
10
|
+
export declare function checkBsValue(date?: Array<Date> | Date | (Date | undefined)[], maxDate?: Date): Array<Date> | Date | (Date | undefined)[] | undefined;
|
|
11
|
+
export interface BsCustomDates {
|
|
12
|
+
value: Date | Date[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TimeUnit } from 'ngx-bootstrap/chronos';
|
|
2
|
+
export type CreateMatrixCb<T> = (date: Date) => T;
|
|
3
|
+
export interface MatrixOptions {
|
|
4
|
+
height: number;
|
|
5
|
+
width: number;
|
|
6
|
+
initialDate: Date;
|
|
7
|
+
shift: TimeUnit;
|
|
8
|
+
}
|
|
9
|
+
export declare function createMatrix<T>(options: MatrixOptions, fn: CreateMatrixCb<T>): T[][];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BsDatepickerViewMode } from "./datepicker/models";
|
|
3
|
+
import { BsDatepickerConfig } from "./datepicker/bs-datepicker.config";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GravityCalendarV2Component implements OnInit, OnChanges {
|
|
6
|
+
clearable: boolean;
|
|
7
|
+
currentLang: string;
|
|
8
|
+
cypressTag: string;
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isReadonly: boolean;
|
|
12
|
+
label: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
supportText: string;
|
|
16
|
+
size: 'sm' | 'md';
|
|
17
|
+
width: 'short' | 'medium' | 'full' | 'fit';
|
|
18
|
+
calendarType: BsDatepickerViewMode;
|
|
19
|
+
calendarMode: 'single' | 'double';
|
|
20
|
+
selectionMode: 'date' | 'range';
|
|
21
|
+
customDate?: Date;
|
|
22
|
+
customDates?: Date[];
|
|
23
|
+
calendarResponse: EventEmitter<Date[] | Date>;
|
|
24
|
+
calendarConfiguration: Partial<BsDatepickerConfig>;
|
|
25
|
+
readonly elementId: string;
|
|
26
|
+
displayRangePicker: boolean;
|
|
27
|
+
focusInput: boolean;
|
|
28
|
+
isMobile: boolean;
|
|
29
|
+
inputLabel: string;
|
|
30
|
+
maxDate: Date;
|
|
31
|
+
minDate: Date;
|
|
32
|
+
selectedDate: Date;
|
|
33
|
+
selectedDates: Date[];
|
|
34
|
+
showMobileCalendar: boolean;
|
|
35
|
+
constructor();
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
+
private updateConfig;
|
|
39
|
+
updateSelectedDate($event: Date | Date[]): void;
|
|
40
|
+
resetCalendar(): void;
|
|
41
|
+
getGtCalendarContainer(): string;
|
|
42
|
+
getStatus(): string;
|
|
43
|
+
private formatDate;
|
|
44
|
+
private onResize;
|
|
45
|
+
openMobileCalendar(): void;
|
|
46
|
+
closeMobileCalendar(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GravityCalendarV2Component, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GravityCalendarV2Component, "gravity-calendar-v2", never, { "clearable": { "alias": "clearable"; "required": false; }; "currentLang": { "alias": "currentLang"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "supportText": { "alias": "supportText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "width": { "alias": "width"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "calendarMode": { "alias": "calendarMode"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "customDate": { "alias": "customDate"; "required": false; }; "customDates": { "alias": "customDates"; "required": false; }; }, { "calendarResponse": "response"; }, never, never, false, never>;
|
|
49
|
+
}
|
|
@@ -2,36 +2,50 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./components/gravity-attach-file/gravity-attach-file.component";
|
|
3
3
|
import * as i2 from "./components/gravity-button/gravity-button.component";
|
|
4
4
|
import * as i3 from "./components/gravity-calendar/gravity-calendar.component";
|
|
5
|
-
import * as i4 from "./components/gravity-
|
|
6
|
-
import * as i5 from "./components/gravity-
|
|
7
|
-
import * as i6 from "./components/gravity-
|
|
8
|
-
import * as i7 from "./components/gravity-
|
|
9
|
-
import * as i8 from "./components/gravity-icon/gravity-icon.component";
|
|
10
|
-
import * as i9 from "./components/gravity-
|
|
11
|
-
import * as i10 from "./components/gravity-notification
|
|
12
|
-
import * as i11 from "./components/gravity-
|
|
13
|
-
import * as i12 from "./components/gravity-
|
|
14
|
-
import * as i13 from "./components/gravity-
|
|
15
|
-
import * as i14 from "./components/gravity-
|
|
16
|
-
import * as i15 from "./components/gravity-
|
|
17
|
-
import * as i16 from "./components/gravity-
|
|
18
|
-
import * as i17 from "./components/gravity-
|
|
19
|
-
import * as i18 from "./components/gravity-text-field
|
|
20
|
-
import * as i19 from "./components/gravity-
|
|
21
|
-
import * as i20 from "./components/gravity-tree-view/
|
|
22
|
-
import * as i21 from "./components/gravity-tree-view/node/node
|
|
23
|
-
import * as i22 from "./components/gravity-tree-view/node/node-
|
|
24
|
-
import * as i23 from "./components/gravity-tree-view/node/node-
|
|
25
|
-
import * as i24 from "./components/gravity-
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "
|
|
5
|
+
import * as i4 from "./components/gravity-calendar-v2/gravity-calendar-v2.component";
|
|
6
|
+
import * as i5 from "./components/gravity-checkbox/gravity-checkbox.component";
|
|
7
|
+
import * as i6 from "./components/gravity-dialog/gravity-dialog.component";
|
|
8
|
+
import * as i7 from "./components/gravity-dropdown-list/gravity-dropdown-list.component";
|
|
9
|
+
import * as i8 from "./components/gravity-icon-button/gravity-icon-button.component";
|
|
10
|
+
import * as i9 from "./components/gravity-icon/gravity-icon.component";
|
|
11
|
+
import * as i10 from "./components/gravity-notification/gravity-notification.component";
|
|
12
|
+
import * as i11 from "./components/gravity-notification-instant/gravity-notification-instant-container.component";
|
|
13
|
+
import * as i12 from "./components/gravity-offcanvas/gravity-offcanvas.component";
|
|
14
|
+
import * as i13 from "./components/gravity-radio-button/gravity-radio-button.component";
|
|
15
|
+
import * as i14 from "./components/gravity-status-indicator/gravity-status-indicator.component";
|
|
16
|
+
import * as i15 from "./components/gravity-stepper/gravity-stepper.component";
|
|
17
|
+
import * as i16 from "./components/gravity-switch/gravity-switch.component";
|
|
18
|
+
import * as i17 from "./components/gravity-table/gravity-table.component";
|
|
19
|
+
import * as i18 from "./components/gravity-text-field/gravity-text-field.component";
|
|
20
|
+
import * as i19 from "./components/gravity-text-field-number-only/gravity-text-field-number-only.component";
|
|
21
|
+
import * as i20 from "./components/gravity-tree-view/gravity-tree-view.component";
|
|
22
|
+
import * as i21 from "./components/gravity-tree-view/node/node.component";
|
|
23
|
+
import * as i22 from "./components/gravity-tree-view/node/node-toggle/node-toggle.component";
|
|
24
|
+
import * as i23 from "./components/gravity-tree-view/node/node-checkbox/node-checkbox.component";
|
|
25
|
+
import * as i24 from "./components/gravity-tree-view/node/node-name/node-name.component";
|
|
26
|
+
import * as i25 from "./components/gravity-dropdown-list/filter-by.pipe";
|
|
27
|
+
import * as i26 from "./components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-datepicker-day-decorator.directive";
|
|
28
|
+
import * as i27 from "./components/gravity-calendar-v2/datepicker/components/bs-datepicker-navigation-view/bs-datepicker-navigation-view.component";
|
|
29
|
+
import * as i28 from "./components/gravity-calendar-v2/datepicker/components/bs-days-calendar-view/bs-days-calendar-view.component";
|
|
30
|
+
import * as i29 from "./components/gravity-calendar-v2/datepicker/components/bs-months-calendar-view/bs-months-calendar-view.component";
|
|
31
|
+
import * as i30 from "./components/gravity-calendar-v2/datepicker/components/bs-years-calendar-view/bs-years-calendar-view.component";
|
|
32
|
+
import * as i31 from "./components/gravity-calendar-v2/datepicker/components/bs-datepicker-container.component";
|
|
33
|
+
import * as i32 from "./components/gravity-calendar-v2/datepicker/bs-datepicker.component";
|
|
34
|
+
import * as i33 from "./components/gravity-calendar-v2/datepicker/components/bs-datepicker-inline-container.component";
|
|
35
|
+
import * as i34 from "./components/gravity-calendar-v2/datepicker/bs-datepicker-inline.component";
|
|
36
|
+
import * as i35 from "./components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-container.component";
|
|
37
|
+
import * as i36 from "./components/gravity-calendar-v2/datepicker/bs-daterangepicker.component";
|
|
38
|
+
import * as i37 from "./components/gravity-calendar-v2/datepicker/components/bs-daterangepicker-inline-container.component";
|
|
39
|
+
import * as i38 from "./components/gravity-calendar-v2/datepicker/bs-daterangepicker-inline.component";
|
|
40
|
+
import * as i39 from "angular-svg-icon";
|
|
41
|
+
import * as i40 from "angular-svg-icon-preloader";
|
|
42
|
+
import * as i41 from "ngx-bootstrap/datepicker";
|
|
43
|
+
import * as i42 from "@angular/common";
|
|
44
|
+
import * as i43 from "@angular/forms";
|
|
45
|
+
import * as i44 from "./vendor/gravity-tooltip/gravity-tooltip.module";
|
|
46
|
+
import * as i45 from "@ng-bootstrap/ng-bootstrap";
|
|
33
47
|
export declare class GravityDesignSystemModule {
|
|
34
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<GravityDesignSystemModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityAttachFileComponent, typeof i2.GravityButtonComponent, typeof i3.GravityCalendarComponent, typeof i4.
|
|
49
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GravityDesignSystemModule, [typeof i1.GravityAttachFileComponent, typeof i2.GravityButtonComponent, typeof i3.GravityCalendarComponent, typeof i4.GravityCalendarV2Component, typeof i5.GravityCheckboxComponent, typeof i6.GravityDialogComponent, typeof i7.GravityDropdownListComponent, typeof i8.GravityIconButtonComponent, typeof i9.GravityIconComponent, typeof i10.GravityNotificationComponent, typeof i11.GravityNotificationInstantContainerComponent, typeof i12.GravityOffcanvasComponent, typeof i13.GravityRadioButtonComponent, typeof i14.GravityStatusIndicatorComponent, typeof i15.GravityStepperComponent, typeof i16.GravitySwitchComponent, typeof i17.GravityTableComponent, typeof i18.GravityTextFieldComponent, typeof i19.GravityTextFieldNumberOnlyComponent, typeof i20.GravityTreeViewComponent, typeof i21.NodeComponent, typeof i22.NodeToggleComponent, typeof i23.NodeCheckboxComponent, typeof i24.NodeNameComponent, typeof i25.FilterByPipe, typeof i26.BsDatepickerDayDecoratorComponent, typeof i27.BsDatepickerNavigationViewComponent, typeof i28.BsDaysCalendarViewComponent, typeof i29.BsMonthCalendarViewComponent, typeof i30.BsYearsCalendarViewComponent, typeof i31.BsDatepickerContainerComponent, typeof i32.BsDatepickerDirective, typeof i33.BsDatepickerInlineContainerComponent, typeof i34.BsDatepickerInlineDirective, typeof i35.BsDaterangepickerContainerComponent, typeof i36.BsDaterangepickerDirective, typeof i37.BsDaterangepickerInlineContainerComponent, typeof i38.BsDaterangepickerInlineDirective], [typeof i39.AngularSvgIconModule, typeof i40.AngularSvgIconPreloaderModule, typeof i41.BsDatepickerModule, typeof i42.CommonModule, typeof i43.FormsModule, typeof i44.GravityTooltipModule, typeof i45.NgbDatepickerModule, typeof i45.NgbOffcanvasModule, typeof i45.NgbProgressbarModule, typeof i45.NgbToastModule, typeof i43.ReactiveFormsModule], [typeof i1.GravityAttachFileComponent, typeof i2.GravityButtonComponent, typeof i3.GravityCalendarComponent, typeof i4.GravityCalendarV2Component, typeof i5.GravityCheckboxComponent, typeof i6.GravityDialogComponent, typeof i7.GravityDropdownListComponent, typeof i8.GravityIconButtonComponent, typeof i9.GravityIconComponent, typeof i11.GravityNotificationInstantContainerComponent, typeof i12.GravityOffcanvasComponent, typeof i13.GravityRadioButtonComponent, typeof i14.GravityStatusIndicatorComponent, typeof i15.GravityStepperComponent, typeof i16.GravitySwitchComponent, typeof i17.GravityTableComponent, typeof i18.GravityTextFieldComponent, typeof i19.GravityTextFieldNumberOnlyComponent, typeof i44.GravityTooltipModule, typeof i20.GravityTreeViewComponent]>;
|
|
36
50
|
static ɵinj: i0.ɵɵInjectorDeclaration<GravityDesignSystemModule>;
|
|
37
51
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/gravity-design-system.module';
|
|
|
2
2
|
export * from './lib/components/gravity-attach-file/gravity-attach-file.component';
|
|
3
3
|
export * from './lib/components/gravity-button/gravity-button.component';
|
|
4
4
|
export * from './lib/components/gravity-calendar/gravity-calendar.component';
|
|
5
|
+
export * from './lib/components/gravity-calendar-v2/gravity-calendar-v2.component';
|
|
5
6
|
export * from './lib/components/gravity-checkbox/gravity-checkbox.component';
|
|
6
7
|
export * from './lib/components/gravity-dialog/gravity-dialog.component';
|
|
7
8
|
export * from './lib/components/gravity-dropdown-list/gravity-dropdown-list.component';
|
|
@@ -20,3 +21,4 @@ export * from './lib/components/gravity-tree-view/gravity-tree-view.component';
|
|
|
20
21
|
export * from './lib/services/gravity-dialog-manager.service';
|
|
21
22
|
export * from './lib/vendor/gravity-tooltip';
|
|
22
23
|
export * from './lib/components/gravity-notification/gravity-notification-content.interface';
|
|
24
|
+
export * from './lib/components/gravity-calendar-v2/datepicker/models';
|