fx-form-builder-wrapper 2.0.90 → 2.0.92

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,59 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
3
- import { FormBuilder, FormGroup } from '@angular/forms';
4
- import { ApiServiceRegistry } from '@instantsys-labs/core';
5
- import { FxBaseComponent, FxSetting, FxValidation } from '@instantsys-labs/fx';
6
- import { FxBuilderWrapperService } from '../../fx-builder-wrapper.service';
7
- import * as i0 from "@angular/core";
8
- interface SubOption {
9
- label: string;
10
- value: string;
11
- }
12
- interface CustomDropdownOption {
13
- label: string;
14
- value: string;
15
- info?: string;
16
- selected: boolean;
17
- subOptions?: SubOption[];
18
- subSelection?: string | null;
19
- disabled?: boolean;
20
- touched?: boolean;
21
- }
22
- interface CustomDropdownConfig {
23
- displayMode?: 'compact' | 'ellipsis';
24
- placeholderLabel?: string;
25
- }
26
- export declare class CustomizeDropdownComponent extends FxBaseComponent implements OnInit, AfterViewInit {
27
- private cdr;
28
- private http;
29
- private fxBuilderWrapperService;
30
- private fxApiService;
31
- private fb;
32
- private eRef;
33
- private destroy$;
34
- form: FormGroup;
35
- formObject: object;
36
- dropdownOpen: boolean;
37
- formSubmitted: boolean;
38
- findingsOptions: CustomDropdownOption[];
39
- config: CustomDropdownConfig;
40
- constructor(cdr: ChangeDetectorRef, http: HttpClient, fxBuilderWrapperService: FxBuilderWrapperService, fxApiService: ApiServiceRegistry, fb: FormBuilder, eRef: ElementRef);
41
- ngAfterViewInit(): void;
42
- updateFindingsArray(): void;
43
- ngOnInit(): void;
44
- getOptions(serviceUrl: string, url: string): void;
45
- protected settings(): FxSetting[];
46
- protected validations(): FxValidation[];
47
- /** Dropdown Behavior **/
48
- toggleDropdown(): void;
49
- toggleOption(option: CustomDropdownOption, event: Event): void;
50
- /** Form & Label Helpers **/
51
- get hasSelectedFindings(): boolean;
52
- get selectedFindingsLabel(): string;
53
- /** Update Findings + Validation **/
54
- updateFindings(): void;
55
- patchExistingValues(data: any[]): void;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomizeDropdownComponent, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomizeDropdownComponent, "lib-customize-dropdown", never, {}, {}, never, never, true, never>;
58
- }
59
- export {};
@@ -1,51 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
3
- import { FormBuilder, FormGroup } from '@angular/forms';
4
- import { ApiServiceRegistry } from '@instantsys-labs/core';
5
- import { FxBaseComponent, FxSetting, FxValidation } from '@instantsys-labs/fx';
6
- import { FxBuilderWrapperService } from '../../fx-builder-wrapper.service';
7
- import * as i0 from "@angular/core";
8
- interface MultiSelectOption {
9
- label: string;
10
- value: string;
11
- selected: boolean;
12
- }
13
- export declare class MultiselectDropdownComponentForm extends FxBaseComponent implements OnInit {
14
- private cdr;
15
- private http;
16
- private fxBuilderWrapperService;
17
- private fxApiService;
18
- private fb;
19
- private eRef;
20
- form: FormGroup;
21
- dropdownOpen: boolean;
22
- searchTerm: string;
23
- placeholder: string;
24
- private destroy$;
25
- formObject: object;
26
- options: MultiSelectOption[];
27
- constructor(cdr: ChangeDetectorRef, http: HttpClient, fxBuilderWrapperService: FxBuilderWrapperService, fxApiService: ApiServiceRegistry, fb: FormBuilder, eRef: ElementRef);
28
- /** Close dropdown when clicking outside */
29
- onClickOutside(event: MouseEvent): void;
30
- ngOnInit(): void;
31
- getOptions(serviceUrl: string, url: string): void;
32
- toggleDropdown(): void;
33
- /** Filter options based on search term */
34
- get filteredOptions(): MultiSelectOption[];
35
- toggleOption(option: MultiSelectOption, event: Event): void;
36
- /** Update reactive form with selected items */
37
- updateSelectedValues(): void;
38
- /** Placeholder / Display logic */
39
- get selectedLabel(): string;
40
- onSubmit(): void;
41
- get getDropdownSearch(): string;
42
- /**
43
- * Apply or remove the array-required validator depending on the FX setting.
44
- */
45
- applyValidation(): void;
46
- protected settings(): FxSetting[];
47
- protected validations(): FxValidation[];
48
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectDropdownComponentForm, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectDropdownComponentForm, "multiselect-dropdown-form", never, {}, {}, never, never, true, never>;
50
- }
51
- export {};