@sinequa/atomic-angular 0.0.146 → 0.1.3
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/README.md +145 -0
- package/components/no-result/i18n/en.json +5 -0
- package/components/no-result/i18n/fr.json +5 -0
- package/components/sort-selector/i18n/en.json +3 -0
- package/components/sort-selector/i18n/fr.json +3 -0
- package/components/source/i18n/en.json +3 -0
- package/components/source/i18n/fr.json +3 -0
- package/features/alerts/i18n/en.json +33 -0
- package/features/alerts/i18n/fr.json +33 -0
- package/features/bookmarks/i18n/en.json +11 -0
- package/features/bookmarks/i18n/fr.json +11 -0
- package/features/collections/i18n/en.json +17 -0
- package/features/collections/i18n/fr.json +16 -0
- package/features/dialogs/i18n/en.json +15 -0
- package/features/dialogs/i18n/fr.json +15 -0
- package/features/did-you-mean/i18n/en.json +5 -0
- package/features/did-you-mean/i18n/fr.json +5 -0
- package/features/drawer/i18n/en.json +22 -0
- package/features/drawer/i18n/fr.json +22 -0
- package/features/export/i18n/en.json +7 -0
- package/features/export/i18n/fr.json +7 -0
- package/features/feedback/i18n/en.json +26 -0
- package/features/feedback/i18n/fr.json +26 -0
- package/features/filters/i18n/en.json +14 -0
- package/features/filters/i18n/fr.json +14 -0
- package/features/labels/i18n/en.json +8 -0
- package/features/labels/i18n/fr.json +8 -0
- package/features/recent-searches/i18n/en.json +6 -0
- package/features/recent-searches/i18n/fr.json +6 -0
- package/features/saved-searches/i18n/en.json +8 -0
- package/features/saved-searches/i18n/fr.json +8 -0
- package/features/sign-in/i18n/en.json +12 -0
- package/features/sign-in/i18n/fr.json +14 -0
- package/fesm2022/sinequa-atomic-angular.mjs +8021 -2672
- package/fesm2022/sinequa-atomic-angular.mjs.map +1 -1
- package/index.d.ts +6036 -3
- package/package.json +68 -10
- package/assets/tailwind.css +0 -334
- package/esm2022/lib/assistant/index.mjs +0 -2
- package/esm2022/lib/assistant/signalR.web.service.mjs +0 -81
- package/esm2022/lib/components/dropdown-input.mjs +0 -97
- package/esm2022/lib/components/dropdown-list.mjs +0 -35
- package/esm2022/lib/components/dropdown.mjs +0 -127
- package/esm2022/lib/components/index.mjs +0 -7
- package/esm2022/lib/components/menu/index.mjs +0 -3
- package/esm2022/lib/components/menu/menu-item.mjs +0 -22
- package/esm2022/lib/components/menu/menu.mjs +0 -99
- package/esm2022/lib/components/metadata/index.mjs +0 -2
- package/esm2022/lib/components/metadata/metadata.component.mjs +0 -65
- package/esm2022/lib/components/theme/index.mjs +0 -3
- package/esm2022/lib/components/theme/theme-selector.component.mjs +0 -67
- package/esm2022/lib/components/theme/theme-toggle.component.mjs +0 -67
- package/esm2022/lib/directives/index.mjs +0 -5
- package/esm2022/lib/directives/infinite-scroll.directive.mjs +0 -47
- package/esm2022/lib/directives/select-article-on-click.directive.mjs +0 -39
- package/esm2022/lib/directives/show-bookmark.directive.mjs +0 -55
- package/esm2022/lib/directives/theme-provider.directive.mjs +0 -31
- package/esm2022/lib/guards/auth.guard.mjs +0 -27
- package/esm2022/lib/guards/index.mjs +0 -3
- package/esm2022/lib/guards/initialization.guard.mjs +0 -41
- package/esm2022/lib/interceptors/audit.interceptor.mjs +0 -23
- package/esm2022/lib/interceptors/auth.interceptor.mjs +0 -49
- package/esm2022/lib/interceptors/body.interceptor.mjs +0 -24
- package/esm2022/lib/interceptors/error.interceptor.mjs +0 -35
- package/esm2022/lib/interceptors/index.mjs +0 -7
- package/esm2022/lib/interceptors/toast.interceptor.mjs +0 -27
- package/esm2022/lib/models/aggregation.mjs +0 -2
- package/esm2022/lib/models/article-metadata.mjs +0 -2
- package/esm2022/lib/models/autocomplete.mjs +0 -2
- package/esm2022/lib/models/custom-json.mjs +0 -2
- package/esm2022/lib/models/filter-dropdown.mjs +0 -2
- package/esm2022/lib/models/index.mjs +0 -7
- package/esm2022/lib/models/user-settings.mjs +0 -2
- package/esm2022/lib/pipes/highlight-word.pipe.mjs +0 -33
- package/esm2022/lib/pipes/index.mjs +0 -3
- package/esm2022/lib/pipes/source-icon.pipe.mjs +0 -43
- package/esm2022/lib/public-api.mjs +0 -18
- package/esm2022/lib/resolvers/index.mjs +0 -2
- package/esm2022/lib/resolvers/query-name-resolver.mjs +0 -14
- package/esm2022/lib/resources/index.mjs +0 -2
- package/esm2022/lib/resources/themes.mjs +0 -53
- package/esm2022/lib/services/application.service.mjs +0 -245
- package/esm2022/lib/services/autocomplete.service.mjs +0 -85
- package/esm2022/lib/services/drawer/backdrop.service.mjs +0 -23
- package/esm2022/lib/services/drawer/drawer-stack.service.mjs +0 -152
- package/esm2022/lib/services/drawer/drawer.service.mjs +0 -38
- package/esm2022/lib/services/index.mjs +0 -12
- package/esm2022/lib/services/label.service.mjs +0 -161
- package/esm2022/lib/services/navigation.service.mjs +0 -59
- package/esm2022/lib/services/saved-searches.service.mjs +0 -75
- package/esm2022/lib/services/search.service.mjs +0 -89
- package/esm2022/lib/services/selection-history.service.mjs +0 -92
- package/esm2022/lib/services/selection.service.mjs +0 -87
- package/esm2022/lib/stores/aggregations.store.mjs +0 -59
- package/esm2022/lib/stores/app.store.mjs +0 -270
- package/esm2022/lib/stores/application.store.mjs +0 -87
- package/esm2022/lib/stores/index.mjs +0 -9
- package/esm2022/lib/stores/principal.store.mjs +0 -47
- package/esm2022/lib/stores/query-params.store.mjs +0 -207
- package/esm2022/lib/stores/selection.store.mjs +0 -45
- package/esm2022/lib/stores/theme.store.mjs +0 -116
- package/esm2022/lib/stores/user-settings.store.mjs +0 -391
- package/esm2022/lib/tokens/highlights.mjs +0 -32
- package/esm2022/lib/tokens/index.mjs +0 -2
- package/esm2022/lib/utils/debounced-signal.mjs +0 -38
- package/esm2022/lib/utils/index.mjs +0 -8
- package/esm2022/lib/utils/inline-worker.mjs +0 -40
- package/esm2022/lib/utils/query.mjs +0 -58
- package/esm2022/lib/utils/routes.mjs +0 -28
- package/esm2022/lib/utils/tailwind-utils.mjs +0 -6
- package/esm2022/lib/utils/theme-body-hook.mjs +0 -18
- package/esm2022/lib/utils/theme-registry.mjs +0 -6
- package/esm2022/lib/web-services/aggregations.service.mjs +0 -104
- package/esm2022/lib/web-services/app.service.mjs +0 -48
- package/esm2022/lib/web-services/audit.service.mjs +0 -122
- package/esm2022/lib/web-services/index.mjs +0 -10
- package/esm2022/lib/web-services/json-method-plugin.service.mjs +0 -54
- package/esm2022/lib/web-services/preview.service.mjs +0 -327
- package/esm2022/lib/web-services/principal.service.mjs +0 -46
- package/esm2022/lib/web-services/query.service.mjs +0 -123
- package/esm2022/lib/web-services/text-chunck.service.mjs +0 -46
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/sinequa-atomic-angular.mjs +0 -5
- package/lib/assistant/index.d.ts +0 -1
- package/lib/assistant/signalR.web.service.d.ts +0 -46
- package/lib/components/dropdown-input.d.ts +0 -18
- package/lib/components/dropdown-list.d.ts +0 -8
- package/lib/components/dropdown.d.ts +0 -50
- package/lib/components/index.d.ts +0 -6
- package/lib/components/menu/index.d.ts +0 -2
- package/lib/components/menu/menu-item.d.ts +0 -8
- package/lib/components/menu/menu.d.ts +0 -24
- package/lib/components/metadata/index.d.ts +0 -1
- package/lib/components/metadata/metadata.component.d.ts +0 -24
- package/lib/components/theme/index.d.ts +0 -2
- package/lib/components/theme/theme-selector.component.d.ts +0 -70
- package/lib/components/theme/theme-toggle.component.d.ts +0 -10
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/infinite-scroll.directive.d.ts +0 -30
- package/lib/directives/select-article-on-click.directive.d.ts +0 -14
- package/lib/directives/show-bookmark.directive.d.ts +0 -60
- package/lib/directives/theme-provider.directive.d.ts +0 -20
- package/lib/guards/auth.guard.d.ts +0 -7
- package/lib/guards/index.d.ts +0 -2
- package/lib/guards/initialization.guard.d.ts +0 -20
- package/lib/interceptors/audit.interceptor.d.ts +0 -13
- package/lib/interceptors/auth.interceptor.d.ts +0 -14
- package/lib/interceptors/body.interceptor.d.ts +0 -11
- package/lib/interceptors/error.interceptor.d.ts +0 -9
- package/lib/interceptors/index.d.ts +0 -5
- package/lib/interceptors/toast.interceptor.d.ts +0 -13
- package/lib/models/aggregation.d.ts +0 -12
- package/lib/models/article-metadata.d.ts +0 -5
- package/lib/models/autocomplete.d.ts +0 -5
- package/lib/models/custom-json.d.ts +0 -69
- package/lib/models/filter-dropdown.d.ts +0 -10
- package/lib/models/index.d.ts +0 -6
- package/lib/models/user-settings.d.ts +0 -38
- package/lib/pipes/highlight-word.pipe.d.ts +0 -22
- package/lib/pipes/index.d.ts +0 -2
- package/lib/pipes/source-icon.pipe.d.ts +0 -51
- package/lib/public-api.d.ts +0 -14
- package/lib/resolvers/index.d.ts +0 -1
- package/lib/resolvers/query-name-resolver.d.ts +0 -9
- package/lib/resources/index.d.ts +0 -1
- package/lib/resources/themes.d.ts +0 -51
- package/lib/services/application.service.d.ts +0 -183
- package/lib/services/autocomplete.service.d.ts +0 -96
- package/lib/services/drawer/backdrop.service.d.ts +0 -9
- package/lib/services/drawer/drawer-stack.service.d.ts +0 -70
- package/lib/services/drawer/drawer.service.d.ts +0 -15
- package/lib/services/index.d.ts +0 -11
- package/lib/services/label.service.d.ts +0 -114
- package/lib/services/navigation.service.d.ts +0 -33
- package/lib/services/saved-searches.service.d.ts +0 -149
- package/lib/services/search.service.d.ts +0 -159
- package/lib/services/selection-history.service.d.ts +0 -50
- package/lib/services/selection.service.d.ts +0 -123
- package/lib/stores/aggregations.store.d.ts +0 -25
- package/lib/stores/app.store.d.ts +0 -110
- package/lib/stores/application.store.d.ts +0 -83
- package/lib/stores/index.d.ts +0 -8
- package/lib/stores/principal.store.d.ts +0 -47
- package/lib/stores/query-params.store.d.ts +0 -128
- package/lib/stores/selection.store.d.ts +0 -52
- package/lib/stores/theme.store.d.ts +0 -66
- package/lib/stores/user-settings.store.d.ts +0 -111
- package/lib/tokens/highlights.d.ts +0 -8
- package/lib/tokens/index.d.ts +0 -1
- package/lib/utils/debounced-signal.d.ts +0 -25
- package/lib/utils/index.d.ts +0 -7
- package/lib/utils/inline-worker.d.ts +0 -11
- package/lib/utils/query.d.ts +0 -26
- package/lib/utils/routes.d.ts +0 -16
- package/lib/utils/tailwind-utils.d.ts +0 -2
- package/lib/utils/theme-body-hook.d.ts +0 -6
- package/lib/utils/theme-registry.d.ts +0 -3
- package/lib/web-services/aggregations.service.d.ts +0 -57
- package/lib/web-services/app.service.d.ts +0 -30
- package/lib/web-services/audit.service.d.ts +0 -72
- package/lib/web-services/index.d.ts +0 -9
- package/lib/web-services/json-method-plugin.service.d.ts +0 -41
- package/lib/web-services/preview.service.d.ts +0 -283
- package/lib/web-services/principal.service.d.ts +0 -28
- package/lib/web-services/query.service.d.ts +0 -29
- package/lib/web-services/text-chunck.service.d.ts +0 -22
- package/public-api.d.ts +0 -1
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { EventEmitter, Injector, OnDestroy } from "@angular/core";
|
|
3
|
-
import { DomSanitizer } from "@angular/platform-browser";
|
|
4
|
-
import { Observable, Subject } from "rxjs";
|
|
5
|
-
import { Article, AuditEvents, CustomHighlights, PreviewData, Query } from "@sinequa/atomic";
|
|
6
|
-
import { SearchService } from "../services/search.service";
|
|
7
|
-
import { Extract } from "../stores";
|
|
8
|
-
import { PreviewHighlight } from "../tokens";
|
|
9
|
-
import { InlineWorker } from "../utils";
|
|
10
|
-
import { AuditService } from "./audit.service";
|
|
11
|
-
import { QueryService } from "./query.service";
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export type ExtractsEvents = 'fetching' | 'fetched' | 'error';
|
|
14
|
-
export declare class PreviewService implements OnDestroy {
|
|
15
|
-
highlights: PreviewHighlight[];
|
|
16
|
-
protected readonly http: HttpClient;
|
|
17
|
-
protected readonly injector: Injector;
|
|
18
|
-
protected readonly API_URL: string;
|
|
19
|
-
protected readonly applicationStore: {
|
|
20
|
-
assistantReady: import("@angular/core").Signal<boolean>;
|
|
21
|
-
ready: import("@angular/core").Signal<boolean>;
|
|
22
|
-
hasLabelsAccess: import("@angular/core").Signal<boolean>;
|
|
23
|
-
extracts: import("@angular/core").Signal<Map<string, Extract[]>>;
|
|
24
|
-
extractsCount: import("@angular/core").Signal<number>;
|
|
25
|
-
updateAssistantReady: () => void;
|
|
26
|
-
updateReadyState: (value?: boolean) => void;
|
|
27
|
-
updateHasLabelsAccess: (value?: boolean) => void;
|
|
28
|
-
updateExtracts: (id: string, extracts: Extract[]) => void;
|
|
29
|
-
getExtracts: (id: string) => Extract[] | undefined;
|
|
30
|
-
} & import("@ngrx/signals").WritableStateSource<{
|
|
31
|
-
assistantReady: boolean;
|
|
32
|
-
ready: boolean;
|
|
33
|
-
hasLabelsAccess: boolean;
|
|
34
|
-
extracts: Map<string, Extract[]>;
|
|
35
|
-
}>;
|
|
36
|
-
protected readonly selectionStore: {
|
|
37
|
-
article: import("@ngrx/signals").DeepSignal<Article>;
|
|
38
|
-
id: import("@angular/core").Signal<string>;
|
|
39
|
-
queryText: import("@angular/core").Signal<string>;
|
|
40
|
-
previewHighlights: import("@ngrx/signals").DeepSignal<import("../stores").PreviewHighlights>;
|
|
41
|
-
update: (newState: Partial<import("../stores").SelectionState>) => void;
|
|
42
|
-
clear: () => void;
|
|
43
|
-
} & import("@ngrx/signals").StateSource<{
|
|
44
|
-
article: Article;
|
|
45
|
-
id: string;
|
|
46
|
-
queryText: string;
|
|
47
|
-
previewHighlights: import("../stores").PreviewHighlights;
|
|
48
|
-
}>;
|
|
49
|
-
protected readonly queryParamsStore: {
|
|
50
|
-
name?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
51
|
-
text?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
52
|
-
aggregations?: import("@angular/core").Signal<string[] | Record<string, import("@sinequa/atomic").AggregationOptions> | undefined> | undefined;
|
|
53
|
-
sort?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
54
|
-
action?: import("@angular/core").Signal<"" | "open" | "search" | "aggregate" | undefined> | undefined;
|
|
55
|
-
select?: import("@angular/core").Signal<import("@sinequa/atomic").Select[] | undefined> | undefined;
|
|
56
|
-
open?: import("@angular/core").Signal<import("@sinequa/atomic").Open[] | undefined> | undefined;
|
|
57
|
-
page?: import("@angular/core").Signal<number | undefined> | undefined;
|
|
58
|
-
pageSize?: import("@angular/core").Signal<number | undefined> | undefined;
|
|
59
|
-
tab?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
60
|
-
scope?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
61
|
-
basket?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
62
|
-
isFirstPage?: import("@angular/core").Signal<boolean | undefined> | undefined;
|
|
63
|
-
strictRefine?: import("@angular/core").Signal<boolean | undefined> | undefined;
|
|
64
|
-
globalRelevance?: import("@angular/core").Signal<number | undefined> | undefined;
|
|
65
|
-
questionLanguage?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
66
|
-
questionDefaultLanguage?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
67
|
-
spellingCorrectionMode?: import("@angular/core").Signal<import("@sinequa/atomic").SpellingCorrectionMode | undefined> | undefined;
|
|
68
|
-
spellingCorrectionFilter?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
69
|
-
documentWeight?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
70
|
-
textPartWeights?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
71
|
-
relevanceTransforms?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
72
|
-
removeDuplicates?: import("@angular/core").Signal<boolean | undefined> | undefined;
|
|
73
|
-
queryId?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
74
|
-
orderBy?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
75
|
-
groupBy?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
76
|
-
neuralSearch?: import("@angular/core").Signal<boolean | undefined> | undefined;
|
|
77
|
-
path?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
78
|
-
filters?: import("@angular/core").Signal<import("@sinequa/atomic").LegacyFilter[] | undefined> | undefined;
|
|
79
|
-
id?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
80
|
-
setFromUrl: (url: string) => void;
|
|
81
|
-
addFilter: (filter: import("@sinequa/atomic").LegacyFilter) => void;
|
|
82
|
-
updateFilter: (filter: import("@sinequa/atomic").LegacyFilter) => void;
|
|
83
|
-
removeFilter: (field?: string) => void;
|
|
84
|
-
removeFilterByName: (name?: string) => void;
|
|
85
|
-
clearFilters: () => void;
|
|
86
|
-
patch: (params: Partial<import("../stores").QueryParamsState>) => void;
|
|
87
|
-
getFilter: (fieldOrName?: string) => Partial<import("@sinequa/atomic").LegacyFilter & {
|
|
88
|
-
count: number;
|
|
89
|
-
}> | null;
|
|
90
|
-
getQuery: () => Query;
|
|
91
|
-
} & import("@ngrx/signals").StateSource<{
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
text?: string | undefined;
|
|
94
|
-
aggregations?: (Record<string, import("@sinequa/atomic").AggregationOptions> | string[]) | undefined;
|
|
95
|
-
sort?: string | undefined;
|
|
96
|
-
action?: ("" | "search" | "open" | "aggregate") | undefined;
|
|
97
|
-
select?: import("@sinequa/atomic").Select[] | undefined;
|
|
98
|
-
open?: import("@sinequa/atomic").Open[] | undefined;
|
|
99
|
-
page?: number | undefined;
|
|
100
|
-
pageSize?: number | undefined;
|
|
101
|
-
tab?: string | undefined;
|
|
102
|
-
scope?: string | undefined;
|
|
103
|
-
basket?: string | undefined;
|
|
104
|
-
isFirstPage?: boolean | undefined;
|
|
105
|
-
strictRefine?: boolean | undefined;
|
|
106
|
-
globalRelevance?: number | undefined;
|
|
107
|
-
questionLanguage?: string | undefined;
|
|
108
|
-
questionDefaultLanguage?: string | undefined;
|
|
109
|
-
spellingCorrectionMode?: import("@sinequa/atomic").SpellingCorrectionMode | undefined;
|
|
110
|
-
spellingCorrectionFilter?: string | undefined;
|
|
111
|
-
documentWeight?: string | undefined;
|
|
112
|
-
textPartWeights?: string | undefined;
|
|
113
|
-
relevanceTransforms?: string | undefined;
|
|
114
|
-
removeDuplicates?: boolean | undefined;
|
|
115
|
-
queryId?: string | undefined;
|
|
116
|
-
orderBy?: string | undefined;
|
|
117
|
-
groupBy?: string | undefined;
|
|
118
|
-
neuralSearch?: boolean | undefined;
|
|
119
|
-
path?: string | undefined;
|
|
120
|
-
filters?: import("@sinequa/atomic").LegacyFilter[] | undefined;
|
|
121
|
-
id?: string | undefined;
|
|
122
|
-
}>;
|
|
123
|
-
protected readonly appStore: {
|
|
124
|
-
webServices: import("@ngrx/signals").DeepSignal<{}>;
|
|
125
|
-
queries: import("@ngrx/signals").DeepSignal<{}>;
|
|
126
|
-
customJSONs: import("@angular/core").Signal<import("@sinequa/atomic-angular").SideCJson[]>;
|
|
127
|
-
data: import("@ngrx/signals").DeepSignal<{}>;
|
|
128
|
-
customizationJson: import("@angular/core").Signal<import("@sinequa/atomic-angular").CJsonMint>;
|
|
129
|
-
sources: import("@angular/core").Signal<any>;
|
|
130
|
-
filters: import("@angular/core").Signal<any>;
|
|
131
|
-
initialize: () => Promise<void>;
|
|
132
|
-
initializeWithAppName: (appName: string) => Promise<void>;
|
|
133
|
-
update: (app: import("@sinequa/atomic").CCApp) => void;
|
|
134
|
-
getWebServiceByType: (type: import("@sinequa/atomic").CCWebService["webServiceType"]) => import("@sinequa/atomic").CCWebService | undefined;
|
|
135
|
-
getLabels: () => {
|
|
136
|
-
private: string;
|
|
137
|
-
public: string;
|
|
138
|
-
};
|
|
139
|
-
getQueryByName: (name: string) => import("@sinequa/atomic").CCQuery | undefined;
|
|
140
|
-
getQueryByIndex: (index: number) => import("@sinequa/atomic").CCQuery | undefined;
|
|
141
|
-
getDefaultQuery: () => import("@sinequa/atomic").CCQuery | undefined;
|
|
142
|
-
allowEmptySearch: (queryName: string) => boolean;
|
|
143
|
-
getColumnAlias: (column: string) => string;
|
|
144
|
-
getAuthorizedFilters: (route: import("@angular/router").ActivatedRoute) => import("@sinequa/atomic").Aggregation[];
|
|
145
|
-
getNamedCustomizationJson: (name: string) => any | undefined;
|
|
146
|
-
getAggregationIcon: (column: string) => string | undefined;
|
|
147
|
-
getAggregationItemsCustomization: (column: string) => import("@sinequa/atomic-angular").CFilterItem[] | undefined;
|
|
148
|
-
getAggregationCustomization: (column: string) => import("@sinequa/atomic-angular").CFilter | undefined;
|
|
149
|
-
} & import("@ngrx/signals").StateSource<{
|
|
150
|
-
webServices: {};
|
|
151
|
-
queries: {};
|
|
152
|
-
customJSONs: import("@sinequa/atomic-angular").SideCJson[];
|
|
153
|
-
data: {};
|
|
154
|
-
}>;
|
|
155
|
-
protected readonly sanitizer: DomSanitizer;
|
|
156
|
-
protected readonly queryService: QueryService;
|
|
157
|
-
protected readonly searchService: SearchService;
|
|
158
|
-
protected readonly auditService: AuditService;
|
|
159
|
-
events: EventEmitter<ExtractsEvents>;
|
|
160
|
-
onMessage: Subject<unknown>;
|
|
161
|
-
worker: InlineWorker | undefined;
|
|
162
|
-
allowWoker: boolean;
|
|
163
|
-
protected previewData: PreviewData | undefined;
|
|
164
|
-
protected iframe: Window | null | undefined;
|
|
165
|
-
protected highlightCategory: string;
|
|
166
|
-
extracts: string[];
|
|
167
|
-
entities: string[];
|
|
168
|
-
constructor(highlights: PreviewHighlight[]);
|
|
169
|
-
ngOnDestroy(): void;
|
|
170
|
-
/**
|
|
171
|
-
* Handles incoming messages from a MessageEvent.
|
|
172
|
-
*
|
|
173
|
-
* @param event - The MessageEvent containing the message data.
|
|
174
|
-
*
|
|
175
|
-
* The function processes messages of type 'ready' and 'get-html-results'.
|
|
176
|
-
*
|
|
177
|
-
* - For 'ready' messages:
|
|
178
|
-
* - Initializes the preview iframe with the app name and highlights.
|
|
179
|
-
* - If preview data is available, retrieves HTML content based on the current selection.
|
|
180
|
-
*
|
|
181
|
-
* - For 'get-html-results' messages:
|
|
182
|
-
* - Updates the application store with the extracted HTML results.
|
|
183
|
-
* - If no extracts are found, updates the application store with an empty array.
|
|
184
|
-
*/
|
|
185
|
-
receiveMessage(event: MessageEvent): void;
|
|
186
|
-
/**
|
|
187
|
-
* Generates a preview of the document with the given ID, applying the specified query parameters,
|
|
188
|
-
* custom highlights, and audit events.
|
|
189
|
-
*
|
|
190
|
-
* @param id - The unique identifier of the document to preview.
|
|
191
|
-
* @param q - Partial query parameters to customize the preview request.
|
|
192
|
-
* @param customHighlights - Optional array of custom highlights to apply to the preview.
|
|
193
|
-
* @param audit - Optional audit events to merge with the default audit record.
|
|
194
|
-
* @returns An Observable that emits the preview data.
|
|
195
|
-
*/
|
|
196
|
-
preview(id: string, q: Partial<Query>, customHighlights?: CustomHighlights[], audit?: AuditEvents): Observable<PreviewData>;
|
|
197
|
-
/**
|
|
198
|
-
* Closes the preview with the specified ID and updates the audit log.
|
|
199
|
-
*
|
|
200
|
-
* @param id - The ID of the preview to close.
|
|
201
|
-
* @param query - The partial query object used to retrieve the preview detail.
|
|
202
|
-
*/
|
|
203
|
-
close(id: string, query: Partial<Query>): void;
|
|
204
|
-
/**
|
|
205
|
-
* Previews an article in a new browser's tab.
|
|
206
|
-
*
|
|
207
|
-
* @param article - The article to preview.
|
|
208
|
-
*/
|
|
209
|
-
openExternal(article: Article): void;
|
|
210
|
-
/**
|
|
211
|
-
* Sets the iframe window object.
|
|
212
|
-
*
|
|
213
|
-
* @param iframe - The window object of the iframe or null to unset.
|
|
214
|
-
*/
|
|
215
|
-
setIframe(iframe: Window | null): void;
|
|
216
|
-
/**
|
|
217
|
-
* Sets the preview data and updates the highlight category based on the provided data.
|
|
218
|
-
*
|
|
219
|
-
* @param data - The preview data to be set.
|
|
220
|
-
*
|
|
221
|
-
* If the provided data contains highlights per category with 'matchingpassages' having values,
|
|
222
|
-
* the highlight category is set to "matchingpassages". Otherwise, it is set to "extractslocations".
|
|
223
|
-
*/
|
|
224
|
-
setPreviewData(data: PreviewData): void;
|
|
225
|
-
/**
|
|
226
|
-
* Sends a message to the iframe if it exists.
|
|
227
|
-
*
|
|
228
|
-
* @param message - The message to be sent. It can be of any type.
|
|
229
|
-
*/
|
|
230
|
-
sendMessage(message: unknown): void;
|
|
231
|
-
/**
|
|
232
|
-
* Get preview id for an entity value for an index
|
|
233
|
-
* @param entity the entity type (i.e. "geo")
|
|
234
|
-
* @param value the entity value (i.e. "AUSTRALIA")
|
|
235
|
-
* @param index the entity index from its list
|
|
236
|
-
* @returns the html id
|
|
237
|
-
*/
|
|
238
|
-
getEntityId(entity: string, value: string, index: number): number | undefined;
|
|
239
|
-
/**
|
|
240
|
-
* Send a message to the prewiew iFrame with the required data to retrieve HTML content for a specific highlight category
|
|
241
|
-
*
|
|
242
|
-
* @param id - The unique identifier for the request.
|
|
243
|
-
* @param highlightCategory - The category of highlights to retrieve.
|
|
244
|
-
* @param previewData - The data containing highlights and their locations.
|
|
245
|
-
*/
|
|
246
|
-
retrieveHtmlContent(id: string, highlightCategory: string, previewData: PreviewData): void;
|
|
247
|
-
/**
|
|
248
|
-
* Sends a message to zoom in.
|
|
249
|
-
*
|
|
250
|
-
* This method triggers a "zoom-in" action by sending a message
|
|
251
|
-
* with the specified action type.
|
|
252
|
-
*/
|
|
253
|
-
zoomIn(): void;
|
|
254
|
-
/**
|
|
255
|
-
* Sends a message to zoom out the preview.
|
|
256
|
-
*
|
|
257
|
-
* This method triggers a "zoom-out" action by sending a message
|
|
258
|
-
* to the relevant service or component.
|
|
259
|
-
*/
|
|
260
|
-
zoomOut(): void;
|
|
261
|
-
/**
|
|
262
|
-
* Toggles the highlights based on the provided flags for extracts and entities.
|
|
263
|
-
*
|
|
264
|
-
* @param extracts - A boolean flag indicating whether to include extracts highlights.
|
|
265
|
-
* @param entities - A boolean flag indicating whether to include entities highlights.
|
|
266
|
-
*/
|
|
267
|
-
toggle(extracts: boolean, entities: boolean): void;
|
|
268
|
-
getAuditPreviewDetail(id: string, q: Partial<Query>): {
|
|
269
|
-
docid: string;
|
|
270
|
-
rank: number;
|
|
271
|
-
collection: string;
|
|
272
|
-
source: string;
|
|
273
|
-
resultid: string;
|
|
274
|
-
querylang: string | undefined;
|
|
275
|
-
querytext: string | undefined;
|
|
276
|
-
filename: string | undefined;
|
|
277
|
-
fileext: string | undefined;
|
|
278
|
-
score: number | undefined;
|
|
279
|
-
};
|
|
280
|
-
private fetchExtracts;
|
|
281
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewService, never>;
|
|
282
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PreviewService>;
|
|
283
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { Principal } from "@sinequa/atomic";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PrincipalService {
|
|
6
|
-
protected readonly http: HttpClient;
|
|
7
|
-
protected readonly API_URL: string;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the principal information from the server.
|
|
10
|
-
*
|
|
11
|
-
* @returns Observable<Principal> An observable that emits the principal information.
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This method sends a GET request to the API endpoint to fetch the principal data.
|
|
15
|
-
* It includes query parameters to specify the action and to indicate that no authentication is required.
|
|
16
|
-
* In case of an error, it logs the error to the console and returns an empty observable.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* principalService.getPrincipal().subscribe(principal => {
|
|
21
|
-
* console.log(principal);
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
getPrincipal(): Observable<Principal>;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrincipalService, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PrincipalService>;
|
|
28
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuditEvents, Query, Result } from '@sinequa/atomic';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class QueryService {
|
|
6
|
-
protected readonly http: HttpClient;
|
|
7
|
-
private readonly appStore;
|
|
8
|
-
private readonly queryParamsStore;
|
|
9
|
-
protected readonly API_URL: string;
|
|
10
|
-
/**
|
|
11
|
-
* Performs a search query.
|
|
12
|
-
*
|
|
13
|
-
* @param q - The partial query object.
|
|
14
|
-
* @param includeQueryParams - Indicates whether to include query parameters automatically in the request.
|
|
15
|
-
* @param audit - The audit events object.
|
|
16
|
-
* @returns An observable that emits the search results.
|
|
17
|
-
*/
|
|
18
|
-
search(q?: Partial<Query>, includeQueryParams?: boolean, audit?: AuditEvents): Observable<Result>;
|
|
19
|
-
/**
|
|
20
|
-
* Performs a bulk search operation.
|
|
21
|
-
*
|
|
22
|
-
* @param q An array of Query objects representing the search queries.
|
|
23
|
-
* @param audit An optional AuditEvents object for auditing purposes.
|
|
24
|
-
* @returns An Observable that emits an array of Result objects.
|
|
25
|
-
*/
|
|
26
|
-
bulkSearch(q: Query[], audit?: AuditEvents): Observable<Result[]>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QueryService, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QueryService>;
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Query, TextChunk, TextLocation } from "@sinequa/atomic";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TextChunkService {
|
|
6
|
-
protected readonly http: HttpClient;
|
|
7
|
-
protected readonly API_URL: string;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves text chunks based on the provided parameters.
|
|
10
|
-
*
|
|
11
|
-
* @param id - The ID of the record.
|
|
12
|
-
* @param textChunks - An array of TextLocation objects representing the location of the text chunks.
|
|
13
|
-
* @param highlights - An array of strings representing the highlights to be applied to the text chunks.
|
|
14
|
-
* @param query - The query used to retrieve the text chunks.
|
|
15
|
-
* @param leftSentencesCount - The number of sentences to include before the text chunks.
|
|
16
|
-
* @param rightSentencesCount - The number of sentences to include after the text chunks.
|
|
17
|
-
* @returns An Observable that emits an array of TextChunk objects.
|
|
18
|
-
*/
|
|
19
|
-
getTextChunks(id: string, textChunks: TextLocation[], highlights: string[], query: Query, leftSentencesCount: number, rightSentencesCount: number): Observable<TextChunk[]>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextChunkService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TextChunkService>;
|
|
22
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./lib/public-api";
|