@jooler/inputs 0.0.49 → 0.0.50

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.
@@ -3,29 +3,29 @@ import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ChooseEnumComponent implements OnInit, OnChanges, ControlValueAccessor {
5
5
  items: any[];
6
- change: EventEmitter<any>;
7
- close: EventEmitter<any>;
8
- label: string;
9
6
  appendTo: string;
10
7
  allowAllCapsValues: boolean;
11
- isItemHidden: boolean;
12
- isItemDisabled: boolean;
8
+ clearable: boolean;
9
+ customColors: string[];
13
10
  enumChoices: any;
14
11
  getValuesArrayFromEnum: Function;
12
+ indexesToDisable: number[];
15
13
  isChip: boolean;
14
+ isDropdownDisabled: boolean;
15
+ isItemHidden: boolean;
16
+ isItemDisabled: boolean;
16
17
  isMultiple: boolean;
17
- placeholder: string;
18
- width: number;
19
- paddingTop: number;
18
+ label: string;
20
19
  labelTextAlign: string;
21
20
  labelTextFontWeight: string;
22
21
  labelTextFontSize: string;
23
- selectedItem: any;
24
- indexesToDisable: number[];
25
- isDropdownDisabled: boolean;
22
+ paddingTop: number;
23
+ placeholder: string;
26
24
  percentWidth: boolean;
27
- clearable: boolean;
28
- colors: string[];
25
+ selectedItem: any;
26
+ width: number;
27
+ change: EventEmitter<any>;
28
+ close: EventEmitter<any>;
29
29
  constructor();
30
30
  ngOnChanges(): void;
31
31
  ngOnInit(): void;
@@ -47,5 +47,5 @@ export declare class ChooseEnumComponent implements OnInit, OnChanges, ControlVa
47
47
  fontSize: string;
48
48
  };
49
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ChooseEnumComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<ChooseEnumComponent, "choose-enum", never, { "label": "label"; "appendTo": "appendTo"; "allowAllCapsValues": "allowAllCapsValues"; "isItemHidden": "isItemHidden"; "isItemDisabled": "isItemDisabled"; "enumChoices": "enumChoices"; "getValuesArrayFromEnum": "getValuesArrayFromEnum"; "isChip": "isChip"; "isMultiple": "isMultiple"; "placeholder": "placeholder"; "width": "width"; "paddingTop": "paddingTop"; "labelTextAlign": "labelTextAlign"; "labelTextFontWeight": "labelTextFontWeight"; "labelTextFontSize": "labelTextFontSize"; "selectedItem": "selectedItem"; "indexesToDisable": "indexesToDisable"; "isDropdownDisabled": "isDropdownDisabled"; "percentWidth": "percentWidth"; "clearable": "clearable"; }, { "change": "change"; "close": "close"; }, never, never, false>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChooseEnumComponent, "choose-enum", never, { "appendTo": "appendTo"; "allowAllCapsValues": "allowAllCapsValues"; "clearable": "clearable"; "customColors": "customColors"; "enumChoices": "enumChoices"; "getValuesArrayFromEnum": "getValuesArrayFromEnum"; "indexesToDisable": "indexesToDisable"; "isChip": "isChip"; "isDropdownDisabled": "isDropdownDisabled"; "isItemHidden": "isItemHidden"; "isItemDisabled": "isItemDisabled"; "isMultiple": "isMultiple"; "label": "label"; "labelTextAlign": "labelTextAlign"; "labelTextFontWeight": "labelTextFontWeight"; "labelTextFontSize": "labelTextFontSize"; "paddingTop": "paddingTop"; "placeholder": "placeholder"; "percentWidth": "percentWidth"; "selectedItem": "selectedItem"; "width": "width"; }, { "change": "change"; "close": "close"; }, never, never, false>;
51
51
  }
@@ -4,4 +4,5 @@ export declare class CustomTheme {
4
4
  static $joolerRed: string[];
5
5
  static $joolerPink: string[];
6
6
  static $joolerPurple: string[];
7
+ static $joolerCombo: string[];
7
8
  }
@@ -1,4 +1,5 @@
1
+ import { EnumOption } from "./enum-helper.model";
1
2
  export declare class EnumHelperBaseClass {
2
- static getValuesArrayFromEnum(enumOptions: any, isAllCaps?: boolean): any[];
3
- static getLabelAndColorFromEnumValue(enumOptions: any, enumValue: number): any;
3
+ static getEnumOptionsFromEnumClass(enumClass: any, customColors?: string[], isAllCaps?: boolean): EnumOption[];
4
+ static getLabelAndColorFromEnumValue(enumClass: any, enumValue: number, customColors?: string[]): EnumOption;
4
5
  }
@@ -0,0 +1,6 @@
1
+ export interface EnumOption {
2
+ value: number;
3
+ label: string;
4
+ description?: string;
5
+ color: string;
6
+ }
@@ -1,11 +1,11 @@
1
- import { EnumHelper } from "@jooler/shared-general-components";
1
+ import { EnumOption } from "@jooler/shared-general-components";
2
2
  import { LineType } from "./line-type.model";
3
3
  export declare class LineTypeModelHelper {
4
4
  static label: string;
5
5
  static color: string;
6
6
  static description: string;
7
7
  static value: any;
8
- static getItems(): EnumHelper[];
8
+ static getItems(): EnumOption[];
9
9
  static setStringValueAndColor(type: LineType): "gold" | "platinum" | "Gray";
10
10
  getValue(label: string): 0 | 1;
11
11
  static getLabelAndColorForValue(value: number): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jooler/inputs",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=13.0.0",
6
6
  "@angular/core": ">=13.0.0"
@@ -48,5 +48,5 @@
48
48
  "scripts": {
49
49
  "test": "echo \"Error: no test specified\" && exit 1"
50
50
  },
51
- "author": "GEORGE ASFAHANI"
51
+ "author": "silvana"
52
52
  }