@seniorsistemas/platform-components 7.2.0-develop-a5cdf6fe → 7.2.1-develop-c3823f83
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/advanced-filter.module.mjs +32 -35
- package/esm2022/modules/advanced-filter/components/advanced-filter/advanced-filter.component.mjs +33 -9
- package/esm2022/modules/advanced-filter/components/form-filter/form-filter.component.mjs +16 -26
- package/esm2022/modules/advanced-filter/locale/fallback.mjs +1 -46
- package/esm2022/modules/advanced-filter/services/calendar-options.service.mjs +13 -64
- package/esm2022/modules/advanced-filter/utils/filter-value/index.mjs +7 -11
- package/esm2022/modules/advanced-filter/utils/form-field/index.mjs +10 -9
- package/esm2022/modules/spotlight/component/spotlight.component.mjs +7 -8
- package/esm2022/modules/spotlight/spotlight.module.mjs +7 -14
- package/esm2022/modules/translations/translations.module.mjs +4 -4
- package/fesm2022/seniorsistemas-platform-components.mjs +113 -209
- package/fesm2022/seniorsistemas-platform-components.mjs.map +1 -1
- package/modules/advanced-filter/advanced-filter.module.d.ts +10 -11
- package/modules/advanced-filter/components/advanced-filter/advanced-filter.component.d.ts +9 -1
- package/modules/advanced-filter/components/form-filter/form-filter.component.d.ts +1 -5
- package/modules/advanced-filter/locale/fallback.d.ts +0 -45
- package/modules/advanced-filter/services/calendar-options.service.d.ts +8 -12
- package/modules/spotlight/spotlight.module.d.ts +5 -6
- package/modules/translations/translations.module.d.ts +1 -1
- package/package.json +12 -2
- package/schematics/collection.json +10 -0
- package/schematics/migrations/migrate-v8/index.d.ts +57 -0
- package/schematics/migrations/migrate-v8/index.js +281 -0
- package/schematics/migrations/migrate-v8/index.js.map +1 -0
- package/schematics/migrations/migrate-v8/schema.json +17 -0
- package/schematics/migrations.json +11 -0
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Pipe, inject, InjectionToken, APP_INITIALIZER, Injector, NgModule, Injectable, ChangeDetectorRef, EventEmitter, Component, Input, Output, HostListener, ElementRef, ViewEncapsulation, ViewChild } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i3$2 from '@angular/common';
|
|
4
4
|
import { LOCATION_INITIALIZED, CommonModule, DatePipe } from '@angular/common';
|
|
5
5
|
import { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import
|
|
7
|
-
import { ButtonModule as ButtonModule$1 } from 'primeng/button';
|
|
8
|
-
import * as i1$2 from 'primeng/dialog';
|
|
9
|
-
import { DialogModule } from 'primeng/dialog';
|
|
10
|
-
import * as i1$1 from 'primeng/tabview';
|
|
11
|
-
import { TabViewModule } from 'primeng/tabview';
|
|
12
|
-
import * as i5 from 'primeng/toast';
|
|
13
|
-
import { ToastModule } from 'primeng/toast';
|
|
14
|
-
import * as i3$2 from 'primeng/tooltip';
|
|
15
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
16
|
-
import * as i2$1 from 'primeng/api';
|
|
17
|
-
import { MessageService } from 'primeng/api';
|
|
18
|
-
import { LocaleService } from '@seniorsistemas/angular-components/locale';
|
|
6
|
+
import { parseLocalizedDate, formatLocalizedDate, DEFAULT_DATE_FORMAT, LocaleService } from '@seniorsistemas/angular-components/locale';
|
|
19
7
|
import * as i3 from '@seniorsistemas/angular-components/empty-state';
|
|
20
|
-
import {
|
|
21
|
-
import * as
|
|
22
|
-
import {
|
|
8
|
+
import { EmptyStateComponent } from '@seniorsistemas/angular-components/empty-state';
|
|
9
|
+
import * as i4 from '@seniorsistemas/angular-components/button';
|
|
10
|
+
import { ButtonComponent } from '@seniorsistemas/angular-components/button';
|
|
23
11
|
import * as i2 from '@seniorsistemas/angular-components/dynamic-form';
|
|
24
|
-
import { dynamicTypeToDynamicStructure,
|
|
12
|
+
import { dynamicTypeToDynamicStructure, DynamicFormComponent } from '@seniorsistemas/angular-components/dynamic-form';
|
|
13
|
+
import * as i1$2 from '@seniorsistemas/angular-components/badge';
|
|
14
|
+
import { BadgeComponent } from '@seniorsistemas/angular-components/badge';
|
|
15
|
+
import * as i2$1 from '@seniorsistemas/angular-components/dialog';
|
|
16
|
+
import { DialogComponent } from '@seniorsistemas/angular-components/dialog';
|
|
17
|
+
import * as i1$1 from '@seniorsistemas/angular-components/tabs';
|
|
18
|
+
import { TabsComponent, TabItemComponent } from '@seniorsistemas/angular-components/tabs';
|
|
19
|
+
import * as i3$1 from '@seniorsistemas/angular-components/template';
|
|
20
|
+
import { TemplateDirective } from '@seniorsistemas/angular-components/template';
|
|
25
21
|
import * as i1 from '@ngx-translate/core';
|
|
26
22
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
27
23
|
import { HttpClient, provideHttpClient, withInterceptorsFromDi, HttpParams, HttpHeaders, HttpResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
28
24
|
import { user, service } from '@seniorsistemas/senior-platform-data';
|
|
29
|
-
import { CookieService } from '
|
|
25
|
+
import { CookieService } from '@seniorsistemas/angular-components/cookie';
|
|
30
26
|
import { Subject, BehaviorSubject, Observable, of, from, defer, forkJoin, throwError, takeUntil as takeUntil$1 } from 'rxjs';
|
|
31
27
|
import { map, switchMap, catchError, takeUntil, filter, tap, mergeMap, shareReplay } from 'rxjs/operators';
|
|
32
28
|
import { Router, NavigationEnd } from '@angular/router';
|
|
33
29
|
import { ToastService } from '@seniorsistemas/angular-components/toast';
|
|
34
30
|
import { contains, equals, clone } from 'ramda';
|
|
35
|
-
import * as momentNs from 'moment';
|
|
36
31
|
import * as jc from 'json-cycle';
|
|
37
32
|
import * as i1$3 from '@angular/cdk/a11y';
|
|
38
33
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
@@ -101,11 +96,11 @@ class TranslationsModule {
|
|
|
101
96
|
}
|
|
102
97
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TranslationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
103
98
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TranslationsModule, imports: [i1.TranslateModule] });
|
|
104
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TranslationsModule, providers: [
|
|
99
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TranslationsModule, providers: [provideHttpClient(withInterceptorsFromDi())], imports: [TranslateModule.forChild()] });
|
|
105
100
|
}
|
|
106
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TranslationsModule, decorators: [{
|
|
107
102
|
type: NgModule,
|
|
108
|
-
args: [{ imports: [TranslateModule.forChild()], providers: [
|
|
103
|
+
args: [{ imports: [TranslateModule.forChild()], providers: [provideHttpClient(withInterceptorsFromDi())] }]
|
|
109
104
|
}] });
|
|
110
105
|
function resolveImmediately(resolve) {
|
|
111
106
|
resolve();
|
|
@@ -272,51 +267,6 @@ const fallback$1 = {
|
|
|
272
267
|
'platform.filter_service.hour_format': '24',
|
|
273
268
|
'platform.filter_service.clear': 'Limpar',
|
|
274
269
|
'platform.filter_service.today': 'Hoje',
|
|
275
|
-
'platform.filter_service.name_january': 'Janeiro',
|
|
276
|
-
'platform.filter_service.name_february': 'Fevereiro',
|
|
277
|
-
'platform.filter_service.name_march': 'Março',
|
|
278
|
-
'platform.filter_service.name_april': 'Abril',
|
|
279
|
-
'platform.filter_service.name_may': 'Maio',
|
|
280
|
-
'platform.filter_service.name_june': 'Junho',
|
|
281
|
-
'platform.filter_service.name_july': 'Julho',
|
|
282
|
-
'platform.filter_service.name_august': 'Agosto',
|
|
283
|
-
'platform.filter_service.name_september': 'Setembro',
|
|
284
|
-
'platform.filter_service.name_october': 'Outubro',
|
|
285
|
-
'platform.filter_service.name_november': 'Novembro',
|
|
286
|
-
'platform.filter_service.name_december': 'Dezembro',
|
|
287
|
-
'platform.filter_service.short_january': 'Jan',
|
|
288
|
-
'platform.filter_service.short_february': 'Fev',
|
|
289
|
-
'platform.filter_service.short_march': 'Mar',
|
|
290
|
-
'platform.filter_service.short_april': 'Abr',
|
|
291
|
-
'platform.filter_service.short_may': 'Mai',
|
|
292
|
-
'platform.filter_service.short_june': 'Jun',
|
|
293
|
-
'platform.filter_service.short_july': 'Jul',
|
|
294
|
-
'platform.filter_service.short_august': 'Ago',
|
|
295
|
-
'platform.filter_service.short_september': 'Set',
|
|
296
|
-
'platform.filter_service.short_october': 'Out',
|
|
297
|
-
'platform.filter_service.short_november': 'Nov',
|
|
298
|
-
'platform.filter_service.short_december': 'Dez',
|
|
299
|
-
'platform.filter_service.name_sunday': 'Domingo',
|
|
300
|
-
'platform.filter_service.name_monday': 'Segunda',
|
|
301
|
-
'platform.filter_service.name_tuesday': 'Terça',
|
|
302
|
-
'platform.filter_service.name_wednesday': 'Quarta',
|
|
303
|
-
'platform.filter_service.name_thursday': 'Quinta',
|
|
304
|
-
'platform.filter_service.name_friday': 'Sexta',
|
|
305
|
-
'platform.filter_service.name_saturday': 'Sábado',
|
|
306
|
-
'platform.filter_service.min_sunday': 'D',
|
|
307
|
-
'platform.filter_service.min_monday': 'S',
|
|
308
|
-
'platform.filter_service.min_tuesday': 'T',
|
|
309
|
-
'platform.filter_service.min_wednesday': 'Q',
|
|
310
|
-
'platform.filter_service.min_thursday': 'Q',
|
|
311
|
-
'platform.filter_service.min_friday': 'S',
|
|
312
|
-
'platform.filter_service.min_saturday': 'S',
|
|
313
|
-
'platform.filter_service.short_sunday': 'Dom',
|
|
314
|
-
'platform.filter_service.short_monday': 'Seg',
|
|
315
|
-
'platform.filter_service.short_tuesday': 'Ter',
|
|
316
|
-
'platform.filter_service.short_wednesday': 'Qua',
|
|
317
|
-
'platform.filter_service.short_thursday': 'Qui',
|
|
318
|
-
'platform.filter_service.short_friday': 'Sex',
|
|
319
|
-
'platform.filter_service.short_saturday': 'Sab',
|
|
320
270
|
'platform.filter_service.yes': 'Sim',
|
|
321
271
|
'platform.filter_service.no': 'Não',
|
|
322
272
|
'platform.filter_service.search_empty_message': 'Nenhum resultado encontrado',
|
|
@@ -737,12 +687,6 @@ function getTabId(domain, contextId) {
|
|
|
737
687
|
return `${domain}${FILTER_ID_SEPARATOR}${contextId}`;
|
|
738
688
|
}
|
|
739
689
|
|
|
740
|
-
// NOSONAR
|
|
741
|
-
/**
|
|
742
|
-
*@description Necessary because of https://github.com/rollup/rollup/issues/670
|
|
743
|
-
*
|
|
744
|
-
* */
|
|
745
|
-
const moment$1 = momentNs.default || momentNs;
|
|
746
690
|
const { DATETIME: DATETIME$1, TIME: TIME$1, DATE: DATE$1 } = FilterType;
|
|
747
691
|
const parsers$1 = {
|
|
748
692
|
[DATE$1]: (value) => dateParser$1(value, 'YYYY-MM-DD'),
|
|
@@ -756,9 +700,11 @@ function parseFilterValue(value, type) {
|
|
|
756
700
|
}
|
|
757
701
|
return value;
|
|
758
702
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
703
|
+
/** Texto devolvido para datas inválidas (mesmo valor que o moment gerava). */
|
|
704
|
+
const INVALID_DATE = 'Invalid date';
|
|
705
|
+
function dateParser$1(value, format = DEFAULT_DATE_FORMAT) {
|
|
706
|
+
const date = parseLocalizedDate(value);
|
|
707
|
+
return date ? formatLocalizedDate(date, format) : INVALID_DATE;
|
|
762
708
|
}
|
|
763
709
|
|
|
764
710
|
function jsonPath(obj, path) {
|
|
@@ -834,12 +780,6 @@ function getSearchType(search) {
|
|
|
834
780
|
return search.basicSearch ? search.basicSearch : search.entitySearch;
|
|
835
781
|
}
|
|
836
782
|
|
|
837
|
-
/* sonar-ignore */
|
|
838
|
-
/**
|
|
839
|
-
*@description Necessary because of https://github.com/rollup/rollup/issues/670
|
|
840
|
-
*
|
|
841
|
-
* */
|
|
842
|
-
const moment = momentNs.default || momentNs;
|
|
843
783
|
const { DATE, DATETIME, TIME } = FilterType;
|
|
844
784
|
const parsers = {
|
|
845
785
|
[DATE]: (v) => dateParser(v),
|
|
@@ -879,75 +819,31 @@ function createValidators(minValue, maxValue, regExp) {
|
|
|
879
819
|
return validators;
|
|
880
820
|
}
|
|
881
821
|
function dateParser(value, format) {
|
|
882
|
-
|
|
822
|
+
if (value === null || value === '') {
|
|
823
|
+
return '';
|
|
824
|
+
}
|
|
825
|
+
// Sem valor e sem formato, o comportamento histórico é a data/hora atual.
|
|
826
|
+
if (value === undefined && !format) {
|
|
827
|
+
return new Date();
|
|
828
|
+
}
|
|
829
|
+
return parseLocalizedDate(value, format) ?? new Date(Number.NaN);
|
|
883
830
|
}
|
|
884
831
|
|
|
885
832
|
const TRANSLATE_PREFIX$2 = 'platform.filter_service';
|
|
886
833
|
class CalendarOptionsService {
|
|
887
834
|
translate = inject(TranslateService);
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
],
|
|
901
|
-
dayNamesMin: [
|
|
902
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_sunday`),
|
|
903
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_monday`),
|
|
904
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_tuesday`),
|
|
905
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_wednesday`),
|
|
906
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_thursday`),
|
|
907
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_friday`),
|
|
908
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.min_saturday`)
|
|
909
|
-
],
|
|
910
|
-
dayNamesShort: [
|
|
911
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_sunday`),
|
|
912
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_monday`),
|
|
913
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_tuesday`),
|
|
914
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_wednesday`),
|
|
915
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_thursday`),
|
|
916
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_friday`),
|
|
917
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_saturday`)
|
|
918
|
-
],
|
|
919
|
-
firstDayOfWeek: 0,
|
|
920
|
-
hourFormat: this.translate.instant(`${TRANSLATE_PREFIX$2}.hour_format`),
|
|
921
|
-
monthNames: [
|
|
922
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_january`),
|
|
923
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_february`),
|
|
924
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_march`),
|
|
925
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_april`),
|
|
926
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_may`),
|
|
927
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_june`),
|
|
928
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_july`),
|
|
929
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_august`),
|
|
930
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_september`),
|
|
931
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_october`),
|
|
932
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_november`),
|
|
933
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.name_december`),
|
|
934
|
-
],
|
|
935
|
-
monthNamesShort: [
|
|
936
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_january`),
|
|
937
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_february`),
|
|
938
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_march`),
|
|
939
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_april`),
|
|
940
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_may`),
|
|
941
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_june`),
|
|
942
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_july`),
|
|
943
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_august`),
|
|
944
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_september`),
|
|
945
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_october`),
|
|
946
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_november`),
|
|
947
|
-
this.translate.instant(`${TRANSLATE_PREFIX$2}.short_december`),
|
|
948
|
-
],
|
|
949
|
-
today: this.translate.instant(`${TRANSLATE_PREFIX$2}.today`)
|
|
950
|
-
};
|
|
835
|
+
/**
|
|
836
|
+
* Formato de data do locale ativo no padrão do `s-datepicker` (ex.: `dd/MM/yyyy`).
|
|
837
|
+
*
|
|
838
|
+
* As traduções `platform.filter_service.date_format` seguem o padrão legado do PrimeNG
|
|
839
|
+
* (`dd/mm/yy`), por isso são convertidas: `mm` → `MM` e `yy` → `yyyy`.
|
|
840
|
+
*/
|
|
841
|
+
getDateFormat() {
|
|
842
|
+
const primeFormat = this.translate.instant(`${TRANSLATE_PREFIX$2}.date_format`);
|
|
843
|
+
return primeFormat.replace(/mm/g, 'MM').replace(/(?<!y)yy(?!y)/g, 'yyyy');
|
|
844
|
+
}
|
|
845
|
+
getHourFormat() {
|
|
846
|
+
return this.translate.instant(`${TRANSLATE_PREFIX$2}.hour_format`) === '12' ? '12' : '24';
|
|
951
847
|
}
|
|
952
848
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CalendarOptionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
953
849
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CalendarOptionsService });
|
|
@@ -1386,14 +1282,15 @@ class FormFilterComponent {
|
|
|
1386
1282
|
...field,
|
|
1387
1283
|
type: 'enum',
|
|
1388
1284
|
placeholder: this.translate.instant('platform.filter_service.select'),
|
|
1389
|
-
appendTo: 'body',
|
|
1390
1285
|
options: [...translatedEnumItems]
|
|
1391
1286
|
}),
|
|
1392
1287
|
[FilterType.INTEGER]: () => ({
|
|
1393
1288
|
...field,
|
|
1394
|
-
numberLocaleOptions: this.optionsInteger(),
|
|
1395
1289
|
mask: mask ? () => mask : null,
|
|
1396
|
-
type: '
|
|
1290
|
+
type: 'number',
|
|
1291
|
+
scale: 0,
|
|
1292
|
+
allowNegative: false,
|
|
1293
|
+
autoClear: false
|
|
1397
1294
|
}),
|
|
1398
1295
|
[FilterType.DOUBLE]: () => ({ ...field, type: 'double' }),
|
|
1399
1296
|
[FilterType.SEARCH]: () => this.createAutocompleteField(field, filter)
|
|
@@ -1413,12 +1310,11 @@ class FormFilterComponent {
|
|
|
1413
1310
|
type: config.type,
|
|
1414
1311
|
name: config.name ?? ''
|
|
1415
1312
|
};
|
|
1416
|
-
calendar.
|
|
1417
|
-
calendar.
|
|
1313
|
+
calendar.dateFormat = this.calendarOptionsService.getDateFormat();
|
|
1314
|
+
calendar.hourFormat = this.calendarOptionsService.getHourFormat();
|
|
1418
1315
|
return calendar;
|
|
1419
1316
|
}
|
|
1420
1317
|
createAutocompleteField(field, { dependsOn, search, domain, name }) {
|
|
1421
|
-
const suggestionsObservable = new BehaviorSubject([]);
|
|
1422
1318
|
const { queryParam } = getSearchType(search).input;
|
|
1423
1319
|
const { displayFields, keyFields, resultDataJsonPath, displayFieldConcatToken, maxSelectedItems } = getSearchType(search).output;
|
|
1424
1320
|
const filterId = getFilterId(domain, name);
|
|
@@ -1435,7 +1331,7 @@ class FormFilterComponent {
|
|
|
1435
1331
|
};
|
|
1436
1332
|
this.sendMessage(message);
|
|
1437
1333
|
};
|
|
1438
|
-
const onSearch = (val) => {
|
|
1334
|
+
const onSearch = ({ query: val, response }) => {
|
|
1439
1335
|
const params = { [queryParam]: val };
|
|
1440
1336
|
dependsOn && Object.assign(params, this.getDependenciesValues(dependsOn, domain));
|
|
1441
1337
|
const searchUrl = search && search.type === 'ENTITY'
|
|
@@ -1443,15 +1339,13 @@ class FormFilterComponent {
|
|
|
1443
1339
|
: getSearchType(search).input.url;
|
|
1444
1340
|
this.filterService
|
|
1445
1341
|
.searchFieldSuggestions(searchUrl, params, search.type)
|
|
1446
|
-
.pipe(map((
|
|
1342
|
+
.pipe(map((httpResponse) => jsonPath(httpResponse, resultDataJsonPath)), map((suggestions) => this.addSuggestionFields(suggestions, displayFields, keyFields, displayFieldConcatToken, filterId)))
|
|
1447
1343
|
.subscribe((result) => {
|
|
1448
|
-
|
|
1344
|
+
response(result);
|
|
1449
1345
|
this.changeDetectorRef.detectChanges();
|
|
1450
1346
|
}, (error) => {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
messageError = error.error.message;
|
|
1454
|
-
suggestionsError(messageError);
|
|
1347
|
+
response([]);
|
|
1348
|
+
suggestionsError(error?.error?.message);
|
|
1455
1349
|
});
|
|
1456
1350
|
};
|
|
1457
1351
|
return {
|
|
@@ -1459,8 +1353,6 @@ class FormFilterComponent {
|
|
|
1459
1353
|
name: field.name,
|
|
1460
1354
|
type: 'autocomplete',
|
|
1461
1355
|
onSearch,
|
|
1462
|
-
appendTo: 'body',
|
|
1463
|
-
suggestionsObservable,
|
|
1464
1356
|
displayField: searchDisplayName,
|
|
1465
1357
|
dataKey: searchKeyName,
|
|
1466
1358
|
multiple: maxSelectedItems > 1,
|
|
@@ -1618,18 +1510,12 @@ class FormFilterComponent {
|
|
|
1618
1510
|
IsEmpty(value) {
|
|
1619
1511
|
return Array.isArray(value) ? value.every((data) => !data) : !value;
|
|
1620
1512
|
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Return format to specify for integer type field
|
|
1623
|
-
*/
|
|
1624
|
-
optionsInteger() {
|
|
1625
|
-
return { currencySymbol: '', decimalSeparator: '', thousandsSeparator: '' };
|
|
1626
|
-
}
|
|
1627
1513
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1628
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FormFilterComponent, selector: "s-app-form-filter", inputs: { showMessages: "showMessages", contextId: "contextId" }, outputs: { totalFiltersActiveOutput: "totalFiltersActiveOutput", errorOutput: "errorOutput", showDialogOutput: "showDialogOutput", closeModalOutput: "closeModalOutput" }, host: { listeners: { "window:resize": "onResizeWindow($event)" } }, ngImport: i0, template: "@if (error) {\n <div role=\"alert\" aria-live=\"assertive\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"errorState?.status + ' - ' + errorState?.statusText\"\n (primaryAction)=\"errorStateAction()\"\n [primaryActionLabel]=\"translate.instant('platform.filter_service.try')\"\n [description]=\"translate.instant('platform.filter_service.error_state')\"\n ></s-empty-state>\n </div>\n} @else {\n @if (tabs && tabs.size > 1) {\n <
|
|
1514
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FormFilterComponent, selector: "s-app-form-filter", inputs: { showMessages: "showMessages", contextId: "contextId" }, outputs: { totalFiltersActiveOutput: "totalFiltersActiveOutput", errorOutput: "errorOutput", showDialogOutput: "showDialogOutput", closeModalOutput: "closeModalOutput" }, host: { listeners: { "window:resize": "onResizeWindow($event)" } }, ngImport: i0, template: "@if (error) {\n <div role=\"alert\" aria-live=\"assertive\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"errorState?.status + ' - ' + errorState?.statusText\"\n (primaryAction)=\"errorStateAction()\"\n [primaryActionLabel]=\"translate.instant('platform.filter_service.try')\"\n [description]=\"translate.instant('platform.filter_service.error_state')\"\n ></s-empty-state>\n </div>\n} @else {\n @if (tabs && tabs.size > 1) {\n <s-tabs [(activeTab)]=\"activeIndex\">\n @if (general.configs.length) {\n <s-tab-item [header]=\"general.name\">\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"general.configs\" [form]=\"general.form\" />\n </s-tab-item>\n }\n\n @for (tab of tabs | mapValues; track $index) {\n <s-tab-item [header]=\"tab.label\">\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"tab.configs\" [form]=\"tab.form\" />\n </s-tab-item>\n }\n </s-tabs>\n }\n\n @if (tabs && tabs.size === 1) {\n @for (tab of tabs | mapValues; track $index) {\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"tab.configs\" [form]=\"tab.form\" />\n }\n }\n}\n", dependencies: [{ kind: "component", type: i1$1.TabsComponent, selector: "s-tabs", inputs: ["activeTab", "layoutType"], outputs: ["activeTabChange"] }, { kind: "component", type: i1$1.TabItemComponent, selector: "s-tab-item", inputs: ["icon", "header", "disabled", "value", "destroyOnHide"], outputs: ["valueChange"] }, { kind: "component", type: i2.DynamicFormComponent, selector: "s-dynamic-form", inputs: ["id", "configs", "form", "errorMessages", "focusFirstInvalidOnSubmit"] }, { kind: "component", type: i3.EmptyStateComponent, selector: "s-empty-state", inputs: ["id", "title", "iconClass", "description", "showPrimaryAction", "showSecondaryAction", "primaryActionLabel", "secondaryActionLabel", "primaryModel"], outputs: ["primaryAction", "secondaryAction"] }, { kind: "pipe", type: MapValuesPipe, name: "mapValues" }] });
|
|
1629
1515
|
}
|
|
1630
1516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormFilterComponent, decorators: [{
|
|
1631
1517
|
type: Component,
|
|
1632
|
-
args: [{ selector: 's-app-form-filter', template: "@if (error) {\n <div role=\"alert\" aria-live=\"assertive\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"errorState?.status + ' - ' + errorState?.statusText\"\n (primaryAction)=\"errorStateAction()\"\n [primaryActionLabel]=\"translate.instant('platform.filter_service.try')\"\n [description]=\"translate.instant('platform.filter_service.error_state')\"\n ></s-empty-state>\n </div>\n} @else {\n @if (tabs && tabs.size > 1) {\n <
|
|
1518
|
+
args: [{ selector: 's-app-form-filter', template: "@if (error) {\n <div role=\"alert\" aria-live=\"assertive\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"errorState?.status + ' - ' + errorState?.statusText\"\n (primaryAction)=\"errorStateAction()\"\n [primaryActionLabel]=\"translate.instant('platform.filter_service.try')\"\n [description]=\"translate.instant('platform.filter_service.error_state')\"\n ></s-empty-state>\n </div>\n} @else {\n @if (tabs && tabs.size > 1) {\n <s-tabs [(activeTab)]=\"activeIndex\">\n @if (general.configs.length) {\n <s-tab-item [header]=\"general.name\">\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"general.configs\" [form]=\"general.form\" />\n </s-tab-item>\n }\n\n @for (tab of tabs | mapValues; track $index) {\n <s-tab-item [header]=\"tab.label\">\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"tab.configs\" [form]=\"tab.form\" />\n </s-tab-item>\n }\n </s-tabs>\n }\n\n @if (tabs && tabs.size === 1) {\n @for (tab of tabs | mapValues; track $index) {\n <s-dynamic-form [errorMessages]=\"errorMessages\" [configs]=\"tab.configs\" [form]=\"tab.form\" />\n }\n }\n}\n" }]
|
|
1633
1519
|
}], propDecorators: { showMessages: [{
|
|
1634
1520
|
type: Input
|
|
1635
1521
|
}], contextId: [{
|
|
@@ -1662,9 +1548,29 @@ class AdvancedFilterComponent {
|
|
|
1662
1548
|
isMobile = false;
|
|
1663
1549
|
tabViewOrientation = 'left';
|
|
1664
1550
|
totalFiltersActive = 0;
|
|
1665
|
-
showDialog = false;
|
|
1666
1551
|
error = false;
|
|
1667
1552
|
currentTicket = '';
|
|
1553
|
+
_showDialog = false;
|
|
1554
|
+
hideTimeout;
|
|
1555
|
+
/**
|
|
1556
|
+
* Visibilidade do diálogo de filtros. Qualquer transição (pelo usuário ou programática) dispara os
|
|
1557
|
+
* mesmos efeitos que o antigo p-dialog disparava em `onShow`/`onHide`.
|
|
1558
|
+
*/
|
|
1559
|
+
get showDialog() {
|
|
1560
|
+
return this._showDialog;
|
|
1561
|
+
}
|
|
1562
|
+
set showDialog(value) {
|
|
1563
|
+
const wasVisible = this._showDialog;
|
|
1564
|
+
this._showDialog = value;
|
|
1565
|
+
if (!wasVisible && value) {
|
|
1566
|
+
this.onDialogShow();
|
|
1567
|
+
}
|
|
1568
|
+
else if (wasVisible && !value) {
|
|
1569
|
+
// Executa após o fluxo atual (ex.: applyFilters), como o onHide do p-dialog fazia após a animação.
|
|
1570
|
+
clearTimeout(this.hideTimeout);
|
|
1571
|
+
this.hideTimeout = setTimeout(() => this.onDialogHide());
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1668
1574
|
modalComponent;
|
|
1669
1575
|
filterButtonRef;
|
|
1670
1576
|
mobileButtonActions = [
|
|
@@ -1683,6 +1589,7 @@ class AdvancedFilterComponent {
|
|
|
1683
1589
|
}
|
|
1684
1590
|
ngOnDestroy() {
|
|
1685
1591
|
this.subscriptions.forEach((v) => v.unsubscribe());
|
|
1592
|
+
clearTimeout(this.hideTimeout);
|
|
1686
1593
|
}
|
|
1687
1594
|
onResizeWindow(event) {
|
|
1688
1595
|
const { innerWidth } = event.target;
|
|
@@ -1737,6 +1644,9 @@ class AdvancedFilterComponent {
|
|
|
1737
1644
|
toggleDialog() {
|
|
1738
1645
|
this.showDialog = !this.showDialog;
|
|
1739
1646
|
}
|
|
1647
|
+
onDialogShow() {
|
|
1648
|
+
this.focusFirstField();
|
|
1649
|
+
}
|
|
1740
1650
|
onDialogHide() {
|
|
1741
1651
|
this.showDialog = false;
|
|
1742
1652
|
this.close();
|
|
@@ -1756,11 +1666,11 @@ class AdvancedFilterComponent {
|
|
|
1756
1666
|
this.totalFiltersActive = event;
|
|
1757
1667
|
}
|
|
1758
1668
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1759
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: AdvancedFilterComponent, selector: "s-advanced-filter", inputs: { labelButton: "labelButton", onlyContent: "onlyContent", hideButtons: "hideButtons", canOpenFilter: "canOpenFilter", showActiveFiltersCountBadge: "showActiveFiltersCountBadge", filterAndSave: "filterAndSave", contextId: "contextId" }, host: { listeners: { "window:resize": "onResizeWindow($event)" } }, viewQueries: [{ propertyName: "modalComponent", first: true, predicate: FormFilterComponent, descendants: true }, { propertyName: "filterButtonRef", first: true, predicate: ["filterButtonRef"], descendants: true, read: ElementRef }], ngImport: i0, template: "<s-button\n #filterButtonRef\n *ngIf=\"!onlyContent\"\n [id]=\"'filterButton'\"\n [disabled]=\"!canOpenFilter\"\n (clicked)=\"canOpenFilter ? toggleDialog() : ''\"\n iconClass=\"fa fa-filter\"\n priority=\"default\"\n [label]=\"labelButton\"\n [auxiliary]=\"true\"\n [tooltip]=\"appliedFiltersTooltip\"\n>\n <span aria-live=\"polite\">\n <
|
|
1669
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: AdvancedFilterComponent, selector: "s-advanced-filter", inputs: { labelButton: "labelButton", onlyContent: "onlyContent", hideButtons: "hideButtons", canOpenFilter: "canOpenFilter", showActiveFiltersCountBadge: "showActiveFiltersCountBadge", filterAndSave: "filterAndSave", contextId: "contextId" }, host: { listeners: { "window:resize": "onResizeWindow($event)" } }, viewQueries: [{ propertyName: "modalComponent", first: true, predicate: FormFilterComponent, descendants: true }, { propertyName: "filterButtonRef", first: true, predicate: ["filterButtonRef"], descendants: true, read: ElementRef }], ngImport: i0, template: "<s-button\n #filterButtonRef\n *ngIf=\"!onlyContent\"\n [id]=\"'filterButton'\"\n [disabled]=\"!canOpenFilter\"\n (clicked)=\"canOpenFilter ? toggleDialog() : ''\"\n iconClass=\"fa fa-filter\"\n priority=\"default\"\n [label]=\"labelButton\"\n [auxiliary]=\"true\"\n [tooltip]=\"appliedFiltersTooltip\"\n>\n <span aria-live=\"polite\">\n <s-badge\n *ngIf=\"totalFiltersActive && showActiveFiltersCountBadge\"\n class=\"s-filter-count-badge custom-badge\"\n color=\"primary\"\n [text]=\"totalFiltersActive.toString()\"\n ></s-badge>\n <span class=\"sr-only\" *ngIf=\"totalFiltersActive && showActiveFiltersCountBadge\">\n {{ totalFiltersActive }} {{ 'platform.filter_service.active_filters' | translate }}\n </span>\n </span>\n</s-button>\n\n<section *ngIf=\"onlyContent\">\n <div class=\"only-content-wrapper\">\n <div class=\"header\">\n <h3 id=\"filter-heading\">{{ 'platform.filter_service.filters' | translate }}</h3>\n <button\n type=\"button\"\n (click)=\"close()\"\n class=\"close_btn\"\n [attr.aria-label]=\"'platform.filter_service.aria_close_filters' | translate\"\n >\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"app-form-filter\">\n <s-app-form-filter\n [showMessages]=\"false\"\n (totalFiltersActiveOutput)=\"updateTotalFiltersActive($event)\"\n (closeModalOutput)=\"close()\"\n [contextId]=\"contextId\"\n ></s-app-form-filter>\n </div>\n <div class=\"filter-footer\" *ngIf=\"!error\">\n <s-button\n priority=\"link\"\n [label]=\"translate.instant('platform.filter_service.cancel')\"\n (clicked)=\"close()\"\n ></s-button>\n <s-button\n *ngIf=\"isMobile\"\n priority=\"default\"\n [label]=\"translate.instant('platform.filter_service.actions')\"\n [auxiliary]=\"true\"\n [menuOptions]=\"mobileButtonActions\"\n ></s-button>\n <ng-container *ngIf=\"!isMobile\">\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.clear')\"\n (clicked)=\"clearFilters()\"\n ></s-button>\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.save')\"\n (clicked)=\"saveFilters()\"\n ></s-button>\n </ng-container>\n <s-button\n type=\"submit\"\n priority=\"primary\"\n [label]=\"translate.instant('platform.filter_service.filter')\"\n (clicked)=\"onApplyFilters()\"\n ></s-button>\n </div>\n </div>\n</section>\n\n<s-dialog\n *ngIf=\"!onlyContent\"\n size=\"lg\"\n contentClassName=\"filter-dialog\"\n [header]=\"'platform.filter_service.filters' | translate\"\n [closeAriaLabel]=\"'platform.filter_service.aria_close_dialog' | translate\"\n [escapeOnEsc]=\"true\"\n [destroyClickOutside]=\"false\"\n [blockScroll]=\"true\"\n [(visible)]=\"showDialog\"\n>\n\n <s-app-form-filter\n [showMessages]=\"true\"\n (errorOutput)=\"onError($event)\"\n (totalFiltersActiveOutput)=\"updateTotalFiltersActive($event)\"\n [contextId]=\"contextId\"\n ></s-app-form-filter>\n\n <ng-template sTemplate=\"footer\">\n <div class=\"filter-dialog-footer\" *ngIf=\"!error && !hideButtons\">\n <s-button\n type=\"submit\"\n priority=\"primary\"\n [label]=\"translate.instant('platform.filter_service.filter')\"\n (clicked)=\"applyFilters()\"\n ></s-button>\n <ng-container *ngIf=\"!isMobile\">\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.save')\"\n (clicked)=\"saveFilters()\"\n ></s-button>\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.clear')\"\n (clicked)=\"clearFilters()\"\n ></s-button>\n </ng-container>\n <s-button\n *ngIf=\"isMobile\"\n priority=\"default\"\n [label]=\"translate.instant('platform.filter_service.actions')\"\n [auxiliary]=\"true\"\n [menuOptions]=\"mobileButtonActions\"\n ></s-button>\n <s-button\n priority=\"link\"\n [label]=\"translate.instant('platform.filter_service.cancel')\"\n (clicked)=\"toggleDialog(); close()\"\n ></s-button>\n </div>\n </ng-template>\n</s-dialog>\n\n", styles: [".custom-badge{position:absolute!important;right:-4px;top:-10px;height:20px;vertical-align:middle;display:table;min-width:22px}.filter-button{position:relative;border:solid 1px black;border-radius:1.5rem;background:transparent;padding:.5rem 1rem;cursor:pointer}.filter-footer{text-align:end;border-top:1px solid #e5eaea;padding:13px}.app-form-filter{height:335px;max-height:335px;overflow:auto}.only-content-wrapper{background-color:#fff}.close_btn{align-content:center;justify-self:right;margin-left:auto;background:none;border:none;padding:0;font:inherit;color:inherit}.close_btn:hover{cursor:pointer}.header{text-transform:uppercase;display:flex;width:100%;border-bottom:1px solid #e5eaea;padding:15px;margin-left:0}@media (min-width: 641px) and (max-width: 1024px){.filter-dialog{width:75vw}}@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait){.filter-dialog{width:75vw}}@media (min-width: 320px) and (max-width: 640px){.filter-dialog{width:95vw;left:0;top:0;opacity:1;margin:auto;height:93vh}}@media (min-width: 320px) and (max-width: 640px) and (max-width: 360px){.filter-dialog button{padding:0!important}}.filter-dialog-footer{display:flex;flex-direction:row-reverse;flex-wrap:wrap;gap:10px}.filter-dialog-footer s-button+s-button{margin-left:0!important}\n"], dependencies: [{ kind: "component", type: i1$2.BadgeComponent, selector: "s-badge", inputs: ["type", "color", "title", "text", "selectable", "iconClass", "ariaLabel", "iconPosition", "infoSign", "enableTruncateText"], outputs: ["selected"] }, { kind: "component", type: i2$1.DialogComponent, selector: "s-dialog", inputs: ["header", "visible", "size", "contentClassName", "escapeOnEsc", "destroyClickOutside", "closeAriaLabel", "ariaLabel", "dialogRole", "ariaDescribedBy", "blockScroll"], outputs: ["visibleChange"] }, { kind: "directive", type: i3$1.TemplateDirective, selector: "[sTemplate]", inputs: ["sTemplate"] }, { kind: "component", type: i4.ButtonComponent, selector: "s-button", inputs: ["id", "label", "tooltip", "tooltipPosition", "tooltipShowDelay", "iconClass", "rightIconClass", "caret", "styleClass", "baseZIndex", "disabled", "auxiliary", "type", "priority", "menuOptions", "size", "slide", "animation", "badge", "iconColor", "menuAriaLabel", "ariaLabel"], outputs: ["clicked", "tieredMenuOpened", "tieredMenuClosed"] }, { kind: "directive", type: i3$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormFilterComponent, selector: "s-app-form-filter", inputs: ["showMessages", "contextId"], outputs: ["totalFiltersActiveOutput", "errorOutput", "showDialogOutput", "closeModalOutput"] }, { kind: "pipe", type: TranslatePipe$1, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1760
1670
|
}
|
|
1761
1671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterComponent, decorators: [{
|
|
1762
1672
|
type: Component,
|
|
1763
|
-
args: [{ selector: 's-advanced-filter', encapsulation: ViewEncapsulation.None, template: "<s-button\n #filterButtonRef\n *ngIf=\"!onlyContent\"\n [id]=\"'filterButton'\"\n [disabled]=\"!canOpenFilter\"\n (clicked)=\"canOpenFilter ? toggleDialog() : ''\"\n iconClass=\"fa fa-filter\"\n priority=\"default\"\n [label]=\"labelButton\"\n [auxiliary]=\"true\"\n [tooltip]=\"appliedFiltersTooltip\"\n>\n <span aria-live=\"polite\">\n <
|
|
1673
|
+
args: [{ selector: 's-advanced-filter', encapsulation: ViewEncapsulation.None, template: "<s-button\n #filterButtonRef\n *ngIf=\"!onlyContent\"\n [id]=\"'filterButton'\"\n [disabled]=\"!canOpenFilter\"\n (clicked)=\"canOpenFilter ? toggleDialog() : ''\"\n iconClass=\"fa fa-filter\"\n priority=\"default\"\n [label]=\"labelButton\"\n [auxiliary]=\"true\"\n [tooltip]=\"appliedFiltersTooltip\"\n>\n <span aria-live=\"polite\">\n <s-badge\n *ngIf=\"totalFiltersActive && showActiveFiltersCountBadge\"\n class=\"s-filter-count-badge custom-badge\"\n color=\"primary\"\n [text]=\"totalFiltersActive.toString()\"\n ></s-badge>\n <span class=\"sr-only\" *ngIf=\"totalFiltersActive && showActiveFiltersCountBadge\">\n {{ totalFiltersActive }} {{ 'platform.filter_service.active_filters' | translate }}\n </span>\n </span>\n</s-button>\n\n<section *ngIf=\"onlyContent\">\n <div class=\"only-content-wrapper\">\n <div class=\"header\">\n <h3 id=\"filter-heading\">{{ 'platform.filter_service.filters' | translate }}</h3>\n <button\n type=\"button\"\n (click)=\"close()\"\n class=\"close_btn\"\n [attr.aria-label]=\"'platform.filter_service.aria_close_filters' | translate\"\n >\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"app-form-filter\">\n <s-app-form-filter\n [showMessages]=\"false\"\n (totalFiltersActiveOutput)=\"updateTotalFiltersActive($event)\"\n (closeModalOutput)=\"close()\"\n [contextId]=\"contextId\"\n ></s-app-form-filter>\n </div>\n <div class=\"filter-footer\" *ngIf=\"!error\">\n <s-button\n priority=\"link\"\n [label]=\"translate.instant('platform.filter_service.cancel')\"\n (clicked)=\"close()\"\n ></s-button>\n <s-button\n *ngIf=\"isMobile\"\n priority=\"default\"\n [label]=\"translate.instant('platform.filter_service.actions')\"\n [auxiliary]=\"true\"\n [menuOptions]=\"mobileButtonActions\"\n ></s-button>\n <ng-container *ngIf=\"!isMobile\">\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.clear')\"\n (clicked)=\"clearFilters()\"\n ></s-button>\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.save')\"\n (clicked)=\"saveFilters()\"\n ></s-button>\n </ng-container>\n <s-button\n type=\"submit\"\n priority=\"primary\"\n [label]=\"translate.instant('platform.filter_service.filter')\"\n (clicked)=\"onApplyFilters()\"\n ></s-button>\n </div>\n </div>\n</section>\n\n<s-dialog\n *ngIf=\"!onlyContent\"\n size=\"lg\"\n contentClassName=\"filter-dialog\"\n [header]=\"'platform.filter_service.filters' | translate\"\n [closeAriaLabel]=\"'platform.filter_service.aria_close_dialog' | translate\"\n [escapeOnEsc]=\"true\"\n [destroyClickOutside]=\"false\"\n [blockScroll]=\"true\"\n [(visible)]=\"showDialog\"\n>\n\n <s-app-form-filter\n [showMessages]=\"true\"\n (errorOutput)=\"onError($event)\"\n (totalFiltersActiveOutput)=\"updateTotalFiltersActive($event)\"\n [contextId]=\"contextId\"\n ></s-app-form-filter>\n\n <ng-template sTemplate=\"footer\">\n <div class=\"filter-dialog-footer\" *ngIf=\"!error && !hideButtons\">\n <s-button\n type=\"submit\"\n priority=\"primary\"\n [label]=\"translate.instant('platform.filter_service.filter')\"\n (clicked)=\"applyFilters()\"\n ></s-button>\n <ng-container *ngIf=\"!isMobile\">\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.save')\"\n (clicked)=\"saveFilters()\"\n ></s-button>\n <s-button\n priority=\"secondary\"\n [label]=\"translate.instant('platform.filter_service.clear')\"\n (clicked)=\"clearFilters()\"\n ></s-button>\n </ng-container>\n <s-button\n *ngIf=\"isMobile\"\n priority=\"default\"\n [label]=\"translate.instant('platform.filter_service.actions')\"\n [auxiliary]=\"true\"\n [menuOptions]=\"mobileButtonActions\"\n ></s-button>\n <s-button\n priority=\"link\"\n [label]=\"translate.instant('platform.filter_service.cancel')\"\n (clicked)=\"toggleDialog(); close()\"\n ></s-button>\n </div>\n </ng-template>\n</s-dialog>\n\n", styles: [".custom-badge{position:absolute!important;right:-4px;top:-10px;height:20px;vertical-align:middle;display:table;min-width:22px}.filter-button{position:relative;border:solid 1px black;border-radius:1.5rem;background:transparent;padding:.5rem 1rem;cursor:pointer}.filter-footer{text-align:end;border-top:1px solid #e5eaea;padding:13px}.app-form-filter{height:335px;max-height:335px;overflow:auto}.only-content-wrapper{background-color:#fff}.close_btn{align-content:center;justify-self:right;margin-left:auto;background:none;border:none;padding:0;font:inherit;color:inherit}.close_btn:hover{cursor:pointer}.header{text-transform:uppercase;display:flex;width:100%;border-bottom:1px solid #e5eaea;padding:15px;margin-left:0}@media (min-width: 641px) and (max-width: 1024px){.filter-dialog{width:75vw}}@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait){.filter-dialog{width:75vw}}@media (min-width: 320px) and (max-width: 640px){.filter-dialog{width:95vw;left:0;top:0;opacity:1;margin:auto;height:93vh}}@media (min-width: 320px) and (max-width: 640px) and (max-width: 360px){.filter-dialog button{padding:0!important}}.filter-dialog-footer{display:flex;flex-direction:row-reverse;flex-wrap:wrap;gap:10px}.filter-dialog-footer s-button+s-button{margin-left:0!important}\n"] }]
|
|
1764
1674
|
}], propDecorators: { labelButton: [{
|
|
1765
1675
|
type: Input
|
|
1766
1676
|
}], onlyContent: [{
|
|
@@ -1790,48 +1700,47 @@ class AppRoutingModule {
|
|
|
1790
1700
|
}
|
|
1791
1701
|
class AdvancedFilterModule {
|
|
1792
1702
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1793
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterModule, declarations: [AdvancedFilterComponent, FormFilterComponent, MapValuesPipe, TranslatePipe$1], imports: [
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1703
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterModule, declarations: [AdvancedFilterComponent, FormFilterComponent, MapValuesPipe, TranslatePipe$1], imports: [BadgeComponent,
|
|
1704
|
+
DialogComponent,
|
|
1705
|
+
TemplateDirective,
|
|
1706
|
+
ButtonComponent,
|
|
1707
|
+
TabsComponent,
|
|
1708
|
+
TabItemComponent,
|
|
1797
1709
|
CommonModule,
|
|
1798
1710
|
FormsModule,
|
|
1799
1711
|
ReactiveFormsModule,
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
TabViewModule,
|
|
1712
|
+
DynamicFormComponent,
|
|
1713
|
+
EmptyStateComponent, TranslationsModule], exports: [AdvancedFilterComponent, FormFilterComponent] });
|
|
1714
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterModule, providers: [AdvancedFilterService, LocaleService, TranslateService, CalendarOptionsService], imports: [BadgeComponent,
|
|
1715
|
+
DialogComponent,
|
|
1716
|
+
ButtonComponent,
|
|
1717
|
+
TabsComponent,
|
|
1718
|
+
TabItemComponent,
|
|
1808
1719
|
CommonModule,
|
|
1809
1720
|
FormsModule,
|
|
1810
1721
|
ReactiveFormsModule,
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
EmptyStateModule,
|
|
1814
|
-
TooltipModule,
|
|
1722
|
+
DynamicFormComponent,
|
|
1723
|
+
EmptyStateComponent,
|
|
1815
1724
|
TranslationsModule.forChild([{ domain: 'platform', service: 'filter_service', fallback: fallback$1 }])] });
|
|
1816
1725
|
}
|
|
1817
1726
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdvancedFilterModule, decorators: [{
|
|
1818
1727
|
type: NgModule,
|
|
1819
1728
|
args: [{
|
|
1820
1729
|
imports: [
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1730
|
+
BadgeComponent,
|
|
1731
|
+
DialogComponent,
|
|
1732
|
+
TemplateDirective,
|
|
1733
|
+
ButtonComponent,
|
|
1734
|
+
TabsComponent,
|
|
1735
|
+
TabItemComponent,
|
|
1825
1736
|
CommonModule,
|
|
1826
1737
|
FormsModule,
|
|
1827
1738
|
ReactiveFormsModule,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
EmptyStateModule,
|
|
1831
|
-
TooltipModule,
|
|
1739
|
+
DynamicFormComponent,
|
|
1740
|
+
EmptyStateComponent,
|
|
1832
1741
|
TranslationsModule.forChild([{ domain: 'platform', service: 'filter_service', fallback: fallback$1 }]),
|
|
1833
1742
|
],
|
|
1834
|
-
providers: [AdvancedFilterService, LocaleService,
|
|
1743
|
+
providers: [AdvancedFilterService, LocaleService, TranslateService, CalendarOptionsService],
|
|
1835
1744
|
declarations: [AdvancedFilterComponent, FormFilterComponent, MapValuesPipe, TranslatePipe$1],
|
|
1836
1745
|
exports: [AdvancedFilterComponent, FormFilterComponent]
|
|
1837
1746
|
}]
|
|
@@ -2608,11 +2517,11 @@ class SpotlightComponent {
|
|
|
2608
2517
|
});
|
|
2609
2518
|
}
|
|
2610
2519
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpotlightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2611
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SpotlightComponent, selector: "s-spotlight", inputs: { visible: "visible", menuId: "menuId", fade: "fade", altText: "altText" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<dialog class=\"s-spotlight-overlay\" id=\"ol\" *ngIf=\"canAppear && visible\"\n aria-modal=\"true\" aria-labelledby=\"spotlight-title\"\n cdkTrapFocus (keydown.escape)=\"close()\">\n <div class=\"s-spotlight\" id=\"sl\" [ngClass]=\"{'s-effect-fadein': fade}\">\n <div class=\"s-spotlight-header\">\n <span class=\"s-spotlight-title\" id=\"spotlight-title\">{{header.toUpperCase()}}</span>\n <button\n type=\"button\"\n class=\"s-spotlight-close\"\n aria-label=\"Fechar spotlight\"\n (click)=\"close()\">\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"s-img\">\n <img src=\"{{imgUrl}}\" [alt]=\"altText || ''\" width=\"800\" height=\"450\">\n </div>\n <div class=\"s-spotlight-footer\">\n <div class=\"s-spotlight-footer-left\">\n <button\n
|
|
2520
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: SpotlightComponent, selector: "s-spotlight", inputs: { visible: "visible", menuId: "menuId", fade: "fade", altText: "altText" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<dialog class=\"s-spotlight-overlay\" id=\"ol\" *ngIf=\"canAppear && visible\"\n aria-modal=\"true\" aria-labelledby=\"spotlight-title\"\n cdkTrapFocus (keydown.escape)=\"close()\">\n <div class=\"s-spotlight\" id=\"sl\" [ngClass]=\"{'s-effect-fadein': fade}\">\n <div class=\"s-spotlight-header\">\n <span class=\"s-spotlight-title\" id=\"spotlight-title\">{{header.toUpperCase()}}</span>\n <button\n type=\"button\"\n class=\"s-spotlight-close\"\n aria-label=\"Fechar spotlight\"\n (click)=\"close()\">\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"s-img\">\n <img src=\"{{imgUrl}}\" [alt]=\"altText || ''\" width=\"800\" height=\"450\">\n </div>\n <div class=\"s-spotlight-footer\">\n <div class=\"s-spotlight-footer-left\">\n <s-button\n type=\"submit\"\n id=\"decline-button\"\n priority=\"link\"\n [label]=\"'platform.spotlight.no_interest' | translate\"\n (clicked)=\"onTertiary()\">\n </s-button>\n </div>\n <div class=\"s-spotlight-footer-right\">\n <s-button\n type=\"submit\"\n id=\"remember-button\"\n priority=\"secondary\"\n [label]=\"'platform.spotlight.remember_late' | translate\"\n (clicked)=\"onSecondary()\">\n </s-button>\n <s-button\n type=\"submit\"\n id=\"submit-button\"\n priority=\"primary\"\n [label]=\"primaryButtonLabel\"\n [tooltip]=\"primaryButtonTooltip\"\n tooltipPosition=\"top\"\n (clicked)=\"onPrimary()\">\n </s-button>\n </div>\n </div>\n </div>\n</dialog>", styles: [".s-spotlight-overlay{display:flex;position:fixed;z-index:10;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:#0006}.s-spotlight{border-radius:3px;background:#fff;margin:auto;overflow:hidden;animation:move .15s forwards}.s-spotlight-header,.s-spotlight-footer{display:flex;padding:15px}.s-spotlight-header{align-items:center;justify-content:space-between}.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{display:flex}.s-spotlight-footer-right{flex:2;justify-content:flex-end}.s-spotlight-footer-left{flex:1;justify-content:flex-start}.s-spotlight-title{font-family:Open Sans,sans-serif;font-size:16px;font-weight:400;color:#333}.s-spotlight-close{display:block;margin-left:15px;color:#000;background:none;border:none;padding:0;font:inherit;cursor:pointer}.s-img{width:100%;display:flex;align-items:center;justify-content:center}.s-img img{width:100%}.s-effect-fadein{animation:fade .15s forwards}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (max-width: 595px){.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{align-items:center;flex-direction:column-reverse}.s-spotlight-footer s-button{margin:0 0 15px!important;width:100%!important}.s-spotlight-footer s-button ::ng-deep button{width:100%!important}}@media (min-width: 576px){.s-spotlight{width:100%}}@media (min-width: 768px){.s-spotlight{width:720px}.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{flex-direction:row}}@media (min-width: 992px){.s-spotlight{width:960px}}@media (min-width: 1200px){.s-spotlight{width:50%}}\n"], dependencies: [{ kind: "directive", type: i1$3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: i4.ButtonComponent, selector: "s-button", inputs: ["id", "label", "tooltip", "tooltipPosition", "tooltipShowDelay", "iconClass", "rightIconClass", "caret", "styleClass", "baseZIndex", "disabled", "auxiliary", "type", "priority", "menuOptions", "size", "slide", "animation", "badge", "iconColor", "menuAriaLabel", "ariaLabel"], outputs: ["clicked", "tieredMenuOpened", "tieredMenuClosed"] }, { kind: "directive", type: i3$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2612
2521
|
}
|
|
2613
2522
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpotlightComponent, decorators: [{
|
|
2614
2523
|
type: Component,
|
|
2615
|
-
args: [{ selector: 's-spotlight', template: "<dialog class=\"s-spotlight-overlay\" id=\"ol\" *ngIf=\"canAppear && visible\"\n aria-modal=\"true\" aria-labelledby=\"spotlight-title\"\n cdkTrapFocus (keydown.escape)=\"close()\">\n <div class=\"s-spotlight\" id=\"sl\" [ngClass]=\"{'s-effect-fadein': fade}\">\n <div class=\"s-spotlight-header\">\n <span class=\"s-spotlight-title\" id=\"spotlight-title\">{{header.toUpperCase()}}</span>\n <button\n type=\"button\"\n class=\"s-spotlight-close\"\n aria-label=\"Fechar spotlight\"\n (click)=\"close()\">\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"s-img\">\n <img src=\"{{imgUrl}}\" [alt]=\"altText || ''\" width=\"800\" height=\"450\">\n </div>\n <div class=\"s-spotlight-footer\">\n <div class=\"s-spotlight-footer-left\">\n <button\n
|
|
2524
|
+
args: [{ selector: 's-spotlight', template: "<dialog class=\"s-spotlight-overlay\" id=\"ol\" *ngIf=\"canAppear && visible\"\n aria-modal=\"true\" aria-labelledby=\"spotlight-title\"\n cdkTrapFocus (keydown.escape)=\"close()\">\n <div class=\"s-spotlight\" id=\"sl\" [ngClass]=\"{'s-effect-fadein': fade}\">\n <div class=\"s-spotlight-header\">\n <span class=\"s-spotlight-title\" id=\"spotlight-title\">{{header.toUpperCase()}}</span>\n <button\n type=\"button\"\n class=\"s-spotlight-close\"\n aria-label=\"Fechar spotlight\"\n (click)=\"close()\">\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </div>\n <div class=\"s-img\">\n <img src=\"{{imgUrl}}\" [alt]=\"altText || ''\" width=\"800\" height=\"450\">\n </div>\n <div class=\"s-spotlight-footer\">\n <div class=\"s-spotlight-footer-left\">\n <s-button\n type=\"submit\"\n id=\"decline-button\"\n priority=\"link\"\n [label]=\"'platform.spotlight.no_interest' | translate\"\n (clicked)=\"onTertiary()\">\n </s-button>\n </div>\n <div class=\"s-spotlight-footer-right\">\n <s-button\n type=\"submit\"\n id=\"remember-button\"\n priority=\"secondary\"\n [label]=\"'platform.spotlight.remember_late' | translate\"\n (clicked)=\"onSecondary()\">\n </s-button>\n <s-button\n type=\"submit\"\n id=\"submit-button\"\n priority=\"primary\"\n [label]=\"primaryButtonLabel\"\n [tooltip]=\"primaryButtonTooltip\"\n tooltipPosition=\"top\"\n (clicked)=\"onPrimary()\">\n </s-button>\n </div>\n </div>\n </div>\n</dialog>", styles: [".s-spotlight-overlay{display:flex;position:fixed;z-index:10;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:#0006}.s-spotlight{border-radius:3px;background:#fff;margin:auto;overflow:hidden;animation:move .15s forwards}.s-spotlight-header,.s-spotlight-footer{display:flex;padding:15px}.s-spotlight-header{align-items:center;justify-content:space-between}.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{display:flex}.s-spotlight-footer-right{flex:2;justify-content:flex-end}.s-spotlight-footer-left{flex:1;justify-content:flex-start}.s-spotlight-title{font-family:Open Sans,sans-serif;font-size:16px;font-weight:400;color:#333}.s-spotlight-close{display:block;margin-left:15px;color:#000;background:none;border:none;padding:0;font:inherit;cursor:pointer}.s-img{width:100%;display:flex;align-items:center;justify-content:center}.s-img img{width:100%}.s-effect-fadein{animation:fade .15s forwards}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (max-width: 595px){.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{align-items:center;flex-direction:column-reverse}.s-spotlight-footer s-button{margin:0 0 15px!important;width:100%!important}.s-spotlight-footer s-button ::ng-deep button{width:100%!important}}@media (min-width: 576px){.s-spotlight{width:100%}}@media (min-width: 768px){.s-spotlight{width:720px}.s-spotlight-footer,.s-spotlight-footer-right,.s-spotlight-footer-left{flex-direction:row}}@media (min-width: 992px){.s-spotlight{width:960px}}@media (min-width: 1200px){.s-spotlight{width:50%}}\n"] }]
|
|
2616
2525
|
}], propDecorators: { visible: [{
|
|
2617
2526
|
type: Input
|
|
2618
2527
|
}], menuId: [{
|
|
@@ -2634,17 +2543,14 @@ class SpotlightModule {
|
|
|
2634
2543
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpotlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2635
2544
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: SpotlightModule, declarations: [SpotlightComponent,
|
|
2636
2545
|
TranslatePipe], imports: [A11yModule,
|
|
2637
|
-
|
|
2638
|
-
TooltipModule,
|
|
2546
|
+
ButtonComponent,
|
|
2639
2547
|
CommonModule,
|
|
2640
2548
|
HttpInterceptorModule, TranslationsModule], exports: [SpotlightComponent] });
|
|
2641
2549
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SpotlightModule, providers: [
|
|
2642
2550
|
SpotlightService,
|
|
2643
|
-
DatePipe
|
|
2644
|
-
CookieService
|
|
2551
|
+
DatePipe
|
|
2645
2552
|
], imports: [A11yModule,
|
|
2646
|
-
|
|
2647
|
-
TooltipModule,
|
|
2553
|
+
ButtonComponent,
|
|
2648
2554
|
CommonModule,
|
|
2649
2555
|
HttpInterceptorModule,
|
|
2650
2556
|
TranslationsModule.forChild([{ domain: 'platform', service: 'spotlight', fallback }])] });
|
|
@@ -2654,16 +2560,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
2654
2560
|
args: [{
|
|
2655
2561
|
imports: [
|
|
2656
2562
|
A11yModule,
|
|
2657
|
-
|
|
2658
|
-
TooltipModule,
|
|
2563
|
+
ButtonComponent,
|
|
2659
2564
|
CommonModule,
|
|
2660
2565
|
HttpInterceptorModule,
|
|
2661
2566
|
TranslationsModule.forChild([{ domain: 'platform', service: 'spotlight', fallback }]),
|
|
2662
2567
|
],
|
|
2663
2568
|
providers: [
|
|
2664
2569
|
SpotlightService,
|
|
2665
|
-
DatePipe
|
|
2666
|
-
CookieService
|
|
2570
|
+
DatePipe
|
|
2667
2571
|
],
|
|
2668
2572
|
declarations: [
|
|
2669
2573
|
SpotlightComponent,
|