@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,4 @@
1
+ export * from './attribute-permission.info';
2
+ export * from './utils';
3
+ export * from './guid';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLFFBQVEsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXR0cmlidXRlLXBlcm1pc3Npb24uaW5mbyc7XG5leHBvcnQgKiBmcm9tICcuL3V0aWxzJ1xuZXhwb3J0ICogZnJvbSAnLi9ndWlkJyJdfQ==
@@ -0,0 +1,8 @@
1
+ export function objectToMap(objectMap) {
2
+ const map = new Map();
3
+ Object.keys(objectMap).forEach(key => {
4
+ map.set(key, objectMap[key]);
5
+ });
6
+ return map;
7
+ }
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbHMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxVQUFVLFdBQVcsQ0FBSSxTQUFrQztJQUMvRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsRUFBYSxDQUFDO0lBQ2pDLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ25DLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO0lBQy9CLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiXG5leHBvcnQgZnVuY3Rpb24gb2JqZWN0VG9NYXA8VD4ob2JqZWN0TWFwOiB7IFtrZXk6IHN0cmluZ106IGFueTsgfSk6IE1hcDxzdHJpbmcsIFQ+IHtcbiAgY29uc3QgbWFwID0gbmV3IE1hcDxzdHJpbmcsIFQ+KCk7XG4gIE9iamVjdC5rZXlzKG9iamVjdE1hcCkuZm9yRWFjaChrZXkgPT4ge1xuICAgIG1hcC5zZXQoa2V5LCBvYmplY3RNYXBba2V5XSk7XG4gIH0pO1xuICByZXR1cm4gbWFwO1xufSBcbiJdfQ==
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlsb3RkZXYtcGlsb3Qtd2ViLXNkay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3BpbG90ZGV2LXBpbG90LXdlYi1zZGsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,9 +1,11 @@
1
- /*
2
- * Public API Surface of pilot-web-sdk
3
- */
4
- export * from './lib/context';
5
- export * from './lib/idata.plugin';
6
- export * from './lib/injectable/index';
7
- export * from './lib/toolbar/index';
8
- export * from './lib/menu/index';
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHBpbG90LXdlYi1zZGtcclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbnRleHQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9pZGF0YS5wbHVnaW4nO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9pbmplY3RhYmxlL2luZGV4JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdG9vbGJhci9pbmRleCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21lbnUvaW5kZXgnOyJdfQ==
1
+ /*
2
+ * Public API Surface of pilot-web-sdk
3
+ */
4
+ export * from './lib/idata.plugin';
5
+ export * from './lib/injectable/index';
6
+ export * from './lib/toolbar/index';
7
+ export * from './lib/menu/index';
8
+ export * from './lib/contexts/index';
9
+ export * from './lib/tools/index';
10
+ export * from './lib/data/index';
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBwaWxvdC13ZWItc2RrXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL2lkYXRhLnBsdWdpbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9pbmplY3RhYmxlL2luZGV4JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Rvb2xiYXIvaW5kZXgnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbWVudS9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb250ZXh0cy9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b29scy9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kYXRhL2luZGV4JzsiXX0=