@gettrx/core-components-angular 1.0.43 → 1.0.45

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.
@@ -1,16 +1,18 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, Renderer2 } from '@angular/core';
2
2
  import { GtrInputDataResponse } from './utils/gtr-input-utils';
3
3
  import { ControlValueAccessor, NgControl } from '@angular/forms';
4
4
  import * as i0 from "@angular/core";
5
- export declare class GtrInputComponent implements ControlValueAccessor {
5
+ export declare class GtrInputComponent implements ControlValueAccessor, AfterViewInit {
6
6
  ngControl: NgControl;
7
- constructor(ngControl: NgControl);
7
+ private renderer;
8
+ constructor(ngControl: NgControl, renderer: Renderer2);
8
9
  onChanged: any;
9
10
  onTouched: any;
10
11
  registerOnChange(fn: (value: any) => void): void;
11
12
  writeValue(obj: any): void;
12
13
  registerOnTouched(fn: () => void): void;
13
14
  setDisabledState(isDisabled: boolean): void;
15
+ ngAfterViewInit(): void;
14
16
  /**
15
17
  * The Skeleton loading
16
18
  */
@@ -124,6 +126,10 @@ export declare class GtrInputComponent implements ControlValueAccessor {
124
126
  * The input unique id
125
127
  */
126
128
  inputId?: string;
129
+ /**
130
+ * The input unique id
131
+ */
132
+ setFocus: boolean;
127
133
  /**
128
134
  * The component function to handle input change
129
135
  */
@@ -155,6 +161,6 @@ export declare class GtrInputComponent implements ControlValueAccessor {
155
161
  get isShowCustomError(): boolean;
156
162
  get isShowDefaultError(): boolean;
157
163
  get isInputInvalid(): boolean;
158
- static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputComponent, [{ optional: true; self: true; }]>;
159
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputComponent, "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, ["[slot='custom-error']"], false, never>;
164
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputComponent, [{ optional: true; self: true; }, null]>;
165
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputComponent, "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; }; "setFocus": { "alias": "setFocus"; "required": false; }; }, { "inputChanged": "inputChanged"; "handleError": "handleError"; }, never, ["[slot='custom-error']"], false, never>;
160
166
  }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrInputColorComponent implements ControlValueAccessor, OnInit {
5
+ private readonly destroyRef;
6
+ touched: boolean;
7
+ inputControl: FormControl<string | null>;
8
+ colorControl: FormControl<string | null>;
9
+ inputLabel: string;
10
+ invalid: boolean;
11
+ placeholder: string;
12
+ hidePickerTextInput: boolean;
13
+ hideErrorMessage: boolean;
14
+ set disabled(value: boolean);
15
+ get disabled(): boolean;
16
+ private _disabled;
17
+ set value(value: string);
18
+ set inputValue(value: string);
19
+ set colorValue(value: string);
20
+ valueChange: EventEmitter<string>;
21
+ ngOnInit(): void;
22
+ private onChange;
23
+ private onTouched;
24
+ handleValue(color: string | null): void;
25
+ registerOnChange(fn: any): void;
26
+ registerOnTouched(fn: any): void;
27
+ setDisabledState(isDisabled: boolean): void;
28
+ writeValue(obj: any): void;
29
+ handleTouch(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputColorComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputColorComponent, "gtr-input-color", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hidePickerTextInput": { "alias": "hidePickerTextInput"; "required": false; }; "hideErrorMessage": { "alias": "hideErrorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "inputValue": { "alias": "inputValue"; "required": false; }; "colorValue": { "alias": "colorValue"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
32
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./gtr-input-color.component";
3
+ import * as i2 from "../../atoms/input/gtr-input.module";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "ngx-colors";
7
+ import * as i6 from "../../atoms/icon/gtr-icon.module";
8
+ export declare class GtrInputColorModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrInputColorModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<GtrInputColorModule, [typeof i1.GtrInputColorComponent], [typeof i2.GtrInputModule, typeof i3.NgIf, typeof i4.ReactiveFormsModule, typeof i5.NgxColorsModule, typeof i6.GtrIconModule], [typeof i1.GtrInputColorComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<GtrInputColorModule>;
12
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,2 @@
1
+ export { GtrInputColorComponent } from './gtr-input-color.component';
2
+ export { GtrInputColorModule } from './gtr-input-color.module';
@@ -35,6 +35,8 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
35
35
  searchable: boolean;
36
36
  /** Allow to disable select box */
37
37
  disabled: boolean;
38
+ /** Allow to disable select box */
39
+ hideOptions: boolean;
38
40
  /** Allow to clean search when closing the select */
39
41
  cleanSearchWhenClose: boolean;
40
42
  /** Allow to enable readonly state for select box */
@@ -68,6 +70,10 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
68
70
  * Change select box to autocomplete input
69
71
  */
70
72
  autocomplete: boolean;
73
+ /**
74
+ * Reset autocomplete input
75
+ */
76
+ set resetAutocomplete(value: boolean);
71
77
  /**
72
78
  * To enable add button in select box
73
79
  */
@@ -214,5 +220,5 @@ export declare class GtrSelectComponent implements OnChanges, ControlValueAccess
214
220
  cleanSearch(): void;
215
221
  ngOnDestroy(): void;
216
222
  static ɵfac: i0.ɵɵFactoryDeclaration<GtrSelectComponent, never>;
217
- static ɵcmp: i0.ɵɵComponentDeclaration<GtrSelectComponent, "gtr-select", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatPlaceholder": { "alias": "floatPlaceholder"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "highlightLabel": { "alias": "highlightLabel"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "lazyLoaded": { "alias": "lazyLoaded"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "cleanSearchWhenClose": { "alias": "cleanSearchWhenClose"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "is_invalid": { "alias": "is_invalid"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "changeLoading": { "alias": "changeLoading"; "required": false; }; "listLoaderVariation": { "alias": "listLoaderVariation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textLimit": { "alias": "textLimit"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "enableAddButton": { "alias": "enableAddButton"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; }, { "addButtonClicked": "addButtonClicked"; "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "autocompleteInputChanged": "autocompleteInputChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; "gtrBlur": "gtrBlur"; }, never, ["[slot='custom-error']"], false, never>;
223
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrSelectComponent, "gtr-select", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatPlaceholder": { "alias": "floatPlaceholder"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "selectedLabel": { "alias": "selectedLabel"; "required": false; }; "highlightLabel": { "alias": "highlightLabel"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "isOnlyView": { "alias": "isOnlyView"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "lazyLoaded": { "alias": "lazyLoaded"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideOptions": { "alias": "hideOptions"; "required": false; }; "cleanSearchWhenClose": { "alias": "cleanSearchWhenClose"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "is_invalid": { "alias": "is_invalid"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "changeLoading": { "alias": "changeLoading"; "required": false; }; "listLoaderVariation": { "alias": "listLoaderVariation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textLimit": { "alias": "textLimit"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "resetAutocomplete": { "alias": "resetAutocomplete"; "required": false; }; "enableAddButton": { "alias": "enableAddButton"; "required": false; }; "addButtonPosition": { "alias": "addButtonPosition"; "required": false; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; }, { "addButtonClicked": "addButtonClicked"; "valueChanged": "valueChanged"; "searchChanged": "searchChanged"; "autocompleteInputChanged": "autocompleteInputChanged"; "gtrScroll": "gtrScroll"; "gtrTouched": "gtrTouched"; "gtrBlur": "gtrBlur"; }, never, ["[slot='custom-error']"], false, never>;
218
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -20,7 +20,8 @@
20
20
  "peerDependencies": {
21
21
  "@angular/common": "^16.1.0",
22
22
  "@angular/core": "^16.1.0",
23
- "@gettrx/core-styles": "1.0.43"
23
+ "@gettrx/core-styles": "1.0.45",
24
+ "ngx-colors": "^3.6.0"
24
25
  },
25
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",
26
27
  "typings": "index.d.ts",
package/public-api.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './lib/molecules/date-range-picker';
21
21
  export * from './lib/molecules/dropdown';
22
22
  export * from './lib/molecules/file-input';
23
23
  export * from './lib/molecules/form';
24
+ export * from './lib/molecules/input-color';
24
25
  export * from './lib/molecules/numeric-counter';
25
26
  export * from './lib/molecules/pagination';
26
27
  export * from './lib/molecules/select';