ngx-opalbytes-components 1.13.0 → 1.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-opalbytes-components",
3
- "version": "1.13.0",
3
+ "version": "1.14.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, EventEmitter, OnDestroy, ElementRef, ChangeDetectorRef, Signal, AfterViewInit, AfterContentInit, QueryList } from '@angular/core';
2
+ import { OnInit, EventEmitter, OnChanges, SimpleChanges, OnDestroy, ElementRef, ChangeDetectorRef, Signal, AfterViewInit, AfterContentInit, QueryList } from '@angular/core';
3
3
  import { ControlValueAccessor, AbstractControl, FormControl } from '@angular/forms';
4
4
  import { MatDateRangeInput } from '@angular/material/datepicker';
5
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
5
+ import { MatAutocompleteTrigger, 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, MatPaginatorIntl, MatPaginator } from '@angular/material/paginator';
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';
@@ -28,10 +28,11 @@ declare class CaoBaseButtonComponent implements OnInit {
28
28
  isLucideIcon: boolean;
29
29
  dataCy?: string;
30
30
  iconColor?: string;
31
+ strokeWidthIcon: number;
31
32
  ngOnInit(): void;
32
33
  onClick(): void;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<CaoBaseButtonComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<CaoBaseButtonComponent, "cao-button", never, { "buttonText": { "alias": "buttonText"; "required": false; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "isLucideIcon": { "alias": "isLucideIcon"; "required": false; }; "dataCy": { "alias": "dataCy"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaoBaseButtonComponent, "cao-button", never, { "buttonText": { "alias": "buttonText"; "required": false; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "isLucideIcon": { "alias": "isLucideIcon"; "required": false; }; "dataCy": { "alias": "dataCy"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "strokeWidthIcon": { "alias": "strokeWidthIcon"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
35
36
  }
36
37
 
37
38
  declare class CaoBaseInput implements ControlValueAccessor {
@@ -107,7 +108,7 @@ interface ICaoAutoCompleteOption {
107
108
  icon?: string;
108
109
  iconPosition?: string;
109
110
  }
110
- declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
111
+ declare class CaoAutocompleteComponent implements OnInit, OnChanges, ControlValueAccessor {
111
112
  label: string;
112
113
  placeholder: string;
113
114
  options: ICaoAutoCompleteOption[];
@@ -118,19 +119,32 @@ declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
118
119
  iconColor: string;
119
120
  _leadingIcon?: string;
120
121
  _trailingIcon?: string;
122
+ optionIcon?: string;
123
+ optionIConColor?: string;
124
+ isLucideOptionIcon?: boolean;
125
+ autocompleteBgColor: string;
126
+ strokeWidthIcon: number;
127
+ readonly itemSelected: EventEmitter<ICaoAutoCompleteOption>;
128
+ readonly blurEvent: EventEmitter<void>;
129
+ readonly focusEvent: EventEmitter<void>;
130
+ autocompleteTrigger: MatAutocompleteTrigger;
121
131
  internalControl: FormControl<string | null>;
122
132
  filteredOptions$: Observable<ICaoAutoCompleteOption[]>;
123
133
  isFocused: boolean;
124
134
  icon: boolean;
135
+ private selectedOption;
136
+ private options$;
125
137
  private el;
126
138
  private onChange;
127
139
  private onTouched;
128
140
  ngOnInit(): void;
141
+ private setStyle;
142
+ ngOnChanges(changes: SimpleChanges): void;
129
143
  onFocus(): void;
130
144
  onBlur(): void;
145
+ onOptionSelected(event: MatAutocompleteSelectedEvent): void;
131
146
  private filter;
132
147
  displayFn(option: ICaoAutoCompleteOption): string;
133
- onOptionSelected(event: MatAutocompleteSelectedEvent): void;
134
148
  get errorText(): string | null;
135
149
  get controlNameValue(): string;
136
150
  writeValue(value: ICaoAutoCompleteOption | string): void;
@@ -138,10 +152,10 @@ declare class CaoAutocompleteComponent implements OnInit, ControlValueAccessor {
138
152
  registerOnTouched(fn: () => void): void;
139
153
  setInputHeight(height: string): void;
140
154
  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>;
155
+ 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; }; "autocompleteBgColor": { "alias": "autocompleteBgColor"; "required": false; }; "strokeWidthIcon": { "alias": "strokeWidthIcon"; "required": false; }; }, { "itemSelected": "itemSelected"; "blurEvent": "blurEvent"; "focusEvent": "focusEvent"; }, never, never, true, never>;
142
156
  }
143
157
 
144
- interface IDropDownOption {
158
+ interface ICaoDropDownOption {
145
159
  id?: string | number;
146
160
  nome: string;
147
161
  icon?: string;
@@ -152,7 +166,7 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
152
166
  private _eref;
153
167
  private cdr;
154
168
  textHeader: string;
155
- options: IDropDownOption[];
169
+ options: ICaoDropDownOption[];
156
170
  dropDownClass: string;
157
171
  styleDropDown: {
158
172
  [klass: string]: unknown;
@@ -160,18 +174,18 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
160
174
  control?: AbstractControl | null;
161
175
  controlName: string;
162
176
  isDisabled: boolean;
163
- readonly itemSelected: EventEmitter<IDropDownOption>;
164
177
  tooltip: string;
165
178
  dropDirectionInput: "up" | "down";
166
179
  dataCy?: string;
167
- trackByFn?: (index: number, item: IDropDownOption) => unknown;
180
+ trackByFn?: (index: number, item: ICaoDropDownOption) => unknown;
168
181
  compareWith?: (option: unknown, value: unknown) => boolean;
169
182
  ariaLabel?: string;
170
183
  ariaLabelledBy?: string;
171
184
  listAriaLabel?: string;
185
+ readonly itemSelected: EventEmitter<ICaoDropDownOption>;
172
186
  isOpen: boolean;
173
- selectedItem?: IDropDownOption;
174
- filteredOptions: IDropDownOption[];
187
+ selectedItem?: ICaoDropDownOption;
188
+ filteredOptions: ICaoDropDownOption[];
175
189
  searchControl: FormControl<string | null>;
176
190
  isTouched: boolean;
177
191
  isFocused: boolean;
@@ -184,10 +198,10 @@ declare class CaoDropDownComponent implements ControlValueAccessor, OnInit, OnDe
184
198
  ngOnDestroy(): void;
185
199
  get activeDescendant(): string | null;
186
200
  toggleDropdown(): void;
187
- selectItem(option: IDropDownOption): void;
201
+ selectItem(option: ICaoDropDownOption): void;
188
202
  clear(): void;
189
203
  filterOptions(searchTerm: string): void;
190
- trackBy(index: number, item: IDropDownOption): unknown;
204
+ trackBy(index: number, item: ICaoDropDownOption): unknown;
191
205
  private onClickOutside;
192
206
  onArrowDown(event: Event): void;
193
207
  onArrowUp(event: Event): void;
@@ -693,4 +707,4 @@ declare class StepperComponent implements AfterContentInit {
693
707
  }
694
708
 
695
709
  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, IDropDownOption, IModal, INavContent, INavLink, ITableConfig, ITablePaginatedConfig, ModalType, ModalTypeClass, ModalTypeSize };
710
+ export type { AlertType, DialogType, IAlertConfig, ICaoAutoCompleteOption, ICaoDropDownOption, IColumnButton, IColumnConfig, IColumnPaginatedButton, IColumnPaginatedConfig, IDialogConfig, IModal, INavContent, INavLink, ITableConfig, ITablePaginatedConfig, ModalType, ModalTypeClass, ModalTypeSize };