@pilotdev/pilot-web-sdk 26.10.0 → 26.12.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.
Files changed (274) hide show
  1. package/esm2022/lib/base/disposable.mjs +14 -0
  2. package/esm2022/lib/base/index.mjs +3 -0
  3. package/esm2022/lib/base/initializable.mjs +14 -0
  4. package/esm2022/lib/commands/command-builder.mjs +2 -0
  5. package/esm2022/lib/commands/index.mjs +2 -0
  6. package/esm2022/lib/contexts/bim-element-panel-context.mjs +16 -0
  7. package/esm2022/lib/contexts/bim-right-panel-context.mjs +16 -0
  8. package/esm2022/lib/contexts/context.mjs +32 -0
  9. package/esm2022/lib/contexts/dialog-context.mjs +10 -0
  10. package/esm2022/lib/contexts/document-annotations-list-context.mjs +16 -0
  11. package/esm2022/lib/contexts/index.mjs +10 -0
  12. package/esm2022/lib/contexts/object-card-context.mjs +63 -0
  13. package/esm2022/lib/contexts/page-context.mjs +3 -0
  14. package/esm2022/lib/contexts/render-context.mjs +24 -0
  15. package/esm2022/lib/contexts/settings-feature-context.mjs +21 -0
  16. package/esm2022/lib/data/access.mjs +29 -0
  17. package/esm2022/lib/data/annotations.mjs +34 -0
  18. package/esm2022/lib/data/attribute.mjs +35 -0
  19. package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +9 -0
  20. package/esm2022/lib/data/bim-features/bim-search-set.mjs +2 -0
  21. package/esm2022/lib/data/bim-features/index.mjs +3 -0
  22. package/esm2022/lib/data/cades-type.mjs +13 -0
  23. package/esm2022/lib/data/certificate.mjs +2 -0
  24. package/esm2022/lib/data/data-object.mjs +19 -0
  25. package/esm2022/lib/data/expected-error.mjs +9 -0
  26. package/esm2022/lib/data/file.mjs +2 -0
  27. package/esm2022/lib/data/files-snapshot.mjs +2 -0
  28. package/esm2022/lib/data/index.mjs +21 -0
  29. package/esm2022/lib/data/organisation-unit.mjs +7 -0
  30. package/esm2022/lib/data/person.mjs +2 -0
  31. package/esm2022/lib/data/relation.mjs +2 -0
  32. package/esm2022/lib/data/signature-custom-state.mjs +2 -0
  33. package/esm2022/lib/data/signature-verification-result.mjs +2 -0
  34. package/esm2022/lib/data/signature-verification-status.mjs +11 -0
  35. package/esm2022/lib/data/subscription-type.mjs +6 -0
  36. package/esm2022/lib/data/theme.mjs +6 -0
  37. package/esm2022/lib/data/user-state-machine.mjs +2 -0
  38. package/esm2022/lib/data/user-state.mjs +12 -0
  39. package/esm2022/lib/icrypto-provider.mjs +96 -0
  40. package/esm2022/lib/idata.plugin.mjs +11 -0
  41. package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +2 -0
  42. package/esm2022/lib/injectable/bim-features/bim-features.mjs +2 -0
  43. package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +2 -0
  44. package/esm2022/lib/injectable/bim-features/index.mjs +4 -0
  45. package/esm2022/lib/injectable/command-builder-provider.mjs +2 -0
  46. package/esm2022/lib/injectable/dialog-service.mjs +2 -0
  47. package/esm2022/lib/injectable/index.mjs +12 -0
  48. package/esm2022/lib/injectable/injection-source.mjs +55 -0
  49. package/esm2022/lib/injectable/ipersonal-settings.mjs +2 -0
  50. package/esm2022/lib/injectable/modifier-provider.mjs +2 -0
  51. package/esm2022/lib/injectable/objects-repository.mjs +2 -0
  52. package/esm2022/lib/injectable/progress-service.mjs +8 -0
  53. package/esm2022/lib/injectable/render-context-provider.mjs +2 -0
  54. package/esm2022/lib/injectable/repository-events.mjs +2 -0
  55. package/esm2022/lib/injectable/theme-service.mjs +2 -0
  56. package/esm2022/lib/menu/checkable-menu.builder.mjs +14 -0
  57. package/esm2022/lib/menu/index.mjs +5 -0
  58. package/esm2022/lib/menu/menu-item.builder.mjs +39 -0
  59. package/esm2022/lib/menu/menu.builder.mjs +68 -0
  60. package/esm2022/lib/menu/menu.mjs +23 -0
  61. package/esm2022/lib/modifier/attribute-modifier.mjs +2 -0
  62. package/esm2022/lib/modifier/index.mjs +5 -0
  63. package/esm2022/lib/modifier/modifier.mjs +2 -0
  64. package/esm2022/lib/modifier/object-builder.mjs +2 -0
  65. package/esm2022/lib/modifier/signature-modifier.mjs +2 -0
  66. package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +20 -0
  67. package/esm2022/lib/object-card/index.mjs +3 -0
  68. package/esm2022/lib/object-card/object-card-handler.mjs +30 -0
  69. package/esm2022/lib/openspace/index.mjs +2 -0
  70. package/esm2022/lib/openspace/openspace-view.mjs +29 -0
  71. package/esm2022/lib/page-navigation/index.mjs +5 -0
  72. package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +42 -0
  73. package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +47 -0
  74. package/esm2022/lib/page-navigation/page-navigation.builder.mjs +40 -0
  75. package/esm2022/lib/page-navigation/page-navigation.mjs +15 -0
  76. package/esm2022/lib/personal-settings/index.mjs +4 -0
  77. package/esm2022/lib/personal-settings/isettings-feature.mjs +42 -0
  78. package/esm2022/lib/personal-settings/isettings-value-provider.mjs +27 -0
  79. package/esm2022/lib/personal-settings/system-settings-keys.mjs +83 -0
  80. package/esm2022/lib/tabs/index.mjs +4 -0
  81. package/esm2022/lib/tabs/tab-item.builder.mjs +35 -0
  82. package/esm2022/lib/tabs/tabs.builder.mjs +40 -0
  83. package/esm2022/lib/tabs/tabs.mjs +15 -0
  84. package/esm2022/lib/toolbar/index.mjs +7 -0
  85. package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +11 -0
  86. package/esm2022/lib/toolbar/toolbar-item.builder.mjs +41 -0
  87. package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +15 -0
  88. package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +14 -0
  89. package/esm2022/lib/toolbar/toolbar.builder.mjs +88 -0
  90. package/esm2022/lib/toolbar/toolbar.mjs +28 -0
  91. package/esm2022/lib/tools/attribute-permission.info.mjs +45 -0
  92. package/esm2022/lib/tools/guid.mjs +53 -0
  93. package/esm2022/lib/tools/index.mjs +4 -0
  94. package/esm2022/lib/tools/utils.mjs +8 -0
  95. package/esm2022/pilotdev-pilot-web-sdk.mjs +5 -0
  96. package/esm2022/public-api.mjs +20 -0
  97. package/extensions.config.schema.json +171 -132
  98. package/fesm2022/pilotdev-pilot-web-sdk.mjs +1508 -0
  99. package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +1 -0
  100. package/index.d.ts +5 -0
  101. package/lib/base/disposable.d.ts +7 -0
  102. package/{src/lib/base/index.ts → lib/base/index.d.ts} +2 -2
  103. package/lib/base/initializable.d.ts +8 -0
  104. package/lib/commands/command-builder.d.ts +15 -0
  105. package/lib/commands/index.d.ts +1 -0
  106. package/lib/contexts/bim-element-panel-context.d.ts +8 -0
  107. package/lib/contexts/bim-right-panel-context.d.ts +8 -0
  108. package/lib/contexts/context.d.ts +22 -0
  109. package/lib/contexts/dialog-context.d.ts +5 -0
  110. package/lib/contexts/document-annotations-list-context.d.ts +12 -0
  111. package/{src/lib/contexts/index.ts → lib/contexts/index.d.ts} +1 -1
  112. package/lib/contexts/object-card-context.d.ts +41 -0
  113. package/lib/contexts/page-context.d.ts +2 -0
  114. package/lib/contexts/render-context.d.ts +17 -0
  115. package/lib/contexts/settings-feature-context.d.ts +11 -0
  116. package/lib/data/access.d.ts +38 -0
  117. package/lib/data/annotations.d.ts +113 -0
  118. package/lib/data/attribute.d.ts +48 -0
  119. package/lib/data/bim-features/bim-compare-diff.d.ts +15 -0
  120. package/lib/data/bim-features/bim-search-set.d.ts +13 -0
  121. package/lib/data/cades-type.d.ts +11 -0
  122. package/lib/data/certificate.d.ts +29 -0
  123. package/lib/data/data-object.d.ts +77 -0
  124. package/lib/data/expected-error.d.ts +5 -0
  125. package/lib/data/file.d.ts +30 -0
  126. package/lib/data/files-snapshot.d.ts +8 -0
  127. package/lib/data/organisation-unit.d.ts +20 -0
  128. package/lib/data/person.d.ts +17 -0
  129. package/lib/data/relation.d.ts +8 -0
  130. package/{src/lib/data/signature-custom-state.ts → lib/data/signature-custom-state.d.ts} +4 -4
  131. package/{src/lib/data/signature-verification-result.ts → lib/data/signature-verification-result.d.ts} +9 -13
  132. package/lib/data/signature-verification-status.d.ts +9 -0
  133. package/lib/data/subscription-type.d.ts +4 -0
  134. package/lib/data/theme.d.ts +7 -0
  135. package/lib/data/user-state-machine.d.ts +10 -0
  136. package/lib/data/user-state.d.ts +20 -0
  137. package/lib/icrypto-provider.d.ts +82 -0
  138. package/lib/idata.plugin.d.ts +6 -0
  139. package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +4 -0
  140. package/{src/lib/injectable/bim-features/bim-features.ts → lib/injectable/bim-features/bim-features.d.ts} +6 -8
  141. package/lib/injectable/bim-features/bim-search-set-service.d.ts +39 -0
  142. package/{src/lib/injectable/bim-features/index.ts → lib/injectable/bim-features/index.d.ts} +3 -3
  143. package/{src/lib/injectable/command-builder-provider.ts → lib/injectable/command-builder-provider.d.ts} +6 -7
  144. package/{src/lib/injectable/dialog-service.ts → lib/injectable/dialog-service.d.ts} +1 -2
  145. package/lib/injectable/injection-source.d.ts +26 -0
  146. package/lib/injectable/ipersonal-settings.d.ts +48 -0
  147. package/{src/lib/injectable/modifier-provider.ts → lib/injectable/modifier-provider.d.ts} +5 -6
  148. package/lib/injectable/objects-repository.d.ts +87 -0
  149. package/lib/injectable/progress-service.d.ts +18 -0
  150. package/lib/injectable/render-context-provider.d.ts +10 -0
  151. package/lib/injectable/repository-events.d.ts +31 -0
  152. package/{src/lib/injectable/theme-service.ts → lib/injectable/theme-service.d.ts} +3 -4
  153. package/lib/menu/checkable-menu.builder.d.ts +11 -0
  154. package/{src/lib/menu/index.ts → lib/menu/index.d.ts} +1 -2
  155. package/lib/menu/menu-item.builder.d.ts +27 -0
  156. package/lib/menu/menu.builder.d.ts +49 -0
  157. package/lib/menu/menu.d.ts +20 -0
  158. package/lib/modifier/attribute-modifier.d.ts +9 -0
  159. package/{src/lib/modifier/index.ts → lib/modifier/index.d.ts} +1 -1
  160. package/lib/modifier/modifier.d.ts +30 -0
  161. package/lib/modifier/object-builder.d.ts +140 -0
  162. package/lib/modifier/signature-modifier.d.ts +87 -0
  163. package/lib/object-card/attribute-value-changed-event-args.d.ts +10 -0
  164. package/{src/lib/object-card/index.ts → lib/object-card/index.d.ts} +2 -2
  165. package/lib/object-card/object-card-handler.d.ts +25 -0
  166. package/lib/openspace/openspace-view.d.ts +20 -0
  167. package/{src/lib/page-navigation/index.ts → lib/page-navigation/index.d.ts} +4 -4
  168. package/lib/page-navigation/page-navigation-section-element.builder.d.ts +29 -0
  169. package/lib/page-navigation/page-navigation-section.builder.d.ts +33 -0
  170. package/lib/page-navigation/page-navigation.builder.d.ts +28 -0
  171. package/lib/page-navigation/page-navigation.d.ts +9 -0
  172. package/lib/personal-settings/isettings-feature.d.ts +31 -0
  173. package/lib/personal-settings/isettings-value-provider.d.ts +17 -0
  174. package/lib/personal-settings/system-settings-keys.d.ts +82 -0
  175. package/lib/tabs/tab-item.builder.d.ts +24 -0
  176. package/lib/tabs/tabs.builder.d.ts +28 -0
  177. package/lib/tabs/tabs.d.ts +14 -0
  178. package/{src/lib/toolbar/index.ts → lib/toolbar/index.d.ts} +1 -2
  179. package/lib/toolbar/toolbar-item-submenu.handler.d.ts +9 -0
  180. package/lib/toolbar/toolbar-item.builder.d.ts +28 -0
  181. package/lib/toolbar/toolbar-menu-item.builder.d.ts +13 -0
  182. package/lib/toolbar/toolbar-toggle-item.builder.d.ts +11 -0
  183. package/lib/toolbar/toolbar.builder.d.ts +65 -0
  184. package/lib/toolbar/toolbar.d.ts +21 -0
  185. package/lib/tools/attribute-permission.info.d.ts +9 -0
  186. package/lib/tools/guid.d.ts +7 -0
  187. package/lib/tools/index.d.ts +3 -0
  188. package/lib/tools/utils.d.ts +3 -0
  189. package/package.json +17 -4
  190. package/{src/public-api.ts → public-api.d.ts} +0 -3
  191. package/.eslintrc.json +0 -31
  192. package/ng-package.json +0 -10
  193. package/src/lib/base/disposable.ts +0 -14
  194. package/src/lib/base/initializable.ts +0 -16
  195. package/src/lib/commands/command-builder.ts +0 -19
  196. package/src/lib/commands/index.ts +0 -1
  197. package/src/lib/contexts/bim-element-panel-context.ts +0 -22
  198. package/src/lib/contexts/bim-right-panel-context.ts +0 -22
  199. package/src/lib/contexts/context.ts +0 -38
  200. package/src/lib/contexts/dialog-context.ts +0 -10
  201. package/src/lib/contexts/document-annotations-list-context.ts +0 -21
  202. package/src/lib/contexts/object-card-context.ts +0 -81
  203. package/src/lib/contexts/page-context.ts +0 -1
  204. package/src/lib/contexts/render-context.ts +0 -28
  205. package/src/lib/contexts/settings-feature-context.ts +0 -26
  206. package/src/lib/data/access.ts +0 -40
  207. package/src/lib/data/annotations.ts +0 -160
  208. package/src/lib/data/attribute.ts +0 -33
  209. package/src/lib/data/bim-features/bim-compare-diff.ts +0 -16
  210. package/src/lib/data/bim-features/bim-search-set.ts +0 -16
  211. package/src/lib/data/cades-type.ts +0 -11
  212. package/src/lib/data/certificate.ts +0 -34
  213. package/src/lib/data/data-object.ts +0 -83
  214. package/src/lib/data/expected-error.ts +0 -10
  215. package/src/lib/data/file.ts +0 -33
  216. package/src/lib/data/files-snapshot.ts +0 -9
  217. package/src/lib/data/organisation-unit.ts +0 -22
  218. package/src/lib/data/person.ts +0 -17
  219. package/src/lib/data/relation.ts +0 -9
  220. package/src/lib/data/signature-verification-status.ts +0 -10
  221. package/src/lib/data/subscription-type.ts +0 -5
  222. package/src/lib/data/theme.ts +0 -9
  223. package/src/lib/data/user-state-machine.ts +0 -11
  224. package/src/lib/data/user-state.ts +0 -21
  225. package/src/lib/icrypto-provider.ts +0 -106
  226. package/src/lib/idata.plugin.ts +0 -10
  227. package/src/lib/injectable/bim-features/bim-compare-diff-service.ts +0 -5
  228. package/src/lib/injectable/bim-features/bim-search-set-service.ts +0 -44
  229. package/src/lib/injectable/injection-source.ts +0 -66
  230. package/src/lib/injectable/ipersonal-settings.ts +0 -53
  231. package/src/lib/injectable/objects-repository.ts +0 -88
  232. package/src/lib/injectable/progress-service.ts +0 -20
  233. package/src/lib/injectable/render-context-provider.ts +0 -11
  234. package/src/lib/injectable/repository-events.ts +0 -33
  235. package/src/lib/menu/checkable-menu.builder.ts +0 -15
  236. package/src/lib/menu/menu-item.builder.ts +0 -45
  237. package/src/lib/menu/menu.builder.ts +0 -79
  238. package/src/lib/menu/menu.ts +0 -26
  239. package/src/lib/modifier/attribute-modifier.ts +0 -9
  240. package/src/lib/modifier/modifier.ts +0 -31
  241. package/src/lib/modifier/object-builder.ts +0 -143
  242. package/src/lib/modifier/signature-modifier.ts +0 -99
  243. package/src/lib/object-card/attribute-value-changed-event-args.ts +0 -25
  244. package/src/lib/object-card/object-card-handler.ts +0 -36
  245. package/src/lib/openspace/openspace-view.ts +0 -32
  246. package/src/lib/page-navigation/page-navigation-section-element.builder.ts +0 -45
  247. package/src/lib/page-navigation/page-navigation-section.builder.ts +0 -53
  248. package/src/lib/page-navigation/page-navigation.builder.ts +0 -45
  249. package/src/lib/page-navigation/page-navigation.ts +0 -17
  250. package/src/lib/personal-settings/isettings-feature.ts +0 -43
  251. package/src/lib/personal-settings/isettings-value-provider.ts +0 -28
  252. package/src/lib/personal-settings/system-settings-keys.ts +0 -101
  253. package/src/lib/tabs/tab-item.builder.ts +0 -37
  254. package/src/lib/tabs/tabs.builder.ts +0 -45
  255. package/src/lib/tabs/tabs.ts +0 -17
  256. package/src/lib/toolbar/toolbar-item-submenu.handler.ts +0 -12
  257. package/src/lib/toolbar/toolbar-item.builder.ts +0 -45
  258. package/src/lib/toolbar/toolbar-menu-item.builder.ts +0 -16
  259. package/src/lib/toolbar/toolbar-toggle-item.builder.ts +0 -15
  260. package/src/lib/toolbar/toolbar.builder.ts +0 -104
  261. package/src/lib/toolbar/toolbar.ts +0 -33
  262. package/src/lib/tools/attribute-permission.info.ts +0 -54
  263. package/src/lib/tools/guid.ts +0 -63
  264. package/src/lib/tools/index.ts +0 -3
  265. package/src/lib/tools/utils.ts +0 -8
  266. package/src/typegen.ts +0 -149
  267. package/tsconfig.lib.json +0 -15
  268. package/tsconfig.lib.prod.json +0 -10
  269. /package/{src/lib/data/bim-features/index.ts → lib/data/bim-features/index.d.ts} +0 -0
  270. /package/{src/lib/data/index.ts → lib/data/index.d.ts} +0 -0
  271. /package/{src/lib/injectable/index.ts → lib/injectable/index.d.ts} +0 -0
  272. /package/{src/lib/openspace/index.ts → lib/openspace/index.d.ts} +0 -0
  273. /package/{src/lib/personal-settings/index.ts → lib/personal-settings/index.d.ts} +0 -0
  274. /package/{src/lib/tabs/index.ts → lib/tabs/index.d.ts} +0 -0
@@ -1,101 +0,0 @@
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
- }
@@ -1,37 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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,12 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,104 +0,0 @@
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
- }
@@ -1,33 +0,0 @@
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
- }
@@ -1,54 +0,0 @@
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
- }
@@ -1,63 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export * from './attribute-permission.info';
2
- export * from './utils'
3
- export * from './guid'
@@ -1,8 +0,0 @@
1
-
2
- export function objectToMap<T>(objectMap: { [key: string]: any; }): Map<string, T> {
3
- const map = new Map<string, T>();
4
- Object.keys(objectMap).forEach(key => {
5
- map.set(key, objectMap[key]);
6
- });
7
- return map;
8
- }