ngx-opalbytes-components 1.13.0 → 1.14.0
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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
9
|
-
import { PageEvent,
|
|
9
|
+
import { PageEvent, MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
|
|
10
10
|
import { DateAdapter } from '@angular/material/core';
|
|
11
11
|
import { MatTimepickerOption } from '@angular/material/timepicker';
|
|
12
12
|
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
@@ -118,6 +118,12 @@ declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
|
118
118
|
iconColor: string;
|
|
119
119
|
_leadingIcon?: string;
|
|
120
120
|
_trailingIcon?: string;
|
|
121
|
+
optionIcon?: string;
|
|
122
|
+
optionIConColor?: string;
|
|
123
|
+
isLucideOptionIcon?: boolean;
|
|
124
|
+
readonly itemSelected: EventEmitter<ICaoAutoCompleteOption>;
|
|
125
|
+
readonly blurEvent: EventEmitter<void>;
|
|
126
|
+
readonly focusEvent: EventEmitter<void>;
|
|
121
127
|
internalControl: FormControl<string | null>;
|
|
122
128
|
filteredOptions$: Observable<ICaoAutoCompleteOption[]>;
|
|
123
129
|
isFocused: boolean;
|
|
@@ -128,9 +134,9 @@ declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
|
128
134
|
ngOnInit(): void;
|
|
129
135
|
onFocus(): void;
|
|
130
136
|
onBlur(): void;
|
|
137
|
+
onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
131
138
|
private filter;
|
|
132
139
|
displayFn(option: ICaoAutoCompleteOption): string;
|
|
133
|
-
onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
134
140
|
get errorText(): string | null;
|
|
135
141
|
get controlNameValue(): string;
|
|
136
142
|
writeValue(value: ICaoAutoCompleteOption | string): void;
|
|
@@ -138,10 +144,10 @@ declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
|
138
144
|
registerOnTouched(fn: () => void): void;
|
|
139
145
|
setInputHeight(height: string): void;
|
|
140
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaoAutocompleteComponent, never>;
|
|
141
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaoAutocompleteComponent, "cao-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "control": { "alias": "control"; "required": false; }; "dataCy": { "alias": "dataCy"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "isLucideIcon": { "alias": "isLucideIcon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "_leadingIcon": { "alias": "_leadingIcon"; "required": false; }; "_trailingIcon": { "alias": "_trailingIcon"; "required": false; }; }, {}, never, never, true, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaoAutocompleteComponent, "cao-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "control": { "alias": "control"; "required": false; }; "dataCy": { "alias": "dataCy"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "isLucideIcon": { "alias": "isLucideIcon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "_leadingIcon": { "alias": "_leadingIcon"; "required": false; }; "_trailingIcon": { "alias": "_trailingIcon"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "optionIConColor": { "alias": "optionIConColor"; "required": false; }; "isLucideOptionIcon": { "alias": "isLucideOptionIcon"; "required": false; }; }, { "itemSelected": "itemSelected"; "blurEvent": "blurEvent"; "focusEvent": "focusEvent"; }, never, never, true, never>;
|
|
142
148
|
}
|
|
143
149
|
|
|
144
|
-
interface
|
|
150
|
+
interface ICaoDropDownOption {
|
|
145
151
|
id?: string | number;
|
|
146
152
|
nome: string;
|
|
147
153
|
icon?: string;
|
|
@@ -152,7 +158,7 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
152
158
|
private _eref;
|
|
153
159
|
private cdr;
|
|
154
160
|
textHeader: string;
|
|
155
|
-
options:
|
|
161
|
+
options: ICaoDropDownOption[];
|
|
156
162
|
dropDownClass: string;
|
|
157
163
|
styleDropDown: {
|
|
158
164
|
[klass: string]: unknown;
|
|
@@ -160,18 +166,18 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
160
166
|
control?: AbstractControl | null;
|
|
161
167
|
controlName: string;
|
|
162
168
|
isDisabled: boolean;
|
|
163
|
-
readonly itemSelected: EventEmitter<IDropDownOption>;
|
|
164
169
|
tooltip: string;
|
|
165
170
|
dropDirectionInput: "up" | "down";
|
|
166
171
|
dataCy?: string;
|
|
167
|
-
trackByFn?: (index: number, item:
|
|
172
|
+
trackByFn?: (index: number, item: ICaoDropDownOption) => unknown;
|
|
168
173
|
compareWith?: (option: unknown, value: unknown) => boolean;
|
|
169
174
|
ariaLabel?: string;
|
|
170
175
|
ariaLabelledBy?: string;
|
|
171
176
|
listAriaLabel?: string;
|
|
177
|
+
readonly itemSelected: EventEmitter<ICaoDropDownOption>;
|
|
172
178
|
isOpen: boolean;
|
|
173
|
-
selectedItem?:
|
|
174
|
-
filteredOptions:
|
|
179
|
+
selectedItem?: ICaoDropDownOption;
|
|
180
|
+
filteredOptions: ICaoDropDownOption[];
|
|
175
181
|
searchControl: FormControl<string | null>;
|
|
176
182
|
isTouched: boolean;
|
|
177
183
|
isFocused: boolean;
|
|
@@ -184,10 +190,10 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
|
|
|
184
190
|
ngOnDestroy(): void;
|
|
185
191
|
get activeDescendant(): string | null;
|
|
186
192
|
toggleDropdown(): void;
|
|
187
|
-
selectItem(option:
|
|
193
|
+
selectItem(option: ICaoDropDownOption): void;
|
|
188
194
|
clear(): void;
|
|
189
195
|
filterOptions(searchTerm: string): void;
|
|
190
|
-
trackBy(index: number, item:
|
|
196
|
+
trackBy(index: number, item: ICaoDropDownOption): unknown;
|
|
191
197
|
private onClickOutside;
|
|
192
198
|
onArrowDown(event: Event): void;
|
|
193
199
|
onArrowUp(event: Event): void;
|
|
@@ -693,4 +699,4 @@ declare class StepperComponent implements AfterContentInit {
|
|
|
693
699
|
}
|
|
694
700
|
|
|
695
701
|
export { BaseAlert, BaseAlertService, BaseDialog, BaseDialogService, BaseFilterTablePaginatedService, BaseFilterTableService, BaseModal, BaseModalService, BasePaginationService, BaseTable, BaseTablePaginated, BaseTableService, BaseTimeRange, CaoAutocompleteComponent, CaoBaseButtonComponent, CaoBaseInput, CaoDropDownComponent, Footer, LinksButton, Paginator, StepComponent, StepperComponent, TablePaginatedService, TimePicker, getPtBrPaginatorIntlBasePaginated, getPtBrPaginatorIntlBaseTable };
|
|
696
|
-
export type { AlertType, DialogType, IAlertConfig, ICaoAutoCompleteOption, IColumnButton, IColumnConfig, IColumnPaginatedButton, IColumnPaginatedConfig, IDialogConfig,
|
|
702
|
+
export type { AlertType, DialogType, IAlertConfig, ICaoAutoCompleteOption, ICaoDropDownOption, IColumnButton, IColumnConfig, IColumnPaginatedButton, IColumnPaginatedConfig, IDialogConfig, IModal, INavContent, INavLink, ITableConfig, ITablePaginatedConfig, ModalType, ModalTypeClass, ModalTypeSize };
|