@seniorsistemas/platform-components 7.0.1 → 7.1.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/esm2022/modules/advanced-filter/components/advanced-filter/advanced-filter.component.mjs +31 -8
- package/esm2022/modules/advanced-filter/components/form-filter/form-filter.component.mjs +7 -5
- package/esm2022/modules/advanced-filter/locale/fallback.mjs +5 -2
- package/esm2022/modules/advanced-filter/services/advanced-filter.service.mjs +49 -38
- package/esm2022/modules/spotlight/component/spotlight.component.mjs +27 -8
- package/esm2022/modules/spotlight/spotlight.module.mjs +7 -3
- package/fesm2022/seniorsistemas-platform-components.mjs +118 -56
- package/fesm2022/seniorsistemas-platform-components.mjs.map +1 -1
- package/modules/advanced-filter/components/advanced-filter/advanced-filter.component.d.ts +4 -1
- package/modules/advanced-filter/locale/fallback.d.ts +3 -0
- package/modules/advanced-filter/services/advanced-filter.service.d.ts +2 -0
- package/modules/spotlight/component/spotlight.component.d.ts +5 -1
- package/modules/spotlight/spotlight.module.d.ts +7 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { FormFilterComponent } from '../form-filter/form-filter.component';
|
|
@@ -21,6 +21,7 @@ export declare class AdvancedFilterComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
error: boolean;
|
|
22
22
|
currentTicket: string;
|
|
23
23
|
modalComponent: FormFilterComponent;
|
|
24
|
+
filterButtonRef: ElementRef;
|
|
24
25
|
mobileButtonActions: {
|
|
25
26
|
id: string;
|
|
26
27
|
label: any;
|
|
@@ -38,6 +39,8 @@ export declare class AdvancedFilterComponent implements OnInit, OnDestroy {
|
|
|
38
39
|
applyFilters(): void;
|
|
39
40
|
onApplyFilters(): void;
|
|
40
41
|
toggleDialog(): void;
|
|
42
|
+
onDialogHide(): void;
|
|
43
|
+
focusFirstField(): void;
|
|
41
44
|
updateTotalFiltersActive(event: number): void;
|
|
42
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFilterComponent, never>;
|
|
43
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedFilterComponent, "s-advanced-filter", never, { "labelButton": { "alias": "labelButton"; "required": false; }; "onlyContent": { "alias": "onlyContent"; "required": false; }; "hideButtons": { "alias": "hideButtons"; "required": false; }; "canOpenFilter": { "alias": "canOpenFilter"; "required": false; }; "showActiveFiltersCountBadge": { "alias": "showActiveFiltersCountBadge"; "required": false; }; "filterAndSave": { "alias": "filterAndSave"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -69,4 +69,7 @@ export declare const fallback: {
|
|
|
69
69
|
'platform.filter_service.yes': string;
|
|
70
70
|
'platform.filter_service.no': string;
|
|
71
71
|
'platform.filter_service.search_empty_message': string;
|
|
72
|
+
'platform.filter_service.active_filters': string;
|
|
73
|
+
'platform.filter_service.aria_close_filters': string;
|
|
74
|
+
'platform.filter_service.aria_close_dialog': string;
|
|
72
75
|
};
|
|
@@ -4,6 +4,7 @@ export declare class SpotlightComponent implements OnInit {
|
|
|
4
4
|
private readonly spotlightService;
|
|
5
5
|
private readonly cookieService;
|
|
6
6
|
private readonly datePipe;
|
|
7
|
+
private readonly elementRef;
|
|
7
8
|
header: string;
|
|
8
9
|
imgUrl: string;
|
|
9
10
|
primaryButtonLabel: string;
|
|
@@ -14,9 +15,11 @@ export declare class SpotlightComponent implements OnInit {
|
|
|
14
15
|
private spotlightControlsList;
|
|
15
16
|
private spotlightScreen;
|
|
16
17
|
private canEmitEvent;
|
|
18
|
+
private previousFocusElement;
|
|
17
19
|
visible: boolean;
|
|
18
20
|
menuId: string;
|
|
19
21
|
fade: boolean;
|
|
22
|
+
altText: string;
|
|
20
23
|
visibleChange: EventEmitter<boolean>;
|
|
21
24
|
ngOnInit(): Promise<void>;
|
|
22
25
|
private setValues;
|
|
@@ -74,6 +77,7 @@ export declare class SpotlightComponent implements OnInit {
|
|
|
74
77
|
*/
|
|
75
78
|
private buildNotification;
|
|
76
79
|
close(): void;
|
|
80
|
+
private onOpen;
|
|
77
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpotlightComponent, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpotlightComponent, "s-spotlight", never, { "visible": { "alias": "visible"; "required": false; }; "menuId": { "alias": "menuId"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, false, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpotlightComponent, "s-spotlight", never, { "visible": { "alias": "visible"; "required": false; }; "menuId": { "alias": "menuId"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, false, never>;
|
|
79
83
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./component/spotlight.component";
|
|
3
3
|
import * as i2 from "./pipes/translate.pipe";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "primeng/
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "../
|
|
4
|
+
import * as i3 from "@angular/cdk/a11y";
|
|
5
|
+
import * as i4 from "primeng/button";
|
|
6
|
+
import * as i5 from "primeng/tooltip";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "../http-interceptor/http-interceptor.module";
|
|
9
|
+
import * as i8 from "../translations/translations.module";
|
|
9
10
|
export declare class SpotlightModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpotlightModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpotlightModule, [typeof i1.SpotlightComponent, typeof i2.TranslatePipe], [typeof i3.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpotlightModule, [typeof i1.SpotlightComponent, typeof i2.TranslatePipe], [typeof i3.A11yModule, typeof i4.ButtonModule, typeof i5.TooltipModule, typeof i6.CommonModule, typeof i7.HttpInterceptorModule, typeof i8.TranslationsModule], [typeof i1.SpotlightComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpotlightModule>;
|
|
13
14
|
}
|