@pilotdev/pilot-web-sdk 26.9.0 → 26.10.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/.eslintrc.json +31 -0
- package/extensions.config.schema.json +132 -171
- package/ng-package.json +10 -0
- package/package.json +4 -17
- package/src/lib/base/disposable.ts +14 -0
- package/{lib/base/index.d.ts → src/lib/base/index.ts} +2 -2
- package/src/lib/base/initializable.ts +16 -0
- package/src/lib/commands/command-builder.ts +19 -0
- package/src/lib/commands/index.ts +1 -0
- package/src/lib/contexts/bim-element-panel-context.ts +22 -0
- package/src/lib/contexts/bim-right-panel-context.ts +22 -0
- package/src/lib/contexts/context.ts +38 -0
- package/src/lib/contexts/dialog-context.ts +10 -0
- package/src/lib/contexts/document-annotations-list-context.ts +21 -0
- package/{lib/contexts/index.d.ts → src/lib/contexts/index.ts} +1 -1
- package/src/lib/contexts/object-card-context.ts +81 -0
- package/src/lib/contexts/page-context.ts +1 -0
- package/src/lib/contexts/render-context.ts +28 -0
- package/src/lib/contexts/settings-feature-context.ts +26 -0
- package/src/lib/data/access.ts +40 -0
- package/src/lib/data/annotations.ts +160 -0
- package/src/lib/data/attribute.ts +33 -0
- package/src/lib/data/bim-features/bim-compare-diff.ts +16 -0
- package/src/lib/data/bim-features/bim-search-set.ts +16 -0
- package/src/lib/data/cades-type.ts +11 -0
- package/src/lib/data/certificate.ts +34 -0
- package/src/lib/data/data-object.ts +83 -0
- package/src/lib/data/expected-error.ts +10 -0
- package/src/lib/data/file.ts +33 -0
- package/src/lib/data/files-snapshot.ts +9 -0
- package/src/lib/data/organisation-unit.ts +22 -0
- package/src/lib/data/person.ts +17 -0
- package/src/lib/data/relation.ts +9 -0
- package/{lib/data/signature-custom-state.d.ts → src/lib/data/signature-custom-state.ts} +4 -4
- package/{lib/data/signature-verification-result.d.ts → src/lib/data/signature-verification-result.ts} +13 -9
- package/src/lib/data/signature-verification-status.ts +10 -0
- package/src/lib/data/subscription-type.ts +5 -0
- package/src/lib/data/theme.ts +9 -0
- package/src/lib/data/user-state-machine.ts +11 -0
- package/src/lib/data/user-state.ts +21 -0
- package/src/lib/icrypto-provider.ts +106 -0
- package/src/lib/idata.plugin.ts +10 -0
- package/src/lib/injectable/bim-features/bim-compare-diff-service.ts +5 -0
- package/{lib/injectable/bim-features/bim-features.d.ts → src/lib/injectable/bim-features/bim-features.ts} +8 -6
- package/src/lib/injectable/bim-features/bim-search-set-service.ts +44 -0
- package/{lib/injectable/bim-features/index.d.ts → src/lib/injectable/bim-features/index.ts} +3 -3
- package/{lib/injectable/command-builder-provider.d.ts → src/lib/injectable/command-builder-provider.ts} +7 -6
- package/{lib/injectable/dialog-service.d.ts → src/lib/injectable/dialog-service.ts} +2 -1
- package/src/lib/injectable/injection-source.ts +66 -0
- package/src/lib/injectable/ipersonal-settings.ts +53 -0
- package/{lib/injectable/modifier-provider.d.ts → src/lib/injectable/modifier-provider.ts} +6 -5
- package/src/lib/injectable/objects-repository.ts +88 -0
- package/src/lib/injectable/progress-service.ts +20 -0
- package/src/lib/injectable/render-context-provider.ts +11 -0
- package/src/lib/injectable/repository-events.ts +33 -0
- package/{lib/injectable/theme-service.d.ts → src/lib/injectable/theme-service.ts} +4 -3
- package/src/lib/menu/checkable-menu.builder.ts +15 -0
- package/{lib/menu/index.d.ts → src/lib/menu/index.ts} +2 -1
- package/src/lib/menu/menu-item.builder.ts +45 -0
- package/src/lib/menu/menu.builder.ts +79 -0
- package/src/lib/menu/menu.ts +26 -0
- package/src/lib/modifier/attribute-modifier.ts +9 -0
- package/{lib/modifier/index.d.ts → src/lib/modifier/index.ts} +1 -1
- package/src/lib/modifier/modifier.ts +31 -0
- package/src/lib/modifier/object-builder.ts +143 -0
- package/src/lib/modifier/signature-modifier.ts +99 -0
- package/src/lib/object-card/attribute-value-changed-event-args.ts +25 -0
- package/{lib/object-card/index.d.ts → src/lib/object-card/index.ts} +2 -2
- package/src/lib/object-card/object-card-handler.ts +36 -0
- package/src/lib/openspace/openspace-view.ts +32 -0
- package/{lib/page-navigation/index.d.ts → src/lib/page-navigation/index.ts} +4 -4
- package/src/lib/page-navigation/page-navigation-section-element.builder.ts +45 -0
- package/src/lib/page-navigation/page-navigation-section.builder.ts +53 -0
- package/src/lib/page-navigation/page-navigation.builder.ts +45 -0
- package/src/lib/page-navigation/page-navigation.ts +17 -0
- package/src/lib/personal-settings/isettings-feature.ts +43 -0
- package/src/lib/personal-settings/isettings-value-provider.ts +28 -0
- package/src/lib/personal-settings/system-settings-keys.ts +101 -0
- package/src/lib/tabs/tab-item.builder.ts +37 -0
- package/src/lib/tabs/tabs.builder.ts +45 -0
- package/src/lib/tabs/tabs.ts +17 -0
- package/{lib/toolbar/index.d.ts → src/lib/toolbar/index.ts} +2 -1
- package/src/lib/toolbar/toolbar-item-submenu.handler.ts +12 -0
- package/src/lib/toolbar/toolbar-item.builder.ts +45 -0
- package/src/lib/toolbar/toolbar-menu-item.builder.ts +16 -0
- package/src/lib/toolbar/toolbar-toggle-item.builder.ts +15 -0
- package/src/lib/toolbar/toolbar.builder.ts +104 -0
- package/src/lib/toolbar/toolbar.ts +33 -0
- package/src/lib/tools/attribute-permission.info.ts +54 -0
- package/src/lib/tools/guid.ts +63 -0
- package/src/lib/tools/index.ts +3 -0
- package/src/lib/tools/utils.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +3 -0
- package/src/typegen.ts +149 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/esm2022/lib/base/disposable.mjs +0 -14
- package/esm2022/lib/base/index.mjs +0 -3
- package/esm2022/lib/base/initializable.mjs +0 -14
- package/esm2022/lib/commands/command-builder.mjs +0 -2
- package/esm2022/lib/commands/index.mjs +0 -2
- package/esm2022/lib/contexts/bim-element-panel-context.mjs +0 -16
- package/esm2022/lib/contexts/bim-right-panel-context.mjs +0 -16
- package/esm2022/lib/contexts/context.mjs +0 -32
- package/esm2022/lib/contexts/dialog-context.mjs +0 -10
- package/esm2022/lib/contexts/document-annotations-list-context.mjs +0 -16
- package/esm2022/lib/contexts/index.mjs +0 -10
- package/esm2022/lib/contexts/object-card-context.mjs +0 -63
- package/esm2022/lib/contexts/page-context.mjs +0 -3
- package/esm2022/lib/contexts/render-context.mjs +0 -24
- package/esm2022/lib/contexts/settings-feature-context.mjs +0 -21
- package/esm2022/lib/data/access.mjs +0 -26
- package/esm2022/lib/data/annotations.mjs +0 -34
- package/esm2022/lib/data/attribute.mjs +0 -17
- package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +0 -9
- package/esm2022/lib/data/bim-features/bim-search-set.mjs +0 -2
- package/esm2022/lib/data/bim-features/index.mjs +0 -3
- package/esm2022/lib/data/cades-type.mjs +0 -13
- package/esm2022/lib/data/certificate.mjs +0 -2
- package/esm2022/lib/data/data-object.mjs +0 -19
- package/esm2022/lib/data/expected-error.mjs +0 -9
- package/esm2022/lib/data/file.mjs +0 -2
- package/esm2022/lib/data/files-snapshot.mjs +0 -2
- package/esm2022/lib/data/index.mjs +0 -21
- package/esm2022/lib/data/organisation-unit.mjs +0 -7
- package/esm2022/lib/data/person.mjs +0 -2
- package/esm2022/lib/data/relation.mjs +0 -2
- package/esm2022/lib/data/signature-custom-state.mjs +0 -2
- package/esm2022/lib/data/signature-verification-result.mjs +0 -2
- package/esm2022/lib/data/signature-verification-status.mjs +0 -11
- package/esm2022/lib/data/subscription-type.mjs +0 -6
- package/esm2022/lib/data/theme.mjs +0 -6
- package/esm2022/lib/data/user-state-machine.mjs +0 -2
- package/esm2022/lib/data/user-state.mjs +0 -12
- package/esm2022/lib/icrypto-provider.mjs +0 -96
- package/esm2022/lib/idata.plugin.mjs +0 -11
- package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/bim-features.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/index.mjs +0 -4
- package/esm2022/lib/injectable/command-builder-provider.mjs +0 -2
- package/esm2022/lib/injectable/dialog-service.mjs +0 -2
- package/esm2022/lib/injectable/index.mjs +0 -12
- package/esm2022/lib/injectable/injection-source.mjs +0 -55
- package/esm2022/lib/injectable/ipersonal-settings.mjs +0 -2
- package/esm2022/lib/injectable/modifier-provider.mjs +0 -2
- package/esm2022/lib/injectable/objects-repository.mjs +0 -2
- package/esm2022/lib/injectable/progress-service.mjs +0 -8
- package/esm2022/lib/injectable/render-context-provider.mjs +0 -2
- package/esm2022/lib/injectable/repository-events.mjs +0 -2
- package/esm2022/lib/injectable/theme-service.mjs +0 -2
- package/esm2022/lib/menu/checkable-menu.builder.mjs +0 -14
- package/esm2022/lib/menu/index.mjs +0 -5
- package/esm2022/lib/menu/menu-item.builder.mjs +0 -39
- package/esm2022/lib/menu/menu.builder.mjs +0 -68
- package/esm2022/lib/menu/menu.mjs +0 -23
- package/esm2022/lib/modifier/attribute-modifier.mjs +0 -2
- package/esm2022/lib/modifier/index.mjs +0 -5
- package/esm2022/lib/modifier/modifier.mjs +0 -2
- package/esm2022/lib/modifier/object-builder.mjs +0 -2
- package/esm2022/lib/modifier/signature-modifier.mjs +0 -2
- package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +0 -20
- package/esm2022/lib/object-card/index.mjs +0 -3
- package/esm2022/lib/object-card/object-card-handler.mjs +0 -30
- package/esm2022/lib/openspace/index.mjs +0 -2
- package/esm2022/lib/openspace/openspace-view.mjs +0 -29
- package/esm2022/lib/page-navigation/index.mjs +0 -5
- package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +0 -42
- package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +0 -47
- package/esm2022/lib/page-navigation/page-navigation.builder.mjs +0 -40
- package/esm2022/lib/page-navigation/page-navigation.mjs +0 -15
- package/esm2022/lib/personal-settings/index.mjs +0 -4
- package/esm2022/lib/personal-settings/isettings-feature.mjs +0 -42
- package/esm2022/lib/personal-settings/isettings-value-provider.mjs +0 -27
- package/esm2022/lib/personal-settings/system-settings-keys.mjs +0 -83
- package/esm2022/lib/tabs/index.mjs +0 -4
- package/esm2022/lib/tabs/tab-item.builder.mjs +0 -35
- package/esm2022/lib/tabs/tabs.builder.mjs +0 -40
- package/esm2022/lib/tabs/tabs.mjs +0 -15
- package/esm2022/lib/toolbar/index.mjs +0 -7
- package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -11
- package/esm2022/lib/toolbar/toolbar-item.builder.mjs +0 -41
- package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +0 -15
- package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -14
- package/esm2022/lib/toolbar/toolbar.builder.mjs +0 -88
- package/esm2022/lib/toolbar/toolbar.mjs +0 -28
- package/esm2022/lib/tools/attribute-permission.info.mjs +0 -45
- package/esm2022/lib/tools/guid.mjs +0 -53
- package/esm2022/lib/tools/index.mjs +0 -4
- package/esm2022/lib/tools/utils.mjs +0 -8
- package/esm2022/pilotdev-pilot-web-sdk.mjs +0 -5
- package/esm2022/public-api.mjs +0 -20
- package/fesm2022/pilotdev-pilot-web-sdk.mjs +0 -1487
- package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/base/disposable.d.ts +0 -7
- package/lib/base/initializable.d.ts +0 -8
- package/lib/commands/command-builder.d.ts +0 -15
- package/lib/commands/index.d.ts +0 -1
- package/lib/contexts/bim-element-panel-context.d.ts +0 -8
- package/lib/contexts/bim-right-panel-context.d.ts +0 -8
- package/lib/contexts/context.d.ts +0 -22
- package/lib/contexts/dialog-context.d.ts +0 -5
- package/lib/contexts/document-annotations-list-context.d.ts +0 -12
- package/lib/contexts/object-card-context.d.ts +0 -41
- package/lib/contexts/page-context.d.ts +0 -2
- package/lib/contexts/render-context.d.ts +0 -17
- package/lib/contexts/settings-feature-context.d.ts +0 -11
- package/lib/data/access.d.ts +0 -35
- package/lib/data/annotations.d.ts +0 -113
- package/lib/data/attribute.d.ts +0 -30
- package/lib/data/bim-features/bim-compare-diff.d.ts +0 -15
- package/lib/data/bim-features/bim-search-set.d.ts +0 -13
- package/lib/data/cades-type.d.ts +0 -11
- package/lib/data/certificate.d.ts +0 -29
- package/lib/data/data-object.d.ts +0 -77
- package/lib/data/expected-error.d.ts +0 -5
- package/lib/data/file.d.ts +0 -30
- package/lib/data/files-snapshot.d.ts +0 -8
- package/lib/data/organisation-unit.d.ts +0 -20
- package/lib/data/person.d.ts +0 -17
- package/lib/data/relation.d.ts +0 -8
- package/lib/data/signature-verification-status.d.ts +0 -9
- package/lib/data/subscription-type.d.ts +0 -4
- package/lib/data/theme.d.ts +0 -7
- package/lib/data/user-state-machine.d.ts +0 -10
- package/lib/data/user-state.d.ts +0 -20
- package/lib/icrypto-provider.d.ts +0 -82
- package/lib/idata.plugin.d.ts +0 -6
- package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +0 -4
- package/lib/injectable/bim-features/bim-search-set-service.d.ts +0 -39
- package/lib/injectable/injection-source.d.ts +0 -26
- package/lib/injectable/ipersonal-settings.d.ts +0 -48
- package/lib/injectable/objects-repository.d.ts +0 -87
- package/lib/injectable/progress-service.d.ts +0 -18
- package/lib/injectable/render-context-provider.d.ts +0 -10
- package/lib/injectable/repository-events.d.ts +0 -31
- package/lib/menu/checkable-menu.builder.d.ts +0 -11
- package/lib/menu/menu-item.builder.d.ts +0 -27
- package/lib/menu/menu.builder.d.ts +0 -49
- package/lib/menu/menu.d.ts +0 -20
- package/lib/modifier/attribute-modifier.d.ts +0 -9
- package/lib/modifier/modifier.d.ts +0 -30
- package/lib/modifier/object-builder.d.ts +0 -140
- package/lib/modifier/signature-modifier.d.ts +0 -87
- package/lib/object-card/attribute-value-changed-event-args.d.ts +0 -10
- package/lib/object-card/object-card-handler.d.ts +0 -25
- package/lib/openspace/openspace-view.d.ts +0 -20
- package/lib/page-navigation/page-navigation-section-element.builder.d.ts +0 -29
- package/lib/page-navigation/page-navigation-section.builder.d.ts +0 -33
- package/lib/page-navigation/page-navigation.builder.d.ts +0 -28
- package/lib/page-navigation/page-navigation.d.ts +0 -9
- package/lib/personal-settings/isettings-feature.d.ts +0 -31
- package/lib/personal-settings/isettings-value-provider.d.ts +0 -17
- package/lib/personal-settings/system-settings-keys.d.ts +0 -82
- package/lib/tabs/tab-item.builder.d.ts +0 -24
- package/lib/tabs/tabs.builder.d.ts +0 -28
- package/lib/tabs/tabs.d.ts +0 -14
- package/lib/toolbar/toolbar-item-submenu.handler.d.ts +0 -9
- package/lib/toolbar/toolbar-item.builder.d.ts +0 -28
- package/lib/toolbar/toolbar-menu-item.builder.d.ts +0 -13
- package/lib/toolbar/toolbar-toggle-item.builder.d.ts +0 -11
- package/lib/toolbar/toolbar.builder.d.ts +0 -65
- package/lib/toolbar/toolbar.d.ts +0 -21
- package/lib/tools/attribute-permission.info.d.ts +0 -9
- package/lib/tools/guid.d.ts +0 -7
- package/lib/tools/index.d.ts +0 -3
- package/lib/tools/utils.d.ts +0 -3
- /package/{lib/data/bim-features/index.d.ts → src/lib/data/bim-features/index.ts} +0 -0
- /package/{lib/data/index.d.ts → src/lib/data/index.ts} +0 -0
- /package/{lib/injectable/index.d.ts → src/lib/injectable/index.ts} +0 -0
- /package/{lib/openspace/index.d.ts → src/lib/openspace/index.ts} +0 -0
- /package/{lib/personal-settings/index.d.ts → src/lib/personal-settings/index.ts} +0 -0
- /package/{lib/tabs/index.d.ts → src/lib/tabs/index.ts} +0 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"@angular-eslint/directive-selector": [
|
|
9
|
+
"error",
|
|
10
|
+
{
|
|
11
|
+
"type": "attribute",
|
|
12
|
+
"prefix": "lib",
|
|
13
|
+
"style": "camelCase"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"@angular-eslint/component-selector": [
|
|
17
|
+
"error",
|
|
18
|
+
{
|
|
19
|
+
"type": "element",
|
|
20
|
+
"prefix": "lib",
|
|
21
|
+
"style": "kebab-case"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"files": ["*.html"],
|
|
28
|
+
"rules": {}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -1,172 +1,133 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "@pilotdev/pilot-web-sdk/extensions.config.schema.json",
|
|
4
|
-
"title": "Pilot Web-Extensions Config",
|
|
5
|
-
"description": "JSON Schema for `extensions.config.json` file",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"$schema": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "The schema to verify this document against."
|
|
11
|
-
},
|
|
12
|
-
"manifestVersion": {
|
|
13
|
-
"type": "number",
|
|
14
|
-
"description": "An integer that specifies the version of the manifest file format that your extension uses.",
|
|
15
|
-
"default": 1
|
|
16
|
-
},
|
|
17
|
-
"author": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "Specifies author who created the extension."
|
|
20
|
-
},
|
|
21
|
-
"license": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "The license under which the extension is distributed."
|
|
24
|
-
},
|
|
25
|
-
"title": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "A human-readable title for the extension."
|
|
28
|
-
},
|
|
29
|
-
"description": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "A detailed description of the extension's purpose and functionality."
|
|
32
|
-
},
|
|
33
|
-
"version": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "A string that identifies the extension's version number.",
|
|
36
|
-
"default": "1.0.0"
|
|
37
|
-
},
|
|
38
|
-
"extension": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"description": "Configuration for the Pilot Web extension",
|
|
41
|
-
"properties": {
|
|
42
|
-
"name": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "The name of the extension."
|
|
45
|
-
},
|
|
46
|
-
"description": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Short description of the extension's purpose and functionality."
|
|
49
|
-
},
|
|
50
|
-
"entry": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"description": "Path to the JavaScript entry point, relative to the `frontend` folder."
|
|
53
|
-
},
|
|
54
|
-
"modules": {
|
|
55
|
-
"type": "array",
|
|
56
|
-
"description": "An array of extension modules that are part of this extension.",
|
|
57
|
-
"items": {
|
|
58
|
-
"$ref": "#/definitions/extensionModule"
|
|
59
|
-
},
|
|
60
|
-
"minItems": 1
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"ITabs<ObjectsViewContext>",
|
|
134
|
-
"ITabs<BimElementPanelContext>",
|
|
135
|
-
"ITabs<BimRightPanelContext>",
|
|
136
|
-
"IMenu<ObjectsViewContext>",
|
|
137
|
-
"IMenu<DocumentAnnotationsListContext>"
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"required": [
|
|
142
|
-
"ngModuleName",
|
|
143
|
-
"exposedInterface"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"componentKitModule": {
|
|
147
|
-
"type": "object",
|
|
148
|
-
"properties": {
|
|
149
|
-
"name": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"description": "Name of exported class"
|
|
152
|
-
},
|
|
153
|
-
"description": {
|
|
154
|
-
"type": "string",
|
|
155
|
-
"description": "Short description of the Pilot-ComponentKit extension module's purpose and functionality."
|
|
156
|
-
},
|
|
157
|
-
"entry": {
|
|
158
|
-
"type": "string",
|
|
159
|
-
"description": "Path to the JavaScript entry point, relative to the `frontend` folder."
|
|
160
|
-
},
|
|
161
|
-
"cssEntry": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"description": "Path to the CSS entry point, relative to the `frontend` folder."
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"required": [
|
|
167
|
-
"name",
|
|
168
|
-
"entry"
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "@pilotdev/pilot-web-sdk/extensions.config.schema.json",
|
|
4
|
+
"title": "Pilot Web-Extensions Config",
|
|
5
|
+
"description": "JSON Schema for `extensions.config.json` file",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The schema to verify this document against."
|
|
11
|
+
},
|
|
12
|
+
"manifestVersion": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "An integer that specifies the version of the manifest file format that your extension uses.",
|
|
15
|
+
"default": 1
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Specifies author who created the extension."
|
|
20
|
+
},
|
|
21
|
+
"license": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The license under which the extension is distributed."
|
|
24
|
+
},
|
|
25
|
+
"title": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "A human-readable title for the extension."
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "A detailed description of the extension's purpose and functionality."
|
|
32
|
+
},
|
|
33
|
+
"version": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "A string that identifies the extension's version number.",
|
|
36
|
+
"default": "1.0.0"
|
|
37
|
+
},
|
|
38
|
+
"extension": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Configuration for the Pilot Web extension",
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "The name of the extension."
|
|
45
|
+
},
|
|
46
|
+
"description": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Short description of the extension's purpose and functionality."
|
|
49
|
+
},
|
|
50
|
+
"entry": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Path to the JavaScript entry point, relative to the `frontend` folder."
|
|
53
|
+
},
|
|
54
|
+
"modules": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"description": "An array of extension modules that are part of this extension.",
|
|
57
|
+
"items": {
|
|
58
|
+
"$ref": "#/definitions/extensionModule"
|
|
59
|
+
},
|
|
60
|
+
"minItems": 1
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": ["name", "entry", "modules"]
|
|
64
|
+
},
|
|
65
|
+
"pilotWeb2D": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"description": "An array of extension modules for PilotWeb2D component of Pilot-ComponentKit",
|
|
68
|
+
"items": {
|
|
69
|
+
"$ref": "#/definitions/componentKitModule"
|
|
70
|
+
},
|
|
71
|
+
"minItems": 1
|
|
72
|
+
},
|
|
73
|
+
"pilotWeb3D": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"description": "An array of extension modules for PilotWeb3D component of Pilot-ComponentKit",
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "#/definitions/componentKitModule"
|
|
78
|
+
},
|
|
79
|
+
"minItems": 1
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["manifestVersion", "title", "version"],
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"required": ["extension"]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"required": ["pilotWeb2D"]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"required": ["pilotWeb3D"]
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"definitions": {
|
|
95
|
+
"extensionModule": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"ngModuleName": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Name of exported class"
|
|
101
|
+
},
|
|
102
|
+
"exposedInterface": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "The interface implemented from @pilotdev/pilot-web-sdk. Must match the `exposes` key in the Module Federation config",
|
|
105
|
+
"enum": [""]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": ["ngModuleName", "exposedInterface"]
|
|
109
|
+
},
|
|
110
|
+
"componentKitModule": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"name": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Name of exported class"
|
|
116
|
+
},
|
|
117
|
+
"description": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "Short description of the Pilot-ComponentKit extension module's purpose and functionality."
|
|
120
|
+
},
|
|
121
|
+
"entry": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "Path to the JavaScript entry point, relative to the `frontend` folder."
|
|
124
|
+
},
|
|
125
|
+
"cssEntry": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Path to the CSS entry point, relative to the `frontend` folder."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": ["name", "entry"]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
172
133
|
}
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pilotdev/pilot-web-sdk",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.10.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "17.3.12",
|
|
6
6
|
"@angular/core": "17.3.12",
|
|
7
|
-
"@pilotdev/pilot-web-3d": "
|
|
7
|
+
"@pilotdev/pilot-web-3d": "26.8.0",
|
|
8
8
|
"rxjs": "7.8.1"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "2.3.0"
|
|
12
12
|
},
|
|
13
|
-
"sideEffects": false
|
|
14
|
-
|
|
15
|
-
"typings": "index.d.ts",
|
|
16
|
-
"exports": {
|
|
17
|
-
"./package.json": {
|
|
18
|
-
"default": "./package.json"
|
|
19
|
-
},
|
|
20
|
-
".": {
|
|
21
|
-
"types": "./index.d.ts",
|
|
22
|
-
"esm2022": "./esm2022/pilotdev-pilot-web-sdk.mjs",
|
|
23
|
-
"esm": "./esm2022/pilotdev-pilot-web-sdk.mjs",
|
|
24
|
-
"default": "./fesm2022/pilotdev-pilot-web-sdk.mjs"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
13
|
+
"sideEffects": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export abstract class IDisposable {
|
|
2
|
+
constructor() {
|
|
3
|
+
if (this.constructor == IDisposable) {
|
|
4
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The method is called just before class is disposed
|
|
10
|
+
*/
|
|
11
|
+
dispose() {
|
|
12
|
+
throw new Error("Method 'dispose()' must be implemented.");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './disposable';
|
|
2
|
-
export * from './initializable';
|
|
1
|
+
export * from './disposable';
|
|
2
|
+
export * from './initializable';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionSource } from '../injectable';
|
|
2
|
+
|
|
3
|
+
export abstract class IInitializable {
|
|
4
|
+
constructor() {
|
|
5
|
+
if (this.constructor == IInitializable) {
|
|
6
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The method is called after field injection is complete.
|
|
12
|
+
*/
|
|
13
|
+
initialize(injectionSource: InjectionSource) {
|
|
14
|
+
throw new Error("Method 'initialize(injectionSource: InjectionSource)' must be implemented.");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpEvent } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
|
|
4
|
+
export interface ICommandBuilder {
|
|
5
|
+
command(name: string): ICommand;
|
|
6
|
+
fileCommand(name: string, arg: string): IFileCommand;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ICommand {
|
|
10
|
+
arg<T>(name: string, value: T): ICommand;
|
|
11
|
+
invoke<T>(): Observable<T>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IFileCommand {
|
|
15
|
+
file(file: File): IFileCommand;
|
|
16
|
+
files(files: File[]): IFileCommand;
|
|
17
|
+
invoke<T>(): Observable<HttpEvent<T>>;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './command-builder';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="@pilotdev/pilot-web-3d" />
|
|
2
|
+
|
|
3
|
+
export class BimElementPanelContext {
|
|
4
|
+
private readonly _modelId: string;
|
|
5
|
+
private readonly _viewer: PilotWeb3D.Viewer3D;
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
modelId: string,
|
|
9
|
+
viewer: PilotWeb3D.Viewer3D
|
|
10
|
+
) {
|
|
11
|
+
this._modelId = modelId;
|
|
12
|
+
this._viewer = viewer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get modelId(): string {
|
|
16
|
+
return this._modelId;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
get viewer(): PilotWeb3D.Viewer3D {
|
|
20
|
+
return this._viewer;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="@pilotdev/pilot-web-3d" />
|
|
2
|
+
|
|
3
|
+
export class BimRightPanelContext {
|
|
4
|
+
private readonly _modelId: string;
|
|
5
|
+
private readonly _viewer: PilotWeb3D.Viewer3D;
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
modelId: string,
|
|
9
|
+
viewer: PilotWeb3D.Viewer3D
|
|
10
|
+
) {
|
|
11
|
+
this._modelId = modelId;
|
|
12
|
+
this._viewer = viewer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get modelId(): string {
|
|
16
|
+
return this._modelId;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
get viewer(): PilotWeb3D.Viewer3D {
|
|
20
|
+
return this._viewer;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IDataObject } from "../data";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Contex for objects view
|
|
6
|
+
*/
|
|
7
|
+
export class ObjectsViewContext {
|
|
8
|
+
private readonly _selectedObjects: IDataObject[];
|
|
9
|
+
private readonly _shortcuts: IDataObject[];
|
|
10
|
+
private readonly _context: IDataObject;
|
|
11
|
+
|
|
12
|
+
constructor(selectedObjects: IDataObject[], context: IDataObject, shortcuts?: IDataObject[]) {
|
|
13
|
+
this._selectedObjects = selectedObjects;
|
|
14
|
+
this._context = context;
|
|
15
|
+
this._shortcuts = shortcuts ?? [];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
public get selectedObjects(): IDataObject[] {
|
|
22
|
+
return this._selectedObjects;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
public get contextObject(): IDataObject {
|
|
29
|
+
return this._context;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
public get shortcuts(): IDataObject[] {
|
|
36
|
+
return this._shortcuts;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IAnnotationContainerObject } from "../data";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Context for document annotations list
|
|
6
|
+
*/
|
|
7
|
+
export class DocumentAnnotationsListContext {
|
|
8
|
+
private readonly _selectedAnnotations: IAnnotationContainerObject[];
|
|
9
|
+
|
|
10
|
+
constructor(selectedAnnotations: IAnnotationContainerObject[]) {
|
|
11
|
+
this._selectedAnnotations = selectedAnnotations;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
public get selectedAnnotations(): IAnnotationContainerObject[] {
|
|
18
|
+
return this._selectedAnnotations;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IAttribute, IDataObject, IType } from "../data";
|
|
2
|
+
|
|
3
|
+
export class ObjectCardContext {
|
|
4
|
+
private readonly _currentObjectId: string;
|
|
5
|
+
private readonly _displayAttributes: IAttribute[];
|
|
6
|
+
private readonly _attributesValues: Map<string, unknown>;
|
|
7
|
+
private readonly _type: IType;
|
|
8
|
+
private readonly _editedObject: IDataObject | null;
|
|
9
|
+
private readonly _parentId: string;
|
|
10
|
+
private readonly _isReadOnly: boolean;
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
currentObjectId: string,
|
|
14
|
+
displayAttributes: IAttribute[],
|
|
15
|
+
attributesValues: Map<string, unknown>,
|
|
16
|
+
type: IType,
|
|
17
|
+
editedObject: IDataObject | null,
|
|
18
|
+
parentId: string,
|
|
19
|
+
isReadOnly: boolean
|
|
20
|
+
) {
|
|
21
|
+
this._currentObjectId = currentObjectId;
|
|
22
|
+
this._displayAttributes = displayAttributes;
|
|
23
|
+
this._attributesValues = attributesValues;
|
|
24
|
+
this._type = type;
|
|
25
|
+
this._editedObject = editedObject;
|
|
26
|
+
this._parentId = parentId;
|
|
27
|
+
this._isReadOnly = isReadOnly;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Current object id for which the card is shown.
|
|
32
|
+
*
|
|
33
|
+
* It's an existing object id or a generated id that will be assigned to a new object.
|
|
34
|
+
*/
|
|
35
|
+
public get currentObjectId(): string {
|
|
36
|
+
return this._currentObjectId;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* List of all visible attributes in object's card
|
|
41
|
+
*/
|
|
42
|
+
public get displayAttributes(): IAttribute[] {
|
|
43
|
+
return this._displayAttributes;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The set of current attributes values
|
|
48
|
+
*/
|
|
49
|
+
public get attributesValues(): Map<string, unknown> {
|
|
50
|
+
return this._attributesValues;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Type of current object
|
|
55
|
+
*/
|
|
56
|
+
public get type(): IType {
|
|
57
|
+
return this._type;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Current object the card is shown for. Null if card is shown to create a new object
|
|
62
|
+
*/
|
|
63
|
+
public get editedObject(): IDataObject | null {
|
|
64
|
+
return this._editedObject;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ParentId of the current object
|
|
69
|
+
*/
|
|
70
|
+
public get parentId(): string {
|
|
71
|
+
return this._parentId;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* True if the card is shown in read only mode and not available for modification
|
|
76
|
+
*/
|
|
77
|
+
public get isReadOnly(): boolean {
|
|
78
|
+
return this._isReadOnly;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class PageContext {}
|