@wlcm/angular 19.2.5 → 22.0.1
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/README.md +37 -0
- package/button/fesm2022/wlcm-angular-button.mjs +25 -31
- package/button/fesm2022/wlcm-angular-button.mjs.map +1 -1
- package/button/package.json +25 -0
- package/button/types/wlcm-angular-button.d.ts +28 -0
- package/core/fesm2022/wlcm-angular-core.mjs +76 -92
- package/core/fesm2022/wlcm-angular-core.mjs.map +1 -1
- package/core/package.json +26 -0
- package/core/types/wlcm-angular-core.d.ts +102 -0
- package/datepicker/fesm2022/wlcm-angular-datepicker.mjs +341 -497
- package/datepicker/fesm2022/wlcm-angular-datepicker.mjs.map +1 -1
- package/datepicker/package.json +33 -0
- package/datepicker/types/wlcm-angular-datepicker.d.ts +285 -0
- package/filters/fesm2022/wlcm-angular-filters.mjs +32 -38
- package/filters/fesm2022/wlcm-angular-filters.mjs.map +1 -1
- package/filters/package.json +25 -0
- package/filters/types/wlcm-angular-filters.d.ts +81 -0
- package/forms/fesm2022/wlcm-angular-forms.mjs +378 -405
- package/forms/fesm2022/wlcm-angular-forms.mjs.map +1 -1
- package/forms/package.json +31 -0
- package/forms/types/wlcm-angular-forms.d.ts +365 -0
- package/package.json +27 -46
- package/phone-input/fesm2022/wlcm-angular-phone-input.mjs +66 -84
- package/phone-input/fesm2022/wlcm-angular-phone-input.mjs.map +1 -1
- package/phone-input/package.json +32 -0
- package/phone-input/types/wlcm-angular-phone-input.d.ts +81 -0
- package/search-field/fesm2022/wlcm-angular-search-field.mjs +25 -30
- package/search-field/fesm2022/wlcm-angular-search-field.mjs.map +1 -1
- package/search-field/package.json +28 -0
- package/search-field/types/wlcm-angular-search-field.d.ts +24 -0
- package/stepper/fesm2022/wlcm-angular-stepper.mjs +171 -294
- package/stepper/fesm2022/wlcm-angular-stepper.mjs.map +1 -1
- package/stepper/package.json +24 -0
- package/stepper/types/wlcm-angular-stepper.d.ts +114 -0
- package/styles/components/button/index.scss +25 -82
- package/styles/components/calendar/_calendar-header.scss +3 -6
- package/styles/components/calendar/_calendar.scss +10 -13
- package/styles/components/common/index.scss +4 -7
- package/styles/components/datepicker/_datepicker-input-container.scss +0 -3
- package/styles/components/datepicker/_datepicker-panel.scss +2 -5
- package/styles/components/datepicker/_datepicker-trigger.scss +0 -3
- package/styles/components/datepicker/date-range-picker/_date-range-picker-body.scss +10 -5
- package/styles/components/datepicker/date-range-picker/_date-range-picker-input.scss +4 -7
- package/styles/components/datepicker/date-range-picker/_date-range-picker-panel.scss +2 -5
- package/styles/components/forms/_autocomplete.scss +0 -3
- package/styles/components/forms/_checkbox-group.scss +0 -3
- package/styles/components/forms/_checkbox.scss +6 -8
- package/styles/components/forms/_error.scss +2 -13
- package/styles/components/forms/_form-field.scss +9 -10
- package/styles/components/forms/_label.scss +2 -11
- package/styles/components/forms/_radio.scss +13 -12
- package/styles/components/forms/_select.scss +5 -8
- package/styles/components/forms/partials/_dropdown-panel.scss +4 -6
- package/styles/components/loader/_loader.scss +5 -9
- package/styles/components/phone-input/_country-code-select.scss +0 -5
- package/styles/components/phone-input/_phone-input-container.scss +1 -6
- package/styles/components/search-field/index.scss +0 -4
- package/styles/components/stepper/_step-header.scss +8 -11
- package/styles/components/stepper/_step.scss +0 -5
- package/styles/components/stepper/_stepper-header.scss +0 -5
- package/styles/components/stepper/_stepper.scss +0 -4
- package/styles/components/table/_table-head-data.scss +6 -9
- package/styles/components/table/_table-head.scss +0 -5
- package/styles/components/table/_table-row-data.scss +2 -7
- package/styles/components/table/_table-row.scss +0 -5
- package/styles/components/table/_table.scss +0 -5
- package/styles/core/_all-theme.scss +8 -3
- package/styles/core/_tokens.scss +41 -0
- package/styles/core/_utils.scss +11 -44
- package/styles/wlcm.scss +1 -3
- package/table/fesm2022/wlcm-angular-table.mjs +130 -160
- package/table/fesm2022/wlcm-angular-table.mjs.map +1 -1
- package/table/package.json +27 -0
- package/table/types/wlcm-angular-table.d.ts +115 -0
- package/button/index.d.ts +0 -2
- package/button/lib/button.module.d.ts +0 -7
- package/button/lib/components/button/button.component.d.ts +0 -19
- package/button/lib/models/button.models.d.ts +0 -4
- package/core/index.d.ts +0 -11
- package/core/lib/components/default-loader/default-loader.component.d.ts +0 -5
- package/core/lib/components/icons/calendar-icon/calendar-icon.component.d.ts +0 -5
- package/core/lib/components/icons/chevron-down-icon/chevron-down-icon.component.d.ts +0 -5
- package/core/lib/components/icons/close-icon/close-icon.component.d.ts +0 -5
- package/core/lib/components/icons/search-icon/search-icon.component.d.ts +0 -5
- package/core/lib/components/loader/loader.component.d.ts +0 -11
- package/core/lib/constants/_index.d.ts +0 -2
- package/core/lib/constants/http.constants.d.ts +0 -2
- package/core/lib/constants/icon.contants.d.ts +0 -4
- package/core/lib/constants/loader.constants.d.ts +0 -2
- package/core/lib/directives/_index.d.ts +0 -1
- package/core/lib/directives/icon.directive.d.ts +0 -15
- package/core/lib/models/_index.d.ts +0 -2
- package/core/lib/models/icon.models.d.ts +0 -9
- package/core/lib/models/option.models.d.ts +0 -14
- package/core/lib/services/scroll-detection.api.d.ts +0 -10
- package/core/lib/utils/paginated-data-emulator.utils.d.ts +0 -9
- package/core/lib/utils/stream.utils.d.ts +0 -6
- package/datepicker/index.d.ts +0 -17
- package/datepicker/lib/components/calendar-header/calendar-header.component.d.ts +0 -24
- package/datepicker/lib/components/range/date-range-calendar-header/date-range-calendar-header.component.d.ts +0 -24
- package/datepicker/lib/components/range/date-range-picker-bottom-panel/date-range-picker-bottom-panel.component.d.ts +0 -8
- package/datepicker/lib/components/range/date-range-picker-input/date-range-picker-input.component.d.ts +0 -36
- package/datepicker/lib/components/range/double-calendar-range-picker/double-calendar-range-picker.component.d.ts +0 -35
- package/datepicker/lib/components/range/single-calendar-range-picker/single-calendar-range-picker.component.d.ts +0 -27
- package/datepicker/lib/components/single/datepicker-input-container/datepicker-input-container.component.d.ts +0 -30
- package/datepicker/lib/components/single/datepicker-panel/datepicker-panel.component.d.ts +0 -17
- package/datepicker/lib/constants/datepicker.constants.d.ts +0 -7
- package/datepicker/lib/constants/range/date-range-picker.constants.d.ts +0 -4
- package/datepicker/lib/constants/range/date-range-selection-model.constants.d.ts +0 -4
- package/datepicker/lib/constants/range/date-range-trigger-selection-model.constants.d.ts +0 -4
- package/datepicker/lib/datepicker.module.d.ts +0 -12
- package/datepicker/lib/directives/calendar.directive.d.ts +0 -5
- package/datepicker/lib/directives/datepicker-input.base.d.ts +0 -33
- package/datepicker/lib/directives/datepicker-trigger.base.d.ts +0 -33
- package/datepicker/lib/directives/ragne/date-range-picker-input-end.directive.d.ts +0 -20
- package/datepicker/lib/directives/ragne/date-range-picker-input-start.directive.d.ts +0 -20
- package/datepicker/lib/directives/ragne/date-range-picker-input.base.d.ts +0 -23
- package/datepicker/lib/directives/ragne/left-calendar.directive.d.ts +0 -17
- package/datepicker/lib/directives/ragne/right-calendar.directive.d.ts +0 -20
- package/datepicker/lib/directives/single/datepicker-input.directive.d.ts +0 -21
- package/datepicker/lib/models/date-picker.models.d.ts +0 -18
- package/datepicker/lib/models/range/data-range-calendar.models.d.ts +0 -25
- package/datepicker/lib/models/range/date-range-picker.models.d.ts +0 -18
- package/datepicker/lib/models/range/date-range-validation.models.d.ts +0 -3
- package/datepicker/lib/utils/range/date-range-input.validators.d.ts +0 -2
- package/datepicker/lib/utils/range/date-range-picker-errors.d.ts +0 -4
- package/filters/index.d.ts +0 -5
- package/filters/lib/components/filters-group/filters-group.component.d.ts +0 -6
- package/filters/lib/constants/filter.constants.d.ts +0 -3
- package/filters/lib/constants/index.d.ts +0 -1
- package/filters/lib/directives/filter.directive.d.ts +0 -5
- package/filters/lib/directives/index.d.ts +0 -1
- package/filters/lib/filters.module.d.ts +0 -9
- package/filters/lib/models/array-filter.models.d.ts +0 -19
- package/filters/lib/models/filter.models.d.ts +0 -19
- package/filters/lib/models/filters-group.models.d.ts +0 -22
- package/filters/lib/models/index.d.ts +0 -3
- package/forms/index.d.ts +0 -12
- package/forms/lib/forms/components/autocomplete/autocomplete.component.d.ts +0 -76
- package/forms/lib/forms/components/checkbox/checkbox.component.d.ts +0 -28
- package/forms/lib/forms/components/checkbox-group/checkbox-group.component.d.ts +0 -25
- package/forms/lib/forms/components/error/error.component.d.ts +0 -5
- package/forms/lib/forms/components/form-field/form-field.component.d.ts +0 -34
- package/forms/lib/forms/components/index.d.ts +0 -8
- package/forms/lib/forms/components/label/label.component.d.ts +0 -7
- package/forms/lib/forms/components/partials/autocomplete-suffix/autocomplete-suffix.component.d.ts +0 -10
- package/forms/lib/forms/components/partials/index.d.ts +0 -1
- package/forms/lib/forms/components/select/select.component.d.ts +0 -90
- package/forms/lib/forms/constants/form-elements.constants.d.ts +0 -6
- package/forms/lib/forms/constants/form-errors.constants.d.ts +0 -4
- package/forms/lib/forms/constants/form-field.constants.d.ts +0 -1
- package/forms/lib/forms/constants/form-state-handlers.constants.d.ts +0 -6
- package/forms/lib/forms/constants/index.d.ts +0 -5
- package/forms/lib/forms/constants/select.constants.d.ts +0 -3
- package/forms/lib/forms/directives/autocomplete.directive.d.ts +0 -16
- package/forms/lib/forms/directives/form-field-custom-container.directive.d.ts +0 -8
- package/forms/lib/forms/directives/form-field-hint.directive.d.ts +0 -5
- package/forms/lib/forms/directives/form-field-prefix.directive.d.ts +0 -6
- package/forms/lib/forms/directives/form-field-suffix.directive.d.ts +0 -5
- package/forms/lib/forms/directives/input.directive.d.ts +0 -14
- package/forms/lib/forms/directives/select-input-binder.directive.d.ts +0 -5
- package/forms/lib/forms/forms.module.d.ts +0 -19
- package/forms/lib/forms/models/_index.d.ts +0 -5
- package/forms/lib/forms/models/autocomplete.models.d.ts +0 -9
- package/forms/lib/forms/models/form-errors.models.d.ts +0 -5
- package/forms/lib/forms/models/form.models.d.ts +0 -11
- package/forms/lib/forms/models/input.models.d.ts +0 -13
- package/forms/lib/forms/models/select.models.d.ts +0 -9
- package/forms/lib/forms/pipes/errors-mapper.pipe.d.ts +0 -17
- package/forms/lib/forms/services/form-state-handler.service.d.ts +0 -10
- package/forms/lib/forms/services/index.d.ts +0 -2
- package/forms/lib/forms/services/places.api.d.ts +0 -11
- package/phone-input/index.d.ts +0 -4
- package/phone-input/lib/components/country-code-select/country-code-select.component.d.ts +0 -15
- package/phone-input/lib/components/phone-input-container/phone-input-container.component.d.ts +0 -30
- package/phone-input/lib/constants/country-code-options.constants.d.ts +0 -3
- package/phone-input/lib/constants/phone-adapter.constants.d.ts +0 -3
- package/phone-input/lib/directives/phone-input.directive.d.ts +0 -36
- package/phone-input/lib/models/country-code.models.d.ts +0 -7
- package/phone-input/lib/models/phone-adapter.models.d.ts +0 -10
- package/phone-input/lib/models/phone.models.d.ts +0 -3
- package/phone-input/lib/phone-input.module.d.ts +0 -9
- package/phone-input/lib/pipes/phone-code.pipe.d.ts +0 -8
- package/search-field/index.d.ts +0 -2
- package/search-field/lib/components/search-field/search-field.component.d.ts +0 -16
- package/search-field/lib/search-field.module.d.ts +0 -8
- package/stepper/index.d.ts +0 -10
- package/stepper/lib/components/step/step.component.d.ts +0 -16
- package/stepper/lib/components/step-header/step-header.component.d.ts +0 -20
- package/stepper/lib/components/stepper/stepper.component.d.ts +0 -6
- package/stepper/lib/components/stepper-header/stepper-header.component.d.ts +0 -8
- package/stepper/lib/constants/step.constants.d.ts +0 -4
- package/stepper/lib/constants/stepper.stepper.d.ts +0 -3
- package/stepper/lib/directives/load-on-active-step.directive.d.ts +0 -13
- package/stepper/lib/models/step.models.d.ts +0 -43
- package/stepper/lib/models/stepper.models.d.ts +0 -44
- package/stepper/lib/stepper.module.d.ts +0 -12
- package/styles/core/_core.scss +0 -10
- package/table/index.d.ts +0 -9
- package/table/lib/components/table/table.component.d.ts +0 -24
- package/table/lib/components/table-head/table-head.component.d.ts +0 -8
- package/table/lib/components/table-head-actions/table-head-actions.component.d.ts +0 -12
- package/table/lib/components/table-head-data/table-head-data.component.d.ts +0 -5
- package/table/lib/components/table-row/table-row.component.d.ts +0 -23
- package/table/lib/components/table-row-actions/table-row-actions.component.d.ts +0 -5
- package/table/lib/components/table-row-data/table-row-data.component.d.ts +0 -5
- package/table/lib/components/table-row-spacer/table-row-spacer.component.d.ts +0 -5
- package/table/lib/constants/table-row.constants.d.ts +0 -3
- package/table/lib/constants/table.constants.d.ts +0 -3
- package/table/lib/directives/scrollable-table-container.directive.d.ts +0 -13
- package/table/lib/models/table-config-manager.models.d.ts +0 -12
- package/table/lib/models/table-row.models.d.ts +0 -10
- package/table/lib/models/table-selection-model.d.ts +0 -25
- package/table/lib/models/table.models.d.ts +0 -4
- package/table/lib/pipes/table-row-injector.pipe.d.ts +0 -9
- package/table/lib/table.module.d.ts +0 -13
- package/table/lib/utils/table-errors.utils.d.ts +0 -3
package/forms/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './lib/forms/forms.module';
|
|
2
|
-
export * from './lib/forms/models/_index';
|
|
3
|
-
export * from './lib/forms/constants/index';
|
|
4
|
-
export * from './lib/forms/directives/form-field-custom-container.directive';
|
|
5
|
-
export * from './lib/forms/directives/select-input-binder.directive';
|
|
6
|
-
export * from './lib/forms/directives/form-field-prefix.directive';
|
|
7
|
-
export * from './lib/forms/directives/form-field-suffix.directive';
|
|
8
|
-
export * from './lib/forms/directives/form-field-hint.directive';
|
|
9
|
-
export * from './lib/forms/constants/form-field.constants';
|
|
10
|
-
export * from './lib/forms/directives/input.directive';
|
|
11
|
-
export * from './lib/forms/services/places.api';
|
|
12
|
-
export * from './lib/forms/components';
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Injector, InputSignal, OnInit, OutputEmitterRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, FormControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import { WlcmAutocompleteOption, WlcmSelectOptionFormat } from '@wlcm/angular/core';
|
|
5
|
-
import { WlcmAutocomplete, WlcmAutocompleteValue } from '../../models/autocomplete.models';
|
|
6
|
-
import { WlcmPaginatedData, WlcmQueryParams } from '@wlcm/common';
|
|
7
|
-
import { WlcmFormFieldInput } from '../../models/input.models';
|
|
8
|
-
import { WlcmFormField } from '../../models/form.models';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@wlcm/common";
|
|
11
|
-
type Option = WlcmAutocompleteOption;
|
|
12
|
-
export declare class WlcmAutocompleteComponent extends WlcmAutocomplete implements OnInit, ControlValueAccessor, Validator, AfterViewInit, WlcmFormFieldInput {
|
|
13
|
-
private injector;
|
|
14
|
-
private formField;
|
|
15
|
-
fetchPaginatedOptions: (params: WlcmQueryParams) => Observable<WlcmPaginatedData<Option>>;
|
|
16
|
-
label: string;
|
|
17
|
-
required: boolean;
|
|
18
|
-
placeholder: string;
|
|
19
|
-
optionTemplate?: TemplateRef<{
|
|
20
|
-
$implicit: WlcmAutocompleteOption;
|
|
21
|
-
}>;
|
|
22
|
-
queryParams: WlcmQueryParams;
|
|
23
|
-
selectOptionFormat: InputSignal<WlcmSelectOptionFormat>;
|
|
24
|
-
noResultsTemplate: InputSignal<TemplateRef<{
|
|
25
|
-
$implicit: WlcmAutocompleteValue;
|
|
26
|
-
loading: boolean;
|
|
27
|
-
}> | undefined>;
|
|
28
|
-
selected: OutputEmitterRef<WlcmAutocompleteValue>;
|
|
29
|
-
readonly control: FormControl<WlcmAutocompleteValue>;
|
|
30
|
-
private readonly _loadMore$;
|
|
31
|
-
private readonly _options$;
|
|
32
|
-
protected readonly options$: Observable<Option[]>;
|
|
33
|
-
protected readonly closed$: Subject<void>;
|
|
34
|
-
private readonly _focusStream$;
|
|
35
|
-
private readonly _blurStream$;
|
|
36
|
-
private readonly _loading$;
|
|
37
|
-
focus$: Observable<unknown>;
|
|
38
|
-
blur$: Observable<unknown>;
|
|
39
|
-
loading$: Observable<boolean>;
|
|
40
|
-
private _changed?;
|
|
41
|
-
private _touched?;
|
|
42
|
-
private _onValidatorChange?;
|
|
43
|
-
private adjustedValue$;
|
|
44
|
-
private _paginatedData;
|
|
45
|
-
private _reloadOptions$;
|
|
46
|
-
private viewReady$;
|
|
47
|
-
private _preferredOverlayOrigin;
|
|
48
|
-
inputElement: ElementRef<HTMLInputElement>;
|
|
49
|
-
private autocompleteTrigger;
|
|
50
|
-
private autocomplete;
|
|
51
|
-
constructor(injector: Injector, formField: WlcmFormField);
|
|
52
|
-
ngOnInit(): void;
|
|
53
|
-
ngAfterViewInit(): void;
|
|
54
|
-
displayWith(value: Option | string): string;
|
|
55
|
-
focus(): void;
|
|
56
|
-
isFocused(): boolean;
|
|
57
|
-
loadMore(): void;
|
|
58
|
-
writeValue(value: WlcmAutocompleteValue): void;
|
|
59
|
-
registerOnChange(callback: (value: WlcmAutocompleteValue) => void): void;
|
|
60
|
-
registerOnTouched(callback: () => void): void;
|
|
61
|
-
setDisabledState(isDisabled: boolean): void;
|
|
62
|
-
reloadOptions(): void;
|
|
63
|
-
blured(): void;
|
|
64
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
65
|
-
registerOnValidatorChange(fn: () => void): void;
|
|
66
|
-
private prepareValueForPatch;
|
|
67
|
-
private loadOptions;
|
|
68
|
-
private handleLoadMoreEvent;
|
|
69
|
-
private handleControlValueChanges;
|
|
70
|
-
private attachFocusBlurListeners;
|
|
71
|
-
private handleAdjustedValue;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmAutocompleteComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmAutocompleteComponent, "wlcm-autocomplete", ["wlcmAutocomplete"], { "fetchPaginatedOptions": { "alias": "fetchPaginatedOptions"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "selectOptionFormat": { "alias": "selectOptionFormat"; "required": false; "isSignal": true; }; "noResultsTemplate": { "alias": "noResultsTemplate"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
74
|
-
static ngAcceptInputType_queryParams: i1.WlcmQueryParams;
|
|
75
|
-
}
|
|
76
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, InputSignal } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
4
|
-
import { WlcmFormControl } from '../../models/form.models';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class WlcmCheckboxComponent implements ControlValueAccessor, Validator {
|
|
7
|
-
private changeDetectorRef;
|
|
8
|
-
private parentFormMember;
|
|
9
|
-
value: InputSignal<string | undefined>;
|
|
10
|
-
changed: EventEmitter<boolean>;
|
|
11
|
-
private _changed?;
|
|
12
|
-
private _touched?;
|
|
13
|
-
private _validatorChanged?;
|
|
14
|
-
protected control: FormControl;
|
|
15
|
-
constructor(changeDetectorRef: ChangeDetectorRef, parentFormMember: WlcmFormControl);
|
|
16
|
-
handleChange(value: MatCheckboxChange): void;
|
|
17
|
-
writeValue(value: boolean): void;
|
|
18
|
-
validate: () => ValidationErrors | null;
|
|
19
|
-
registerOnChange(callback: (value: boolean) => void): void;
|
|
20
|
-
registerOnTouched(callback: () => void): void;
|
|
21
|
-
registerOnValidatorChange(callback: () => void): void;
|
|
22
|
-
setDisabledState(isDisabled: boolean): void;
|
|
23
|
-
get checked(): boolean;
|
|
24
|
-
set checked(value: boolean);
|
|
25
|
-
private handleStateChange;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmCheckboxComponent, [null, { optional: true; }]>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmCheckboxComponent, "wlcm-checkbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, ["*"], true, never>;
|
|
28
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, Signal } from '@angular/core';
|
|
2
|
-
import { WlcmCheckboxComponent } from '../checkbox/checkbox.component';
|
|
3
|
-
import { ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WlcmCheckboxGroupComponent implements AfterContentInit, ControlValueAccessor, Validator {
|
|
6
|
-
checkboxes: Signal<readonly WlcmCheckboxComponent[]>;
|
|
7
|
-
private checkboxesMap;
|
|
8
|
-
private values;
|
|
9
|
-
private checkboxesListUpdated;
|
|
10
|
-
private _changed?;
|
|
11
|
-
private _touched?;
|
|
12
|
-
private _validatorChanged?;
|
|
13
|
-
constructor();
|
|
14
|
-
ngAfterContentInit(): void;
|
|
15
|
-
writeValue(value: string[]): void;
|
|
16
|
-
validate: () => ValidationErrors | null;
|
|
17
|
-
registerOnChange(callback: (value: string[]) => void): void;
|
|
18
|
-
registerOnTouched(callback: () => void): void;
|
|
19
|
-
registerOnValidatorChange(callback: () => void): void;
|
|
20
|
-
private updateControl;
|
|
21
|
-
private updateCheckboxes;
|
|
22
|
-
private handleCheckboxesToggle;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmCheckboxGroupComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmCheckboxGroupComponent, "wlcm-checkbox-group", never, {}, {}, ["checkboxes"], ["wlcm-checkbox"], true, never>;
|
|
25
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { WlcmFormFieldCustomContainerDirective } from '../../directives/form-field-custom-container.directive';
|
|
4
|
-
import { WlcmFormFieldPrefixDirective } from '../../directives/form-field-prefix.directive';
|
|
5
|
-
import { WlcmFormControl } from '../../models/form.models';
|
|
6
|
-
import { WlcmFormFieldSuffixDirective } from '../../directives/form-field-suffix.directive';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class WlcmFormFieldComponent implements AfterViewInit {
|
|
9
|
-
private parentFormMember;
|
|
10
|
-
private changeDetectorRef;
|
|
11
|
-
displayErrorMessages: boolean;
|
|
12
|
-
private ngControl?;
|
|
13
|
-
private controlContainer?;
|
|
14
|
-
private _inputRef?;
|
|
15
|
-
protected prefix?: WlcmFormFieldPrefixDirective;
|
|
16
|
-
protected suffix?: WlcmFormFieldSuffixDirective;
|
|
17
|
-
protected customContainer?: WlcmFormFieldCustomContainerDirective;
|
|
18
|
-
protected defaultContainer?: ElementRef<HTMLElement>;
|
|
19
|
-
get isFocused(): boolean;
|
|
20
|
-
get isRequired(): boolean | undefined;
|
|
21
|
-
get isInvalid(): boolean | undefined;
|
|
22
|
-
get isTouched(): boolean | undefined;
|
|
23
|
-
get isDisabled(): boolean | undefined;
|
|
24
|
-
constructor(parentFormMember: WlcmFormControl, changeDetectorRef: ChangeDetectorRef);
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
focus(): void;
|
|
27
|
-
get control(): AbstractControl | null;
|
|
28
|
-
get inputContainer(): ElementRef<HTMLElement>;
|
|
29
|
-
private handleStateChanges;
|
|
30
|
-
private get inputRef();
|
|
31
|
-
private get controlEvents();
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormFieldComponent, [{ optional: true; }, null]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmFormFieldComponent, "wlcm-form-field", never, { "displayErrorMessages": { "alias": "displayErrorMessages"; "required": false; }; }, {}, ["ngControl", "controlContainer", "_inputRef", "prefix", "suffix", "customContainer"], ["wlcm-label", "[wlcmFormFieldCustomContainer]", "[wlcmFormFieldPrefix]", "[wlcmInput]", "[wlcmFormFieldSuffix]", "[wlcmFormFieldHint]"], true, never>;
|
|
34
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './autocomplete/autocomplete.component';
|
|
2
|
-
export * from './checkbox-group/checkbox-group.component';
|
|
3
|
-
export * from './form-field/form-field.component';
|
|
4
|
-
export * from './checkbox/checkbox.component';
|
|
5
|
-
export * from './select/select.component';
|
|
6
|
-
export * from './error/error.component';
|
|
7
|
-
export * from './label/label.component';
|
|
8
|
-
export * from './partials';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WlcmLabelComponent {
|
|
3
|
-
required: boolean;
|
|
4
|
-
get isRequired(): boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmLabelComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmLabelComponent, "wlcm-label", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
7
|
-
}
|
package/forms/lib/forms/components/partials/autocomplete-suffix/autocomplete-suffix.component.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputSignal } from '@angular/core';
|
|
2
|
-
import { WlcmIconName } from '@wlcm/angular/core';
|
|
3
|
-
import { WlcmAutocomplete } from '../../../models/autocomplete.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WlcmAutocompleteSuffixComponent {
|
|
6
|
-
autocomplete: InputSignal<WlcmAutocomplete>;
|
|
7
|
-
readonly WlcmIconName: typeof WlcmIconName;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmAutocompleteSuffixComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmAutocompleteSuffixComponent, "wlcm-autocomplete-suffix", never, { "autocomplete": { "alias": "autocomplete"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './autocomplete-suffix/autocomplete-suffix.component';
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, InputSignal, NgZone, OutputEmitterRef, Signal, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { MatOption, MatSelect, MatSelectChange } from '@angular/material/select';
|
|
4
|
-
import { ScrollDetectionApi, WlcmIconName, WlcmOption, WlcmSelectOptionFormat } from '@wlcm/angular/core';
|
|
5
|
-
import { WlcmFormControl, WlcmFormField, WlcmFormFieldInput } from '../../models/_index';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { IsOptionDisabledFn, WlcmCanSelectFn, WlcmSelectValue } from '../../models/select.models';
|
|
8
|
-
import { WlcmQueryParams, WlcmPaginatedData } from '@wlcm/common';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../directives/select-input-binder.directive";
|
|
11
|
-
type OptionTemplateContext = TemplateRef<{
|
|
12
|
-
$implicit: WlcmOption;
|
|
13
|
-
}>;
|
|
14
|
-
export declare class WlcmSelectComponent implements WlcmFormFieldInput, ControlValueAccessor, Validator {
|
|
15
|
-
private zone;
|
|
16
|
-
private changeDetectorRef;
|
|
17
|
-
private scrollDetectionApi;
|
|
18
|
-
private formField;
|
|
19
|
-
private parentFormMember;
|
|
20
|
-
multiple: boolean;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
fetchPaginatedOptions?: (params: WlcmQueryParams) => Observable<WlcmPaginatedData<WlcmOption>>;
|
|
23
|
-
canSelect: WlcmCanSelectFn;
|
|
24
|
-
queryParams: WlcmQueryParams;
|
|
25
|
-
paginated: InputSignal<boolean>;
|
|
26
|
-
options: InputSignal<WlcmOption[]>;
|
|
27
|
-
paginatedOptions: WritableSignal<WlcmOption[]>;
|
|
28
|
-
selectOptionFormat: InputSignal<WlcmSelectOptionFormat>;
|
|
29
|
-
optionTemplate: InputSignal<TemplateRef<OptionTemplateContext> | null>;
|
|
30
|
-
triggerTemplate: InputSignal<TemplateRef<MatOption | MatOption[]> | undefined>;
|
|
31
|
-
isOptionDisabled: InputSignal<IsOptionDisabledFn>;
|
|
32
|
-
selectionChange: OutputEmitterRef<MatSelectChange>;
|
|
33
|
-
opened: OutputEmitterRef<void>;
|
|
34
|
-
closed: OutputEmitterRef<void>;
|
|
35
|
-
readonly value: WritableSignal<WlcmSelectValue | null>;
|
|
36
|
-
readonly disabled: WritableSignal<boolean>;
|
|
37
|
-
readonly WlcmIconName: typeof WlcmIconName;
|
|
38
|
-
private _changed?;
|
|
39
|
-
private _touched?;
|
|
40
|
-
private _validatorChanged?;
|
|
41
|
-
private _paginatedData;
|
|
42
|
-
private _previousValue;
|
|
43
|
-
private _optionsCache;
|
|
44
|
-
computedOptions: Signal<WlcmOption[]>;
|
|
45
|
-
prefilledOptions: WritableSignal<WlcmOption[]>;
|
|
46
|
-
matSelect: MatSelect;
|
|
47
|
-
openPanel(): void;
|
|
48
|
-
protected matOptions: Signal<ReadonlyArray<MatOption>>;
|
|
49
|
-
private readonly _focusStream$;
|
|
50
|
-
private readonly _blurStream$;
|
|
51
|
-
focus$: Observable<unknown>;
|
|
52
|
-
blur$: Observable<unknown>;
|
|
53
|
-
private adjustedValue$;
|
|
54
|
-
private viewReady$;
|
|
55
|
-
private selected$;
|
|
56
|
-
constructor(zone: NgZone, changeDetectorRef: ChangeDetectorRef, scrollDetectionApi: ScrollDetectionApi, formField: WlcmFormField, parentFormMember: WlcmFormControl);
|
|
57
|
-
ngAfterViewInit(): void;
|
|
58
|
-
compareWith: (optionA: WlcmOption | string, optionB: WlcmOption | string) => boolean;
|
|
59
|
-
focus: () => void;
|
|
60
|
-
isFocused: () => boolean;
|
|
61
|
-
select(event: MatSelectChange): void;
|
|
62
|
-
private areOptionsEqual;
|
|
63
|
-
private revertPreviousValue;
|
|
64
|
-
private updateValue;
|
|
65
|
-
private validateSelectedOption;
|
|
66
|
-
protected panelOpened(): void;
|
|
67
|
-
protected panelClosed(): void;
|
|
68
|
-
updateOptionsStatus(): void;
|
|
69
|
-
writeValue(value: WlcmSelectValue): void;
|
|
70
|
-
registerOnChange(callback: (value: WlcmSelectValue) => void): void;
|
|
71
|
-
registerOnTouched(callback: () => void): void;
|
|
72
|
-
registerOnValidatorChange(callback: () => void): void;
|
|
73
|
-
setDisabledState(isDisabled: boolean): void;
|
|
74
|
-
validate(): ValidationErrors | null;
|
|
75
|
-
get isOpen(): boolean;
|
|
76
|
-
private prepareValueForPatch;
|
|
77
|
-
private formatValue;
|
|
78
|
-
private formatOption;
|
|
79
|
-
private loadPaginatedOptions;
|
|
80
|
-
private loadMorePaginatedOptions;
|
|
81
|
-
private cacheOptions;
|
|
82
|
-
private syncPrefilledOptions;
|
|
83
|
-
private prefillOptions;
|
|
84
|
-
private handleScrollDown;
|
|
85
|
-
private handleStateChange;
|
|
86
|
-
private handleAdjustedValue;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmSelectComponent, [null, null, null, null, { optional: true; }]>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmSelectComponent, "wlcm-select", never, { "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "fetchPaginatedOptions": { "alias": "fetchPaginatedOptions"; "required": false; }; "canSelect": { "alias": "canSelect"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "paginated": { "alias": "paginated"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "selectOptionFormat": { "alias": "selectOptionFormat"; "required": false; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "triggerTemplate": { "alias": "triggerTemplate"; "required": false; "isSignal": true; }; "isOptionDisabled": { "alias": "isOptionDisabled"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "opened": "opened"; "closed": "closed"; }, never, never, true, [{ directive: typeof i1.WlcmSelectInputBinderDirective; inputs: {}; outputs: {}; }]>;
|
|
89
|
-
}
|
|
90
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { WlcmInputBinder, WlcmInputGetter } from '../models/input.models';
|
|
3
|
-
import { WlcmFormField } from '../models/form.models';
|
|
4
|
-
export declare const WLCM_INPUT: InjectionToken<WlcmInputGetter>;
|
|
5
|
-
export declare const WLCM_INPUT_BINDER: InjectionToken<WlcmInputBinder>;
|
|
6
|
-
export declare const WLCM_FORM_FIELD: InjectionToken<WlcmFormField>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WLCM_FORM_FIELD_INPUT_CLASS: string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
import { WlcmForm, WlcmFormControl } from '../models/form.models';
|
|
3
|
-
export declare const WLCM_FORM: InjectionToken<WlcmForm>;
|
|
4
|
-
export declare const WLCM_FORM_PROVIDER: Provider;
|
|
5
|
-
export declare const WLCM_FORM_CONTROL: InjectionToken<WlcmFormControl>;
|
|
6
|
-
export declare const WLCM_FORM_CONTROL_PROVIDER: Provider;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, NgZone } from '@angular/core';
|
|
2
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AutocompleteDirective {
|
|
5
|
-
private zone;
|
|
6
|
-
private autocomplete;
|
|
7
|
-
panelScrolled: EventEmitter<void>;
|
|
8
|
-
private _scrollHeight;
|
|
9
|
-
private _scrollHeightChanged;
|
|
10
|
-
constructor(zone: NgZone, autocomplete: MatAutocomplete);
|
|
11
|
-
private handleOpenEvent;
|
|
12
|
-
private handleScrolling;
|
|
13
|
-
private setScrollHscrollHeight;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteDirective, [null, { optional: true; host: true; }]>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AutocompleteDirective, "[wlcmAutocomplete]", never, {}, { "panelScrolled": "panelScrolled"; }, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class WlcmFormFieldCustomContainerDirective {
|
|
4
|
-
elementRef: ElementRef<HTMLElement>;
|
|
5
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormFieldCustomContainerDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmFormFieldCustomContainerDirective, "[wlcmFormFieldCustomContainer]", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WlcmFormFieldHintDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormFieldHintDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmFormFieldHintDirective, "[wlcmFormFieldHint]", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WlcmFormFieldPrefixDirective {
|
|
3
|
-
handlerClick: (event: MouseEvent) => void;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormFieldPrefixDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmFormFieldPrefixDirective, "[wlcmFormFieldPrefix]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WlcmFormFieldSuffixDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormFieldSuffixDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmFormFieldSuffixDirective, "[wlcmFormFieldSuffix]", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { WlcmFormFieldInput } from '../models/input.models';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WlcmInputDirective implements WlcmFormFieldInput {
|
|
6
|
-
private _elementRef;
|
|
7
|
-
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
8
|
-
focus: () => void;
|
|
9
|
-
isFocused: () => boolean;
|
|
10
|
-
focus$: Observable<unknown>;
|
|
11
|
-
blur$: Observable<unknown>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmInputDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmInputDirective, "[wlcmInput]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class WlcmSelectInputBinderDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmSelectInputBinderDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmSelectInputBinderDirective, "[wlcmSelectInputBinder]", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/form-field/form-field.component";
|
|
3
|
-
import * as i2 from "./components/autocomplete/autocomplete.component";
|
|
4
|
-
import * as i3 from "./components/partials/autocomplete-suffix/autocomplete-suffix.component";
|
|
5
|
-
import * as i4 from "./components/checkbox-group/checkbox-group.component";
|
|
6
|
-
import * as i5 from "./components/checkbox/checkbox.component";
|
|
7
|
-
import * as i6 from "./components/select/select.component";
|
|
8
|
-
import * as i7 from "./components/label/label.component";
|
|
9
|
-
import * as i8 from "./directives/input.directive";
|
|
10
|
-
import * as i9 from "./directives/form-field-custom-container.directive";
|
|
11
|
-
import * as i10 from "./directives/form-field-suffix.directive";
|
|
12
|
-
import * as i11 from "./directives/form-field-prefix.directive";
|
|
13
|
-
import * as i12 from "./directives/form-field-hint.directive";
|
|
14
|
-
import * as i13 from "@angular/material/radio";
|
|
15
|
-
export declare class WlcmFormsModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmFormsModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WlcmFormsModule, never, [typeof i1.WlcmFormFieldComponent, typeof i2.WlcmAutocompleteComponent, typeof i3.WlcmAutocompleteSuffixComponent, typeof i4.WlcmCheckboxGroupComponent, typeof i5.WlcmCheckboxComponent, typeof i6.WlcmSelectComponent, typeof i7.WlcmLabelComponent, typeof i8.WlcmInputDirective, typeof i9.WlcmFormFieldCustomContainerDirective, typeof i10.WlcmFormFieldSuffixDirective, typeof i11.WlcmFormFieldPrefixDirective, typeof i12.WlcmFormFieldHintDirective, typeof i13.MatRadioModule], [typeof i1.WlcmFormFieldComponent, typeof i2.WlcmAutocompleteComponent, typeof i3.WlcmAutocompleteSuffixComponent, typeof i4.WlcmCheckboxGroupComponent, typeof i5.WlcmCheckboxComponent, typeof i6.WlcmSelectComponent, typeof i7.WlcmLabelComponent, typeof i8.WlcmInputDirective, typeof i9.WlcmFormFieldCustomContainerDirective, typeof i10.WlcmFormFieldSuffixDirective, typeof i11.WlcmFormFieldPrefixDirective, typeof i12.WlcmFormFieldHintDirective, typeof i13.MatRadioModule]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<WlcmFormsModule>;
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { WlcmAutocompleteOption } from '@wlcm/angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type WlcmAutocompleteValue = WlcmAutocompleteOption | string | null;
|
|
5
|
-
export declare abstract class WlcmAutocomplete {
|
|
6
|
-
abstract loading$: Observable<boolean>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmAutocomplete, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WlcmAutocomplete, never, never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface WlcmForm {
|
|
4
|
-
updateFormState(): void;
|
|
5
|
-
}
|
|
6
|
-
export interface WlcmFormControl {
|
|
7
|
-
readonly stateChanges$: Observable<void>;
|
|
8
|
-
}
|
|
9
|
-
export interface WlcmFormField {
|
|
10
|
-
get inputContainer(): ElementRef<HTMLElement>;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export interface WlcmInputGetter {
|
|
3
|
-
get: () => WlcmFormFieldInput;
|
|
4
|
-
}
|
|
5
|
-
export interface WlcmInputBinder {
|
|
6
|
-
bind: () => WlcmFormFieldInput;
|
|
7
|
-
}
|
|
8
|
-
export interface WlcmFormFieldInput {
|
|
9
|
-
focus$: Observable<unknown>;
|
|
10
|
-
blur$: Observable<unknown>;
|
|
11
|
-
isFocused(): boolean;
|
|
12
|
-
focus(): void;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MatSelectConfig } from '@angular/material/select';
|
|
2
|
-
import { WlcmOption } from '@wlcm/angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
export type WlcmSelectValue = WlcmOption[] | WlcmOption | string[] | string;
|
|
5
|
-
export type IsOptionDisabledFn = (option: WlcmOption | string) => boolean;
|
|
6
|
-
export interface WlcmSelectConfig extends MatSelectConfig {
|
|
7
|
-
overlayPanelClass?: string[];
|
|
8
|
-
}
|
|
9
|
-
export type WlcmCanSelectFn = (value: WlcmSelectValue) => Observable<boolean> | boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, PipeTransform } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { WlcmFormErrors } from '../models/form-errors.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ErrorsMapperPipe implements PipeTransform {
|
|
6
|
-
private changeDetectorRef;
|
|
7
|
-
private errors;
|
|
8
|
-
private priorityErrors;
|
|
9
|
-
private destroy$;
|
|
10
|
-
currentError: string | null;
|
|
11
|
-
constructor(changeDetectorRef: ChangeDetectorRef, errors: WlcmFormErrors, priorityErrors: Set<string>);
|
|
12
|
-
transform(control: FormControl): string | null;
|
|
13
|
-
private retrieveFirstError;
|
|
14
|
-
private handleStatusChanges;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorsMapperPipe, never>;
|
|
16
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ErrorsMapperPipe, "errorsMapper", true>;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WlcmForm, WlcmFormControl } from '../models/form.models';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormStateHandlerService implements WlcmForm, WlcmFormControl {
|
|
5
|
-
private readonly _stateChanges$;
|
|
6
|
-
readonly stateChanges$: Observable<void>;
|
|
7
|
-
updateFormState(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormStateHandlerService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormStateHandlerService>;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WlcmAutocompleteOption } from '@wlcm/angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { WlcmPaginatedData } from '@wlcm/common';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class WlcmPlacesApi {
|
|
6
|
-
abstract getPlacesPaginated(query: string): Observable<WlcmPaginatedData<WlcmAutocompleteOption>>;
|
|
7
|
-
abstract get placesService(): google.maps.places.PlacesService;
|
|
8
|
-
abstract get autocompleteService(): google.maps.places.AutocompleteService;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmPlacesApi, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WlcmPlacesApi>;
|
|
11
|
-
}
|
package/phone-input/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { WlcmPhoneInputModule } from './lib/phone-input.module';
|
|
2
|
-
export { WlcmPhoneInputDirective } from './lib/directives/phone-input.directive';
|
|
3
|
-
export { WlcmPhoneInputContainerComponent } from './lib/components/phone-input-container/phone-input-container.component';
|
|
4
|
-
export { WlcmPhoneValidationErrorType } from './lib/models/phone.models';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { InputSignal, OutputEmitterRef } from '@angular/core';
|
|
2
|
-
import { WlcmCountryCodeOption } from '../../models/country-code.models';
|
|
3
|
-
import { FormControl } from '@angular/forms';
|
|
4
|
-
import { MatSelect } from '@angular/material/select';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class WlcmCountryCodeSelectComponent {
|
|
7
|
-
protected options: WlcmCountryCodeOption[];
|
|
8
|
-
changed: OutputEmitterRef<any>;
|
|
9
|
-
control: InputSignal<FormControl>;
|
|
10
|
-
private wlcmSelect;
|
|
11
|
-
constructor(options: WlcmCountryCodeOption[]);
|
|
12
|
-
get selectComponent(): MatSelect;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmCountryCodeSelectComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmCountryCodeSelectComponent, "wlcm-country-code-select", never, { "control": { "alias": "control"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, true, never>;
|
|
15
|
-
}
|
package/phone-input/lib/components/phone-input-container/phone-input-container.component.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, NgZone } from '@angular/core';
|
|
2
|
-
import { WlcmFormFieldInput } from '@wlcm/angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { WlcmPhoneAdapter } from '../../models/phone-adapter.models';
|
|
5
|
-
import { CountryCode } from 'libphonenumber-js';
|
|
6
|
-
import { FormControl } from '@angular/forms';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class WlcmPhoneInputContainerComponent implements AfterContentInit, WlcmFormFieldInput, WlcmPhoneAdapter {
|
|
9
|
-
private _zone;
|
|
10
|
-
private readonly _focusStream$;
|
|
11
|
-
private readonly _blurStream$;
|
|
12
|
-
focus$: Observable<void>;
|
|
13
|
-
blur$: Observable<void>;
|
|
14
|
-
private codeSelect;
|
|
15
|
-
private phoneInput;
|
|
16
|
-
readonly control: FormControl;
|
|
17
|
-
private _asYouType;
|
|
18
|
-
constructor(_zone: NgZone);
|
|
19
|
-
ngAfterContentInit(): void;
|
|
20
|
-
isFocused(): boolean;
|
|
21
|
-
focus(): void;
|
|
22
|
-
getCurrentCountryCode(): CountryCode;
|
|
23
|
-
parseValue: (value: string) => string;
|
|
24
|
-
formatValue: (value: string) => string;
|
|
25
|
-
handleCountryChange(): void;
|
|
26
|
-
private get currentCallingCode();
|
|
27
|
-
private handleInputEvents;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WlcmPhoneInputContainerComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WlcmPhoneInputContainerComponent, "wlcm-phone-input-container", never, {}, {}, ["phoneInput"], ["[wlcmPhoneInput]"], true, never>;
|
|
30
|
-
}
|