sapenlinea-components 0.0.32 → 0.0.33
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/fesm2022/sapenlinea-components.mjs +164 -38
- package/fesm2022/sapenlinea-components.mjs.map +1 -1
- package/index.d.ts +52 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ interface TableColumn {
|
|
|
30
30
|
showActions?: boolean;
|
|
31
31
|
icon?: string;
|
|
32
32
|
iconKey?: string;
|
|
33
|
-
iconColor?: string;
|
|
34
33
|
}
|
|
35
34
|
interface TableRow {
|
|
36
35
|
[key: string]: any;
|
|
@@ -39,16 +38,11 @@ interface TableAction {
|
|
|
39
38
|
key: string;
|
|
40
39
|
icon: string;
|
|
41
40
|
label: string;
|
|
42
|
-
color?: string;
|
|
43
41
|
}
|
|
44
42
|
interface StatusToneMap {
|
|
45
43
|
[statusKey: string]: StatusTone;
|
|
46
44
|
}
|
|
47
45
|
type StatusTone = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
48
|
-
declare const STATUS_TONE_STYLES: Record<StatusTone, {
|
|
49
|
-
bg: string;
|
|
50
|
-
color: string;
|
|
51
|
-
}>;
|
|
52
46
|
declare class Table implements AfterViewInit {
|
|
53
47
|
columns: _angular_core.InputSignal<TableColumn[]>;
|
|
54
48
|
data: _angular_core.InputSignal<TableRow[]>;
|
|
@@ -76,6 +70,7 @@ declare class Table implements AfterViewInit {
|
|
|
76
70
|
onClickOutside(event: MouseEvent): void;
|
|
77
71
|
getAlignment(col: TableColumn): string;
|
|
78
72
|
formatValue(col: TableColumn, value: any): string;
|
|
73
|
+
getActionColor(action: TableAction): string;
|
|
79
74
|
getStatusStyle(value: any): {
|
|
80
75
|
bg: string;
|
|
81
76
|
color: string;
|
|
@@ -718,7 +713,8 @@ interface SideCardSection {
|
|
|
718
713
|
sliderUnit?: string;
|
|
719
714
|
buttonSectionLabel?: string;
|
|
720
715
|
}
|
|
721
|
-
declare class SideCard implements OnChanges {
|
|
716
|
+
declare class SideCard implements AfterViewInit, OnChanges, OnDestroy {
|
|
717
|
+
wrapper: ElementRef<HTMLElement>;
|
|
722
718
|
isFloating: boolean;
|
|
723
719
|
isCompact: boolean;
|
|
724
720
|
modeSideCard: 'create' | 'edit' | 'info';
|
|
@@ -744,10 +740,13 @@ declare class SideCard implements OnChanges {
|
|
|
744
740
|
showBtnSecondary: boolean;
|
|
745
741
|
secondaryButtonLabel: string;
|
|
746
742
|
buttonClick: EventEmitter<"primary" | "secondary">;
|
|
743
|
+
private ro;
|
|
747
744
|
get statusLabel(): string;
|
|
748
745
|
get statusClass(): string;
|
|
749
746
|
get sliderPercentage(): string;
|
|
750
747
|
ngOnChanges(): void;
|
|
748
|
+
ngAfterViewInit(): void;
|
|
749
|
+
ngOnDestroy(): void;
|
|
751
750
|
selectType(type: 'radial' | 'poligonal'): void;
|
|
752
751
|
onInput(event: Event): void;
|
|
753
752
|
focusInput(input: HTMLInputElement): void;
|
|
@@ -756,11 +755,13 @@ declare class SideCard implements OnChanges {
|
|
|
756
755
|
onButtonClick(type: 'primary' | 'secondary'): void;
|
|
757
756
|
changeStatusLabel(): void;
|
|
758
757
|
buttonClickIcon(): void;
|
|
758
|
+
private updateCompact;
|
|
759
759
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SideCard, never>;
|
|
760
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SideCard, "lib-side-card", never, { "isFloating": { "alias": "isFloating"; "required": false; }; "
|
|
760
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SideCard, "lib-side-card", never, { "isFloating": { "alias": "isFloating"; "required": false; }; "modeSideCard": { "alias": "modeSideCard"; "required": false; }; "showTypeSelector": { "alias": "showTypeSelector"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "statusValue": { "alias": "statusValue"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "showBtnPrimary": { "alias": "showBtnPrimary"; "required": false; }; "primaryButtonLabel": { "alias": "primaryButtonLabel"; "required": false; }; "showBtnSecondary": { "alias": "showBtnSecondary"; "required": false; }; "secondaryButtonLabel": { "alias": "secondaryButtonLabel"; "required": false; }; }, { "btnClickIcon": "btnClickIcon"; "valueChange": "valueChange"; "typeChange": "typeChange"; "statusChange": "statusChange"; "sectionButtonClick": "sectionButtonClick"; "sliderChange": "sliderChange"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
761
761
|
}
|
|
762
762
|
|
|
763
|
-
declare class SideCardDetail {
|
|
763
|
+
declare class SideCardDetail implements AfterViewInit, OnDestroy {
|
|
764
|
+
wrapper: ElementRef<HTMLElement>;
|
|
764
765
|
isFloating: boolean;
|
|
765
766
|
isCompact: boolean;
|
|
766
767
|
nowLabel: string;
|
|
@@ -773,6 +774,9 @@ declare class SideCardDetail {
|
|
|
773
774
|
sections: SideCardSection[];
|
|
774
775
|
activeTab: 'principal' | 'historial';
|
|
775
776
|
tabChange: EventEmitter<"principal" | "historial">;
|
|
777
|
+
private ro;
|
|
778
|
+
ngAfterViewInit(): void;
|
|
779
|
+
ngOnDestroy(): void;
|
|
776
780
|
get statusLabel(): string;
|
|
777
781
|
get statusClass(): string;
|
|
778
782
|
buttonClickIcon(type: 'back' | 'location' | 'message'): void;
|
|
@@ -780,8 +784,9 @@ declare class SideCardDetail {
|
|
|
780
784
|
getIndicatorLeft(): string;
|
|
781
785
|
isDateValue(value: any): boolean;
|
|
782
786
|
getRelativeTime(date: string | Date | number): string;
|
|
787
|
+
private updateCompact;
|
|
783
788
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SideCardDetail, never>;
|
|
784
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SideCardDetail, "lib-side-card-detail", never, { "isFloating": { "alias": "isFloating"; "required": false; }; "
|
|
789
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SideCardDetail, "lib-side-card-detail", never, { "isFloating": { "alias": "isFloating"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "statusValue": { "alias": "statusValue"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; }, { "btnClickIcon": "btnClickIcon"; "statusChange": "statusChange"; "tabChange": "tabChange"; }, never, never, true, never>;
|
|
785
790
|
}
|
|
786
791
|
|
|
787
792
|
interface DeviceStatus {
|
|
@@ -789,7 +794,7 @@ interface DeviceStatus {
|
|
|
789
794
|
wifi?: boolean;
|
|
790
795
|
bluetooth?: boolean;
|
|
791
796
|
gps?: boolean;
|
|
792
|
-
signalStatus?: 1 | 2 | 3 | 4;
|
|
797
|
+
signalStatus?: 0 | 1 | 2 | 3 | 4;
|
|
793
798
|
batteryPercentage?: string;
|
|
794
799
|
}
|
|
795
800
|
interface DeviceCard {
|
|
@@ -806,6 +811,7 @@ declare class DevicesCarousel implements AfterViewInit {
|
|
|
806
811
|
agoLabel: string;
|
|
807
812
|
canScrollLeft: boolean;
|
|
808
813
|
canScrollRight: boolean;
|
|
814
|
+
btnClickIcon: EventEmitter<void>;
|
|
809
815
|
listRef: ElementRef<HTMLElement>;
|
|
810
816
|
onResize(): void;
|
|
811
817
|
onScroll(el: HTMLElement): void;
|
|
@@ -813,11 +819,42 @@ declare class DevicesCarousel implements AfterViewInit {
|
|
|
813
819
|
ngAfterViewInit(): void;
|
|
814
820
|
scroll(el: HTMLElement, dir: 'left' | 'right'): void;
|
|
815
821
|
getGeofenceClass(state: string): "badge-inside" | "badge-outside";
|
|
816
|
-
getSignalClass(level: 1 | 2 | 3 | 4): string;
|
|
822
|
+
getSignalClass(level: 0 | 1 | 2 | 3 | 4): string;
|
|
823
|
+
getBatteryLevel(battery?: string): 0 | 1 | 2 | 3 | 4;
|
|
817
824
|
getRelativeTime(date: string | Date | number): string;
|
|
825
|
+
buttonClickIcon(): void;
|
|
818
826
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DevicesCarousel, never>;
|
|
819
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DevicesCarousel, "lib-devices-carousel", never, { "devices": { "alias": "devices"; "required": false; }; }, {}, never, never, true, never>;
|
|
827
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DevicesCarousel, "lib-devices-carousel", never, { "devices": { "alias": "devices"; "required": false; }; }, { "btnClickIcon": "btnClickIcon"; }, never, never, true, never>;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
interface TitleFilterConfig {
|
|
831
|
+
type: FilterType;
|
|
832
|
+
filters: FilterItem[];
|
|
833
|
+
}
|
|
834
|
+
type FilterButtonMode = 'toggle' | 'action';
|
|
835
|
+
declare class TitleFilters {
|
|
836
|
+
showFilters: _angular_core.WritableSignal<boolean>;
|
|
837
|
+
title: _angular_core.InputSignal<string>;
|
|
838
|
+
filtersConfig: _angular_core.InputSignal<TitleFilterConfig[]>;
|
|
839
|
+
filtersChange: _angular_core.OutputEmitterRef<Record<string, string | number | Date | null>>;
|
|
840
|
+
applyFilters: _angular_core.OutputEmitterRef<void>;
|
|
841
|
+
clearFilterTrigger: _angular_core.WritableSignal<number>;
|
|
842
|
+
selectedDates: _angular_core.WritableSignal<SelectedDatesMap>;
|
|
843
|
+
selectedTextFilters: _angular_core.WritableSignal<Record<string, string>>;
|
|
844
|
+
buttonMode: _angular_core.InputSignal<FilterButtonMode>;
|
|
845
|
+
filterButtonClicked: _angular_core.OutputEmitterRef<void>;
|
|
846
|
+
onFilterButtonClick(): void;
|
|
847
|
+
toggleFilters(): void;
|
|
848
|
+
clearAllFilters(): void;
|
|
849
|
+
onApplyFilters(): void;
|
|
850
|
+
onDateSelected(event: DateFilterSelection): void;
|
|
851
|
+
onFilterSelected(event: {
|
|
852
|
+
filter: string;
|
|
853
|
+
value: string;
|
|
854
|
+
}): void;
|
|
855
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TitleFilters, never>;
|
|
856
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TitleFilters, "lib-title-filters", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "filtersConfig": { "alias": "filtersConfig"; "required": false; "isSignal": true; }; "buttonMode": { "alias": "buttonMode"; "required": false; "isSignal": true; }; }, { "filtersChange": "filtersChange"; "applyFilters": "applyFilters"; "filterButtonClicked": "filterButtonClicked"; }, never, never, true, never>;
|
|
820
857
|
}
|
|
821
858
|
|
|
822
|
-
export { DateTimeFilter, DateTimePicker, DevicesCarousel, DialogAlertComponent, DialogConfirmation, DynamicFormFields, FeatureCard, InfoGroup, Input, InputNumberFilter, InputSelectFilter, InputTextFilter, Loader, ModalForm, NotFoundModal, PaginationComponent, ProcessingOverlay, ProgressBar, ProgressFormService,
|
|
823
|
-
export type { DateFilterSelection, DateTimeMode, DeviceCard, DeviceStatus, DialogItem, Feature, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, InfoItem, ModalFormStep, Option, SectionConfig, SelectedDatesMap, SideCardItem, SideCardSection, StatusTone, StatusToneMap, TableAction, TableColumn, TableRow, ToastData };
|
|
859
|
+
export { DateTimeFilter, DateTimePicker, DevicesCarousel, DialogAlertComponent, DialogConfirmation, DynamicFormFields, FeatureCard, InfoGroup, Input, InputNumberFilter, InputSelectFilter, InputTextFilter, Loader, ModalForm, NotFoundModal, PaginationComponent, ProcessingOverlay, ProgressBar, ProgressFormService, SelectCustomSearch, SideCard, SideCardDetail, TOAST_EVENTS, Table, TitleFilters, ToastHelper, WizardForm };
|
|
860
|
+
export type { DateFilterSelection, DateTimeMode, DeviceCard, DeviceStatus, DialogItem, Feature, FieldConfig, FilterItem, FilterOption, FilterType, Hour12, InfoItem, ModalFormStep, Option, SectionConfig, SelectedDatesMap, SideCardItem, SideCardSection, StatusTone, StatusToneMap, TableAction, TableColumn, TableRow, TitleFilterConfig, ToastData };
|