@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,38 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
1
- export class DialogContext {
2
- constructor(
3
- private readonly _data: unknown,
4
- ) {
5
- }
6
-
7
- public get data(): unknown {
8
- return this._data;
9
- }
10
- }
@@ -1,21 +0,0 @@
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
- }
@@ -1,81 +0,0 @@
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
-
@@ -1 +0,0 @@
1
- export class PageContext {}
@@ -1,28 +0,0 @@
1
- import { IDataObject } from "../data";
2
-
3
- /**
4
- * Context for document render
5
- */
6
- export class RenderContext {
7
- private readonly _dataObject: IDataObject;
8
- private readonly _selectedVersion: string;
9
-
10
- constructor(dataObject: IDataObject, selectedVersion: string) {
11
- this._dataObject = dataObject;
12
- this._selectedVersion = selectedVersion;
13
- }
14
-
15
- /**
16
- * Target object
17
- */
18
- public get dataObject(): IDataObject {
19
- return this._dataObject;
20
- }
21
-
22
- /**
23
- * Selected version time
24
- */
25
- public get selectedVersion(): string {
26
- return this._selectedVersion;
27
- }
28
- }
@@ -1,26 +0,0 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
2
- import { ISettingValueProvider } from '../personal-settings';
3
-
4
- export class SettingsFeatureContext {
5
- private _isValidSubject: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);
6
-
7
- constructor(
8
- private readonly _valueProvider: ISettingValueProvider,
9
- ) {}
10
-
11
- get valueProvider(): ISettingValueProvider {
12
- return this._valueProvider;
13
- }
14
-
15
- set isValid(state: boolean) {
16
- this._isValidSubject.next(state);
17
- }
18
-
19
- get isValid(): boolean {
20
- return this._isValidSubject.value;
21
- }
22
-
23
- get isValidSubscription(): Observable<boolean> {
24
- return this._isValidSubject.asObservable();
25
- }
26
- }
@@ -1,40 +0,0 @@
1
- export enum AccessLevel {
2
- None = 0,
3
- Create = 1 << 0,
4
- Edit = 1 << 1,
5
- View = 1 << 2,
6
- Freeze = 1 << 3,
7
- Agreement = 1 << 4,
8
- Share = 1 << 5,
9
-
10
- ViewCreate = View | Create,
11
- ViewEdit = View | Create | Edit,
12
- ViewEditAgrement = ViewEdit | Agreement,
13
- Full = View | Create | Edit | Freeze | Agreement | Share
14
- }
15
-
16
- export enum AccessType {
17
- Allow,
18
- Deny
19
- }
20
-
21
- export enum AccessInheritance {
22
- None,
23
- InheritUntilSecret,
24
- InheritWholeSubtree
25
- }
26
-
27
- export interface IAccessRecord {
28
- get orgUnitId(): number;
29
- get access(): IAccess;
30
- get recordOwnerPosition(): number;
31
- get inheritanceSource(): string;
32
- }
33
-
34
- export interface IAccess {
35
- get type(): AccessType;
36
- get accessLevel(): AccessLevel;
37
- get validThrough(): string;
38
- get inheritance(): AccessInheritance;
39
- get typeIds(): number[];
40
- }
@@ -1,160 +0,0 @@
1
- import { IDataObject } from "./data-object";
2
- import { IUserState } from "./user-state";
3
-
4
- export interface IAnnotationContainerObject {
5
- get container(): IAnnotationContainer;
6
- get source(): IDataObject;
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- get attributes(): any;
9
- get markups(): IMarkup[];
10
- get statesInfo(): IAnnotationStatesInfo;
11
- }
12
-
13
- export interface IAnnotationContainer {
14
- get annotationId(): string;
15
- get version(): string;
16
- get positionX(): number;
17
- get positionY(): number;
18
- get pageNumber(): number;
19
- get data(): string;
20
- get kind(): string;
21
- }
22
-
23
- export interface IMarkup {
24
- get annotationId(): string;
25
- get id(): number;
26
- get page(): number;
27
- get style(): IMarkupStyle | undefined;
28
- get subtype(): MarkupSubtype;
29
- }
30
-
31
- export interface IMarkupStyle {
32
- get colorRgb(): number | undefined;
33
- get strokeWidth(): number | undefined;
34
- get backgroundColorRgb(): number | undefined;
35
- get lineStyle(): MarkupLineStyle | undefined;
36
- }
37
-
38
- export enum MarkupLineStyle {
39
- Solid = 0,
40
- Dashed = 1,
41
- Beveled = 2,
42
- Inset = 3,
43
- Underline = 4
44
- }
45
-
46
- export enum BorderEffect {
47
- None = 0,
48
- Cloud = 1
49
- }
50
-
51
- export interface IAnnotationStatesInfo {
52
- get states(): Map<string, IUserState>;
53
- get availableTransitions(): IStateTransitionCommandArg[];
54
- get metadataVersion(): number;
55
- }
56
-
57
- export interface IStateTransitionCommandArg {
58
- get stateTo(): IUserState;
59
- get transitionTitle(): string;
60
- get attrName(): string;
61
- }
62
-
63
- export interface IEllipseMarkup extends IMarkup {
64
- get center(): MarkupPoint;
65
- get radiusX(): number;
66
- get radiusY(): number;
67
- }
68
-
69
- export interface IRectangleMarkup extends IMarkup {
70
- get bounds(): MarkupRect;
71
- }
72
-
73
- export interface ILineMarkup extends IMarkup {
74
- get start(): MarkupPoint;
75
- get end(): MarkupPoint;
76
- get startEnding(): MarkupLineEndings;
77
- get endEnding(): MarkupLineEndings;
78
- }
79
-
80
- export interface IPolylineMarkup extends IMarkup {
81
- get points(): MarkupPoint[];
82
- get borderEffect(): BorderEffect;
83
- }
84
-
85
- export interface IPolygonMarkup extends IMarkup {
86
- get points(): MarkupPoint[];
87
- get borderEffect(): BorderEffect;
88
- }
89
-
90
- export interface IInkMarkup extends IMarkup {
91
- get points(): MarkupPoint[];
92
- }
93
-
94
- export interface IFreeTextMarkup extends IMarkup {
95
- get bounds(): MarkupRect;
96
- get text(): string;
97
- }
98
-
99
- export interface ITextDecorationMarkup extends IMarkup {
100
- get quadPoints(): MarkupPoint[];
101
- get kind(): MarkupTextDecorationKind;
102
- }
103
-
104
- export interface ITextMarkup extends IMarkup {
105
- get bounds(): MarkupRect;
106
- }
107
-
108
- export enum MarkupTextDecorationKind {
109
- Highlight = 0,
110
- Underline = 1,
111
- Squiggly = 2,
112
- StrikeOut = 3
113
- }
114
-
115
- export type MarkupPoint = {
116
- x: number;
117
- y: number;
118
- }
119
-
120
- export type MarkupRect = {
121
- x: number;
122
- y: number;
123
- width: number;
124
- height: number;
125
- }
126
-
127
- export enum MarkupLineEndings {
128
- None = 0,
129
- Square = 1,
130
- Circle = 2,
131
- Diamond = 3,
132
- OpenArrow = 4,
133
- ClosedArrow = 5,
134
- // Butt = 6,
135
- // ReverseOpenArrow = 7,
136
- // ReverseClosedArrow = 8,
137
- // Slash = 9
138
- }
139
-
140
- export type MarkupSubtype =
141
- | 'Link'
142
- | 'Text'
143
- | 'Widget'
144
- | 'Popup'
145
- | 'FreeText'
146
- | 'Line'
147
- | 'Arrow'
148
- | 'Square'
149
- | 'Circle'
150
- | 'PolyLine'
151
- | 'Polygon'
152
- | 'Cloud'
153
- | 'Caret'
154
- | 'Ink'
155
- | 'Highlight'
156
- | 'Underline'
157
- | 'Squiggly'
158
- | 'StrikeOut'
159
- | 'Stamp'
160
- | 'FileAttachment';
@@ -1,33 +0,0 @@
1
-
2
- export interface IAttribute {
3
- get name(): string;
4
- get title(): string;
5
- get obligatory(): boolean;
6
- get type(): AttributeType;
7
- get displayHeight(): number;
8
- get showInTree(): boolean;
9
- get displaySortOrder(): number;
10
- get isService(): boolean;
11
- get configuration(): string;
12
- get joinWithPrevious(): boolean;
13
- get isUnique(): boolean;
14
- get groupTitle(): string;
15
- get editableForPositionsSource(): string[];
16
- }
17
-
18
-
19
- export enum AttributeType {
20
- Integer = 0,
21
- Double = 1,
22
- DateTime = 2,
23
- String = 3,
24
- Decimal = 4,
25
- Numerator = 5,
26
- Array = 6,
27
- UserState = 7,
28
- OrgUnit = 8,
29
- ElementBook = 9,
30
- Inherited = 10,
31
- Boolean = 11,
32
- ByteArray = 12,
33
- }
@@ -1,16 +0,0 @@
1
- export enum CompareResultType {
2
- Added = "added",
3
- Modified = "modified",
4
- AttributesModified = "attributesModified",
5
- Deleted = "deleted",
6
- Unchanged = "unchanged"
7
- }
8
-
9
- export interface IDisplayParam {
10
- visible: boolean;
11
- highlight: boolean;
12
- r: number;
13
- g: number;
14
- b: number;
15
- a: number;
16
- }
@@ -1,16 +0,0 @@
1
- import { IDataObject } from "../data-object";
2
-
3
- export interface IBimSearchSetData {
4
- get id(): string;
5
- get title(): string;
6
- get query(): string;
7
-
8
- get source(): IDataObject;
9
- get isFolder(): boolean;
10
- get isDeleted(): boolean;
11
- }
12
-
13
- export interface IBimModelSearchResult {
14
- get globalIdReadable(): string;
15
- get modelPartId(): string;
16
- }
@@ -1,11 +0,0 @@
1
- export enum CadesType {
2
- Unknown = 0,
3
- NotCades = 1,
4
- CadesBes = 2,
5
- CadesEpes = 3,
6
- CadesT = 4,
7
- CadesC = 5,
8
- CadesXLongType1 = 6,
9
- CadesXLongType2 = 7,
10
- CadesA = 8
11
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * Represents a certificate with validity dates, issuer, and subject information.
3
- */
4
- export interface ICertificate {
5
- /**
6
- * the thumbprint of the certificate.
7
- */
8
- get thumbprint(): string;
9
-
10
- /**
11
- * Validity end date of the certificate.
12
- */
13
- get validToDate(): string;
14
-
15
- /**
16
- * Validity start date of the certificate.
17
- */
18
- get validFromDate(): string;
19
-
20
- /**
21
- * Issuer of the certificate.
22
- */
23
- get issuer(): string;
24
-
25
- /**
26
- * Subject of the certificate.
27
- */
28
- get subject(): string;
29
-
30
- /**
31
- * The signature algorithm used in the certificate.
32
- */
33
- get publicKeyOid(): string;
34
- }
@@ -1,83 +0,0 @@
1
- import { AccessLevel, IAccessRecord } from "./access";
2
- import { IAttribute } from "./attribute";
3
- import { IFileSnapshot } from "./files-snapshot";
4
- import { IPerson } from "./person";
5
- import { IRelation } from "./relation";
6
-
7
-
8
- export enum RelationType {
9
- SourceFiles = 1,
10
- TaskInitiatorAttachments = 2,
11
- TaskExecutorAttachments = 3,
12
- MessageAttachments = 4,
13
- Custom = 5,
14
- TaskAttachments = 6,
15
- }
16
-
17
- export enum ObjectState {
18
- Alive,
19
- InRecycleBin,
20
- DeletedPermanently,
21
- Frozen,
22
- LockRequested,
23
- LockAccepted
24
- }
25
-
26
- export interface IDataObject {
27
- get id(): string;
28
- get parentId(): string;
29
- get title(): string;
30
- get type(): IType;
31
- get attributes(): { [key: string]: any; };
32
- get children(): IChild[];
33
- get creator(): IPerson;
34
- get modifiedBy(): IPerson;
35
- get created(): string;
36
- get modifiedDate(): string;
37
- get actualFileSnapshot(): IFileSnapshot;
38
- get previousFileSnapshots(): IFileSnapshot[];
39
- get context(): string[];
40
- get relations(): IRelation[];
41
- get access(): IAccessRecord[];
42
- get accessLevel(): AccessLevel;
43
- get allowedSubtypes(): number[];
44
- get stateInfo(): IStateInfo;
45
- get secretInfo(): ISecretInfo;
46
- get historyItems(): string[];
47
- get subscribers(): number[];
48
- }
49
-
50
- export interface IType {
51
- get id(): number;
52
- get title(): string;
53
- get name(): string;
54
- get icon(): string;
55
- get sort(): number;
56
- get hasFiles(): boolean;
57
- get children(): number[];
58
- get attributes(): IAttribute[];
59
- get isDeleted(): boolean;
60
- get kind(): number;
61
- get isMountable(): boolean;
62
- get isService(): boolean;
63
- get isProject(): boolean;
64
- get configuration(): string;
65
- }
66
-
67
- export interface IChild {
68
- get objectId(): string;
69
- get typeId(): number;
70
- }
71
-
72
- export interface ISecretInfo {
73
- get isSecret(): boolean;
74
- get secretParentId(): string;
75
- get secretChangedBy(): number;
76
- }
77
-
78
- export interface IStateInfo {
79
- get state(): ObjectState;
80
- get date(): string;
81
- get personId(): number;
82
- get positionId(): number;
83
- }
@@ -1,10 +0,0 @@
1
- export class ExpectedError extends Error {
2
- isExpected: boolean = true;
3
-
4
- constructor(
5
- message: string,
6
- public isSilent: boolean = false
7
- ) {
8
- super(message);
9
- }
10
- }
@@ -1,33 +0,0 @@
1
- import { CadesType } from "./cades-type";
2
-
3
- export interface IFile {
4
- get body(): IFileBody;
5
- get name(): string;
6
- get creatorId(): number;
7
- get signatureRequests(): ISignatureRequest[];
8
- }
9
-
10
- export interface IFileBody {
11
- get id(): string;
12
- get size(): number;
13
- get md5Hex(): string;
14
- get modified(): string;
15
- get created(): string;
16
- get accessed(): string;
17
- }
18
-
19
- export interface ISignatureRequest {
20
- get id(): string;
21
- /**
22
- * @deprecated
23
- */
24
- readonly databaseId?: string | undefined;
25
- get positionId(): number;
26
- get role(): string | undefined;
27
- get signs(): string[] | undefined;
28
- get requestedSigner(): string | undefined;
29
- get objectId(): string | undefined;
30
- get publicKeyOid(): string | undefined;
31
- get lastSignCadesType(): CadesType;
32
- get isAdvancementRequired(): boolean;
33
- }
@@ -1,9 +0,0 @@
1
- import { IFile } from "./file";
2
-
3
- export interface IFileSnapshot {
4
- get created(): string;
5
- get creatorId(): number;
6
- get reason(): string;
7
- get files(): IFile[];
8
- get hasAnnotations(): boolean;
9
- }
@@ -1,22 +0,0 @@
1
-
2
- export interface IOrganisationUnit {
3
- get id(): number;
4
- get title(): string;
5
- get kind(): OrgUnitKind;
6
- get children(): number[];
7
- get parentId(): number;
8
- get isDeleted(): boolean;
9
- get isBoss(): boolean;
10
- get version(): number;
11
- get person(): number;
12
- get vicePersons(): number[];
13
- get isCanceled(): boolean;
14
- get groupPersons(): number[];
15
- get permanentVicePersons(): number[];
16
- }
17
-
18
- export enum OrgUnitKind {
19
- Department = 0,
20
- Position = 1,
21
- Group = 2
22
- }