@seniorsistemas/platform-components 5.3.3 → 6.0.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.
Files changed (245) hide show
  1. package/esm2022/modules/advanced-filter/advanced-filter.module.mjs +75 -0
  2. package/esm2022/modules/advanced-filter/components/advanced-filter/advanced-filter.component.mjs +128 -0
  3. package/esm2022/modules/advanced-filter/components/form-filter/form-filter.component.mjs +651 -0
  4. package/esm2022/modules/advanced-filter/index.mjs +6 -0
  5. package/esm2022/modules/advanced-filter/locale/fallback.mjs +73 -0
  6. package/esm2022/modules/advanced-filter/models/context.mjs +2 -0
  7. package/esm2022/modules/advanced-filter/models/depends-on.mjs +2 -0
  8. package/esm2022/modules/advanced-filter/models/enum-item.mjs +2 -0
  9. package/esm2022/modules/advanced-filter/models/filter-type.mjs +14 -0
  10. package/esm2022/modules/advanced-filter/models/filter-value.mjs +2 -0
  11. package/esm2022/modules/advanced-filter/models/filter.mjs +41 -0
  12. package/esm2022/modules/advanced-filter/models/form-filter.mjs +28 -0
  13. package/esm2022/modules/advanced-filter/models/index.mjs +11 -0
  14. package/esm2022/modules/advanced-filter/models/scope.mjs +6 -0
  15. package/esm2022/modules/advanced-filter/models/search.mjs +2 -0
  16. package/esm2022/modules/advanced-filter/models/tab-view.mjs +18 -0
  17. package/esm2022/modules/advanced-filter/models/ticked-filter.mjs +2 -0
  18. package/esm2022/modules/advanced-filter/pipes/map-values.pipe.mjs +14 -0
  19. package/esm2022/modules/advanced-filter/pipes/translate.pipe.mjs +19 -0
  20. package/esm2022/modules/advanced-filter/services/advanced-filter.service.mjs +146 -0
  21. package/esm2022/modules/advanced-filter/services/calendar-options.service.mjs +77 -0
  22. package/esm2022/modules/advanced-filter/services/constants.mjs +6 -0
  23. package/esm2022/modules/advanced-filter/shared/constants.mjs +3 -0
  24. package/esm2022/modules/advanced-filter/utils/comparator.mjs +53 -0
  25. package/esm2022/modules/advanced-filter/utils/filter-id/index.mjs +8 -0
  26. package/esm2022/modules/advanced-filter/utils/filter-value/index.mjs +26 -0
  27. package/esm2022/modules/advanced-filter/utils/filterOperators.mjs +9 -0
  28. package/esm2022/modules/advanced-filter/utils/form-field/index.mjs +52 -0
  29. package/esm2022/modules/advanced-filter/utils/index.mjs +57 -0
  30. package/esm2022/modules/advanced-filter/utils/json-path.mjs +13 -0
  31. package/esm2022/modules/cyclic-json-interceptor/cyclic-json-interceptor.module.mjs +14 -0
  32. package/esm2022/modules/cyclic-json-interceptor/cyclic-json-interceptor.service.mjs +29 -0
  33. package/esm2022/modules/cyclic-json-interceptor/index.mjs +2 -0
  34. package/esm2022/modules/feature-toggle/constants/endpoint.constant.mjs +26 -0
  35. package/esm2022/modules/feature-toggle/feature-toggle.module.mjs +15 -0
  36. package/esm2022/modules/feature-toggle/feature-toggle.service.mjs +42 -0
  37. package/esm2022/modules/feature-toggle/index.mjs +4 -0
  38. package/esm2022/modules/feature-toggle/models/feature.mjs +2 -0
  39. package/esm2022/modules/http-interceptor/http-interceptor.module.mjs +16 -0
  40. package/esm2022/modules/http-interceptor/http-interceptor.service.mjs +42 -0
  41. package/esm2022/modules/http-interceptor/index.mjs +4 -0
  42. package/esm2022/modules/http-interceptor/rest-url.service.mjs +15 -0
  43. package/esm2022/modules/http-interceptor/x-services-url.service.mjs +18 -0
  44. package/esm2022/modules/permissions/permissions.config.mjs +17 -0
  45. package/esm2022/modules/permissions/permissions.module.mjs +43 -0
  46. package/esm2022/modules/permissions/permissions.service.mjs +169 -0
  47. package/esm2022/modules/spotlight/component/spotlight.component.mjs +274 -0
  48. package/esm2022/modules/spotlight/index.mjs +3 -0
  49. package/esm2022/modules/spotlight/locale/fallback.mjs +5 -0
  50. package/esm2022/modules/spotlight/models/display-type.enum.mjs +6 -0
  51. package/esm2022/modules/spotlight/models/index.mjs +10 -0
  52. package/esm2022/modules/spotlight/models/spotlight-control-list.interface.mjs +2 -0
  53. package/esm2022/modules/spotlight/models/spotlight-control.interface.mjs +11 -0
  54. package/esm2022/modules/spotlight/models/spotlight-notification.interface.mjs +2 -0
  55. package/esm2022/modules/spotlight/models/spotlight-screen-list.interface.mjs +2 -0
  56. package/esm2022/modules/spotlight/models/spotlight-screen.interface.mjs +2 -0
  57. package/esm2022/modules/spotlight/models/spotlight-status.enum.mjs +8 -0
  58. package/esm2022/modules/spotlight/models/spotlight-user.interface.mjs +2 -0
  59. package/esm2022/modules/spotlight/models/spotlight-users-list.interface.mjs +2 -0
  60. package/esm2022/modules/spotlight/models/spotlight.interface.mjs +2 -0
  61. package/esm2022/modules/spotlight/models/user-action.enum.mjs +7 -0
  62. package/esm2022/modules/spotlight/pipes/translate.pipe.mjs +19 -0
  63. package/esm2022/modules/spotlight/service/spotlight.service.mjs +34 -0
  64. package/esm2022/modules/spotlight/spotlight.module.mjs +53 -0
  65. package/esm2022/modules/translations/translations.module.mjs +192 -0
  66. package/esm2022/public-api.mjs +10 -0
  67. package/esm2022/seniorsistemas-platform-components.mjs +5 -0
  68. package/fesm2022/seniorsistemas-platform-components.mjs +2432 -0
  69. package/fesm2022/seniorsistemas-platform-components.mjs.map +1 -0
  70. package/index.d.ts +5 -0
  71. package/modules/advanced-filter/advanced-filter.module.d.ts +19 -0
  72. package/modules/advanced-filter/components/advanced-filter/advanced-filter.component.d.ts +4 -3
  73. package/modules/advanced-filter/components/form-filter/form-filter.component.d.ts +15 -12
  74. package/modules/advanced-filter/index.d.ts +1 -0
  75. package/modules/advanced-filter/models/tab-view.d.ts +1 -1
  76. package/modules/advanced-filter/pipes/map-values.pipe.d.ts +3 -0
  77. package/modules/advanced-filter/pipes/translate.pipe.d.ts +4 -3
  78. package/modules/advanced-filter/services/advanced-filter.service.d.ts +7 -3
  79. package/modules/advanced-filter/services/calendar-options.service.d.ts +4 -3
  80. package/modules/advanced-filter/services/constants.d.ts +4 -4
  81. package/modules/advanced-filter/utils/comparator.d.ts +1 -1
  82. package/modules/advanced-filter/utils/form-field/index.d.ts +1 -1
  83. package/modules/advanced-filter/utils/json-path.d.ts +1 -1
  84. package/modules/cyclic-json-interceptor/cyclic-json-interceptor.module.d.ts +4 -0
  85. package/modules/cyclic-json-interceptor/cyclic-json-interceptor.service.d.ts +3 -0
  86. package/modules/feature-toggle/feature-toggle.module.d.ts +5 -0
  87. package/modules/feature-toggle/feature-toggle.service.d.ts +4 -3
  88. package/modules/http-interceptor/http-interceptor.module.d.ts +4 -0
  89. package/modules/http-interceptor/http-interceptor.service.d.ts +3 -3
  90. package/modules/http-interceptor/rest-url.service.d.ts +3 -0
  91. package/modules/http-interceptor/x-services-url.service.d.ts +3 -0
  92. package/modules/permissions/permissions.config.d.ts +7 -1
  93. package/modules/permissions/permissions.module.d.ts +4 -0
  94. package/modules/permissions/permissions.service.d.ts +6 -12
  95. package/modules/spotlight/component/spotlight.component.d.ts +6 -7
  96. package/modules/spotlight/pipes/translate.pipe.d.ts +4 -3
  97. package/modules/spotlight/service/spotlight.service.d.ts +4 -3
  98. package/modules/spotlight/spotlight.module.d.ts +11 -0
  99. package/modules/translations/translations.module.d.ts +8 -3
  100. package/package.json +22 -19
  101. package/public-api.d.ts +1 -0
  102. package/bundles/seniorsistemas-platform-components.umd.js +0 -2745
  103. package/bundles/seniorsistemas-platform-components.umd.js.map +0 -1
  104. package/bundles/seniorsistemas-platform-components.umd.min.js +0 -17
  105. package/bundles/seniorsistemas-platform-components.umd.min.js.map +0 -1
  106. package/esm2015/modules/advanced-filter/advanced-filter.module.js +0 -47
  107. package/esm2015/modules/advanced-filter/components/advanced-filter/advanced-filter.component.js +0 -136
  108. package/esm2015/modules/advanced-filter/components/form-filter/form-filter.component.js +0 -578
  109. package/esm2015/modules/advanced-filter/index.js +0 -5
  110. package/esm2015/modules/advanced-filter/locale/fallback.js +0 -73
  111. package/esm2015/modules/advanced-filter/models/context.js +0 -1
  112. package/esm2015/modules/advanced-filter/models/depends-on.js +0 -1
  113. package/esm2015/modules/advanced-filter/models/enum-item.js +0 -1
  114. package/esm2015/modules/advanced-filter/models/filter-type.js +0 -14
  115. package/esm2015/modules/advanced-filter/models/filter-value.js +0 -1
  116. package/esm2015/modules/advanced-filter/models/filter.js +0 -23
  117. package/esm2015/modules/advanced-filter/models/form-filter.js +0 -19
  118. package/esm2015/modules/advanced-filter/models/index.js +0 -5
  119. package/esm2015/modules/advanced-filter/models/scope.js +0 -6
  120. package/esm2015/modules/advanced-filter/models/search.js +0 -1
  121. package/esm2015/modules/advanced-filter/models/tab-view.js +0 -18
  122. package/esm2015/modules/advanced-filter/models/ticked-filter.js +0 -1
  123. package/esm2015/modules/advanced-filter/pipes/map-values.pipe.js +0 -12
  124. package/esm2015/modules/advanced-filter/pipes/translate.pipe.js +0 -22
  125. package/esm2015/modules/advanced-filter/services/advanced-filter.service.js +0 -140
  126. package/esm2015/modules/advanced-filter/services/calendar-options.service.js +0 -81
  127. package/esm2015/modules/advanced-filter/services/constants.js +0 -6
  128. package/esm2015/modules/advanced-filter/shared/constants.js +0 -3
  129. package/esm2015/modules/advanced-filter/utils/comparator.js +0 -55
  130. package/esm2015/modules/advanced-filter/utils/filter-id/index.js +0 -8
  131. package/esm2015/modules/advanced-filter/utils/filter-value/index.js +0 -24
  132. package/esm2015/modules/advanced-filter/utils/filterOperators.js +0 -11
  133. package/esm2015/modules/advanced-filter/utils/form-field/index.js +0 -50
  134. package/esm2015/modules/advanced-filter/utils/index.js +0 -57
  135. package/esm2015/modules/advanced-filter/utils/json-path.js +0 -12
  136. package/esm2015/modules/cyclic-json-interceptor/cyclic-json-interceptor.module.js +0 -14
  137. package/esm2015/modules/cyclic-json-interceptor/cyclic-json-interceptor.service.js +0 -27
  138. package/esm2015/modules/cyclic-json-interceptor/index.js +0 -2
  139. package/esm2015/modules/feature-toggle/constants/endpoint.constant.js +0 -26
  140. package/esm2015/modules/feature-toggle/feature-toggle.module.js +0 -15
  141. package/esm2015/modules/feature-toggle/feature-toggle.service.js +0 -48
  142. package/esm2015/modules/feature-toggle/index.js +0 -3
  143. package/esm2015/modules/feature-toggle/models/feature.js +0 -1
  144. package/esm2015/modules/http-interceptor/http-interceptor.module.js +0 -16
  145. package/esm2015/modules/http-interceptor/http-interceptor.service.js +0 -47
  146. package/esm2015/modules/http-interceptor/index.js +0 -4
  147. package/esm2015/modules/http-interceptor/rest-url.service.js +0 -14
  148. package/esm2015/modules/http-interceptor/x-services-url.service.js +0 -17
  149. package/esm2015/modules/permissions/permissions.config.js +0 -11
  150. package/esm2015/modules/permissions/permissions.module.js +0 -42
  151. package/esm2015/modules/permissions/permissions.service.js +0 -196
  152. package/esm2015/modules/spotlight/component/spotlight.component.js +0 -274
  153. package/esm2015/modules/spotlight/index.js +0 -3
  154. package/esm2015/modules/spotlight/locale/fallback.js +0 -5
  155. package/esm2015/modules/spotlight/models/display-type.enum.js +0 -6
  156. package/esm2015/modules/spotlight/models/index.js +0 -4
  157. package/esm2015/modules/spotlight/models/spotlight-control-list.interface.js +0 -1
  158. package/esm2015/modules/spotlight/models/spotlight-control.interface.js +0 -3
  159. package/esm2015/modules/spotlight/models/spotlight-notification.interface.js +0 -1
  160. package/esm2015/modules/spotlight/models/spotlight-screen-list.interface.js +0 -1
  161. package/esm2015/modules/spotlight/models/spotlight-screen.interface.js +0 -1
  162. package/esm2015/modules/spotlight/models/spotlight-status.enum.js +0 -8
  163. package/esm2015/modules/spotlight/models/spotlight-user.interface.js +0 -1
  164. package/esm2015/modules/spotlight/models/spotlight-users-list.interface.js +0 -1
  165. package/esm2015/modules/spotlight/models/spotlight.interface.js +0 -1
  166. package/esm2015/modules/spotlight/models/user-action.enum.js +0 -7
  167. package/esm2015/modules/spotlight/pipes/translate.pipe.js +0 -22
  168. package/esm2015/modules/spotlight/service/spotlight.service.js +0 -38
  169. package/esm2015/modules/spotlight/spotlight.module.js +0 -37
  170. package/esm2015/modules/translations/translations.module.js +0 -182
  171. package/esm2015/public-api.js +0 -9
  172. package/esm2015/seniorsistemas-platform-components.js +0 -16
  173. package/esm5/modules/advanced-filter/advanced-filter.module.js +0 -54
  174. package/esm5/modules/advanced-filter/components/advanced-filter/advanced-filter.component.js +0 -144
  175. package/esm5/modules/advanced-filter/components/form-filter/form-filter.component.js +0 -626
  176. package/esm5/modules/advanced-filter/index.js +0 -5
  177. package/esm5/modules/advanced-filter/locale/fallback.js +0 -73
  178. package/esm5/modules/advanced-filter/models/context.js +0 -1
  179. package/esm5/modules/advanced-filter/models/depends-on.js +0 -1
  180. package/esm5/modules/advanced-filter/models/enum-item.js +0 -1
  181. package/esm5/modules/advanced-filter/models/filter-type.js +0 -14
  182. package/esm5/modules/advanced-filter/models/filter-value.js +0 -1
  183. package/esm5/modules/advanced-filter/models/filter.js +0 -25
  184. package/esm5/modules/advanced-filter/models/form-filter.js +0 -25
  185. package/esm5/modules/advanced-filter/models/index.js +0 -5
  186. package/esm5/modules/advanced-filter/models/scope.js +0 -6
  187. package/esm5/modules/advanced-filter/models/search.js +0 -1
  188. package/esm5/modules/advanced-filter/models/tab-view.js +0 -29
  189. package/esm5/modules/advanced-filter/models/ticked-filter.js +0 -1
  190. package/esm5/modules/advanced-filter/pipes/map-values.pipe.js +0 -16
  191. package/esm5/modules/advanced-filter/pipes/translate.pipe.js +0 -23
  192. package/esm5/modules/advanced-filter/services/advanced-filter.service.js +0 -151
  193. package/esm5/modules/advanced-filter/services/calendar-options.service.js +0 -82
  194. package/esm5/modules/advanced-filter/services/constants.js +0 -6
  195. package/esm5/modules/advanced-filter/shared/constants.js +0 -3
  196. package/esm5/modules/advanced-filter/utils/comparator.js +0 -55
  197. package/esm5/modules/advanced-filter/utils/filter-id/index.js +0 -8
  198. package/esm5/modules/advanced-filter/utils/filter-value/index.js +0 -25
  199. package/esm5/modules/advanced-filter/utils/filterOperators.js +0 -11
  200. package/esm5/modules/advanced-filter/utils/form-field/index.js +0 -52
  201. package/esm5/modules/advanced-filter/utils/index.js +0 -57
  202. package/esm5/modules/advanced-filter/utils/json-path.js +0 -12
  203. package/esm5/modules/cyclic-json-interceptor/cyclic-json-interceptor.module.js +0 -17
  204. package/esm5/modules/cyclic-json-interceptor/cyclic-json-interceptor.service.js +0 -30
  205. package/esm5/modules/cyclic-json-interceptor/index.js +0 -2
  206. package/esm5/modules/feature-toggle/constants/endpoint.constant.js +0 -27
  207. package/esm5/modules/feature-toggle/feature-toggle.module.js +0 -18
  208. package/esm5/modules/feature-toggle/feature-toggle.service.js +0 -51
  209. package/esm5/modules/feature-toggle/index.js +0 -3
  210. package/esm5/modules/feature-toggle/models/feature.js +0 -1
  211. package/esm5/modules/http-interceptor/http-interceptor.module.js +0 -19
  212. package/esm5/modules/http-interceptor/http-interceptor.service.js +0 -49
  213. package/esm5/modules/http-interceptor/index.js +0 -4
  214. package/esm5/modules/http-interceptor/rest-url.service.js +0 -17
  215. package/esm5/modules/http-interceptor/x-services-url.service.js +0 -20
  216. package/esm5/modules/permissions/permissions.config.js +0 -17
  217. package/esm5/modules/permissions/permissions.module.js +0 -46
  218. package/esm5/modules/permissions/permissions.service.js +0 -212
  219. package/esm5/modules/spotlight/component/spotlight.component.js +0 -300
  220. package/esm5/modules/spotlight/index.js +0 -3
  221. package/esm5/modules/spotlight/locale/fallback.js +0 -5
  222. package/esm5/modules/spotlight/models/display-type.enum.js +0 -6
  223. package/esm5/modules/spotlight/models/index.js +0 -4
  224. package/esm5/modules/spotlight/models/spotlight-control-list.interface.js +0 -1
  225. package/esm5/modules/spotlight/models/spotlight-control.interface.js +0 -7
  226. package/esm5/modules/spotlight/models/spotlight-notification.interface.js +0 -1
  227. package/esm5/modules/spotlight/models/spotlight-screen-list.interface.js +0 -1
  228. package/esm5/modules/spotlight/models/spotlight-screen.interface.js +0 -1
  229. package/esm5/modules/spotlight/models/spotlight-status.enum.js +0 -8
  230. package/esm5/modules/spotlight/models/spotlight-user.interface.js +0 -1
  231. package/esm5/modules/spotlight/models/spotlight-users-list.interface.js +0 -1
  232. package/esm5/modules/spotlight/models/spotlight.interface.js +0 -1
  233. package/esm5/modules/spotlight/models/user-action.enum.js +0 -7
  234. package/esm5/modules/spotlight/pipes/translate.pipe.js +0 -23
  235. package/esm5/modules/spotlight/service/spotlight.service.js +0 -39
  236. package/esm5/modules/spotlight/spotlight.module.js +0 -40
  237. package/esm5/modules/translations/translations.module.js +0 -226
  238. package/esm5/public-api.js +0 -9
  239. package/esm5/seniorsistemas-platform-components.js +0 -16
  240. package/fesm2015/seniorsistemas-platform-components.js +0 -2283
  241. package/fesm2015/seniorsistemas-platform-components.js.map +0 -1
  242. package/fesm5/seniorsistemas-platform-components.js +0 -2506
  243. package/fesm5/seniorsistemas-platform-components.js.map +0 -1
  244. package/seniorsistemas-platform-components.d.ts +0 -15
  245. package/seniorsistemas-platform-components.metadata.json +0 -1
@@ -1,32 +1,30 @@
1
1
  import { HttpErrorResponse } from '@angular/common/http';
2
- import { MessageService } from "primeng/api";
3
- import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
4
3
  import { Subject } from 'rxjs';
5
4
  import { Context } from '../../models';
6
5
  import { ContextTab, TabView } from '../../models/tab-view';
7
- import { AdvancedFilterService } from '../../services/advanced-filter.service';
8
6
  import { FormFilter } from '../../models/form-filter';
9
7
  import { TranslateService } from '@ngx-translate/core';
10
- import { Message } from 'primeng/api';
11
- import { CalendarOptionsService } from '../../services/calendar-options.service';
8
+ import * as i0 from "@angular/core";
12
9
  export declare class FormFilterComponent implements OnInit, OnDestroy {
13
- private filterService;
10
+ private readonly filterService;
14
11
  translate: TranslateService;
15
- private messageService;
16
- private calendarOptionsService;
17
- private changeDetectorRef;
12
+ private readonly toastService;
13
+ private readonly calendarOptionsService;
14
+ private readonly changeDetectorRef;
18
15
  destroy$: Subject<unknown>;
19
16
  errorState: HttpErrorResponse;
20
17
  tabs: Map<string, ContextTab>;
21
18
  contexts: Context[];
22
19
  formFilters: FormFilter[];
23
- oldFormFilters: any[];
20
+ oldFormFilters: FormFilter[];
24
21
  actualFormFilters: any[];
25
22
  general: TabView;
26
23
  totalFiltersActive: number;
27
24
  isMobile: boolean;
28
25
  tabViewOrientation: string;
29
26
  error: boolean;
27
+ activeIndex: number;
30
28
  errorMessages: {
31
29
  min: any;
32
30
  max: any;
@@ -39,7 +37,6 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
39
37
  errorOutput: EventEmitter<boolean>;
40
38
  showDialogOutput: EventEmitter<boolean>;
41
39
  closeModalOutput: EventEmitter<any>;
42
- constructor(filterService: AdvancedFilterService, translate: TranslateService, messageService: MessageService, calendarOptionsService: CalendarOptionsService, changeDetectorRef: ChangeDetectorRef);
43
40
  onResizeWindow(event: any): void;
44
41
  ngOnInit(): void;
45
42
  ngOnDestroy(): void;
@@ -50,7 +47,7 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
50
47
  getDefaultValue(defaultValue: any, isMultiple: boolean): any;
51
48
  clearFilters(): void;
52
49
  sendCloseMessage(): void;
53
- sendMessage(message: Message): void;
50
+ sendMessage(message: any): void;
54
51
  saveFilters(forceSave?: boolean): void;
55
52
  saveFiltersWithCallbackFunction(callbackFunction: any): void;
56
53
  private counterUpdate;
@@ -77,6 +74,10 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
77
74
  private createRadioButton;
78
75
  private createCalendar;
79
76
  private createAutocompleteField;
77
+ private safeReplaceCommas;
78
+ private updateParenAndOperatorState;
79
+ private processCommaSubstitution;
80
+ private updateNonCommaOperatorState;
80
81
  private getEntitySearchUrl;
81
82
  private addSuggestionFields;
82
83
  private getDependenciesValues;
@@ -85,4 +86,6 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
85
86
  * Return format to specify for integer type field
86
87
  */
87
88
  private optionsInteger;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFilterComponent, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFilterComponent, "s-app-form-filter", never, { "showMessages": { "alias": "showMessages"; "required": false; }; "isModal": { "alias": "isModal"; "required": false; }; "contextId": { "alias": "contextId"; "required": false; }; }, { "totalFiltersActiveOutput": "totalFiltersActiveOutput"; "errorOutput": "errorOutput"; "showDialogOutput": "showDialogOutput"; "closeModalOutput": "closeModalOutput"; }, never, never, false, never>;
88
91
  }
@@ -1,4 +1,5 @@
1
1
  export * from './advanced-filter.module';
2
2
  export * from './components/advanced-filter/advanced-filter.component';
3
+ export { FormFilterComponent } from './components/form-filter/form-filter.component';
3
4
  export * from './services/advanced-filter.service';
4
5
  export * from './models';
@@ -1,5 +1,5 @@
1
1
  import { FormGroup } from '@angular/forms';
2
- import { Field } from '@seniorsistemas/angular-components';
2
+ import { Field } from '@seniorsistemas/angular-components/dynamic-form';
3
3
  export declare class TabView {
4
4
  fields: Field[];
5
5
  form: FormGroup;
@@ -1,4 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class MapValuesPipe implements PipeTransform {
3
4
  transform(map: Map<any, any>, args?: any[]): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapValuesPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MapValuesPipe, "mapValues", false>;
4
7
  }
@@ -1,7 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
2
+ import * as i0 from "@angular/core";
3
3
  export declare class TranslatePipe implements PipeTransform {
4
- private translationService;
5
- constructor(translationService: TranslateService);
4
+ private readonly translationService;
6
5
  transform(value: any, args?: any): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", false>;
7
8
  }
@@ -1,9 +1,10 @@
1
- import { HttpClient, HttpErrorResponse } from '@angular/common/http';
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
2
  import { Subject, Observable } from 'rxjs';
3
3
  import { Filter } from '../models/filter';
4
4
  import { FilterValue } from '../models/filter-value';
5
5
  import { Context } from '../models/context';
6
6
  import { TickedFilter } from '../models/ticked-filter';
7
+ import * as i0 from "@angular/core";
7
8
  export interface TickedFilterResponse {
8
9
  ticket: string;
9
10
  }
@@ -22,7 +23,8 @@ export interface ITickerFilterResponse {
22
23
  message?: string;
23
24
  }
24
25
  export declare class AdvancedFilterService {
25
- private http;
26
+ private readonly http;
27
+ private readonly allowedOrigin;
26
28
  private filtersObservable;
27
29
  private contextsObservable;
28
30
  private ticketFilterObservable;
@@ -32,7 +34,7 @@ export declare class AdvancedFilterService {
32
34
  contextsObserver: Observable<Context[]>;
33
35
  filtersObserver: Observable<IGetFiltersResponse>;
34
36
  ticketFilterObserver: Observable<ITickerFilterResponse>;
35
- constructor(http: HttpClient);
37
+ constructor();
36
38
  saveTickedFilters(filters: TickedFilter[]): void;
37
39
  addContexts(...contexts: Context[]): Observable<Context[]>;
38
40
  private removeContexts;
@@ -45,4 +47,6 @@ export declare class AdvancedFilterService {
45
47
  private isMultiple;
46
48
  private mapValues;
47
49
  private mapValue;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFilterService, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedFilterService>;
48
52
  }
@@ -1,7 +1,6 @@
1
- import { TranslateService } from '@ngx-translate/core';
1
+ import * as i0 from "@angular/core";
2
2
  export declare class CalendarOptionsService {
3
- private translate;
4
- constructor(translate: TranslateService);
3
+ private readonly translate;
5
4
  getOptions(): {
6
5
  clear: any;
7
6
  dateFormat: any;
@@ -14,4 +13,6 @@ export declare class CalendarOptionsService {
14
13
  monthNamesShort: any[];
15
14
  today: any;
16
15
  };
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarOptionsService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CalendarOptionsService>;
17
18
  }
@@ -1,4 +1,4 @@
1
- export declare const GET_FILTERS_URL: string;
2
- export declare const SAVE_FILTERS_URL: string;
3
- export declare const SAVE_TICKED_FILTER_URL: string;
4
- export declare const GET_FILTERS_BY_TICKET: string;
1
+ export declare const GET_FILTERS_URL = "platform/filter_service/queries/getFilters";
2
+ export declare const SAVE_FILTERS_URL = "platform/filter_service/actions/saveUserFilters";
3
+ export declare const SAVE_TICKED_FILTER_URL = "platform/filter_service/actions/setTicketFilters";
4
+ export declare const GET_FILTERS_BY_TICKET = "platform/filter_service/queries/getFiltersByTicket";
@@ -1,4 +1,4 @@
1
1
  import { FilterType } from '../models';
2
- export declare function compare(operator: string, value: any, otherValue: any): any;
2
+ export declare function compare(operator: string, value: any, otherValue: any): boolean;
3
3
  export declare function isValidOperator(operator: string): boolean;
4
4
  export declare function isSupportedType(type: FilterType): boolean;
@@ -1,4 +1,4 @@
1
1
  import { FilterType, Filter, Search } from '../../models';
2
2
  import { FormControl } from '@angular/forms';
3
3
  export declare function parseFormValue(value: string, type: FilterType, search?: Search): any;
4
- export declare function createFormControl({ minValue, maxValue, regExp, value, type, search }: Filter): FormControl;
4
+ export declare function createFormControl({ minValue, maxValue, regExp, value, type, search }: Filter): FormControl<any>;
@@ -1 +1 @@
1
- export declare function jsonPath(object: Object, path: string): any;
1
+ export declare function jsonPath(obj: Record<string, any> | undefined, path: string): any;
@@ -1,2 +1,6 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class CyclicJsonInterceptorModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<CyclicJsonInterceptorModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CyclicJsonInterceptorModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<CyclicJsonInterceptorModule>;
2
6
  }
@@ -1,5 +1,8 @@
1
1
  import { HttpInterceptor, HttpHandler, HttpRequest, HttpEvent } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class CyclicJsonInterceptor implements HttpInterceptor {
4
5
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CyclicJsonInterceptor, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<CyclicJsonInterceptor>;
5
8
  }
@@ -1,2 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../http-interceptor/http-interceptor.module";
1
3
  export declare class FeatureToggleModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureToggleModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureToggleModule, never, [typeof i1.HttpInterceptorModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<FeatureToggleModule>;
2
7
  }
@@ -1,11 +1,12 @@
1
- import { HttpClient } from '@angular/common/http';
2
1
  import { Observable } from 'rxjs';
3
2
  import { Feature } from './models/feature';
3
+ import * as i0 from "@angular/core";
4
4
  export declare class FeatureToggleService {
5
- private http;
6
- constructor(http: HttpClient);
5
+ private readonly http;
7
6
  cache: {
8
7
  [key: string]: Observable<Feature[]>;
9
8
  };
10
9
  isEnabled({ domain, service, name }: Feature, tenant?: string): Observable<boolean>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureToggleService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<FeatureToggleService>;
11
12
  }
@@ -1,2 +1,6 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class HttpInterceptorModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HttpInterceptorModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<HttpInterceptorModule>;
2
6
  }
@@ -1,11 +1,11 @@
1
1
  import { HttpInterceptor as AngularHttpInterceptor, HttpHandler, HttpRequest, HttpEvent } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { RestUrl } from './rest-url.service';
4
- import { XServicesUrl } from './x-services-url.service';
3
+ import * as i0 from "@angular/core";
5
4
  export declare class HttpInterceptor implements AngularHttpInterceptor {
6
5
  private readonly restUrl;
7
6
  private readonly xServicesUrl;
8
- constructor(restUrl: RestUrl, xServicesUrl: XServicesUrl);
9
7
  intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
10
8
  private injectBaseUrl;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptor, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptor>;
11
11
  }
@@ -1,4 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class RestUrl {
3
4
  get(): Observable<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestUrl, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestUrl>;
4
7
  }
@@ -1,4 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class XServicesUrl {
3
4
  get(): Observable<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<XServicesUrl, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<XServicesUrl>;
4
7
  }
@@ -1,7 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  export declare const RESOURCES: InjectionToken<Resources>;
3
3
  export declare const ENVIRONMENT: InjectionToken<Environment>;
4
- export declare type Resources = Resource[];
4
+ export type Resources = Resource[];
5
5
  export interface Permission {
6
6
  resource: string;
7
7
  action: string;
@@ -26,3 +26,9 @@ export declare class Environment {
26
26
  service?: string;
27
27
  ignorePermissions: boolean;
28
28
  }
29
+ export interface ActionPermissions {
30
+ [key: string]: boolean;
31
+ }
32
+ export interface ResourcePermissions {
33
+ [resourceName: string]: ActionPermissions;
34
+ }
@@ -1,6 +1,10 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { Resource, Environment } from './permissions.config';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class PermissionsModule {
4
5
  static forRoot(resources: Resource[], environment: Environment): ModuleWithProviders<PermissionsModule>;
5
6
  static forChild(resources: Resource[]): ModuleWithProviders<PermissionsModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PermissionsModule, never, never, never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<PermissionsModule>;
6
10
  }
@@ -1,31 +1,25 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Router } from '@angular/router';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { MessageService } from "primeng/api";
5
1
  import { Observable } from 'rxjs';
6
- import { Environment, Resource, Resources } from './permissions.config';
2
+ import { Resource } from './permissions.config';
3
+ import * as i0 from "@angular/core";
7
4
  export declare let promise: Promise<any>;
8
5
  export declare class PermissionsService {
9
6
  private readonly resources;
10
7
  private readonly environment;
11
8
  private readonly http;
12
9
  private readonly router;
13
- private readonly messageService;
10
+ private readonly toastService;
14
11
  private readonly translate;
15
12
  private checkedPermissions;
16
- private actionUrl;
17
- constructor(resources: Resources, environment: Environment, http: HttpClient, router: Router, messageService: MessageService, translate: TranslateService);
13
+ private readonly actionUrl;
18
14
  checkAccess(resources: Resource[]): Observable<any>;
19
15
  get(resource?: string): Observable<any>;
20
16
  isAuthorized(resourceName: string, action: string, isEntity?: boolean): boolean;
21
17
  private getUriByResourceName;
22
- /**
23
- * Valida com base nas propriedade redirectToError e actionsToCheck
24
- * se a ação de um recurso deve enviar para a página de erro caso não tenha autorização
25
- */
26
18
  private shouldRedirectToForbiddenPage;
27
19
  private getFlatEnvironment;
28
20
  private getFlatResources;
29
21
  private getPermissionObject;
30
22
  private getPermissions;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsService>;
31
25
  }
@@ -1,12 +1,9 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { SpotlightService } from '../service/spotlight.service';
3
- import { DatePipe } from '@angular/common';
4
- import { CookieService } from 'ngx-cookie-service';
2
+ import * as i0 from "@angular/core";
5
3
  export declare class SpotlightComponent implements OnInit {
6
- private spotlightService;
7
- private cookieService;
8
- private datePipe;
9
- constructor(spotlightService: SpotlightService, cookieService: CookieService, datePipe: DatePipe);
4
+ private readonly spotlightService;
5
+ private readonly cookieService;
6
+ private readonly datePipe;
10
7
  header: string;
11
8
  imgUrl: string;
12
9
  primaryButtonLabel: string;
@@ -77,4 +74,6 @@ export declare class SpotlightComponent implements OnInit {
77
74
  */
78
75
  private buildNotification;
79
76
  close(): void;
77
+ 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>;
80
79
  }
@@ -1,7 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
2
+ import * as i0 from "@angular/core";
3
3
  export declare class TranslatePipe implements PipeTransform {
4
- private translationService;
5
- constructor(translationService: TranslateService);
4
+ private readonly translationService;
6
5
  transform(value: any): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", false>;
7
8
  }
@@ -1,10 +1,9 @@
1
1
  import { SpotlightNotification } from './../models/spotlight-notification.interface';
2
- import { HttpClient } from '@angular/common/http';
3
2
  import { Observable } from 'rxjs';
4
3
  import { SpotlightScreenList, SpotlightUsersList, SpotlightControlList, SpotlightUser, SpotlightControl } from '../models/index';
4
+ import * as i0 from "@angular/core";
5
5
  export declare class SpotlightService {
6
- private http;
7
- constructor(http: HttpClient);
6
+ private readonly http;
8
7
  private API_URL;
9
8
  getUser(): Promise<any>;
10
9
  listSpotlightScreen(): Observable<SpotlightScreenList>;
@@ -13,4 +12,6 @@ export declare class SpotlightService {
13
12
  saveSpotlightUser(content: SpotlightUser): Observable<SpotlightUser>;
14
13
  saveSpotlightControl(content: SpotlightControl): Observable<SpotlightControl>;
15
14
  notificateSpotlight(content: SpotlightNotification): Observable<SpotlightNotification>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpotlightService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<SpotlightService>;
16
17
  }
@@ -1,2 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component/spotlight.component";
3
+ import * as i2 from "./pipes/translate.pipe";
4
+ import * as i3 from "primeng/button";
5
+ import * as i4 from "primeng/tooltip";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "../http-interceptor/http-interceptor.module";
8
+ import * as i7 from "../translations/translations.module";
1
9
  export declare class SpotlightModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpotlightModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SpotlightModule, [typeof i1.SpotlightComponent, typeof i2.TranslatePipe], [typeof i3.ButtonModule, typeof i4.TooltipModule, typeof i5.CommonModule, typeof i6.HttpInterceptorModule, typeof i7.TranslationsModule], [typeof i1.SpotlightComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<SpotlightModule>;
2
13
  }
@@ -2,12 +2,17 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { InjectionToken, Injector, ModuleWithProviders } from '@angular/core';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { CookieService } from 'ngx-cookie-service';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@ngx-translate/core";
5
7
  export declare const TranslationsConfig: InjectionToken<ITranslationsConfig[]>;
6
8
  export declare const USER_INFO = "com.senior.token";
7
9
  export declare const LENGTH_DEFAULT = 2;
8
10
  export declare class TranslationsModule {
9
- static forRoot(translationsConfigs: ITranslationsConfig[]): ModuleWithProviders;
10
- static forChild(translationsConfigs: ITranslationsConfig[]): ModuleWithProviders;
11
+ static forRoot(translationsConfigs: ITranslationsConfig[]): ModuleWithProviders<TranslationsModule>;
12
+ static forChild(translationsConfigs: ITranslationsConfig[]): ModuleWithProviders<TranslationsModule>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationsModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TranslationsModule, never, [typeof i1.TranslateModule], never>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<TranslationsModule>;
11
16
  }
12
17
  export interface ITranslationsConfig {
13
18
  domain: string;
@@ -15,4 +20,4 @@ export interface ITranslationsConfig {
15
20
  fallback: any;
16
21
  defaultsLanguages?: any;
17
22
  }
18
- export declare function factory(translate: TranslateService, injector: Injector, http: HttpClient, cookieService: CookieService): () => Promise<unknown>;
23
+ export declare function factory(translate: TranslateService, injector: Injector, http: HttpClient, cookieService: CookieService): () => Promise<void>;
package/package.json CHANGED
@@ -1,26 +1,29 @@
1
1
  {
2
- "$schema": "../node_modules/ng-packagr/package.schema.json",
3
2
  "name": "@seniorsistemas/platform-components",
3
+ "version": "6.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "http://git.senior.com.br/arquitetura/platform-components"
7
7
  },
8
- "version": "5.3.3",
9
- "peerDependencies": {},
10
- "dependencies": {
11
- "json-cycle": "1.3.0",
12
- "ngx-cookie-service": "^3.1.3",
13
- "ramda": "^0.25.0",
14
- "tslib": "^1.10.0"
8
+ "peerDependencies": {
9
+ "@angular/core": "^18.0.0",
10
+ "@angular/common": "^18.0.0"
11
+ },
12
+ "module": "fesm2022/seniorsistemas-platform-components.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "esm2022": "./esm2022/seniorsistemas-platform-components.mjs",
21
+ "esm": "./esm2022/seniorsistemas-platform-components.mjs",
22
+ "default": "./fesm2022/seniorsistemas-platform-components.mjs"
23
+ }
15
24
  },
16
- "main": "bundles/seniorsistemas-platform-components.umd.js",
17
- "module": "fesm5/seniorsistemas-platform-components.js",
18
- "es2015": "fesm2015/seniorsistemas-platform-components.js",
19
- "esm5": "esm5/seniorsistemas-platform-components.js",
20
- "esm2015": "esm2015/seniorsistemas-platform-components.js",
21
- "fesm5": "fesm5/seniorsistemas-platform-components.js",
22
- "fesm2015": "fesm2015/seniorsistemas-platform-components.js",
23
- "typings": "seniorsistemas-platform-components.d.ts",
24
- "metadata": "seniorsistemas-platform-components.metadata.json",
25
- "sideEffects": false
26
- }
25
+ "sideEffects": false,
26
+ "dependencies": {
27
+ "tslib": "^2.3.0"
28
+ }
29
+ }
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../lib/src/json-cycle.d.ts" />
1
2
  export * from './modules/advanced-filter/index';
2
3
  export * from './modules/cyclic-json-interceptor/index';
3
4
  export * from './modules/http-interceptor/index';