@jooler/inputs 0.0.48 → 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.
- package/esm2020/lib/choose-enum/choose-enum.component.mjs +49 -41
- package/esm2020/lib/choose-enum-renderer/choose-enum-renderer.component.mjs +1 -1
- package/esm2020/lib/choose-general-item/choose-general-item.component.mjs +1 -1
- package/esm2020/lib/custom-theme.mjs +104 -0
- package/esm2020/lib/models/enum-helper-functions.mjs +57 -0
- package/esm2020/lib/models/enum-helper.model.mjs +2 -0
- package/esm2020/lib/models/line-type-model-helper.mjs +1 -1
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/inputs.mjs +209 -42
- package/fesm2015/inputs.mjs.map +1 -1
- package/fesm2020/inputs.mjs +209 -42
- package/fesm2020/inputs.mjs.map +1 -1
- package/lib/choose-enum/choose-enum.component.d.ts +20 -14
- package/lib/custom-theme.d.ts +8 -0
- package/lib/models/enum-helper-functions.d.ts +5 -0
- package/lib/models/enum-helper.model.d.ts +6 -0
- package/lib/models/line-type-model-helper.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,28 +1,31 @@
|
|
|
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
|
-
change: EventEmitter<any>;
|
|
6
|
-
label: string;
|
|
7
6
|
appendTo: string;
|
|
8
7
|
allowAllCapsValues: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
clearable: boolean;
|
|
9
|
+
customColors: string[];
|
|
11
10
|
enumChoices: any;
|
|
12
11
|
getValuesArrayFromEnum: Function;
|
|
12
|
+
indexesToDisable: number[];
|
|
13
13
|
isChip: boolean;
|
|
14
|
+
isDropdownDisabled: boolean;
|
|
15
|
+
isItemHidden: boolean;
|
|
16
|
+
isItemDisabled: boolean;
|
|
14
17
|
isMultiple: boolean;
|
|
15
|
-
|
|
16
|
-
width: number;
|
|
17
|
-
paddingTop: number;
|
|
18
|
+
label: string;
|
|
18
19
|
labelTextAlign: string;
|
|
19
20
|
labelTextFontWeight: string;
|
|
20
21
|
labelTextFontSize: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
isDropdownDisabled: boolean;
|
|
22
|
+
paddingTop: number;
|
|
23
|
+
placeholder: string;
|
|
24
24
|
percentWidth: boolean;
|
|
25
|
-
|
|
25
|
+
selectedItem: any;
|
|
26
|
+
width: number;
|
|
27
|
+
change: EventEmitter<any>;
|
|
28
|
+
close: EventEmitter<any>;
|
|
26
29
|
constructor();
|
|
27
30
|
ngOnChanges(): void;
|
|
28
31
|
ngOnInit(): 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():
|
|
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, { "
|
|
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>;
|
|
45
51
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EnumOption } from "./enum-helper.model";
|
|
2
|
+
export declare class EnumHelperBaseClass {
|
|
3
|
+
static getEnumOptionsFromEnumClass(enumClass: any, customColors?: string[], isAllCaps?: boolean): EnumOption[];
|
|
4
|
+
static getLabelAndColorFromEnumValue(enumClass: any, enumValue: number, customColors?: string[]): EnumOption;
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
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():
|
|
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.
|
|
3
|
+
"version": "0.0.50",
|
|
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": "
|
|
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": "silvana"
|
|
52
52
|
}
|