@gettrx/core-components-angular 1.0.45 → 1.0.46
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/helpers/color.helper.mjs +21 -0
- package/esm2022/lib/molecules/input-color/gtr-input-color.component.mjs +42 -25
- package/esm2022/parameters/colors.parameter.mjs +11 -0
- package/esm2022/parameters/variables.parameters.mjs +8 -0
- package/esm2022/public-api.mjs +3 -1
- package/esm2022/services/styles-store.service.mjs +26 -0
- package/fesm2022/gettrx-core-components-angular.mjs +96 -23
- package/fesm2022/gettrx-core-components-angular.mjs.map +1 -1
- package/helpers/color.helper.d.ts +4 -0
- package/lib/molecules/input-color/gtr-input-color.component.d.ts +6 -1
- package/package.json +2 -2
- package/parameters/colors.parameter.d.ts +8 -0
- package/parameters/variables.parameters.d.ts +7 -0
- package/public-api.d.ts +2 -0
- package/services/styles-store.service.d.ts +13 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { StylesStoreService } from '../../../services/styles-store.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class GtrInputColorComponent implements ControlValueAccessor, OnInit {
|
|
6
|
+
private stylesStore;
|
|
5
7
|
private readonly destroyRef;
|
|
6
8
|
touched: boolean;
|
|
7
9
|
inputControl: FormControl<string | null>;
|
|
@@ -9,6 +11,8 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
|
|
|
9
11
|
inputLabel: string;
|
|
10
12
|
invalid: boolean;
|
|
11
13
|
placeholder: string;
|
|
14
|
+
colorPickerControls: 'default' | 'only-alpha' | 'no-alpha';
|
|
15
|
+
hideColorPicker: boolean;
|
|
12
16
|
hidePickerTextInput: boolean;
|
|
13
17
|
hideErrorMessage: boolean;
|
|
14
18
|
set disabled(value: boolean);
|
|
@@ -18,6 +22,7 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
|
|
|
18
22
|
set inputValue(value: string);
|
|
19
23
|
set colorValue(value: string);
|
|
20
24
|
valueChange: EventEmitter<string>;
|
|
25
|
+
constructor(stylesStore: StylesStoreService);
|
|
21
26
|
ngOnInit(): void;
|
|
22
27
|
private onChange;
|
|
23
28
|
private onTouched;
|
|
@@ -28,5 +33,5 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
|
|
|
28
33
|
writeValue(obj: any): void;
|
|
29
34
|
handleTouch(): void;
|
|
30
35
|
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>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrInputColorComponent, "gtr-input-color", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "colorPickerControls": { "alias": "colorPickerControls"; "required": false; }; "hideColorPicker": { "alias": "hideColorPicker"; "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
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"description": "Angular specific wrappers for @gettrx/core-components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gettrx",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/common": "^16.1.0",
|
|
22
22
|
"@angular/core": "^16.1.0",
|
|
23
|
-
"@gettrx/core-styles": "1.0.
|
|
23
|
+
"@gettrx/core-styles": "1.0.46",
|
|
24
24
|
"ngx-colors": "^3.6.0"
|
|
25
25
|
},
|
|
26
26
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class StylesStoreService {
|
|
3
|
+
private _document;
|
|
4
|
+
constructor();
|
|
5
|
+
/**
|
|
6
|
+
* Common method to set property
|
|
7
|
+
* @param property
|
|
8
|
+
* @param value
|
|
9
|
+
*/
|
|
10
|
+
setDocumentStyleProperty(property: string, value: string): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StylesStoreService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StylesStoreService>;
|
|
13
|
+
}
|