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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/.eslintrc.json +31 -0
  2. package/README.md +24 -5
  3. package/ng-package.json +7 -0
  4. package/package.json +6 -25
  5. package/src/lib/contexts/context.ts +38 -0
  6. package/src/lib/contexts/document-annotations-list-context.ts +21 -0
  7. package/src/lib/contexts/index.ts +3 -0
  8. package/src/lib/contexts/render-context.ts +28 -0
  9. package/src/lib/data/access.ts +40 -0
  10. package/src/lib/data/annotations.ts +20 -0
  11. package/src/lib/data/attribute.ts +33 -0
  12. package/src/lib/data/data-object.ts +78 -0
  13. package/src/lib/data/file.ts +25 -0
  14. package/src/lib/data/files-snapshot.ts +9 -0
  15. package/src/lib/data/index.ts +12 -0
  16. package/src/lib/data/modifier.ts +31 -0
  17. package/src/lib/data/object-builder.ts +111 -0
  18. package/src/lib/data/organisation-unit.ts +20 -0
  19. package/src/lib/data/person.ts +17 -0
  20. package/src/lib/data/relation.ts +10 -0
  21. package/src/lib/data/subscriptionType.ts +5 -0
  22. package/src/lib/idata.plugin.ts +2 -0
  23. package/src/lib/injectable/index.ts +4 -0
  24. package/src/lib/injectable/modifier-provider.ts +11 -0
  25. package/src/lib/injectable/objects-repository.ts +74 -0
  26. package/src/lib/injectable/render-context-provider.ts +11 -0
  27. package/src/lib/injectable/repository-events.ts +33 -0
  28. package/src/lib/menu/checkable-menu.builder.ts +15 -0
  29. package/{lib/menu/index.d.ts → src/lib/menu/index.ts} +5 -4
  30. package/src/lib/menu/menu-item.builder.ts +45 -0
  31. package/src/lib/menu/menu.builder.ts +79 -0
  32. package/src/lib/menu/menu.ts +24 -0
  33. package/{lib/toolbar/index.d.ts → src/lib/toolbar/index.ts} +7 -6
  34. package/src/lib/toolbar/toolbar-item-submenu.handler.ts +12 -0
  35. package/src/lib/toolbar/toolbar-item.builder.ts +45 -0
  36. package/src/lib/toolbar/toolbar-menu-item.builder.ts +16 -0
  37. package/src/lib/toolbar/toolbar-toggle-item.builder.ts +15 -0
  38. package/src/lib/toolbar/toolbar.builder.ts +104 -0
  39. package/src/lib/toolbar/toolbar.ts +31 -0
  40. package/src/lib/tools/attribute-permission.info.ts +51 -0
  41. package/src/lib/tools/guid.ts +63 -0
  42. package/src/lib/tools/index.ts +3 -0
  43. package/src/lib/tools/utils.ts +8 -0
  44. package/src/public-api.ts +10 -0
  45. package/tsconfig.lib.json +15 -0
  46. package/tsconfig.lib.prod.json +10 -0
  47. package/esm2020/lib/context.mjs +0 -11
  48. package/esm2020/lib/idata.plugin.mjs +0 -2
  49. package/esm2020/lib/injectable/index.mjs +0 -2
  50. package/esm2020/lib/injectable/objects.repository.mjs +0 -2
  51. package/esm2020/lib/menu/checkable-menu.builder.mjs +0 -14
  52. package/esm2020/lib/menu/index.mjs +0 -5
  53. package/esm2020/lib/menu/menu-item.builder.mjs +0 -39
  54. package/esm2020/lib/menu/menu.builder.mjs +0 -68
  55. package/esm2020/lib/menu/menu.mjs +0 -22
  56. package/esm2020/lib/toolbar/index.mjs +0 -7
  57. package/esm2020/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -3
  58. package/esm2020/lib/toolbar/toolbar-item.builder.mjs +0 -41
  59. package/esm2020/lib/toolbar/toolbar-menu-item.builder.mjs +0 -15
  60. package/esm2020/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -14
  61. package/esm2020/lib/toolbar/toolbar.builder.mjs +0 -88
  62. package/esm2020/lib/toolbar/toolbar.mjs +0 -27
  63. package/esm2020/pilotdev-pilot-web-sdk.mjs +0 -5
  64. package/esm2020/public-api.mjs +0 -9
  65. package/fesm2015/pilotdev-pilot-web-sdk.mjs +0 -349
  66. package/fesm2015/pilotdev-pilot-web-sdk.mjs.map +0 -1
  67. package/fesm2020/pilotdev-pilot-web-sdk.mjs +0 -349
  68. package/fesm2020/pilotdev-pilot-web-sdk.mjs.map +0 -1
  69. package/index.d.ts +0 -5
  70. package/lib/context.d.ts +0 -18
  71. package/lib/idata.plugin.d.ts +0 -2
  72. package/lib/injectable/index.d.ts +0 -1
  73. package/lib/injectable/objects.repository.d.ts +0 -5
  74. package/lib/menu/checkable-menu.builder.d.ts +0 -11
  75. package/lib/menu/menu-item.builder.d.ts +0 -27
  76. package/lib/menu/menu.builder.d.ts +0 -49
  77. package/lib/menu/menu.d.ts +0 -18
  78. package/lib/toolbar/toolbar-item-submenu.handler.d.ts +0 -2
  79. package/lib/toolbar/toolbar-item.builder.d.ts +0 -28
  80. package/lib/toolbar/toolbar-menu-item.builder.d.ts +0 -13
  81. package/lib/toolbar/toolbar-toggle-item.builder.d.ts +0 -11
  82. package/lib/toolbar/toolbar.builder.d.ts +0 -65
  83. package/lib/toolbar/toolbar.d.ts +0 -19
  84. package/public-api.d.ts +0 -5
@@ -0,0 +1,15 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/lib",
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "inlineSources": true,
9
+ "types": [],
10
+ "strict": true
11
+ },
12
+ "exclude": [
13
+ "**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy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,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRhdGEucGx1Z2luLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL2lkYXRhLnBsdWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiXHJcbmV4cG9ydCBpbnRlcmZhY2UgSURhdGFQbHVnaW4ge30iXX0=
@@ -1,2 +0,0 @@
1
- export * from './objects.repository';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvaW5qZWN0YWJsZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9vYmplY3RzLnJlcG9zaXRvcnknOyJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0cy5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL2luamVjdGFibGUvb2JqZWN0cy5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSU9iamVjdHNSZXBvc2l0b3J5IHtcclxuICBzdWJzY3JpYmVPYmplY3RzKGlkczogc3RyaW5nW10pOiBPYnNlcnZhYmxlPGFueT47XHJcbiAgZ2V0UGVyc29uKGlkOiBudW1iZXIpOiBhbnk7XHJcbn1cclxuICAgICJdfQ==
@@ -1,14 +0,0 @@
1
- import { IMenuItemBuilder } from "./menu-item.builder";
2
- /**
3
- *
4
- */
5
- export class ICheckableMenuItemBuilder extends IMenuItemBuilder {
6
- /**
7
- *
8
- * @param value
9
- */
10
- withIsChecked(value) {
11
- throw new Error("Method 'withIsChecked(value: boolean)' must be implemented.");
12
- }
13
- }
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2thYmxlLW1lbnUuYnVpbGRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi9tZW51L2NoZWNrYWJsZS1tZW51LmJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFdkQ7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLHlCQUEwQixTQUFRLGdCQUFnQjtJQUV0RTs7O09BR0c7SUFDSCxhQUFhLENBQUMsS0FBYztRQUMxQixNQUFNLElBQUksS0FBSyxDQUFDLDZEQUE2RCxDQUFDLENBQUM7SUFDakYsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSU1lbnVJdGVtQnVpbGRlciB9IGZyb20gXCIuL21lbnUtaXRlbS5idWlsZGVyXCI7XHJcblxyXG4vKipcclxuICogXHJcbiAqL1xyXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgSUNoZWNrYWJsZU1lbnVJdGVtQnVpbGRlciBleHRlbmRzIElNZW51SXRlbUJ1aWxkZXIge1xyXG4gIFxyXG4gIC8qKlxyXG4gICAqIFxyXG4gICAqIEBwYXJhbSB2YWx1ZSBcclxuICAgKi9cclxuICB3aXRoSXNDaGVja2VkKHZhbHVlOiBib29sZWFuKTogSUNoZWNrYWJsZU1lbnVJdGVtQnVpbGRlciB7XHJcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ3dpdGhJc0NoZWNrZWQodmFsdWU6IGJvb2xlYW4pJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcclxuICB9XHJcbn0iXX0=
@@ -1,5 +0,0 @@
1
- export * from './menu';
2
- export * from './checkable-menu.builder';
3
- export * from './menu-item.builder';
4
- export * from './menu.builder';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvbWVudS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5leHBvcnQgKiBmcm9tICcuL21lbnUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2NoZWNrYWJsZS1tZW51LmJ1aWxkZXInO1xyXG5leHBvcnQgKiBmcm9tICcuL21lbnUtaXRlbS5idWlsZGVyJztcclxuZXhwb3J0ICogZnJvbSAnLi9tZW51LmJ1aWxkZXInOyJdfQ==
@@ -1,39 +0,0 @@
1
- /**
2
- * Represents a menu item and enables to set parametres to it
3
- */
4
- export class IMenuItemBuilder {
5
- constructor() {
6
- if (this.constructor == IMenuItemBuilder) {
7
- throw new Error("Abstract classes can't be instantiated.");
8
- }
9
- }
10
- /**
11
- * Item's name to be displayed
12
- * @param header value
13
- */
14
- withHeader(header) {
15
- throw new Error("Method 'withHeader(header: string)' must be implemented.");
16
- }
17
- /**
18
- * Item's icon
19
- * @param name Icon name
20
- * @param iconSvg Url of icon or base64 string
21
- */
22
- withIcon(name, iconSvg) {
23
- throw new Error("Method 'withIcon(name: string, iconSvg: string)' must be implemented.");
24
- }
25
- /**
26
- * Enabled the item
27
- * @param value value
28
- */
29
- withIsEnabled(value) {
30
- throw new Error("Method 'withIsEnabled(value: boolean)' must be implemented.");
31
- }
32
- /**
33
- * Item's submenu
34
- */
35
- withSubmenu() {
36
- throw new Error("Method 'withSubmenu()' must be implemented.");
37
- }
38
- }
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1pdGVtLmJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvbWVudS9tZW51LWl0ZW0uYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTs7R0FFRztBQUNILE1BQU0sT0FBZ0IsZ0JBQWdCO0lBRXBDO1FBQ0UsSUFBSSxJQUFJLENBQUMsV0FBVyxJQUFJLGdCQUFnQixFQUFFO1lBQ3hDLE1BQU0sSUFBSSxLQUFLLENBQUMseUNBQXlDLENBQUMsQ0FBQztTQUM1RDtJQUNILENBQUM7SUFFRDs7O09BR0c7SUFDSCxVQUFVLENBQUMsTUFBYztRQUN2QixNQUFNLElBQUksS0FBSyxDQUFDLDBEQUEwRCxDQUFDLENBQUM7SUFDOUUsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCxRQUFRLENBQUMsSUFBWSxFQUFFLE9BQWU7UUFDcEMsTUFBTSxJQUFJLEtBQUssQ0FBQyx1RUFBdUUsQ0FBQyxDQUFDO0lBQzN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W1lIEljb24gbmFtZVxyXG4gICAqIEBwYXJhbSBpY29uU3ZnIFVybCBvZiBpY29uIG9yIGJhc2U2NCBzdHJpbmdcclxuICAgKi9cclxuICB3aXRoSWNvbihuYW1lOiBzdHJpbmcsIGljb25Tdmc6IHN0cmluZyk6IElNZW51SXRlbUJ1aWxkZXIge1xyXG4gICAgdGhyb3cgbmV3IEVycm9yKFwiTWV0aG9kICd3aXRoSWNvbihuYW1lOiBzdHJpbmcsIGljb25Tdmc6IHN0cmluZyknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICogRW5hYmxlZCB0aGUgaXRlbVxyXG4gICAqIEBwYXJhbSB2YWx1ZSB2YWx1ZVxyXG4gICAqL1xyXG4gIHdpdGhJc0VuYWJsZWQodmFsdWU6IGJvb2xlYW4pOiBJTWVudUl0ZW1CdWlsZGVyIHtcclxuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnd2l0aElzRW5hYmxlZCh2YWx1ZTogYm9vbGVhbiknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxuICBcclxuICAvKipcclxuICAgKiBJdGVtJ3Mgc3VibWVudVxyXG4gICAqL1xyXG4gIHdpdGhTdWJtZW51KCk6IElNZW51QnVpbGRlciB7XHJcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ3dpdGhTdWJtZW51KCknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxufSJdfQ==
@@ -1,68 +0,0 @@
1
- /**
2
- * Represents a menu and enables to add new items to it
3
- */
4
- export class IMenuBuilder {
5
- constructor() {
6
- if (this.constructor == IMenuBuilder) {
7
- throw new Error("Abstract classes can't be instantiated.");
8
- }
9
- }
10
- /**
11
- * Gets the list of existing items of associated menu or subitems of an item
12
- * @returns Existing menu item names
13
- */
14
- get itemNames() {
15
- throw new Error("Getter 'itemNames()' must be implemented.");
16
- }
17
- /**
18
- * Gets count of menu items
19
- */
20
- get count() {
21
- throw new Error("Getter 'count()' must be implemented.");
22
- }
23
- /**
24
- * Adds a new separator to the associated menu
25
- * @param index The index to put the new item at
26
- */
27
- addSeparator(index) {
28
- throw new Error("Method 'addSeparator(index: number)' must be implemented.");
29
- }
30
- /**
31
- * Adds a new item to the associated menu
32
- * @param name Item's internal name
33
- * @param index The index to put the new item at
34
- */
35
- addItem(name, index) {
36
- throw new Error("Method 'addItem(name: string, index: number)' must be implemented.");
37
- }
38
- /**
39
- * Adds a new checkable item to the associated menu
40
- * @param name Item's internal name
41
- * @param index The index to put the new item at
42
- */
43
- addCheckableItem(name, index) {
44
- throw new Error("Method 'addCheckableItem(name: string, index: number)' must be implemented.");
45
- }
46
- /**
47
- * Replaces the item to the associated menu
48
- * @param name Item's internal name
49
- */
50
- replaceItem(name) {
51
- throw new Error("Method 'replaceItem(name: string)' must be implemented.");
52
- }
53
- /**
54
- * Removes the item with the specified name
55
- * @param name Item's internal name
56
- */
57
- removeItem(name) {
58
- throw new Error("Method 'removeItem(name: string)' must be implemented.");
59
- }
60
- /**
61
- * Gets the item
62
- * @param name Item's internal name
63
- */
64
- getItem(name) {
65
- throw new Error("Method 'getItem(name: string)' must be implemented.");
66
- }
67
- }
68
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL21lbnUvbWVudS5idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBOztHQUVHO0FBQ0gsTUFBTSxPQUFnQixZQUFZO0lBRWhDO1FBQ0UsSUFBSSxJQUFJLENBQUMsV0FBVyxJQUFJLFlBQVksRUFBRTtZQUNwQyxNQUFNLElBQUksS0FBSyxDQUFDLHlDQUF5Qyx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BiZSBpbXBsZW1lbnRlZC5cIik7XHJcbiAgfVxyXG59Il19
@@ -1,22 +0,0 @@
1
- /**
2
- * Interface that allows to add new items to the menu and context menus
3
- */
4
- export class IMenu {
5
- /**
6
- * The method is called just before the menu is shown
7
- * @param builder The menu builder object of associated menu
8
- * @param context Context
9
- */
10
- build(builder, context) {
11
- throw new Error("Method 'build(builder: IMenuBuilder, context: TMenuContext)' must be implemented.");
12
- }
13
- /**
14
- *
15
- * @param name
16
- * @param context
17
- */
18
- onMenuItemClick(name, context) {
19
- throw new Error("Method 'onMenuItemClick(name: string, context: TMenuContext)' must be implemented.");
20
- }
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi9tZW51L21lbnUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLEtBQUs7SUFDekI7Ozs7T0FJRztJQUNILEtBQUssQ0FBQyxPQUFxQixFQUFFLE9BQXFCO1FBQ2hELE1BQU0sSUFBSSxLQUFLLENBQUMsbUZBQW1GLENBQUMsQ0FBQztJQUN2RyxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNILGVBQWUsQ0FBQyxJQUFZLEVBQUUsT0FBcUI7UUFDakQsTUFBTSxJQUFJLEtBQUssQ0FBQyxvRkFBb0YsQ0FBQyxDQUFDO0lBQ3hHLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElNZW51QnVpbGRlciB9IGZyb20gXCIuL21lbnUuYnVpbGRlclwiO1xyXG5cclxuLyoqXHJcbiAqIEludGVyZmFjZSB0aGF0IGFsbG93cyB0byBhZGQgbmV3IGl0ZW1zIHRvIHRoZSBtZW51IGFuZCBjb250ZXh0IG1lbnVzXHJcbiAqL1xyXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgSU1lbnU8VE1lbnVDb250ZXh0PiB7XHJcbiAgLyoqXHJcbiAgICogVGhlIG1ldGhvZCBpcyBjYWxsZWQganVzdCBiZWZvcmUgdGhlIG1lbnUgaXMgc2hvd25cclxuICAgKiBAcGFyYW0gYnVpbGRlciBUaGUgbWVudSBidWlsZGVyIG9iamVjdCBvZiBhc3NvY2lhdGVkIG1lbnVcclxuICAgKiBAcGFyYW0gY29udGV4dCBDb250ZXh0XHJcbiAgICovXHJcbiAgYnVpbGQoYnVpbGRlcjogSU1lbnVCdWlsZGVyLCBjb250ZXh0OiBUTWVudUNvbnRleHQpOiB2b2lkIHtcclxuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnYnVpbGQoYnVpbGRlcjogSU1lbnVCdWlsZGVyLCBjb250ZXh0OiBUTWVudUNvbnRleHQpJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcclxuICB9XHJcbiAgXHJcbiAgLyoqXHJcbiAgICogXHJcbiAgICogQHBhcmFtIG5hbWUgXHJcbiAgICogQHBhcmFtIGNvbnRleHQgXHJcbiAgICovXHJcbiAgb25NZW51SXRlbUNsaWNrKG5hbWU6IHN0cmluZywgY29udGV4dDogVE1lbnVDb250ZXh0KTogdm9pZCB7XHJcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ29uTWVudUl0ZW1DbGljayhuYW1lOiBzdHJpbmcsIGNvbnRleHQ6IFRNZW51Q29udGV4dCknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxufSJdfQ==
@@ -1,7 +0,0 @@
1
- export * from './toolbar';
2
- export * from './toolbar-item.builder';
3
- export * from './toolbar-item-submenu.handler';
4
- export * from './toolbar-menu-item.builder';
5
- export * from './toolbar-toggle-item.builder';
6
- export * from './toolbar.builder';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbGJhci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuZXhwb3J0ICogZnJvbSAnLi90b29sYmFyJztcclxuZXhwb3J0ICogZnJvbSAnLi90b29sYmFyLWl0ZW0uYnVpbGRlcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9vbGJhci1pdGVtLXN1Ym1lbnUuaGFuZGxlcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9vbGJhci1tZW51LWl0ZW0uYnVpbGRlcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9vbGJhci10b2dnbGUtaXRlbS5idWlsZGVyJztcclxuZXhwb3J0ICogZnJvbSAnLi90b29sYmFyLmJ1aWxkZXInOyJdfQ==
@@ -1,3 +0,0 @@
1
- export class IToolbarItemSubmenuHandler {
2
- }
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1pdGVtLXN1Ym1lbnUuaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29sYmFyL3Rvb2xiYXItaXRlbS1zdWJtZW51LmhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxPQUFnQiwwQkFBMEI7Q0FFL0MiLCJzb3VyY2VzQ29udGVudCI6WyJcclxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIElUb29sYmFySXRlbVN1Ym1lbnVIYW5kbGVyIHtcclxuICBcclxufSJdfQ==
@@ -1,41 +0,0 @@
1
- /**
2
- * Represents a toolbar button and enables to set parametres to it
3
- */
4
- export class IToolbarButtonItemBuilder {
5
- constructor() {
6
- if (this.constructor == IToolbarButtonItemBuilder) {
7
- throw new Error("Abstract classes can't be instantiated.");
8
- }
9
- }
10
- /**
11
- * Item's name to be displayed
12
- * @param header - value
13
- * @returns instance of IToolbarButtonItemBuilder
14
- */
15
- withHeader(header) {
16
- throw new Error("Method 'withHeader(header: string)' must be implemented.");
17
- }
18
- /**
19
- * Item's icon in SVG format
20
- * @param name - icon name
21
- * @param svg - url icon or base64 string
22
- */
23
- withIcon(name, svg) {
24
- throw new Error("Method 'withIcon(name: string, svg: string)' must be implemented.");
25
- }
26
- /**
27
- * Enabled the item
28
- * @param value - value
29
- */
30
- withIsEnabled(value) {
31
- throw new Error("Method 'withIsEnabled(value: boolean)' must be implemented.");
32
- }
33
- /**
34
- * Item's hint
35
- * @param hint - value
36
- */
37
- withHint(hint) {
38
- throw new Error("Method 'withHint(hint: string)' must be implemented.");
39
- }
40
- }
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1pdGVtLmJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbGJhci90b29sYmFyLWl0ZW0uYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sT0FBZ0IseUJBQXlCO0lBRTdDO1FBQ0UsSUFBSSxJQUFJLENBQUMsV0FBVyxJQUFJLHlCQUF5QixFQU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tJ3MgaGludFxyXG4gICAqIEBwYXJhbSBoaW50IC0gdmFsdWVcclxuICAgKi9cclxuICB3aXRoSGludChoaW50OiAgc3RyaW5nKTogSVRvb2xiYXJCdXR0b25JdGVtQnVpbGRlciB7XHJcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ3dpdGhIaW50KGhpbnQ6ICBzdHJpbmcpJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcclxuICB9XHJcbn0iXX0=
@@ -1,15 +0,0 @@
1
- import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
2
- /**
3
- * Represents a toolbar menu button and enables to set parametres to it
4
- */
5
- export class IToolbarMenuButtonItemBuilder extends IToolbarButtonItemBuilder {
6
- /**
7
- * Build a dropdown menu
8
- * @param itemSubmenuHandler - toolbar submenu handler
9
- * @returns The toolbar button menu builder
10
- */
11
- withMenu(itemSubmenuHandler) {
12
- throw new Error("Method 'withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.");
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1tZW51LWl0ZW0uYnVpbGRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29sYmFyL3Rvb2xiYXItbWVudS1pdGVtLmJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFHbkU7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLDZCQUE4QixTQUFRLHlCQUF5QjtJQUNuRjs7OztPQUlHO0lBQ0gsUUFBUSxDQUFDLGtCQUE4QztRQUNyRCxNQUFNLElBQUksS0FBSyxDQUFDLHdGQUF3RixDQUFDLENBQUM7SUFDNUcsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSVRvb2xiYXJCdXR0b25JdGVtQnVpbGRlciB9IGZyb20gXCIuL3Rvb2xiYXItaXRlbS5idWlsZGVyXCI7XHJcbmltcG9ydCB7IElUb29sYmFySXRlbVN1Ym1lbnVIYW5kbGVyIH0gZnJvbSBcIi4vdG9vbGJhci1pdGVtLXN1Ym1lbnUuaGFuZGxlclwiO1xyXG5cclxuLyoqXHJcbiAqIFJlcHJlc2VudHMgYSB0b29sYmFyIG1lbnUgYnV0dG9uIGFuZCBlbmFibGVzIHRvIHNldCBwYXJhbWV0cmVzIHRvIGl0XHJcbiAqL1xyXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgSVRvb2xiYXJNZW51QnV0dG9uSXRlbUJ1aWxkZXIgZXh0ZW5kcyBJVG9vbGJhckJ1dHRvbkl0ZW1CdWlsZGVyIHtcclxuICAvKipcclxuICAgKiBCdWlsZCBhIGRyb3Bkb3duIG1lbnVcclxuICAgKiBAcGFyYW0gaXRlbVN1Ym1lbnVIYW5kbGVyIC0gdG9vbGJhciBzdWJtZW51IGhhbmRsZXJcclxuICAgKiBAcmV0dXJucyBUaGUgdG9vbGJhciBidXR0b24gbWVudSBidWlsZGVyXHJcbiAgICovXHJcbiAgd2l0aE1lbnUoaXRlbVN1Ym1lbnVIYW5kbGVyOiBJVG9vbGJhckl0ZW1TdWJtZW51SGFuZGxlcik6IElUb29sYmFyTWVudUJ1dHRvbkl0ZW1CdWlsZGVyIHtcclxuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnd2l0aE1lbnUoaXRlbVN1Ym1lbnVIYW5kbGVyOiBJVG9vbGJhckl0ZW1TdWJtZW51SGFuZGxlciknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxufSJdfQ==
@@ -1,14 +0,0 @@
1
- import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
2
- /**
3
- * Represents a toolbar toggle button and enables to set parametres to it
4
- */
5
- export class IToolbarToggleButtonItemBuilder extends IToolbarButtonItemBuilder {
6
- /**
7
- *
8
- * @param value
9
- */
10
- withIsChecked(value) {
11
- throw new Error("Method 'withIsChecked(value: boolean)' must be implemented.");
12
- }
13
- }
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci10b2dnbGUtaXRlbS5idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL3Rvb2xiYXIvdG9vbGJhci10b2dnbGUtaXRlbS5idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRW5FOztHQUVHO0FBQ0gsTUFBTSxPQUFnQiwrQkFBZ0MsU0FBUSx5QkFBeUI7SUFFckY7OztPQUdHO0lBQ0gsYUFBYSxDQUFDLEtBQWM7UUFDMUIsTUFBTSxJQUFJLEtBQUssQ0FBQyw2REFBNkQsQ0FBQyxDQUFDO0lBQ2pGLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElUb29sYmFyQnV0dG9uSXRlbUJ1aWxkZXIgfSBmcm9tIFwiLi90b29sYmFyLWl0ZW0uYnVpbGRlclwiO1xyXG5cclxuLyoqXHJcbiAqIFJlcHJlc2VudHMgYSB0b29sYmFyIHRvZ2dsZSBidXR0b24gYW5kIGVuYWJsZXMgdG8gc2V0IHBhcmFtZXRyZXMgdG8gaXRcclxuICovXHJcbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBJVG9vbGJhclRvZ2dsZUJ1dHRvbkl0ZW1CdWlsZGVyIGV4dGVuZHMgSVRvb2xiYXJCdXR0b25JdGVtQnVpbGRlciB7XHJcbiAgXHJcbiAgLyoqXHJcbiAgICogXHJcbiAgICogQHBhcmFtIHZhbHVlIFxyXG4gICAqL1xyXG4gIHdpdGhJc0NoZWNrZWQodmFsdWU6IGJvb2xlYW4pOiBJVG9vbGJhclRvZ2dsZUJ1dHRvbkl0ZW1CdWlsZGVyIHtcclxuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnd2l0aElzQ2hlY2tlZCh2YWx1ZTogYm9vbGVhbiknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxufSJdfQ==
@@ -1,88 +0,0 @@
1
- export class IToolbarBuilder {
2
- constructor() {
3
- if (this.constructor == IToolbarBuilder) {
4
- throw new Error("Abstract classes can't be instantiated.");
5
- }
6
- }
7
- /**
8
- * Adds a new separator to the associated toolbar
9
- * @param index - The index to put the new item at
10
- */
11
- addSeparator(index) {
12
- throw new Error("Method 'addSeparator(index: number)' must be implemented.");
13
- }
14
- /**
15
- * Adds a new button to the associated toolbar
16
- * @param name - Internal item's name
17
- * @param index - The index to put the new item at
18
- */
19
- addButtonItem(name, index) {
20
- throw new Error("Method 'addButtonItem(name: string, index: number)' must be implemented.");
21
- }
22
- /**
23
- * Adds a new menu 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
- addMenuButtonItem(name, index) {
28
- throw new Error("Method 'addMenuButtonItem(name: string, index: number)' must be implemented.");
29
- }
30
- /**
31
- * Adds a new toggle button to the associated toolbar
32
- * @param name - Internal item's name
33
- * @param index - The index to put the new item at
34
- */
35
- addToggleButtonItem(name, index) {
36
- throw new Error("Method 'addToggleButtonItem(name: string, index: number)' must be implemented.");
37
- }
38
- /**
39
- * Replaces the item from the associated toolbar on button
40
- * @param name - The name of toolbar button to replace
41
- */
42
- replaceButtonItem(name) {
43
- throw new Error("Method 'replaceButtonItem(name: string)' must be implemented.");
44
- }
45
- /**
46
- * Replace the item from the associated toolbar on menu button
47
- * @param name - The name of toolbar menu button to replace
48
- */
49
- replaceMenuButtonItem(name) {
50
- throw new Error("Method 'replaceMenuButtonItem(name: string)' must be implemented.");
51
- }
52
- /**
53
- * Enables to set parametres to menu button item submenu
54
- * @param name - Item's internal name
55
- * @param itemSubmenuHandler - The toolbar button menu builder
56
- */
57
- handleMenuButtonItemSubmenu(name, itemSubmenuHandler) {
58
- throw new Error("Method 'handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.");
59
- }
60
- /**
61
- * Replaces the item from the associated toolbar on toggle button
62
- * @param name - The name of toolbar toggle button to replace
63
- */
64
- replaceToggleButtonItem(name) {
65
- throw new Error("Method 'replaceToggleButtonItem(name: string)' must be implemented.");
66
- }
67
- /**
68
- * Gets the list of existing item names of associated toolbar
69
- * @returns - Existing toolbar item names
70
- */
71
- get itemNames() {
72
- throw new Error("Getter 'itemNames()' must be implemented.");
73
- }
74
- /**
75
- * Gets count of toolbar items
76
- */
77
- get count() {
78
- throw new Error("Getter 'count()' must be implemented.");
79
- }
80
- /**
81
- * Removes specified item
82
- * @param itemName - Item's internal name
83
- */
84
- removeItem(itemName) {
85
- throw new Error("Method 'removeItem(name: string)' must be implemented.");
86
- }
87
- }
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL3Rvb2xiYXIvdG9vbGJhci5idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBLE1BQU0sT0FBZ0IsZUFBZTtJQUVuQztRQUNFLElBQUksSUFBSSxDQUFDLFdBQVcsSUFBSSxlQUFlLEVBQUU7WUFDdkMsTUFBTSxJQUFJLEtBQUssQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO1NBQzVEO0lBQ0gsQ0FBQztJQUVEOzs7T0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clxuICAgKiBAcGFyYW0gaXRlbU5hbWUgLSBJdGVtJ3MgaW50ZXJuYWwgbmFtZVxyXG4gICAqL1xyXG4gIHJlbW92ZUl0ZW0oaXRlbU5hbWU6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhyb3cgbmV3IEVycm9yKFwiTWV0aG9kICdyZW1vdmVJdGVtKG5hbWU6IHN0cmluZyknIG11c3QgYmUgaW1wbGVtZW50ZWQuXCIpO1xyXG4gIH1cclxufSJdfQ==
@@ -1,27 +0,0 @@
1
- /**
2
- * Interface that allows to add new items to the toolbar
3
- */
4
- export class IToolbar {
5
- constructor() {
6
- if (this.constructor == (IToolbar)) {
7
- throw new Error("Abstract classes can't be instantiated.");
8
- }
9
- }
10
- /**
11
- * The method is called just before the toolbar is created
12
- * @param builder - the toolbar builder object of associated toolbar
13
- * @param context - context
14
- */
15
- build(builder, context) {
16
- throw new Error("Method 'build(builder: IToolbarBuilder, context: TToolbarContext)' must be implemented.");
17
- }
18
- /**
19
- *
20
- * @param name
21
- * @param context
22
- */
23
- onToolbarItemClick(name, context) {
24
- throw new Error("Method 'onToolbarItemClick(name: string, context: TToolbarContext)' must be implemented.");
25
- }
26
- }
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29sYmFyL3Rvb2xiYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLFFBQVE7SUFFNUI7UUFDRSxJQUFJLElBQUksQ0FBQyxXQUFXLEtBQUksUUFBeUIsQ0FBQSxFQUFFO1lBQ2pELE1BQU0sSUFBSSxLQUFLLENBQUMseUNBQXlDLENBQUMsQ0FBQztTQUM1RDtJQUNILENBQUM7SUFFRDs7O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VyLCBjb250ZXh0OiBUVG9vbGJhckNvbnRleHQpOiB2b2lkIHtcclxuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnYnVpbGQoYnVpbGRlcjogSVRvb2xiYXJCdWlsZGVyLCBjb250ZXh0OiBUVG9vbGJhckNvbnRleHQpJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIFxyXG4gICAqIEBwYXJhbSBuYW1lIFxyXG4gICAqIEBwYXJhbSBjb250ZXh0IFxyXG4gICAqL1xyXG4gIG9uVG9vbGJhckl0ZW1DbGljayhuYW1lOiBzdHJpbmcsIGNvbnRleHQ6IFRUb29sYmFyQ29udGV4dCk6IHZvaWQge1xyXG4gICAgdGhyb3cgbmV3IEVycm9yKFwiTWV0aG9kICdvblRvb2xiYXJJdGVtQ2xpY2sobmFtZTogc3RyaW5nLCBjb250ZXh0OiBUVG9vbGJhckNvbnRleHQpJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcclxuICB9XHJcbn0iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlsb3RkZXYtcGlsb3Qtd2ViLXNkay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3BpbG90ZGV2LXBpbG90LXdlYi1zZGsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,9 +0,0 @@
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==