@sinequa/atomic-angular 1.15.0 → 1.16.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.
- package/document-workspaces/i18n/de.json +3 -0
- package/document-workspaces/i18n/en.json +3 -0
- package/document-workspaces/i18n/fr.json +3 -0
- package/document-workspaces/i18n/ja.json +3 -0
- package/document-workspaces/index.d.ts +26 -4
- package/fesm2022/sinequa-atomic-angular-document-workspaces.mjs +324 -53
- package/fesm2022/sinequa-atomic-angular-document-workspaces.mjs.map +1 -1
- package/fesm2022/sinequa-atomic-angular.mjs +16 -19
- package/fesm2022/sinequa-atomic-angular.mjs.map +1 -1
- package/index.d.ts +160 -160
- package/package.json +1 -1
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"deleteWorkspacesTitle": "{count, plural, one {{count} Arbeitsbereich löschen?} other {{count} Arbeitsbereiche löschen?}}",
|
|
34
34
|
"deleteTitle": "Arbeitsbereich löschen?",
|
|
35
35
|
"loadError": "Arbeitsbereiche konnten nicht geladen werden.",
|
|
36
|
+
"loadMore": "Mehr laden",
|
|
37
|
+
"loadMoreError": "Weitere Arbeitsbereiche konnten nicht geladen werden: {error}",
|
|
38
|
+
"partial": "{shown} von {total} Arbeitsbereichen angezeigt",
|
|
36
39
|
"loading": "Arbeitsbereiche werden geladen…",
|
|
37
40
|
"refreshError": "Arbeitsbereiche konnten nicht aktualisiert werden: {error}",
|
|
38
41
|
"roleOwner": "Eigentümer",
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"deleteWorkspacesTitle": "{count, plural, one {Delete {count} workspace?} other {Delete {count} workspaces?}}",
|
|
34
34
|
"deleteTitle": "Delete workspace?",
|
|
35
35
|
"loadError": "Couldn’t load workspaces.",
|
|
36
|
+
"loadMore": "Load more",
|
|
37
|
+
"loadMoreError": "Couldn’t load more workspaces: {error}",
|
|
38
|
+
"partial": "{shown} of {total} workspaces shown",
|
|
36
39
|
"loading": "Loading workspaces…",
|
|
37
40
|
"refreshError": "Couldn’t refresh workspaces: {error}",
|
|
38
41
|
"roleOwner": "Owner",
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"deleteWorkspacesTitle": "{count, plural, one {Supprimer {count} espace de travail ?} many {Supprimer {count} espaces de travail ?} other {Supprimer {count} espaces de travail ?}}",
|
|
34
34
|
"deleteTitle": "Supprimer l’espace de travail ?",
|
|
35
35
|
"loadError": "Impossible de charger les espaces de travail.",
|
|
36
|
+
"loadMore": "Charger plus",
|
|
37
|
+
"loadMoreError": "Impossible de charger d’autres espaces de travail : {error}",
|
|
38
|
+
"partial": "{shown} espaces de travail affichés sur {total}",
|
|
36
39
|
"loading": "Chargement des espaces de travail…",
|
|
37
40
|
"refreshError": "Impossible d’actualiser les espaces de travail : {error}",
|
|
38
41
|
"roleOwner": "Propriétaire",
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"deleteWorkspacesTitle": "{count, plural, other {{count} 件のワークスペースを削除しますか?}}",
|
|
34
34
|
"deleteTitle": "ワークスペースを削除しますか?",
|
|
35
35
|
"loadError": "ワークスペースを読み込めませんでした。",
|
|
36
|
+
"loadMore": "さらに読み込む",
|
|
37
|
+
"loadMoreError": "ワークスペースをさらに読み込めませんでした: {error}",
|
|
38
|
+
"partial": "{total} 件中 {shown} 件のワークスペースを表示",
|
|
36
39
|
"loading": "ワークスペースを読み込んでいます…",
|
|
37
40
|
"refreshError": "ワークスペースを更新できませんでした: {error}",
|
|
38
41
|
"roleOwner": "所有者",
|
|
@@ -198,6 +198,7 @@ declare const WorkspacesStore: _angular_core.Type<{
|
|
|
198
198
|
documentPagination: _angular_core.Signal<Record<string, Pagination>>;
|
|
199
199
|
selectedIds: _angular_core.Signal<string[]>;
|
|
200
200
|
hasMore: _angular_core.Signal<boolean>;
|
|
201
|
+
truncated: _angular_core.Signal<boolean>;
|
|
201
202
|
selectedCount: _angular_core.Signal<number>;
|
|
202
203
|
selectedIdSet: _angular_core.Signal<Set<string>>;
|
|
203
204
|
workspace: (id: string) => Workspace | undefined;
|
|
@@ -210,7 +211,8 @@ declare const WorkspacesStore: _angular_core.Type<{
|
|
|
210
211
|
create: ({ name, description, tags, owners, readers }: CreateWorkspaceInput) => Promise<Workspace>;
|
|
211
212
|
update: (id: string, patch: UpdateContainerInput) => Promise<Workspace | null>;
|
|
212
213
|
remove: (ids: string[]) => Promise<RemoveWorkspacesResult>;
|
|
213
|
-
|
|
214
|
+
forget: (id: string) => void;
|
|
215
|
+
loadDocuments: (workspaceId: string, signal?: AbortSignal) => Promise<WorkspaceDocument[]>;
|
|
214
216
|
loadMoreDocuments: (workspaceId: string) => Promise<WorkspaceDocument[]>;
|
|
215
217
|
addDocuments: (workspaceId: string, documents: WorkspaceDocument[]) => void;
|
|
216
218
|
discardDocuments: (workspaceId: string, documentIds: string[]) => void;
|
|
@@ -867,7 +869,9 @@ type ViewMode$1 = "grid" | "list";
|
|
|
867
869
|
* Each time it is shown it refreshes: workspaces created by others since the last
|
|
868
870
|
* time appear, and the document counts match the server. The list already on
|
|
869
871
|
* screen stays until the answer lands, and a failure leaves it untouched behind
|
|
870
|
-
* an inline error.
|
|
872
|
+
* an inline error. While it stays shown, it keeps polling in the background
|
|
873
|
+
* (`injectLiveRefresh`) so a workspace created by someone else — one the current
|
|
874
|
+
* user only reads, say — appears on its own, with no action needed.
|
|
871
875
|
*/
|
|
872
876
|
declare class WorkspaceList {
|
|
873
877
|
/** A workspace was chosen for opening. */
|
|
@@ -883,6 +887,7 @@ declare class WorkspaceList {
|
|
|
883
887
|
documentPagination: _angular_core.Signal<Record<string, _sinequa_atomic_angular_document_workspaces.Pagination>>;
|
|
884
888
|
selectedIds: _angular_core.Signal<string[]>;
|
|
885
889
|
hasMore: _angular_core.Signal<boolean>;
|
|
890
|
+
truncated: _angular_core.Signal<boolean>;
|
|
886
891
|
selectedCount: _angular_core.Signal<number>;
|
|
887
892
|
selectedIdSet: _angular_core.Signal<Set<string>>;
|
|
888
893
|
workspace: (id: string) => Workspace | undefined;
|
|
@@ -895,7 +900,8 @@ declare class WorkspaceList {
|
|
|
895
900
|
create: ({ name, description, tags, owners, readers }: _sinequa_atomic_angular_document_workspaces.CreateWorkspaceInput) => Promise<Workspace>;
|
|
896
901
|
update: (id: string, patch: _sinequa_atomic.UpdateContainerInput) => Promise<Workspace | null>;
|
|
897
902
|
remove: (ids: string[]) => Promise<_sinequa_atomic_angular_document_workspaces.RemoveWorkspacesResult>;
|
|
898
|
-
|
|
903
|
+
forget: (id: string) => void;
|
|
904
|
+
loadDocuments: (workspaceId: string, signal?: AbortSignal) => Promise<_sinequa_atomic_angular_document_workspaces.WorkspaceDocument[]>;
|
|
899
905
|
loadMoreDocuments: (workspaceId: string) => Promise<_sinequa_atomic_angular_document_workspaces.WorkspaceDocument[]>;
|
|
900
906
|
addDocuments: (workspaceId: string, documents: _sinequa_atomic_angular_document_workspaces.WorkspaceDocument[]) => void;
|
|
901
907
|
discardDocuments: (workspaceId: string, documentIds: string[]) => void;
|
|
@@ -924,6 +930,8 @@ declare class WorkspaceList {
|
|
|
924
930
|
protected readonly status: _angular_core.WritableSignal<"error" | "loading" | "ready">;
|
|
925
931
|
protected readonly loadError: _angular_core.WritableSignal<Message | null>;
|
|
926
932
|
protected readonly refreshError: _angular_core.WritableSignal<string | null>;
|
|
933
|
+
protected readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
934
|
+
protected readonly loadMoreError: _angular_core.WritableSignal<string | null>;
|
|
927
935
|
protected readonly filter: {
|
|
928
936
|
tab: _angular_core.WritableSignal<WorkspaceTab>;
|
|
929
937
|
query: _angular_core.WritableSignal<string>;
|
|
@@ -932,10 +940,12 @@ declare class WorkspaceList {
|
|
|
932
940
|
clearQuery: () => void;
|
|
933
941
|
};
|
|
934
942
|
protected readonly selection: _sinequa_atomic_angular_document_workspaces.Selection<Workspace>;
|
|
943
|
+
private readonly liveRefresh;
|
|
935
944
|
constructor();
|
|
936
945
|
/** Shows what is cached at once and refreshes behind it, or loads for the first time. */
|
|
937
946
|
protected load(): Promise<void>;
|
|
938
947
|
private refresh;
|
|
948
|
+
protected loadMore(): Promise<void>;
|
|
939
949
|
protected onSearch(event: Event): void;
|
|
940
950
|
protected deleteSelected(): void;
|
|
941
951
|
/**
|
|
@@ -1118,6 +1128,9 @@ type ViewMode = "grid" | "list";
|
|
|
1118
1128
|
* shown: it says what the user asked for (`back`, `deleted`, `askFollowUp`) and whoever
|
|
1119
1129
|
* hosts it decides. The document open in the preview is the `previewedDocumentId` model.
|
|
1120
1130
|
*
|
|
1131
|
+
* While a workspace stays open, it keeps polling its documents in the background
|
|
1132
|
+
* (`injectLiveRefresh`), so a document another user adds to it shows up on its own.
|
|
1133
|
+
*
|
|
1121
1134
|
* Only someone who can write sees the edit, share, delete, upload and select controls.
|
|
1122
1135
|
*/
|
|
1123
1136
|
declare class WorkspaceDetail {
|
|
@@ -1148,6 +1161,8 @@ declare class WorkspaceDetail {
|
|
|
1148
1161
|
protected readonly refreshing: _angular_core.WritableSignal<boolean>;
|
|
1149
1162
|
protected readonly loadingMore: _angular_core.WritableSignal<boolean>;
|
|
1150
1163
|
protected readonly loadMoreError: _angular_core.WritableSignal<string | null>;
|
|
1164
|
+
/** The background refresh found the workspace gone from the server (deleted elsewhere). */
|
|
1165
|
+
protected readonly deletedElsewhere: _angular_core.WritableSignal<boolean>;
|
|
1151
1166
|
protected readonly workspace: _angular_core.Signal<Workspace | undefined>;
|
|
1152
1167
|
protected readonly documents: _angular_core.Signal<WorkspaceDocument[]>;
|
|
1153
1168
|
protected readonly previewed: _angular_core.Signal<WorkspaceDocument | null>;
|
|
@@ -1162,8 +1177,15 @@ declare class WorkspaceDetail {
|
|
|
1162
1177
|
protected readonly filtered: _angular_core.Signal<WorkspaceDocument[]>;
|
|
1163
1178
|
private readonly writable;
|
|
1164
1179
|
protected readonly selection: _sinequa_atomic_angular_document_workspaces.Selection<WorkspaceDocument>;
|
|
1180
|
+
private readonly liveRefresh;
|
|
1165
1181
|
constructor();
|
|
1166
1182
|
private open;
|
|
1183
|
+
/**
|
|
1184
|
+
* Leaving from here: once the background refresh found the workspace gone,
|
|
1185
|
+
* the cache still holds it (so its name kept showing) — drop it now, so a
|
|
1186
|
+
* stale card does not show it back on the list.
|
|
1187
|
+
*/
|
|
1188
|
+
protected leave(): void;
|
|
1167
1189
|
/** Reads the workspace (when it is not cached) and its documents, for the workspace currently shown. */
|
|
1168
1190
|
protected load(): Promise<void>;
|
|
1169
1191
|
/** Reads the documents again without leaving the view; a failure leaves the ones shown as they are. */
|
|
@@ -1894,7 +1916,7 @@ declare class UploadTracker {
|
|
|
1894
1916
|
/** What the strip of a minimized panel shows, which is not always what it should: a change swaps it. */
|
|
1895
1917
|
protected readonly peekShown: _angular_core.WritableSignal<Message>;
|
|
1896
1918
|
protected readonly peekTone: _angular_core.WritableSignal<"error" | "success" | null>;
|
|
1897
|
-
protected readonly peekSwap: _angular_core.WritableSignal<"
|
|
1919
|
+
protected readonly peekSwap: _angular_core.WritableSignal<"hidden" | "shown" | "below">;
|
|
1898
1920
|
private peekKey;
|
|
1899
1921
|
private hoverTimer;
|
|
1900
1922
|
private readonly timers;
|