@jooler/inputs 0.0.48 → 0.0.49

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,8 +1,10 @@
1
1
  import { EventEmitter, OnChanges, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
2
3
  import * as i0 from "@angular/core";
3
- export declare class ChooseEnumComponent implements OnInit, OnChanges {
4
+ export declare class ChooseEnumComponent implements OnInit, OnChanges, ControlValueAccessor {
4
5
  items: any[];
5
6
  change: EventEmitter<any>;
7
+ close: EventEmitter<any>;
6
8
  label: string;
7
9
  appendTo: string;
8
10
  allowAllCapsValues: boolean;
@@ -22,6 +24,7 @@ export declare class ChooseEnumComponent implements OnInit, OnChanges {
22
24
  indexesToDisable: number[];
23
25
  isDropdownDisabled: boolean;
24
26
  percentWidth: boolean;
27
+ clearable: boolean;
25
28
  colors: string[];
26
29
  constructor();
27
30
  ngOnChanges(): void;
@@ -33,13 +36,16 @@ export declare class ChooseEnumComponent implements OnInit, OnChanges {
33
36
  private propogateTouch;
34
37
  updateBlur(): void;
35
38
  onSelectedItemChanged(): void;
39
+ setDisabledState(isDisabled: boolean): void;
36
40
  clear(): void;
37
- setStyles(): any;
41
+ setStyles(): {
42
+ paddingTop: string;
43
+ };
38
44
  setLabelStyle(): {
39
45
  textAlign: string;
40
46
  fontWeight: string;
41
47
  fontSize: string;
42
48
  };
43
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ChooseEnumComponent, never>;
44
- 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"; }, { "change": "change"; }, never, never, false>;
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>;
45
51
  }
@@ -0,0 +1,7 @@
1
+ export declare class CustomTheme {
2
+ static $joolerBlue: string[];
3
+ static $joolerTeal: string[];
4
+ static $joolerRed: string[];
5
+ static $joolerPink: string[];
6
+ static $joolerPurple: string[];
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare class EnumHelperBaseClass {
2
+ static getValuesArrayFromEnum(enumOptions: any, isAllCaps?: boolean): any[];
3
+ static getLabelAndColorFromEnumValue(enumOptions: any, enumValue: number): any;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jooler/inputs",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=13.0.0",
6
6
  "@angular/core": ">=13.0.0"
@@ -37,6 +37,10 @@
37
37
  },
38
38
  "sideEffects": false,
39
39
  "description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.",
40
+ "bugs": {
41
+ "url": "https://github.com/HenryHamamji/erp-shared-library/issues"
42
+ },
43
+ "homepage": "https://github.com/HenryHamamji/erp-shared-library#readme",
40
44
  "main": "index.js",
41
45
  "directories": {
42
46
  "lib": "lib"
@@ -44,9 +48,5 @@
44
48
  "scripts": {
45
49
  "test": "echo \"Error: no test specified\" && exit 1"
46
50
  },
47
- "author": "mirna",
48
- "bugs": {
49
- "url": "https://github.com/HenryHamamji/erp-shared-library/issues"
50
- },
51
- "homepage": "https://github.com/HenryHamamji/erp-shared-library#readme"
51
+ "author": "GEORGE ASFAHANI"
52
52
  }