dasar-ui 2.2.2 → 2.3.0
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/fesm2022/dasar-ui.mjs +141 -22
- package/fesm2022/dasar-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dasar-ui.d.ts +260 -226
package/package.json
CHANGED
package/types/dasar-ui.d.ts
CHANGED
|
@@ -2034,6 +2034,253 @@ export declare class DasarPivotTable implements OnChanges {
|
|
|
2034
2034
|
}, ["rowHeaderTemplate", "colHeaderTemplate", "cellTemplate", "providedHeader", "providedBody", "providedEmpty", "providedPagination", "providedExpanded"], never, true, never>;
|
|
2035
2035
|
}
|
|
2036
2036
|
export declare const DasarPivotTableComponent: readonly [typeof DasarPivotTable, typeof DasarPivotCellTemplate, typeof DasarPivotRowHeaderTemplate, typeof DasarPivotColHeaderTemplate, typeof DasarPivotTableHeaderSlot, typeof DasarPivotTableBodySlot, typeof DasarPivotTableEmptySlot, typeof DasarPivotTablePaginationSlot, typeof DasarPivotTableExpandedSlot];
|
|
2037
|
+
export type DasarCalendarSizeType = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
2038
|
+
export type DasarCalendarAppearance = 'outline' | 'borderless';
|
|
2039
|
+
export type DasarCalendarVariant = 'dashboard' | 'dropdown';
|
|
2040
|
+
export type DasarCalendarRadius = ScaleAttributeType$1;
|
|
2041
|
+
export interface DasarCalendarConfig {
|
|
2042
|
+
appearance?: 'outline' | 'borderless';
|
|
2043
|
+
variant?: 'dashboard' | 'dropdown';
|
|
2044
|
+
size?: DasarCalendarSizeType;
|
|
2045
|
+
radius?: DasarCalendarRadius;
|
|
2046
|
+
containerStyle?: StyleType;
|
|
2047
|
+
containerClass?: ClassType;
|
|
2048
|
+
headerClass?: ClassType;
|
|
2049
|
+
headerStyle?: StyleType;
|
|
2050
|
+
hideFullDate?: boolean;
|
|
2051
|
+
weekdayFormat?: string;
|
|
2052
|
+
headerFormat?: string;
|
|
2053
|
+
valueFormat?: string;
|
|
2054
|
+
hideHeader?: boolean;
|
|
2055
|
+
fullWidth?: boolean;
|
|
2056
|
+
disabled?: boolean;
|
|
2057
|
+
locale?: string;
|
|
2058
|
+
range?: boolean;
|
|
2059
|
+
}
|
|
2060
|
+
export type DasarCalendarRange = [Date | null, Date | null];
|
|
2061
|
+
interface CalendarDay {
|
|
2062
|
+
isCurrentMonth: boolean;
|
|
2063
|
+
weekdayStr?: string;
|
|
2064
|
+
fullDateStr: string;
|
|
2065
|
+
isSelected: boolean;
|
|
2066
|
+
isRangeStart: boolean;
|
|
2067
|
+
isRangeEnd: boolean;
|
|
2068
|
+
isInRange: boolean;
|
|
2069
|
+
dayNumber: number;
|
|
2070
|
+
isToday: boolean;
|
|
2071
|
+
date: Date;
|
|
2072
|
+
}
|
|
2073
|
+
export declare class DasarCalendarHeaderTemplate {
|
|
2074
|
+
templateRef: TemplateRef<any>;
|
|
2075
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2076
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarHeaderTemplate, never>;
|
|
2077
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarHeaderTemplate, "[calendar-header-template]", never, {}, {}, never, never, true, never>;
|
|
2078
|
+
}
|
|
2079
|
+
export declare class DasarCalendarPrevYearTemplate {
|
|
2080
|
+
templateRef: TemplateRef<any>;
|
|
2081
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2082
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarPrevYearTemplate, never>;
|
|
2083
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarPrevYearTemplate, "[calendar-prev-year-template]", never, {}, {}, never, never, true, never>;
|
|
2084
|
+
}
|
|
2085
|
+
export declare class DasarCalendarPrevMonthTemplate {
|
|
2086
|
+
templateRef: TemplateRef<any>;
|
|
2087
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2088
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarPrevMonthTemplate, never>;
|
|
2089
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarPrevMonthTemplate, "[calendar-prev-month-template]", never, {}, {}, never, never, true, never>;
|
|
2090
|
+
}
|
|
2091
|
+
export declare class DasarCalendarTodayTemplate {
|
|
2092
|
+
templateRef: TemplateRef<any>;
|
|
2093
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarTodayTemplate, never>;
|
|
2095
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarTodayTemplate, "[calendar-today-template]", never, {}, {}, never, never, true, never>;
|
|
2096
|
+
}
|
|
2097
|
+
export declare class DasarCalendarNextMonthTemplate {
|
|
2098
|
+
templateRef: TemplateRef<any>;
|
|
2099
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarNextMonthTemplate, never>;
|
|
2101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarNextMonthTemplate, "[calendar-next-month-template]", never, {}, {}, never, never, true, never>;
|
|
2102
|
+
}
|
|
2103
|
+
export declare class DasarCalendarNextYearTemplate {
|
|
2104
|
+
templateRef: TemplateRef<any>;
|
|
2105
|
+
constructor(templateRef: TemplateRef<any>);
|
|
2106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarNextYearTemplate, never>;
|
|
2107
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarNextYearTemplate, "[calendar-next-year-template]", never, {}, {}, never, never, true, never>;
|
|
2108
|
+
}
|
|
2109
|
+
export declare class DasarCalendarFooterSlot {
|
|
2110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarFooterSlot, never>;
|
|
2111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarFooterSlot, "[calendar-footer-slot]", never, {}, {}, never, never, true, never>;
|
|
2112
|
+
}
|
|
2113
|
+
export declare class DasarCalendar implements OnInit, OnChanges, ControlValueAccessor {
|
|
2114
|
+
prevMonthTemplate?: DasarCalendarPrevMonthTemplate;
|
|
2115
|
+
nextMonthTemplate?: DasarCalendarNextMonthTemplate;
|
|
2116
|
+
prevYearTemplate?: DasarCalendarPrevYearTemplate;
|
|
2117
|
+
nextYearTemplate?: DasarCalendarNextYearTemplate;
|
|
2118
|
+
headerTemplate?: DasarCalendarHeaderTemplate;
|
|
2119
|
+
todayTemplate?: DasarCalendarTodayTemplate;
|
|
2120
|
+
footerSlot?: DasarCalendarFooterSlot;
|
|
2121
|
+
private themeProvider;
|
|
2122
|
+
private themeService;
|
|
2123
|
+
headerFormat: string;
|
|
2124
|
+
valueFormat: string;
|
|
2125
|
+
size: NonNullable<import("dasar-ui").DasarSelectSizeType | undefined>;
|
|
2126
|
+
weekdayFormat: string;
|
|
2127
|
+
locale: string;
|
|
2128
|
+
appearance: NonNullable<"outline" | "borderless" | undefined>;
|
|
2129
|
+
variant: NonNullable<"dashboard" | "dropdown" | undefined>;
|
|
2130
|
+
radius: NonNullable<ScaleAttributeType$1 | undefined>;
|
|
2131
|
+
containerStyle: NonNullable<StyleType | undefined> | null;
|
|
2132
|
+
containerClass: NonNullable<ClassType> | null;
|
|
2133
|
+
headerClass: NonNullable<ClassType> | null;
|
|
2134
|
+
headerStyle: NonNullable<StyleType | undefined> | null;
|
|
2135
|
+
disabled: NonNullable<boolean | undefined>;
|
|
2136
|
+
hideHeader: NonNullable<boolean | undefined>;
|
|
2137
|
+
fullWidth: NonNullable<boolean | undefined>;
|
|
2138
|
+
hideFullDate: NonNullable<boolean | undefined>;
|
|
2139
|
+
range: NonNullable<boolean | undefined>;
|
|
2140
|
+
onMonthChange: EventEmitter<Date>;
|
|
2141
|
+
onYearChange: EventEmitter<Date>;
|
|
2142
|
+
onPrevMonthClick: EventEmitter<Date>;
|
|
2143
|
+
onNextMonthClick: EventEmitter<Date>;
|
|
2144
|
+
onPrevYearClick: EventEmitter<Date>;
|
|
2145
|
+
onNextYearClick: EventEmitter<Date>;
|
|
2146
|
+
onTodayClick: EventEmitter<Date>;
|
|
2147
|
+
readonly baseClass = true;
|
|
2148
|
+
get hasFullWidth(): boolean;
|
|
2149
|
+
private _value;
|
|
2150
|
+
private cdr;
|
|
2151
|
+
weekdays: string[];
|
|
2152
|
+
viewMode: 'days' | 'months' | 'years';
|
|
2153
|
+
currentViewDate: Date;
|
|
2154
|
+
calendarDays: CalendarDay[];
|
|
2155
|
+
onTouched: any;
|
|
2156
|
+
onChange: any;
|
|
2157
|
+
get value(): Date | null;
|
|
2158
|
+
set value(val: Date | null | string | number);
|
|
2159
|
+
valueChange: EventEmitter<Date | null>;
|
|
2160
|
+
private _rangeValue;
|
|
2161
|
+
get rangeValue(): DasarCalendarRange;
|
|
2162
|
+
set rangeValue(val: DasarCalendarRange | null | undefined);
|
|
2163
|
+
rangeValueChange: EventEmitter<DasarCalendarRange>;
|
|
2164
|
+
ngOnInit(): void;
|
|
2165
|
+
ngOnChanges(): void;
|
|
2166
|
+
get currentMonthYear(): string;
|
|
2167
|
+
get monthsList(): {
|
|
2168
|
+
name: string;
|
|
2169
|
+
index: number;
|
|
2170
|
+
}[];
|
|
2171
|
+
get yearsList(): number[];
|
|
2172
|
+
get localizedDropdownWeekdays(): string[];
|
|
2173
|
+
toggleViewMode(): void;
|
|
2174
|
+
selectMonth(monthIndex: number, event: Event): void;
|
|
2175
|
+
selectYear(year: number, event: Event): void;
|
|
2176
|
+
writeValue(value: any): void;
|
|
2177
|
+
registerOnChange(fn: any): void;
|
|
2178
|
+
registerOnTouched(fn: any): void;
|
|
2179
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2180
|
+
getTimeSafe(date: Date | null): number | null;
|
|
2181
|
+
changeMonth(offset: number, event?: Event): void;
|
|
2182
|
+
changeYear(offset: number, event?: Event): void;
|
|
2183
|
+
goToToday(event?: Event): void;
|
|
2184
|
+
selectDate(day: CalendarDay, event: Event): void;
|
|
2185
|
+
private selectRangeDate;
|
|
2186
|
+
generateCalendar(): void;
|
|
2187
|
+
private createCalendarDay;
|
|
2188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendar, never>;
|
|
2189
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DasarCalendar, "dasar-calendar", never, {
|
|
2190
|
+
"headerFormat": {
|
|
2191
|
+
"alias": "header-format";
|
|
2192
|
+
"required": false;
|
|
2193
|
+
};
|
|
2194
|
+
"valueFormat": {
|
|
2195
|
+
"alias": "value-format";
|
|
2196
|
+
"required": false;
|
|
2197
|
+
};
|
|
2198
|
+
"size": {
|
|
2199
|
+
"alias": "size";
|
|
2200
|
+
"required": false;
|
|
2201
|
+
};
|
|
2202
|
+
"weekdayFormat": {
|
|
2203
|
+
"alias": "weekday-format";
|
|
2204
|
+
"required": false;
|
|
2205
|
+
};
|
|
2206
|
+
"locale": {
|
|
2207
|
+
"alias": "locale";
|
|
2208
|
+
"required": false;
|
|
2209
|
+
};
|
|
2210
|
+
"appearance": {
|
|
2211
|
+
"alias": "appearance";
|
|
2212
|
+
"required": false;
|
|
2213
|
+
};
|
|
2214
|
+
"variant": {
|
|
2215
|
+
"alias": "variant";
|
|
2216
|
+
"required": false;
|
|
2217
|
+
};
|
|
2218
|
+
"radius": {
|
|
2219
|
+
"alias": "radius";
|
|
2220
|
+
"required": false;
|
|
2221
|
+
};
|
|
2222
|
+
"containerStyle": {
|
|
2223
|
+
"alias": "container-style";
|
|
2224
|
+
"required": false;
|
|
2225
|
+
};
|
|
2226
|
+
"containerClass": {
|
|
2227
|
+
"alias": "container-class";
|
|
2228
|
+
"required": false;
|
|
2229
|
+
};
|
|
2230
|
+
"headerClass": {
|
|
2231
|
+
"alias": "header-class";
|
|
2232
|
+
"required": false;
|
|
2233
|
+
};
|
|
2234
|
+
"headerStyle": {
|
|
2235
|
+
"alias": "header-style";
|
|
2236
|
+
"required": false;
|
|
2237
|
+
};
|
|
2238
|
+
"disabled": {
|
|
2239
|
+
"alias": "disabled";
|
|
2240
|
+
"required": false;
|
|
2241
|
+
};
|
|
2242
|
+
"hideHeader": {
|
|
2243
|
+
"alias": "hide-header";
|
|
2244
|
+
"required": false;
|
|
2245
|
+
};
|
|
2246
|
+
"fullWidth": {
|
|
2247
|
+
"alias": "full-width";
|
|
2248
|
+
"required": false;
|
|
2249
|
+
};
|
|
2250
|
+
"hideFullDate": {
|
|
2251
|
+
"alias": "hide-full-date";
|
|
2252
|
+
"required": false;
|
|
2253
|
+
};
|
|
2254
|
+
"range": {
|
|
2255
|
+
"alias": "range";
|
|
2256
|
+
"required": false;
|
|
2257
|
+
};
|
|
2258
|
+
"value": {
|
|
2259
|
+
"alias": "value";
|
|
2260
|
+
"required": false;
|
|
2261
|
+
};
|
|
2262
|
+
"rangeValue": {
|
|
2263
|
+
"alias": "rangeValue";
|
|
2264
|
+
"required": false;
|
|
2265
|
+
};
|
|
2266
|
+
}, {
|
|
2267
|
+
"onMonthChange": "onMonthChange";
|
|
2268
|
+
"onYearChange": "onYearChange";
|
|
2269
|
+
"onPrevMonthClick": "onPrevMonthClick";
|
|
2270
|
+
"onNextMonthClick": "onNextMonthClick";
|
|
2271
|
+
"onPrevYearClick": "onPrevYearClick";
|
|
2272
|
+
"onNextYearClick": "onNextYearClick";
|
|
2273
|
+
"onTodayClick": "onTodayClick";
|
|
2274
|
+
"valueChange": "valueChange";
|
|
2275
|
+
"rangeValueChange": "rangeValueChange";
|
|
2276
|
+
}, ["prevMonthTemplate", "nextMonthTemplate", "prevYearTemplate", "nextYearTemplate", "headerTemplate", "todayTemplate", "footerSlot"], ["[calendar-footer-slot]"], true, never>;
|
|
2277
|
+
static ngAcceptInputType_disabled: unknown;
|
|
2278
|
+
static ngAcceptInputType_hideHeader: unknown;
|
|
2279
|
+
static ngAcceptInputType_fullWidth: unknown;
|
|
2280
|
+
static ngAcceptInputType_hideFullDate: unknown;
|
|
2281
|
+
static ngAcceptInputType_range: unknown;
|
|
2282
|
+
}
|
|
2283
|
+
export declare const DasarCalendarComponent: readonly [typeof DasarCalendar, typeof DasarCalendarFooterSlot, typeof DasarCalendarHeaderTemplate, typeof DasarCalendarPrevYearTemplate, typeof DasarCalendarPrevMonthTemplate, typeof DasarCalendarTodayTemplate, typeof DasarCalendarNextMonthTemplate, typeof DasarCalendarNextYearTemplate];
|
|
2037
2284
|
export type DasarDatepickerPlacement = DasarPanelPlacement;
|
|
2038
2285
|
export type DasarDatepickerSize = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
2039
2286
|
export type DasarDatepickerAppearance = 'outline' | 'filled' | 'subtle';
|
|
@@ -2045,6 +2292,7 @@ export interface DasarDatepickerConfig {
|
|
|
2045
2292
|
disabled?: boolean;
|
|
2046
2293
|
fluid?: boolean;
|
|
2047
2294
|
error?: boolean;
|
|
2295
|
+
range?: boolean;
|
|
2048
2296
|
displayFormat?: string;
|
|
2049
2297
|
valueFormat?: string;
|
|
2050
2298
|
placement?: DasarDatepickerPlacement;
|
|
@@ -2139,6 +2387,7 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2139
2387
|
clearable: NonNullable<boolean | undefined>;
|
|
2140
2388
|
disabled: NonNullable<boolean | undefined>;
|
|
2141
2389
|
fluid: NonNullable<boolean | undefined>;
|
|
2390
|
+
range: NonNullable<boolean | undefined>;
|
|
2142
2391
|
error: NonNullable<boolean | undefined>;
|
|
2143
2392
|
valueChange: EventEmitter<any>;
|
|
2144
2393
|
onDateSelected: EventEmitter<any>;
|
|
@@ -2158,6 +2407,7 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2158
2407
|
get isDisabled(): boolean;
|
|
2159
2408
|
private _value;
|
|
2160
2409
|
internalDate: Date | null;
|
|
2410
|
+
internalRange: DasarCalendarRange;
|
|
2161
2411
|
isOpen: boolean;
|
|
2162
2412
|
private isFocused;
|
|
2163
2413
|
get value(): any;
|
|
@@ -2167,6 +2417,10 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2167
2417
|
ngOnInit(): void;
|
|
2168
2418
|
get hasLabelRow(): boolean;
|
|
2169
2419
|
get hasHintRow(): boolean;
|
|
2420
|
+
get hasValue(): boolean;
|
|
2421
|
+
get displayText(): string;
|
|
2422
|
+
private formatDisplayDate;
|
|
2423
|
+
private isSameValue;
|
|
2170
2424
|
get formattedDisplay(): string;
|
|
2171
2425
|
writeValue(value: any): void;
|
|
2172
2426
|
registerOnChange(fn: any): void;
|
|
@@ -2179,6 +2433,7 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2179
2433
|
toggleDropdown(event: Event): void;
|
|
2180
2434
|
private viewportListener;
|
|
2181
2435
|
clearValue(event: Event): void;
|
|
2436
|
+
onRangeSelect(range: DasarCalendarRange): void;
|
|
2182
2437
|
onCalendarSelect(date: Date | null): void;
|
|
2183
2438
|
private formatReturnValue;
|
|
2184
2439
|
private calculateSmartPlacement;
|
|
@@ -2296,6 +2551,10 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2296
2551
|
"alias": "fluid";
|
|
2297
2552
|
"required": false;
|
|
2298
2553
|
};
|
|
2554
|
+
"range": {
|
|
2555
|
+
"alias": "range";
|
|
2556
|
+
"required": false;
|
|
2557
|
+
};
|
|
2299
2558
|
"error": {
|
|
2300
2559
|
"alias": "error";
|
|
2301
2560
|
"required": false;
|
|
@@ -2323,235 +2582,10 @@ export declare class DasarDatepicker implements OnInit, ControlValueAccessor {
|
|
|
2323
2582
|
static ngAcceptInputType_clearable: unknown;
|
|
2324
2583
|
static ngAcceptInputType_disabled: unknown;
|
|
2325
2584
|
static ngAcceptInputType_fluid: unknown;
|
|
2585
|
+
static ngAcceptInputType_range: unknown;
|
|
2326
2586
|
static ngAcceptInputType_error: unknown;
|
|
2327
2587
|
}
|
|
2328
2588
|
export declare const DasarDatepickerComponent: readonly [typeof DasarDatepicker, typeof DasarDatepickerHintSlot, typeof DasarDatepickerLabelSlot, typeof DasarDatepickerExtraLabelSlot, typeof DasarDatepickerExtraHeaderSlot, typeof DasarDatepickerExtraFooterSlot, typeof DasarDatepickerPrefixSlot];
|
|
2329
|
-
export type DasarCalendarSizeType = Extract<ScaleAttributeType$1, 'sm' | 'md' | 'lg'>;
|
|
2330
|
-
export type DasarCalendarAppearance = 'outline' | 'borderless';
|
|
2331
|
-
export type DasarCalendarVariant = 'dashboard' | 'dropdown';
|
|
2332
|
-
export type DasarCalendarRadius = ScaleAttributeType$1;
|
|
2333
|
-
export interface DasarCalendarConfig {
|
|
2334
|
-
appearance?: 'outline' | 'borderless';
|
|
2335
|
-
variant?: 'dashboard' | 'dropdown';
|
|
2336
|
-
size?: DasarCalendarSizeType;
|
|
2337
|
-
radius?: DasarCalendarRadius;
|
|
2338
|
-
containerStyle?: StyleType;
|
|
2339
|
-
containerClass?: ClassType;
|
|
2340
|
-
headerClass?: ClassType;
|
|
2341
|
-
headerStyle?: StyleType;
|
|
2342
|
-
hideFullDate?: boolean;
|
|
2343
|
-
weekdayFormat?: string;
|
|
2344
|
-
headerFormat?: string;
|
|
2345
|
-
valueFormat?: string;
|
|
2346
|
-
hideHeader?: boolean;
|
|
2347
|
-
fullWidth?: boolean;
|
|
2348
|
-
disabled?: boolean;
|
|
2349
|
-
locale?: string;
|
|
2350
|
-
}
|
|
2351
|
-
interface CalendarDay {
|
|
2352
|
-
isCurrentMonth: boolean;
|
|
2353
|
-
weekdayStr?: string;
|
|
2354
|
-
fullDateStr: string;
|
|
2355
|
-
isSelected: boolean;
|
|
2356
|
-
dayNumber: number;
|
|
2357
|
-
isToday: boolean;
|
|
2358
|
-
date: Date;
|
|
2359
|
-
}
|
|
2360
|
-
export declare class DasarCalendarHeaderTemplate {
|
|
2361
|
-
templateRef: TemplateRef<any>;
|
|
2362
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2363
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarHeaderTemplate, never>;
|
|
2364
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarHeaderTemplate, "[calendar-header-template]", never, {}, {}, never, never, true, never>;
|
|
2365
|
-
}
|
|
2366
|
-
export declare class DasarCalendarPrevYearTemplate {
|
|
2367
|
-
templateRef: TemplateRef<any>;
|
|
2368
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2369
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarPrevYearTemplate, never>;
|
|
2370
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarPrevYearTemplate, "[calendar-prev-year-template]", never, {}, {}, never, never, true, never>;
|
|
2371
|
-
}
|
|
2372
|
-
export declare class DasarCalendarPrevMonthTemplate {
|
|
2373
|
-
templateRef: TemplateRef<any>;
|
|
2374
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2375
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarPrevMonthTemplate, never>;
|
|
2376
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarPrevMonthTemplate, "[calendar-prev-month-template]", never, {}, {}, never, never, true, never>;
|
|
2377
|
-
}
|
|
2378
|
-
export declare class DasarCalendarTodayTemplate {
|
|
2379
|
-
templateRef: TemplateRef<any>;
|
|
2380
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2381
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarTodayTemplate, never>;
|
|
2382
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarTodayTemplate, "[calendar-today-template]", never, {}, {}, never, never, true, never>;
|
|
2383
|
-
}
|
|
2384
|
-
export declare class DasarCalendarNextMonthTemplate {
|
|
2385
|
-
templateRef: TemplateRef<any>;
|
|
2386
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2387
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarNextMonthTemplate, never>;
|
|
2388
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarNextMonthTemplate, "[calendar-next-month-template]", never, {}, {}, never, never, true, never>;
|
|
2389
|
-
}
|
|
2390
|
-
export declare class DasarCalendarNextYearTemplate {
|
|
2391
|
-
templateRef: TemplateRef<any>;
|
|
2392
|
-
constructor(templateRef: TemplateRef<any>);
|
|
2393
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarNextYearTemplate, never>;
|
|
2394
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarNextYearTemplate, "[calendar-next-year-template]", never, {}, {}, never, never, true, never>;
|
|
2395
|
-
}
|
|
2396
|
-
export declare class DasarCalendarFooterSlot {
|
|
2397
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendarFooterSlot, never>;
|
|
2398
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DasarCalendarFooterSlot, "[calendar-footer-slot]", never, {}, {}, never, never, true, never>;
|
|
2399
|
-
}
|
|
2400
|
-
export declare class DasarCalendar implements OnInit, OnChanges, ControlValueAccessor {
|
|
2401
|
-
prevMonthTemplate?: DasarCalendarPrevMonthTemplate;
|
|
2402
|
-
nextMonthTemplate?: DasarCalendarNextMonthTemplate;
|
|
2403
|
-
prevYearTemplate?: DasarCalendarPrevYearTemplate;
|
|
2404
|
-
nextYearTemplate?: DasarCalendarNextYearTemplate;
|
|
2405
|
-
headerTemplate?: DasarCalendarHeaderTemplate;
|
|
2406
|
-
todayTemplate?: DasarCalendarTodayTemplate;
|
|
2407
|
-
footerSlot?: DasarCalendarFooterSlot;
|
|
2408
|
-
private themeProvider;
|
|
2409
|
-
private themeService;
|
|
2410
|
-
headerFormat: string;
|
|
2411
|
-
valueFormat: string;
|
|
2412
|
-
size: NonNullable<import("dasar-ui").DasarSelectSizeType | undefined>;
|
|
2413
|
-
weekdayFormat: string;
|
|
2414
|
-
locale: string;
|
|
2415
|
-
appearance: NonNullable<"outline" | "borderless" | undefined>;
|
|
2416
|
-
variant: NonNullable<"dashboard" | "dropdown" | undefined>;
|
|
2417
|
-
radius: NonNullable<ScaleAttributeType$1 | undefined>;
|
|
2418
|
-
containerStyle: NonNullable<StyleType | undefined> | null;
|
|
2419
|
-
containerClass: NonNullable<ClassType> | null;
|
|
2420
|
-
headerClass: NonNullable<ClassType> | null;
|
|
2421
|
-
headerStyle: NonNullable<StyleType | undefined> | null;
|
|
2422
|
-
disabled: NonNullable<boolean | undefined>;
|
|
2423
|
-
hideHeader: NonNullable<boolean | undefined>;
|
|
2424
|
-
fullWidth: NonNullable<boolean | undefined>;
|
|
2425
|
-
hideFullDate: NonNullable<boolean | undefined>;
|
|
2426
|
-
onMonthChange: EventEmitter<Date>;
|
|
2427
|
-
onYearChange: EventEmitter<Date>;
|
|
2428
|
-
onPrevMonthClick: EventEmitter<Date>;
|
|
2429
|
-
onNextMonthClick: EventEmitter<Date>;
|
|
2430
|
-
onPrevYearClick: EventEmitter<Date>;
|
|
2431
|
-
onNextYearClick: EventEmitter<Date>;
|
|
2432
|
-
onTodayClick: EventEmitter<Date>;
|
|
2433
|
-
readonly baseClass = true;
|
|
2434
|
-
get hasFullWidth(): boolean;
|
|
2435
|
-
private _value;
|
|
2436
|
-
private cdr;
|
|
2437
|
-
weekdays: string[];
|
|
2438
|
-
viewMode: 'days' | 'months' | 'years';
|
|
2439
|
-
currentViewDate: Date;
|
|
2440
|
-
calendarDays: CalendarDay[];
|
|
2441
|
-
onTouched: any;
|
|
2442
|
-
onChange: any;
|
|
2443
|
-
get value(): Date | null;
|
|
2444
|
-
set value(val: Date | null | string | number);
|
|
2445
|
-
valueChange: EventEmitter<Date | null>;
|
|
2446
|
-
ngOnInit(): void;
|
|
2447
|
-
ngOnChanges(): void;
|
|
2448
|
-
get currentMonthYear(): string;
|
|
2449
|
-
get monthsList(): {
|
|
2450
|
-
name: string;
|
|
2451
|
-
index: number;
|
|
2452
|
-
}[];
|
|
2453
|
-
get yearsList(): number[];
|
|
2454
|
-
get localizedDropdownWeekdays(): string[];
|
|
2455
|
-
toggleViewMode(): void;
|
|
2456
|
-
selectMonth(monthIndex: number, event: Event): void;
|
|
2457
|
-
selectYear(year: number, event: Event): void;
|
|
2458
|
-
writeValue(value: any): void;
|
|
2459
|
-
registerOnChange(fn: any): void;
|
|
2460
|
-
registerOnTouched(fn: any): void;
|
|
2461
|
-
setDisabledState(isDisabled: boolean): void;
|
|
2462
|
-
getTimeSafe(date: Date | null): number | null;
|
|
2463
|
-
changeMonth(offset: number, event?: Event): void;
|
|
2464
|
-
changeYear(offset: number, event?: Event): void;
|
|
2465
|
-
goToToday(event?: Event): void;
|
|
2466
|
-
selectDate(day: CalendarDay, event: Event): void;
|
|
2467
|
-
generateCalendar(): void;
|
|
2468
|
-
private createCalendarDay;
|
|
2469
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DasarCalendar, never>;
|
|
2470
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DasarCalendar, "dasar-calendar", never, {
|
|
2471
|
-
"headerFormat": {
|
|
2472
|
-
"alias": "header-format";
|
|
2473
|
-
"required": false;
|
|
2474
|
-
};
|
|
2475
|
-
"valueFormat": {
|
|
2476
|
-
"alias": "value-format";
|
|
2477
|
-
"required": false;
|
|
2478
|
-
};
|
|
2479
|
-
"size": {
|
|
2480
|
-
"alias": "size";
|
|
2481
|
-
"required": false;
|
|
2482
|
-
};
|
|
2483
|
-
"weekdayFormat": {
|
|
2484
|
-
"alias": "weekday-format";
|
|
2485
|
-
"required": false;
|
|
2486
|
-
};
|
|
2487
|
-
"locale": {
|
|
2488
|
-
"alias": "locale";
|
|
2489
|
-
"required": false;
|
|
2490
|
-
};
|
|
2491
|
-
"appearance": {
|
|
2492
|
-
"alias": "appearance";
|
|
2493
|
-
"required": false;
|
|
2494
|
-
};
|
|
2495
|
-
"variant": {
|
|
2496
|
-
"alias": "variant";
|
|
2497
|
-
"required": false;
|
|
2498
|
-
};
|
|
2499
|
-
"radius": {
|
|
2500
|
-
"alias": "radius";
|
|
2501
|
-
"required": false;
|
|
2502
|
-
};
|
|
2503
|
-
"containerStyle": {
|
|
2504
|
-
"alias": "container-style";
|
|
2505
|
-
"required": false;
|
|
2506
|
-
};
|
|
2507
|
-
"containerClass": {
|
|
2508
|
-
"alias": "container-class";
|
|
2509
|
-
"required": false;
|
|
2510
|
-
};
|
|
2511
|
-
"headerClass": {
|
|
2512
|
-
"alias": "header-class";
|
|
2513
|
-
"required": false;
|
|
2514
|
-
};
|
|
2515
|
-
"headerStyle": {
|
|
2516
|
-
"alias": "header-style";
|
|
2517
|
-
"required": false;
|
|
2518
|
-
};
|
|
2519
|
-
"disabled": {
|
|
2520
|
-
"alias": "disabled";
|
|
2521
|
-
"required": false;
|
|
2522
|
-
};
|
|
2523
|
-
"hideHeader": {
|
|
2524
|
-
"alias": "hide-header";
|
|
2525
|
-
"required": false;
|
|
2526
|
-
};
|
|
2527
|
-
"fullWidth": {
|
|
2528
|
-
"alias": "full-width";
|
|
2529
|
-
"required": false;
|
|
2530
|
-
};
|
|
2531
|
-
"hideFullDate": {
|
|
2532
|
-
"alias": "hide-full-date";
|
|
2533
|
-
"required": false;
|
|
2534
|
-
};
|
|
2535
|
-
"value": {
|
|
2536
|
-
"alias": "value";
|
|
2537
|
-
"required": false;
|
|
2538
|
-
};
|
|
2539
|
-
}, {
|
|
2540
|
-
"onMonthChange": "onMonthChange";
|
|
2541
|
-
"onYearChange": "onYearChange";
|
|
2542
|
-
"onPrevMonthClick": "onPrevMonthClick";
|
|
2543
|
-
"onNextMonthClick": "onNextMonthClick";
|
|
2544
|
-
"onPrevYearClick": "onPrevYearClick";
|
|
2545
|
-
"onNextYearClick": "onNextYearClick";
|
|
2546
|
-
"onTodayClick": "onTodayClick";
|
|
2547
|
-
"valueChange": "valueChange";
|
|
2548
|
-
}, ["prevMonthTemplate", "nextMonthTemplate", "prevYearTemplate", "nextYearTemplate", "headerTemplate", "todayTemplate", "footerSlot"], ["[calendar-footer-slot]"], true, never>;
|
|
2549
|
-
static ngAcceptInputType_disabled: unknown;
|
|
2550
|
-
static ngAcceptInputType_hideHeader: unknown;
|
|
2551
|
-
static ngAcceptInputType_fullWidth: unknown;
|
|
2552
|
-
static ngAcceptInputType_hideFullDate: unknown;
|
|
2553
|
-
}
|
|
2554
|
-
export declare const DasarCalendarComponent: readonly [typeof DasarCalendar, typeof DasarCalendarFooterSlot, typeof DasarCalendarHeaderTemplate, typeof DasarCalendarPrevYearTemplate, typeof DasarCalendarPrevMonthTemplate, typeof DasarCalendarTodayTemplate, typeof DasarCalendarNextMonthTemplate, typeof DasarCalendarNextYearTemplate];
|
|
2555
2589
|
export type DasarIconSizeType = ScaleAttributeType$1 | number;
|
|
2556
2590
|
export interface DasarIconConfig {
|
|
2557
2591
|
size?: DasarIconSizeType;
|