valtech-components 2.0.396 → 2.0.398
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/esm2022/lib/components/molecules/multi-select-search/multi-select-search.component.mjs +26 -58
- package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +316 -254
- package/esm2022/lib/components/organisms/form/form.component.mjs +69 -142
- package/esm2022/public-api.mjs +15 -17
- package/fesm2022/valtech-components.mjs +2005 -2443
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +1 -2
- package/lib/components/molecules/select-search/select-search.component.d.ts +40 -22
- package/lib/components/organisms/form/form.component.d.ts +0 -14
- package/package.json +1 -1
- package/public-api.d.ts +14 -16
- package/esm2022/lib/components/molecules/multi-select-simple/multi-select-simple.component.mjs +0 -406
- package/lib/components/molecules/multi-select-simple/multi-select-simple.component.d.ts +0 -48
|
@@ -16,7 +16,6 @@ export declare class MultiSelectSearchComponent implements OnChanges, OnDestroy
|
|
|
16
16
|
searchTerm: string;
|
|
17
17
|
filteredItems: InputOption[];
|
|
18
18
|
selectedItems: InputOption[];
|
|
19
|
-
tempSelectedItems: InputOption[];
|
|
20
19
|
displayValue: string;
|
|
21
20
|
private previousOptions;
|
|
22
21
|
private isProcessingChanges;
|
|
@@ -37,7 +36,7 @@ export declare class MultiSelectSearchComponent implements OnChanges, OnDestroy
|
|
|
37
36
|
openModal(): void;
|
|
38
37
|
preventDefaultBehavior(event: MouseEvent): void;
|
|
39
38
|
cancelModal(): void;
|
|
40
|
-
|
|
39
|
+
toggleItem(item: any): void;
|
|
41
40
|
isItemSelected(item: any): boolean;
|
|
42
41
|
clearSelection(): void;
|
|
43
42
|
applySelection(): void;
|
|
@@ -1,37 +1,55 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IonModal } from '@ionic/angular';
|
|
3
|
+
import { IconService } from '../../../services/icons.service';
|
|
2
4
|
import { InputMetadata, InputOption } from '../../types';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SelectSearchComponent implements
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
props: InputMetadata;
|
|
6
|
+
export declare class SelectSearchComponent implements OnChanges, OnDestroy {
|
|
7
|
+
modal: IonModal;
|
|
8
|
+
label: string;
|
|
8
9
|
labelProperty: string;
|
|
9
10
|
valueProperty: string;
|
|
11
|
+
multiple: boolean;
|
|
10
12
|
placeholder: string;
|
|
11
13
|
private langService;
|
|
14
|
+
constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Input configuration object.
|
|
17
|
+
* @type {InputMetadata}
|
|
18
|
+
* @property control - The Angular FormControl for the select input.
|
|
19
|
+
* @property label - The label for the select.
|
|
20
|
+
* @property options - The available options for the select.
|
|
21
|
+
* @property placeholder - The placeholder text.
|
|
22
|
+
*/
|
|
23
|
+
props: InputMetadata;
|
|
24
|
+
icon: IconService;
|
|
12
25
|
private changeDetector;
|
|
13
|
-
isOpen: boolean;
|
|
14
26
|
searchTerm: string;
|
|
15
|
-
|
|
27
|
+
filteredItems: InputOption[];
|
|
28
|
+
selectedItems: InputOption[];
|
|
16
29
|
displayValue: string;
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
private previousOptions;
|
|
31
|
+
private isProcessingChanges;
|
|
32
|
+
private valueChangesSubscription?;
|
|
19
33
|
ngOnInit(): void;
|
|
20
34
|
ngOnDestroy(): void;
|
|
21
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
private handleClickOutside;
|
|
28
|
-
private getOptionByValue;
|
|
29
|
-
private initializeOptions;
|
|
30
|
-
private filterOptions;
|
|
31
|
-
private updateDisplayValue;
|
|
36
|
+
ionViewWillEnter(): void;
|
|
37
|
+
private subscribeToValueChanges;
|
|
38
|
+
private areOptionsEqual;
|
|
39
|
+
private initializeItems;
|
|
40
|
+
private syncControlValueWithSelectedItems;
|
|
32
41
|
private applyDefaultValue;
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
onFilter(event: any): void;
|
|
43
|
+
onFocus(): void;
|
|
44
|
+
onBlur(): void;
|
|
45
|
+
openModal(): void;
|
|
46
|
+
preventDefaultBehavior(event: MouseEvent): void;
|
|
47
|
+
cancelModal(): void;
|
|
48
|
+
selectItem(item: any): void;
|
|
49
|
+
isItemSelected(item: any): boolean;
|
|
50
|
+
updateDisplayValue(): void;
|
|
51
|
+
applyChanges(): void;
|
|
52
|
+
reset(): void;
|
|
35
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchComponent, "val-select-search", never, { "
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchComponent, "val-select-search", never, { "label": { "alias": "label"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; "valueProperty": { "alias": "valueProperty"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
37
55
|
}
|
|
@@ -15,25 +15,12 @@ export declare class FormComponent implements OnInit {
|
|
|
15
15
|
form: FormGroup;
|
|
16
16
|
types: typeof InputType;
|
|
17
17
|
private subscriptions;
|
|
18
|
-
processedSections: {
|
|
19
|
-
name: string;
|
|
20
|
-
fields: InputMetadata[];
|
|
21
|
-
}[];
|
|
22
|
-
private previousValues;
|
|
23
18
|
constructor(fb: FormBuilder, elementRef: ElementRef);
|
|
24
19
|
ngOnInit(): void;
|
|
25
|
-
private createForm;
|
|
26
|
-
private processAllSections;
|
|
27
|
-
private processField;
|
|
28
|
-
private setupChangeTracking;
|
|
29
20
|
ngOnDestroy(): void;
|
|
30
21
|
trackSelectChanges(fieldName: string): void;
|
|
31
22
|
submitHandler(token?: string): Promise<void>;
|
|
32
23
|
getControl(field: string): FormControl;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated This method is now only used internally.
|
|
35
|
-
* Use processedSections property instead to avoid multiple calls.
|
|
36
|
-
*/
|
|
37
24
|
getFieldProp(field: InputMetadata): InputMetadata;
|
|
38
25
|
get isAtEndOfForm(): boolean;
|
|
39
26
|
get Form(): FormGroup;
|
|
@@ -41,7 +28,6 @@ export declare class FormComponent implements OnInit {
|
|
|
41
28
|
form: FormGroup;
|
|
42
29
|
data: FormMetadata;
|
|
43
30
|
};
|
|
44
|
-
resetField(fieldName: string, emitEvent?: boolean): void;
|
|
45
31
|
get actions(): ButtonMetadata[];
|
|
46
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
47
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "val-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onInvalid": "onInvalid"; "onSelectChange": "onSelectChange"; }, never, ["*"], true, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -20,8 +20,6 @@ export * from './lib/components/atoms/text/text.component';
|
|
|
20
20
|
export * from './lib/components/atoms/text/types';
|
|
21
21
|
export * from './lib/components/atoms/title/title.component';
|
|
22
22
|
export * from './lib/components/atoms/title/types';
|
|
23
|
-
export * from './lib/components/molecules/action-header/action-header.component';
|
|
24
|
-
export * from './lib/components/molecules/action-header/types';
|
|
25
23
|
export * from './lib/components/molecules/alert-box/alert-box.component';
|
|
26
24
|
export * from './lib/components/molecules/alert-box/types';
|
|
27
25
|
export * from './lib/components/molecules/button-group/button-group.component';
|
|
@@ -29,10 +27,6 @@ export * from './lib/components/molecules/button-group/types';
|
|
|
29
27
|
export * from './lib/components/molecules/card/card.component';
|
|
30
28
|
export * from './lib/components/molecules/card/types';
|
|
31
29
|
export * from './lib/components/molecules/check-input/check-input.component';
|
|
32
|
-
export * from './lib/components/molecules/code-display/code-display.component';
|
|
33
|
-
export * from './lib/components/molecules/code-display/types';
|
|
34
|
-
export * from './lib/components/molecules/command-display/command-display.component';
|
|
35
|
-
export * from './lib/components/molecules/command-display/types';
|
|
36
30
|
export * from './lib/components/molecules/comment-input/comment-input.component';
|
|
37
31
|
export * from './lib/components/molecules/content-loader/content-loader.component';
|
|
38
32
|
export * from './lib/components/molecules/content-loader/types';
|
|
@@ -43,8 +37,6 @@ export * from './lib/components/molecules/expandable-text/types';
|
|
|
43
37
|
export * from './lib/components/molecules/file-input/file-input.component';
|
|
44
38
|
export * from './lib/components/molecules/hint/hint.component';
|
|
45
39
|
export * from './lib/components/molecules/hour-input/hour-input.component';
|
|
46
|
-
export * from './lib/components/molecules/info/info.component';
|
|
47
|
-
export * from './lib/components/molecules/info/types';
|
|
48
40
|
export * from './lib/components/molecules/language-selector/language-selector.component';
|
|
49
41
|
export * from './lib/components/molecules/language-selector/types';
|
|
50
42
|
export * from './lib/components/molecules/layered-card/layered-card.component';
|
|
@@ -53,18 +45,12 @@ export * from './lib/components/molecules/link/link.component';
|
|
|
53
45
|
export * from './lib/components/molecules/link/types';
|
|
54
46
|
export * from './lib/components/molecules/links-cake/links-cake.component';
|
|
55
47
|
export * from './lib/components/molecules/links-cake/types';
|
|
56
|
-
export * from './lib/components/molecules/multi-select-search/multi-select-search.component';
|
|
57
|
-
export * from './lib/components/molecules/multi-select-simple/multi-select-simple.component';
|
|
58
48
|
export * from './lib/components/molecules/notes-box/notes-box.component';
|
|
59
49
|
export * from './lib/components/molecules/notes-box/types';
|
|
60
|
-
export * from './lib/components/molecules/number-from-to/number-from-to.component';
|
|
61
50
|
export * from './lib/components/molecules/number-input/number-input.component';
|
|
51
|
+
export * from './lib/components/molecules/number-from-to/number-from-to.component';
|
|
62
52
|
export * from './lib/components/molecules/password-input/password-input.component';
|
|
63
|
-
export * from './lib/components/molecules/pill/pill.component';
|
|
64
|
-
export * from './lib/components/molecules/pill/types';
|
|
65
53
|
export * from './lib/components/molecules/pin-input/pin-input.component';
|
|
66
|
-
export * from './lib/components/molecules/plain-code-box/plain-code-box.component';
|
|
67
|
-
export * from './lib/components/molecules/plain-code-box/types';
|
|
68
54
|
export * from './lib/components/molecules/popover-selector/popover-selector.component';
|
|
69
55
|
export * from './lib/components/molecules/popover-selector/types';
|
|
70
56
|
export * from './lib/components/molecules/progress-status/progress-status.component';
|
|
@@ -78,6 +64,18 @@ export * from './lib/components/molecules/select-search/select-search.component'
|
|
|
78
64
|
export * from './lib/components/molecules/text-input/text-input.component';
|
|
79
65
|
export * from './lib/components/molecules/title-block/title-block.component';
|
|
80
66
|
export * from './lib/components/molecules/title-block/types';
|
|
67
|
+
export * from './lib/components/molecules/code-display/code-display.component';
|
|
68
|
+
export * from './lib/components/molecules/code-display/types';
|
|
69
|
+
export * from './lib/components/molecules/action-header/action-header.component';
|
|
70
|
+
export * from './lib/components/molecules/action-header/types';
|
|
71
|
+
export * from './lib/components/molecules/pill/pill.component';
|
|
72
|
+
export * from './lib/components/molecules/pill/types';
|
|
73
|
+
export * from './lib/components/molecules/command-display/command-display.component';
|
|
74
|
+
export * from './lib/components/molecules/command-display/types';
|
|
75
|
+
export * from './lib/components/molecules/info/info.component';
|
|
76
|
+
export * from './lib/components/molecules/info/types';
|
|
77
|
+
export * from './lib/components/molecules/plain-code-box/plain-code-box.component';
|
|
78
|
+
export * from './lib/components/molecules/plain-code-box/types';
|
|
81
79
|
export * from './lib/components/organisms/article/article.component';
|
|
82
80
|
export * from './lib/components/organisms/article/types';
|
|
83
81
|
export * from './lib/components/organisms/banner/banner.component';
|
|
@@ -119,6 +117,6 @@ export * from './lib/shared/pipes/process-links.pipe';
|
|
|
119
117
|
export * from './lib/shared/utils/content';
|
|
120
118
|
export * from './lib/shared/utils/dom';
|
|
121
119
|
export * from './lib/shared/utils/form-defaults';
|
|
122
|
-
export { createReactiveContentMetadata, extractContentConfig, extractContentConfigWithInterpolation, interpolateStaticContent, ReactiveContentMetadata, ReactiveContentWithInterpolation, ReactiveTextMetadata, shouldUseReactiveContent, shouldUseReactiveContentWithInterpolation } from './lib/shared/utils/simple-content';
|
|
120
|
+
export { createReactiveContentMetadata, extractContentConfig, extractContentConfigWithInterpolation, interpolateStaticContent, ReactiveContentMetadata, ReactiveContentWithInterpolation, ReactiveTextMetadata, shouldUseReactiveContent, shouldUseReactiveContentWithInterpolation, } from './lib/shared/utils/simple-content';
|
|
123
121
|
export * from './lib/shared/utils/styles';
|
|
124
122
|
export * from './lib/shared/utils/text';
|