@rivet-health/design-system 40.2.0 → 40.4.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/esm2020/lib/input/date/date.component.mjs +147 -17
- package/esm2020/lib/notification/banner/banner.component.mjs +2 -2
- package/esm2020/lib/table/table/table-search-columns/table-search-columns.component.mjs +2 -2
- package/fesm2015/rivet-health-design-system.mjs +148 -17
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +147 -17
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/input/date/date.component.d.ts +24 -2
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { InputLabelComponent } from '../input-label/input-label.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DateComponent extends InputLabelComponent {
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
private readonly host;
|
|
6
8
|
min: Date;
|
|
7
9
|
max: Date;
|
|
8
10
|
set value(v: Date | undefined);
|
|
@@ -12,17 +14,37 @@ export declare class DateComponent extends InputLabelComponent {
|
|
|
12
14
|
disabled: boolean;
|
|
13
15
|
size: DateComponent.Size;
|
|
14
16
|
showClearButton: boolean;
|
|
17
|
+
showTodayButton: boolean;
|
|
15
18
|
headerTemplate?: TemplateRef<void>;
|
|
16
19
|
activeYearMonth: Date;
|
|
17
20
|
readonly open$: BehaviorSubject<boolean>;
|
|
18
21
|
set open(v: boolean);
|
|
19
22
|
get open(): boolean;
|
|
20
23
|
valueChange: EventEmitter<Date | undefined>;
|
|
24
|
+
inputText: string;
|
|
25
|
+
previewValue?: Date;
|
|
26
|
+
private hasFocus;
|
|
27
|
+
private readonly datePipe;
|
|
28
|
+
constructor(cdr: ChangeDetectorRef, host: ElementRef<HTMLElement>);
|
|
29
|
+
onDocumentMouseDown(target: EventTarget | null): void;
|
|
21
30
|
clearValue(): void;
|
|
31
|
+
selectToday(): void;
|
|
32
|
+
get isTodaySelectable(): boolean;
|
|
33
|
+
onInputChange(value: string): void;
|
|
34
|
+
onInputBlur(event?: FocusEvent): void;
|
|
35
|
+
onDateSelect(date: Date): void;
|
|
36
|
+
onInputFocus(): void;
|
|
37
|
+
toggleCalendar(): void;
|
|
38
|
+
private formatValue;
|
|
39
|
+
private parseInput;
|
|
40
|
+
private setActiveMonth;
|
|
41
|
+
private commit;
|
|
22
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "riv-date", never, { "min": "min"; "max": "max"; "value": "value"; "placeholder": "placeholder"; "disabled": "disabled"; "size": "size"; "showClearButton": "showClearButton"; "open": "open"; }, { "valueChange": "valueChange"; }, ["headerTemplate"], never, false>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "riv-date", never, { "min": "min"; "max": "max"; "value": "value"; "placeholder": "placeholder"; "disabled": "disabled"; "size": "size"; "showClearButton": "showClearButton"; "showTodayButton": "showTodayButton"; "open": "open"; }, { "valueChange": "valueChange"; }, ["headerTemplate"], never, false>;
|
|
24
44
|
}
|
|
25
45
|
export declare namespace DateComponent {
|
|
26
46
|
const Sizes: readonly ["xsmall", "small", "medium", "large", "xlarge"];
|
|
27
47
|
type Size = (typeof Sizes)[number];
|
|
48
|
+
function parseDate(input: string): Date | undefined;
|
|
49
|
+
function isValidDate(date: Date, min: Date, max: Date): boolean;
|
|
28
50
|
}
|