@eo-sdk/client 7.13.0-rc.1 → 7.13.0-rc.2
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/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts +3 -1
- package/app/eo-framework/stored-query/stored-query/stored-query.component.d.ts +3 -1
- package/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.d.ts +3 -1
- package/app/eo-framework/ui/query-scope-select/query-scope-select.component.d.ts +11 -0
- package/app/eo-framework-core/search/app-search.service.d.ts +2 -1
- package/assets/_default/i18n/de.json +3 -0
- package/assets/_default/i18n/en.json +3 -0
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +11 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +128 -71
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.d.ts +63 -62
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +7 -3
- package/esm2015/app/eo-framework/stored-query/stored-query/stored-query.component.js +9 -3
- package/esm2015/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.js +7 -2
- package/esm2015/app/eo-framework/ui/query-scope-select/query-scope-select.component.js +31 -0
- package/esm2015/app/eo-framework/ui/ui.module.js +6 -3
- package/esm2015/app/eo-framework-core/search/app-search.service.js +6 -1
- package/esm2015/eo-sdk-client.js +64 -63
- package/esm2015/projects/eo-sdk/core/lib/service/auth/auth.service.js +3 -3
- package/esm2015/projects/eo-sdk/core/lib/service/search/search-query.model.js +10 -1
- package/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +2 -1
- package/esm2015/projects/eo-sdk/core/lib/service/stored-queries/stored-query.model.js +2 -1
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +14 -3
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +62 -11
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
- package/projects/eo-sdk/core/lib/service/search/search-query.model.d.ts +9 -0
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { AutoComplete } from 'primeng/primeng';
|
|
|
7
7
|
import { NgForm } from '@angular/forms';
|
|
8
8
|
import { LocaleDatePipe } from '../../../../eo-framework-core/pipes/locale-date.pipe';
|
|
9
9
|
import { AppSearchService } from '../../../../eo-framework-core/search/app-search.service';
|
|
10
|
-
import { UserService, StoredQuery, ObjectType, SearchFilter, SearchQuery, SearchState, SearchService, SystemService, Logger, CapabilitiesService, Capabilities, StoredQueriesService, NotificationsService, PrepareService, TranslateService } from '@eo-sdk/core';
|
|
10
|
+
import { UserService, StoredQuery, ObjectType, SearchFilter, SearchQuery, SearchState, SearchService, SystemService, Logger, CapabilitiesService, Capabilities, StoredQueriesService, NotificationsService, PrepareService, TranslateService, QueryScope } from '@eo-sdk/core';
|
|
11
11
|
export interface IdxSearch {
|
|
12
12
|
type: ObjectType;
|
|
13
13
|
contextFolderType: ObjectType;
|
|
@@ -58,6 +58,7 @@ export declare class AppSearchComponent implements OnInit, AfterViewInit, OnDest
|
|
|
58
58
|
INTERVAL_INCLUDE_FROM: string;
|
|
59
59
|
RANGE: string;
|
|
60
60
|
};
|
|
61
|
+
queryScope: QueryScope;
|
|
61
62
|
searchInput: AutoComplete;
|
|
62
63
|
expertInput: ElementRef;
|
|
63
64
|
indexdataForm: ObjectFormComponent;
|
|
@@ -122,6 +123,7 @@ export declare class AppSearchComponent implements OnInit, AfterViewInit, OnDest
|
|
|
122
123
|
resolveSelection(aggs: any[], key: string, selected: boolean): any[];
|
|
123
124
|
resetExpertModeInput(): void;
|
|
124
125
|
toggleExpertMode(): void;
|
|
126
|
+
setQueryScope(scope: QueryScope): void;
|
|
125
127
|
xpSelectGroup(group: any): void;
|
|
126
128
|
xpSelectType(type: any): void;
|
|
127
129
|
xpAddToTerm(str: any): void;
|
|
@@ -3,7 +3,7 @@ import { ObjectFormHelperService } from "../../object-form/object-form-helper.se
|
|
|
3
3
|
import { ObjectFormControlWrapper } from "../../object-form/object-form/object-form-control-wrapper";
|
|
4
4
|
import { AppSearchService } from "../../../eo-framework-core/search/app-search.service";
|
|
5
5
|
import { ObjectFormGroup } from "../../object-form/object-form/object-form-group";
|
|
6
|
-
import { StoredQueriesService, StoredQuery, SearchService, TranslateService, SystemService } from "@eo-sdk/core";
|
|
6
|
+
import { StoredQueriesService, StoredQuery, SearchService, TranslateService, SystemService, QueryScope } from "@eo-sdk/core";
|
|
7
7
|
export declare class StoredQueryComponent {
|
|
8
8
|
private searchService;
|
|
9
9
|
private elementRef;
|
|
@@ -12,6 +12,7 @@ export declare class StoredQueryComponent {
|
|
|
12
12
|
private storedQueriesService;
|
|
13
13
|
private formHelperService;
|
|
14
14
|
private appSearchService;
|
|
15
|
+
queryScope: QueryScope;
|
|
15
16
|
_storedQuery: StoredQuery;
|
|
16
17
|
queryFormControls: ObjectFormControlWrapper[];
|
|
17
18
|
queryForm: ObjectFormGroup;
|
|
@@ -24,6 +25,7 @@ export declare class StoredQueryComponent {
|
|
|
24
25
|
onQueryExecute: EventEmitter<any>;
|
|
25
26
|
isOpen: boolean;
|
|
26
27
|
constructor(searchService: SearchService, elementRef: ElementRef, translate: TranslateService, systemService: SystemService, storedQueriesService: StoredQueriesService, formHelperService: ObjectFormHelperService, appSearchService: AppSearchService);
|
|
28
|
+
setQueryScope(scope: QueryScope): void;
|
|
27
29
|
createQueryForm(): void;
|
|
28
30
|
private getFormElements;
|
|
29
31
|
private getValue;
|
package/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { EditForm, NotifyList, Restriction } from '../stored-query.interface';
|
|
|
6
6
|
import { StoredQueryComponent } from '../stored-query/stored-query.component';
|
|
7
7
|
import { SelectionService } from '../../../eo-framework-core/selection/selection.service';
|
|
8
8
|
import { UnsubscribeOnDestroy } from '../../util/unsubscribe/unsubscribe.component';
|
|
9
|
-
import { StoredQuery, StoredQueriesService, SearchFilter, TranslateService, SystemService, UserService, OrgRole, SearchService } from '@eo-sdk/core';
|
|
9
|
+
import { StoredQuery, StoredQueriesService, SearchFilter, TranslateService, SystemService, UserService, OrgRole, SearchService, QueryScope } from '@eo-sdk/core';
|
|
10
10
|
export declare class StoredQueryDetailsComponent extends UnsubscribeOnDestroy implements OnInit {
|
|
11
11
|
private router;
|
|
12
12
|
private searchService;
|
|
@@ -25,6 +25,7 @@ export declare class StoredQueryDetailsComponent extends UnsubscribeOnDestroy im
|
|
|
25
25
|
storedQueryForm: StoredQueryComponent;
|
|
26
26
|
iconTitles: any;
|
|
27
27
|
storedQuery: StoredQuery;
|
|
28
|
+
queryScope: QueryScope;
|
|
28
29
|
editForm: EditForm;
|
|
29
30
|
restrictions: Restriction[];
|
|
30
31
|
editingShare: boolean;
|
|
@@ -40,6 +41,7 @@ export declare class StoredQueryDetailsComponent extends UnsubscribeOnDestroy im
|
|
|
40
41
|
set query(q: StoredQuery);
|
|
41
42
|
notifyList: EventEmitter<NotifyList>;
|
|
42
43
|
constructor(router: Router, searchService: SearchService, userService: UserService, systemService: SystemService, selection: SelectionService, pendingChanges: PendingChangesService, storedQueriesService: StoredQueriesService, formHelperService: ObjectFormHelperService, translate: TranslateService);
|
|
44
|
+
setQueryScope(scope: QueryScope): void;
|
|
43
45
|
setQuery(q: StoredQuery): void;
|
|
44
46
|
private startPending;
|
|
45
47
|
private finishPending;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { QueryScope } from '@eo-sdk/core';
|
|
3
|
+
export declare class QueryScopeSelectComponent {
|
|
4
|
+
QueryScope: typeof QueryScope;
|
|
5
|
+
private _selectedQueryScope;
|
|
6
|
+
set selectedQueryScope(scope: QueryScope);
|
|
7
|
+
get selectedQueryScope(): QueryScope;
|
|
8
|
+
select: EventEmitter<QueryScope>;
|
|
9
|
+
constructor();
|
|
10
|
+
selectQueryScope(scope: QueryScope): void;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { SearchFilter, SearchQuery, SearchState, SystemService, ObjectType, SearchService, EventService } from '@eo-sdk/core';
|
|
2
|
+
import { SearchFilter, SearchQuery, SearchState, SystemService, ObjectType, SearchService, EventService, QueryScope } from '@eo-sdk/core';
|
|
3
3
|
/**
|
|
4
4
|
* AppSearchService is the apps main entry point for searching (used by the appBarSearch component).
|
|
5
5
|
* It provides an `query$` observable components can subscribe to, to
|
|
@@ -43,6 +43,7 @@ export declare class AppSearchService {
|
|
|
43
43
|
*/
|
|
44
44
|
toggleExpertMode(): void;
|
|
45
45
|
setTerm(term: string): void;
|
|
46
|
+
setQueryScope(scope: QueryScope): void;
|
|
46
47
|
setAggs(aggs: any, extend?: boolean): void;
|
|
47
48
|
/**
|
|
48
49
|
* Toggles a type filter.
|
|
@@ -194,6 +194,9 @@
|
|
|
194
194
|
"eo.notifications.filter.resubmission.label": "Wiedervorlage",
|
|
195
195
|
"eo.search.close": "Suche schließen",
|
|
196
196
|
"eo.search.clear.search": "Suche löschen",
|
|
197
|
+
"eo.search.scope.all.label": "Alles",
|
|
198
|
+
"eo.search.scope.content.label": "Nur Dokumentdateien",
|
|
199
|
+
"eo.search.scope.indexdata.label": "Nur Metadaten",
|
|
197
200
|
"eo.add.title.location.subfolder": "Ablage in '{{folder}}'",
|
|
198
201
|
"eo.add.empty.root.types": "Es steht kein Objekttyp zur Verfügung.",
|
|
199
202
|
"eo.sort.by": "Sortieren nach",
|
|
@@ -196,6 +196,9 @@
|
|
|
196
196
|
"eo.notifications.filter.resubmission.label": "Follow-up",
|
|
197
197
|
"eo.search.close": "Close search",
|
|
198
198
|
"eo.search.clear.search": "Delete search",
|
|
199
|
+
"eo.search.scope.all.label": "All",
|
|
200
|
+
"eo.search.scope.content.label": "Document files only",
|
|
201
|
+
"eo.search.scope.indexdata.label": "Metadata only",
|
|
199
202
|
"eo.add.title.location.subfolder": "File to '{{folder}}'",
|
|
200
203
|
"eo.add.empty.root.types": "There are no object types available.",
|
|
201
204
|
"eo.sort.by": "Sort by",
|
|
@@ -3791,14 +3791,14 @@
|
|
|
3791
3791
|
// remove stored access data
|
|
3792
3792
|
this.storage.removeItem(this.TOKEN_STORAGE_KEY).subscribe();
|
|
3793
3793
|
if (this.coreConfig.environment.production && EnvironmentEnaio.isWebEnvironment()) {
|
|
3794
|
-
window.location.href = '/logout';
|
|
3794
|
+
window.location.href = this.config.getLoginBase() + '/logout';
|
|
3795
3795
|
return;
|
|
3796
3796
|
}
|
|
3797
3797
|
}
|
|
3798
3798
|
if (gatewayLogout) {
|
|
3799
3799
|
// by default we are just resetting internal state to 'logged out' and in
|
|
3800
3800
|
// some cases call gateways logout endpoint to do logout stuff there silently
|
|
3801
|
-
this.http.get((this.profile.host || '') + "/logout").subscribe();
|
|
3801
|
+
this.http.get("" + (this.profile.host || '') + this.config.getLoginBase() + "/logout").subscribe();
|
|
3802
3802
|
}
|
|
3803
3803
|
this.backend.setAuthProfile(this.profile);
|
|
3804
3804
|
this.eventService.trigger(EnaioEvent.LOGOUT);
|
|
@@ -4588,6 +4588,11 @@
|
|
|
4588
4588
|
{ type: EventService }
|
|
4589
4589
|
]; };
|
|
4590
4590
|
|
|
4591
|
+
(function (QueryScope) {
|
|
4592
|
+
QueryScope["ALL"] = "all";
|
|
4593
|
+
QueryScope["CONTENT"] = "content";
|
|
4594
|
+
QueryScope["INDEX_DATA"] = "indexdata";
|
|
4595
|
+
})(exports.QueryScope || (exports.QueryScope = {}));
|
|
4591
4596
|
/**
|
|
4592
4597
|
* The SearchQuery Class
|
|
4593
4598
|
*
|
|
@@ -4768,6 +4773,7 @@
|
|
|
4768
4773
|
// add options when they differ from the default values
|
|
4769
4774
|
if (this.applyOptions()) {
|
|
4770
4775
|
queryJson.options = {};
|
|
4776
|
+
queryJson.options.scope = this.scope;
|
|
4771
4777
|
if (this.suggest) {
|
|
4772
4778
|
queryJson.options.suggest = true;
|
|
4773
4779
|
}
|
|
@@ -4800,6 +4806,7 @@
|
|
|
4800
4806
|
// determines whether or not the query send to the search service should contain options
|
|
4801
4807
|
SearchQuery.prototype.applyOptions = function () {
|
|
4802
4808
|
return (this.expertMode ||
|
|
4809
|
+
!!this.scope ||
|
|
4803
4810
|
this.suggest ||
|
|
4804
4811
|
this.highlighting ||
|
|
4805
4812
|
this.resolveReference ||
|
|
@@ -5170,6 +5177,7 @@
|
|
|
5170
5177
|
this.filters = searchQuery ? searchQuery.filters : [];
|
|
5171
5178
|
this.suggest = searchQuery ? searchQuery.suggest : false;
|
|
5172
5179
|
this.expertMode = searchQuery ? searchQuery.expertMode : false;
|
|
5180
|
+
this.scope = searchQuery ? searchQuery.scope : null;
|
|
5173
5181
|
this.searchMode = searchQuery ? searchQuery.searchMode : 'idx';
|
|
5174
5182
|
};
|
|
5175
5183
|
/**
|
|
@@ -5349,6 +5357,7 @@
|
|
|
5349
5357
|
if (qObj_1.options) {
|
|
5350
5358
|
q.suggest = qObj_1.options.suggest || false;
|
|
5351
5359
|
q.expertMode = qObj_1.options.expertmode || false;
|
|
5360
|
+
q.scope = qObj_1.options.scope;
|
|
5352
5361
|
q.resolveReference = qObj_1.options.resolveReference || true;
|
|
5353
5362
|
q.searchMode =
|
|
5354
5363
|
qObj_1.options.searchmode || SearchQuery.DEFAULT_SEARCH_MODE;
|