ngx-opalbytes-components 1.14.1 → 1.16.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, EventEmitter, OnChanges, SimpleChanges, OnDestroy, ElementRef, ChangeDetectorRef, Signal, AfterViewInit, AfterContentInit, QueryList } from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, OnChanges, SimpleChanges, OnDestroy, ElementRef, ChangeDetectorRef, Signal, AfterViewInit, AfterContentInit, QueryList, TemplateRef, WritableSignal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, AbstractControl, FormControl } from '@angular/forms';
|
|
4
4
|
import { MatDateRangeInput } from '@angular/material/datepicker';
|
|
5
5
|
import { MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
@@ -35,8 +35,9 @@ declare class CaoBaseButtonComponent implements OnInit {
|
|
|
35
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>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
type CaoTypeInputs = 'text' | 'textarea' | 'number' | 'password' | 'date';
|
|
38
39
|
declare class CaoBaseInput implements ControlValueAccessor {
|
|
39
|
-
type:
|
|
40
|
+
type: CaoTypeInputs;
|
|
40
41
|
placeholder: string;
|
|
41
42
|
inputClass: string;
|
|
42
43
|
value: string | number | boolean | Date;
|
|
@@ -124,9 +125,12 @@ declare class CaoAutocompleteComponent implements OnInit, OnChanges, ControlValu
|
|
|
124
125
|
isLucideOptionIcon?: boolean;
|
|
125
126
|
autocompleteBgColor: string;
|
|
126
127
|
strokeWidthIcon: number;
|
|
128
|
+
isDisabled: boolean;
|
|
127
129
|
readonly itemSelected: EventEmitter<ICaoAutoCompleteOption>;
|
|
128
130
|
readonly blurEvent: EventEmitter<void>;
|
|
129
131
|
readonly focusEvent: EventEmitter<void>;
|
|
132
|
+
readonly leadingIconClick: EventEmitter<Event | MouseEvent>;
|
|
133
|
+
readonly trailingIconClick: EventEmitter<Event | MouseEvent>;
|
|
130
134
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
131
135
|
internalControl: FormControl<string | null>;
|
|
132
136
|
filteredOptions$: Observable<ICaoAutoCompleteOption[]>;
|
|
@@ -142,17 +146,23 @@ declare class CaoAutocompleteComponent implements OnInit, OnChanges, ControlValu
|
|
|
142
146
|
ngOnChanges(changes: SimpleChanges): void;
|
|
143
147
|
onFocus(): void;
|
|
144
148
|
onBlur(): void;
|
|
149
|
+
selectItem(option: ICaoAutoCompleteOption): void;
|
|
145
150
|
onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
151
|
+
selectOption(option: ICaoAutoCompleteOption): void;
|
|
152
|
+
closePanel(): void;
|
|
153
|
+
clearSelection(): void;
|
|
154
|
+
onLeadingIconClick(event: MouseEvent | Event): void;
|
|
155
|
+
onTrailingIconClick(event: MouseEvent | Event): void;
|
|
146
156
|
private filter;
|
|
147
157
|
displayFn(option: ICaoAutoCompleteOption): string;
|
|
148
158
|
get errorText(): string | null;
|
|
149
159
|
get controlNameValue(): string;
|
|
150
160
|
writeValue(value: ICaoAutoCompleteOption | string): void;
|
|
151
|
-
registerOnChange(fn: (value: ICaoAutoCompleteOption | string) => void): void;
|
|
161
|
+
registerOnChange(fn: (value: ICaoAutoCompleteOption | string | null) => void): void;
|
|
152
162
|
registerOnTouched(fn: () => void): void;
|
|
153
163
|
setInputHeight(height: string): void;
|
|
154
164
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaoAutocompleteComponent, 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>;
|
|
165
|
+
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; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "itemSelected": "itemSelected"; "blurEvent": "blurEvent"; "focusEvent": "focusEvent"; "leadingIconClick": "leadingIconClick"; "trailingIconClick": "trailingIconClick"; }, never, never, true, never>;
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
interface ICaoDropDownOption {
|
|
@@ -706,5 +716,73 @@ declare class StepperComponent implements AfterContentInit {
|
|
|
706
716
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "cao-stepper", never, { "title": { "alias": "title"; "required": false; }; }, { "maxReachedEvent": "maxReachedEvent"; }, ["steps"], ["*"], true, never>;
|
|
707
717
|
}
|
|
708
718
|
|
|
709
|
-
|
|
710
|
-
|
|
719
|
+
declare class CaoTabPanel {
|
|
720
|
+
label: string;
|
|
721
|
+
isLucideIcon: boolean;
|
|
722
|
+
trailingIcon: string | null;
|
|
723
|
+
leadingIcon: string | null;
|
|
724
|
+
isDisabled: boolean;
|
|
725
|
+
labelTemplate?: TemplateRef<unknown>;
|
|
726
|
+
lazyContent?: TemplateRef<unknown>;
|
|
727
|
+
content: TemplateRef<unknown>;
|
|
728
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaoTabPanel, never>;
|
|
729
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaoTabPanel, "cao-tab-panel", never, { "label": { "alias": "label"; "required": false; }; "isLucideIcon": { "alias": "isLucideIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, ["labelTemplate", "lazyContent"], ["*"], true, never>;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
interface ICaoTabChangeEvent {
|
|
733
|
+
previousIndex: number;
|
|
734
|
+
index: number;
|
|
735
|
+
tab: CaoTabPanel;
|
|
736
|
+
}
|
|
737
|
+
declare class CaoTabGroup implements AfterContentInit, OnDestroy {
|
|
738
|
+
get _hostStyles(): Record<string, string>;
|
|
739
|
+
set selectedIndex(val: number);
|
|
740
|
+
get selectedIndex(): number;
|
|
741
|
+
labelHeight: string;
|
|
742
|
+
labelPaddingX: string;
|
|
743
|
+
labelGap: string;
|
|
744
|
+
colorText: string;
|
|
745
|
+
colorActive: string;
|
|
746
|
+
colorHoverBg: string;
|
|
747
|
+
colorDisabled: string;
|
|
748
|
+
colorInkBar: string;
|
|
749
|
+
colorHeaderBorder: string;
|
|
750
|
+
inkBarHeight: string;
|
|
751
|
+
contentPaddingTop: string;
|
|
752
|
+
labelRadius: string;
|
|
753
|
+
animationDuration: string;
|
|
754
|
+
dynamicHeight: boolean;
|
|
755
|
+
labelAlign: 'start' | 'center' | 'end';
|
|
756
|
+
iconColorActive: string;
|
|
757
|
+
iconColorInactive: string;
|
|
758
|
+
strokeWidthIcon: number;
|
|
759
|
+
readonly selectedTabChange: EventEmitter<ICaoTabChangeEvent>;
|
|
760
|
+
readonly focusChange: EventEmitter<number>;
|
|
761
|
+
tabs: QueryList<CaoTabPanel>;
|
|
762
|
+
tabBtns: QueryList<ElementRef<HTMLButtonElement>>;
|
|
763
|
+
inkBar: ElementRef<HTMLElement>;
|
|
764
|
+
readonly activeIndex: WritableSignal<number>;
|
|
765
|
+
private activatedSet;
|
|
766
|
+
tabList: CaoTabPanel[];
|
|
767
|
+
private subs;
|
|
768
|
+
private isBrowser;
|
|
769
|
+
ngAfterContentInit(): void;
|
|
770
|
+
ngOnDestroy(): void;
|
|
771
|
+
selectTab(index: number): void;
|
|
772
|
+
get activeTab(): CaoTabPanel | null;
|
|
773
|
+
isActive(index: number): boolean;
|
|
774
|
+
wasActivated(index: number): boolean;
|
|
775
|
+
onTabClick(index: number): void;
|
|
776
|
+
onKeydown(event: KeyboardEvent, currentIndex: number): void;
|
|
777
|
+
onFocus(index: number): void;
|
|
778
|
+
private nextEnabled;
|
|
779
|
+
private selectIndex;
|
|
780
|
+
private focusTab;
|
|
781
|
+
scheduleInkBar(): void;
|
|
782
|
+
private updateInkBar;
|
|
783
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaoTabGroup, never>;
|
|
784
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaoTabGroup, "cao-tab-group", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "labelHeight": { "alias": "labelHeight"; "required": false; }; "labelPaddingX": { "alias": "labelPaddingX"; "required": false; }; "labelGap": { "alias": "labelGap"; "required": false; }; "colorText": { "alias": "colorText"; "required": false; }; "colorActive": { "alias": "colorActive"; "required": false; }; "colorHoverBg": { "alias": "colorHoverBg"; "required": false; }; "colorDisabled": { "alias": "colorDisabled"; "required": false; }; "colorInkBar": { "alias": "colorInkBar"; "required": false; }; "colorHeaderBorder": { "alias": "colorHeaderBorder"; "required": false; }; "inkBarHeight": { "alias": "inkBarHeight"; "required": false; }; "contentPaddingTop": { "alias": "contentPaddingTop"; "required": false; }; "labelRadius": { "alias": "labelRadius"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "labelAlign": { "alias": "labelAlign"; "required": false; }; "iconColorActive": { "alias": "iconColorActive"; "required": false; }; "iconColorInactive": { "alias": "iconColorInactive"; "required": false; }; "strokeWidthIcon": { "alias": "strokeWidthIcon"; "required": false; }; }, { "selectedTabChange": "selectedTabChange"; "focusChange": "focusChange"; }, ["tabs"], never, true, never>;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export { BaseAlert, BaseAlertService, BaseDialog, BaseDialogService, BaseFilterTablePaginatedService, BaseFilterTableService, BaseModal, BaseModalService, BasePaginationService, BaseTable, BaseTablePaginated, BaseTableService, BaseTimeRange, CaoAutocompleteComponent, CaoBaseButtonComponent, CaoBaseInput, CaoDropDownComponent, CaoTabGroup, CaoTabPanel, Footer, LinksButton, Paginator, StepComponent, StepperComponent, TablePaginatedService, TimePicker, getPtBrPaginatorIntlBasePaginated, getPtBrPaginatorIntlBaseTable };
|
|
788
|
+
export type { AlertType, CaoTypeInputs, DialogType, IAlertConfig, ICaoAutoCompleteOption, ICaoDropDownOption, ICaoTabChangeEvent, IColumnButton, IColumnConfig, IColumnPaginatedButton, IColumnPaginatedConfig, IDialogConfig, IModal, INavContent, INavLink, ITableConfig, ITablePaginatedConfig, ModalType, ModalTypeClass, ModalTypeSize };
|