@gettrx/core-components-angular 0.0.59 → 1.0.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/esm2022/generated/components.mjs +263 -315
- package/esm2022/generated/proxies-list.mjs +27 -27
- package/esm2022/generated/text-value-accessor.mjs +5 -5
- package/esm2022/generated/value-accessor.mjs +5 -7
- package/esm2022/gettrx-core-components-angular.mjs +2 -2
- package/esm2022/gettrx-module.mjs +4 -4
- package/esm2022/lib/atoms/badge/badge.component.mjs +48 -44
- package/esm2022/lib/atoms/badge/badge.module.mjs +6 -6
- package/esm2022/lib/atoms/button/button-close.directive.mjs +11 -8
- package/esm2022/lib/atoms/button/button.directive.mjs +32 -38
- package/esm2022/lib/atoms/button/button.module.mjs +4 -4
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +60 -0
- package/esm2022/lib/atoms/custom-button/custom-button.module.mjs +19 -0
- package/esm2022/lib/atoms/custom-button/index.mjs +3 -0
- package/esm2022/lib/atoms/custom-button/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +44 -0
- package/esm2022/lib/atoms/icon/icon.module.mjs +18 -0
- package/esm2022/lib/atoms/icon/index.mjs +2 -0
- package/esm2022/lib/atoms/icon/public_api.mjs +3 -0
- package/esm2022/lib/atoms/skeleton/skeleton.component.mjs +24 -0
- package/esm2022/lib/atoms/skeleton/utils/skeleton.directive.mjs +51 -0
- package/esm2022/lib/molecules/button/button-close.directive.mjs +11 -8
- package/esm2022/lib/molecules/button/button.directive.mjs +30 -38
- package/esm2022/lib/molecules/button/button.module.mjs +4 -4
- package/esm2022/lib/molecules/calendar/calendar/calendar-class-view.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar/calendar.component.mjs +38 -45
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-day.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-month.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-class-year.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day-title.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.directive.mjs +10 -18
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-day.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month-title.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.component.mjs +23 -30
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-month.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-month/calendar-weekday.pipe.mjs +3 -3
- package/esm2022/lib/molecules/calendar/calendar-navigation/calendar-navigation.component.mjs +15 -17
- package/esm2022/lib/molecules/calendar/calendar.module.mjs +6 -6
- package/esm2022/lib/molecules/calendar/calendar.service.mjs +24 -26
- package/esm2022/lib/molecules/calendar/calendar.utils.mjs +1 -1
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.component.mjs +96 -0
- package/esm2022/lib/molecules/checkbox/checkbox/checkbox.model.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/checkbox.module.mjs +20 -0
- package/esm2022/lib/molecules/checkbox/index.mjs +2 -0
- package/esm2022/lib/molecules/checkbox/public_api.mjs +4 -0
- package/esm2022/lib/molecules/date-picker/date-picker.component.mjs +12 -12
- package/esm2022/lib/molecules/date-picker/date-picker.module.mjs +8 -8
- package/esm2022/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.mjs +130 -169
- package/esm2022/lib/molecules/date-range-picker/date-range-picker.module.mjs +47 -5
- package/esm2022/lib/molecules/dropdown/dropdown/dropdown.component.mjs +43 -78
- package/esm2022/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.mjs +4 -13
- package/esm2022/lib/molecules/dropdown/dropdown-divider/dropdown-divider.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-header/dropdown-header.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item-plain.directive.mjs +3 -3
- package/esm2022/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.mjs +10 -24
- package/esm2022/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.mjs +12 -20
- package/esm2022/lib/molecules/dropdown/dropdown.module.mjs +5 -5
- package/esm2022/lib/molecules/dropdown/dropdown.service.mjs +7 -6
- package/esm2022/lib/molecules/file-input/file-input/file-input.component.mjs +144 -0
- package/esm2022/lib/molecules/file-input/file-input/file-input.model.mjs +2 -0
- package/esm2022/lib/molecules/file-input/file-input.module.mjs +18 -0
- package/esm2022/lib/molecules/file-input/index.mjs +2 -0
- package/esm2022/lib/molecules/file-input/public_api.mjs +4 -0
- package/esm2022/lib/molecules/form/form/form.directive.mjs +11 -9
- package/esm2022/lib/molecules/form/form-check/form-check-input.directive.mjs +10 -18
- package/esm2022/lib/molecules/form/form-check/form-check-label.directive.mjs +3 -3
- package/esm2022/lib/molecules/form/form-check/form-check.component.mjs +31 -29
- package/esm2022/lib/molecules/form/form-control/form-control.directive.mjs +16 -22
- package/esm2022/lib/molecules/form/form-feedback/form-feedback.component.mjs +10 -13
- package/esm2022/lib/molecules/form/form-floating/form-floating.directive.mjs +10 -8
- package/esm2022/lib/molecules/form/form-label/form-label.directive.mjs +14 -13
- package/esm2022/lib/molecules/form/form-select/form-select.directive.mjs +9 -13
- package/esm2022/lib/molecules/form/form-text/form-text.directive.mjs +3 -3
- package/esm2022/lib/molecules/form/form.module.mjs +5 -5
- package/esm2022/lib/molecules/form/input-group/input-group.component.mjs +9 -8
- package/esm2022/lib/molecules/form/input-group-text/input-group-text.directive.mjs +3 -3
- package/esm2022/lib/molecules/numeric-counter/index.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.mjs +158 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.mjs +2 -0
- package/esm2022/lib/molecules/numeric-counter/numeric-counter.module.mjs +19 -0
- package/esm2022/lib/molecules/numeric-counter/public_api.mjs +5 -0
- package/esm2022/lib/molecules/pagination/helpers/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/index.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.interface.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/models/pagination.model.mjs +3 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.mjs +21 -0
- package/esm2022/lib/molecules/pagination/index.mjs +2 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.component.mjs +146 -0
- package/esm2022/lib/molecules/pagination/pagination/pagination.mjs +80 -0
- package/esm2022/lib/molecules/pagination/pagination.module.mjs +21 -0
- package/esm2022/lib/molecules/pagination/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/enums/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/enums/select.enums.mjs +6 -0
- package/esm2022/lib/molecules/select/helpers/index.mjs +4 -0
- package/esm2022/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.mjs +57 -0
- package/esm2022/lib/molecules/select/helpers/pipes/index.mjs +3 -0
- package/esm2022/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.mjs +26 -0
- package/esm2022/lib/molecules/select/helpers/types/index.mjs +2 -0
- package/esm2022/lib/molecules/select/helpers/types/select.type.mjs +2 -0
- package/esm2022/lib/molecules/select/index.mjs +2 -0
- package/esm2022/lib/molecules/select/public_api.mjs +4 -0
- package/esm2022/lib/molecules/select/select/select.component.mjs +445 -0
- package/esm2022/lib/molecules/select/select.module.mjs +37 -0
- package/esm2022/lib/molecules/shared/html-attr.directive.mjs +3 -6
- package/esm2022/lib/molecules/shared/shared.module.mjs +4 -4
- package/esm2022/lib/molecules/shared/template-id.directive.mjs +3 -5
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-am-pm.component.mjs +9 -16
- package/esm2022/lib/molecules/time-picker/time-picker-roll-col/time-picker-roll-col.component.mjs +9 -16
- package/esm2022/lib/molecules/time-picker/time-picker.component.mjs +66 -109
- package/esm2022/lib/molecules/time-picker/time-picker.module.mjs +6 -6
- package/esm2022/public-api.mjs +18 -0
- package/fesm2022/gettrx-core-components-angular.mjs +4859 -3696
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/generated/components.d.ts +124 -124
- package/generated/proxies-list.d.ts +1 -1
- package/generated/text-value-accessor.d.ts +1 -1
- package/gettrx-module.d.ts +1 -1
- package/index.d.ts +1 -1
- package/lib/atoms/badge/badge.component.d.ts +8 -5
- package/lib/atoms/badge/badge.module.d.ts +2 -2
- package/lib/atoms/button/button.directive.d.ts +2 -2
- package/lib/atoms/custom-button/custom-button.component.d.ts +39 -0
- package/lib/atoms/custom-button/custom-button.module.d.ts +9 -0
- package/lib/atoms/custom-button/index.d.ts +2 -0
- package/lib/atoms/custom-button/utils/utils.d.ts +3 -0
- package/lib/atoms/icon/icon.component.d.ts +27 -0
- package/lib/atoms/icon/icon.module.d.ts +8 -0
- package/lib/atoms/icon/index.d.ts +1 -0
- package/lib/atoms/icon/public_api.d.ts +2 -0
- package/lib/atoms/skeleton/skeleton.component.d.ts +12 -0
- package/lib/atoms/skeleton/utils/skeleton.directive.d.ts +15 -0
- package/lib/molecules/button/button.directive.d.ts +2 -2
- package/lib/molecules/calendar/calendar/calendar.component.d.ts +2 -2
- package/lib/molecules/calendar/calendar.utils.d.ts +5 -5
- package/lib/molecules/checkbox/checkbox/checkbox.component.d.ts +54 -0
- package/lib/molecules/checkbox/checkbox/checkbox.model.d.ts +4 -0
- package/lib/molecules/checkbox/checkbox.module.d.ts +10 -0
- package/lib/molecules/checkbox/index.d.ts +1 -0
- package/lib/molecules/checkbox/public_api.d.ts +3 -0
- package/lib/molecules/date-picker/date-picker.component.d.ts +2 -2
- package/lib/molecules/date-picker/date-picker.module.d.ts +2 -2
- package/lib/molecules/date-range-picker/date-range-picker/date-range-picker.component.d.ts +16 -14
- package/lib/molecules/date-range-picker/date-range-picker.module.d.ts +12 -1
- package/lib/molecules/dropdown/dropdown/dropdown.component.d.ts +3 -3
- package/lib/molecules/dropdown/dropdown-close/dropdown-close.directive.d.ts +2 -2
- package/lib/molecules/dropdown/dropdown-item/dropdown-item.directive.d.ts +2 -2
- package/lib/molecules/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +2 -2
- package/lib/molecules/file-input/file-input/file-input.component.d.ts +72 -0
- package/lib/molecules/file-input/file-input/file-input.model.d.ts +3 -0
- package/lib/molecules/file-input/file-input.module.d.ts +8 -0
- package/lib/molecules/file-input/index.d.ts +1 -0
- package/lib/molecules/file-input/public_api.d.ts +3 -0
- package/lib/molecules/numeric-counter/index.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.component.d.ts +27 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.const.d.ts +1 -0
- package/lib/molecules/numeric-counter/numeric-counter/numeric-counter.type.d.ts +4 -0
- package/lib/molecules/numeric-counter/numeric-counter.module.d.ts +9 -0
- package/lib/molecules/numeric-counter/public_api.d.ts +4 -0
- package/lib/molecules/pagination/helpers/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/index.d.ts +2 -0
- package/lib/molecules/pagination/helpers/models/pagination.interface.d.ts +7 -0
- package/lib/molecules/pagination/helpers/models/pagination.model.d.ts +2 -0
- package/lib/molecules/pagination/helpers/pipes/index.d.ts +1 -0
- package/lib/molecules/pagination/helpers/pipes/validate-page/validate-page.pipe.d.ts +8 -0
- package/lib/molecules/pagination/index.d.ts +1 -0
- package/lib/molecules/pagination/pagination/pagination.component.d.ts +65 -0
- package/lib/molecules/pagination/pagination/pagination.d.ts +21 -0
- package/lib/molecules/pagination/pagination.module.d.ts +11 -0
- package/lib/molecules/pagination/public_api.d.ts +3 -0
- package/lib/molecules/select/helpers/enums/index.d.ts +1 -0
- package/lib/molecules/select/helpers/enums/select.enums.d.ts +4 -0
- package/lib/molecules/select/helpers/index.d.ts +3 -0
- package/lib/molecules/select/helpers/pipes/format-selected-value/format-selected-value.pipe.d.ts +8 -0
- package/lib/molecules/select/helpers/pipes/index.d.ts +2 -0
- package/lib/molecules/select/helpers/pipes/trim-text/trim-text.pipe.d.ts +7 -0
- package/lib/molecules/select/helpers/types/index.d.ts +1 -0
- package/lib/molecules/select/helpers/types/select.type.d.ts +7 -0
- package/lib/molecules/select/index.d.ts +1 -0
- package/lib/molecules/select/public_api.d.ts +3 -0
- package/lib/molecules/select/select/select.component.d.ts +159 -0
- package/lib/molecules/select/select.module.d.ts +12 -0
- package/lib/molecules/time-picker/time-picker.component.d.ts +4 -4
- package/lib/molecules/time-picker/time.utils.d.ts +1 -1
- package/package.json +2 -2
- package/{public_api.d.ts → public-api.d.ts} +5 -1
- package/esm2022/generated/number-value-accessor.mjs +0 -40
- package/esm2022/public_api.mjs +0 -14
- package/generated/number-value-accessor.d.ts +0 -9
|
@@ -3,20 +3,23 @@ type BadgeColor = 'danger' | 'info' | 'brown' | 'pink' | 'purple' | 'blue' | 'wa
|
|
|
3
3
|
export declare class BadgeComponent {
|
|
4
4
|
shape: 'default' | 'round';
|
|
5
5
|
type: 'pill' | 'icon' | 'dot';
|
|
6
|
-
color: BadgeColor
|
|
6
|
+
color: BadgeColor;
|
|
7
7
|
ariaLabel: string | undefined;
|
|
8
|
-
hidden:
|
|
8
|
+
hidden: boolean;
|
|
9
9
|
position: 'default' | 'overlap';
|
|
10
|
+
id: string;
|
|
11
|
+
testid: string;
|
|
10
12
|
positionProperty: {
|
|
11
13
|
top?: string;
|
|
12
14
|
bottom?: string;
|
|
13
15
|
left?: string;
|
|
14
16
|
right?: string;
|
|
15
17
|
};
|
|
16
|
-
backgroundColor
|
|
17
|
-
iconName
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
iconName?: string;
|
|
20
|
+
constructor();
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "gtr-badge", never, { "shape": { "alias": "shape"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "position": { "alias": "position"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "positionProperty": { "alias": "positionProperty"; "required": false; }; "backgroundColor": { "alias": "background-color"; "required": false; }; "iconName": { "alias": "icon-name"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
20
23
|
static ngAcceptInputType_hidden: unknown;
|
|
21
24
|
}
|
|
22
25
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./badge.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "
|
|
4
|
+
import * as i3 from "../icon/icon.module";
|
|
5
5
|
export declare class BadgeModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.GtrIconModule], [typeof i1.BadgeComponent, typeof i1.BadgeComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
|
|
9
9
|
}
|
|
@@ -37,9 +37,9 @@ export declare class ButtonDirective {
|
|
|
37
37
|
*/
|
|
38
38
|
variant?: 'ghost' | 'outline';
|
|
39
39
|
get hostClasses(): any;
|
|
40
|
-
get ariaDisabled(): string | true;
|
|
40
|
+
get ariaDisabled(): string | true | null;
|
|
41
41
|
get isActive(): boolean | null;
|
|
42
|
-
get attrDisabled():
|
|
42
|
+
get attrDisabled(): "" | null;
|
|
43
43
|
get tabIndex(): string | null;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
45
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[gtrButton]", ["gtrButton"], { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonColor, ButtonVariant, ButtonType } from './utils/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomButtonComponent implements OnInit {
|
|
5
|
+
classMap: any;
|
|
6
|
+
/** (optional) Button type */
|
|
7
|
+
type?: ButtonType | any;
|
|
8
|
+
/** (optional) Button type */
|
|
9
|
+
btnId: string;
|
|
10
|
+
/**
|
|
11
|
+
* (optional) color.
|
|
12
|
+
* @default primary
|
|
13
|
+
*/
|
|
14
|
+
color?: ButtonColor | any;
|
|
15
|
+
/**
|
|
16
|
+
* (optional) loading.
|
|
17
|
+
* @default isLoading
|
|
18
|
+
*/
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Optional variant. <br />
|
|
22
|
+
* `raised` : Rectangular contained button w/ elevation <br />
|
|
23
|
+
* `flat` : Rectangular contained button w/ no elevation <br />
|
|
24
|
+
* `outline` : Rectangular outlined button w/ no elevation <br />
|
|
25
|
+
* `link` : Rectangular text button w/ no elevation <br />
|
|
26
|
+
* `icon` : Circular button with a transparent background, meant to contain an icon
|
|
27
|
+
*/
|
|
28
|
+
variant?: ButtonVariant | any;
|
|
29
|
+
/** (optional) If `true`, the button is disabled */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
getCssClassMap(): {
|
|
32
|
+
[x: string]: boolean | undefined;
|
|
33
|
+
"button--loading": boolean | undefined;
|
|
34
|
+
disabled: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomButtonComponent, "gtr-button", never, { "type": { "alias": "type"; "required": false; }; "btnId": { "alias": "btnId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-button.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class CustomButtonModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtonModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomButtonModule, [typeof i1.CustomButtonComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.CustomButtonComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomButtonModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconComponent implements OnDestroy {
|
|
4
|
+
/**
|
|
5
|
+
* The font icon
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The icon width
|
|
10
|
+
*/
|
|
11
|
+
weight: string;
|
|
12
|
+
/**
|
|
13
|
+
* The icon color
|
|
14
|
+
*/
|
|
15
|
+
color: string;
|
|
16
|
+
/**
|
|
17
|
+
* The icon size
|
|
18
|
+
*/
|
|
19
|
+
size: number;
|
|
20
|
+
/**
|
|
21
|
+
* The element id
|
|
22
|
+
*/
|
|
23
|
+
iconId: string;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "gtr-icon", never, { "name": { "alias": "name"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconId": { "alias": "iconId"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./icon.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class GtrIconModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GtrIconModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GtrIconModule, [typeof i1.IconComponent], [typeof i2.CommonModule], [typeof i1.IconComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GtrIconModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkeletonComponent {
|
|
4
|
+
private host;
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
className: string;
|
|
8
|
+
constructor(host: ElementRef<HTMLElement>);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonComponent, "app-skeleton", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkeletonDirective {
|
|
4
|
+
private tpl;
|
|
5
|
+
private vcr;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
size: number;
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
10
|
+
className: string;
|
|
11
|
+
constructor(tpl: TemplateRef<any>, vcr: ViewContainerRef);
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonDirective, "[skeleton]", never, { "isLoading": { "alias": "skeleton"; "required": false; }; "size": { "alias": "skeletonRepeat"; "required": false; }; "width": { "alias": "skeletonWidth"; "required": false; }; "height": { "alias": "skeletonHeight"; "required": false; }; "className": { "alias": "skeletonClassName"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -37,9 +37,9 @@ export declare class ButtonDirective {
|
|
|
37
37
|
*/
|
|
38
38
|
variant?: 'ghost' | 'outline';
|
|
39
39
|
get hostClasses(): any;
|
|
40
|
-
get ariaDisabled(): string | true;
|
|
40
|
+
get ariaDisabled(): string | true | null;
|
|
41
41
|
get isActive(): boolean | null;
|
|
42
|
-
get attrDisabled():
|
|
42
|
+
get attrDisabled(): "" | null;
|
|
43
43
|
get tabIndex(): string | null;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
45
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "[gtrButton]", ["gtrButton"], { "active": { "alias": "active"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -126,8 +126,8 @@ export declare class CalendarComponent implements OnInit, OnDestroy {
|
|
|
126
126
|
* @type 'days' | 'months' | 'years'
|
|
127
127
|
* @default 'days'
|
|
128
128
|
*/
|
|
129
|
-
set type(value:
|
|
130
|
-
get type():
|
|
129
|
+
set type(value: 'days' | 'months' | 'years');
|
|
130
|
+
get type(): 'days' | 'months' | 'years';
|
|
131
131
|
private _type;
|
|
132
132
|
/**
|
|
133
133
|
* Set length or format of day name.
|
|
@@ -3,7 +3,7 @@ export declare const convertToLocalTime: (d: Date, locale: string, options?: {})
|
|
|
3
3
|
export declare const createGroupsInArray: (arr: any[], numberOfGroups: number) => any[][];
|
|
4
4
|
export declare const getCurrentYear: () => number;
|
|
5
5
|
export declare const getCurrentMonth: () => number;
|
|
6
|
-
export declare const getLocalDateFromString: (string: string, locale: string, time?: boolean) => Date;
|
|
6
|
+
export declare const getLocalDateFromString: (string: string, locale: string, time?: boolean) => Date | undefined;
|
|
7
7
|
export declare const getMonthName: (month: number, locale: string) => string;
|
|
8
8
|
export declare const getMonthsNames: (locale: string) => any[];
|
|
9
9
|
export declare const getYears: (year: number, variation?: number) => any[];
|
|
@@ -12,12 +12,12 @@ export declare const getMonthDetails: (year: number, month: number, firstDayOfWe
|
|
|
12
12
|
month: string;
|
|
13
13
|
}[][];
|
|
14
14
|
export declare const isDateDisabled: (date: Date | null, min?: Date | null, max?: Date | null, dates?: (Date | Date[])[]) => any;
|
|
15
|
-
export declare const isDateInRange: (date: Date | null, start: Date | null, end: Date | null) => boolean;
|
|
16
|
-
export declare const isDateSelected: (date: Date | null, start: Date | null, end: Date | null) => boolean;
|
|
17
|
-
export declare const isEndDate: (date: Date | null, start: Date | null, end: Date | null) => boolean;
|
|
15
|
+
export declare const isDateInRange: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
16
|
+
export declare const isDateSelected: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
17
|
+
export declare const isEndDate: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
18
18
|
export declare const isLastDayOfMonth: (date: Date) => boolean;
|
|
19
19
|
export declare const isSameDateAs: (date: Date, date2: Date) => boolean;
|
|
20
|
-
export declare const isStartDate: (date: Date | null, start: Date | null, end: Date | null) => boolean;
|
|
20
|
+
export declare const isStartDate: (date: Date | null, start: Date | null, end: Date | null) => boolean | null;
|
|
21
21
|
export declare const isToday: (date: Date) => boolean;
|
|
22
22
|
export declare const isThisMonth: (date: Date, index: number) => boolean;
|
|
23
23
|
export declare const isThisYear: (year: number) => boolean;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { GtrCheckboxValueChanged } from './checkbox.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
6
|
+
/**
|
|
7
|
+
* To pass identifier to checkbox
|
|
8
|
+
*/
|
|
9
|
+
identifier: string;
|
|
10
|
+
/**
|
|
11
|
+
* To pass additional value to checkbox
|
|
12
|
+
*/
|
|
13
|
+
value: any;
|
|
14
|
+
/**
|
|
15
|
+
* Option to add checkbox label
|
|
16
|
+
* */
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Option to mark checkbox checked
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
checked: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Option to mark checkbox disabled
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Option to mark checkbox readonly
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
readonly: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Option to send event when checkbox value changed
|
|
35
|
+
*/
|
|
36
|
+
readonly selectionChanged: EventEmitter<GtrCheckboxValueChanged>;
|
|
37
|
+
private onChange;
|
|
38
|
+
private onTouch;
|
|
39
|
+
writeValue(value: any): void;
|
|
40
|
+
registerOnChange(fn: any): void;
|
|
41
|
+
registerOnTouched(fn: any): void;
|
|
42
|
+
setDisabledState(isDisabled: boolean): void;
|
|
43
|
+
/**
|
|
44
|
+
* Method to handle click on checkbox input
|
|
45
|
+
*/
|
|
46
|
+
handleClick(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Method to handle keydown events for checkbox input
|
|
49
|
+
* @param event
|
|
50
|
+
*/
|
|
51
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "gtr-checkbox", never, { "identifier": { "alias": "identifier"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "selectionChanged": "selectionChanged"; }, never, never, false, never>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./checkbox/checkbox.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../atoms/icon/icon.module";
|
|
6
|
+
export declare class CheckboxModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxComponent], [typeof i2.NgIf, typeof i2.NgForOf, typeof i3.FormsModule, typeof i4.GtrIconModule], [typeof i1.CheckboxComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -8,11 +8,11 @@ export declare class DatePickerComponent extends DateRangePickerComponent {
|
|
|
8
8
|
startDateChange: EventEmitter<Date | null>;
|
|
9
9
|
get range(): boolean;
|
|
10
10
|
get calendars(): number;
|
|
11
|
-
get endDate():
|
|
11
|
+
get endDate(): null;
|
|
12
12
|
get date(): Date | null | undefined;
|
|
13
13
|
set date(value: Date | null | undefined);
|
|
14
14
|
writeValue(value: Date | null | undefined): void;
|
|
15
15
|
subscribeDateChange(subscribe?: boolean): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gtr-date-
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gtr-date-picker", ["gtrDatePicker"], { "placeholder": { "alias": "placeholder"; "required": false; }; "date": { "alias": "date"; "required": false; }; }, { "startDateChange": "dateChange"; }, never, ["*", "*"], false, never>;
|
|
18
18
|
}
|
|
@@ -10,9 +10,9 @@ import * as i8 from "../dropdown/dropdown-menu/dropdown-menu.directive";
|
|
|
10
10
|
import * as i9 from "../form/input-group/input-group.component";
|
|
11
11
|
import * as i10 from "../form/form-control/form-control.directive";
|
|
12
12
|
import * as i11 from "../form/input-group-text/input-group-text.directive";
|
|
13
|
-
import * as i12 from "
|
|
13
|
+
import * as i12 from "../../atoms/icon/icon.module";
|
|
14
14
|
export declare class DatePickerModule {
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatePickerModule, [typeof i1.DatePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.DatePickerComponent]>;
|
|
17
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<DatePickerModule>;
|
|
18
18
|
}
|
|
@@ -21,6 +21,8 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
21
21
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
22
22
|
static ngAcceptInputType_navYearFirst: BooleanInput;
|
|
23
23
|
constructor(breakpointObserver: BreakpointObserver);
|
|
24
|
+
id: string;
|
|
25
|
+
testid: string;
|
|
24
26
|
/**
|
|
25
27
|
* Set the format of day name.
|
|
26
28
|
* @default 'numeric'
|
|
@@ -94,7 +96,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
94
96
|
* @type ICalendarRanges
|
|
95
97
|
*/
|
|
96
98
|
ranges?: object;
|
|
97
|
-
rangesType
|
|
99
|
+
rangesType: 'days' | 'months' | 'years';
|
|
98
100
|
/**
|
|
99
101
|
* Sets the color context of the cancel button to one of Gettrx’s themed colors.
|
|
100
102
|
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
|
|
@@ -147,11 +149,11 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
147
149
|
set visible(value: boolean);
|
|
148
150
|
get visible(): boolean;
|
|
149
151
|
private _visible;
|
|
150
|
-
set startDate(value: Date);
|
|
151
|
-
get startDate(): Date;
|
|
152
|
+
set startDate(value: Date | null | undefined);
|
|
153
|
+
get startDate(): Date | null | undefined;
|
|
152
154
|
private _startDate?;
|
|
153
|
-
set endDate(value: Date);
|
|
154
|
-
get endDate(): Date;
|
|
155
|
+
set endDate(value: Date | null | undefined);
|
|
156
|
+
get endDate(): Date | null | undefined;
|
|
155
157
|
private _endDate?;
|
|
156
158
|
calendarDate: Date;
|
|
157
159
|
disabledDates: Date[] | Date[][];
|
|
@@ -203,7 +205,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
203
205
|
* @default true
|
|
204
206
|
*/
|
|
205
207
|
showAdjacentDays: boolean;
|
|
206
|
-
readonly valueChange: EventEmitter<Date | Date[]>;
|
|
208
|
+
readonly valueChange: EventEmitter<Date | Date[] | undefined>;
|
|
207
209
|
calendarCellHover: EventEmitter<Date | null>;
|
|
208
210
|
calendarDateChange: EventEmitter<Date>;
|
|
209
211
|
endDateChange: EventEmitter<Date | null>;
|
|
@@ -227,14 +229,14 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
227
229
|
get startDatePlaceholder(): string;
|
|
228
230
|
get endDatePlaceholder(): string;
|
|
229
231
|
private layoutChanges;
|
|
230
|
-
startDateInput: FormControl<string>;
|
|
231
|
-
endDateInput: FormControl<string>;
|
|
232
|
+
startDateInput: FormControl<string | null>;
|
|
233
|
+
endDateInput: FormControl<string | null>;
|
|
232
234
|
dateRangeGroup: FormGroup;
|
|
233
|
-
set inputStartHoverValue(value: Date);
|
|
234
|
-
get inputStartHoverValue(): Date;
|
|
235
|
+
set inputStartHoverValue(value: Date | null);
|
|
236
|
+
get inputStartHoverValue(): Date | null;
|
|
235
237
|
private _inputStartHoverValue;
|
|
236
|
-
set inputEndHoverValue(value: Date);
|
|
237
|
-
get inputEndHoverValue(): Date;
|
|
238
|
+
set inputEndHoverValue(value: Date | null);
|
|
239
|
+
get inputEndHoverValue(): Date | null;
|
|
238
240
|
private _inputEndHoverValue;
|
|
239
241
|
get datePickerClasses(): {
|
|
240
242
|
'is-valid': boolean;
|
|
@@ -245,7 +247,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
245
247
|
ngOnDestroy(): void;
|
|
246
248
|
ngAfterViewInit(): void;
|
|
247
249
|
ngOnChanges(changes: SimpleChanges): void;
|
|
248
|
-
convertValueToDate(value: Date | string | number | undefined | null): Date;
|
|
250
|
+
convertValueToDate(value: Date | string | number | undefined | null): Date | null | undefined;
|
|
249
251
|
getCustomRangeKey(customRange: any): any;
|
|
250
252
|
setCustomRange(customRange: any): void;
|
|
251
253
|
handleCalendarCellHover($event: Date | null): void;
|
|
@@ -266,5 +268,5 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
266
268
|
handleStartTimeChange(time: Date | undefined): void;
|
|
267
269
|
handleEndTimeChange(time: Date | undefined): void;
|
|
268
270
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
269
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gtr-date-range-picker", ["gtrDateRangePicker"], { "dayFormat": { "alias": "dayFormat"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "format": { "alias": "format"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "rangesType": { "alias": "rangesType"; "required": false; }; "rangesButtonsColor": { "alias": "rangesButtonsColor"; "required": false; }; "rangesButtonsSize": { "alias": "rangesButtonsSize"; "required": false; }; "rangesButtonsVariant": { "alias": "rangesButtonsVariant"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "size": { "alias": "size"; "required": false; }; "timepicker": { "alias": "timepicker"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "range": { "alias": "range"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "popperjsOptions": { "alias": "popperOptions"; "required": false; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*", "*"],
|
|
271
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gtr-date-range-picker", ["gtrDateRangePicker"], { "id": { "alias": "id"; "required": false; }; "testid": { "alias": "testid"; "required": false; }; "dayFormat": { "alias": "dayFormat"; "required": false; }; "calendars": { "alias": "calendars"; "required": false; }; "cleaner": { "alias": "cleaner"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "format": { "alias": "format"; "required": false; }; "indicator": { "alias": "indicator"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "navYearFirst": { "alias": "navYearFirst"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "ranges": { "alias": "ranges"; "required": false; }; "rangesType": { "alias": "rangesType"; "required": false; }; "rangesButtonsColor": { "alias": "rangesButtonsColor"; "required": false; }; "rangesButtonsSize": { "alias": "rangesButtonsSize"; "required": false; }; "rangesButtonsVariant": { "alias": "rangesButtonsVariant"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "size": { "alias": "size"; "required": false; }; "timepicker": { "alias": "timepicker"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "calendarDate": { "alias": "calendarDate"; "required": false; }; "disabledDates": { "alias": "disabledDates"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "range": { "alias": "range"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "weekdayFormat": { "alias": "weekdayFormat"; "required": false; }; "popperjsOptions": { "alias": "popperOptions"; "required": false; }; "selectAdjacentDays": { "alias": "selectAdjacentDays"; "required": false; }; "showAdjacentDays": { "alias": "showAdjacentDays"; "required": false; }; }, { "valueChange": "valueChange"; "calendarCellHover": "calendarCellHover"; "calendarDateChange": "calendarDateChange"; "endDateChange": "endDateChange"; "startDateChange": "startDateChange"; }, ["contentTemplates"], ["*", "*"], false, never>;
|
|
270
272
|
}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./date-range-picker/date-range-picker.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../calendar/calendar/calendar.component";
|
|
6
|
+
import * as i5 from "../time-picker/time-picker.component";
|
|
7
|
+
import * as i6 from "../button/button.directive";
|
|
8
|
+
import * as i7 from "../dropdown/dropdown/dropdown.component";
|
|
9
|
+
import * as i8 from "../dropdown/dropdown-menu/dropdown-menu.directive";
|
|
10
|
+
import * as i9 from "../form/input-group/input-group.component";
|
|
11
|
+
import * as i10 from "../form/form-control/form-control.directive";
|
|
12
|
+
import * as i11 from "../form/input-group-text/input-group-text.directive";
|
|
13
|
+
import * as i12 from "../../atoms/icon/icon.module";
|
|
3
14
|
export declare class DateRangePickerModule {
|
|
4
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule,
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DateRangePickerModule, [typeof i1.DateRangePickerComponent], [typeof i2.NgClass, typeof i2.NgIf, typeof i2.NgForOf, typeof i2.NgTemplateOutlet, typeof i3.ReactiveFormsModule, typeof i4.CalendarComponent, typeof i5.TimePickerComponent, typeof i6.ButtonDirective, typeof i7.DropdownComponent, typeof i7.DropdownToggleDirective, typeof i8.DropdownMenuDirective, typeof i9.InputGroupComponent, typeof i10.FormControlDirective, typeof i11.InputGroupTextDirective, typeof i12.GtrIconModule], [typeof i1.DateRangePickerComponent]>;
|
|
6
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateRangePickerModule>;
|
|
7
18
|
}
|
|
@@ -9,10 +9,10 @@ export declare abstract class DropdownToken {
|
|
|
9
9
|
export declare class DropdownToggleDirective implements AfterViewInit {
|
|
10
10
|
elementRef: ElementRef;
|
|
11
11
|
private dropdownService;
|
|
12
|
-
dropdown?: DropdownToken;
|
|
12
|
+
dropdown?: DropdownToken | undefined;
|
|
13
13
|
static ngAcceptInputType_split: BooleanInput;
|
|
14
14
|
static ngAcceptInputType_popper: BooleanInput;
|
|
15
|
-
constructor(elementRef: ElementRef, dropdownService: DropdownService, dropdown?: DropdownToken);
|
|
15
|
+
constructor(elementRef: ElementRef, dropdownService: DropdownService, dropdown?: DropdownToken | undefined);
|
|
16
16
|
/**
|
|
17
17
|
* Toggle the disabled state for the toggler.
|
|
18
18
|
* @type DropdownComponent | undefined
|
|
@@ -132,5 +132,5 @@ export declare class DropdownComponent implements AfterContentInit, OnChanges, O
|
|
|
132
132
|
private setListeners;
|
|
133
133
|
private clearListeners;
|
|
134
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
135
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "gtr-dropdown", ["gtrDropdown"], { "alignment": { "alias": "alignment"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "dark": { "alias": "dark"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "popper": { "alias": "popper"; "required": false; }; "popperOptions": { "alias": "popperOptions"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "visibleChange": "visibleChange"; }, ["_toggler", "_menu", "_menuElementRef"], ["*"], true, never>;
|
|
136
136
|
}
|
|
@@ -4,8 +4,8 @@ import { DropdownComponent } from '../dropdown/dropdown.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DropdownCloseDirective implements AfterViewInit {
|
|
6
6
|
private dropdownService;
|
|
7
|
-
dropdown?: DropdownComponent;
|
|
8
|
-
constructor(dropdownService: DropdownService, dropdown?: DropdownComponent);
|
|
7
|
+
dropdown?: DropdownComponent | undefined;
|
|
8
|
+
constructor(dropdownService: DropdownService, dropdown?: DropdownComponent | undefined);
|
|
9
9
|
/**
|
|
10
10
|
* Disables a dropdown-close directive.
|
|
11
11
|
* @type boolean
|
|
@@ -3,7 +3,7 @@ import { DropdownComponent } from '../dropdown/dropdown.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DropdownItemDirective {
|
|
5
5
|
private dropdownService;
|
|
6
|
-
dropdown?: DropdownComponent;
|
|
6
|
+
dropdown?: DropdownComponent | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Set active state to a dropdown-item.
|
|
9
9
|
* @type boolean
|
|
@@ -22,7 +22,7 @@ export declare class DropdownItemDirective {
|
|
|
22
22
|
* @default undefined
|
|
23
23
|
*/
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
constructor(dropdownService: DropdownService, dropdown?: DropdownComponent);
|
|
25
|
+
constructor(dropdownService: DropdownService, dropdown?: DropdownComponent | undefined);
|
|
26
26
|
get ariaCurrent(): string | null;
|
|
27
27
|
get hostClasses(): any;
|
|
28
28
|
set tabIndex(value: string | number | null);
|
|
@@ -22,8 +22,8 @@ export declare class DropdownMenuDirective implements OnInit, OnDestroy {
|
|
|
22
22
|
private dropdownStateSubscription;
|
|
23
23
|
get hostClasses(): any;
|
|
24
24
|
get hostStyles(): {
|
|
25
|
-
visibility: string;
|
|
26
|
-
display: string;
|
|
25
|
+
visibility: string | null;
|
|
26
|
+
display: string | null;
|
|
27
27
|
};
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
ngOnDestroy(): void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { GtrFileInputList } from './file-input.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FileInputComponent {
|
|
5
|
+
fileInputElement: ElementRef<HTMLInputElement>;
|
|
6
|
+
/**
|
|
7
|
+
* accept for file input
|
|
8
|
+
* i.e. CSV, png, image/*
|
|
9
|
+
*/
|
|
10
|
+
accept: string;
|
|
11
|
+
/**
|
|
12
|
+
* heading text for file input
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* description/info text for file input
|
|
17
|
+
*/
|
|
18
|
+
description: string;
|
|
19
|
+
/**
|
|
20
|
+
* aria label attribute
|
|
21
|
+
*/
|
|
22
|
+
ariaLabel: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* identifier attribute
|
|
25
|
+
*/
|
|
26
|
+
identifier: string;
|
|
27
|
+
/**
|
|
28
|
+
* File upload event
|
|
29
|
+
* @returns list of files selected
|
|
30
|
+
*/
|
|
31
|
+
readonly gtrFileSelected: EventEmitter<GtrFileInputList | null>;
|
|
32
|
+
/**
|
|
33
|
+
* File upload event
|
|
34
|
+
* @returns list of files selected
|
|
35
|
+
*/
|
|
36
|
+
readonly gtrFileError: EventEmitter<string[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Show name of current selected file at 0 index
|
|
39
|
+
*/
|
|
40
|
+
currentSelectedFileName: string;
|
|
41
|
+
/**
|
|
42
|
+
* TO get file input
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
getFileInputElement(): HTMLInputElement;
|
|
46
|
+
/**
|
|
47
|
+
* Local function to validate file type
|
|
48
|
+
* @param file
|
|
49
|
+
* @returns boolean
|
|
50
|
+
*/
|
|
51
|
+
validateFileType(file: File): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* validate file type
|
|
54
|
+
*/
|
|
55
|
+
filterValidFiles(files: FileList): GtrFileInputList | null;
|
|
56
|
+
/**
|
|
57
|
+
* local method to handle file change events
|
|
58
|
+
* @param event
|
|
59
|
+
*/
|
|
60
|
+
handleFileChange(event: Event): void;
|
|
61
|
+
/**
|
|
62
|
+
* local method to handle file drop event
|
|
63
|
+
* @param event
|
|
64
|
+
*/
|
|
65
|
+
handleDrop(event: DragEvent): void;
|
|
66
|
+
/**
|
|
67
|
+
* local function to set text limit
|
|
68
|
+
*/
|
|
69
|
+
fileTextLimit(fileName: string): string;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "gtr-file-input", never, { "accept": { "alias": "accept"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; }, { "gtrFileSelected": "gtrFileSelected"; "gtrFileError": "gtrFileError"; }, never, never, false, never>;
|
|
72
|
+
}
|