@sinequa/atomic-angular 0.0.146 → 0.1.33
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/de.json +5 -0
- package/components/no-result/i18n/en.json +5 -0
- package/components/no-result/i18n/fr.json +5 -0
- package/components/sort-selector/i18n/de.json +3 -0
- package/components/sort-selector/i18n/en.json +3 -0
- package/components/sort-selector/i18n/fr.json +3 -0
- package/components/source/i18n/de.json +3 -0
- package/components/source/i18n/en.json +3 -0
- package/components/source/i18n/fr.json +3 -0
- package/features/alerts/i18n/de.json +33 -0
- package/features/alerts/i18n/en.json +33 -0
- package/features/alerts/i18n/fr.json +33 -0
- package/features/bookmarks/i18n/de.json +11 -0
- package/features/bookmarks/i18n/en.json +11 -0
- package/features/bookmarks/i18n/fr.json +11 -0
- package/features/collections/i18n/de.json +17 -0
- package/features/collections/i18n/en.json +17 -0
- package/features/collections/i18n/fr.json +16 -0
- package/features/dialogs/i18n/de.json +15 -0
- package/features/dialogs/i18n/en.json +15 -0
- package/features/dialogs/i18n/fr.json +15 -0
- package/features/did-you-mean/i18n/de.json +5 -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/de.json +22 -0
- package/features/drawer/i18n/en.json +22 -0
- package/features/drawer/i18n/fr.json +22 -0
- package/features/export/i18n/de.json +10 -0
- package/features/export/i18n/en.json +10 -0
- package/features/export/i18n/fr.json +10 -0
- package/features/feedback/i18n/de.json +26 -0
- package/features/feedback/i18n/en.json +26 -0
- package/features/feedback/i18n/fr.json +26 -0
- package/features/filters/i18n/de.json +14 -0
- package/features/filters/i18n/en.json +14 -0
- package/features/filters/i18n/fr.json +14 -0
- package/features/labels/i18n/de.json +8 -0
- package/features/labels/i18n/en.json +8 -0
- package/features/labels/i18n/fr.json +8 -0
- package/features/searches/i18n/de.json +15 -0
- package/features/searches/i18n/en.json +15 -0
- package/features/searches/i18n/fr.json +15 -0
- package/features/sign-in/i18n/de.json +12 -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 +9699 -3271
- package/fesm2022/sinequa-atomic-angular.mjs.map +1 -1
- package/index.d.ts +6729 -3
- package/package.json +71 -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,46 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { Injectable, inject } from "@angular/core";
|
|
3
|
-
import { globalConfig } from "@sinequa/atomic";
|
|
4
|
-
import { catchError, map } from "rxjs";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class TextChunkService {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.http = inject(HttpClient);
|
|
9
|
-
this.API_URL = `${globalConfig.backendUrl}/${globalConfig.apiPath}`;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves text chunks based on the provided parameters.
|
|
13
|
-
*
|
|
14
|
-
* @param id - The ID of the record.
|
|
15
|
-
* @param textChunks - An array of TextLocation objects representing the location of the text chunks.
|
|
16
|
-
* @param highlights - An array of strings representing the highlights to be applied to the text chunks.
|
|
17
|
-
* @param query - The query used to retrieve the text chunks.
|
|
18
|
-
* @param leftSentencesCount - The number of sentences to include before the text chunks.
|
|
19
|
-
* @param rightSentencesCount - The number of sentences to include after the text chunks.
|
|
20
|
-
* @returns An Observable that emits an array of TextChunk objects.
|
|
21
|
-
*/
|
|
22
|
-
getTextChunks(id, textChunks, highlights, query, leftSentencesCount, rightSentencesCount) {
|
|
23
|
-
const body = {
|
|
24
|
-
id,
|
|
25
|
-
textChunks,
|
|
26
|
-
highlights,
|
|
27
|
-
query,
|
|
28
|
-
leftSentencesCount,
|
|
29
|
-
rightSentencesCount
|
|
30
|
-
};
|
|
31
|
-
return this.http.post(this.API_URL + "/doc.textchunks", body)
|
|
32
|
-
.pipe(map((response) => response.chunks), catchError(error => {
|
|
33
|
-
console.error("TextChunkService.getTextChunks failure - error: ", error);
|
|
34
|
-
return [];
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: TextChunkService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
38
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: TextChunkService, providedIn: 'root' }); }
|
|
39
|
-
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: TextChunkService, decorators: [{
|
|
41
|
-
type: Injectable,
|
|
42
|
-
args: [{
|
|
43
|
-
providedIn: 'root'
|
|
44
|
-
}]
|
|
45
|
-
}] });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1jaHVuY2suc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL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Q291bnQ6IG51bWJlclxyXG4gICk6IE9ic2VydmFibGU8VGV4dENodW5rW10+IHtcclxuXHJcbiAgICBjb25zdCBib2R5ID0ge1xyXG4gICAgICBpZCxcclxuICAgICAgdGV4dENodW5rcyxcclxuICAgICAgaGlnaGxpZ2h0cyxcclxuICAgICAgcXVlcnksXHJcbiAgICAgIGxlZnRTZW50ZW5jZXNDb3VudCxcclxuICAgICAgcmlnaHRTZW50ZW5jZXNDb3VudFxyXG4gICAgfTtcclxuXHJcbiAgICByZXR1cm4gdGhpcy5odHRwLnBvc3Q8YW55Pih0aGlzLkFQSV9VUkwgKyBcIi9kb2MudGV4dGNodW5rc1wiLCBib2R5KVxyXG4gICAgLnBpcGUoXHJcbiAgICAgIG1hcCgocmVzcG9uc2U6IHtjaHVua3M6IFRleHRDaHVua1tdfSkgPT4gcmVzcG9uc2UuY2h1bmtzKSxcclxuICAgICAgY2F0Y2hFcnJvcihlcnJvciA9PiB7XHJcbiAgICAgICAgY29uc29sZS5lcnJvcihcIlRleHRDaHVua1NlcnZpY2UuZ2V0VGV4dENodW5rcyBmYWlsdXJlIC0gZXJyb3I6IFwiLCBlcnJvcik7XHJcbiAgICAgICAgcmV0dXJuIFtdO1xyXG4gICAgICB9KVxyXG4gICAgKTtcclxuICB9XHJcbn0iXX0=
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of atomic
|
|
3
|
-
*/
|
|
4
|
-
export * from "./lib/public-api";
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0b21pYy1hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBhdG9taWNcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvcHVibGljLWFwaVwiO1xyXG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZXF1YS1hdG9taWMtYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0b21pYy1hbmd1bGFyL3NyYy9zaW5lcXVhLWF0b21pYy1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
package/lib/assistant/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './signalR.web.service';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { LogLevel, HubConnection, MessageHeaders, HttpTransportType, ITransport } from '@microsoft/signalr';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface ConnectionOptions {
|
|
5
|
-
withCredentials?: boolean;
|
|
6
|
-
headers?: MessageHeaders;
|
|
7
|
-
transport?: HttpTransportType | ITransport;
|
|
8
|
-
accessTokenFactory?: () => string | Promise<string>;
|
|
9
|
-
}
|
|
10
|
-
/** A token that is used to inject the transports allowed to use by hub connection.
|
|
11
|
-
*
|
|
12
|
-
* Expects a {@link HttpTransportType} value.
|
|
13
|
-
*/
|
|
14
|
-
export declare const SIGNAL_R_TRANSPORTS: InjectionToken<HttpTransportType>;
|
|
15
|
-
/** A token that is used to inject the log level for the hub connection.
|
|
16
|
-
*
|
|
17
|
-
* Expects a {@link LogLevel} value.
|
|
18
|
-
*/
|
|
19
|
-
export declare const SIGNAL_R_LOG_LEVEL: InjectionToken<LogLevel>;
|
|
20
|
-
/**
|
|
21
|
-
* A service to connect the Sinequa server to the client via SignalR
|
|
22
|
-
*/
|
|
23
|
-
export declare class SignalRWebService {
|
|
24
|
-
protected readonly endpoints: string;
|
|
25
|
-
/**
|
|
26
|
-
* Builds a SignalR connection to the given endpoint
|
|
27
|
-
* @param endpointName Name of the endpoint to connect to
|
|
28
|
-
* @param options Options for the connection. It must overrides the default options
|
|
29
|
-
* @param logLevel The log level for the connection
|
|
30
|
-
* @param automaticReconnect Whether the connection should automatically attempt to reconnect
|
|
31
|
-
* @returns A SignalR connection
|
|
32
|
-
*/
|
|
33
|
-
buildConnection(endpointName: string, options: ConnectionOptions, logLevel?: LogLevel, automaticReconnect?: boolean): HubConnection;
|
|
34
|
-
/**
|
|
35
|
-
* Starts a SignalR connection.
|
|
36
|
-
* @param connection A SignalR connection
|
|
37
|
-
*/
|
|
38
|
-
startConnection(connection: HubConnection | undefined): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Stops a SignalR connection.
|
|
41
|
-
* @param connection A SignalR connection
|
|
42
|
-
*/
|
|
43
|
-
stopConnection(connection: HubConnection | undefined): Promise<void>;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SignalRWebService, never>;
|
|
45
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SignalRWebService>;
|
|
46
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface DropdownItem {
|
|
3
|
-
display?: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class DropdownInputComponent {
|
|
7
|
-
label: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
-
placeholder: import("@angular/core").InputSignal<string>;
|
|
9
|
-
noResultLabel: import("@angular/core").InputSignal<string>;
|
|
10
|
-
suggestions: import("@angular/core").InputSignal<DropdownItem[]>;
|
|
11
|
-
selected: import("@angular/core").InputSignal<DropdownItem[]>;
|
|
12
|
-
onFocus: import("@angular/core").OutputEmitterRef<string | null>;
|
|
13
|
-
onKeyUp: import("@angular/core").OutputEmitterRef<string | null>;
|
|
14
|
-
removeItem: import("@angular/core").OutputEmitterRef<DropdownItem>;
|
|
15
|
-
addItem: import("@angular/core").OutputEmitterRef<DropdownItem>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownInputComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownInputComponent, "sq-dropdown-input, DropdownInput", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "noResultLabel": { "alias": "noResultLabel"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": true; "isSignal": true; }; }, { "onFocus": "onFocus"; "onKeyUp": "onKeyUp"; "removeItem": "removeItem"; "addItem": "addItem"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DropdownItem } from './dropdown-input';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DropdownListComponent {
|
|
4
|
-
items: import("@angular/core").InputSignal<DropdownItem[]>;
|
|
5
|
-
onClick: import("@angular/core").OutputEmitterRef<DropdownItem>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownListComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownListComponent, "sq-dropdown-list, DropdownList", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DropdownComponent {
|
|
5
|
-
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
-
position: import("@angular/core").InputSignal<Placement>;
|
|
7
|
-
autoClose: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
|
9
|
-
dropdown: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
10
|
-
trigger: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
11
|
-
width: import("@angular/core").WritableSignal<number>;
|
|
12
|
-
mouseleave(event: Event): void;
|
|
13
|
-
/**
|
|
14
|
-
* Initializes the dropdown component and sets up automatic updates for its position.
|
|
15
|
-
*
|
|
16
|
-
* The constructor uses `afterNextRender` to ensure that the DOM elements are available
|
|
17
|
-
* before calling `autoUpdate`. The `autoUpdate` function monitors the trigger and dropdown
|
|
18
|
-
* elements, and if the dropdown is open, it recalculates its position.
|
|
19
|
-
*
|
|
20
|
-
* @constructor
|
|
21
|
-
*/
|
|
22
|
-
constructor();
|
|
23
|
-
/**
|
|
24
|
-
* Toggles the dropdown's open state.
|
|
25
|
-
* If the dropdown is disabled, the method returns immediately without making any changes.
|
|
26
|
-
* Otherwise, it updates the `isOpen` state to its opposite value and recalculates the dropdown's position.
|
|
27
|
-
*/
|
|
28
|
-
toggle(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Closes the dropdown by setting the `isOpen` state to `false`.
|
|
31
|
-
*/
|
|
32
|
-
close(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Calculates and sets the position of the dropdown element relative to the trigger element.
|
|
35
|
-
* Utilizes the `computePosition` function with specified middleware for offset, flip, and shift.
|
|
36
|
-
* Updates the dropdown's `left` and `top` styles based on the computed position.
|
|
37
|
-
* Also sets the width of the dropdown to match the trigger element's width.
|
|
38
|
-
*
|
|
39
|
-
* @returns {void}
|
|
40
|
-
*/
|
|
41
|
-
calculatePosition(): void;
|
|
42
|
-
clickout(event: Event): void;
|
|
43
|
-
/**
|
|
44
|
-
* Handles the click event on the dropdown content.
|
|
45
|
-
* If the `autoClose` method returns true, it triggers the `close` method to close the dropdown.
|
|
46
|
-
*/
|
|
47
|
-
contentClicked(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "sq-dropdown, Dropdown", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[dropdown-content]"], true, never>;
|
|
50
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MenuComponent } from "./menu";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MenuItemComponent {
|
|
4
|
-
readonly menu: MenuComponent;
|
|
5
|
-
constructor(menu: MenuComponent);
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "sq-menu-item, menu-item, MenuItem", never, {}, {}, never, ["*"], true, never>;
|
|
8
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
|
3
|
-
import { cn } from '../../utils/tailwind-utils';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MenuComponent implements AfterViewInit {
|
|
6
|
-
cn: typeof cn;
|
|
7
|
-
default: string;
|
|
8
|
-
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
-
position: import("@angular/core").InputSignal<Placement>;
|
|
10
|
-
className: import("@angular/core").InputSignal<string | undefined>;
|
|
11
|
-
disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
|
12
|
-
autoClose: import("@angular/core").InputSignal<boolean>;
|
|
13
|
-
dropdown: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
14
|
-
trigger: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
15
|
-
width: import("@angular/core").WritableSignal<number>;
|
|
16
|
-
ngAfterViewInit(): void;
|
|
17
|
-
toggle(e: Event): void;
|
|
18
|
-
close(): void;
|
|
19
|
-
calculatePosition(): void;
|
|
20
|
-
contentClicked(e: Event): void;
|
|
21
|
-
clickout(event: Event): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "sq-menu, Menu", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[menu-content]"], true, never>;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './metadata.component';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Article, KeyOf } from "@sinequa/atomic";
|
|
2
|
-
import { cn } from "../../utils/tailwind-utils";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MetadataComponent {
|
|
5
|
-
cn: typeof cn;
|
|
6
|
-
default: string;
|
|
7
|
-
override: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
className: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
-
article: import("@angular/core").InputSignal<Partial<Article> | (string & Record<never, never>)>;
|
|
10
|
-
metadata: import("@angular/core").InputSignal<(string & Record<never, never>) | KeyOf<Article>>;
|
|
11
|
-
onMetadataClick: import("@angular/core").OutputEmitterRef<{
|
|
12
|
-
field: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}>;
|
|
15
|
-
items: import("@angular/core").Signal<{
|
|
16
|
-
display: string;
|
|
17
|
-
}[]>;
|
|
18
|
-
onClick(event: MouseEvent, item: {
|
|
19
|
-
field: string;
|
|
20
|
-
value: string;
|
|
21
|
-
}): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataComponent, "sq-metadata, Metadata", ["metadata"], { "override": { "alias": "override"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "article": { "alias": "article"; "required": true; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": true; "isSignal": true; }; }, { "onMetadataClick": "onMetadataClick"; }, never, ["*", "[before]", "[after]"], true, never>;
|
|
24
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Theme } from '../../resources';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ThemeSelectorComponent {
|
|
4
|
-
readonly scope: import("@angular/core").InputSignal<string>;
|
|
5
|
-
readonly showPrivate: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
readonly themes: import("@angular/core").Signal<{
|
|
7
|
-
name: string;
|
|
8
|
-
id: string;
|
|
9
|
-
private: boolean;
|
|
10
|
-
colors: {
|
|
11
|
-
"button-primary-background": string;
|
|
12
|
-
background: string;
|
|
13
|
-
foreground: string;
|
|
14
|
-
card: string;
|
|
15
|
-
"card-foreground": string;
|
|
16
|
-
active: string;
|
|
17
|
-
"active-foreground": string;
|
|
18
|
-
"active-background": string;
|
|
19
|
-
primary: string;
|
|
20
|
-
"primary-foreground": string;
|
|
21
|
-
secondary: string;
|
|
22
|
-
"secondary-foreground": string;
|
|
23
|
-
muted: string;
|
|
24
|
-
"muted-foreground": string;
|
|
25
|
-
accent: string;
|
|
26
|
-
"accent-foreground": string;
|
|
27
|
-
destructive: string;
|
|
28
|
-
"destructive-foreground": string;
|
|
29
|
-
border: string;
|
|
30
|
-
input: string;
|
|
31
|
-
ring: string;
|
|
32
|
-
};
|
|
33
|
-
colorsDark: {
|
|
34
|
-
background: string;
|
|
35
|
-
foreground: string;
|
|
36
|
-
card: string;
|
|
37
|
-
"card-foreground": string;
|
|
38
|
-
active: string;
|
|
39
|
-
"active-foreground": string;
|
|
40
|
-
"active-background": string;
|
|
41
|
-
primary: string;
|
|
42
|
-
"primary-foreground": string;
|
|
43
|
-
secondary: string;
|
|
44
|
-
"secondary-foreground": string;
|
|
45
|
-
muted: string;
|
|
46
|
-
"muted-foreground": string;
|
|
47
|
-
accent: string;
|
|
48
|
-
"accent-foreground": string;
|
|
49
|
-
destructive: string;
|
|
50
|
-
"destructive-foreground": string;
|
|
51
|
-
border: string;
|
|
52
|
-
input: string;
|
|
53
|
-
ring: string;
|
|
54
|
-
};
|
|
55
|
-
}[]>;
|
|
56
|
-
readonly selectedTheme: import("@angular/core").ModelSignal<string | undefined>;
|
|
57
|
-
readonly themeStore: {
|
|
58
|
-
scopes: import("@angular/core").Signal<import("../../stores").ThemeScope>;
|
|
59
|
-
loadDefaultTheme: (scope: string, darkMode?: boolean) => void;
|
|
60
|
-
setCurrentTheme: (scope: string, themeName: string, darkMode?: boolean) => void;
|
|
61
|
-
setDarkMode: (scope: string, darkMode: boolean) => void;
|
|
62
|
-
} & import("@ngrx/signals").StateSource<{
|
|
63
|
-
scopes: import("../../stores").ThemeScope;
|
|
64
|
-
}>;
|
|
65
|
-
constructor();
|
|
66
|
-
selectTheme(theme: string): void;
|
|
67
|
-
selectTheme(theme: Theme): void;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeSelectorComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeSelectorComponent, "theme-selector", never, { "scope": { "alias": "scope"; "required": true; "isSignal": true; }; "showPrivate": { "alias": "showPrivate"; "required": false; "isSignal": true; }; "selectedTheme": { "alias": "selectedTheme"; "required": false; "isSignal": true; }; }, { "selectedTheme": "selectedThemeChange"; }, never, ["*"], true, never>;
|
|
70
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ThemeToggleComponent {
|
|
3
|
-
readonly scope: import("@angular/core").InputSignal<string>;
|
|
4
|
-
readonly darkMode: import("@angular/core").ModelSignal<boolean | undefined>;
|
|
5
|
-
private readonly themeStore;
|
|
6
|
-
constructor();
|
|
7
|
-
toggleDarkMode(status: boolean): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeToggleComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeToggleComponent, "theme-toggle", never, { "scope": { "alias": "scope"; "required": true; "isSignal": true; }; "darkMode": { "alias": "darkMode"; "required": false; "isSignal": true; }; }, { "darkMode": "darkModeChange"; }, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a directive that enables infinite scrolling behavior.
|
|
5
|
-
* This directive listens for the intersection of the element with the viewport
|
|
6
|
-
* and emits a `loadMore` event when the element becomes visible.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This directive requires the `IntersectionObserver` API to be available in the browser.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <div infinityScroll (onScroll)="loadMore()">
|
|
14
|
-
* <!-- Content to be scrolled -->
|
|
15
|
-
* </div>
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare class InfinityScrollDirective implements OnDestroy {
|
|
20
|
-
private el;
|
|
21
|
-
options: import("@angular/core").InputSignal<{
|
|
22
|
-
root: null;
|
|
23
|
-
}>;
|
|
24
|
-
onScroll: import("@angular/core").OutputEmitterRef<void>;
|
|
25
|
-
private observer;
|
|
26
|
-
constructor(el: ElementRef);
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InfinityScrollDirective, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InfinityScrollDirective, "[infinity-scroll]", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "onScroll": "onScroll"; }, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Article } from '@sinequa/atomic';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type SelectionStrategy = 'replace' | 'stack';
|
|
4
|
-
/**
|
|
5
|
-
* Directive that selects an article on click.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SelectArticleOnClickDirective {
|
|
8
|
-
private readonly drawerStack;
|
|
9
|
-
readonly article: import("@angular/core").InputSignal<Partial<Article> | undefined>;
|
|
10
|
-
readonly strategy: import("@angular/core").InputSignal<SelectionStrategy>;
|
|
11
|
-
onClick(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectArticleOnClickDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectArticleOnClickDirective, "[appSelectArticleOnClick],[selectArticleOnClick]", never, { "article": { "alias": "article"; "required": true; "isSignal": true; }; "strategy": { "alias": "strategy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Article } from '@sinequa/atomic';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive that handles the behavior of showing a bookmark for an article.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* This directive listens to mouse enter and mouse leave events to determine when to show the bookmark.
|
|
8
|
-
* It also checks the user's settings to determine if the article is bookmarked.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```html
|
|
12
|
-
* <div showBookmark [article]="currentArticle" (showBookmark)="onShowBookmark($event)"></div>
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare class ShowBookmarkDirective {
|
|
16
|
-
mouseEnter(): void;
|
|
17
|
-
mouseLeave(): void;
|
|
18
|
-
protected bookmarkHovered: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
-
userSettingsStore: {
|
|
20
|
-
bookmarks: import("@angular/core").Signal<import("@sinequa/atomic-angular").Bookmark[]>;
|
|
21
|
-
recentSearches: import("@angular/core").Signal<import("@sinequa/atomic-angular").RecentSearch[]>;
|
|
22
|
-
savedSearches: import("@angular/core").Signal<import("@sinequa/atomic-angular").SavedSearch[]>;
|
|
23
|
-
baskets: import("@angular/core").Signal<import("@sinequa/atomic-angular").Basket[]>;
|
|
24
|
-
assistants: import("@angular/core").Signal<Record<string, unknown>>;
|
|
25
|
-
language?: import("@angular/core").Signal<string | undefined> | undefined;
|
|
26
|
-
updateBookmarks: (bookmarks: import("@sinequa/atomic-angular").UserSettings["bookmarks"], auditEvents?: import("@sinequa/atomic").AuditEvents) => Promise<void>;
|
|
27
|
-
bookmark: (article: Article, queryName?: string) => Promise<void>;
|
|
28
|
-
unbookmark: (id: string) => Promise<void>;
|
|
29
|
-
isBookmarked: (article: Partial<Article>) => boolean;
|
|
30
|
-
toggleBookmark: (article: Article) => Promise<void>;
|
|
31
|
-
deleteRecentSearch: (index: number) => Promise<void>;
|
|
32
|
-
updateRecentSearches: (recentSearches: import("@sinequa/atomic-angular").UserSettings["recentSearches"], auditEvents?: import("@sinequa/atomic").AuditEvents) => Promise<void>;
|
|
33
|
-
addCurrentSearch: (queryParams: import("@sinequa/atomic").QueryParams) => Promise<void>;
|
|
34
|
-
deleteSavedSearch: (index: number) => Promise<void>;
|
|
35
|
-
updateSavedSearches: (savedSearches: import("@sinequa/atomic-angular").UserSettings["savedSearches"]) => Promise<void>;
|
|
36
|
-
deleteBasket: (index: number) => Promise<void>;
|
|
37
|
-
createBasket: (basket: import("@sinequa/atomic-angular").Basket) => Promise<void>;
|
|
38
|
-
updateBaskets: (baskets: import("@sinequa/atomic-angular").UserSettings["baskets"]) => Promise<void>;
|
|
39
|
-
updateBasket: (basket: import("@sinequa/atomic-angular").Basket, index: number) => Promise<void>;
|
|
40
|
-
addToBasket: (name: string, ids: string | string[]) => Promise<void>;
|
|
41
|
-
removeFromBasket: (name: string, ids: string | string[]) => Promise<void>;
|
|
42
|
-
updateAssistantSettings: (assistantSettings: import("@sinequa/atomic-angular").UserSettings["assistants"]) => Promise<void>;
|
|
43
|
-
updateLanguage: (language: import("@sinequa/atomic-angular").UserSettings["language"], auditEvents?: import("@sinequa/atomic").AuditEvents) => Promise<void>;
|
|
44
|
-
initialize: () => Promise<void>;
|
|
45
|
-
reset: () => Promise<void>;
|
|
46
|
-
} & import("@ngrx/signals").StateSource<{
|
|
47
|
-
bookmarks: import("@sinequa/atomic-angular").Bookmark[];
|
|
48
|
-
recentSearches: import("@sinequa/atomic-angular").RecentSearch[];
|
|
49
|
-
savedSearches: import("@sinequa/atomic-angular").SavedSearch[];
|
|
50
|
-
baskets: import("@sinequa/atomic-angular").Basket[];
|
|
51
|
-
assistants: Record<string, unknown>;
|
|
52
|
-
language?: string | undefined;
|
|
53
|
-
}>;
|
|
54
|
-
protected isBookmarked: import("@angular/core").Signal<boolean>;
|
|
55
|
-
readonly article: import("@angular/core").InputSignal<Article | Partial<Article> | undefined>;
|
|
56
|
-
readonly showBookmark: import("@angular/core").OutputEmitterRef<boolean>;
|
|
57
|
-
constructor();
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowBookmarkDirective, never>;
|
|
59
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ShowBookmarkDirective, "[appShowBookmark],[showBookmark]", never, { "article": { "alias": "article"; "required": true; "isSignal": true; }; }, { "showBookmark": "showBookmark"; }, never, never, true, never>;
|
|
60
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* This directive is used to apply a theme to a native element based on the theme scope.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ThemeProviderDirective {
|
|
7
|
-
readonly themeProvider: import("@angular/core").InputSignal<string>;
|
|
8
|
-
readonly host: ElementRef<any>;
|
|
9
|
-
readonly themeStore: {
|
|
10
|
-
scopes: import("@angular/core").Signal<import("../stores").ThemeScope>;
|
|
11
|
-
loadDefaultTheme: (scope: string, darkMode?: boolean) => void;
|
|
12
|
-
setCurrentTheme: (scope: string, themeName: string, darkMode?: boolean) => void;
|
|
13
|
-
setDarkMode: (scope: string, darkMode: boolean) => void;
|
|
14
|
-
} & import("@ngrx/signals").StateSource<{
|
|
15
|
-
scopes: import("../stores").ThemeScope;
|
|
16
|
-
}>;
|
|
17
|
-
constructor();
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeProviderDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThemeProviderDirective, "[themeProvider]", never, { "themeProvider": { "alias": "themeProvider"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CanActivateFn } from '@angular/router';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a guard function that checks if the user is authenticated.
|
|
4
|
-
* If the user is not authenticated, it navigates to the login page.
|
|
5
|
-
* @returns The guard function.
|
|
6
|
-
*/
|
|
7
|
-
export declare function AuthGuard(): CanActivateFn;
|
package/lib/guards/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CanActivateFn } from '@angular/router';
|
|
2
|
-
/**
|
|
3
|
-
* InitializationGuard is a route guard that ensures the application is ready before allowing navigation to a requested page.
|
|
4
|
-
*
|
|
5
|
-
* This guard checks if the application is fully initialized by verifying the readiness of the ApplicationStore.
|
|
6
|
-
* If the application is not ready, it redirects the user to a loading page and prevents navigation to the requested page.
|
|
7
|
-
*
|
|
8
|
-
* @returns {CanActivateFn} A function that returns true if the application is ready, false otherwise.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* // Usage in a routing module
|
|
12
|
-
* const routes: Routes = [
|
|
13
|
-
* {
|
|
14
|
-
* path: 'some-path',
|
|
15
|
-
* component: SomeComponent,
|
|
16
|
-
* canActivate: [InitializationGuard]
|
|
17
|
-
* }
|
|
18
|
-
* ];
|
|
19
|
-
*/
|
|
20
|
-
export declare function InitializationGuard(): CanActivateFn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpInterceptorFn } from "@angular/common/http";
|
|
2
|
-
/**
|
|
3
|
-
* Intercepts HTTP requests to add audit information if the request URL includes the API path.
|
|
4
|
-
*
|
|
5
|
-
* This interceptor checks if the request URL contains the specified API path from the global configuration.
|
|
6
|
-
* If the request body is JSON serializable and not an instance of `HttpParams`, it adds additional audit information
|
|
7
|
-
* to the request body using the `addAuditAdditionalInfo` function.
|
|
8
|
-
*
|
|
9
|
-
* @param request - The HTTP request to be intercepted.
|
|
10
|
-
* @param next - The next handler in the HTTP request chain.
|
|
11
|
-
* @returns The next handler in the HTTP request chain, potentially with modified request body.
|
|
12
|
-
*/
|
|
13
|
-
export declare const auditInterceptorFn: HttpInterceptorFn;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
-
/**
|
|
3
|
-
* Intercepts HTTP requests to add authentication headers and handle CSRF tokens.
|
|
4
|
-
*
|
|
5
|
-
* This interceptor checks if the user is logged in and adds necessary headers
|
|
6
|
-
* to the request, including a CSRF token. If user override is active, it sets
|
|
7
|
-
* the override user and domain headers instead. It also updates the CSRF token
|
|
8
|
-
* from the response headers if present.
|
|
9
|
-
*
|
|
10
|
-
* @param request - The outgoing HTTP request.
|
|
11
|
-
* @param next - The next handler in the HTTP request pipeline.
|
|
12
|
-
* @returns An observable of the HTTP event stream.
|
|
13
|
-
*/
|
|
14
|
-
export declare const authInterceptorFn: HttpInterceptorFn;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerFn, HttpRequest } from "@angular/common/http";
|
|
2
|
-
/**
|
|
3
|
-
* Interceptor function that modifies the request body by appending a "locale" parameter with the value "fr".
|
|
4
|
-
* If the request body is of type FormData, the "locale" parameter is appended directly.
|
|
5
|
-
* If the request body is an object, a new object is created with the "locale" parameter added.
|
|
6
|
-
*
|
|
7
|
-
* @param request - The HTTP request object.
|
|
8
|
-
* @param next - The HTTP handler function.
|
|
9
|
-
* @returns The modified request object.
|
|
10
|
-
*/
|
|
11
|
-
export declare const bodyInterceptorFn: (request: HttpRequest<unknown>, next: HttpHandlerFn) => import("rxjs").Observable<import("@angular/common/http").HttpEvent<unknown>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
-
/**
|
|
3
|
-
* Interceptor function that handles HTTP errors by logging out the user and redirecting to the login page.
|
|
4
|
-
*
|
|
5
|
-
* @param request - The HTTP request object.
|
|
6
|
-
* @param next - The HTTP handler function.
|
|
7
|
-
* @returns The modified request object.
|
|
8
|
-
*/
|
|
9
|
-
export declare const errorInterceptorFn: HttpInterceptorFn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
-
/**
|
|
3
|
-
* Intercepts HTTP requests and handles errors by displaying toast notifications.
|
|
4
|
-
*
|
|
5
|
-
* This interceptor checks if the request URL includes 'api/v1/audit.notify'. If it does,
|
|
6
|
-
* the request is passed through without any modifications. For other requests, it catches
|
|
7
|
-
* errors and displays a toast notification for specific HTTP status codes (400, 403, 500, 503).
|
|
8
|
-
*
|
|
9
|
-
* @param request - The outgoing HTTP request.
|
|
10
|
-
* @param next - The next handler in the HTTP request pipeline.
|
|
11
|
-
* @returns An observable that either passes the request through or handles errors with toast notifications.
|
|
12
|
-
*/
|
|
13
|
-
export declare const toastInterceptorFn: HttpInterceptorFn;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Aggregation, AggregationItem, TreeAggregation, TreeAggregationNode } from "@sinequa/atomic";
|
|
2
|
-
export type AggregationListItem = (AggregationItem & TreeAggregationNode) & {
|
|
3
|
-
icon?: string;
|
|
4
|
-
iconPath?: string;
|
|
5
|
-
};
|
|
6
|
-
export type AggregationListEx = Aggregation & {
|
|
7
|
-
items: AggregationListItem[];
|
|
8
|
-
};
|
|
9
|
-
export type AggregationTreeEx = TreeAggregation & {
|
|
10
|
-
items: AggregationListItem[];
|
|
11
|
-
};
|
|
12
|
-
export type AggregationEx = AggregationListEx | AggregationTreeEx;
|