@gettrx/core-components-angular 1.1.12 → 1.1.14

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.
@@ -0,0 +1,2 @@
1
+ /** Converts any CSS color (hex, rgb, hsl, etc.) to rgba with alpha */
2
+ export declare function toRGBA(color: string, alpha: number): string;
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1 @@
1
+ export { GtrTagsInputComponent } from './tag-input/gtr-tags-input.component';
@@ -0,0 +1,57 @@
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, ValidatorFn } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GtrTagsInputComponent implements ControlValueAccessor, OnInit, OnChanges {
5
+ tagInputRef: ElementRef<HTMLInputElement>;
6
+ value: string[];
7
+ inputLabel: string;
8
+ type: string;
9
+ disabled: boolean;
10
+ readonly: boolean;
11
+ dataTransactionName: string;
12
+ invalid: boolean;
13
+ placeholder: string;
14
+ options: string[];
15
+ maxTags: number;
16
+ removeLastOnBackspace: boolean;
17
+ canDeleteTags: boolean;
18
+ canAddTags: boolean;
19
+ onlyFromDropdown: boolean;
20
+ color: string;
21
+ dangerColor: string;
22
+ private _removeValidators;
23
+ set resetTagInput(state: boolean);
24
+ valueChanged: EventEmitter<string[]>;
25
+ touched: EventEmitter<boolean>;
26
+ inputStatus: EventEmitter<string>;
27
+ removeValidators: boolean;
28
+ customValidators: ValidatorFn[];
29
+ private readonly _destroyRef;
30
+ isTouched: boolean;
31
+ /** Control Value Accessor Methods */
32
+ private onChange;
33
+ private onTouched;
34
+ tagControl: FormControl<string | null>;
35
+ filteredOptions: string[];
36
+ showDropdown: boolean;
37
+ private controlDir;
38
+ private elementRef;
39
+ constructor();
40
+ ngOnChanges(changes: SimpleChanges): void;
41
+ ngOnInit(): void;
42
+ private updateDisabledState;
43
+ private applyColorVariables;
44
+ filterOptions(inputValue: string): void;
45
+ selectOption(option: string): void;
46
+ private updateTagValidators;
47
+ writeValue(value: string[] | null | undefined): void;
48
+ registerOnChange(fn: any): void;
49
+ registerOnTouched(fn: any): void;
50
+ handleBackspace(event: KeyboardEvent | Event): void;
51
+ setDisabledState(isDisabled: boolean): void;
52
+ handleBlur(): void;
53
+ addTag(event: Event): void;
54
+ removeTag(index: number): void;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<GtrTagsInputComponent, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<GtrTagsInputComponent, "gtr-tags-input", never, { "value": { "alias": "value"; "required": false; }; "inputLabel": { "alias": "inputLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "maxTags": { "alias": "maxTags"; "required": false; }; "removeLastOnBackspace": { "alias": "removeLastOnBackspace"; "required": false; }; "canDeleteTags": { "alias": "canDeleteTags"; "required": false; }; "canAddTags": { "alias": "canAddTags"; "required": false; }; "onlyFromDropdown": { "alias": "onlyFromDropdown"; "required": false; }; "color": { "alias": "color"; "required": false; }; "dangerColor": { "alias": "dangerColor"; "required": false; }; "resetTagInput": { "alias": "resetTagInput"; "required": false; }; "removeValidators": { "alias": "removeValidators"; "required": false; }; "customValidators": { "alias": "customValidators"; "required": false; }; }, { "valueChanged": "valueChanged"; "touched": "touched"; "inputStatus": "inputStatus"; }, never, ["*"], true, never>;
57
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Angular specific wrappers for @gettrx/core-components",
5
5
  "keywords": [
6
6
  "gettrx",
@@ -19,7 +19,7 @@
19
19
  "license": "MIT",
20
20
  "peerDependencies": {
21
21
  "@angular/common": "19.2.14",
22
- "@gettrx/core-styles": "1.1.12",
22
+ "@gettrx/core-styles": "1.1.14",
23
23
  "ngx-colors": "^3.6.0"
24
24
  },
25
25
  "module": "fesm2022/gettrx-core-components-angular.mjs",
package/public-api.d.ts CHANGED
@@ -31,6 +31,7 @@ export * from './lib/molecules/stat-card';
31
31
  export * from './lib/molecules/table';
32
32
  export * from './lib/molecules/tabs';
33
33
  export * from './lib/molecules/time-picker';
34
+ export * from './lib/molecules/tags-input';
34
35
  export * from './lib/directives/autosize';
35
36
  export * from './helpers/color.helper';
36
37
  export * from './parameters/colors.parameter';