@gettrx/core-components-angular 1.0.45 → 1.0.47

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,4 @@
1
+ import { EContrastColor } from '../parameters/colors.parameter';
2
+ export declare class ColorHelper {
3
+ static getContrastColor(hex: string, contrastValue?: number): EContrastColor;
4
+ }
@@ -6,9 +6,12 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
6
6
  touched: boolean;
7
7
  inputControl: FormControl<string | null>;
8
8
  colorControl: FormControl<string | null>;
9
+ hasBorder: boolean;
9
10
  inputLabel: string;
10
11
  invalid: boolean;
11
12
  placeholder: string;
13
+ colorPickerControls: 'default' | 'only-alpha' | 'no-alpha';
14
+ hideColorPicker: boolean;
12
15
  hidePickerTextInput: boolean;
13
16
  hideErrorMessage: boolean;
14
17
  set disabled(value: boolean);
@@ -18,6 +21,7 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
18
21
  set inputValue(value: string);
19
22
  set colorValue(value: string);
20
23
  valueChange: EventEmitter<string>;
24
+ constructor();
21
25
  ngOnInit(): void;
22
26
  private onChange;
23
27
  private onTouched;
@@ -28,5 +32,5 @@ export declare class GtrInputColorComponent implements ControlValueAccessor, OnI
28
32
  writeValue(obj: any): void;
29
33
  handleTouch(): void;
30
34
  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>;
35
+ 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
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gettrx/core-components-angular",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
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.45",
23
+ "@gettrx/core-styles": "1.0.47",
24
24
  "ngx-colors": "^3.6.0"
25
25
  },
26
26
  "module": "fesm2022/gettrx-core-components-angular.mjs",
@@ -0,0 +1,8 @@
1
+ export declare enum EContrastColor {
2
+ light = 1,
3
+ dark = 2
4
+ }
5
+ export declare const CContrastBorderColorVariable: {
6
+ 1: string;
7
+ 2: string;
8
+ };
@@ -0,0 +1,7 @@
1
+ export declare class StyleVariables {
2
+ static white: string;
3
+ static black: string;
4
+ static gray40: string;
5
+ static gray10: string;
6
+ static borderContrast: string;
7
+ }
package/public-api.d.ts CHANGED
@@ -30,3 +30,5 @@ export * from './lib/molecules/stat-card';
30
30
  export * from './lib/molecules/table';
31
31
  export * from './lib/molecules/tabs';
32
32
  export * from './lib/molecules/time-picker';
33
+ export * from './helpers/color.helper';
34
+ export * from './parameters/colors.parameter';