@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export class SystemSettingsKeys {
|
|
2
|
+
/**
|
|
3
|
+
* Get's favorites feature key
|
|
4
|
+
*/
|
|
5
|
+
public static readonly favoritesFeatureKey = "Favorites-880e609e-54f9-4463-9c5e-f2b742a944dc";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get's pilot storage drive letter feature key
|
|
9
|
+
*/
|
|
10
|
+
public static readonly pilotStorageDriveLetter = "PilotStorageDriveLetter-880e609e-54f9-4463-9c5e-f2b742a944dc";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Get's agreement roles feature key
|
|
14
|
+
*/
|
|
15
|
+
public static readonly agreementRolesFeatureKey = "AgreementRoles-0a782ccd-adb3-484f-8fb2-a6c58fc5a61d";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get's tasks filters feature key
|
|
19
|
+
*/
|
|
20
|
+
public static readonly tasksFiltersFeatureKey = "TasksFilters-deab09c1-2276-457b-a59b-5682baec43c7";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Get's tasks groupings feature key
|
|
24
|
+
*/
|
|
25
|
+
public static readonly tasksGroupingsFeatureKey = "TasksGroupings-B66B65E3-8B6D-4468-BF07-869B03E7D62B";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get's annotation filter feature key
|
|
29
|
+
*/
|
|
30
|
+
public static readonly annotationFilterFeatureKey = "AnnotationFilter-F151E782-6CEB-44AF-ADF1-AFB0A0FAB95E";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get's annotation filter feature key
|
|
34
|
+
*/
|
|
35
|
+
public static readonly personalAnnotationFilterFeatureKey = "PersonalAnnotationFilter-9382f499-c1b9-433f-95bb-d83195d52121";
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get's mounted on Pilot-Storage items feature key
|
|
39
|
+
*/
|
|
40
|
+
public static readonly mountedItemsList = "MountedItems-29eff31a-8bd2-40a2-bdac-c020db132c8b";
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get's Pilot-Storage work folders feature key
|
|
44
|
+
*/
|
|
45
|
+
public static readonly workfoldersList = "Workfolders-C4A424C8-AE20-4277-9CA5-94629CEB1B86";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get's selection path of the DocumentsExplorer
|
|
49
|
+
*/
|
|
50
|
+
public static readonly tabsState = "TabsState-9b9e6a36-013a-423c-9599-c6edc32a5b4f";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get's auto blocking file extensions feature key
|
|
54
|
+
*/
|
|
55
|
+
public static readonly autoBlockingFileExtensionsFeatureKey = "AutoBlockingFileExtensions-1bb027f4-7dd0-4aec-8c0d-cffe63bfcbb3";
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Get's auto commiting file extensions feature key
|
|
59
|
+
*/
|
|
60
|
+
public static readonly autoCommitingFileExtensionsFeatureKey = " AutoCommitingFileExtensions-2d0de5a1-f6c1-426e-b3e6-610dfb4b2666";
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Get's auto updating files feature key
|
|
64
|
+
*/
|
|
65
|
+
public static readonly autoUpdatingFilesFeatureKey = "AutoUpdatingFileExtensions-6FB5DE6C-96B2-4F84-8650-7A2EB102EAC5";
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get's auto publishing settings feature key
|
|
69
|
+
*/
|
|
70
|
+
public static readonly autoPublishingExtensionsFeatureKey = "AutoPublishingExtensions-F6FF1869-DBC2-4253-A5AA-7B225D69E416";
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Get's eml attributes dictionary feature key
|
|
74
|
+
*/
|
|
75
|
+
public static readonly emlAttributesDictionaryKeyFeatureKey = "EmlAttributesDictionary-354AB75D-A421-4836-A343-16FEC3014A4F";
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Get's documents autofill feature key
|
|
79
|
+
*/
|
|
80
|
+
public static readonly docsAutoFillFeatureKey = "DocsAutoFillFeatureKey-d19b557b-2109-4221-8970-794372039186";
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* User-defined temp files regex masks
|
|
84
|
+
*/
|
|
85
|
+
public static readonly tempFileMasksFeatureKey = "TempFileMasksFeatureKey-388BD8A4-E7C0-48DD-B235-8C05030CFCF3";
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* User-defined Export/Import settings
|
|
89
|
+
*/
|
|
90
|
+
public static readonly exportImportFeatureKey = "ExportImportFeatureKey-4697EA6F-E018-4989-929D-992D1176CC3C";
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* User-defined digital signature title
|
|
94
|
+
*/
|
|
95
|
+
public static readonly digitalSignatureTitleFeatureKey = "DigitalSignatureTitleFeatureKey-481EFA14-B116-434A-BAD6-F90DB883DEC9";
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Enhanced signature service settings
|
|
99
|
+
*/
|
|
100
|
+
public static readonly advancedSignatureFeatureKey = "AdvancedSignatureFeatureKey-D267127C-DCED-4DEC-B1A8-6E7A919E383D";
|
|
101
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enables to set parameters to the tab-group's item
|
|
3
|
+
*/
|
|
4
|
+
export abstract class ITabItemBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
if (this.constructor == ITabItemBuilder) {
|
|
7
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Item's title to be displayed
|
|
13
|
+
* @param title value
|
|
14
|
+
*/
|
|
15
|
+
withTitle(title: string): ITabItemBuilder {
|
|
16
|
+
throw new Error("Method 'withTitle(title: string)' must be implemented.");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Item's icon
|
|
21
|
+
* @param name Icon name
|
|
22
|
+
* @param iconSvg Url of icon or base64 string
|
|
23
|
+
*/
|
|
24
|
+
withIcon(name: string, iconSvg: string): ITabItemBuilder {
|
|
25
|
+
throw new Error("Method 'withIcon(name: string, iconSvg: string)' must be implemented.");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Item's view id
|
|
30
|
+
*
|
|
31
|
+
* Is matched with corresponding IOpenspaceView's `getViewId(): string`
|
|
32
|
+
* @param value - View Id
|
|
33
|
+
*/
|
|
34
|
+
withViewId(value: string): ITabItemBuilder {
|
|
35
|
+
throw new Error("Method 'withViewId(value: string)' must be implemented.");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ITabItemBuilder } from './tab-item.builder';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents a builder for tab groups
|
|
5
|
+
*/
|
|
6
|
+
export abstract class ITabsBuilder {
|
|
7
|
+
constructor() {
|
|
8
|
+
if (this.constructor == ITabsBuilder) {
|
|
9
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Gets the list of existing items of a tab group
|
|
15
|
+
* @returns Existing menu item names
|
|
16
|
+
*/
|
|
17
|
+
get itemNames(): string[] {
|
|
18
|
+
throw new Error("Getter 'itemNames()' must be implemented.");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Gets count of tab group items
|
|
23
|
+
*/
|
|
24
|
+
get count(): number {
|
|
25
|
+
throw new Error("Getter 'count()' must be implemented.");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Adds a new item to the associated tab group
|
|
30
|
+
* @param id Item's internal id
|
|
31
|
+
* @param index The index to put the new item at
|
|
32
|
+
*/
|
|
33
|
+
addItem(id: string, index: number): ITabItemBuilder {
|
|
34
|
+
throw new Error("Method 'addItem(id: string, index: number)' must be implemented.");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Replaces the item for the tab group.
|
|
39
|
+
* If Item does not exist - creates it.
|
|
40
|
+
* @param id Item's internal id
|
|
41
|
+
*/
|
|
42
|
+
replaceItem(id: string): ITabItemBuilder {
|
|
43
|
+
throw new Error("Method 'replaceItem(id: string)' must be implemented.");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BimElementPanelContext, BimRightPanelContext, ObjectsViewContext } from "../contexts";
|
|
2
|
+
import { ITabsBuilder } from "./tabs.builder";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface that allows to add new items to the tabs
|
|
6
|
+
* @exposedInterface
|
|
7
|
+
*/
|
|
8
|
+
export abstract class ITabs<TTabsContext extends BimElementPanelContext | BimRightPanelContext | ObjectsViewContext> {
|
|
9
|
+
/**
|
|
10
|
+
* The method is called just before the tabs are shown
|
|
11
|
+
* @param builder The tab group builder object of associated tab group
|
|
12
|
+
* @param context Context
|
|
13
|
+
*/
|
|
14
|
+
build(builder: ITabsBuilder, context: TTabsContext): void {
|
|
15
|
+
throw new Error("Method 'build(builder: IMenuBuilder, context: TTabsContext)' must be implemented.");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
export * from './toolbar';
|
|
2
3
|
export * from './toolbar-item.builder';
|
|
3
4
|
export * from './toolbar-item-submenu.handler';
|
|
4
5
|
export * from './toolbar-menu-item.builder';
|
|
5
6
|
export * from './toolbar-toggle-item.builder';
|
|
6
|
-
export * from './toolbar.builder';
|
|
7
|
+
export * from './toolbar.builder';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IToolbarBuilder } from "./toolbar.builder";
|
|
2
|
+
|
|
3
|
+
export abstract class IToolbarItemSubmenuHandler {
|
|
4
|
+
/**
|
|
5
|
+
* Build a submenu
|
|
6
|
+
* @param builder - toolbar builder
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
onSubmenuRequested(builder: IToolbarBuilder): void {
|
|
10
|
+
throw new Error("Method 'onSubmenuRequested(builder: IToolbarBuilder)' must be implemented.");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a toolbar button and enables to set parametres to it
|
|
3
|
+
*/
|
|
4
|
+
export abstract class IToolbarButtonItemBuilder {
|
|
5
|
+
|
|
6
|
+
constructor() {
|
|
7
|
+
if (this.constructor == IToolbarButtonItemBuilder) {
|
|
8
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Item's name to be displayed
|
|
14
|
+
* @param header - value
|
|
15
|
+
* @returns instance of IToolbarButtonItemBuilder
|
|
16
|
+
*/
|
|
17
|
+
withHeader(header: string): IToolbarButtonItemBuilder {
|
|
18
|
+
throw new Error("Method 'withHeader(header: string)' must be implemented.");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Item's icon in SVG format
|
|
23
|
+
* @param name - icon name
|
|
24
|
+
* @param svg - url icon or base64 string
|
|
25
|
+
*/
|
|
26
|
+
withIcon(name: string, svg: string): IToolbarButtonItemBuilder {
|
|
27
|
+
throw new Error("Method 'withIcon(name: string, svg: string)' must be implemented.");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Enabled the item
|
|
32
|
+
* @param value - value
|
|
33
|
+
*/
|
|
34
|
+
withIsEnabled(value: boolean): IToolbarButtonItemBuilder {
|
|
35
|
+
throw new Error("Method 'withIsEnabled(value: boolean)' must be implemented.");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Item's hint
|
|
40
|
+
* @param hint - value
|
|
41
|
+
*/
|
|
42
|
+
withHint(hint: string): IToolbarButtonItemBuilder {
|
|
43
|
+
throw new Error("Method 'withHint(hint: string)' must be implemented.");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
|
2
|
+
import { IToolbarItemSubmenuHandler } from "./toolbar-item-submenu.handler";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents a toolbar menu button and enables to set parametres to it
|
|
6
|
+
*/
|
|
7
|
+
export abstract class IToolbarMenuButtonItemBuilder extends IToolbarButtonItemBuilder {
|
|
8
|
+
/**
|
|
9
|
+
* Build a dropdown menu
|
|
10
|
+
* @param itemSubmenuHandler - toolbar submenu handler
|
|
11
|
+
* @returns The toolbar button menu builder
|
|
12
|
+
*/
|
|
13
|
+
withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler): IToolbarMenuButtonItemBuilder {
|
|
14
|
+
throw new Error("Method 'withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents a toolbar toggle button and enables to set parametres to it
|
|
5
|
+
*/
|
|
6
|
+
export abstract class IToolbarToggleButtonItemBuilder extends IToolbarButtonItemBuilder {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param value
|
|
11
|
+
*/
|
|
12
|
+
withIsChecked(value: boolean): IToolbarToggleButtonItemBuilder {
|
|
13
|
+
throw new Error("Method 'withIsChecked(value: boolean)' must be implemented.");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
|
2
|
+
import { IToolbarItemSubmenuHandler } from "./toolbar-item-submenu.handler";
|
|
3
|
+
import { IToolbarMenuButtonItemBuilder } from "./toolbar-menu-item.builder";
|
|
4
|
+
import { IToolbarToggleButtonItemBuilder } from "./toolbar-toggle-item.builder";
|
|
5
|
+
|
|
6
|
+
export abstract class IToolbarBuilder {
|
|
7
|
+
|
|
8
|
+
constructor() {
|
|
9
|
+
if (this.constructor == IToolbarBuilder) {
|
|
10
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Adds a new separator to the associated toolbar
|
|
16
|
+
* @param index - The index to put the new item at
|
|
17
|
+
*/
|
|
18
|
+
addSeparator(index: number): void {
|
|
19
|
+
throw new Error("Method 'addSeparator(index: number)' must be implemented.");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Adds a new button to the associated toolbar
|
|
24
|
+
* @param name - Internal item's name
|
|
25
|
+
* @param index - The index to put the new item at
|
|
26
|
+
*/
|
|
27
|
+
addButtonItem(name: string, index: number): IToolbarButtonItemBuilder {
|
|
28
|
+
throw new Error("Method 'addButtonItem(name: string, index: number)' must be implemented.");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Adds a new menu button to the associated toolbar
|
|
33
|
+
* @param name - Internal item's name
|
|
34
|
+
* @param index - The index to put the new item at
|
|
35
|
+
*/
|
|
36
|
+
addMenuButtonItem(name: string, index: number): IToolbarMenuButtonItemBuilder {
|
|
37
|
+
throw new Error("Method 'addMenuButtonItem(name: string, index: number)' must be implemented.");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Adds a new toggle button to the associated toolbar
|
|
42
|
+
* @param name - Internal item's name
|
|
43
|
+
* @param index - The index to put the new item at
|
|
44
|
+
*/
|
|
45
|
+
addToggleButtonItem(name: string, index: number): IToolbarToggleButtonItemBuilder {
|
|
46
|
+
throw new Error("Method 'addToggleButtonItem(name: string, index: number)' must be implemented.");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Replaces the item from the associated toolbar on button
|
|
51
|
+
* @param name - The name of toolbar button to replace
|
|
52
|
+
*/
|
|
53
|
+
replaceButtonItem(name: string): IToolbarButtonItemBuilder {
|
|
54
|
+
throw new Error("Method 'replaceButtonItem(name: string)' must be implemented.");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Replace the item from the associated toolbar on menu button
|
|
59
|
+
* @param name - The name of toolbar menu button to replace
|
|
60
|
+
*/
|
|
61
|
+
replaceMenuButtonItem(name: string): IToolbarMenuButtonItemBuilder {
|
|
62
|
+
throw new Error("Method 'replaceMenuButtonItem(name: string)' must be implemented.");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Enables to set parametres to menu button item submenu
|
|
67
|
+
* @param name - Item's internal name
|
|
68
|
+
* @param itemSubmenuHandler - The toolbar button menu builder
|
|
69
|
+
*/
|
|
70
|
+
handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler): void {
|
|
71
|
+
throw new Error("Method 'handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Replaces the item from the associated toolbar on toggle button
|
|
76
|
+
* @param name - The name of toolbar toggle button to replace
|
|
77
|
+
*/
|
|
78
|
+
replaceToggleButtonItem(name: string): IToolbarToggleButtonItemBuilder {
|
|
79
|
+
throw new Error("Method 'replaceToggleButtonItem(name: string)' must be implemented.");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Gets the list of existing item names of associated toolbar
|
|
84
|
+
* @returns - Existing toolbar item names
|
|
85
|
+
*/
|
|
86
|
+
get itemNames(): string[] {
|
|
87
|
+
throw new Error("Getter 'itemNames()' must be implemented.");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Gets count of toolbar items
|
|
92
|
+
*/
|
|
93
|
+
get count(): number {
|
|
94
|
+
throw new Error("Getter 'count()' must be implemented.");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Removes specified item
|
|
99
|
+
* @param itemName - Item's internal name
|
|
100
|
+
*/
|
|
101
|
+
removeItem(itemName: string): void {
|
|
102
|
+
throw new Error("Method 'removeItem(name: string)' must be implemented.");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DocumentAnnotationsListContext, ObjectsViewContext } from "../contexts";
|
|
2
|
+
import { IToolbarBuilder } from "./toolbar.builder";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface that allows to add new items to the toolbar
|
|
6
|
+
* @exposedInterface
|
|
7
|
+
*/
|
|
8
|
+
export abstract class IToolbar<TToolbarContext extends ObjectsViewContext | DocumentAnnotationsListContext> {
|
|
9
|
+
|
|
10
|
+
constructor() {
|
|
11
|
+
if (this.constructor == IToolbar<TToolbarContext>) {
|
|
12
|
+
throw new Error("Abstract classes can't be instantiated.");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The method is called just before the toolbar is created
|
|
18
|
+
* @param builder - the toolbar builder object of associated toolbar
|
|
19
|
+
* @param context - context
|
|
20
|
+
*/
|
|
21
|
+
build(builder: IToolbarBuilder, context: TToolbarContext): void {
|
|
22
|
+
throw new Error("Method 'build(builder: IToolbarBuilder, context: TToolbarContext)' must be implemented.");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param name
|
|
28
|
+
* @param context
|
|
29
|
+
*/
|
|
30
|
+
onToolbarItemClick(name: string, context: TToolbarContext): void {
|
|
31
|
+
throw new Error("Method 'onToolbarItemClick(name: string, context: TToolbarContext)' must be implemented.");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IDataObject } from "../data";
|
|
2
|
+
import { objectToMap } from "./utils";
|
|
3
|
+
|
|
4
|
+
export class AttributePermissionInfo {
|
|
5
|
+
private ATTRIBUTE_NAME_MARKER = '&';
|
|
6
|
+
|
|
7
|
+
orgUnits: number[];
|
|
8
|
+
orgUnitAttributes: string[];
|
|
9
|
+
|
|
10
|
+
constructor(editableForPositionsSource: string[]) {
|
|
11
|
+
this.orgUnits = new Array<number>();
|
|
12
|
+
this.orgUnitAttributes = new Array<string>();
|
|
13
|
+
|
|
14
|
+
if (!editableForPositionsSource)
|
|
15
|
+
return;
|
|
16
|
+
|
|
17
|
+
editableForPositionsSource.forEach(str => {
|
|
18
|
+
if (str.length > 0 && str[0] === this.ATTRIBUTE_NAME_MARKER) {
|
|
19
|
+
this.orgUnitAttributes.push(str.substring(1));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const num = Number(str);
|
|
23
|
+
if (!isNaN(num))
|
|
24
|
+
this.orgUnits.push(num);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
extractAllOrgUnits(obj: IDataObject): number[] {
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
|
+
const attrMap = objectToMap<any>(obj.attributes);
|
|
32
|
+
return this.extractAllOrgUnitsByAttributes(attrMap);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
+
extractAllOrgUnitsByAttributes(attributes: Map<string, any>) : number[] {
|
|
37
|
+
const result = new Array<number>();
|
|
38
|
+
if (!this.orgUnitAttributes || !attributes )
|
|
39
|
+
return result;
|
|
40
|
+
|
|
41
|
+
this.orgUnitAttributes.forEach(permissionAttributeName => {
|
|
42
|
+
if (attributes.has(permissionAttributeName)){
|
|
43
|
+
const value = attributes.get(permissionAttributeName);
|
|
44
|
+
if (value && Array.isArray(value)){
|
|
45
|
+
value.forEach(intValue => {
|
|
46
|
+
result.push(intValue);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const byteToHex = Array();
|
|
2
|
+
for (let i = 0; i < 256; ++i) {
|
|
3
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class Guid {
|
|
7
|
+
private static readonly regex = "(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})";
|
|
8
|
+
|
|
9
|
+
static readonly EMPTY = "00000000-0000-0000-0000-000000000000";
|
|
10
|
+
|
|
11
|
+
static newGuid(): string {
|
|
12
|
+
|
|
13
|
+
if (window.isSecureContext) {
|
|
14
|
+
// If crypto.getRandomValues is available try to use it.
|
|
15
|
+
return window.crypto.randomUUID();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Fall back to Math.random if a higher quality random number generator is not available.
|
|
19
|
+
const uuid = new Array(16);
|
|
20
|
+
var d = new Date().getTime();
|
|
21
|
+
for (var i = 0; i < 16; i++) {
|
|
22
|
+
var r = ((d + Math.random() * 256) % 256) | 0;
|
|
23
|
+
d = Math.trunc(d / 256);
|
|
24
|
+
uuid[i] = r;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Makes uuid compliant to RFC-4122
|
|
28
|
+
uuid[6] = (uuid[6] & 0x0F) | 0x40; // uuid version
|
|
29
|
+
uuid[8] = (uuid[8] & 0x3F) | 0x80; // uuid variant
|
|
30
|
+
|
|
31
|
+
return this.stringify(uuid);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
static isGuid(str: string) {
|
|
35
|
+
const regex = new RegExp(this.regex);
|
|
36
|
+
return regex.test(str) && str.length === 36;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
private static stringify(arr: Array<number>) {
|
|
40
|
+
return (
|
|
41
|
+
byteToHex[arr[0]] +
|
|
42
|
+
byteToHex[arr[1]] +
|
|
43
|
+
byteToHex[arr[2]] +
|
|
44
|
+
byteToHex[arr[3]] +
|
|
45
|
+
'-' +
|
|
46
|
+
byteToHex[arr[4]] +
|
|
47
|
+
byteToHex[arr[5]] +
|
|
48
|
+
'-' +
|
|
49
|
+
byteToHex[arr[6]] +
|
|
50
|
+
byteToHex[arr[7]] +
|
|
51
|
+
'-' +
|
|
52
|
+
byteToHex[arr[8]] +
|
|
53
|
+
byteToHex[arr[9]] +
|
|
54
|
+
'-' +
|
|
55
|
+
byteToHex[arr[10]] +
|
|
56
|
+
byteToHex[arr[11]] +
|
|
57
|
+
byteToHex[arr[12]] +
|
|
58
|
+
byteToHex[arr[13]] +
|
|
59
|
+
byteToHex[arr[14]] +
|
|
60
|
+
byteToHex[arr[15]]
|
|
61
|
+
).toLowerCase();
|
|
62
|
+
}
|
|
63
|
+
}
|