@tilde-nlp/ngx-common 5.0.21 → 5.0.23

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 (24) hide show
  1. package/esm2022/lib/filter-bar/filter-bar.component.mjs +96 -71
  2. package/esm2022/lib/filter-bar/models/filter-bar-settings.model.mjs +1 -1
  3. package/esm2022/lib/llm/llm.component.mjs +8 -8
  4. package/esm2022/lib/llm/models/llm-configuration.model.mjs +1 -1
  5. package/esm2022/lib/llm/services/llm-helper.service.mjs +4 -1
  6. package/esm2022/lib/multi-functional-table/multi-functional-table.component.mjs +11 -6
  7. package/esm2022/lib/notification-message/notification-message.component.mjs +6 -6
  8. package/esm2022/lib/services/quota/models/quota-service-configuration.model.mjs +1 -1
  9. package/esm2022/lib/services/quota/quota.service.mjs +5 -3
  10. package/esm2022/lib/terminology/services/terminology/terminology.service.mjs +2 -3
  11. package/esm2022/lib/text-to-speech/models/voice.model.mjs +1 -1
  12. package/esm2022/lib/text-to-speech/text-to-speech.component.mjs +18 -7
  13. package/fesm2022/tilde-nlp-ngx-common.mjs +141 -96
  14. package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
  15. package/lib/filter-bar/filter-bar.component.d.ts +1 -0
  16. package/lib/filter-bar/models/filter-bar-settings.model.d.ts +1 -0
  17. package/lib/llm/models/llm-configuration.model.d.ts +1 -0
  18. package/lib/multi-functional-table/multi-functional-table.component.d.ts +3 -1
  19. package/lib/services/quota/models/quota-service-configuration.model.d.ts +2 -0
  20. package/lib/services/quota/quota.service.d.ts +1 -1
  21. package/lib/terminology/services/terminology/terminology.service.d.ts +1 -1
  22. package/lib/text-to-speech/models/voice.model.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/web-components/main.js +10 -10
@@ -41,6 +41,7 @@ export declare class FilterBarComponent implements OnInit, AfterViewInit, OnDest
41
41
  get inputText(): string;
42
42
  get showSearch(): boolean;
43
43
  get outputFilterKeyAndValue(): boolean | undefined;
44
+ get currentFilters(): FilterBarFilter[] | undefined;
44
45
  set inputText(value: string);
45
46
  constructor(cdref: ChangeDetectorRef, translate: TranslateService);
46
47
  ngOnInit(): void;
@@ -18,4 +18,5 @@ export interface FilterBarSettings {
18
18
  suffixIcon?: string;
19
19
  showSuffixIcon?: boolean;
20
20
  filters?: FilterBarFilter[];
21
+ splittedFilters?: FilterBarFilter[][];
21
22
  }
@@ -5,4 +5,5 @@ export interface LLMConfiguration {
5
5
  xApiKey: string;
6
6
  appId: string;
7
7
  maxCharLength: number;
8
+ useLocalQuota: boolean;
8
9
  }
@@ -16,6 +16,7 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
16
16
  readonly matSelection: SelectionModel<T>;
17
17
  config: MultiFunctionalTableConfig<T>;
18
18
  highlightedElements: T[];
19
+ highlightedErrorElements: T[];
19
20
  set selection(value: T[]);
20
21
  isRowCheckboxAlwaysVisible: boolean;
21
22
  disablePreselectedItems: boolean;
@@ -62,6 +63,7 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
62
63
  filtersChanged(filters: FilterBarChangeEvent): void;
63
64
  export(): void;
64
65
  highlightElement(element: T): boolean;
66
+ highlightErrorElement(element: T): boolean;
65
67
  isAllSelected(): boolean;
66
68
  toggleAllRowSelection(): void;
67
69
  toggleElementSelection(element: T): void;
@@ -77,5 +79,5 @@ export declare class MultiFunctionalTableComponent<T> implements OnInit, AfterCo
77
79
  private setNoDataRowProperties;
78
80
  private setExportProperties;
79
81
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiFunctionalTableComponent<any>, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<MultiFunctionalTableComponent<any>, "tld-multi-functional-table", never, { "config": { "alias": "config"; "required": false; }; "highlightedElements": { "alias": "highlightedElements"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "isRowCheckboxAlwaysVisible": { "alias": "isRowCheckboxAlwaysVisible"; "required": false; }; "disablePreselectedItems": { "alias": "disablePreselectedItems"; "required": false; }; }, { "filterBarChange": "filterBarChange"; "exported": "exported"; "selectionChange": "selectionChange"; }, ["noDataRow", "headerRowDefs", "rowDefs", "columnDefs"], ["[additionalActions]", "*"], false, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiFunctionalTableComponent<any>, "tld-multi-functional-table", never, { "config": { "alias": "config"; "required": false; }; "highlightedElements": { "alias": "highlightedElements"; "required": false; }; "highlightedErrorElements": { "alias": "highlightedErrorElements"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "isRowCheckboxAlwaysVisible": { "alias": "isRowCheckboxAlwaysVisible"; "required": false; }; "disablePreselectedItems": { "alias": "disablePreselectedItems"; "required": false; }; }, { "filterBarChange": "filterBarChange"; "exported": "exported"; "selectionChange": "selectionChange"; }, ["noDataRow", "headerRowDefs", "rowDefs", "columnDefs"], ["[additionalActions]", "*"], false, never>;
81
83
  }
@@ -1,3 +1,5 @@
1
1
  export interface QuotaServiceConfiguration {
2
2
  apiUrl: string;
3
+ xApiKey: string;
4
+ appId: string;
3
5
  }
@@ -5,7 +5,7 @@ import { QuotaServiceConfiguration } from './models/quota-service-configuration.
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class QuotaService {
7
7
  private readonly http;
8
- private baseUrl;
8
+ private config;
9
9
  constructor(http: HttpClient, config: QuotaServiceConfiguration);
10
10
  getQuotaUsage(): Observable<{
11
11
  usage: QuotaUsage[];
@@ -19,7 +19,7 @@ export declare class TerminologyService {
19
19
  private updatedEnginesSubject;
20
20
  get isAuthenticated(): boolean | undefined;
21
21
  get canCreateCollections(): boolean | undefined;
22
- private readonly LOCAL_STORAGE_KEY;
22
+ readonly LOCAL_STORAGE_KEY = "systemLastCollections";
23
23
  get hasEditPermissions(): boolean | undefined;
24
24
  constructor(config: TerminologyConfigService, alert: AlertService, termCollectionApi: TerminologyCollectionService, mtApi: TerminologyApiService);
25
25
  getRetranslateSignal(): Observable<boolean>;
@@ -2,4 +2,5 @@ export interface Voice {
2
2
  voice: string;
3
3
  apiVersion: number;
4
4
  apiUrl: string;
5
+ voiceName?: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "5.0.21",
3
+ "version": "5.0.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " ^17.0.0",
6
6
  "@angular/core": " ^17.0.0",