@apipass/inputs 1.0.128 → 1.0.130
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/assets/css/inputs.scss +1 -1
- package/esm2022/input-key-value/input-key-value.component.mjs +49 -15
- package/esm2022/input-text/input-text.component.mjs +28 -6
- package/fesm2022/apipass-inputs.mjs +73 -18
- package/fesm2022/apipass-inputs.mjs.map +1 -1
- package/input-key-value/input-key-value.component.d.ts +14 -6
- package/input-text/input-text.component.d.ts +8 -3
- package/package.json +1 -1
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export interface InputKeyValueType {
|
|
4
|
-
key: string;
|
|
5
|
-
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
key?: string;
|
|
6
|
+
value?: string;
|
|
6
7
|
type?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare class InputKeyValueComponent implements OnInit {
|
|
10
|
+
private initialized;
|
|
9
11
|
private _model;
|
|
10
|
-
|
|
12
|
+
private temporaryItem;
|
|
13
|
+
size: 'DEFAULT' | 'SLIM';
|
|
14
|
+
keyField: string;
|
|
15
|
+
valueField: string;
|
|
11
16
|
labelKey: string;
|
|
12
17
|
labelValue: string;
|
|
18
|
+
removeLabel: string;
|
|
13
19
|
widthPercentageInputOptions: number;
|
|
14
20
|
inputOptionsInitSelected: string;
|
|
15
21
|
inputOptions: any[];
|
|
16
22
|
set model(model: InputKeyValueType[]);
|
|
17
23
|
get model(): InputKeyValueType[];
|
|
24
|
+
private initializeModel;
|
|
18
25
|
modelChange: EventEmitter<InputKeyValueType[]>;
|
|
19
26
|
ngOnInit(): void;
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
getNewModel(): InputKeyValueType;
|
|
28
|
+
onChangeValues(last: boolean): void;
|
|
29
|
+
removeItem(index: number): void;
|
|
22
30
|
inputOptionChanged(event: string, index: number): void;
|
|
23
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputKeyValueComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputKeyValueComponent, "input-key-value", never, { "labelKey": { "alias": "labelKey"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputKeyValueComponent, "input-key-value", never, { "size": { "alias": "size"; "required": false; }; "keyField": { "alias": "keyField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "removeLabel": { "alias": "removeLabel"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
25
33
|
}
|
|
@@ -6,6 +6,8 @@ export interface InputOptionsType {
|
|
|
6
6
|
title: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class InputTextComponent extends ValueAccessorBase<string> {
|
|
9
|
+
private _inputOptionsInitSelected;
|
|
10
|
+
private _inputOptions;
|
|
9
11
|
label: string;
|
|
10
12
|
disabled: boolean;
|
|
11
13
|
iconSuffix: string;
|
|
@@ -13,9 +15,11 @@ export declare class InputTextComponent extends ValueAccessorBase<string> {
|
|
|
13
15
|
autoComplete: string;
|
|
14
16
|
size: 'DEFAULT' | 'SLIM';
|
|
15
17
|
debounceTime: number;
|
|
16
|
-
widthPercentageInputOptions:
|
|
17
|
-
inputOptions: InputOptionsType[];
|
|
18
|
-
|
|
18
|
+
widthPercentageInputOptions: any;
|
|
19
|
+
set inputOptions(inputOptions: InputOptionsType[]);
|
|
20
|
+
get inputOptions(): InputOptionsType[];
|
|
21
|
+
set inputOptionsInitSelected(inputOptionsInitSelected: string);
|
|
22
|
+
get inputOptionsInitSelected(): string;
|
|
19
23
|
suffixIconClick: EventEmitter<boolean>;
|
|
20
24
|
prefixIconClick: EventEmitter<boolean>;
|
|
21
25
|
onDebounce: EventEmitter<string>;
|
|
@@ -30,6 +34,7 @@ export declare class InputTextComponent extends ValueAccessorBase<string> {
|
|
|
30
34
|
isDefault(): boolean;
|
|
31
35
|
widthInput(): number;
|
|
32
36
|
onOptionSelected(event: any): void;
|
|
37
|
+
getSelectWidth(): string;
|
|
33
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
|
|
34
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "input-text", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconSuffix": { "alias": "iconSuffix"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "size": { "alias": "size"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; }, { "suffixIconClick": "suffixIconClick"; "prefixIconClick": "prefixIconClick"; "onDebounce": "onDebounce"; "optionChanged": "optionChanged"; }, never, never, false, never>;
|
|
35
40
|
}
|