@sassoftware/vi-api 1.40.3 → 1.42.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/README.md +36 -5
- package/component/index.d.ts +5 -1
- package/component/package.json +2 -2
- package/config/config-api.d.ts +5 -1
- package/config/package.json +2 -2
- package/control/control-api.d.ts +12 -1
- package/control/package.json +2 -2
- package/control/page.d.ts +9 -0
- package/current-user/currentUser-api.d.ts +5 -1
- package/current-user/package.json +2 -2
- package/elements/index.d.ts +30 -0
- package/elements/index.js +31 -0
- package/elements/package.json +9 -0
- package/elements/properties.d.ts +89 -0
- package/event/event-api.d.ts +9 -4
- package/event/event-api.js +1 -0
- package/event/package.json +2 -2
- package/file/file-api.d.ts +5 -1
- package/file/package.json +2 -2
- package/http/index.d.ts +5 -1
- package/http/package.json +2 -2
- package/index.d.ts +3 -1
- package/init/index.d.ts +12 -7
- package/init/index.js +3 -2
- package/init/package.json +2 -2
- package/localization/localization-api.d.ts +24 -9
- package/localization/package.json +2 -2
- package/metadata/admin/admin-metadata-api.d.ts +5 -1
- package/metadata/admin/index.d.ts +1 -0
- package/metadata/admin/index.js +1 -0
- package/metadata/metadata-api.d.ts +9 -5
- package/metadata/package.json +2 -2
- package/object/object-api.d.ts +9 -5
- package/object/package.json +2 -2
- package/package.json +3 -3
- package/page-admin/package.json +2 -2
- package/page-admin/page-admin-api.d.ts +5 -1
- package/page-model/package.json +2 -2
- package/page-model/page-model-api.d.ts +6 -5
- package/page-state/package.json +2 -2
- package/page-state/page-state-api.d.ts +4 -1
- package/page-template/package.json +2 -2
- package/page-template/page-template-api.d.ts +5 -1
- package/property/package.json +2 -2
- package/property/property-api.d.ts +6 -2
- package/reference-data/package.json +2 -2
- package/reference-data/refData.d.ts +4 -1
- package/resource/package.json +2 -2
- package/resource/resource-api.d.ts +5 -1
- package/search/client/client-search-api.d.ts +7 -3
- package/search/client/index.d.ts +1 -0
- package/search/client/index.js +1 -0
- package/search/package.json +2 -2
- package/search/search-api.d.ts +5 -1
- package/sheet/package.json +2 -2
- package/sheet/sheet-api.d.ts +5 -1
- package/shell-tabs/package.json +2 -2
- package/shell-tabs/shell-tabs-api.d.ts +11 -7
- package/svi-datahub/index.d.ts +75 -75
- package/svi-datahub/package.json +1 -1
- package/tab/package.json +2 -2
- package/tab/tab-api.d.ts +5 -1
- package/theme/package.json +2 -2
- package/theme/theme-api.d.ts +6 -2
- package/traversal/package.json +2 -2
- package/traversal/traversal-api.d.ts +5 -1
- package/component/public-api.d.ts +0 -1
- package/component/public-api.js +0 -1
- package/http/public-api.d.ts +0 -1
- package/http/public-api.js +0 -1
- package/init/public-api.d.ts +0 -1
- package/init/public-api.js +0 -1
- package/public-api.d.ts +0 -1
- /package/config/{public-api.d.ts → index.d.ts} +0 -0
- /package/config/{public-api.js → index.js} +0 -0
- /package/control/{public-api.d.ts → index.d.ts} +0 -0
- /package/control/{public-api.js → index.js} +0 -0
- /package/current-user/{public-api.d.ts → index.d.ts} +0 -0
- /package/current-user/{public-api.js → index.js} +0 -0
- /package/{public-api.js → elements/properties.js} +0 -0
- /package/event/{public-api.d.ts → index.d.ts} +0 -0
- /package/event/{public-api.js → index.js} +0 -0
- /package/file/{public-api.d.ts → index.d.ts} +0 -0
- /package/file/{public-api.js → index.js} +0 -0
- /package/localization/{public-api.d.ts → index.d.ts} +0 -0
- /package/localization/{public-api.js → index.js} +0 -0
- /package/metadata/{public-api.d.ts → index.d.ts} +0 -0
- /package/metadata/{public-api.js → index.js} +0 -0
- /package/object/{public-api.d.ts → index.d.ts} +0 -0
- /package/object/{public-api.js → index.js} +0 -0
- /package/page-admin/{public-api.d.ts → index.d.ts} +0 -0
- /package/page-admin/{public-api.js → index.js} +0 -0
- /package/page-model/{public-api.d.ts → index.d.ts} +0 -0
- /package/page-model/{public-api.js → index.js} +0 -0
- /package/page-state/{public-api.d.ts → index.d.ts} +0 -0
- /package/page-state/{public-api.js → index.js} +0 -0
- /package/page-template/{public-api.d.ts → index.d.ts} +0 -0
- /package/page-template/{public-api.js → index.js} +0 -0
- /package/property/{public-api.d.ts → index.d.ts} +0 -0
- /package/property/{public-api.js → index.js} +0 -0
- /package/reference-data/{public-api.d.ts → index.d.ts} +0 -0
- /package/reference-data/{public-api.js → index.js} +0 -0
- /package/resource/{public-api.d.ts → index.d.ts} +0 -0
- /package/resource/{public-api.js → index.js} +0 -0
- /package/search/{public-api.d.ts → index.d.ts} +0 -0
- /package/search/{public-api.js → index.js} +0 -0
- /package/sheet/{public-api.d.ts → index.d.ts} +0 -0
- /package/sheet/{public-api.js → index.js} +0 -0
- /package/shell-tabs/{public-api.d.ts → index.d.ts} +0 -0
- /package/shell-tabs/{public-api.js → index.js} +0 -0
- /package/tab/{public-api.d.ts → index.d.ts} +0 -0
- /package/tab/{public-api.js → index.js} +0 -0
- /package/theme/{public-api.d.ts → index.d.ts} +0 -0
- /package/theme/{public-api.js → index.js} +0 -0
- /package/traversal/{public-api.d.ts → index.d.ts} +0 -0
- /package/traversal/{public-api.js → index.js} +0 -0
|
@@ -5,8 +5,12 @@ export interface FieldTypeLabels {
|
|
|
5
5
|
/**
|
|
6
6
|
* {@link MetadataApi} extension provides the functionality related to retrieval of metadata.
|
|
7
7
|
* Additional methods are available only in the SAS Visual Investigator Manage and Investigate interface.
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
|
+
* Accessed from the window at `window.sas.vi.metadata`.
|
|
10
|
+
*
|
|
9
11
|
* @extends MetadataApi
|
|
12
|
+
* @example window.sas.vi.metadata.getFieldDataTypeLabels();
|
|
13
|
+
* @category API
|
|
10
14
|
*/
|
|
11
15
|
export interface AdminMetadataApi extends MetadataApi {
|
|
12
16
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./admin-metadata-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./admin-metadata-api";
|
|
@@ -147,7 +147,11 @@ export interface ReferenceDataOptions {
|
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* This API provides the functionality related to retrieval of metadata.
|
|
150
|
-
*
|
|
150
|
+
*
|
|
151
|
+
* Accessed from the window at `window.sas.vi.metadata`.
|
|
152
|
+
*
|
|
153
|
+
* @example window.sas.vi.metadata.getEntityAccessRules(objectType);
|
|
154
|
+
* @category API
|
|
151
155
|
*/
|
|
152
156
|
export interface MetadataApi {
|
|
153
157
|
/**
|
|
@@ -160,7 +164,7 @@ export interface MetadataApi {
|
|
|
160
164
|
/**
|
|
161
165
|
* @method
|
|
162
166
|
* @description Gets create, read, and update access rights for the provided entities via batch call.
|
|
163
|
-
* @param
|
|
167
|
+
* @param {string[]} objectTypes Entity names.
|
|
164
168
|
* @returns Object with a Promise of type EntityAccessRule[] for each rule, where EntityAccessRule maps to the access rule of a given entity name.
|
|
165
169
|
*/
|
|
166
170
|
getEntitiesAccessRules(objectTypes: string[]): EntitiesAccessRules;
|
|
@@ -233,7 +237,7 @@ export interface MetadataApi {
|
|
|
233
237
|
*/
|
|
234
238
|
getIconForEntity(objectType: string, iconType?: string): string | undefined;
|
|
235
239
|
/**
|
|
236
|
-
* @deprecated Use
|
|
240
|
+
* @deprecated Use [getRootTypes()]{@link getRootTypes} and [getResolvedEntities()]{@link getResolvedEntities}` instead.
|
|
237
241
|
*
|
|
238
242
|
* @method
|
|
239
243
|
* @description Gets metadata for both entities and resolved entities.
|
|
@@ -243,8 +247,8 @@ export interface MetadataApi {
|
|
|
243
247
|
/**
|
|
244
248
|
* @method
|
|
245
249
|
* @description Gets reference data with the given name.
|
|
246
|
-
* @param
|
|
247
|
-
* @param [options]
|
|
250
|
+
* @param {string} name Reference data list name.
|
|
251
|
+
* @param {ReferenceDataOptions} [options] Object containing name and filter constraints.
|
|
248
252
|
* If constrainingListName is defined, then the refDataName parameter is ignored.
|
|
249
253
|
* parentCode is used to filter list items to those that are children of this list name.
|
|
250
254
|
* @returns Promise containing the reference data or undefined if none exists.
|
package/metadata/package.json
CHANGED
package/object/object-api.d.ts
CHANGED
|
@@ -36,7 +36,11 @@ export interface CreateObjectOptions {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* This API provides the functionality related to objects within SAS Visual Investigator.
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
|
+
* Accessed from the window at `window.sas.vi.object`.
|
|
41
|
+
*
|
|
42
|
+
* @example window.sas.vi.object.getObjectAccessRules(objectType, objectId);
|
|
43
|
+
* @category API
|
|
40
44
|
*/
|
|
41
45
|
export interface ObjectApi {
|
|
42
46
|
/**
|
|
@@ -211,8 +215,8 @@ export interface ObjectApi {
|
|
|
211
215
|
/**
|
|
212
216
|
* @method
|
|
213
217
|
* @description Validates the fields, controls, and file categories of a child object.
|
|
214
|
-
* @param
|
|
215
|
-
* @param
|
|
218
|
+
* @param {PageModel} model Page model.
|
|
219
|
+
* @param {StoredObjectMetadata} childObject Child object metadata.
|
|
216
220
|
* @return An observable that resolves to an array of validation results.
|
|
217
221
|
*/
|
|
218
222
|
validate(model: PageModel, childObject: StoredObjectMetadata): Promise<ValidationResult[]>;
|
|
@@ -547,10 +551,10 @@ export interface CreateDialogModel extends CreateRelationshipDialogModel<CreateD
|
|
|
547
551
|
export interface CreateDialogResponse {
|
|
548
552
|
relateToModel?: CreateRelateToModel;
|
|
549
553
|
}
|
|
550
|
-
export interface
|
|
554
|
+
export interface CreateRelationshipDialogResultModel {
|
|
551
555
|
linkReason?: Relationship;
|
|
552
556
|
}
|
|
553
|
-
export interface CreateRelateToModel extends
|
|
557
|
+
export interface CreateRelateToModel extends CreateRelationshipDialogResultModel {
|
|
554
558
|
newPageModel?: {
|
|
555
559
|
model: PageModel;
|
|
556
560
|
};
|
package/object/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sassoftware/vi-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"description": "Types used in the SAS Visual Investigator API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SAS",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"./README.md",
|
|
29
29
|
"./LICENSE.txt"
|
|
30
30
|
],
|
|
31
|
-
"main": "
|
|
32
|
-
"types": "
|
|
31
|
+
"main": "index.js",
|
|
32
|
+
"types": "index.d.ts",
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@types/angular": "^1.7.3",
|
|
35
35
|
"@types/angular-resource": "^1.5.16"
|
package/page-admin/package.json
CHANGED
|
@@ -10,7 +10,11 @@ export declare enum TemplateType {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* This API provides administration functionality related to pages.
|
|
13
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* Accessed from the window at `window.sas.vi.pageAdmin`.
|
|
15
|
+
*
|
|
16
|
+
* @example window.sas.vi.pageAdmin.registerPageType(...);
|
|
17
|
+
* @category API
|
|
14
18
|
*/
|
|
15
19
|
export interface PageAdminApi {
|
|
16
20
|
/**
|
package/page-model/package.json
CHANGED
|
@@ -159,15 +159,13 @@ export interface IPageEvent<T extends IPageEventData> {
|
|
|
159
159
|
/**
|
|
160
160
|
* @method
|
|
161
161
|
* @description Adds a hook to be executed before a hookable event is triggered.
|
|
162
|
-
* @param
|
|
163
|
-
* @param hook {IPrePageEventHook} the hook which defines the callback to run pre-event.
|
|
162
|
+
* @param {IPrePageEventHook} hook the hook which defines the callback to run pre-event.
|
|
164
163
|
*/
|
|
165
164
|
addPreHook(hook: IPrePageEventHook<T>): PageEventHookRemove;
|
|
166
165
|
/**
|
|
167
166
|
* @method
|
|
168
167
|
* @description Adds a hook to be executed after a hookable event is triggered.
|
|
169
|
-
* @param
|
|
170
|
-
* @param hook {IPostPageEventHook} the hook which defines the callback to run post-event.
|
|
168
|
+
* @param {IPostPageEventHook} hook the hook which defines the callback to run post-event.
|
|
171
169
|
*/
|
|
172
170
|
addPostHook(hook: IPostPageEventHook<T>): PageEventHookRemove;
|
|
173
171
|
/**
|
|
@@ -205,7 +203,10 @@ export interface PageEventsApi extends PageEventsApiBase {
|
|
|
205
203
|
}
|
|
206
204
|
/**
|
|
207
205
|
* This API is used for PageModel utilities.
|
|
208
|
-
* Accessed from the window at window.sas.vi.pageModel
|
|
206
|
+
* Accessed from the window at `window.sas.vi.pageModel`.
|
|
207
|
+
*
|
|
208
|
+
* @example window.sas.vi.pageModel.createFromObject(partialPageModel);
|
|
209
|
+
* @category API
|
|
209
210
|
*/
|
|
210
211
|
export interface PageModelApi {
|
|
211
212
|
/**
|
package/page-state/package.json
CHANGED
|
@@ -13,7 +13,10 @@ export interface ObjectPageDesignerState {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* This API provides functionality that pertains to the page state.
|
|
16
|
-
* Accessed from the window at window.sas.vi.pageState
|
|
16
|
+
* Accessed from the window at `window.sas.vi.pageState`.
|
|
17
|
+
*
|
|
18
|
+
* @example window.sas.vi.pageState.getCurrent();
|
|
19
|
+
* @category API
|
|
17
20
|
*/
|
|
18
21
|
export interface PageStateApi {
|
|
19
22
|
/**
|
|
@@ -2,7 +2,11 @@ import { Template, TemplateResourceSummary } from "../svi-datahub";
|
|
|
2
2
|
import { ApplicationType, TemplateType } from "../page-admin/page-admin-api";
|
|
3
3
|
/**
|
|
4
4
|
* This API provides functionality that pertains to the page templates.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Accessed from the window at `window.sas.vi.pageTemplate`.
|
|
7
|
+
*
|
|
8
|
+
* @example window.sas.vi.pageTemplate.getPageTemplateById(templateNumber);
|
|
9
|
+
* @category API
|
|
6
10
|
*/
|
|
7
11
|
export interface PageTemplateApi {
|
|
8
12
|
/**
|
package/property/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export type ControlPropertyLocalizer = ToolbarControlPropertyLocalizer | PageCon
|
|
|
39
39
|
export interface ToolbarControlPropertyLocalizer extends PropertyLocalizer<EntityToolbarItem> {
|
|
40
40
|
localizerType: "toolbar";
|
|
41
41
|
/**
|
|
42
|
-
* Generate resources to be
|
|
42
|
+
* Generate resources to be included when the toolbar item is saved.
|
|
43
43
|
*
|
|
44
44
|
* @param propertyKey the control attribute
|
|
45
45
|
* @param control the toolbar item
|
|
@@ -106,7 +106,11 @@ export interface EditorApi {
|
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* This API pertains to page/toolbar control properties in SAS Visual Investigator.
|
|
109
|
-
*
|
|
109
|
+
*
|
|
110
|
+
* Accessed from the window at `window.sas.vi.property`.
|
|
111
|
+
*
|
|
112
|
+
* @example window.sas.vi.property.registerPropertyLocalizer(localizer);
|
|
113
|
+
* @category API
|
|
110
114
|
*/
|
|
111
115
|
export interface PropertyApi {
|
|
112
116
|
/**
|
|
@@ -37,8 +37,11 @@ export interface LocalizedLabel extends PersistableObject {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* This API provides functionality related to retrieving reference data.
|
|
40
|
-
* Accessed from the window at window.sas.vi.refData.
|
|
41
40
|
*
|
|
41
|
+
* Accessed from the window at `window.sas.vi.refData`.
|
|
42
|
+
*
|
|
43
|
+
* @example window.sas.vi.refData.getReferenceLists();
|
|
44
|
+
* @category API
|
|
42
45
|
*/
|
|
43
46
|
export interface RefDataApi {
|
|
44
47
|
/**
|
package/resource/package.json
CHANGED
|
@@ -4,7 +4,11 @@ export interface I18nResources {
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use window.sas.viInit.registerResourceBundle to register resources before the rest of the SAS Visual Investigator API is ready.
|
|
6
6
|
* This API provides the resource functionality in SAS Visual Investigator.
|
|
7
|
-
*
|
|
7
|
+
*
|
|
8
|
+
* Accessed from the window at `window.sas.vi.resource`.
|
|
9
|
+
*
|
|
10
|
+
* @example window.sas.vi.resource.registerResourceBundle("bundleName", resources);
|
|
11
|
+
* @category API
|
|
8
12
|
*/
|
|
9
13
|
export interface ResourceApi {
|
|
10
14
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MapBoundedBoxFilter, MapBoundedPolygonFilter, MapRadiusFilter, MapShapeFilter, QueryMode, SearchRepresentation, SearchResponse, SummaryVisualizationResponse } from "../../svi-sand";
|
|
2
|
-
import { CreateRelationshipDialogModel,
|
|
2
|
+
import { CreateRelationshipDialogModel, CreateRelationshipDialogResultModel, ObjectIdentifier, SearchOrCreateAndLinkDialogBase } from "../../object/object-api";
|
|
3
3
|
import { QueryBuilderModel, SearchApi } from "../search-api";
|
|
4
4
|
export declare enum SearchVisualization {
|
|
5
5
|
Summary = "summary",
|
|
@@ -53,7 +53,7 @@ export interface SearchObject extends ObjectIdentifier {
|
|
|
53
53
|
typeLabel?: string;
|
|
54
54
|
uniqueKey?: string;
|
|
55
55
|
}
|
|
56
|
-
export interface SearchAndCreateRelateToModel extends
|
|
56
|
+
export interface SearchAndCreateRelateToModel extends CreateRelationshipDialogResultModel {
|
|
57
57
|
relateToTargetId?: string;
|
|
58
58
|
relateToTargetType?: string;
|
|
59
59
|
}
|
|
@@ -63,8 +63,12 @@ export interface SearchAndCreateResponse {
|
|
|
63
63
|
/**
|
|
64
64
|
* {@link SearchApi} extension pertains to functionality related to SAS Visual Investigator's search capabilities.
|
|
65
65
|
* These additional methods are available only in the SAS Visual Investigator Investigate and Search interface.
|
|
66
|
-
*
|
|
66
|
+
*
|
|
67
|
+
* Accessed from the window at `window.sas.vi.search`.
|
|
68
|
+
*
|
|
67
69
|
* @extends SearchApi
|
|
70
|
+
* @example window.sas.vi.search.navigateSearch("query text", "map");
|
|
71
|
+
* @category API
|
|
68
72
|
*/
|
|
69
73
|
export interface ClientSearchApi extends SearchApi {
|
|
70
74
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client-search-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client-search-api";
|
package/search/package.json
CHANGED
package/search/search-api.d.ts
CHANGED
|
@@ -45,7 +45,11 @@ export interface QueryBuilderResult {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* This API relates to SAS Visual Investigator's search functionality.
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
|
+
* Accessed from the window at `window.sas.vi.search`.
|
|
50
|
+
*
|
|
51
|
+
* @example window.sas.vi.search.openQueryBuilderDialog("Dialog Title");
|
|
52
|
+
* @category API
|
|
49
53
|
*/
|
|
50
54
|
export interface SearchApi {
|
|
51
55
|
/**
|
package/sheet/package.json
CHANGED
package/sheet/sheet-api.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import { ObjectIdentifier, ObjectSheetSettings, VIObject } from "../object/objec
|
|
|
2
2
|
import { NetworkData, Visualization } from "../search/client/client-search-api";
|
|
3
3
|
/**
|
|
4
4
|
* This API relates to SAS Visual Investigator's sheet functionality.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
|
+
* Accessed from the window at `window.sas.vi.sheet`.
|
|
7
|
+
*
|
|
8
|
+
* @example window.sas.vi.sheet.getOpenObjects();
|
|
9
|
+
* @category API
|
|
6
10
|
*/
|
|
7
11
|
export interface SheetApi {
|
|
8
12
|
/**
|
package/shell-tabs/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export interface INavigationBarTab<D = {
|
|
|
19
19
|
/** label for the tab, can be String or the resource.key (if .isLabelResourceKey:true) */
|
|
20
20
|
label: string;
|
|
21
21
|
/** a weight used during .sort to order the tabs; will default to the order the tabs came as
|
|
22
|
-
*
|
|
22
|
+
* doesn't mean their array index, as many can be the same, negatives, fractions
|
|
23
23
|
* */
|
|
24
24
|
sortIndex?: number;
|
|
25
25
|
/** when true, will use resourceService.get to resolve INavigationBarTab.label */
|
|
@@ -115,14 +115,18 @@ export interface ExternalTabConfig<T = SviShellTabData, P = any> {
|
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* This API provides functionality relating to the shell tabs.
|
|
118
|
-
*
|
|
118
|
+
*
|
|
119
|
+
* Accessed from the window at `window.sas.vi.shellTabs`.
|
|
120
|
+
*
|
|
121
|
+
* @example window.sas.vi.shellTabs.getSelectedTab();
|
|
122
|
+
* @category API
|
|
119
123
|
*/
|
|
120
124
|
export interface ShellTabsApi<T = SviShellTabData> {
|
|
121
125
|
/**
|
|
122
126
|
* @method
|
|
123
127
|
* @description This is used to expose any {@link PotentialTabItem} hooks on a component up to the Tab Service.
|
|
124
|
-
* @param
|
|
125
|
-
* @param
|
|
128
|
+
* @param {any} context pass "this"
|
|
129
|
+
* @param {HTMLElement} nativeElement This will pass the ElementRef for the component
|
|
126
130
|
*
|
|
127
131
|
* onTabClose {@link OnTabClose}, optional, can be used to prevent closing of a tab or close async
|
|
128
132
|
* onAttachTab {@link OnAttachTab}, will always trigger when currentNavigationBarTab has set
|
|
@@ -135,13 +139,13 @@ export interface ShellTabsApi<T = SviShellTabData> {
|
|
|
135
139
|
/**
|
|
136
140
|
* @method
|
|
137
141
|
* @description Use this function to register new routes for tabs.
|
|
138
|
-
* @param
|
|
142
|
+
* @param {ExternalTabConfig[]} tab See {@link ExternalTabConfig}
|
|
139
143
|
*/
|
|
140
144
|
registerExternalTabs: (tab: Array<ExternalTabConfig<T>>) => void;
|
|
141
145
|
/**
|
|
142
146
|
* @method
|
|
143
147
|
* @description Use this function to remove routes added via registerTabFn.
|
|
144
|
-
* @param
|
|
148
|
+
* @param {ExternalTabConfig[]} tabsToRemove See {@link ExternalTabConfig}
|
|
145
149
|
*/
|
|
146
150
|
unregisterExternalTabs: (tabsToRemove: Array<ExternalTabConfig<T>>) => void;
|
|
147
151
|
/**
|
|
@@ -213,7 +217,7 @@ export interface ShellTabsApi<T = SviShellTabData> {
|
|
|
213
217
|
* @method
|
|
214
218
|
* @description This will remove an application tab, if allowed, and will trigger any closing and saving logic beforehand.
|
|
215
219
|
* @param [tabIdToRemove] {string} This will be ID of an existing tab.
|
|
216
|
-
* @param [suppressNavigation] {boolean} Set
|
|
220
|
+
* @param [suppressNavigation] {boolean} Set suppressNavigation to true if you want to close a tab that isn't open.
|
|
217
221
|
*/
|
|
218
222
|
removeApplicationTabById: (tabIdToRemove: string, suppressNavigation?: boolean) => Promise<boolean>;
|
|
219
223
|
/**
|