@pilotdev/pilot-web-sdk 26.10.0 → 26.11.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/esm2022/lib/base/disposable.mjs +14 -0
- package/esm2022/lib/base/index.mjs +3 -0
- package/esm2022/lib/base/initializable.mjs +14 -0
- package/esm2022/lib/commands/command-builder.mjs +2 -0
- package/esm2022/lib/commands/index.mjs +2 -0
- package/esm2022/lib/contexts/bim-element-panel-context.mjs +16 -0
- package/esm2022/lib/contexts/bim-right-panel-context.mjs +16 -0
- package/esm2022/lib/contexts/context.mjs +32 -0
- package/esm2022/lib/contexts/dialog-context.mjs +10 -0
- package/esm2022/lib/contexts/document-annotations-list-context.mjs +16 -0
- package/esm2022/lib/contexts/index.mjs +10 -0
- package/esm2022/lib/contexts/object-card-context.mjs +63 -0
- package/esm2022/lib/contexts/page-context.mjs +3 -0
- package/esm2022/lib/contexts/render-context.mjs +24 -0
- package/esm2022/lib/contexts/settings-feature-context.mjs +21 -0
- package/esm2022/lib/data/access.mjs +26 -0
- package/esm2022/lib/data/annotations.mjs +34 -0
- package/esm2022/lib/data/attribute.mjs +17 -0
- package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +9 -0
- package/esm2022/lib/data/bim-features/bim-search-set.mjs +2 -0
- package/esm2022/lib/data/bim-features/index.mjs +3 -0
- package/esm2022/lib/data/cades-type.mjs +13 -0
- package/esm2022/lib/data/certificate.mjs +2 -0
- package/esm2022/lib/data/data-object.mjs +19 -0
- package/esm2022/lib/data/expected-error.mjs +9 -0
- package/esm2022/lib/data/file.mjs +2 -0
- package/esm2022/lib/data/files-snapshot.mjs +2 -0
- package/esm2022/lib/data/index.mjs +21 -0
- package/esm2022/lib/data/organisation-unit.mjs +7 -0
- package/esm2022/lib/data/person.mjs +2 -0
- package/esm2022/lib/data/relation.mjs +2 -0
- package/esm2022/lib/data/signature-custom-state.mjs +2 -0
- package/esm2022/lib/data/signature-verification-result.mjs +2 -0
- package/esm2022/lib/data/signature-verification-status.mjs +11 -0
- package/esm2022/lib/data/subscription-type.mjs +6 -0
- package/esm2022/lib/data/theme.mjs +6 -0
- package/esm2022/lib/data/user-state-machine.mjs +2 -0
- package/esm2022/lib/data/user-state.mjs +12 -0
- package/esm2022/lib/icrypto-provider.mjs +96 -0
- package/esm2022/lib/idata.plugin.mjs +11 -0
- package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +2 -0
- package/esm2022/lib/injectable/bim-features/bim-features.mjs +2 -0
- package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +2 -0
- package/esm2022/lib/injectable/bim-features/index.mjs +4 -0
- package/esm2022/lib/injectable/command-builder-provider.mjs +2 -0
- package/esm2022/lib/injectable/dialog-service.mjs +2 -0
- package/esm2022/lib/injectable/index.mjs +12 -0
- package/esm2022/lib/injectable/injection-source.mjs +55 -0
- package/esm2022/lib/injectable/ipersonal-settings.mjs +2 -0
- package/esm2022/lib/injectable/modifier-provider.mjs +2 -0
- package/esm2022/lib/injectable/objects-repository.mjs +2 -0
- package/esm2022/lib/injectable/progress-service.mjs +8 -0
- package/esm2022/lib/injectable/render-context-provider.mjs +2 -0
- package/esm2022/lib/injectable/repository-events.mjs +2 -0
- package/esm2022/lib/injectable/theme-service.mjs +2 -0
- package/esm2022/lib/menu/checkable-menu.builder.mjs +14 -0
- package/esm2022/lib/menu/index.mjs +5 -0
- package/esm2022/lib/menu/menu-item.builder.mjs +39 -0
- package/esm2022/lib/menu/menu.builder.mjs +68 -0
- package/esm2022/lib/menu/menu.mjs +23 -0
- package/esm2022/lib/modifier/attribute-modifier.mjs +2 -0
- package/esm2022/lib/modifier/index.mjs +5 -0
- package/esm2022/lib/modifier/modifier.mjs +2 -0
- package/esm2022/lib/modifier/object-builder.mjs +2 -0
- package/esm2022/lib/modifier/signature-modifier.mjs +2 -0
- package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +20 -0
- package/esm2022/lib/object-card/index.mjs +3 -0
- package/esm2022/lib/object-card/object-card-handler.mjs +30 -0
- package/esm2022/lib/openspace/index.mjs +2 -0
- package/esm2022/lib/openspace/openspace-view.mjs +29 -0
- package/esm2022/lib/page-navigation/index.mjs +5 -0
- package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +42 -0
- package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +47 -0
- package/esm2022/lib/page-navigation/page-navigation.builder.mjs +40 -0
- package/esm2022/lib/page-navigation/page-navigation.mjs +15 -0
- package/esm2022/lib/personal-settings/index.mjs +4 -0
- package/esm2022/lib/personal-settings/isettings-feature.mjs +42 -0
- package/esm2022/lib/personal-settings/isettings-value-provider.mjs +27 -0
- package/esm2022/lib/personal-settings/system-settings-keys.mjs +83 -0
- package/esm2022/lib/tabs/index.mjs +4 -0
- package/esm2022/lib/tabs/tab-item.builder.mjs +35 -0
- package/esm2022/lib/tabs/tabs.builder.mjs +40 -0
- package/esm2022/lib/tabs/tabs.mjs +15 -0
- package/esm2022/lib/toolbar/index.mjs +7 -0
- package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +11 -0
- package/esm2022/lib/toolbar/toolbar-item.builder.mjs +41 -0
- package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +15 -0
- package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +14 -0
- package/esm2022/lib/toolbar/toolbar.builder.mjs +88 -0
- package/esm2022/lib/toolbar/toolbar.mjs +28 -0
- package/esm2022/lib/tools/attribute-permission.info.mjs +45 -0
- package/esm2022/lib/tools/guid.mjs +53 -0
- package/esm2022/lib/tools/index.mjs +4 -0
- package/esm2022/lib/tools/utils.mjs +8 -0
- package/esm2022/pilotdev-pilot-web-sdk.mjs +5 -0
- package/esm2022/public-api.mjs +20 -0
- package/extensions.config.schema.json +171 -132
- package/fesm2022/pilotdev-pilot-web-sdk.mjs +1487 -0
- package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/base/disposable.d.ts +7 -0
- package/{src/lib/base/index.ts → lib/base/index.d.ts} +2 -2
- package/lib/base/initializable.d.ts +8 -0
- package/lib/commands/command-builder.d.ts +15 -0
- package/lib/commands/index.d.ts +1 -0
- package/lib/contexts/bim-element-panel-context.d.ts +8 -0
- package/lib/contexts/bim-right-panel-context.d.ts +8 -0
- package/lib/contexts/context.d.ts +22 -0
- package/lib/contexts/dialog-context.d.ts +5 -0
- package/lib/contexts/document-annotations-list-context.d.ts +12 -0
- package/{src/lib/contexts/index.ts → lib/contexts/index.d.ts} +1 -1
- package/lib/contexts/object-card-context.d.ts +41 -0
- package/lib/contexts/page-context.d.ts +2 -0
- package/lib/contexts/render-context.d.ts +17 -0
- package/lib/contexts/settings-feature-context.d.ts +11 -0
- package/lib/data/access.d.ts +35 -0
- package/lib/data/annotations.d.ts +113 -0
- package/lib/data/attribute.d.ts +30 -0
- package/lib/data/bim-features/bim-compare-diff.d.ts +15 -0
- package/lib/data/bim-features/bim-search-set.d.ts +13 -0
- package/lib/data/cades-type.d.ts +11 -0
- package/lib/data/certificate.d.ts +29 -0
- package/lib/data/data-object.d.ts +77 -0
- package/lib/data/expected-error.d.ts +5 -0
- package/lib/data/file.d.ts +30 -0
- package/lib/data/files-snapshot.d.ts +8 -0
- package/lib/data/organisation-unit.d.ts +20 -0
- package/lib/data/person.d.ts +17 -0
- package/lib/data/relation.d.ts +8 -0
- package/{src/lib/data/signature-custom-state.ts → lib/data/signature-custom-state.d.ts} +4 -4
- package/{src/lib/data/signature-verification-result.ts → lib/data/signature-verification-result.d.ts} +9 -13
- package/lib/data/signature-verification-status.d.ts +9 -0
- package/lib/data/subscription-type.d.ts +4 -0
- package/lib/data/theme.d.ts +7 -0
- package/lib/data/user-state-machine.d.ts +10 -0
- package/lib/data/user-state.d.ts +20 -0
- package/lib/icrypto-provider.d.ts +82 -0
- package/lib/idata.plugin.d.ts +6 -0
- package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +4 -0
- package/{src/lib/injectable/bim-features/bim-features.ts → lib/injectable/bim-features/bim-features.d.ts} +6 -8
- package/lib/injectable/bim-features/bim-search-set-service.d.ts +39 -0
- package/{src/lib/injectable/bim-features/index.ts → lib/injectable/bim-features/index.d.ts} +3 -3
- package/{src/lib/injectable/command-builder-provider.ts → lib/injectable/command-builder-provider.d.ts} +6 -7
- package/{src/lib/injectable/dialog-service.ts → lib/injectable/dialog-service.d.ts} +1 -2
- package/lib/injectable/injection-source.d.ts +26 -0
- package/lib/injectable/ipersonal-settings.d.ts +48 -0
- package/{src/lib/injectable/modifier-provider.ts → lib/injectable/modifier-provider.d.ts} +5 -6
- package/lib/injectable/objects-repository.d.ts +87 -0
- package/lib/injectable/progress-service.d.ts +18 -0
- package/lib/injectable/render-context-provider.d.ts +10 -0
- package/lib/injectable/repository-events.d.ts +31 -0
- package/{src/lib/injectable/theme-service.ts → lib/injectable/theme-service.d.ts} +3 -4
- package/lib/menu/checkable-menu.builder.d.ts +11 -0
- package/{src/lib/menu/index.ts → lib/menu/index.d.ts} +1 -2
- package/lib/menu/menu-item.builder.d.ts +27 -0
- package/lib/menu/menu.builder.d.ts +49 -0
- package/lib/menu/menu.d.ts +20 -0
- package/lib/modifier/attribute-modifier.d.ts +9 -0
- package/{src/lib/modifier/index.ts → lib/modifier/index.d.ts} +1 -1
- package/lib/modifier/modifier.d.ts +30 -0
- package/lib/modifier/object-builder.d.ts +140 -0
- package/lib/modifier/signature-modifier.d.ts +87 -0
- package/lib/object-card/attribute-value-changed-event-args.d.ts +10 -0
- package/{src/lib/object-card/index.ts → lib/object-card/index.d.ts} +2 -2
- package/lib/object-card/object-card-handler.d.ts +25 -0
- package/lib/openspace/openspace-view.d.ts +20 -0
- package/{src/lib/page-navigation/index.ts → lib/page-navigation/index.d.ts} +4 -4
- package/lib/page-navigation/page-navigation-section-element.builder.d.ts +29 -0
- package/lib/page-navigation/page-navigation-section.builder.d.ts +33 -0
- package/lib/page-navigation/page-navigation.builder.d.ts +28 -0
- package/lib/page-navigation/page-navigation.d.ts +9 -0
- package/lib/personal-settings/isettings-feature.d.ts +31 -0
- package/lib/personal-settings/isettings-value-provider.d.ts +17 -0
- package/lib/personal-settings/system-settings-keys.d.ts +82 -0
- package/lib/tabs/tab-item.builder.d.ts +24 -0
- package/lib/tabs/tabs.builder.d.ts +28 -0
- package/lib/tabs/tabs.d.ts +14 -0
- package/{src/lib/toolbar/index.ts → lib/toolbar/index.d.ts} +1 -2
- package/lib/toolbar/toolbar-item-submenu.handler.d.ts +9 -0
- package/lib/toolbar/toolbar-item.builder.d.ts +28 -0
- package/lib/toolbar/toolbar-menu-item.builder.d.ts +13 -0
- package/lib/toolbar/toolbar-toggle-item.builder.d.ts +11 -0
- package/lib/toolbar/toolbar.builder.d.ts +65 -0
- package/lib/toolbar/toolbar.d.ts +21 -0
- package/lib/tools/attribute-permission.info.d.ts +9 -0
- package/lib/tools/guid.d.ts +7 -0
- package/lib/tools/index.d.ts +3 -0
- package/lib/tools/utils.d.ts +3 -0
- package/package.json +17 -4
- package/{src/public-api.ts → public-api.d.ts} +0 -3
- package/.eslintrc.json +0 -31
- package/ng-package.json +0 -10
- package/src/lib/base/disposable.ts +0 -14
- package/src/lib/base/initializable.ts +0 -16
- package/src/lib/commands/command-builder.ts +0 -19
- package/src/lib/commands/index.ts +0 -1
- package/src/lib/contexts/bim-element-panel-context.ts +0 -22
- package/src/lib/contexts/bim-right-panel-context.ts +0 -22
- package/src/lib/contexts/context.ts +0 -38
- package/src/lib/contexts/dialog-context.ts +0 -10
- package/src/lib/contexts/document-annotations-list-context.ts +0 -21
- package/src/lib/contexts/object-card-context.ts +0 -81
- package/src/lib/contexts/page-context.ts +0 -1
- package/src/lib/contexts/render-context.ts +0 -28
- package/src/lib/contexts/settings-feature-context.ts +0 -26
- package/src/lib/data/access.ts +0 -40
- package/src/lib/data/annotations.ts +0 -160
- package/src/lib/data/attribute.ts +0 -33
- package/src/lib/data/bim-features/bim-compare-diff.ts +0 -16
- package/src/lib/data/bim-features/bim-search-set.ts +0 -16
- package/src/lib/data/cades-type.ts +0 -11
- package/src/lib/data/certificate.ts +0 -34
- package/src/lib/data/data-object.ts +0 -83
- package/src/lib/data/expected-error.ts +0 -10
- package/src/lib/data/file.ts +0 -33
- package/src/lib/data/files-snapshot.ts +0 -9
- package/src/lib/data/organisation-unit.ts +0 -22
- package/src/lib/data/person.ts +0 -17
- package/src/lib/data/relation.ts +0 -9
- package/src/lib/data/signature-verification-status.ts +0 -10
- package/src/lib/data/subscription-type.ts +0 -5
- package/src/lib/data/theme.ts +0 -9
- package/src/lib/data/user-state-machine.ts +0 -11
- package/src/lib/data/user-state.ts +0 -21
- package/src/lib/icrypto-provider.ts +0 -106
- package/src/lib/idata.plugin.ts +0 -10
- package/src/lib/injectable/bim-features/bim-compare-diff-service.ts +0 -5
- package/src/lib/injectable/bim-features/bim-search-set-service.ts +0 -44
- package/src/lib/injectable/injection-source.ts +0 -66
- package/src/lib/injectable/ipersonal-settings.ts +0 -53
- package/src/lib/injectable/objects-repository.ts +0 -88
- package/src/lib/injectable/progress-service.ts +0 -20
- package/src/lib/injectable/render-context-provider.ts +0 -11
- package/src/lib/injectable/repository-events.ts +0 -33
- package/src/lib/menu/checkable-menu.builder.ts +0 -15
- package/src/lib/menu/menu-item.builder.ts +0 -45
- package/src/lib/menu/menu.builder.ts +0 -79
- package/src/lib/menu/menu.ts +0 -26
- package/src/lib/modifier/attribute-modifier.ts +0 -9
- package/src/lib/modifier/modifier.ts +0 -31
- package/src/lib/modifier/object-builder.ts +0 -143
- package/src/lib/modifier/signature-modifier.ts +0 -99
- package/src/lib/object-card/attribute-value-changed-event-args.ts +0 -25
- package/src/lib/object-card/object-card-handler.ts +0 -36
- package/src/lib/openspace/openspace-view.ts +0 -32
- package/src/lib/page-navigation/page-navigation-section-element.builder.ts +0 -45
- package/src/lib/page-navigation/page-navigation-section.builder.ts +0 -53
- package/src/lib/page-navigation/page-navigation.builder.ts +0 -45
- package/src/lib/page-navigation/page-navigation.ts +0 -17
- package/src/lib/personal-settings/isettings-feature.ts +0 -43
- package/src/lib/personal-settings/isettings-value-provider.ts +0 -28
- package/src/lib/personal-settings/system-settings-keys.ts +0 -101
- package/src/lib/tabs/tab-item.builder.ts +0 -37
- package/src/lib/tabs/tabs.builder.ts +0 -45
- package/src/lib/tabs/tabs.ts +0 -17
- package/src/lib/toolbar/toolbar-item-submenu.handler.ts +0 -12
- package/src/lib/toolbar/toolbar-item.builder.ts +0 -45
- package/src/lib/toolbar/toolbar-menu-item.builder.ts +0 -16
- package/src/lib/toolbar/toolbar-toggle-item.builder.ts +0 -15
- package/src/lib/toolbar/toolbar.builder.ts +0 -104
- package/src/lib/toolbar/toolbar.ts +0 -33
- package/src/lib/tools/attribute-permission.info.ts +0 -54
- package/src/lib/tools/guid.ts +0 -63
- package/src/lib/tools/index.ts +0 -3
- package/src/lib/tools/utils.ts +0 -8
- package/src/typegen.ts +0 -149
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- /package/{src/lib/data/bim-features/index.ts → lib/data/bim-features/index.d.ts} +0 -0
- /package/{src/lib/data/index.ts → lib/data/index.d.ts} +0 -0
- /package/{src/lib/injectable/index.ts → lib/injectable/index.d.ts} +0 -0
- /package/{src/lib/openspace/index.ts → lib/openspace/index.d.ts} +0 -0
- /package/{src/lib/personal-settings/index.ts → lib/personal-settings/index.d.ts} +0 -0
- /package/{src/lib/tabs/index.ts → lib/tabs/index.d.ts} +0 -0
package/src/lib/menu/menu.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { DocumentAnnotationsListContext, ObjectsViewContext } from "../contexts";
|
|
2
|
-
import { IMenuBuilder } from "./menu.builder";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface that allows to add new items to the menu and context menus
|
|
6
|
-
* @exposedInterface
|
|
7
|
-
*/
|
|
8
|
-
export abstract class IMenu<TMenuContext extends ObjectsViewContext | DocumentAnnotationsListContext> {
|
|
9
|
-
/**
|
|
10
|
-
* The method is called just before the menu is shown
|
|
11
|
-
* @param builder The menu builder object of associated menu
|
|
12
|
-
* @param context Context
|
|
13
|
-
*/
|
|
14
|
-
build(builder: IMenuBuilder, context: TMenuContext): void {
|
|
15
|
-
throw new Error("Method 'build(builder: IMenuBuilder, context: TMenuContext)' must be implemented.");
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param name
|
|
21
|
-
* @param context
|
|
22
|
-
*/
|
|
23
|
-
onMenuItemClick(name: string, context: TMenuContext): void {
|
|
24
|
-
throw new Error("Method 'onMenuItemClick(name: string, context: TMenuContext)' must be implemented.");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs/internal/Observable";
|
|
2
|
-
import { IDataObject } from "../data";
|
|
3
|
-
import { IObjectBuilder } from "./object-builder";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Creates, modifies and deletes objects
|
|
7
|
-
*/
|
|
8
|
-
export interface IModifier {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new object
|
|
11
|
-
*
|
|
12
|
-
* @param id New object id
|
|
13
|
-
* @param parentId Parent id
|
|
14
|
-
* @param typeId Creating object's type id
|
|
15
|
-
* @return Fluent interface that enables you to modify created object
|
|
16
|
-
*/
|
|
17
|
-
create(id: string, parentId: string, typeId: number): IObjectBuilder;
|
|
18
|
-
/**
|
|
19
|
-
* Edits existing object
|
|
20
|
-
*
|
|
21
|
-
* @param id Id of object to modify
|
|
22
|
-
* @returns Fluent interface that enables you to modify created object
|
|
23
|
-
*/
|
|
24
|
-
edit(id: string) : IObjectBuilder;
|
|
25
|
-
/**
|
|
26
|
-
* Applies all the changes have been made in modifier
|
|
27
|
-
*
|
|
28
|
-
* @returns Created and edited objects wrapped in cold Observable
|
|
29
|
-
*/
|
|
30
|
-
apply(): Observable<IDataObject[]>;
|
|
31
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { AttributeType } from "../data/attribute";
|
|
2
|
-
import { IAnnotationContainer, IMarkup } from "../data/annotations";
|
|
3
|
-
import { IAccessRecord } from "../data/access";
|
|
4
|
-
import { IRelation } from "../data/relation";
|
|
5
|
-
import { ISignatureModifier } from "./signature-modifier";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Fluent interface that enables you to modify the associated object
|
|
9
|
-
*/
|
|
10
|
-
export interface IObjectBuilder {
|
|
11
|
-
/**
|
|
12
|
-
* Sets the string attribute value
|
|
13
|
-
*
|
|
14
|
-
* @param name Attribute name
|
|
15
|
-
* @param value Attribute value
|
|
16
|
-
* @returns Self
|
|
17
|
-
*/
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
-
setAttribute(name: string, value: any, type: AttributeType): IObjectBuilder;
|
|
20
|
-
/**
|
|
21
|
-
* Adds access record to an object
|
|
22
|
-
*
|
|
23
|
-
* @param record Access record
|
|
24
|
-
* @returns Self
|
|
25
|
-
*/
|
|
26
|
-
setAccess(record: IAccessRecord): IObjectBuilder;
|
|
27
|
-
/**
|
|
28
|
-
* Removes access record
|
|
29
|
-
*
|
|
30
|
-
* @param record Access record
|
|
31
|
-
* @returns Self
|
|
32
|
-
*/
|
|
33
|
-
removeAccess(record: IAccessRecord): IObjectBuilder;
|
|
34
|
-
/**
|
|
35
|
-
* Adds a relation
|
|
36
|
-
*
|
|
37
|
-
* @param relation Relation
|
|
38
|
-
* @returns Self
|
|
39
|
-
*/
|
|
40
|
-
addRelation(relation: IRelation): IObjectBuilder;
|
|
41
|
-
/**
|
|
42
|
-
* Removes relation
|
|
43
|
-
*
|
|
44
|
-
* @param relationId Relation id
|
|
45
|
-
* @returns Self
|
|
46
|
-
*/
|
|
47
|
-
removeRelation(relationId: string): IObjectBuilder;
|
|
48
|
-
/**
|
|
49
|
-
* Sets new type. It is recommended to use this method only for recovering permanently deleted objects. In other cases, this can lead to system malfunction.
|
|
50
|
-
*
|
|
51
|
-
* @param typeId Type id
|
|
52
|
-
* @returns Self
|
|
53
|
-
*/
|
|
54
|
-
setTypeId(typeId: number): IObjectBuilder;
|
|
55
|
-
/**
|
|
56
|
-
* Sets new parent
|
|
57
|
-
*
|
|
58
|
-
* @param parentId Parent id
|
|
59
|
-
* @returns Self
|
|
60
|
-
*/
|
|
61
|
-
setParentId(parentId: string): IObjectBuilder;
|
|
62
|
-
/**
|
|
63
|
-
* Adds file snapshot
|
|
64
|
-
*
|
|
65
|
-
* @param reason Reason
|
|
66
|
-
* @returns Self
|
|
67
|
-
*/
|
|
68
|
-
createSnapshot(reason: string): IObjectBuilder;
|
|
69
|
-
/**
|
|
70
|
-
* Makes file snapshot actual
|
|
71
|
-
*
|
|
72
|
-
* @param version Version of file snapshot to make actual
|
|
73
|
-
* @param reason Reason
|
|
74
|
-
* @returns Self
|
|
75
|
-
*/
|
|
76
|
-
createSnapshotFrom(version: string, reason: string): IObjectBuilder;
|
|
77
|
-
/**
|
|
78
|
-
* Adds a new file to the associated object
|
|
79
|
-
*
|
|
80
|
-
* @param file File identificator
|
|
81
|
-
* @param file File interface
|
|
82
|
-
* @param creationTime File creation time
|
|
83
|
-
* @param lastAccessTime File last access time
|
|
84
|
-
* @param lastWriteTime File last write time
|
|
85
|
-
* @returns Fluent interface that enables you to modify the associated object
|
|
86
|
-
*/
|
|
87
|
-
addFile(fileId: string, file: File, creationTime: Date, lastAccessTime: Date, lastWriteTime: Date): IObjectBuilder;
|
|
88
|
-
/**
|
|
89
|
-
* Removes file from actual file snapshot by identifier
|
|
90
|
-
* @param fileId file identificator
|
|
91
|
-
* @returns Fluent interface that enables you to modify the associated object
|
|
92
|
-
*/
|
|
93
|
-
removeFile(fileId: string): IObjectBuilder;
|
|
94
|
-
/**
|
|
95
|
-
* Sets permanently deleted flag
|
|
96
|
-
*
|
|
97
|
-
* @param isDeleted Value
|
|
98
|
-
* @returns Self
|
|
99
|
-
*/
|
|
100
|
-
setIsDeleted(isDeleted: boolean): IObjectBuilder;
|
|
101
|
-
/**
|
|
102
|
-
* Set flag in recycle bin
|
|
103
|
-
*
|
|
104
|
-
* @param isInRecycleBin Value
|
|
105
|
-
* @returns Self
|
|
106
|
-
*/
|
|
107
|
-
setIsInRecycleBin(isInRecycleBin: boolean): IObjectBuilder;
|
|
108
|
-
/**
|
|
109
|
-
* Sets frozen flag
|
|
110
|
-
*
|
|
111
|
-
* @param isFreezed Value
|
|
112
|
-
* @returns Self
|
|
113
|
-
*/
|
|
114
|
-
setIsFreezed(isFreezed: boolean): IObjectBuilder;
|
|
115
|
-
/**
|
|
116
|
-
* Sets object's secret info
|
|
117
|
-
*
|
|
118
|
-
* @param isSecret Value
|
|
119
|
-
* @returns Self
|
|
120
|
-
*/
|
|
121
|
-
setIsSecret(isSecret: boolean): IObjectBuilder;
|
|
122
|
-
/**
|
|
123
|
-
* Adds or changes a annotation
|
|
124
|
-
*
|
|
125
|
-
* @param container Annotation container
|
|
126
|
-
* @param attrbutes Annotation attributes
|
|
127
|
-
* @returns Self
|
|
128
|
-
*/
|
|
129
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
130
|
-
addAnnotationContainer(container: IAnnotationContainer, attrbutes: any): IObjectBuilder;
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
133
|
-
* @param markups
|
|
134
|
-
*/
|
|
135
|
-
addMarkups(markups: IMarkup[]): IObjectBuilder;
|
|
136
|
-
/**
|
|
137
|
-
* Sets new signature requests to the selected file
|
|
138
|
-
*
|
|
139
|
-
* @param fileId file id
|
|
140
|
-
* @returns Fluent interface that enables you to modify the signatures of the filtered files
|
|
141
|
-
*/
|
|
142
|
-
setSignatures(fileId: string): ISignatureModifier;
|
|
143
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ISignatureRequest, CadesType } from "../data";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface for modifying digital signature requests.
|
|
5
|
-
*/
|
|
6
|
-
export interface ISignatureModifier {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new signature request with the given ID.
|
|
10
|
-
*
|
|
11
|
-
* @param signatureRequestId - The ID of the signature request to create.
|
|
12
|
-
* @returns An instance of ISignatureBuilder for further configuration.
|
|
13
|
-
*/
|
|
14
|
-
create(signatureRequestId: string): ISignatureBuilder;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Edits an existing signature request with the given ID.
|
|
18
|
-
*
|
|
19
|
-
* @param signatureRequest - The signature request to edit.
|
|
20
|
-
* @returns An instance of ISignatureBuilder for further configuration.
|
|
21
|
-
*/
|
|
22
|
-
edit(signatureRequest: ISignatureRequest): ISignatureBuilder;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Removes an existing signature request with the given ID.
|
|
26
|
-
*
|
|
27
|
-
* @param signatureRequestId - The ID of the signature request to remove.
|
|
28
|
-
*/
|
|
29
|
-
remove(signatureRequestId: string): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Interface for building digital signature requests.
|
|
34
|
-
*/
|
|
35
|
-
export interface ISignatureBuilder {
|
|
36
|
-
/**
|
|
37
|
-
* Sets the position ID for the signature.
|
|
38
|
-
*
|
|
39
|
-
* @param positionId - The ID of the person position associated with the request.
|
|
40
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
41
|
-
*/
|
|
42
|
-
withPositionId(positionId: number): ISignatureBuilder;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Sets the role for the signature.
|
|
46
|
-
*
|
|
47
|
-
* @param role - The role associated with the signature.
|
|
48
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
49
|
-
*/
|
|
50
|
-
withRole(role: string): ISignatureBuilder;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Sets the flag sign for the signature.
|
|
54
|
-
*
|
|
55
|
-
* @param sign - The sign associated with the signature.
|
|
56
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
57
|
-
*/
|
|
58
|
-
withSign(sign: string): ISignatureBuilder;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Sets the request signer for the signature.
|
|
62
|
-
*
|
|
63
|
-
* @param requestSigner - The request signer associated with the signature.
|
|
64
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
65
|
-
*/
|
|
66
|
-
withRequestSigner(requestSigner: string): ISignatureBuilder;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Sets the object ID for the signature.
|
|
70
|
-
*
|
|
71
|
-
* @param objectId - The ID of the object associated with the signature.
|
|
72
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
73
|
-
*/
|
|
74
|
-
withObjectId(objectId: string): ISignatureBuilder;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Set certificate's public key oid for the signature.
|
|
78
|
-
*
|
|
79
|
-
* @param publicKeyOid - certificate's public key oid.
|
|
80
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
81
|
-
*/
|
|
82
|
-
withPublicKeyOid(publicKeyOid: string): ISignatureBuilder;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Set cades type of last signature.
|
|
86
|
-
*
|
|
87
|
-
* @param cadesType - cades type.
|
|
88
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
89
|
-
*/
|
|
90
|
-
withLastSignCadesType(cadesType: CadesType): ISignatureBuilder
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Set requirement property for advancement of the signature.
|
|
94
|
-
*
|
|
95
|
-
* @param needAdvancement - signature needs advancement.
|
|
96
|
-
* @returns This instance of ISignatureBuilder for method chaining.
|
|
97
|
-
*/
|
|
98
|
-
withIsAdvancementRequired(needAdvancement: boolean): ISignatureBuilder
|
|
99
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ObjectCardContext } from "../contexts/object-card-context";
|
|
2
|
-
|
|
3
|
-
export class AttributeValueChangedEventArgs {
|
|
4
|
-
private readonly _oldValue: unknown;
|
|
5
|
-
private readonly _newValue: unknown;
|
|
6
|
-
private readonly _context: ObjectCardContext;
|
|
7
|
-
|
|
8
|
-
constructor(oldValue: unknown, newValue: unknown, context: ObjectCardContext) {
|
|
9
|
-
this._oldValue = oldValue;
|
|
10
|
-
this._newValue = newValue;
|
|
11
|
-
this._context = context;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public get oldValue(): unknown {
|
|
15
|
-
return this._oldValue;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public get newValue(): unknown {
|
|
19
|
-
return this._newValue;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public get context(): ObjectCardContext {
|
|
23
|
-
return this._context;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ObjectCardContext } from "../contexts/object-card-context";
|
|
2
|
-
import { IAttribute } from "../data";
|
|
3
|
-
import { IAttributeModifier } from "../modifier/attribute-modifier";
|
|
4
|
-
import { AttributeValueChangedEventArgs } from "./attribute-value-changed-event-args";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Enables support for handling changing object attributes in object card
|
|
8
|
-
* @exposedInterface
|
|
9
|
-
*/
|
|
10
|
-
export abstract class IObjectCardHandler {
|
|
11
|
-
constructor() {
|
|
12
|
-
if (this.constructor == IObjectCardHandler) {
|
|
13
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Handle show object card
|
|
19
|
-
*
|
|
20
|
-
* @param modifier - Attribute modifier
|
|
21
|
-
* @param context - Context
|
|
22
|
-
*/
|
|
23
|
-
handle(modifier: IAttributeModifier, context: ObjectCardContext): void {
|
|
24
|
-
throw new Error("Method 'handle(modifier: IAttributeModifier, context: ObjectCardContext)' must be implemented.");
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The method called when attribute value has changed
|
|
29
|
-
* @param sender - Changed attribute
|
|
30
|
-
* @param args - Attribute change event args
|
|
31
|
-
* @param modifier - Attribute modifier
|
|
32
|
-
*/
|
|
33
|
-
onValueChanged(sender: IAttribute, args: AttributeValueChangedEventArgs, modifier: IAttributeModifier): void {
|
|
34
|
-
throw new Error("Method 'onValueChanged(sender: IAttribute, args: AttributeValueChangedEventArgs, modifier: IAttributeModifier)' must be implemented.");
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BimElementPanelContext, BimRightPanelContext, DialogContext, ObjectsViewContext, PageContext, SettingsFeatureContext } from "../contexts";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Class that allows to declare the view for the openspace container
|
|
5
|
-
* @exposedInterface
|
|
6
|
-
*/
|
|
7
|
-
export abstract class IOpenspaceView<TOpenspaceViewContext extends BimElementPanelContext | BimRightPanelContext | ObjectsViewContext | PageContext | SettingsFeatureContext | DialogContext> {
|
|
8
|
-
constructor() {
|
|
9
|
-
if (this.constructor == IOpenspaceView<TOpenspaceViewContext>) {
|
|
10
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The method is called to match this View to the corresponding openspace container
|
|
16
|
-
*
|
|
17
|
-
* Should be identical with corresponding container's `withViewId(id: string)`
|
|
18
|
-
* @returns {string}
|
|
19
|
-
*/
|
|
20
|
-
getViewId(): string {
|
|
21
|
-
throw new Error("Method 'getViewId()' must be implemented.");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The method is called just before the openspace container's view is shown
|
|
26
|
-
* @param context - context
|
|
27
|
-
*/
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
-
getView(context: TOpenspaceViewContext): HTMLElement | undefined {
|
|
30
|
-
throw new Error("Method 'getView(context: TOpenspaceViewContext)' must be implemented.");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a builder for navigation window section's element
|
|
3
|
-
*/
|
|
4
|
-
export abstract class IPageNavigationSectionElementBuilder {
|
|
5
|
-
constructor() {
|
|
6
|
-
if (this.constructor == IPageNavigationSectionElementBuilder) {
|
|
7
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Element's title to be displayed
|
|
13
|
-
* @param title value
|
|
14
|
-
*/
|
|
15
|
-
withTitle(title: string): IPageNavigationSectionElementBuilder {
|
|
16
|
-
throw new Error("Method 'withTitle(title: string)' must be implemented.");
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Element's title to be displayed
|
|
21
|
-
* @param description value
|
|
22
|
-
*/
|
|
23
|
-
withDescription(description: string): IPageNavigationSectionElementBuilder {
|
|
24
|
-
throw new Error("Method 'withDescription(description: string)' must be implemented.");
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Element's icon
|
|
29
|
-
* @param name Icon name
|
|
30
|
-
* @param iconSvg Url of icon or base64 string
|
|
31
|
-
*/
|
|
32
|
-
withIcon(name: string, iconSvg: string): IPageNavigationSectionElementBuilder {
|
|
33
|
-
throw new Error("Method 'withIcon(name: string, iconSvg: string)' must be implemented.");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Element's view id
|
|
38
|
-
*
|
|
39
|
-
* Is matched with corresponding IOpenspaceView's `getViewId(): string`
|
|
40
|
-
* @param value - View Id
|
|
41
|
-
*/
|
|
42
|
-
withViewId(value: string): IPageNavigationSectionElementBuilder {
|
|
43
|
-
throw new Error("Method 'withViewId(value: string)' must be implemented.");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { IPageNavigationSectionElementBuilder } from './page-navigation-section-element.builder';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents a builder for the navigation window's section
|
|
5
|
-
*/
|
|
6
|
-
export abstract class IPageNavigationSectionBuilder {
|
|
7
|
-
constructor() {
|
|
8
|
-
if (this.constructor == IPageNavigationSectionBuilder) {
|
|
9
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Section's title to be displayed
|
|
15
|
-
* @param title value
|
|
16
|
-
*/
|
|
17
|
-
withTitle(title: string): IPageNavigationSectionBuilder {
|
|
18
|
-
throw new Error("Method 'withTitle(title: string)' must be implemented.");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Gets the list of existing element ids of the section
|
|
23
|
-
* @returns Existing element ids
|
|
24
|
-
*/
|
|
25
|
-
get elementIds(): string[] {
|
|
26
|
-
throw new Error("Getter 'elementIds()' must be implemented.");
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Gets count of section's elements
|
|
31
|
-
*/
|
|
32
|
-
get count(): number {
|
|
33
|
-
throw new Error("Getter 'count()' must be implemented.");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Adds a new element to the section
|
|
38
|
-
* @param id Element's internal id
|
|
39
|
-
* @param index The index to put the new element at
|
|
40
|
-
*/
|
|
41
|
-
addElement(id: string, index: number): IPageNavigationSectionElementBuilder {
|
|
42
|
-
throw new Error("Method 'addElement(id: string, index: number)' must be implemented.");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Replaces the element of the section
|
|
47
|
-
* If element does not exist - creates it
|
|
48
|
-
* @param id Elements's internal id
|
|
49
|
-
*/
|
|
50
|
-
replaceElement(id: string): IPageNavigationSectionElementBuilder {
|
|
51
|
-
throw new Error("Method 'replaceElement(id: string)' must be implemented.");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IPageNavigationSectionBuilder } from './page-navigation-section.builder';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents a builder for navigation window
|
|
5
|
-
*/
|
|
6
|
-
export abstract class IPageNavigationBuilder {
|
|
7
|
-
constructor() {
|
|
8
|
-
if (this.constructor == IPageNavigationBuilder) {
|
|
9
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Gets the list of existing section ids of the navigation window
|
|
15
|
-
* @returns Existing section ids
|
|
16
|
-
*/
|
|
17
|
-
get sectionIds(): string[] {
|
|
18
|
-
throw new Error("Getter 'sectionIds()' must be implemented.");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Gets count of navigation window's elements
|
|
23
|
-
*/
|
|
24
|
-
get count(): number {
|
|
25
|
-
throw new Error("Getter 'count()' must be implemented.");
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Adds a new section to the navigation window
|
|
30
|
-
* @param id Sections's internal id
|
|
31
|
-
* @param index The index to put the new section at
|
|
32
|
-
*/
|
|
33
|
-
addSection(id: string, index: number): IPageNavigationSectionBuilder {
|
|
34
|
-
throw new Error("Method 'addElement(id: string, index: number)' must be implemented.");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Replaces the section of the navigation window
|
|
39
|
-
* If element does not exist - creates it
|
|
40
|
-
* @param id Elements's internal id
|
|
41
|
-
*/
|
|
42
|
-
replaceSection(id: string): IPageNavigationSectionBuilder {
|
|
43
|
-
throw new Error("Method 'replaceElement(id: string)' must be implemented.");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IPageNavigationBuilder } from './page-navigation.builder';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface that allows to add new sections and elements to navigation window
|
|
5
|
-
* @exposedInterface
|
|
6
|
-
*/
|
|
7
|
-
export abstract class IPageNavigation {
|
|
8
|
-
constructor() {
|
|
9
|
-
if (this.constructor == IPageNavigation) {
|
|
10
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
build(builder: IPageNavigationBuilder): void {
|
|
15
|
-
throw new Error("Method 'build(builder: IOpenspaceBuilder)' must be implemented.");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extension interface that enables you to register the view on settings dialog
|
|
3
|
-
* @interface ISettingsFeature
|
|
4
|
-
* @exposedInterface
|
|
5
|
-
*/
|
|
6
|
-
export abstract class ISettingsFeature {
|
|
7
|
-
constructor() {
|
|
8
|
-
if (this.constructor == ISettingsFeature) {
|
|
9
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Gets the unique id of the settings item
|
|
14
|
-
* @readonly
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof ISettingsFeature
|
|
17
|
-
*/
|
|
18
|
-
get key(): string {
|
|
19
|
-
throw new Error("Getter 'key()' must be implemented.");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Gets the display title of the settings item
|
|
24
|
-
* @readonly
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ISettingsFeature
|
|
27
|
-
*/
|
|
28
|
-
get title(): string {
|
|
29
|
-
throw new Error("Getter 'title()' must be implemented.");
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Gets the value editor view id for the settings feature item
|
|
34
|
-
*
|
|
35
|
-
* Is matched with corresponding IOpenspaceView's `getViewId(): string`
|
|
36
|
-
* @readonly
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof ISettingsFeature
|
|
39
|
-
*/
|
|
40
|
-
get editorViewId(): string {
|
|
41
|
-
throw new Error("Getter 'editorViewId()' must be implemented.");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for a personal setting value provider
|
|
3
|
-
* @interface ISettingValueProvider
|
|
4
|
-
*/
|
|
5
|
-
export abstract class ISettingValueProvider {
|
|
6
|
-
constructor() {
|
|
7
|
-
if (this.constructor == ISettingValueProvider) {
|
|
8
|
-
throw new Error("Abstract classes can't be instantiated.");
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Gets the current setting value.
|
|
14
|
-
* @returns {string} The current setting value.
|
|
15
|
-
*/
|
|
16
|
-
getValue(): string {
|
|
17
|
-
throw new Error("Method 'getValue()' must be implemented.");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Sets the setting value.
|
|
22
|
-
* @param {string} value - The new setting value.
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
|
-
setValue(value: string): void {
|
|
26
|
-
throw new Error("Method 'setValue(value: string)' must be implemented.");
|
|
27
|
-
}
|
|
28
|
-
}
|