@indigina/ui-kit 1.1.29 → 1.1.30
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/kit-datepicker/kit-datepicker.component.mjs +117 -0
- package/esm2022/lib/components/kit-datepicker/kit-datepicker.module.mjs +40 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/indigina-ui-kit.mjs +141 -1
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-datepicker/kit-datepicker.component.d.ts +77 -0
- package/lib/components/kit-datepicker/kit-datepicker.module.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
5
|
+
import { PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
6
|
+
import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class KitDatepickerComponent implements ControlValueAccessor {
|
|
9
|
+
private elementRef;
|
|
10
|
+
private document;
|
|
11
|
+
/**
|
|
12
|
+
* Defines a value that is going to be applied as a datepicker placeholder
|
|
13
|
+
*/
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Defines a value that is going to be applied as a datepicker label
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines a value that is going to be applied as a default datepicker value
|
|
21
|
+
*/
|
|
22
|
+
defaultDate?: Date;
|
|
23
|
+
/**
|
|
24
|
+
* Defines whether the component will be in disabled state
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Defines a value that is going to be applied as a datepicker format
|
|
29
|
+
*/
|
|
30
|
+
format: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the smallest valid date
|
|
33
|
+
*/
|
|
34
|
+
min?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the biggest valid date
|
|
37
|
+
*/
|
|
38
|
+
max?: Date;
|
|
39
|
+
/**
|
|
40
|
+
* Defines an icon which will be used to the left of the info message
|
|
41
|
+
*/
|
|
42
|
+
messageIcon?: KitSvgIcon;
|
|
43
|
+
/**
|
|
44
|
+
* Defines a value which going to be an info message text
|
|
45
|
+
*/
|
|
46
|
+
messageText?: string;
|
|
47
|
+
/**
|
|
48
|
+
* An action which is emitted when datepicker value changed
|
|
49
|
+
*/
|
|
50
|
+
changed: EventEmitter<Date>;
|
|
51
|
+
/**
|
|
52
|
+
* Defines a reference of the DatePicker component
|
|
53
|
+
*/
|
|
54
|
+
datepicker: DatePickerComponent;
|
|
55
|
+
/**
|
|
56
|
+
* Defines settings for datepicker popup
|
|
57
|
+
*/
|
|
58
|
+
readonly datepickerPopupSettings: PopupSettings;
|
|
59
|
+
/**
|
|
60
|
+
* An icon which will be used in a datepicker toggle button
|
|
61
|
+
*/
|
|
62
|
+
readonly calendarIcon: KitSvgIcon;
|
|
63
|
+
constructor(elementRef: ElementRef, document: Document);
|
|
64
|
+
documentClick(event: Event): void;
|
|
65
|
+
onValueChange(value: Date): void;
|
|
66
|
+
onPopupToggle(): void;
|
|
67
|
+
onBlur(): void;
|
|
68
|
+
onClose(event: PreventableEvent): void;
|
|
69
|
+
onChange: (value: Date) => void;
|
|
70
|
+
onTouched: () => void;
|
|
71
|
+
writeValue(value: string): void;
|
|
72
|
+
registerOnChange(fn: (_: Date) => void): void;
|
|
73
|
+
registerOnTouched(fn: () => void): void;
|
|
74
|
+
setDisabledState(disabled: boolean): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitDatepickerComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDatepickerComponent, "kit-datepicker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "format": { "alias": "format"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-datepicker.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@progress/kendo-angular-dateinputs";
|
|
5
|
+
import * as i4 from "../kit-input-label/kit-input-label.module";
|
|
6
|
+
import * as i5 from "../kit-input-message/kit-input-message.module";
|
|
7
|
+
import * as i6 from "../kit-svg-icon/kit-svg-icon.module";
|
|
8
|
+
export declare class KitDatepickerModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitDatepickerModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitDatepickerModule, [typeof i1.KitDatepickerComponent], [typeof i2.CommonModule, typeof i3.DateInputsModule, typeof i4.KitInputLabelModule, typeof i5.KitInputMessageModule, typeof i6.KitSvgIconModule], [typeof i1.KitDatepickerComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitDatepickerModule>;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -101,3 +101,5 @@ export { KitPopupComponent } from './lib/components/kit-popup/kit-popup.componen
|
|
|
101
101
|
export { KitPopupDirective } from './lib/components/kit-popup/kit-popup.directive';
|
|
102
102
|
export { KitInputLabelModule } from './lib/components/kit-input-label/kit-input-label.module';
|
|
103
103
|
export { KitInputLabelComponent } from './lib/components/kit-input-label/kit-input-label.component';
|
|
104
|
+
export { KitDatepickerModule } from './lib/components/kit-datepicker/kit-datepicker.module';
|
|
105
|
+
export { KitDatepickerComponent } from './lib/components/kit-datepicker/kit-datepicker.component';
|