@gettrx/core-components-angular 1.0.0 → 1.0.1
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/gettrx-core-components-angular.mjs +2 -2
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/atoms/badge/badge.module.mjs +3 -3
- package/esm2022/lib/atoms/custom-button/custom-button.component.mjs +2 -2
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.mjs +109 -0
- package/esm2022/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-switch/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-switch/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.mjs +143 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.mjs +18 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-gtr-tooltip/utils/utils.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/custom-input.component.mjs +364 -0
- package/esm2022/lib/atoms/custom-input/custom-input.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-input/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-input/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-input/utils/input-utils.mjs +26 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.component.mjs +242 -0
- package/esm2022/lib/atoms/custom-textarea/custom-textarea.module.mjs +21 -0
- package/esm2022/lib/atoms/custom-textarea/index.mjs +2 -0
- package/esm2022/lib/atoms/custom-textarea/public_api.mjs +3 -0
- package/esm2022/lib/atoms/custom-textarea/utils/gtr-textarea.types.mjs +9 -0
- package/esm2022/lib/atoms/popover/index.mjs +2 -0
- package/esm2022/lib/atoms/popover/popover.component.mjs +147 -0
- package/esm2022/lib/atoms/popover/popover.module.mjs +18 -0
- package/esm2022/lib/atoms/popover/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/index.mjs +2 -0
- package/esm2022/lib/atoms/radio-button/public_api.mjs +3 -0
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +186 -0
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +19 -0
- package/esm2022/lib/atoms/skeleton/index.mjs +2 -0
- package/esm2022/lib/atoms/skeleton/public_api.mjs +4 -0
- package/esm2022/lib/atoms/skeleton/skeleton.module.mjs +20 -0
- package/esm2022/lib/molecules/accordion/accordion/accordion.component.mjs +108 -0
- package/esm2022/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.mjs +92 -0
- package/esm2022/lib/molecules/accordion/accordion.module.mjs +21 -0
- package/esm2022/lib/molecules/accordion/index.mjs +2 -0
- package/esm2022/lib/molecules/accordion/public_api.mjs +4 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.mjs +148 -0
- package/esm2022/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.mjs +18 -0
- package/esm2022/lib/molecules/custom-gtr-modal/index.mjs +2 -0
- package/esm2022/lib/molecules/custom-gtr-modal/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/index.mjs +2 -0
- package/esm2022/lib/molecules/stat-card/public_api.mjs +3 -0
- package/esm2022/lib/molecules/stat-card/stat-card.component.mjs +135 -0
- package/esm2022/lib/molecules/stat-card/stat-card.module.mjs +21 -0
- package/esm2022/public-api.mjs +24 -4
- package/fesm2022/gettrx-core-components-angular.mjs +4904 -3096
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/lib/atoms/badge/badge.module.d.ts +1 -1
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.component.d.ts +56 -0
- package/lib/atoms/custom-gtr-switch/custom-gtr-switch.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-switch/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-switch/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.component.d.ts +59 -0
- package/lib/atoms/custom-gtr-tooltip/custom-gtr-tooltip.module.d.ts +8 -0
- package/lib/atoms/custom-gtr-tooltip/index.d.ts +1 -0
- package/lib/atoms/custom-gtr-tooltip/public_api.d.ts +2 -0
- package/lib/atoms/custom-gtr-tooltip/utils/utils.d.ts +1 -0
- package/lib/atoms/custom-input/custom-input.component.d.ts +161 -0
- package/lib/atoms/custom-input/custom-input.module.d.ts +10 -0
- package/lib/atoms/custom-input/index.d.ts +1 -0
- package/lib/atoms/custom-input/public_api.d.ts +2 -0
- package/lib/atoms/custom-input/utils/input-utils.d.ts +30 -0
- package/lib/atoms/custom-textarea/custom-textarea.component.d.ts +112 -0
- package/lib/atoms/custom-textarea/custom-textarea.module.d.ts +10 -0
- package/lib/atoms/custom-textarea/index.d.ts +1 -0
- package/lib/atoms/custom-textarea/public_api.d.ts +2 -0
- package/lib/atoms/custom-textarea/utils/gtr-textarea.types.d.ts +12 -0
- package/lib/atoms/popover/index.d.ts +1 -0
- package/lib/atoms/popover/popover.component.d.ts +35 -0
- package/lib/atoms/popover/popover.module.d.ts +8 -0
- package/lib/atoms/popover/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/index.d.ts +1 -0
- package/lib/atoms/radio-button/public_api.d.ts +2 -0
- package/lib/atoms/radio-button/radio-button.component.d.ts +89 -0
- package/lib/atoms/radio-button/radio-button.module.d.ts +9 -0
- package/lib/atoms/skeleton/index.d.ts +1 -0
- package/lib/atoms/skeleton/public_api.d.ts +3 -0
- package/lib/atoms/skeleton/skeleton.module.d.ts +9 -0
- package/lib/molecules/accordion/accordion/accordion.component.d.ts +59 -0
- package/lib/molecules/accordion/accordion-wrapper/accordion-wrapper.component.d.ts +37 -0
- package/lib/molecules/accordion/accordion.module.d.ts +11 -0
- package/lib/molecules/accordion/index.d.ts +1 -0
- package/lib/molecules/accordion/public_api.d.ts +3 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.component.d.ts +75 -0
- package/lib/molecules/custom-gtr-modal/custom-gtr-modal.module.d.ts +8 -0
- package/lib/molecules/custom-gtr-modal/index.d.ts +1 -0
- package/lib/molecules/custom-gtr-modal/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/index.d.ts +1 -0
- package/lib/molecules/stat-card/public_api.d.ts +2 -0
- package/lib/molecules/stat-card/stat-card.component.d.ts +56 -0
- package/lib/molecules/stat-card/stat-card.module.d.ts +11 -0
- package/package.json +2 -2
- package/public-api.d.ts +20 -3
package/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import * as i2 from "@angular/common";
|
|
|
4
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.GtrIconModule], [typeof i1.BadgeComponent
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.CommonModule, typeof i3.GtrIconModule], [typeof i1.BadgeComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomGtrSwitchComponent implements AfterViewInit, ControlValueAccessor {
|
|
5
|
+
ngControl: NgControl;
|
|
6
|
+
constructor(ngControl: NgControl);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
writeValue(obj: any): void;
|
|
9
|
+
registerOnChange(fn: any): void;
|
|
10
|
+
registerOnTouched(fn: any): void;
|
|
11
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* Checked state for gtr switch button
|
|
14
|
+
* @returns boolean value
|
|
15
|
+
*/
|
|
16
|
+
checked: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Id for debugging the element
|
|
19
|
+
* @returns boolean value
|
|
20
|
+
*/
|
|
21
|
+
switchId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Disabled state for switch button
|
|
24
|
+
* accept boolean value
|
|
25
|
+
*/
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Readonly state for switch button
|
|
29
|
+
* accept boolean value
|
|
30
|
+
*/
|
|
31
|
+
readonly: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Readonly state for switch button
|
|
34
|
+
* accept boolean value
|
|
35
|
+
*/
|
|
36
|
+
tabIndex: number;
|
|
37
|
+
/**
|
|
38
|
+
* To add label text for switches
|
|
39
|
+
*/
|
|
40
|
+
label?: string | number;
|
|
41
|
+
/**
|
|
42
|
+
* To detect value change events in gtr switch
|
|
43
|
+
* @returns Custom event for latest checked state
|
|
44
|
+
*/
|
|
45
|
+
gtrChange: EventEmitter<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Local method to handle keyboard events for switch button
|
|
48
|
+
*/
|
|
49
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
50
|
+
/**
|
|
51
|
+
* Local method to handle click events for switch button
|
|
52
|
+
*/
|
|
53
|
+
handleClick(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrSwitchComponent, [{ optional: true; self: true; }]>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrSwitchComponent, "gtr-switch", never, { "checked": { "alias": "checked"; "required": false; }; "switchId": { "alias": "switchId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "gtrChange": "gtrChange"; }, never, never, false, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-gtr-switch.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomGtrSwitchModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrSwitchModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrSwitchModule, [typeof i1.CustomGtrSwitchComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrSwitchComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrSwitchModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { positionType } from './utils/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomGtrTooltipComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
private tooltipElement;
|
|
8
|
+
/**
|
|
9
|
+
* The tooltip element
|
|
10
|
+
*/
|
|
11
|
+
contentEl?: ElementRef;
|
|
12
|
+
/**
|
|
13
|
+
* The keyup event for hide tooltip visibility on escape key
|
|
14
|
+
*/
|
|
15
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
16
|
+
/**
|
|
17
|
+
* The resize and scroll listeners for scroll and window resize event is fired to adjust tooltip position
|
|
18
|
+
*/
|
|
19
|
+
handleResizeScroll(): void;
|
|
20
|
+
constructor(ngControl: NgControl, tooltipElement: ElementRef);
|
|
21
|
+
writeValue(obj: any): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* The tooltip content
|
|
27
|
+
*/
|
|
28
|
+
tooltipId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The tooltip content
|
|
31
|
+
*/
|
|
32
|
+
content?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The tooltip position
|
|
35
|
+
*/
|
|
36
|
+
position: positionType;
|
|
37
|
+
/**
|
|
38
|
+
* The popover auto adjust position
|
|
39
|
+
*/
|
|
40
|
+
autoAdjustable: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The tooltip adjustable position
|
|
43
|
+
*/
|
|
44
|
+
newPosition: string;
|
|
45
|
+
/**
|
|
46
|
+
* The watch decorator fires event when tooltip position changed
|
|
47
|
+
*/
|
|
48
|
+
adjustPosition(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* The click event for hide tooltip visibility
|
|
51
|
+
*/
|
|
52
|
+
hideTooltip(): void;
|
|
53
|
+
/**
|
|
54
|
+
* The componentWillLoad hook
|
|
55
|
+
*/
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipComponent, [{ optional: true; self: true; }, null]>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGtrTooltipComponent, "gtr-tooltip", never, { "tooltipId": { "alias": "tooltipId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "autoAdjustable": { "alias": "autoAdjustable"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-gtr-tooltip.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class CustomGtrTooltipModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGtrTooltipModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomGtrTooltipModule, [typeof i1.CustomGtrTooltipComponent], [typeof i2.CommonModule], [typeof i1.CustomGtrTooltipComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomGtrTooltipModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type positionType = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { InputDataResponse } from './utils/input-utils';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomInputComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
constructor(ngControl: NgControl);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
onChanged: any;
|
|
10
|
+
onTouched: any;
|
|
11
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
12
|
+
writeValue(obj: any): void;
|
|
13
|
+
registerOnTouched(fn: () => void): void;
|
|
14
|
+
setDisabledState(isDisabled: boolean): void;
|
|
15
|
+
/**
|
|
16
|
+
* The Skeleton loading
|
|
17
|
+
*/
|
|
18
|
+
inputWrapperId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The Skeleton loading
|
|
21
|
+
*/
|
|
22
|
+
loading: boolean;
|
|
23
|
+
inputType: string;
|
|
24
|
+
/**
|
|
25
|
+
* The input type
|
|
26
|
+
*/
|
|
27
|
+
set type(value: string);
|
|
28
|
+
/**
|
|
29
|
+
* The input value
|
|
30
|
+
*/
|
|
31
|
+
value: string | number;
|
|
32
|
+
/**
|
|
33
|
+
* The input pleaceholder
|
|
34
|
+
*/
|
|
35
|
+
placeholder: string;
|
|
36
|
+
/**
|
|
37
|
+
* The input icon
|
|
38
|
+
*/
|
|
39
|
+
inputIcon: string;
|
|
40
|
+
/**
|
|
41
|
+
* The input icon size
|
|
42
|
+
*/
|
|
43
|
+
iconSize: number;
|
|
44
|
+
/**
|
|
45
|
+
* The input icon color
|
|
46
|
+
*/
|
|
47
|
+
iconColor: string;
|
|
48
|
+
/**
|
|
49
|
+
* The required
|
|
50
|
+
*/
|
|
51
|
+
iconPosition: 'start' | 'end';
|
|
52
|
+
/**
|
|
53
|
+
* The input icon font weight
|
|
54
|
+
*/
|
|
55
|
+
iconFontWeight: string;
|
|
56
|
+
/**
|
|
57
|
+
* The input label
|
|
58
|
+
*/
|
|
59
|
+
inputLabel: string;
|
|
60
|
+
/**
|
|
61
|
+
* The disabled input
|
|
62
|
+
*/
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* The check label
|
|
66
|
+
*/
|
|
67
|
+
validateLabel: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The disabled input
|
|
70
|
+
*/
|
|
71
|
+
isNumber: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The readonly input
|
|
74
|
+
*/
|
|
75
|
+
readonly: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The readonly input
|
|
78
|
+
*/
|
|
79
|
+
isOnlyView: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The default validation
|
|
82
|
+
*/
|
|
83
|
+
defaultValidation: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The required
|
|
86
|
+
*/
|
|
87
|
+
required: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The input valid boolean
|
|
90
|
+
*/
|
|
91
|
+
isValid: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The error state
|
|
94
|
+
*/
|
|
95
|
+
hasError: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The icon input field
|
|
98
|
+
*/
|
|
99
|
+
isIcon: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The
|
|
102
|
+
*/
|
|
103
|
+
isTouched: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The error message to be shown
|
|
106
|
+
*/
|
|
107
|
+
errorMsg: string;
|
|
108
|
+
/**
|
|
109
|
+
* The input change eventemitter
|
|
110
|
+
*/
|
|
111
|
+
inputChanged: EventEmitter<InputDataResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* The error eventemitter
|
|
114
|
+
*/
|
|
115
|
+
handleError: EventEmitter<Error>;
|
|
116
|
+
/**
|
|
117
|
+
* The input type validator
|
|
118
|
+
*/
|
|
119
|
+
private inputFields;
|
|
120
|
+
/**
|
|
121
|
+
* The input data to be send when input value changes
|
|
122
|
+
*/
|
|
123
|
+
private data;
|
|
124
|
+
/**
|
|
125
|
+
* The input unique id
|
|
126
|
+
*/
|
|
127
|
+
inputId?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The component function to handle input change
|
|
130
|
+
*/
|
|
131
|
+
handledKeyPressed(event: Event): void;
|
|
132
|
+
/**
|
|
133
|
+
* The component function to handle input change
|
|
134
|
+
*/
|
|
135
|
+
handleInput(event: Event): void;
|
|
136
|
+
/**
|
|
137
|
+
* The component function to handle input on focus event
|
|
138
|
+
*/
|
|
139
|
+
handleOnfocus(): void;
|
|
140
|
+
/**
|
|
141
|
+
* The component function to handle input on blur event
|
|
142
|
+
*/
|
|
143
|
+
handleOnBlur(): void;
|
|
144
|
+
/**
|
|
145
|
+
* The component function to verify error input messages
|
|
146
|
+
*/
|
|
147
|
+
hasErrorValidate: () => void;
|
|
148
|
+
/**
|
|
149
|
+
* The component function to verify input type
|
|
150
|
+
*/
|
|
151
|
+
isDesiredInput(): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The decorator used to detect every change accurred for input and call function on change
|
|
154
|
+
*/
|
|
155
|
+
validateInput(): string | null;
|
|
156
|
+
get isShowCustomError(): boolean;
|
|
157
|
+
get isShowDefaultError(): boolean;
|
|
158
|
+
get isInputInvalid(): boolean;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, [{ optional: true; self: true; }]>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "gtr-input", never, { "inputWrapperId": { "alias": "inputWrapperId"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputIcon": { "alias": "inputIcon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "iconFontWeight": { "alias": "iconFontWeight"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "validateLabel": { "alias": "validateLabel"; "required": false; }; "isNumber": { "alias": "isNumber"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; "required": { "alias": "required"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "inputChanged": "inputChanged"; "handleError": "handleError"; }, never, never, false, never>;
|
|
161
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
export declare class CustomInputModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomInputModule, [typeof i1.CustomInputComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomInputComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomInputModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const CONSTANTS: {
|
|
2
|
+
email_regex: RegExp;
|
|
3
|
+
password_regex: RegExp;
|
|
4
|
+
number_regex: RegExp;
|
|
5
|
+
};
|
|
6
|
+
export declare const ERROR_MESSAGES: {
|
|
7
|
+
invalid_number: string;
|
|
8
|
+
invalid_input_type: string;
|
|
9
|
+
invalid_email: string;
|
|
10
|
+
empty_field: string;
|
|
11
|
+
password_pattern: string;
|
|
12
|
+
input_not_allowed: string;
|
|
13
|
+
};
|
|
14
|
+
export type input = 'text' | 'number' | 'password' | 'email';
|
|
15
|
+
export declare enum InputType {
|
|
16
|
+
TEXT = "text",
|
|
17
|
+
NUMBER = "number",
|
|
18
|
+
PASSWORD = "password",
|
|
19
|
+
EMAIL = "email"
|
|
20
|
+
}
|
|
21
|
+
export declare enum InputState {
|
|
22
|
+
VALID = "valid",
|
|
23
|
+
INVALID = "invalid"
|
|
24
|
+
}
|
|
25
|
+
export interface InputDataResponse {
|
|
26
|
+
event: Event | KeyboardEvent;
|
|
27
|
+
value: string | number;
|
|
28
|
+
inputstate: string;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { textareaDataResponse } from './utils/gtr-textarea.types';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomTextareaComponent implements ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl;
|
|
7
|
+
constructor(ngControl: NgControl);
|
|
8
|
+
onChanged: any;
|
|
9
|
+
onTouched: any;
|
|
10
|
+
writeValue(obj: any): void;
|
|
11
|
+
registerOnChange(fn: any): void;
|
|
12
|
+
registerOnTouched(fn: any): void;
|
|
13
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
14
|
+
/**
|
|
15
|
+
* The textarea value
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* The textarea pleaceholder
|
|
20
|
+
*/
|
|
21
|
+
placeholder: string;
|
|
22
|
+
/**
|
|
23
|
+
* The textarea loading state
|
|
24
|
+
*/
|
|
25
|
+
loading: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The textarea label
|
|
28
|
+
*/
|
|
29
|
+
textareaLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* The disabled textarea
|
|
32
|
+
*/
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The wrapper id textarea
|
|
36
|
+
*/
|
|
37
|
+
textAreaWrapperId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The readonly textarea
|
|
40
|
+
*/
|
|
41
|
+
readonly: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The textarea valid boolean
|
|
44
|
+
*/
|
|
45
|
+
isValid: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The readonly textarea
|
|
48
|
+
*/
|
|
49
|
+
isOnlyView: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The default validation
|
|
52
|
+
*/
|
|
53
|
+
defaultValidation?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The error state
|
|
56
|
+
*/
|
|
57
|
+
hasError?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The is touched
|
|
60
|
+
*/
|
|
61
|
+
isTouched: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The error message to be shown
|
|
64
|
+
*/
|
|
65
|
+
errorMsg: string;
|
|
66
|
+
/**
|
|
67
|
+
* The textarea change eventemitter
|
|
68
|
+
*/
|
|
69
|
+
textareaChanged: EventEmitter<textareaDataResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* The error eventemitter
|
|
72
|
+
*/
|
|
73
|
+
handleError: EventEmitter<any>;
|
|
74
|
+
/**
|
|
75
|
+
* The textarea data to be send when textarea value changes
|
|
76
|
+
*/
|
|
77
|
+
private data;
|
|
78
|
+
/**
|
|
79
|
+
* The textarea unique id
|
|
80
|
+
*/
|
|
81
|
+
textareaId: string;
|
|
82
|
+
/**
|
|
83
|
+
* The component function to handle textarea change
|
|
84
|
+
*/
|
|
85
|
+
handleTextarea(event: Event): void;
|
|
86
|
+
/**
|
|
87
|
+
* The component function to handle textarea on focus event
|
|
88
|
+
*/
|
|
89
|
+
handleOnfocus(): void;
|
|
90
|
+
/**
|
|
91
|
+
* The component function to handle textarea on blur event
|
|
92
|
+
*/
|
|
93
|
+
handleOnBlur(): void;
|
|
94
|
+
/**
|
|
95
|
+
* The component function to verify error textarea messages
|
|
96
|
+
*/
|
|
97
|
+
hasErrorValidate: () => void;
|
|
98
|
+
/**
|
|
99
|
+
* The componentWillLoad hook
|
|
100
|
+
*/
|
|
101
|
+
componentWillLoad(): void;
|
|
102
|
+
/**
|
|
103
|
+
* The decorator used to detect every change accurred for textarea and call function on change
|
|
104
|
+
*/
|
|
105
|
+
validatetextarea(): string | null;
|
|
106
|
+
get isShowCustomError(): boolean;
|
|
107
|
+
get isShowDefaultError(): boolean;
|
|
108
|
+
get isInputInvalid(): boolean;
|
|
109
|
+
render(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaComponent, [{ optional: true; self: true; }]>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomTextareaComponent, "gtr-textarea", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "textareaLabel": { "alias": "textareaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "textAreaWrapperId": { "alias": "textAreaWrapperId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "defaultValidation": { "alias": "defaultValidation"; "required": false; }; }, { "textareaChanged": "textareaChanged"; "handleError": "handleError"; }, never, never, false, never>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./custom-textarea.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../skeleton/utils/skeleton.directive";
|
|
5
|
+
import * as i4 from "../icon/icon.module";
|
|
6
|
+
export declare class CustomTextareaModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomTextareaModule, [typeof i1.CustomTextareaComponent], [typeof i2.CommonModule, typeof i3.SkeletonDirective, typeof i4.GtrIconModule], [typeof i1.CustomTextareaComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomTextareaModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const TEXTTAREA_ERROR_MESSAGES: {
|
|
2
|
+
empty_field: string;
|
|
3
|
+
};
|
|
4
|
+
export declare enum textareaState {
|
|
5
|
+
VALID = "valid",
|
|
6
|
+
INVALID = "invalid"
|
|
7
|
+
}
|
|
8
|
+
export interface textareaDataResponse {
|
|
9
|
+
value: string | number;
|
|
10
|
+
textareastate: string;
|
|
11
|
+
invalid: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PopoverComponent implements OnInit {
|
|
4
|
+
private cdr;
|
|
5
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
isOpened: boolean;
|
|
7
|
+
showPositionIndicator: boolean;
|
|
8
|
+
moveX?: number | null;
|
|
9
|
+
moveY?: number | null;
|
|
10
|
+
padding?: number | null;
|
|
11
|
+
marginTop?: number | null;
|
|
12
|
+
marginBottom?: number | null;
|
|
13
|
+
marginLeft?: number | null;
|
|
14
|
+
marginRight?: number | null;
|
|
15
|
+
closeOnClickOutside: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
testId: string;
|
|
18
|
+
stateChanged: EventEmitter<any>;
|
|
19
|
+
popoverEl: ElementRef | undefined;
|
|
20
|
+
contentEl: ElementRef | undefined;
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
adjustedPosition: string;
|
|
23
|
+
positionMargin: string;
|
|
24
|
+
onResize(event: Event): void;
|
|
25
|
+
constructor(cdr: ChangeDetectorRef);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
togglePopover(): void;
|
|
29
|
+
handleClickOutside(event: Event): void;
|
|
30
|
+
handleKeyUp(event: KeyboardEvent): void;
|
|
31
|
+
popoverContentClicked(event: Event): void;
|
|
32
|
+
adjustPopoverPosition(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "gtr-popover", never, { "position": { "alias": "position"; "required": false; }; "isOpened": { "alias": "isOpened"; "required": false; }; "showPositionIndicator": { "alias": "showPositionIndicator"; "required": false; }; "moveX": { "alias": "moveX"; "required": false; }; "moveY": { "alias": "moveY"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "closeOnClickOutside": { "alias": "closeOnClickOutside"; "required": false; }; "id": { "alias": "id"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "stateChanged": "stateChanged"; }, never, [".gtr-popover-trigger", ".gtr-popover-content"], false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./popover.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class PopoverModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PopoverModule, [typeof i1.PopoverComponent], [typeof i2.CommonModule], [typeof i1.PopoverComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PopoverModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|