@seniorsistemas/platform-components 7.2.0 → 7.2.1

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.
@@ -19,6 +19,7 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
19
19
  formFilters: FormFilter[];
20
20
  oldFormFilters: FormFilter[];
21
21
  actualFormFilters: any[];
22
+ private readonly lastSuggestions;
22
23
  general: TabView;
23
24
  totalFiltersActive: number;
24
25
  isMobile: boolean;
@@ -67,6 +68,8 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
67
68
  */
68
69
  private createTabs;
69
70
  private updateFilterValue;
71
+ private normalizeSearchValue;
72
+ private resolveSearchItem;
70
73
  private cleanFieldAndSetDefaultValue;
71
74
  private createChildArray;
72
75
  private createField;
@@ -79,6 +82,15 @@ export declare class FormFilterComponent implements OnInit, OnDestroy {
79
82
  private updateNonCommaOperatorState;
80
83
  private getEntitySearchUrl;
81
84
  private addSuggestionFields;
85
+ /**
86
+ * Verifica se um item já selecionado corresponde a uma sugestão retornada pela busca.
87
+ * A comparação primária é pelo keyValue. Para filtros salvos em formato antigo — onde o
88
+ * keyValue foi gravado com o displayValue (ou o item é uma string pura) e portanto não casa
89
+ * com o id atual das sugestões — é feito fallback pela comparação de displayValue.
90
+ */
91
+ private isSameSuggestion;
92
+ private getSuggestionKey;
93
+ private getSuggestionDisplay;
82
94
  private getDependenciesValues;
83
95
  private IsEmpty;
84
96
  /**
@@ -11,6 +11,9 @@ export interface TickedFilterResponse {
11
11
  export interface ContextsFiltersResponse {
12
12
  filters: Filter[];
13
13
  }
14
+ export interface FiltersByTicketResponse {
15
+ filters: TickedFilter[];
16
+ }
14
17
  export interface IGetFiltersResponse {
15
18
  error?: boolean;
16
19
  message?: HttpErrorResponse;
@@ -43,12 +46,29 @@ export declare class AdvancedFilterService {
43
46
  tryAgain(serviceContexts: Context[]): void;
44
47
  private getAndApplyFilters;
45
48
  private getFilters;
49
+ private applyTicketValues;
50
+ private fetchFiltersByTicket;
51
+ private mergeTicketValues;
52
+ /**
53
+ * Reconstrói o valor do filtro a partir dos itens do ticket (que contém apenas as chaves),
54
+ * reaproveitando o objeto completo já presente no filtro base quando a chave corresponde —
55
+ * preservando assim o texto de exibição. Chaves ausentes no base são mantidas como estão
56
+ * e resolvidas posteriormente pela busca de sugestões.
57
+ */
58
+ private buildMergedValue;
59
+ private indexBaseItemsByKey;
60
+ private getSearchOutput;
61
+ private parseJsonArray;
62
+ private buildTicketValueMap;
63
+ private normalizeTicketValue;
64
+ private getTicketKey;
46
65
  private mapFilters;
47
66
  private applySearchMapping;
48
67
  private assignFilterValue;
49
68
  private isMultiple;
50
69
  private mapValues;
51
70
  private mapValue;
71
+ private isPrimitiveValue;
52
72
  static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedFilterService, never>;
53
73
  static ɵprov: i0.ɵɵInjectableDeclaration<AdvancedFilterService>;
54
74
  }
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  },
26
26
  "sideEffects": false,
27
27
  "typings": "index.d.ts",
28
- "version": "7.2.0"
28
+ "version": "7.2.1"
29
29
  }