@gettrx/core-components-angular 0.0.57 → 0.0.59
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/generated/components.mjs +781 -0
- package/esm2022/generated/number-value-accessor.mjs +40 -0
- package/esm2022/generated/text-value-accessor.mjs +36 -0
- package/esm2022/generated/value-accessor.mjs +42 -0
- package/{esm2020 → esm2022}/gettrx-core-components-angular.mjs +2 -2
- package/{esm2020 → esm2022}/gettrx-module.mjs +5 -5
- package/esm2022/lib/atoms/badge/badge.component.mjs +73 -0
- package/esm2022/lib/atoms/badge/badge.module.mjs +19 -0
- package/esm2022/lib/atoms/badge/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/public_api.mjs +3 -0
- package/esm2022/lib/atoms/button/button-close.directive.mjs +36 -0
- package/esm2022/lib/atoms/button/button.directive.mjs +108 -0
- package/esm2022/lib/atoms/button/button.module.mjs +17 -0
- package/esm2022/lib/atoms/button/index.mjs +2 -0
- package/esm2022/lib/atoms/button/public_api.mjs +4 -0
- package/esm2022/lib/atoms/gtr.types.mjs +10 -0
- package/esm2022/lib/molecules/button/button-close.directive.mjs +36 -0
- package/esm2022/lib/molecules/button/button.directive.mjs +108 -0
- package/esm2022/lib/molecules/button/button.module.mjs +17 -0
- package/esm2022/lib/molecules/button/index.mjs +2 -0
- package/esm2022/lib/molecules/button/public_api.mjs +4 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +435 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +30 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +23 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +22 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +127 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +19 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +20 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +425 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +17 -0
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +21 -0
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +87 -0
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +55 -0
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +64 -0
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +296 -0
- package/esm2022/lib/molecules/calendar/index.mjs +2 -0
- package/esm2022/lib/molecules/calendar/public_api.mjs +5 -0
- package/esm2022/lib/molecules/core-components.types.mjs +10 -0
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +81 -0
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +58 -0
- package/esm2022/lib/molecules/date-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +739 -0
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +16 -0
- package/esm2022/lib/molecules/date-range-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/date-range-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +422 -0
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +88 -0
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +22 -0
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +107 -0
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +83 -0
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +56 -0
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +17 -0
- package/esm2022/lib/molecules/dropdown/index.mjs +2 -0
- package/esm2022/lib/molecules/dropdown/public_api.mjs +10 -0
- package/esm2022/lib/molecules/form/form/form.directive.mjs +31 -0
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +70 -0
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +75 -0
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +72 -0
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +41 -0
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +30 -0
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +39 -0
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +39 -0
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +22 -0
- package/esm2022/lib/molecules/form/form.module.mjs +75 -0
- package/esm2022/lib/molecules/form/index.mjs +2 -0
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +31 -0
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +23 -0
- package/esm2022/lib/molecules/form/public_api.mjs +14 -0
- package/esm2022/lib/molecules/shared/html-attr.directive.mjs +58 -0
- package/esm2022/lib/molecules/shared/index.mjs +2 -0
- package/esm2022/lib/molecules/shared/public_api.mjs +4 -0
- package/esm2022/lib/molecules/shared/shared.module.mjs +22 -0
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +22 -0
- package/esm2022/lib/molecules/time-picker/index.mjs +2 -0
- package/esm2022/lib/molecules/time-picker/public_api.mjs +3 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +113 -0
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +114 -0
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +555 -0
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +51 -0
- package/esm2022/lib/molecules/time-picker/time.utils.mjs +676 -0
- package/esm2022/public_api.mjs +14 -0
- package/fesm2022/gettrx-core-components-angular.mjs +6725 -0
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -0
- package/generated/components.d.ts +24 -24
- package/index.d.ts +5 -5
- package/lib/atoms/badge/badge.component.d.ts +22 -0
- package/lib/atoms/badge/badge.module.d.ts +9 -0
- package/lib/atoms/badge/index.d.ts +1 -0
- package/lib/atoms/badge/public_api.d.ts +2 -0
- package/lib/atoms/button/button-close.directive.d.ts +13 -0
- package/lib/atoms/button/button.directive.d.ts +48 -0
- package/lib/atoms/button/button.module.d.ts +8 -0
- package/lib/atoms/button/index.d.ts +1 -0
- package/lib/atoms/button/public_api.d.ts +3 -0
- package/lib/atoms/gtr.types.d.ts +46 -0
- package/lib/molecules/button/button-close.directive.d.ts +13 -0
- package/lib/molecules/button/button.directive.d.ts +48 -0
- package/lib/molecules/button/button.module.d.ts +8 -0
- package/lib/molecules/button/index.d.ts +1 -0
- package/lib/molecules/button/public_api.d.ts +3 -0
- package/lib/molecules/calendar/calendar/calendar-class-view.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar/calendar.component.d.ts +177 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.d.ts +15 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.directive.d.ts +33 -0
- package/lib/molecules/calendar/calendar-month/calendar-day.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.component.d.ts +134 -0
- package/lib/molecules/calendar/calendar-month/calendar-month.pipe.d.ts +7 -0
- package/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.d.ts +8 -0
- package/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.d.ts +32 -0
- package/lib/molecules/calendar/calendar.module.d.ts +19 -0
- package/lib/molecules/calendar/calendar.service.d.ts +36 -0
- package/lib/molecules/calendar/calendar.utils.d.ts +26 -0
- package/lib/molecules/calendar/index.d.ts +1 -0
- package/lib/molecules/calendar/public_api.d.ts +4 -0
- package/lib/molecules/core-components.types.d.ts +46 -0
- package/lib/molecules/date-picker/date-picker.component.d.ts +18 -0
- package/lib/molecules/date-picker/date-picker.module.d.ts +18 -0
- package/lib/molecules/date-picker/index.d.ts +1 -0
- package/lib/molecules/date-picker/public_api.d.ts +2 -0
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +270 -0
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +7 -0
- package/lib/molecules/date-range-picker/index.d.ts +1 -0
- package/lib/molecules/date-range-picker/public_api.d.ts +2 -0
- package/lib/molecules/dropdown/dropdown/dropdown.component.d.ts +136 -0
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +26 -0
- package/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.d.ts +6 -0
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +36 -0
- package/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +34 -0
- package/lib/molecules/dropdown/dropdown.module.d.ts +13 -0
- package/lib/molecules/dropdown/dropdown.service.d.ts +13 -0
- package/lib/molecules/dropdown/index.d.ts +1 -0
- package/lib/molecules/dropdown/public_api.d.ts +9 -0
- package/lib/molecules/form/form/form.directive.d.ts +13 -0
- package/lib/molecules/form/form-check/form-check-input.directive.d.ts +31 -0
- package/lib/molecules/form/form-check/form-check-label.directive.d.ts +6 -0
- package/lib/molecules/form/form-check/form-check.component.d.ts +39 -0
- package/lib/molecules/form/form-control/form-control.directive.d.ts +31 -0
- package/lib/molecules/form/form-feedback/form-feedback.component.d.ts +17 -0
- package/lib/molecules/form/form-floating/form-floating.directive.d.ts +12 -0
- package/lib/molecules/form/form-label/form-label.directive.d.ts +16 -0
- package/lib/molecules/form/form-select/form-select.directive.d.ts +16 -0
- package/lib/molecules/form/form-text/form-text.directive.d.ts +6 -0
- package/lib/molecules/form/form.module.d.ts +18 -0
- package/lib/molecules/form/index.d.ts +1 -0
- package/lib/molecules/form/input-group/input-group.component.d.ts +11 -0
- package/lib/molecules/form/input-group-text/input-group-text.directive.d.ts +7 -0
- package/lib/molecules/form/public_api.d.ts +13 -0
- package/lib/molecules/shared/html-attr.directive.d.ts +16 -0
- package/lib/molecules/shared/index.d.ts +1 -0
- package/lib/molecules/shared/public_api.d.ts +3 -0
- package/lib/molecules/shared/shared.module.d.ts +10 -0
- package/lib/molecules/shared/template-id.directive.d.ts +9 -0
- package/lib/molecules/time-picker/index.d.ts +1 -0
- package/lib/molecules/time-picker/public_api.d.ts +2 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.d.ts +39 -0
- package/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.d.ts +38 -0
- package/lib/molecules/time-picker/time-picker.component.d.ts +196 -0
- package/lib/molecules/time-picker/time-picker.module.d.ts +14 -0
- package/lib/molecules/time-picker/time.utils.d.ts +57 -0
- package/package.json +8 -15
- package/public_api.d.ts +10 -0
- package/esm2020/generated/components.mjs +0 -729
- package/esm2020/generated/number-value-accessor.mjs +0 -40
- package/esm2020/generated/text-value-accessor.mjs +0 -36
- package/esm2020/generated/value-accessor.mjs +0 -40
- package/esm2020/index.mjs +0 -9
- package/fesm2015/gettrx-core-components-angular.mjs +0 -918
- package/fesm2015/gettrx-core-components-angular.mjs.map +0 -1
- package/fesm2020/gettrx-core-components-angular.mjs +0 -918
- package/fesm2020/gettrx-core-components-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/generated/angular-component-lib/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/generated/proxies-list.mjs +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { FormCheckLabelDirective } from './form-check-label.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormCheckComponent implements AfterContentInit {
|
|
5
|
+
#private;
|
|
6
|
+
/**
|
|
7
|
+
* Group checkboxes or radios on the same horizontal row.
|
|
8
|
+
* @type boolean
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
inline: string | boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Put checkboxes or radios on the opposite side.
|
|
14
|
+
* @type boolean
|
|
15
|
+
* @default false
|
|
16
|
+
* @since 4.4.7
|
|
17
|
+
*/
|
|
18
|
+
reverse: string | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Size the component large or extra large. Works only with `[switch]="true"` [docs]
|
|
21
|
+
* @type {'lg' | 'xl' | ''}
|
|
22
|
+
*/
|
|
23
|
+
sizing?: 'lg' | 'xl' | '';
|
|
24
|
+
/**
|
|
25
|
+
* Render a toggle switch on for checkbox.
|
|
26
|
+
* @type boolean
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
switch: string | boolean;
|
|
30
|
+
get hostClasses(): any;
|
|
31
|
+
formCheckLabel: FormCheckLabelDirective;
|
|
32
|
+
get formCheckClass(): boolean;
|
|
33
|
+
ngAfterContentInit(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCheckComponent, "gtr-form-check", ["gtrFormCheck"], { "inline": { "alias": "inline"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; "switch": { "alias": "switch"; "required": false; }; }, {}, ["formCheckLabel"], ["*"], true, never>;
|
|
36
|
+
static ngAcceptInputType_inline: unknown;
|
|
37
|
+
static ngAcceptInputType_reverse: unknown;
|
|
38
|
+
static ngAcceptInputType_switch: unknown;
|
|
39
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { InputType } from '../../core-components.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormControlDirective implements OnInit {
|
|
5
|
+
private hostElement;
|
|
6
|
+
constructor(hostElement: ElementRef);
|
|
7
|
+
/**
|
|
8
|
+
* Size the component small or large.
|
|
9
|
+
* @type {'sm' | 'lg'}
|
|
10
|
+
*/
|
|
11
|
+
sizing?: '' | 'sm' | 'lg' | string;
|
|
12
|
+
/**
|
|
13
|
+
* Set component validation state to valid.
|
|
14
|
+
* @type boolean
|
|
15
|
+
*/
|
|
16
|
+
valid?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the type of input element.
|
|
19
|
+
*/
|
|
20
|
+
type: Omit<InputType, 'checkbox' | 'radio'>;
|
|
21
|
+
/**
|
|
22
|
+
* Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use alongside `readonly` [docs]
|
|
23
|
+
*/
|
|
24
|
+
plaintext: string | boolean;
|
|
25
|
+
get hostClasses(): any;
|
|
26
|
+
get hostTag(): string;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlDirective, "input[gtrFormControl], textarea[gtrFormControl]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "type": { "alias": "type"; "required": false; }; "plaintext": { "alias": "plaintext"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
static ngAcceptInputType_plaintext: unknown;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormFeedbackComponent {
|
|
3
|
+
/**
|
|
4
|
+
* If your form layout allows it, you can display validation feedback in a styled tooltip.
|
|
5
|
+
* @type boolean
|
|
6
|
+
*/
|
|
7
|
+
tooltip: string | boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Set component validation state to valid.
|
|
10
|
+
* @type boolean
|
|
11
|
+
*/
|
|
12
|
+
valid?: boolean;
|
|
13
|
+
get hostClasses(): any;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFeedbackComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFeedbackComponent, "gtr-form-feedback", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
static ngAcceptInputType_tooltip: unknown;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormFloatingDirective {
|
|
3
|
+
/**
|
|
4
|
+
* Enable floating labels
|
|
5
|
+
* @type boolean
|
|
6
|
+
*/
|
|
7
|
+
floating: string | boolean;
|
|
8
|
+
get hostClasses(): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFloatingDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[gtrFormFloating]", never, { "floating": { "alias": "gtrFormFloating"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ngAcceptInputType_floating: unknown;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormLabelDirective {
|
|
3
|
+
/**
|
|
4
|
+
* For horizontal forms set labels to 'col' and make them vertically centered with their associated form controls.
|
|
5
|
+
* @type 'col'
|
|
6
|
+
*/
|
|
7
|
+
col: 'col' | '';
|
|
8
|
+
/**
|
|
9
|
+
* Size the label small or large.
|
|
10
|
+
*/
|
|
11
|
+
sizing: '' | 'sm' | 'lg' | string;
|
|
12
|
+
get hostClasses(): any;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormLabelDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormLabelDirective, "[gtrLabel]", never, { "col": { "alias": "gtrLabel"; "required": false; }; "sizing": { "alias": "sizing"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormSelectDirective {
|
|
3
|
+
/**
|
|
4
|
+
* Size the component small or large.
|
|
5
|
+
*/
|
|
6
|
+
sizing?: '' | 'sm' | 'lg' | string;
|
|
7
|
+
/**
|
|
8
|
+
* Set component validation state to valid.
|
|
9
|
+
* @type {boolean | undefined}
|
|
10
|
+
*/
|
|
11
|
+
valid?: boolean;
|
|
12
|
+
get hostClasses(): any;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSelectDirective, "select[gtrSelect]", never, { "sizing": { "alias": "sizing"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormTextDirective {
|
|
3
|
+
get hostClasses(): any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTextDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormTextDirective, "[gtrFormText]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form/form.directive";
|
|
3
|
+
import * as i2 from "./form-check/form-check.component";
|
|
4
|
+
import * as i3 from "./form-check/form-check-label.directive";
|
|
5
|
+
import * as i4 from "./form-check/form-check-input.directive";
|
|
6
|
+
import * as i5 from "./form-control/form-control.directive";
|
|
7
|
+
import * as i6 from "./form-feedback/form-feedback.component";
|
|
8
|
+
import * as i7 from "./form-floating/form-floating.directive";
|
|
9
|
+
import * as i8 from "./form-label/form-label.directive";
|
|
10
|
+
import * as i9 from "./form-select/form-select.directive";
|
|
11
|
+
import * as i10 from "./form-text/form-text.directive";
|
|
12
|
+
import * as i11 from "./input-group/input-group.component";
|
|
13
|
+
import * as i12 from "./input-group-text/input-group-text.directive";
|
|
14
|
+
export declare class FormModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof i1.FormDirective, typeof i2.FormCheckComponent, typeof i3.FormCheckLabelDirective, typeof i4.FormCheckInputDirective, typeof i5.FormControlDirective, typeof i6.FormFeedbackComponent, typeof i7.FormFloatingDirective, typeof i8.FormLabelDirective, typeof i9.FormSelectDirective, typeof i10.FormTextDirective, typeof i11.InputGroupComponent, typeof i12.InputGroupTextDirective], [typeof i1.FormDirective, typeof i2.FormCheckComponent, typeof i3.FormCheckLabelDirective, typeof i4.FormCheckInputDirective, typeof i5.FormControlDirective, typeof i6.FormFeedbackComponent, typeof i7.FormFloatingDirective, typeof i8.FormLabelDirective, typeof i9.FormSelectDirective, typeof i10.FormTextDirective, typeof i11.InputGroupComponent, typeof i12.InputGroupTextDirective]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputGroupComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Size the component small or large.
|
|
5
|
+
*/
|
|
6
|
+
sizing: string | 'sm' | 'lg' | '';
|
|
7
|
+
get hostClasses(): any;
|
|
8
|
+
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroupComponent, "gtr-input-group", never, { "sizing": { "alias": "sizing"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InputGroupTextDirective {
|
|
3
|
+
get hostClasses(): any;
|
|
4
|
+
constructor();
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupTextDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputGroupTextDirective, "[gtrInputGroupText]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { FormDirective } from './form/form.directive';
|
|
2
|
+
export { FormFeedbackComponent } from './form-feedback/form-feedback.component';
|
|
3
|
+
export { InputGroupComponent } from './input-group/input-group.component';
|
|
4
|
+
export { FormSelectDirective } from './form-select/form-select.directive';
|
|
5
|
+
export { FormLabelDirective } from './form-label/form-label.directive';
|
|
6
|
+
export { FormCheckComponent } from './form-check/form-check.component';
|
|
7
|
+
export { FormCheckInputDirective } from './form-check/form-check-input.directive';
|
|
8
|
+
export { FormCheckLabelDirective } from './form-check/form-check-label.directive';
|
|
9
|
+
export { FormControlDirective } from './form-control/form-control.directive';
|
|
10
|
+
export { FormTextDirective } from './form-text/form-text.directive';
|
|
11
|
+
export { FormFloatingDirective } from './form-floating/form-floating.directive';
|
|
12
|
+
export { InputGroupTextDirective } from './input-group-text/input-group-text.directive';
|
|
13
|
+
export { FormModule } from './form.module';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HtmlAttributesDirective implements OnInit {
|
|
4
|
+
private renderer;
|
|
5
|
+
private el;
|
|
6
|
+
gtrHtmlAttr?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
constructor(renderer: Renderer2, el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private setStyle;
|
|
12
|
+
private addClass;
|
|
13
|
+
private setAttrib;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HtmlAttributesDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HtmlAttributesDirective, "[gtrHtmlAttr]", ["gtrHtmlAttr"], { "gtrHtmlAttr": { "alias": "gtrHtmlAttr"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./html-attr.directive";
|
|
4
|
+
import * as i2 from "./template-id.directive";
|
|
5
|
+
export declare class SharedModule {
|
|
6
|
+
static forRoot(): ModuleWithProviders<SharedModule>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective], [typeof i1.HtmlAttributesDirective, typeof i2.TemplateIdDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateIdDirective {
|
|
4
|
+
templateRef: TemplateRef<any>;
|
|
5
|
+
id: string;
|
|
6
|
+
constructor(templateRef: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateIdDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateIdDirective, "[gtrTemplateId]", never, { "id": { "alias": "gtrTemplateId"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DayPeriod } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IDayPeriod {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
dayPeriod?: DayPeriod;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class DayPeriodElementDirective {
|
|
11
|
+
elementRef: ElementRef;
|
|
12
|
+
constructor(elementRef: ElementRef);
|
|
13
|
+
gtrDayPeriodElement: IDayPeriod;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayPeriodElementDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DayPeriodElementDirective, "[gtrDayPeriodElement]", ["gtrDayPeriodElement"], { "gtrDayPeriodElement": { "alias": "gtrDayPeriodElement"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class TimePickerRollAmPmComponent implements OnChanges, AfterViewInit {
|
|
18
|
+
elementRef: ElementRef;
|
|
19
|
+
constructor(elementRef: ElementRef);
|
|
20
|
+
private init;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
elements: IDayPeriod[];
|
|
23
|
+
onClick?: (value: number | string) => void;
|
|
24
|
+
selected?: number | string | null;
|
|
25
|
+
refresh?: boolean;
|
|
26
|
+
selectedChange: EventEmitter<any>;
|
|
27
|
+
get hostClasses(): {
|
|
28
|
+
'time-picker-roll-col': boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
dayPeriodElements: QueryList<DayPeriodElementDirective>;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
scrollToElement(element: any): void;
|
|
35
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
36
|
+
trackByElement(index: number, element: IDayPeriod): string;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollAmPmComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollAmPmComponent, "gtr-time-picker-roll-am-pm", never, { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ITimeValue } from '../time.utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ITimePickerRollCol {
|
|
5
|
+
elements: ITimeValue[];
|
|
6
|
+
onClick?: (value: number | string) => void;
|
|
7
|
+
selected?: number | string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class TimeElementDirective {
|
|
10
|
+
elementRef: ElementRef;
|
|
11
|
+
constructor(elementRef: ElementRef);
|
|
12
|
+
gtrTimeElement: ITimeValue;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeElementDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimeElementDirective, "[gtrTimeElement]", ["gtrTimeElement"], { "gtrTimeElement": { "alias": "gtrTimeElement"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class TimePickerRollColComponent implements ITimePickerRollCol, OnChanges, AfterViewInit {
|
|
17
|
+
elementRef: ElementRef;
|
|
18
|
+
constructor(elementRef: ElementRef);
|
|
19
|
+
private init;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
elements: ITimeValue[];
|
|
22
|
+
onClick?: (value: number | string) => void;
|
|
23
|
+
selected?: number | string | null;
|
|
24
|
+
refresh?: boolean;
|
|
25
|
+
selectedChange: EventEmitter<any>;
|
|
26
|
+
get hostClasses(): {
|
|
27
|
+
'time-picker-roll-col': boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
};
|
|
30
|
+
timeElements: QueryList<TimeElementDirective>;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
scrollToElement(element: any): void;
|
|
34
|
+
handleElementClick($event: MouseEvent, element: any): void;
|
|
35
|
+
trackByElement(index: number, element: ITimeValue): number;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerRollColComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerRollColComponent, "gtr-time-picker-roll-col", ["gtrTimePickerRollCol"], { "disabled": { "alias": "disabled"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; "onClick": { "alias": "onClick"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { DateTimeFormatOptions, DayPeriod, ITimeValue } from './time.utils';
|
|
5
|
+
import { TemplateIdDirective } from '../shared';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TimePickerComponent implements OnChanges, OnInit, ControlValueAccessor, AfterViewInit {
|
|
8
|
+
constructor();
|
|
9
|
+
static ngAcceptInputType_cleaner: BooleanInput;
|
|
10
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
11
|
+
static ngAcceptInputType_indicator: BooleanInput;
|
|
12
|
+
static ngAcceptInputType_inputReadOnly: BooleanInput;
|
|
13
|
+
static ngAcceptInputType_seconds: BooleanInput;
|
|
14
|
+
static ngAcceptInputType_visible: BooleanInput;
|
|
15
|
+
/**
|
|
16
|
+
* Toggle visibility or set the content of the cleaner button.
|
|
17
|
+
* @type boolean
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
set cleaner(value: boolean);
|
|
21
|
+
get cleaner(): boolean;
|
|
22
|
+
private _cleaner;
|
|
23
|
+
/**
|
|
24
|
+
* Sets DateTime format options including timeZone
|
|
25
|
+
* @type DateTimeFormatOptions
|
|
26
|
+
* @default {}
|
|
27
|
+
* @note The date object doesn't store timeZone, it keeps the local timezone of the browser, regardless if you parsed UTC dates.
|
|
28
|
+
*/
|
|
29
|
+
dateTimeFormatOptions: DateTimeFormatOptions;
|
|
30
|
+
/**
|
|
31
|
+
* Toggle the disabled state for the component.
|
|
32
|
+
* @type boolean
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
set disabled(value: boolean);
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
private _disabled;
|
|
38
|
+
/**
|
|
39
|
+
* Filter available hours to pick.
|
|
40
|
+
* @type (value: number) => boolean;
|
|
41
|
+
* @default undefined
|
|
42
|
+
*/
|
|
43
|
+
filterHours?: (value: number) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Filter available minutes to pick.
|
|
46
|
+
* @type (value: number) => boolean;
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
filterMinutes?: (value: number) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Filter available seconds to pick.
|
|
52
|
+
* @type (value: number) => boolean;
|
|
53
|
+
* @default undefined
|
|
54
|
+
*/
|
|
55
|
+
filterSeconds?: (value: number) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Toggle visibility or set the content of the input indicator.
|
|
58
|
+
* @type boolean
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
set indicator(value: boolean);
|
|
62
|
+
get indicator(): boolean;
|
|
63
|
+
private _indicator;
|
|
64
|
+
/**
|
|
65
|
+
* Toggle the readonly state for the component.
|
|
66
|
+
* @type boolean
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
set inputReadOnly(value: boolean);
|
|
70
|
+
get inputReadOnly(): boolean;
|
|
71
|
+
private _inputReadOnly;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the default locale for components. If not set, it is inherited from the browser.
|
|
74
|
+
* @type string
|
|
75
|
+
* @default default
|
|
76
|
+
*/
|
|
77
|
+
locale: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies short hint visible in time input.
|
|
80
|
+
* @type string
|
|
81
|
+
* @default 'Select time'
|
|
82
|
+
*/
|
|
83
|
+
placeholder: string;
|
|
84
|
+
/**
|
|
85
|
+
* Toggle seconds visibility.
|
|
86
|
+
* @type boolean
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
set seconds(value: boolean);
|
|
90
|
+
get seconds(): boolean;
|
|
91
|
+
private _seconds;
|
|
92
|
+
/**
|
|
93
|
+
* Size the component small or large.
|
|
94
|
+
* @type 'sm' | 'lg' | undefined
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
size?: 'sm' | 'lg';
|
|
98
|
+
/**
|
|
99
|
+
* Initial selected time.
|
|
100
|
+
* @type Date | string | null | number
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
set time(value: Date | string | undefined);
|
|
104
|
+
get time(): Date | undefined;
|
|
105
|
+
private _time?;
|
|
106
|
+
private _timeInternal?;
|
|
107
|
+
/**
|
|
108
|
+
* Set the time picker variant to a roll or select.
|
|
109
|
+
* @type 'roll' | 'select'
|
|
110
|
+
* @default 'roll'
|
|
111
|
+
*/
|
|
112
|
+
variant: 'roll' | 'select';
|
|
113
|
+
/**
|
|
114
|
+
* Toggle visual validation feedback.
|
|
115
|
+
* @type boolean | undefined
|
|
116
|
+
* @default undefined
|
|
117
|
+
*/
|
|
118
|
+
valid?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Toggle the visibility of dropdown timepicker menu component.
|
|
121
|
+
* @type boolean
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
set visible(value: boolean);
|
|
125
|
+
get visible(): boolean;
|
|
126
|
+
private _visible;
|
|
127
|
+
timeChange: EventEmitter<Date | undefined>;
|
|
128
|
+
onBlur(): void;
|
|
129
|
+
dropdownRef: ElementRef;
|
|
130
|
+
templates: any;
|
|
131
|
+
contentTemplates: QueryList<TemplateIdDirective>;
|
|
132
|
+
listOfHours: ITimeValue[];
|
|
133
|
+
listOfHours12: ITimeValue[];
|
|
134
|
+
listOfMinutes: ITimeValue[];
|
|
135
|
+
listOfSeconds: ITimeValue[];
|
|
136
|
+
hour12: boolean;
|
|
137
|
+
dayPeriods: {
|
|
138
|
+
value: string;
|
|
139
|
+
label: string;
|
|
140
|
+
}[];
|
|
141
|
+
set timeInputValue(value: string);
|
|
142
|
+
get timeInputValue(): string;
|
|
143
|
+
private _timeInputValue;
|
|
144
|
+
get timePickerClasses(): {
|
|
145
|
+
'form-control': boolean;
|
|
146
|
+
'is-valid': boolean;
|
|
147
|
+
'is-invalid': boolean;
|
|
148
|
+
};
|
|
149
|
+
selectTime: FormGroup<{
|
|
150
|
+
selectHours: FormControl<number | null>;
|
|
151
|
+
selectMinutes: FormControl<number | null>;
|
|
152
|
+
selectSeconds?: FormControl<number | null>;
|
|
153
|
+
selectDayPeriod?: FormControl<'am' | 'pm' | null>;
|
|
154
|
+
}>;
|
|
155
|
+
timeInput: FormControl<string>;
|
|
156
|
+
set hour(value: number);
|
|
157
|
+
get hour(): number;
|
|
158
|
+
private _hour;
|
|
159
|
+
set minute(value: number);
|
|
160
|
+
get minute(): number;
|
|
161
|
+
private _minute;
|
|
162
|
+
set second(value: number);
|
|
163
|
+
get second(): number;
|
|
164
|
+
private _second;
|
|
165
|
+
set dayPeriod(value: DayPeriod);
|
|
166
|
+
get dayPeriod(): DayPeriod;
|
|
167
|
+
private _dayPeriod;
|
|
168
|
+
setTime(): void;
|
|
169
|
+
clearTime(): void;
|
|
170
|
+
emitTime(time: Date | undefined): void;
|
|
171
|
+
ngOnInit(): void;
|
|
172
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
173
|
+
ngAfterViewInit(): void;
|
|
174
|
+
setTimeLists(): void;
|
|
175
|
+
updateSelectTime(time?: Date): void;
|
|
176
|
+
closestTime(timeArray: ITimeValue[], timeSegment: number): ITimeValue;
|
|
177
|
+
listOfTimeSegments(getListOfTimeSegments: (locale: string, dateTimeFormatOptions: DateTimeFormatOptions) => ITimeValue[], filterTimeSegments: ((timeSegmentValue: number) => boolean) | undefined): ITimeValue[];
|
|
178
|
+
handleSelectDayPeriodChange(dayPeriod: DayPeriod): void;
|
|
179
|
+
handleSelectHoursChange(hour: number): void;
|
|
180
|
+
handleSelectMinutesChange(minute: number): void;
|
|
181
|
+
handleSelectSecondsChange(second: number): void;
|
|
182
|
+
patchSelectTimeValues(): void;
|
|
183
|
+
trackByHour(index: number, hour: ITimeValue): ITimeValue;
|
|
184
|
+
onChange: (value: Date | undefined) => void;
|
|
185
|
+
onTouched: () => void;
|
|
186
|
+
writeValue(value: any): void;
|
|
187
|
+
registerOnChange(fn: any): void;
|
|
188
|
+
registerOnTouched(fn: any): void;
|
|
189
|
+
setDisabledState(isDisabled: boolean): void;
|
|
190
|
+
handleTimeInputChange($event: any): void;
|
|
191
|
+
handleClear($event: MouseEvent): void;
|
|
192
|
+
handleBlur($event: FocusEvent): void;
|
|
193
|
+
handleFocus($event: FocusEvent): void;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "gtr-time-picker", ["cTimePicker"], { "cleaner": { "alias": "cleaner"; "required": false; }; "dateTimeFormatOptions": { "alias": "dateTimeFormatOptions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "filterHours": { "alias": "filterHours"; "required": false; }; "filterMinutes": { "alias": "filterMinutes"; "required": false; }; "filterSeconds": { "alias": "filterSeconds"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "size": { "alias": "size"; "required": false; }; "time": { "alias": "time"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "timeChange": "timeChange"; }, ["contentTemplates"], never, true, never>;
|
|
196
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import * as i3 from "../form/form.module";
|
|
5
|
+
import * as i4 from "../button/button.module";
|
|
6
|
+
import * as i5 from "../dropdown/dropdown.module";
|
|
7
|
+
import * as i6 from "./time-picker-roll-col/time-picker-roll-am-pm.component";
|
|
8
|
+
import * as i7 from "./time-picker-roll-col/time-picker-roll-col.component";
|
|
9
|
+
import * as i8 from "./time-picker.component";
|
|
10
|
+
export declare class TimePickerModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TimePickerModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FormModule, typeof i4.ButtonModule, typeof i5.DropdownModule, typeof i6.DayPeriodElementDirective, typeof i7.TimeElementDirective, typeof i8.TimePickerComponent, typeof i6.TimePickerRollAmPmComponent, typeof i7.TimePickerRollColComponent], [typeof i8.TimePickerComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TimePickerModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface DateTimeFormatOptions {
|
|
2
|
+
localeMatcher?: 'best fit' | 'lookup' | undefined;
|
|
3
|
+
weekday?: 'long' | 'short' | 'narrow' | undefined;
|
|
4
|
+
era?: 'long' | 'short' | 'narrow' | undefined;
|
|
5
|
+
year?: 'numeric' | '2-digit' | undefined;
|
|
6
|
+
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow' | undefined;
|
|
7
|
+
day?: 'numeric' | '2-digit' | undefined;
|
|
8
|
+
hour?: 'numeric' | '2-digit' | undefined;
|
|
9
|
+
minute?: 'numeric' | '2-digit' | undefined;
|
|
10
|
+
second?: 'numeric' | '2-digit' | undefined;
|
|
11
|
+
timeZoneName?: 'long' | 'short' | undefined;
|
|
12
|
+
formatMatcher?: 'best fit' | 'basic' | undefined;
|
|
13
|
+
hour12?: boolean | undefined;
|
|
14
|
+
timeZone?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export type DayPeriod = 'am' | 'pm';
|
|
17
|
+
export interface ITimeValue {
|
|
18
|
+
value: number;
|
|
19
|
+
label: string;
|
|
20
|
+
dayPeriod?: DayPeriod;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IDayPeriods {
|
|
24
|
+
am: string;
|
|
25
|
+
pm: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const getSupportedLocale: (locale?: string) => string;
|
|
28
|
+
export declare const isHour12: (locale?: string) => boolean;
|
|
29
|
+
export declare const convert12hTo24h: (abbr: 'am' | 'pm', hour: number) => number;
|
|
30
|
+
export declare const convert24hTo12h: (hour: number) => number;
|
|
31
|
+
export declare const convertTimeToDate: (time: Date | string | null | undefined) => Date;
|
|
32
|
+
export declare const getAmPm: (date: Date, locale: string, options?: DateTimeFormatOptions) => DayPeriod;
|
|
33
|
+
export declare const isAm: (date: Date) => boolean;
|
|
34
|
+
export declare const isPm: (date: Date) => boolean;
|
|
35
|
+
export declare const isValidTimeZone: (timeZone: unknown) => boolean;
|
|
36
|
+
export declare const getListOfHours: (locale: string, options?: DateTimeFormatOptions) => {
|
|
37
|
+
value: number;
|
|
38
|
+
dayPeriod: DayPeriod;
|
|
39
|
+
label: string;
|
|
40
|
+
}[];
|
|
41
|
+
export declare const getListOfMinutes: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
42
|
+
value: number;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
export declare const getListOfSeconds: (locale: string, options?: DateTimeFormatOptions, valueAsString?: boolean) => {
|
|
46
|
+
value: number;
|
|
47
|
+
label: string;
|
|
48
|
+
}[];
|
|
49
|
+
export declare const getSelectedHour: (date: Date | null, locale: string) => number | "";
|
|
50
|
+
export declare const getSelectedMinutes: (date: Date | null) => number | "";
|
|
51
|
+
export declare const getSelectedSeconds: (date: Date | null) => number | "";
|
|
52
|
+
export declare const isAmPm: (locale?: string) => boolean;
|
|
53
|
+
export declare const isValidTime: (time: string | Date | number | any) => boolean;
|
|
54
|
+
export declare const getDayPeriods: (locale?: string, options?: DateTimeFormatOptions) => {
|
|
55
|
+
value: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}[];
|