@sassoftware/vi-api 1.5.0 → 1.9.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/alert-reps/index.d.ts +1 -1
- package/alert-reps/package.json +5 -0
- package/component/bindings.d.ts +10 -4
- package/component/index.d.ts +11 -10
- package/component/index.js +1 -1
- package/component/package.json +9 -0
- package/config/config-api.d.ts +21 -2
- package/config/package.json +9 -0
- package/control/control-api.d.ts +40 -15
- package/control/package.json +9 -0
- package/control/restrictions.d.ts +5 -1
- package/current-user/package.json +9 -0
- package/event/event-api.d.ts +3 -1
- package/event/event-api.js +2 -0
- package/event/package.json +9 -0
- package/file/package.json +9 -0
- package/http/package.json +9 -0
- package/index.d.ts +4 -2
- package/localization/package.json +9 -0
- package/metadata/metadata-api.d.ts +17 -14
- package/metadata/package.json +9 -0
- package/object/object-api.d.ts +34 -21
- package/object/package.json +9 -0
- package/package.json +2 -1
- package/page-admin/package.json +9 -0
- package/page-admin/page-admin-api.d.ts +2 -2
- package/page-model/package.json +9 -0
- package/page-model/page-model-api.d.ts +92 -1
- package/page-state/package.json +9 -0
- package/page-state/page-state-api.d.ts +6 -33
- package/property/package.json +9 -0
- package/property/property-api.d.ts +6 -6
- package/property/property-api.js +2 -2
- package/reference-data/package.json +9 -0
- package/resource/package.json +9 -0
- package/score-reps/index.d.ts +1 -1
- package/score-reps/package.json +5 -0
- package/search/client/client-search-api.d.ts +24 -14
- package/search/package.json +9 -0
- package/search/search-api.d.ts +1 -1
- package/sheet/package.json +9 -0
- package/sheet/sheet-api.d.ts +6 -6
- package/shell-tabs/package.json +9 -0
- package/shell-tabs/public-api.d.ts +2 -0
- package/shell-tabs/public-api.js +2 -0
- package/shell-tabs/shell-tabs-api.d.ts +199 -0
- package/shell-tabs/shell-tabs-api.js +6 -0
- package/shell-tabs/shell-tabs-lifecycle-api.d.ts +69 -0
- package/shell-tabs/shell-tabs-lifecycle-api.js +14 -0
- package/svi-datahub/index.d.ts +295 -135
- package/svi-datahub/package.json +5 -0
- package/svi-sand/index.d.ts +31 -24
- package/svi-sand/package.json +5 -0
- package/tab/package.json +9 -0
- package/tab/tab-api.d.ts +1 -1
- package/theme/package.json +9 -0
- package/time-slider/index.d.ts +9 -0
- package/traversal/package.json +9 -0
- package/api-init.service.js +0 -86
- package/component/component-api.service.js +0 -161
- package/config/config-api.service.js +0 -54
- package/current-user/currentUser-api.service.js +0 -49
- package/event/event-api.service.js +0 -32
- package/file/file-api.service.js +0 -24
- package/http/http-api.service.js +0 -64
- package/localization/localization-api.service.js +0 -38
- package/metadata/admin/admin-metadata-api.service.js +0 -30
- package/metadata/metadata-api.service.js +0 -85
- package/object/object-api.service.js +0 -207
- package/page-admin/page-admin-api.service.js +0 -25
- package/page-model/page-model-api.service.js +0 -25
- package/page-state/page-state-api.service.js +0 -70
- package/property/property-api.service.js +0 -34
- package/reference-data/refData.service.js +0 -40
- package/resource/resource-api.service.js +0 -24
- package/search/client/client-search-api.service.js +0 -111
- package/search/search-api.service.js +0 -28
- package/sheet/network-menu-handler.service.js +0 -39
- package/sheet/sheet-api.service.js +0 -140
- package/tab/tab-api.service.js +0 -35
- package/theme/theme-api.service.js +0 -35
- package/traversal/traversal-api.service.js +0 -77
package/alert-reps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
// Generated using typescript-generator version 2.15.527 on 2023-
|
|
3
|
+
// Generated using typescript-generator version 2.15.527 on 2023-07-07 09:34:28.
|
|
4
4
|
|
|
5
5
|
export interface ActionRequestRep {
|
|
6
6
|
version?: number;
|
package/component/bindings.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { QueryMode } from "../svi-sand";
|
|
|
4
4
|
import { ControlContainer } from "../object/object-api";
|
|
5
5
|
import { PageModel, PageModelObjectData } from "../page-model/page-model-api";
|
|
6
6
|
import { SearchObject, SearchQuery } from "../search/client/client-search-api";
|
|
7
|
-
import { TimeSliderEventDates, TimeSliderRange } from "../time-slider";
|
|
7
|
+
import { HandleType, MinMaxDates, TimeSliderContextMenuHideOptions, TimeSliderEventDates, TimeSliderRange, TimeSliderRangeChangedEvent } from "../time-slider";
|
|
8
8
|
export interface SearchAndSelectWithPreviewInputBindings {
|
|
9
9
|
initialQuery?: string;
|
|
10
10
|
additionalModes?: QueryMode[];
|
|
@@ -77,11 +77,17 @@ export interface TimeSliderInputBindings {
|
|
|
77
77
|
timeSliderId: string;
|
|
78
78
|
timeSliderDates: TimeSliderEventDates;
|
|
79
79
|
viewRange: TimeSliderRange;
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
handleType?: HandleType;
|
|
81
|
+
isReadOnly?: boolean;
|
|
82
|
+
sliderWidth?: number;
|
|
83
|
+
disableSwitchHandleType?: boolean;
|
|
84
|
+
contextMenuHideOptions: TimeSliderContextMenuHideOptions;
|
|
85
|
+
minMaxDates?: MinMaxDates;
|
|
82
86
|
}
|
|
83
87
|
export interface TimeSliderBindings extends TimeSliderInputBindings {
|
|
84
|
-
rangeChangeEvent?: () => void;
|
|
88
|
+
rangeChangeEvent?: (rangeChangedEvent: TimeSliderRangeChangedEvent) => void;
|
|
89
|
+
handleTypeChange?: (handleType: HandleType) => void;
|
|
90
|
+
onLoad?: () => void;
|
|
85
91
|
close?: () => void;
|
|
86
92
|
}
|
|
87
93
|
export declare type SviComponentBindings = ControlCollectionBindings | RelationshipDetailsBindings | SearchInputBindings | PageBindings | SearchAndSelectWithPreviewBindings | TimeSliderBindings;
|
package/component/index.d.ts
CHANGED
|
@@ -7,22 +7,23 @@ export declare enum SviComponent {
|
|
|
7
7
|
SearchAndSelectWithPreview = "svi-search-and-select-with-preview",
|
|
8
8
|
TimeSlider = "svi-time-slider"
|
|
9
9
|
}
|
|
10
|
-
export interface ComponentCreationResult {
|
|
10
|
+
export interface ComponentCreationResult<T> {
|
|
11
11
|
element: HTMLElement;
|
|
12
12
|
destroy: () => void;
|
|
13
13
|
component: Record<string, any>;
|
|
14
|
+
setComponentInputValue?: (name: keyof T, value: unknown) => void;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Functionality related to dynamically creating SAS Visual Investigator UI components.
|
|
17
18
|
* Accessed from the window at window.sas.vi.component.
|
|
18
19
|
*/
|
|
19
20
|
export interface ComponentApi {
|
|
20
|
-
create(component: SviComponent.ControlCollection, target: HTMLElement, bindings?: ControlCollectionBindings): Promise<ComponentCreationResult
|
|
21
|
-
create(component: SviComponent.Page, target: HTMLElement, bindings?: PageBindings): Promise<ComponentCreationResult
|
|
22
|
-
create(component: SviComponent.RelationshipDetails, target: HTMLElement, bindings?: RelationshipDetailsBindings): Promise<ComponentCreationResult
|
|
23
|
-
create(component: SviComponent.SearchInput, target: HTMLElement, bindings?: SearchInputBindings): Promise<ComponentCreationResult
|
|
24
|
-
create(component: SviComponent.SearchAndSelectWithPreview, target: HTMLElement, bindings?: SearchAndSelectWithPreviewBindings): Promise<ComponentCreationResult
|
|
25
|
-
create(component: SviComponent.TimeSlider, target: HTMLElement, bindings?: TimeSliderBindings): Promise<ComponentCreationResult
|
|
21
|
+
create(component: SviComponent.ControlCollection, target: HTMLElement, bindings?: ControlCollectionBindings): Promise<ComponentCreationResult<ControlCollectionBindings>>;
|
|
22
|
+
create(component: SviComponent.Page, target: HTMLElement, bindings?: PageBindings): Promise<ComponentCreationResult<PageBindings>>;
|
|
23
|
+
create(component: SviComponent.RelationshipDetails, target: HTMLElement, bindings?: RelationshipDetailsBindings): Promise<ComponentCreationResult<RelationshipDetailsBindings>>;
|
|
24
|
+
create(component: SviComponent.SearchInput, target: HTMLElement, bindings?: SearchInputBindings): Promise<ComponentCreationResult<SearchInputBindings>>;
|
|
25
|
+
create(component: SviComponent.SearchAndSelectWithPreview, target: HTMLElement, bindings?: SearchAndSelectWithPreviewBindings): Promise<ComponentCreationResult<SearchAndSelectWithPreviewBindings>>;
|
|
26
|
+
create(component: SviComponent.TimeSlider, target: HTMLElement, bindings?: TimeSliderBindings): Promise<ComponentCreationResult<TimeSliderBindings>>;
|
|
26
27
|
/**
|
|
27
28
|
* Dynamically create a SAS Visual Investigator UI component appended to a given target DOM element location.
|
|
28
29
|
*
|
|
@@ -30,10 +31,10 @@ export interface ComponentApi {
|
|
|
30
31
|
* @param component {SviComponent} Creates the component.
|
|
31
32
|
* @param target {HTMLElement} Appends the component to the element.
|
|
32
33
|
* @param [bindings] {SviComponentBindings} Creates the component with the bindings.
|
|
33
|
-
* @returns A
|
|
34
|
+
* @returns A Promise that resolves when the component has been created.
|
|
34
35
|
* Resolves to an object containing the created element and a function to destroy it.
|
|
35
36
|
*/
|
|
36
|
-
create(component: SviComponent, target: HTMLElement, bindings?: SviComponentBindings): Promise<ComponentCreationResult
|
|
37
|
+
create(component: SviComponent, target: HTMLElement, bindings?: SviComponentBindings): Promise<ComponentCreationResult<SviComponentBindings>>;
|
|
37
38
|
/**
|
|
38
39
|
* @method
|
|
39
40
|
* Notifies the application to identify and react to any changes that have been applied.
|
|
@@ -43,7 +44,7 @@ export interface ComponentApi {
|
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
45
46
|
* @callback ComponentApi~afterDetectChanges
|
|
46
|
-
* @description A function to be called after change detection
|
|
47
|
+
* @description A function to be called after change detection.
|
|
47
48
|
* @returns {void}
|
|
48
49
|
*/
|
|
49
50
|
export * from "./bindings";
|
package/component/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export var SviComponent;
|
|
|
10
10
|
})(SviComponent || (SviComponent = {}));
|
|
11
11
|
/**
|
|
12
12
|
* @callback ComponentApi~afterDetectChanges
|
|
13
|
-
* @description A function to be called after change detection
|
|
13
|
+
* @description A function to be called after change detection.
|
|
14
14
|
* @returns {void}
|
|
15
15
|
*/
|
|
16
16
|
export * from "./bindings";
|
package/config/config-api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface SolutionExtension extends ControlMetadata {
|
|
|
14
14
|
metadata?: SolutionExtensionMetadata;
|
|
15
15
|
resolvedDisplayName?: string;
|
|
16
16
|
resolvedDescription?: string;
|
|
17
|
+
clientApplication?: string;
|
|
17
18
|
name: string;
|
|
18
19
|
}
|
|
19
20
|
export interface SolutionExtensionConfigTypeAttributes {
|
|
@@ -44,6 +45,18 @@ export interface SolutionExtensionMetadata {
|
|
|
44
45
|
showInToolbox?: "true" | "false";
|
|
45
46
|
mainDocumentOnly?: boolean;
|
|
46
47
|
}
|
|
48
|
+
export declare type SviDocumentManager = {
|
|
49
|
+
key: string;
|
|
50
|
+
displayName: string;
|
|
51
|
+
onClick: (onFilesAdded: (files: SviLinkedFile[]) => void) => void;
|
|
52
|
+
};
|
|
53
|
+
export interface SviLinkedFile {
|
|
54
|
+
fileName: string;
|
|
55
|
+
link: string;
|
|
56
|
+
type: string;
|
|
57
|
+
content?: string;
|
|
58
|
+
size: number;
|
|
59
|
+
}
|
|
47
60
|
/**
|
|
48
61
|
* Functionality related to configuration.
|
|
49
62
|
* Accessed from the window at window.sas.vi.config.
|
|
@@ -80,14 +93,20 @@ export interface ConfigApi {
|
|
|
80
93
|
* @method
|
|
81
94
|
* @description Retrieves registered solution extension with a given name.
|
|
82
95
|
* @param name {string} Name of the solution extension.
|
|
83
|
-
* @returns A
|
|
96
|
+
* @returns A Promise that resolves to the solution extension if the name is found.
|
|
84
97
|
*/
|
|
85
98
|
getSolutionExtension(name: string): Promise<SolutionExtension | undefined>;
|
|
86
99
|
/**
|
|
87
100
|
* @method
|
|
88
101
|
* @description Registers a solution extension with the application.
|
|
89
102
|
* @param config {SolutionExtension} Solution extension configuration.
|
|
90
|
-
* @returns A Promise that resolves
|
|
103
|
+
* @returns A Promise that resolves when the solution has been sent to the cache.
|
|
91
104
|
*/
|
|
92
105
|
registerSolutionExtension(config: SolutionExtension): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* @method
|
|
108
|
+
* @description Registers a document manager with the application.
|
|
109
|
+
* @param config {SviDocumentManager} Document manager configuration.
|
|
110
|
+
*/
|
|
111
|
+
registerDocumentManager(config: SviDocumentManager): void;
|
|
93
112
|
}
|
package/control/control-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileChange, SASObjectAttachedFile, SASUploadedFile } from "../file/file-api";
|
|
2
|
-
import { PageMode, PageModel } from "../page-model/page-model-api";
|
|
2
|
+
import { PageEventsApiBase, PageMode, PageModel } from "../page-model/page-model-api";
|
|
3
3
|
import { FieldType, FieldTypeToValue } from "./data-types";
|
|
4
4
|
import { PageDataChange, PageModeChange, StateChange } from "./events";
|
|
5
5
|
import { Control, RefreshablePageControlOptions, SlidingPanelContent, SlidingPanelProperties, TypeAttributes } from "./page";
|
|
@@ -24,7 +24,7 @@ export interface ControlMemberApiBase<ControlTypeAttributes extends TypeAttribut
|
|
|
24
24
|
*/
|
|
25
25
|
export interface ControlMemberApi<ControlTypeAttributes extends TypeAttributes = TypeAttributes, ControlFieldType extends FieldType = any> extends ControlMemberApiBase<ControlTypeAttributes, ControlFieldType> {
|
|
26
26
|
/**
|
|
27
|
-
* Methods related to this control
|
|
27
|
+
* Methods related to this control.
|
|
28
28
|
*/
|
|
29
29
|
readonly control: ControlApi<ControlTypeAttributes, ControlFieldType>;
|
|
30
30
|
/**
|
|
@@ -37,7 +37,7 @@ export interface ControlMemberApi<ControlTypeAttributes extends TypeAttributes =
|
|
|
37
37
|
readonly admin: ControlAdminApi;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* This Control API pertains functionality that checks the state, registers event handlers and so on.
|
|
40
|
+
* This Control API pertains to functionality that checks the state, registers event handlers, and so on.
|
|
41
41
|
*/
|
|
42
42
|
export interface ControlApiBase<ControlTypeAttributes extends TypeAttributes = TypeAttributes, ControlFieldType extends FieldType = never> {
|
|
43
43
|
/**
|
|
@@ -127,7 +127,7 @@ export interface ControlApi<ControlTypeAttributes extends TypeAttributes = TypeA
|
|
|
127
127
|
*/
|
|
128
128
|
getAriaLabel: () => string;
|
|
129
129
|
/**
|
|
130
|
-
* Sets the value of the component specific API
|
|
130
|
+
* Sets the value of the component specific API.
|
|
131
131
|
* @param componentSpecificApi
|
|
132
132
|
*/
|
|
133
133
|
setComponentSpecificApi(componentSpecificApi?: any): void;
|
|
@@ -148,7 +148,7 @@ export interface ControlStateApi {
|
|
|
148
148
|
readonly required: boolean;
|
|
149
149
|
/**
|
|
150
150
|
* Checks if the current controls should allow input.
|
|
151
|
-
* Returns
|
|
151
|
+
* Returns true if the control allows input, otherwise false.
|
|
152
152
|
*/
|
|
153
153
|
readonly allowInput: boolean;
|
|
154
154
|
/**
|
|
@@ -166,6 +166,21 @@ export interface ControlStateApi {
|
|
|
166
166
|
* True if the control is hidden, otherwise false.
|
|
167
167
|
*/
|
|
168
168
|
readonly hidden: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the masked state of the calling control.
|
|
171
|
+
* True if the control is masked, otherwise false.
|
|
172
|
+
*/
|
|
173
|
+
readonly masked: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the authorization state of a masked field of the calling control.
|
|
176
|
+
* True if the control is masked, otherwise false.
|
|
177
|
+
*/
|
|
178
|
+
readonly authorizedToUnmask: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the disabled state of the calling control.
|
|
181
|
+
* True if the control is disabled, otherwise false.
|
|
182
|
+
*/
|
|
183
|
+
readonly disabled: boolean;
|
|
169
184
|
/**
|
|
170
185
|
* Registers a function to be invoked whenever a state change event occurs.
|
|
171
186
|
* This function receives an object that contains information about the change event.
|
|
@@ -187,7 +202,7 @@ export interface ControlStateApi {
|
|
|
187
202
|
export interface ControlPageFieldApi {
|
|
188
203
|
/**
|
|
189
204
|
* Sets the value of the supplied field.
|
|
190
|
-
* This works only with fields for the current object
|
|
205
|
+
* This works only with fields for the current object with which the control is associated.
|
|
191
206
|
* For example, if the control is on a parent object, you cannot set a child's field.
|
|
192
207
|
* @method
|
|
193
208
|
* @param value {FieldTypeToValue<Type>} New field value.
|
|
@@ -196,7 +211,7 @@ export interface ControlPageFieldApi {
|
|
|
196
211
|
setFieldValue<Type extends FieldType>(value: FieldTypeToValue<Type>, field: string): void;
|
|
197
212
|
/**
|
|
198
213
|
* Returns the value of the supplied field.
|
|
199
|
-
* This works only with fields for the current object
|
|
214
|
+
* This works only with fields for the current object with which the control is associated.
|
|
200
215
|
* For example, if the control is on a parent object, you cannot get a child's field.
|
|
201
216
|
* @method
|
|
202
217
|
* @template {FieldType} File type.
|
|
@@ -234,7 +249,7 @@ export interface ControlPageApiBase {
|
|
|
234
249
|
*/
|
|
235
250
|
readonly isExternalObject: boolean;
|
|
236
251
|
/**
|
|
237
|
-
* Checks if the page is a
|
|
252
|
+
* Checks if the page is a Home page.
|
|
238
253
|
*/
|
|
239
254
|
readonly isHomepage: boolean;
|
|
240
255
|
/**
|
|
@@ -269,6 +284,10 @@ export interface ControlPageApi extends ControlPageApiBase {
|
|
|
269
284
|
* Methods related to the files associated with the page.
|
|
270
285
|
*/
|
|
271
286
|
file: ControlFileApi;
|
|
287
|
+
/**
|
|
288
|
+
* Methods related to the hookable events associated with the page.
|
|
289
|
+
*/
|
|
290
|
+
events: ControlPageEventsApi;
|
|
272
291
|
/**
|
|
273
292
|
* Returns the model of the page in which the calling control resides.
|
|
274
293
|
* @method
|
|
@@ -335,7 +354,7 @@ export interface ControlPageApi extends ControlPageApiBase {
|
|
|
335
354
|
* Toggle the page-level sliding panel. This panel should be used to contain information that is
|
|
336
355
|
* supplementary to the document, for example attachments or workflow tasks.
|
|
337
356
|
* @method
|
|
338
|
-
* @param [sectionLabel] {string} Describes the section, this should be
|
|
357
|
+
* @param [sectionLabel] {string} Describes the section, this should be internationalized.
|
|
339
358
|
* @param [content] {SlidingPanelContent} The content of the sliding panel.
|
|
340
359
|
* @param [panelProperties] {SlidingPanelProperties} Properties for the panel.
|
|
341
360
|
* When providing a url for content: the panel properties will be available on the controller's "slidingPanel" object.
|
|
@@ -354,7 +373,7 @@ export interface ControlPageApi extends ControlPageApiBase {
|
|
|
354
373
|
* If the user has not saved, the user is prompted to do so.
|
|
355
374
|
* @method
|
|
356
375
|
* @param closeTab {boolean} Checks if the tab should close after edit mode is cancelled.
|
|
357
|
-
* @returns A
|
|
376
|
+
* @returns A Promise that resolves when the edit has been cancelled.
|
|
358
377
|
*/
|
|
359
378
|
cancelEdit(closeTab: boolean): Promise<{
|
|
360
379
|
userSaved: boolean;
|
|
@@ -362,18 +381,18 @@ export interface ControlPageApi extends ControlPageApiBase {
|
|
|
362
381
|
/**
|
|
363
382
|
* Sets the page to be in edit mode. Used when clicking the Edit button.
|
|
364
383
|
* @method
|
|
365
|
-
* @returns A
|
|
384
|
+
* @returns A Promise that resolves when the page is put in edit mode.
|
|
366
385
|
*/
|
|
367
386
|
edit(): Promise<any>;
|
|
368
387
|
/**
|
|
369
|
-
* Refreshes the attachments grid to display new attachments when new attachment is uploaded.
|
|
388
|
+
* Refreshes the attachments grid to display new attachments when a new attachment is uploaded.
|
|
370
389
|
* @method
|
|
371
390
|
*/
|
|
372
391
|
refreshAttachments(): void;
|
|
373
392
|
/**
|
|
374
393
|
* Reloads an instance of a page.
|
|
375
394
|
* @method
|
|
376
|
-
* @returns A
|
|
395
|
+
* @returns A Promise that resolves when the page is reloaded.
|
|
377
396
|
*/
|
|
378
397
|
reloadPage(): Promise<void>;
|
|
379
398
|
/**
|
|
@@ -381,7 +400,7 @@ export interface ControlPageApi extends ControlPageApiBase {
|
|
|
381
400
|
* @method
|
|
382
401
|
* @param stopEditing {boolean} Checks if the page should leave edit mode after it is saved.
|
|
383
402
|
* @param closeObject {boolean} Checks if the page should be closed after it is saved.
|
|
384
|
-
* @returns A
|
|
403
|
+
* @returns A Promise which resolves when the page has been saved.
|
|
385
404
|
*/
|
|
386
405
|
save(stopEditing: boolean, closeObject: boolean): Promise<void>;
|
|
387
406
|
}
|
|
@@ -444,7 +463,7 @@ export interface ControlFileApi extends ControlFileApiBase {
|
|
|
444
463
|
*/
|
|
445
464
|
updateFile(updatedFile: SASUploadedFile): Promise<void>;
|
|
446
465
|
/**
|
|
447
|
-
*
|
|
466
|
+
* Creates a file operation to remove a file with a given ID.
|
|
448
467
|
*
|
|
449
468
|
* @method
|
|
450
469
|
* @param {string} id The ID of the file to remove.
|
|
@@ -460,3 +479,9 @@ export interface ControlFileApi extends ControlFileApiBase {
|
|
|
460
479
|
*/
|
|
461
480
|
onChange(handler: (change: FileChange) => void): void;
|
|
462
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Equivalent to {@link PageEventsApiBase} with the exception that event hooks will be scoped to the page on which the calling control resides.
|
|
484
|
+
* @extends PageEventsApiBase
|
|
485
|
+
*/
|
|
486
|
+
export interface ControlPageEventsApi extends PageEventsApiBase {
|
|
487
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldType } from "./data-types";
|
|
1
|
+
import { FieldType, NumberDataType } from "./data-types";
|
|
2
2
|
export interface RequirableRestriction {
|
|
3
3
|
required: boolean;
|
|
4
4
|
}
|
|
@@ -16,6 +16,10 @@ export interface NumericRestrictions extends FieldRestrictions {
|
|
|
16
16
|
scale?: number;
|
|
17
17
|
precision?: number;
|
|
18
18
|
}
|
|
19
|
+
export interface NumberRestrictions extends FieldRestrictions {
|
|
20
|
+
fieldDataType: NumberDataType;
|
|
21
|
+
precision?: number;
|
|
22
|
+
}
|
|
19
23
|
export interface ReferenceDataRestrictions extends FieldRestrictions {
|
|
20
24
|
constrainingListName: string;
|
|
21
25
|
cascadingReferenceDataName?: string;
|
package/event/event-api.d.ts
CHANGED
|
@@ -16,7 +16,9 @@ export declare enum PageEvents {
|
|
|
16
16
|
SelectNodeEvent = "spb::selectNode",
|
|
17
17
|
UpdateSubDocumentTypeEvent = "spb::updateSubDocumentType",
|
|
18
18
|
TabSelectedEvent = "spb::tabSelected",
|
|
19
|
-
VisitAllTabs = "spb::mark-all-tabs-visited"
|
|
19
|
+
VisitAllTabs = "spb::mark-all-tabs-visited",
|
|
20
|
+
MaskToggleEvent = "spb::mask-toggle",
|
|
21
|
+
MaskAllEvent = "spb::mask-all"
|
|
20
22
|
}
|
|
21
23
|
export interface Subscription {
|
|
22
24
|
unsubscribe(): void;
|
package/event/event-api.js
CHANGED
|
@@ -18,6 +18,8 @@ export var PageEvents;
|
|
|
18
18
|
PageEvents["UpdateSubDocumentTypeEvent"] = "spb::updateSubDocumentType";
|
|
19
19
|
PageEvents["TabSelectedEvent"] = "spb::tabSelected";
|
|
20
20
|
PageEvents["VisitAllTabs"] = "spb::mark-all-tabs-visited";
|
|
21
|
+
PageEvents["MaskToggleEvent"] = "spb::mask-toggle";
|
|
22
|
+
PageEvents["MaskAllEvent"] = "spb::mask-all";
|
|
21
23
|
})(PageEvents || (PageEvents = {}));
|
|
22
24
|
/**
|
|
23
25
|
* Callback function executed when subscription is triggered by an event.
|
package/index.d.ts
CHANGED
|
@@ -20,8 +20,9 @@ import { SheetApi } from "./sheet/sheet-api";
|
|
|
20
20
|
import { TabApi } from "./tab/tab-api";
|
|
21
21
|
import { ThemeApi } from "./theme/theme-api";
|
|
22
22
|
import { TraversalApi } from "./traversal/traversal-api";
|
|
23
|
+
import { ShellTabsApi } from "./shell-tabs/shell-tabs-api";
|
|
23
24
|
/**
|
|
24
|
-
* Common API Functions
|
|
25
|
+
* Common API Functions.
|
|
25
26
|
*/
|
|
26
27
|
export interface SviCommonApi {
|
|
27
28
|
component: ComponentApi;
|
|
@@ -41,6 +42,7 @@ export interface SviCommonApi {
|
|
|
41
42
|
theme: ThemeApi;
|
|
42
43
|
traversal: TraversalApi;
|
|
43
44
|
config: ConfigApi;
|
|
45
|
+
shellTabs: ShellTabsApi;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* The Client API.
|
|
@@ -52,7 +54,7 @@ export interface SviClientApi extends SviCommonApi {
|
|
|
52
54
|
tab: TabApi;
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
|
-
* The Admin API
|
|
57
|
+
* The Admin API.
|
|
56
58
|
*/
|
|
57
59
|
export interface SviAdminApi extends SviCommonApi {
|
|
58
60
|
metadata: AdminMetadataApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IIdentityOption } from "@sas/nexus-shared-ui/identities/input";
|
|
1
2
|
import { CoreStoredObjectField, Entity, Relationship, RelationshipDTO, StoredObjectDTO } from "../svi-datahub";
|
|
2
3
|
export interface NodeShapeMultipliers {
|
|
3
4
|
square: number;
|
|
@@ -28,8 +29,8 @@ export interface SandDataObject extends DataObject {
|
|
|
28
29
|
}
|
|
29
30
|
export interface DataObject extends PersistableObject {
|
|
30
31
|
name: string;
|
|
31
|
-
dataStoreName
|
|
32
|
-
tableName
|
|
32
|
+
dataStoreName?: string;
|
|
33
|
+
tableName?: string;
|
|
33
34
|
deleteTableName?: string;
|
|
34
35
|
readOnly: boolean;
|
|
35
36
|
archived: boolean;
|
|
@@ -78,6 +79,8 @@ export interface DataObjectField extends PersistableObject, LocalizableObject {
|
|
|
78
79
|
cascadingReferenceDataName?: string;
|
|
79
80
|
cascadingReferenceDataFilterByCode?: string;
|
|
80
81
|
cascadingReferenceDataFilterByField?: string;
|
|
82
|
+
masked?: boolean;
|
|
83
|
+
authorizedToRevealMasked?: IIdentityOption[];
|
|
81
84
|
[index: string]: any;
|
|
82
85
|
}
|
|
83
86
|
export interface LocalizableObject {
|
|
@@ -136,16 +139,16 @@ export interface ReferenceDataOptions {
|
|
|
136
139
|
export interface MetadataApi {
|
|
137
140
|
/**
|
|
138
141
|
* @method
|
|
139
|
-
* @description Gets create, read and update access rights for an entity.
|
|
142
|
+
* @description Gets create, read, and update access rights for an entity.
|
|
140
143
|
* @param objectType {string} Entity name.
|
|
141
|
-
* @returns Object with a
|
|
144
|
+
* @returns Object with a Promise of type boolean for each rule.
|
|
142
145
|
*/
|
|
143
146
|
getEntityAccessRules(objectType: string): EntityAccessRules;
|
|
144
147
|
/**
|
|
145
148
|
* @method
|
|
146
149
|
* @description Checks access rights and gets metadata for an entity. Returns undefined if the entity does not exist.
|
|
147
150
|
* @param objectType {string} Entity name.
|
|
148
|
-
* @returns A
|
|
151
|
+
* @returns A Promise containing the entity metadata.
|
|
149
152
|
*/
|
|
150
153
|
getEntity(objectType: string): Promise<StoredObjectDTO | undefined>;
|
|
151
154
|
/**
|
|
@@ -153,26 +156,26 @@ export interface MetadataApi {
|
|
|
153
156
|
* @description Gets metadata for an entity field.
|
|
154
157
|
* @param objectType {string} Entity name.
|
|
155
158
|
* @param fieldName {string} Field name.
|
|
156
|
-
* @returns A
|
|
159
|
+
* @returns A Promise containing the field metadata.
|
|
157
160
|
*/
|
|
158
161
|
getField(objectType: string, fieldName: string): Promise<CoreStoredObjectField>;
|
|
159
162
|
/**
|
|
160
163
|
* @method
|
|
161
164
|
* @description Gets managed entity types.
|
|
162
|
-
* @returns A
|
|
165
|
+
* @returns A Promise containing an array of managed entity types.
|
|
163
166
|
*/
|
|
164
167
|
getManagedEntityTypes(): Promise<StoredObjectDTO[]>;
|
|
165
168
|
/**
|
|
166
169
|
* @method
|
|
167
170
|
* @description Gets root type entities that are not child types.
|
|
168
|
-
* @returns A
|
|
171
|
+
* @returns A Promise containing an array of root types.
|
|
169
172
|
*/
|
|
170
173
|
getRootTypes(): Promise<StoredObjectDTO[]>;
|
|
171
174
|
/**
|
|
172
175
|
* @method
|
|
173
176
|
* @description Gets child entity types for a given entity.
|
|
174
177
|
* @param objectType {string} Checks for children for the named entity.
|
|
175
|
-
* @returns A
|
|
178
|
+
* @returns A Promise containing an array of child entity types or an empty list if none are found.
|
|
176
179
|
*/
|
|
177
180
|
getChildEntityTypes(objectType: string): Promise<StoredObjectDTO[]>;
|
|
178
181
|
/**
|
|
@@ -189,15 +192,15 @@ export interface MetadataApi {
|
|
|
189
192
|
getAllValidRelationshipTypes(objectType: string, relationshipObjectType?: string, relationshipName?: string): Promise<ValidRelationshipTypes>;
|
|
190
193
|
/**
|
|
191
194
|
* @method
|
|
192
|
-
* @description Gets metadata for all resolved entities
|
|
193
|
-
* @returns A
|
|
195
|
+
* @description Gets metadata for all resolved entities.
|
|
196
|
+
* @returns A Promise containing an array of the resolved entities metadata.
|
|
194
197
|
*/
|
|
195
198
|
getResolvedEntities(): Promise<Entity[]>;
|
|
196
199
|
/**
|
|
197
200
|
* @method
|
|
198
201
|
* @description Gets metadata for a resolved entity.
|
|
199
202
|
* @param objectType {string} Resolved Entity Name.
|
|
200
|
-
* @returns A
|
|
203
|
+
* @returns A Promise containing resolved entity metadata or undefined if none exists.
|
|
201
204
|
*/
|
|
202
205
|
getResolvedEntityMetadata(objectType: string): Promise<Entity | undefined>;
|
|
203
206
|
/**
|
|
@@ -212,8 +215,8 @@ export interface MetadataApi {
|
|
|
212
215
|
* @deprecated Use `getRootTypes()` and `getResolvedEntities()` instead.
|
|
213
216
|
*
|
|
214
217
|
* @method
|
|
215
|
-
* @description Gets metadata for both entities and resolved entities
|
|
216
|
-
* @returns A
|
|
218
|
+
* @description Gets metadata for both entities and resolved entities.
|
|
219
|
+
* @returns A Promise resolving to Search entity metadata.
|
|
217
220
|
*/
|
|
218
221
|
getSearchMetadata(): Promise<EntityMetadata>;
|
|
219
222
|
/**
|