@pilotdev/pilot-web-sdk 23.0.0-alpha.2 → 24.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/README.md +2 -5
  2. package/esm2020/lib/contexts/context.mjs +29 -0
  3. package/esm2020/lib/contexts/document-annotations-list-context.mjs +15 -0
  4. package/esm2020/lib/contexts/index.mjs +4 -0
  5. package/esm2020/lib/contexts/render-context.mjs +22 -0
  6. package/esm2020/lib/data/access.mjs +26 -0
  7. package/esm2020/lib/data/annotations.mjs +2 -0
  8. package/esm2020/lib/data/attribute.mjs +17 -0
  9. package/esm2020/lib/data/data-object.mjs +19 -0
  10. package/esm2020/lib/data/file.mjs +2 -0
  11. package/esm2020/lib/data/files-snapshot.mjs +2 -0
  12. package/esm2020/lib/data/index.mjs +13 -0
  13. package/esm2020/lib/data/modifier.mjs +2 -0
  14. package/esm2020/lib/data/object-builder.mjs +2 -0
  15. package/esm2020/lib/data/organisation-unit.mjs +7 -0
  16. package/esm2020/lib/data/person.mjs +2 -0
  17. package/esm2020/lib/data/relation.mjs +2 -0
  18. package/esm2020/lib/data/subscriptionType.mjs +6 -0
  19. package/esm2020/lib/idata.plugin.mjs +2 -2
  20. package/esm2020/lib/injectable/index.mjs +5 -2
  21. package/esm2020/lib/injectable/modifier-provider.mjs +2 -0
  22. package/esm2020/lib/injectable/objects-repository.mjs +2 -0
  23. package/esm2020/lib/injectable/render-context-provider.mjs +2 -0
  24. package/esm2020/lib/injectable/repository-events.mjs +2 -0
  25. package/esm2020/lib/menu/checkable-menu.builder.mjs +14 -14
  26. package/esm2020/lib/menu/index.mjs +5 -5
  27. package/esm2020/lib/menu/menu-item.builder.mjs +39 -39
  28. package/esm2020/lib/menu/menu.builder.mjs +68 -68
  29. package/esm2020/lib/menu/menu.mjs +22 -22
  30. package/esm2020/lib/toolbar/index.mjs +7 -7
  31. package/esm2020/lib/toolbar/toolbar-item-submenu.handler.mjs +11 -3
  32. package/esm2020/lib/toolbar/toolbar-item.builder.mjs +41 -41
  33. package/esm2020/lib/toolbar/toolbar-menu-item.builder.mjs +15 -15
  34. package/esm2020/lib/toolbar/toolbar-toggle-item.builder.mjs +14 -14
  35. package/esm2020/lib/toolbar/toolbar.builder.mjs +88 -88
  36. package/esm2020/lib/toolbar/toolbar.mjs +27 -27
  37. package/esm2020/lib/tools/attribute-permission.info.mjs +41 -0
  38. package/esm2020/lib/tools/guid.mjs +53 -0
  39. package/esm2020/lib/tools/index.mjs +4 -0
  40. package/esm2020/lib/tools/utils.mjs +8 -0
  41. package/esm2020/pilotdev-pilot-web-sdk.mjs +4 -4
  42. package/esm2020/public-api.mjs +11 -9
  43. package/fesm2015/pilotdev-pilot-web-sdk.mjs +561 -322
  44. package/fesm2015/pilotdev-pilot-web-sdk.mjs.map +1 -1
  45. package/fesm2020/pilotdev-pilot-web-sdk.mjs +561 -322
  46. package/fesm2020/pilotdev-pilot-web-sdk.mjs.map +1 -1
  47. package/index.d.ts +5 -5
  48. package/lib/contexts/context.d.ts +22 -0
  49. package/lib/contexts/document-annotations-list-context.d.ts +12 -0
  50. package/lib/contexts/index.d.ts +3 -0
  51. package/lib/contexts/render-context.d.ts +17 -0
  52. package/lib/data/access.d.ts +35 -0
  53. package/lib/data/annotations.d.ts +15 -0
  54. package/lib/data/attribute.d.ts +30 -0
  55. package/lib/data/data-object.d.ts +74 -0
  56. package/lib/data/file.d.ts +23 -0
  57. package/lib/data/files-snapshot.d.ts +8 -0
  58. package/lib/data/index.d.ts +12 -0
  59. package/lib/data/modifier.d.ts +30 -0
  60. package/lib/data/object-builder.d.ts +110 -0
  61. package/lib/data/organisation-unit.d.ts +18 -0
  62. package/lib/data/person.d.ts +17 -0
  63. package/lib/data/relation.d.ts +8 -0
  64. package/lib/data/subscriptionType.d.ts +4 -0
  65. package/lib/idata.plugin.d.ts +2 -2
  66. package/lib/injectable/index.d.ts +4 -1
  67. package/lib/injectable/modifier-provider.d.ts +10 -0
  68. package/lib/injectable/objects-repository.d.ts +72 -0
  69. package/lib/injectable/render-context-provider.d.ts +10 -0
  70. package/lib/injectable/repository-events.d.ts +31 -0
  71. package/lib/menu/checkable-menu.builder.d.ts +11 -11
  72. package/lib/menu/index.d.ts +4 -4
  73. package/lib/menu/menu-item.builder.d.ts +27 -27
  74. package/lib/menu/menu.builder.d.ts +49 -49
  75. package/lib/menu/menu.d.ts +18 -18
  76. package/lib/toolbar/index.d.ts +6 -6
  77. package/lib/toolbar/toolbar-item-submenu.handler.d.ts +9 -2
  78. package/lib/toolbar/toolbar-item.builder.d.ts +28 -28
  79. package/lib/toolbar/toolbar-menu-item.builder.d.ts +13 -13
  80. package/lib/toolbar/toolbar-toggle-item.builder.d.ts +11 -11
  81. package/lib/toolbar/toolbar.builder.d.ts +65 -65
  82. package/lib/toolbar/toolbar.d.ts +19 -19
  83. package/lib/tools/attribute-permission.info.d.ts +8 -0
  84. package/lib/tools/guid.d.ts +7 -0
  85. package/lib/tools/index.d.ts +3 -0
  86. package/lib/tools/utils.d.ts +3 -0
  87. package/package.json +5 -5
  88. package/public-api.d.ts +7 -5
  89. package/esm2020/lib/context.mjs +0 -11
  90. package/esm2020/lib/injectable/objects.repository.mjs +0 -2
  91. package/lib/context.d.ts +0 -18
  92. package/lib/injectable/objects.repository.d.ts +0 -5
@@ -0,0 +1,3 @@
1
+ export * from './attribute-permission.info';
2
+ export * from './utils';
3
+ export * from './guid';
@@ -0,0 +1,3 @@
1
+ export declare function objectToMap<T>(objectMap: {
2
+ [key: string]: any;
3
+ }): Map<string, T>;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-sdk",
3
- "version": "23.0.0-alpha.2",
3
+ "version": "24.4.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "15.2.8",
6
- "@angular/core": "15.2.8",
5
+ "@angular/common": "^15.1.4",
6
+ "@angular/core": "^15.1.4",
7
7
  "rxjs": "7.8.1"
8
8
  },
9
9
  "dependencies": {
10
- "tslib": "2.3.0"
10
+ "tslib": "^2.3.0"
11
11
  },
12
12
  "sideEffects": false,
13
13
  "module": "fesm2015/pilotdev-pilot-web-sdk.mjs",
@@ -29,4 +29,4 @@
29
29
  "default": "./fesm2020/pilotdev-pilot-web-sdk.mjs"
30
30
  }
31
31
  }
32
- }
32
+ }
package/public-api.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export * from './lib/context';
2
- export * from './lib/idata.plugin';
3
- export * from './lib/injectable/index';
4
- export * from './lib/toolbar/index';
5
- export * from './lib/menu/index';
1
+ export * from './lib/idata.plugin';
2
+ export * from './lib/injectable/index';
3
+ export * from './lib/toolbar/index';
4
+ export * from './lib/menu/index';
5
+ export * from './lib/contexts/index';
6
+ export * from './lib/tools/index';
7
+ export * from './lib/data/index';
@@ -1,11 +0,0 @@
1
- /**
2
- * Contex for objects view
3
- */
4
- export class ObjectsViewContext {
5
- constructor(selectedObjects, isContext, shortcuts) {
6
- this.selectedObjects = selectedObjects;
7
- this.isContext = isContext;
8
- this.shortcuts = shortcuts;
9
- }
10
- }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxPQUFPLGtCQUFrQjtJQUU3QixZQUFZLGVBQXNCLEVBQUUsU0FBa0IsRUFBRSxTQUFpQjtRQUN2RSxJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQztRQUN2QyxJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQztRQUMzQixJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQztJQUM3QixDQUFDO0NBZUYiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogQ29udGV4IGZvciBvYmplY3RzIHZpZXdcclxuICovXHJcbmV4cG9ydCBjbGFzcyBPYmplY3RzVmlld0NvbnRleHQge1xyXG4gIFxyXG4gIGNvbnN0cnVjdG9yKHNlbGVjdGVkT2JqZWN0czogYW55W10sIGlzQ29udGV4dDogYm9vbGVhbiwgc2hvcnRjdXRzPzogYW55W10pIHtcclxuICAgIHRoaXMuc2VsZWN0ZWRPYmplY3RzID0gc2VsZWN0ZWRPYmplY3RzO1xyXG4gICAgdGhpcy5pc0NvbnRleHQgPSBpc0NvbnRleHQ7XHJcbiAgICB0aGlzLnNob3J0Y3V0cyA9IHNob3J0Y3V0cztcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIFxyXG4gICAqL1xyXG4gIHJlYWRvbmx5IHNlbGVjdGVkT2JqZWN0czogYW55W107IC8vIElEYXRhT2JqZWN0W11cclxuXHJcbiAgLyoqXHJcbiAgICogXHJcbiAgICovXHJcbiAgcmVhZG9ubHkgaXNDb250ZXh0OiBib29sZWFuO1xyXG4gIC8qKlxyXG4gICAqIFxyXG4gICAqL1xyXG4gIHJlYWRvbmx5IHNob3J0Y3V0czogYW55W107IC8vIElEYXRhT2JqZWN0W11cclxufSJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0cy5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL2luamVjdGFibGUvb2JqZWN0cy5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSU9iamVjdHNSZXBvc2l0b3J5IHtcclxuICBzdWJzY3JpYmVPYmplY3RzKGlkczogc3RyaW5nW10pOiBPYnNlcnZhYmxlPGFueT47XHJcbiAgZ2V0UGVyc29uKGlkOiBudW1iZXIpOiBhbnk7XHJcbn1cclxuICAgICJdfQ==
package/lib/context.d.ts DELETED
@@ -1,18 +0,0 @@
1
- /**
2
- * Contex for objects view
3
- */
4
- export declare class ObjectsViewContext {
5
- constructor(selectedObjects: any[], isContext: boolean, shortcuts?: any[]);
6
- /**
7
- *
8
- */
9
- readonly selectedObjects: any[];
10
- /**
11
- *
12
- */
13
- readonly isContext: boolean;
14
- /**
15
- *
16
- */
17
- readonly shortcuts: any[];
18
- }
@@ -1,5 +0,0 @@
1
- import { Observable } from "rxjs";
2
- export interface IObjectsRepository {
3
- subscribeObjects(ids: string[]): Observable<any>;
4
- getPerson(id: number): any;
5
- }