@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
@@ -1 +1 @@
1
- {"version":3,"file":"pilotdev-pilot-web-sdk.mjs","sources":["../../../projects/pilot-web-sdk/src/lib/context.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-item-submenu.handler.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-menu-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-toggle-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/checkable-menu.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu.builder.ts","../../../projects/pilot-web-sdk/src/public-api.ts","../../../projects/pilot-web-sdk/src/pilotdev-pilot-web-sdk.ts"],"sourcesContent":["/**\r\n * Contex for objects view\r\n */\r\nexport class ObjectsViewContext {\r\n \r\n constructor(selectedObjects: any[], isContext: boolean, shortcuts?: any[]) {\r\n this.selectedObjects = selectedObjects;\r\n this.isContext = isContext;\r\n this.shortcuts = shortcuts;\r\n }\r\n\r\n /**\r\n * \r\n */\r\n readonly selectedObjects: any[]; // IDataObject[]\r\n\r\n /**\r\n * \r\n */\r\n readonly isContext: boolean;\r\n /**\r\n * \r\n */\r\n readonly shortcuts: any[]; // IDataObject[]\r\n}","import { IToolbarBuilder } from \"./toolbar.builder\";\r\n\r\n/**\r\n * Interface that allows to add new items to the toolbar\r\n */\r\nexport abstract class IToolbar<TToolbarContext> {\r\n\r\n constructor() {\r\n if (this.constructor == IToolbar<TToolbarContext>) {\r\n throw new Error(\"Abstract classes can't be instantiated.\");\r\n }\r\n }\r\n\r\n /**\r\n * The method is called just before the toolbar is created\r\n * @param builder - the toolbar builder object of associated toolbar\r\n * @param context - context\r\n */\r\n build(builder: IToolbarBuilder, context: TToolbarContext): void {\r\n throw new Error(\"Method 'build(builder: IToolbarBuilder, context: TToolbarContext)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * \r\n * @param name \r\n * @param context \r\n */\r\n onToolbarItemClick(name: string, context: TToolbarContext): void {\r\n throw new Error(\"Method 'onToolbarItemClick(name: string, context: TToolbarContext)' must be implemented.\");\r\n }\r\n}","/**\r\n * Represents a toolbar button and enables to set parametres to it\r\n */\r\nexport abstract class IToolbarButtonItemBuilder {\r\n \r\n constructor() {\r\n if (this.constructor == IToolbarButtonItemBuilder) {\r\n throw new Error(\"Abstract classes can't be instantiated.\");\r\n }\r\n }\r\n\r\n /**\r\n * Item's name to be displayed\r\n * @param header - value\r\n * @returns instance of IToolbarButtonItemBuilder\r\n */\r\n withHeader(header: string): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'withHeader(header: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Item's icon in SVG format\r\n * @param name - icon name\r\n * @param svg - url icon or base64 string\r\n */\r\n withIcon(name: string, svg: string): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'withIcon(name: string, svg: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Enabled the item\r\n * @param value - value\r\n */\r\n withIsEnabled(value: boolean): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'withIsEnabled(value: boolean)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Item's hint\r\n * @param hint - value\r\n */\r\n withHint(hint: string): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'withHint(hint: string)' must be implemented.\");\r\n }\r\n}","\r\nexport abstract class IToolbarItemSubmenuHandler {\r\n \r\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\r\nimport { IToolbarItemSubmenuHandler } from \"./toolbar-item-submenu.handler\";\r\n\r\n/**\r\n * Represents a toolbar menu button and enables to set parametres to it\r\n */\r\nexport abstract class IToolbarMenuButtonItemBuilder extends IToolbarButtonItemBuilder {\r\n /**\r\n * Build a dropdown menu\r\n * @param itemSubmenuHandler - toolbar submenu handler\r\n * @returns The toolbar button menu builder\r\n */\r\n withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler): IToolbarMenuButtonItemBuilder {\r\n throw new Error(\"Method 'withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.\");\r\n }\r\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\r\n\r\n/**\r\n * Represents a toolbar toggle button and enables to set parametres to it\r\n */\r\nexport abstract class IToolbarToggleButtonItemBuilder extends IToolbarButtonItemBuilder {\r\n \r\n /**\r\n * \r\n * @param value \r\n */\r\n withIsChecked(value: boolean): IToolbarToggleButtonItemBuilder {\r\n throw new Error(\"Method 'withIsChecked(value: boolean)' must be implemented.\");\r\n }\r\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\r\nimport { IToolbarItemSubmenuHandler } from \"./toolbar-item-submenu.handler\";\r\nimport { IToolbarMenuButtonItemBuilder } from \"./toolbar-menu-item.builder\";\r\nimport { IToolbarToggleButtonItemBuilder } from \"./toolbar-toggle-item.builder\";\r\n\r\nexport abstract class IToolbarBuilder {\r\n\r\n constructor() {\r\n if (this.constructor == IToolbarBuilder) {\r\n throw new Error(\"Abstract classes can't be instantiated.\");\r\n }\r\n }\r\n\r\n /**\r\n * Adds a new separator to the associated toolbar\r\n * @param index - The index to put the new item at\r\n */\r\n addSeparator(index: number): void {\r\n throw new Error(\"Method 'addSeparator(index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new button to the associated toolbar\r\n * @param name - Internal item's name\r\n * @param index - The index to put the new item at\r\n */\r\n addButtonItem(name: string, index: number): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'addButtonItem(name: string, index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new menu button to the associated toolbar\r\n * @param name - Internal item's name\r\n * @param index - The index to put the new item at\r\n */\r\n addMenuButtonItem(name: string, index: number): IToolbarMenuButtonItemBuilder {\r\n throw new Error(\"Method 'addMenuButtonItem(name: string, index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new toggle button to the associated toolbar\r\n * @param name - Internal item's name\r\n * @param index - The index to put the new item at\r\n */\r\n addToggleButtonItem(name: string, index: number): IToolbarToggleButtonItemBuilder {\r\n throw new Error(\"Method 'addToggleButtonItem(name: string, index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Replaces the item from the associated toolbar on button\r\n * @param name - The name of toolbar button to replace\r\n */\r\n replaceButtonItem(name: string): IToolbarButtonItemBuilder {\r\n throw new Error(\"Method 'replaceButtonItem(name: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Replace the item from the associated toolbar on menu button\r\n * @param name - The name of toolbar menu button to replace \r\n */\r\n replaceMenuButtonItem(name: string): IToolbarMenuButtonItemBuilder {\r\n throw new Error(\"Method 'replaceMenuButtonItem(name: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Enables to set parametres to menu button item submenu\r\n * @param name - Item's internal name\r\n * @param itemSubmenuHandler - The toolbar button menu builder\r\n */\r\n handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler): void {\r\n throw new Error(\"Method 'handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Replaces the item from the associated toolbar on toggle button\r\n * @param name - The name of toolbar toggle button to replace\r\n */\r\n replaceToggleButtonItem(name: string): IToolbarToggleButtonItemBuilder {\r\n throw new Error(\"Method 'replaceToggleButtonItem(name: string)' must be implemented.\");\r\n }\r\n\r\n /** \r\n * Gets the list of existing item names of associated toolbar \r\n * @returns - Existing toolbar item names \r\n */\r\n get itemNames(): string[] {\r\n throw new Error(\"Getter 'itemNames()' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Gets count of toolbar items\r\n */\r\n get count(): number {\r\n throw new Error(\"Getter 'count()' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Removes specified item\r\n * @param itemName - Item's internal name\r\n */\r\n removeItem(itemName: string): void {\r\n throw new Error(\"Method 'removeItem(name: string)' must be implemented.\");\r\n }\r\n}","import { IMenuBuilder } from \"./menu.builder\";\r\n\r\n/**\r\n * Interface that allows to add new items to the menu and context menus\r\n */\r\nexport abstract class IMenu<TMenuContext> {\r\n /**\r\n * The method is called just before the menu is shown\r\n * @param builder The menu builder object of associated menu\r\n * @param context Context\r\n */\r\n build(builder: IMenuBuilder, context: TMenuContext): void {\r\n throw new Error(\"Method 'build(builder: IMenuBuilder, context: TMenuContext)' must be implemented.\");\r\n }\r\n \r\n /**\r\n * \r\n * @param name \r\n * @param context \r\n */\r\n onMenuItemClick(name: string, context: TMenuContext): void {\r\n throw new Error(\"Method 'onMenuItemClick(name: string, context: TMenuContext)' must be implemented.\");\r\n }\r\n}","import { IMenuBuilder } from \"./menu.builder\";\r\n\r\n/**\r\n * Represents a menu item and enables to set parametres to it\r\n */\r\nexport abstract class IMenuItemBuilder {\r\n\r\n constructor() {\r\n if (this.constructor == IMenuItemBuilder) {\r\n throw new Error(\"Abstract classes can't be instantiated.\");\r\n }\r\n }\r\n\r\n /**\r\n * Item's name to be displayed\r\n * @param header value\r\n */\r\n withHeader(header: string): IMenuItemBuilder {\r\n throw new Error(\"Method 'withHeader(header: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Item's icon\r\n * @param name Icon name\r\n * @param iconSvg Url of icon or base64 string\r\n */\r\n withIcon(name: string, iconSvg: string): IMenuItemBuilder {\r\n throw new Error(\"Method 'withIcon(name: string, iconSvg: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Enabled the item\r\n * @param value value\r\n */\r\n withIsEnabled(value: boolean): IMenuItemBuilder {\r\n throw new Error(\"Method 'withIsEnabled(value: boolean)' must be implemented.\");\r\n }\r\n \r\n /**\r\n * Item's submenu\r\n */\r\n withSubmenu(): IMenuBuilder {\r\n throw new Error(\"Method 'withSubmenu()' must be implemented.\");\r\n }\r\n}","import { IMenuItemBuilder } from \"./menu-item.builder\";\r\n\r\n/**\r\n * \r\n */\r\nexport abstract class ICheckableMenuItemBuilder extends IMenuItemBuilder {\r\n \r\n /**\r\n * \r\n * @param value \r\n */\r\n withIsChecked(value: boolean): ICheckableMenuItemBuilder {\r\n throw new Error(\"Method 'withIsChecked(value: boolean)' must be implemented.\");\r\n }\r\n}","import { ICheckableMenuItemBuilder } from \"./checkable-menu.builder\";\r\nimport { IMenuItemBuilder } from \"./menu-item.builder\";\r\n\r\n/**\r\n * Represents a menu and enables to add new items to it\r\n */\r\nexport abstract class IMenuBuilder {\r\n\r\n constructor() {\r\n if (this.constructor == IMenuBuilder) {\r\n throw new Error(\"Abstract classes can't be instantiated.\");\r\n }\r\n }\r\n\r\n /**\r\n * Gets the list of existing items of associated menu or subitems of an item\r\n * @returns Existing menu item names\r\n */\r\n get itemNames(): string[] {\r\n throw new Error(\"Getter 'itemNames()' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Gets count of menu items\r\n */\r\n get count(): number { \r\n throw new Error(\"Getter 'count()' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new separator to the associated menu\r\n * @param index The index to put the new item at\r\n */\r\n addSeparator(index: number): void {\r\n throw new Error(\"Method 'addSeparator(index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new item to the associated menu\r\n * @param name Item's internal name\r\n * @param index The index to put the new item at\r\n */\r\n addItem(name: string, index: number): IMenuItemBuilder {\r\n throw new Error(\"Method 'addItem(name: string, index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Adds a new checkable item to the associated menu\r\n * @param name Item's internal name\r\n * @param index The index to put the new item at\r\n */\r\n addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder {\r\n throw new Error(\"Method 'addCheckableItem(name: string, index: number)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Replaces the item to the associated menu\r\n * @param name Item's internal name\r\n */\r\n replaceItem(name: string): IMenuItemBuilder {\r\n throw new Error(\"Method 'replaceItem(name: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Removes the item with the specified name\r\n * @param name Item's internal name\r\n */\r\n removeItem(name: string): void {\r\n throw new Error(\"Method 'removeItem(name: string)' must be implemented.\");\r\n }\r\n\r\n /**\r\n * Gets the item\r\n * @param name Item's internal name\r\n */\r\n getItem(name: string): IMenuBuilder {\r\n throw new Error(\"Method 'getItem(name: string)' must be implemented.\");\r\n }\r\n}","/*\r\n * Public API Surface of pilot-web-sdk\r\n */\r\nexport * from './lib/context';\r\nexport * from './lib/idata.plugin';\r\nexport * from './lib/injectable/index';\r\nexport * from './lib/toolbar/index';\r\nexport * from './lib/menu/index';","/**\n * Generated bundle index.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F;AAED;;;;AAIG;IACH,gBAAgB,CAAC,IAAY,EAAE,KAAa,EAAA;AAC1C,QAAA,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAC;KAChG;AAED;;;AAGG;AACH,IAAA,WAAW,CAAC,IAAY,EAAA;AACtB,QAAA,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;KAC5E;AAED;;;AAGG;AACH,IAAA,UAAU,CAAC,IAAY,EAAA;AACrB,QAAA,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;KAC3E;AAED;;;AAGG;AACH,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;KACxE;AACF;;AC9ED;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"pilotdev-pilot-web-sdk.mjs","sources":["../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-item-submenu.handler.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-menu-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar-toggle-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/toolbar/toolbar.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu-item.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/checkable-menu.builder.ts","../../../projects/pilot-web-sdk/src/lib/menu/menu.builder.ts","../../../projects/pilot-web-sdk/src/lib/contexts/context.ts","../../../projects/pilot-web-sdk/src/lib/contexts/document-annotations-list-context.ts","../../../projects/pilot-web-sdk/src/lib/contexts/render-context.ts","../../../projects/pilot-web-sdk/src/lib/tools/utils.ts","../../../projects/pilot-web-sdk/src/lib/tools/attribute-permission.info.ts","../../../projects/pilot-web-sdk/src/lib/tools/guid.ts","../../../projects/pilot-web-sdk/src/lib/data/access.ts","../../../projects/pilot-web-sdk/src/lib/data/attribute.ts","../../../projects/pilot-web-sdk/src/lib/data/data-object.ts","../../../projects/pilot-web-sdk/src/lib/data/organisation-unit.ts","../../../projects/pilot-web-sdk/src/lib/data/subscriptionType.ts","../../../projects/pilot-web-sdk/src/public-api.ts","../../../projects/pilot-web-sdk/src/pilotdev-pilot-web-sdk.ts"],"sourcesContent":["import { IToolbarBuilder } from \"./toolbar.builder\";\n\n/**\n * Interface that allows to add new items to the toolbar\n */\nexport abstract class IToolbar<TToolbarContext> {\n\n constructor() {\n if (this.constructor == IToolbar<TToolbarContext>) {\n throw new Error(\"Abstract classes can't be instantiated.\");\n }\n }\n\n /**\n * The method is called just before the toolbar is created\n * @param builder - the toolbar builder object of associated toolbar\n * @param context - context\n */\n build(builder: IToolbarBuilder, context: TToolbarContext): void {\n throw new Error(\"Method 'build(builder: IToolbarBuilder, context: TToolbarContext)' must be implemented.\");\n }\n\n /**\n * \n * @param name \n * @param context \n */\n onToolbarItemClick(name: string, context: TToolbarContext): void {\n throw new Error(\"Method 'onToolbarItemClick(name: string, context: TToolbarContext)' must be implemented.\");\n }\n}","/**\n * Represents a toolbar button and enables to set parametres to it\n */\nexport abstract class IToolbarButtonItemBuilder {\n \n constructor() {\n if (this.constructor == IToolbarButtonItemBuilder) {\n throw new Error(\"Abstract classes can't be instantiated.\");\n }\n }\n\n /**\n * Item's name to be displayed\n * @param header - value\n * @returns instance of IToolbarButtonItemBuilder\n */\n withHeader(header: string): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'withHeader(header: string)' must be implemented.\");\n }\n\n /**\n * Item's icon in SVG format\n * @param name - icon name\n * @param svg - url icon or base64 string\n */\n withIcon(name: string, svg: string): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'withIcon(name: string, svg: string)' must be implemented.\");\n }\n\n /**\n * Enabled the item\n * @param value - value\n */\n withIsEnabled(value: boolean): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'withIsEnabled(value: boolean)' must be implemented.\");\n }\n\n /**\n * Item's hint\n * @param hint - value\n */\n withHint(hint: string): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'withHint(hint: string)' must be implemented.\");\n }\n}","import { IToolbarBuilder } from \"./toolbar.builder\";\n\nexport abstract class IToolbarItemSubmenuHandler {\n /**\n * Build a submenu\n * @param builder - toolbar builder\n * @returns\n */\n onSubmenuRequested(builder: IToolbarBuilder): void {\n throw new Error(\"Method 'onSubmenuRequested(builder: IToolbarBuilder)' must be implemented.\");\n }\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\nimport { IToolbarItemSubmenuHandler } from \"./toolbar-item-submenu.handler\";\n\n/**\n * Represents a toolbar menu button and enables to set parametres to it\n */\nexport abstract class IToolbarMenuButtonItemBuilder extends IToolbarButtonItemBuilder {\n /**\n * Build a dropdown menu\n * @param itemSubmenuHandler - toolbar submenu handler\n * @returns The toolbar button menu builder\n */\n withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler): IToolbarMenuButtonItemBuilder {\n throw new Error(\"Method 'withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.\");\n }\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\n\n/**\n * Represents a toolbar toggle button and enables to set parametres to it\n */\nexport abstract class IToolbarToggleButtonItemBuilder extends IToolbarButtonItemBuilder {\n \n /**\n * \n * @param value \n */\n withIsChecked(value: boolean): IToolbarToggleButtonItemBuilder {\n throw new Error(\"Method 'withIsChecked(value: boolean)' must be implemented.\");\n }\n}","import { IToolbarButtonItemBuilder } from \"./toolbar-item.builder\";\nimport { IToolbarItemSubmenuHandler } from \"./toolbar-item-submenu.handler\";\nimport { IToolbarMenuButtonItemBuilder } from \"./toolbar-menu-item.builder\";\nimport { IToolbarToggleButtonItemBuilder } from \"./toolbar-toggle-item.builder\";\n\nexport abstract class IToolbarBuilder {\n\n constructor() {\n if (this.constructor == IToolbarBuilder) {\n throw new Error(\"Abstract classes can't be instantiated.\");\n }\n }\n\n /**\n * Adds a new separator to the associated toolbar\n * @param index - The index to put the new item at\n */\n addSeparator(index: number): void {\n throw new Error(\"Method 'addSeparator(index: number)' must be implemented.\");\n }\n\n /**\n * Adds a new button to the associated toolbar\n * @param name - Internal item's name\n * @param index - The index to put the new item at\n */\n addButtonItem(name: string, index: number): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'addButtonItem(name: string, index: number)' must be implemented.\");\n }\n\n /**\n * Adds a new menu button to the associated toolbar\n * @param name - Internal item's name\n * @param index - The index to put the new item at\n */\n addMenuButtonItem(name: string, index: number): IToolbarMenuButtonItemBuilder {\n throw new Error(\"Method 'addMenuButtonItem(name: string, index: number)' must be implemented.\");\n }\n\n /**\n * Adds a new toggle button to the associated toolbar\n * @param name - Internal item's name\n * @param index - The index to put the new item at\n */\n addToggleButtonItem(name: string, index: number): IToolbarToggleButtonItemBuilder {\n throw new Error(\"Method 'addToggleButtonItem(name: string, index: number)' must be implemented.\");\n }\n\n /**\n * Replaces the item from the associated toolbar on button\n * @param name - The name of toolbar button to replace\n */\n replaceButtonItem(name: string): IToolbarButtonItemBuilder {\n throw new Error(\"Method 'replaceButtonItem(name: string)' must be implemented.\");\n }\n\n /**\n * Replace the item from the associated toolbar on menu button\n * @param name - The name of toolbar menu button to replace \n */\n replaceMenuButtonItem(name: string): IToolbarMenuButtonItemBuilder {\n throw new Error(\"Method 'replaceMenuButtonItem(name: string)' must be implemented.\");\n }\n\n /**\n * Enables to set parametres to menu button item submenu\n * @param name - Item's internal name\n * @param itemSubmenuHandler - The toolbar button menu builder\n */\n handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler): void {\n throw new Error(\"Method 'handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler)' must be implemented.\");\n }\n\n /**\n * Replaces the item from the associated toolbar on toggle button\n * @param name - The name of toolbar toggle button to replace\n */\n replaceToggleButtonItem(name: string): IToolbarToggleButtonItemBuilder {\n throw new Error(\"Method 'replaceToggleButtonItem(name: string)' must be implemented.\");\n }\n\n /** \n * Gets the list of existing item names of associated toolbar \n * @returns - Existing toolbar item names \n */\n get itemNames(): string[] {\n throw new Error(\"Getter 'itemNames()' must be implemented.\");\n }\n\n /**\n * Gets count of toolbar items\n */\n get count(): number {\n throw new Error(\"Getter 'count()' must be implemented.\");\n }\n\n /**\n * Removes specified item\n * @param itemName - Item's internal name\n */\n removeItem(itemName: string): void {\n throw new Error(\"Method 'removeItem(name: string)' must be implemented.\");\n }\n}","import { IMenuBuilder } from \"./menu.builder\";\n\n/**\n * Interface that allows to add new items to the menu and context menus\n */\nexport abstract class IMenu<TMenuContext> {\n /**\n * The method is called just before the menu is shown\n * @param builder The menu builder object of associated menu\n * @param context Context\n */\n build(builder: IMenuBuilder, context: TMenuContext): void {\n throw new Error(\"Method 'build(builder: IMenuBuilder, context: TMenuContext)' must be implemented.\");\n }\n \n /**\n * \n * @param name \n * @param context \n */\n onMenuItemClick(name: string, context: TMenuContext): void {\n throw new Error(\"Method 'onMenuItemClick(name: string, context: TMenuContext)' must be implemented.\");\n }\n}","import { IMenuBuilder } from \"./menu.builder\";\n\n/**\n * Represents a menu item and enables to set parametres to it\n */\nexport abstract class IMenuItemBuilder {\n\n constructor() {\n if (this.constructor == IMenuItemBuilder) {\n throw new Error(\"Abstract classes can't be instantiated.\");\n }\n }\n\n /**\n * Item's name to be displayed\n * @param header value\n */\n withHeader(header: string): IMenuItemBuilder {\n throw new Error(\"Method 'withHeader(header: string)' must be implemented.\");\n }\n\n /**\n * Item's icon\n * @param name Icon name\n * @param iconSvg Url of icon or base64 string\n */\n withIcon(name: string, iconSvg: string): IMenuItemBuilder {\n throw new Error(\"Method 'withIcon(name: string, iconSvg: string)' must be implemented.\");\n }\n\n /**\n * Enabled the item\n * @param value value\n */\n withIsEnabled(value: boolean): IMenuItemBuilder {\n throw new Error(\"Method 'withIsEnabled(value: boolean)' must be implemented.\");\n }\n \n /**\n * Item's submenu\n */\n withSubmenu(): IMenuBuilder {\n throw new Error(\"Method 'withSubmenu()' must be implemented.\");\n }\n}","import { IMenuItemBuilder } from \"./menu-item.builder\";\n\n/**\n * \n */\nexport abstract class ICheckableMenuItemBuilder extends IMenuItemBuilder {\n \n /**\n * \n * @param value \n */\n withIsChecked(value: boolean): ICheckableMenuItemBuilder {\n throw new Error(\"Method 'withIsChecked(value: boolean)' must be implemented.\");\n }\n}","import { ICheckableMenuItemBuilder } from \"./checkable-menu.builder\";\nimport { IMenuItemBuilder } from \"./menu-item.builder\";\n\n/**\n * Represents a menu and enables to add new items to it\n */\nexport abstract class IMenuBuilder {\n\n constructor() {\n if (this.constructor == IMenuBuilder) {\n throw new Error(\"Abstract classes can't be instantiated.\");\n }\n }\n\n /**\n * Gets the list of existing items of associated menu or subitems of an item\n * @returns Existing menu item names\n */\n get itemNames(): string[] {\n throw new Error(\"Getter 'itemNames()' must be implemented.\");\n }\n\n /**\n * Gets count of menu items\n */\n get count(): number { \n throw new Error(\"Getter 'count()' must be implemented.\");\n }\n\n /**\n * Adds a new separator to the associated menu\n * @param index The index to put the new item at\n */\n addSeparator(index: number): void {\n throw new Error(\"Method 'addSeparator(index: number)' must be implemented.\");\n }\n\n /**\n * Adds a new item to the associated menu\n * @param name Item's internal name\n * @param index The index to put the new item at\n */\n addItem(name: string, index: number): IMenuItemBuilder {\n throw new Error(\"Method 'addItem(name: string, index: number)' must be implemented.\");\n }\n\n /**\n * Adds a new checkable item to the associated menu\n * @param name Item's internal name\n * @param index The index to put the new item at\n */\n addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder {\n throw new Error(\"Method 'addCheckableItem(name: string, index: number)' must be implemented.\");\n }\n\n /**\n * Replaces the item to the associated menu\n * @param name Item's internal name\n */\n replaceItem(name: string): IMenuItemBuilder {\n throw new Error(\"Method 'replaceItem(name: string)' must be implemented.\");\n }\n\n /**\n * Removes the item with the specified name\n * @param name Item's internal name\n */\n removeItem(name: string): void {\n throw new Error(\"Method 'removeItem(name: string)' must be implemented.\");\n }\n\n /**\n * Gets the item\n * @param name Item's internal name\n */\n getItem(name: string): IMenuBuilder {\n throw new Error(\"Method 'getItem(name: string)' must be implemented.\");\n }\n}","import { IDataObject } from \"../data\";\n\n\n/**\n * Contex for objects view\n */\nexport class ObjectsViewContext {\n private readonly _selectedObjects: IDataObject[];\n private readonly _shortcuts: IDataObject[]; \n private readonly _context: IDataObject;\n \n constructor(selectedObjects: IDataObject[], context: IDataObject, shortcuts?: IDataObject[]) {\n this._selectedObjects = selectedObjects;\n this._context = context;\n this._shortcuts = shortcuts ?? [];\n }\n\n /**\n * \n */\n public get selectedObjects(): IDataObject[] {\n return this._selectedObjects;\n }\n\n /**\n * \n */\n public get contextObject(): IDataObject {\n return this._context;\n }\n\n /**\n * \n */\n public get shortcuts(): IDataObject[] {\n return this._shortcuts;\n }\n}","import { IAnnotationContainerObject } from \"../data\";\n\n\n/**\n * Context for document annotations list\n */\nexport class DocumentAnnotationsListContext {\n private readonly _selectedAnnotations: IAnnotationContainerObject[]; \n \n constructor(selectedAnnotations: IAnnotationContainerObject[]) {\n this._selectedAnnotations = selectedAnnotations;\n }\n\n /**\n * \n */\n public get selectedAnnotations(): IAnnotationContainerObject[] {\n return this._selectedAnnotations;\n }\n\n}","import { IDataObject } from \"../data\";\n\n/**\n * Context for xps render\n */\nexport class RenderContext {\n private readonly _dataObject: IDataObject;\n private readonly _selectedVersion: string;\n \n constructor(dataObject: IDataObject, selectedVersion: string) {\n this._dataObject = dataObject;\n this._selectedVersion = selectedVersion;\n }\n\n /**\n * Target object\n */\n public get dataObject(): IDataObject {\n return this._dataObject;\n }\n\n /**\n * Selected version time\n */\n public get selectedVersion(): string {\n return this._selectedVersion;\n }\n}","\nexport function objectToMap<T>(objectMap: { [key: string]: any; }): Map<string, T> {\n const map = new Map<string, T>();\n Object.keys(objectMap).forEach(key => {\n map.set(key, objectMap[key]);\n });\n return map;\n} \n","import { objectToMap } from \"./utils\";\n\nexport class AttributePermissionInfo {\n private ATTRIBUTE_NAME_MARKER = '&';\n \n orgUnits: number[];\n orgUnitAttributes: string[];\n\n constructor(editableForPositionsSource: string[]) {\n this.orgUnits = new Array<number>();\n this.orgUnitAttributes = new Array<string>();\n\n if (!editableForPositionsSource)\n return;\n\n editableForPositionsSource.forEach(str => {\n if (str.length > 0 && str[0] === this.ATTRIBUTE_NAME_MARKER) {\n this.orgUnitAttributes.push(str.substring(1));\n }\n else {\n const num = Number(str);\n if (!isNaN(num)) \n this.orgUnits.push(num);\n }\n });\n }\n\n extractAllOrgUnits(obj: any): number[] {\n const attrMap = objectToMap<any>(obj.attributes);\n return this.extractAllOrgUnitsByAttributes(attrMap);\n }\n\n extractAllOrgUnitsByAttributes(attributes: Map<string, any>) : number[] {\n let result = new Array<number>();\n if (!this.orgUnitAttributes || !attributes )\n return result;\n\n this.orgUnitAttributes.forEach(permissionAttributeName => {\n if (attributes.has(permissionAttributeName)){\n const value = attributes.get(permissionAttributeName);\n if (value && Array.isArray(value)){\n value.forEach(intValue => {\n result.push(intValue);\n });\n }\n }\n });\n\n return result;\n }\n}\n","const byteToHex = Array();\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport class Guid {\n private static readonly regex = \"(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})\";\n\n static readonly EMPTY = \"00000000-0000-0000-0000-000000000000\";\n\n static newGuid(): string {\n\n if (window.isSecureContext) {\n // If crypto.getRandomValues is available try to use it.\n return window.crypto.randomUUID();\n }\n\n // Fall back to Math.random if a higher quality random number generator is not available.\n const uuid = new Array(16);\n var d = new Date().getTime();\n for (var i = 0; i < 16; i++) {\n var r = ((d + Math.random() * 256) % 256) | 0;\n d = Math.trunc(d / 256);\n uuid[i] = r;\n }\n \n // Makes uuid compliant to RFC-4122\n uuid[6] = (uuid[6] & 0x0F) | 0x40; // uuid version\n uuid[8] = (uuid[8] & 0x3F) | 0x80; // uuid variant\n \n return this.stringify(uuid);\n }\n\n static isGuid(str: string) {\n const regex = new RegExp(this.regex);\n return regex.test(str) && str.length === 36;\n }\n\n private static stringify(arr: Array<number>) {\n return (\n byteToHex[arr[0]] +\n byteToHex[arr[1]] +\n byteToHex[arr[2]] +\n byteToHex[arr[3]] +\n '-' +\n byteToHex[arr[4]] +\n byteToHex[arr[5]] +\n '-' +\n byteToHex[arr[6]] +\n byteToHex[arr[7]] +\n '-' +\n byteToHex[arr[8]] +\n byteToHex[arr[9]] +\n '-' +\n byteToHex[arr[10]] +\n byteToHex[arr[11]] +\n byteToHex[arr[12]] +\n byteToHex[arr[13]] +\n byteToHex[arr[14]] +\n byteToHex[arr[15]]\n ).toLowerCase();\n }\n}","export enum AccessLevel {\n None = 0,\n Create = 1 << 0,\n Edit = 1 << 1,\n View = 1 << 2,\n Freeze = 1 << 3,\n Agreement = 1 << 4,\n Share = 1 << 5,\n\n ViewCreate = View | Create,\n ViewEdit = View | Create | Edit,\n ViewEditAgrement = ViewEdit | Agreement,\n Full = View | Create | Edit | Freeze | Agreement | Share\n}\n\nexport enum AccessType {\n Allow,\n Deny\n}\n\nexport enum AccessInheritance {\n None,\n InheritUntilSecret,\n InheritWholeSubtree\n}\n\nexport interface IAccessRecord {\n get orgUnitId(): number;\n get access(): IAccess;\n get recordOwnerPosition(): number;\n get inheritanceSource(): string;\n}\n\nexport interface IAccess {\n get type(): AccessType;\n get accessLevel(): AccessLevel;\n get validThrough(): string;\n get inheritance(): AccessInheritance;\n get typeIds(): number[];\n}\n","\nexport interface IAttribute {\n get name(): string;\n get title(): string;\n get obligatory(): boolean;\n get type(): AttributeType;\n get displayHeight(): number;\n get showInTree(): boolean;\n get displaySortOrder(): number;\n get isService(): boolean;\n get configuration(): string;\n get joinWithPrevious(): boolean;\n get isUnique(): boolean;\n get groupTitle(): string;\n get editableForPositionsSource(): string[];\n}\n\n\nexport enum AttributeType {\n Integer = 0,\n Double = 1,\n DateTime = 2,\n String = 3,\n Decimal = 4,\n Numerator = 5,\n Array = 6,\n UserState = 7,\n OrgUnit = 8,\n ElementBook = 9,\n Guid = 10,\n IntegerArray = 11,\n Unknown = 99\n}","import { AccessLevel, IAccessRecord } from \"./access\";\nimport { IAttribute } from \"./attribute\";\nimport { IFileSnapshot } from \"./files-snapshot\";\nimport { IPerson } from \"./person\";\nimport { IRelation } from \"./relation\";\n\n\nexport enum RelationType {\n SourceFiles = 1,\n TaskInitiatorAttachments = 2,\n TaskExecutorAttachments = 3,\n MessageAttachments = 4,\n Custom = 5,\n TaskAttachments = 6,\n}\n\nexport enum ObjectState {\n Alive,\n InRecycleBin,\n DeletedPermanently,\n Frozen,\n LockRequested,\n LockAccepted\n}\n\nexport interface IDataObject {\n get id(): string;\n get parentId(): string;\n get title(): string;\n get type(): IType;\n get attributes(): { [key: string]: any; };\n get children(): IChild[];\n get creator(): IPerson;\n get created(): string;\n get actualFileSnapshot(): IFileSnapshot;\n get previousFileSnapshots(): IFileSnapshot[];\n get context(): string[];\n get relations(): IRelation[];\n get access(): IAccessRecord[];\n get accessLevels(): { [key: number]: AccessLevel; };\n get stateInfo(): IStateInfo;\n get secretInfo(): ISecretInfo;\n}\n\nexport interface IType {\n get id(): number;\n get title(): string;\n get name(): string;\n get icon(): string;\n get sort(): number;\n get hasFiles(): boolean;\n get children(): number[];\n get attributes(): IAttribute[];\n get isDeleted(): boolean;\n get kind(): number;\n get isMountable(): boolean;\n get isService(): boolean;\n get isProject(): boolean;\n get configuration(): string;\n}\n\nexport interface IChild {\n get objectId(): string;\n get typeId(): number;\n}\n\nexport interface ISecretInfo {\n get isSecret(): boolean;\n get secretParentId(): string;\n get secretChangedBy(): number;\n}\n\nexport interface IStateInfo {\n get state(): ObjectState;\n get date(): string;\n get personId(): number;\n get positionId(): number;\n}","\nexport interface IOrganizationUnit {\n get id(): number;\n get title(): string;\n get kind(): OrgUnitKind;\n get children(): number[];\n get isDeleted(): boolean;\n get isBoss(): boolean;\n get version(): number;\n get person(): number;\n get vicePersons(): number[];\n get isCanceled(): boolean;\n get groupPersons(): number[];\n}\n\nexport enum OrgUnitKind {\n Department = 0,\n Position = 1,\n Group = 2\n}","\nexport enum SubscriptionType {\n Shallow,\n Deep\n}","/*\n * Public API Surface of pilot-web-sdk\n */\nexport * from './lib/idata.plugin';\nexport * from './lib/injectable/index';\nexport * from './lib/toolbar/index';\nexport * from './lib/menu/index';\nexport * from './lib/contexts/index';\nexport * from './lib/tools/index';\nexport * from './lib/data/index';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAEA;;AAEG;MACmB,QAAQ,CAAA;AAE5B,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,IAAI,CAAC,WAAW,KAAI,QAAyB,CAAA,EAAE;AACjD,YAAA,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;AAC5D,SAAA;KACF;AAED;;;;AAIG;IACH,KAAK,CAAC,OAAwB,EAAE,OAAwB,EAAA;AACtD,QAAA,MAAM,IAAI,KAAK,CAAC,yFAAyF,CAAC,CAAC;KAC5G;AAED;;;;AAIG;IACH,kBAAkB,CAAC,IAAY,EAAE,OAAwB,EAAA;AACvD,QAAA,MAAM,IAAI,KAAK,CAAC,0FAA0F,CAAC,CAAC;KAC7G;AACF;;AC9BD;;AAEG;MACmB,yBAAyB,CAAA;AAE7C,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,IAAI,CAAC,WAAW,IAAI,yBAAyB,EAAE;AACjD,YAAA,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;AAC5D,SAAA;KACF;AAED;;;;AAIG;AACH,IAAA,UAAU,CAAC,MAAc,EAAA;AACvB,QAAA,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;KAC7E;AAED;;;;AAIG;IACH,QAAQ,CAAC,IAAY,EAAE,GAAW,EAAA;AAChC,QAAA,MAAM,IAAI,KAAK,C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dev/pilot-web-sdk" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@pilotdev/pilot-web-sdk" />
5
+ export * from './public-api';
@@ -0,0 +1,22 @@
1
+ import { IDataObject } from "../data";
2
+ /**
3
+ * Contex for objects view
4
+ */
5
+ export declare class ObjectsViewContext {
6
+ private readonly _selectedObjects;
7
+ private readonly _shortcuts;
8
+ private readonly _context;
9
+ constructor(selectedObjects: IDataObject[], context: IDataObject, shortcuts?: IDataObject[]);
10
+ /**
11
+ *
12
+ */
13
+ get selectedObjects(): IDataObject[];
14
+ /**
15
+ *
16
+ */
17
+ get contextObject(): IDataObject;
18
+ /**
19
+ *
20
+ */
21
+ get shortcuts(): IDataObject[];
22
+ }
@@ -0,0 +1,12 @@
1
+ import { IAnnotationContainerObject } from "../data";
2
+ /**
3
+ * Context for document annotations list
4
+ */
5
+ export declare class DocumentAnnotationsListContext {
6
+ private readonly _selectedAnnotations;
7
+ constructor(selectedAnnotations: IAnnotationContainerObject[]);
8
+ /**
9
+ *
10
+ */
11
+ get selectedAnnotations(): IAnnotationContainerObject[];
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from './context';
2
+ export * from './document-annotations-list-context';
3
+ export * from './render-context';
@@ -0,0 +1,17 @@
1
+ import { IDataObject } from "../data";
2
+ /**
3
+ * Context for xps render
4
+ */
5
+ export declare class RenderContext {
6
+ private readonly _dataObject;
7
+ private readonly _selectedVersion;
8
+ constructor(dataObject: IDataObject, selectedVersion: string);
9
+ /**
10
+ * Target object
11
+ */
12
+ get dataObject(): IDataObject;
13
+ /**
14
+ * Selected version time
15
+ */
16
+ get selectedVersion(): string;
17
+ }
@@ -0,0 +1,35 @@
1
+ export declare enum AccessLevel {
2
+ None = 0,
3
+ Create = 1,
4
+ Edit = 2,
5
+ View = 4,
6
+ Freeze = 8,
7
+ Agreement = 16,
8
+ Share = 32,
9
+ ViewCreate = 5,
10
+ ViewEdit = 7,
11
+ ViewEditAgrement = 23,
12
+ Full = 63
13
+ }
14
+ export declare enum AccessType {
15
+ Allow = 0,
16
+ Deny = 1
17
+ }
18
+ export declare enum AccessInheritance {
19
+ None = 0,
20
+ InheritUntilSecret = 1,
21
+ InheritWholeSubtree = 2
22
+ }
23
+ export interface IAccessRecord {
24
+ get orgUnitId(): number;
25
+ get access(): IAccess;
26
+ get recordOwnerPosition(): number;
27
+ get inheritanceSource(): string;
28
+ }
29
+ export interface IAccess {
30
+ get type(): AccessType;
31
+ get accessLevel(): AccessLevel;
32
+ get validThrough(): string;
33
+ get inheritance(): AccessInheritance;
34
+ get typeIds(): number[];
35
+ }
@@ -0,0 +1,15 @@
1
+ import { IDataObject } from "./data-object";
2
+ export interface IAnnotationContainerObject {
3
+ get container(): IAnnotationContainer;
4
+ get source(): IDataObject;
5
+ get attributes(): any;
6
+ }
7
+ export interface IAnnotationContainer {
8
+ get annotationId(): string;
9
+ get version(): string;
10
+ get positionX(): number;
11
+ get positionY(): number;
12
+ get pageNumber(): number;
13
+ get data(): string;
14
+ get kind(): string;
15
+ }
@@ -0,0 +1,30 @@
1
+ export interface IAttribute {
2
+ get name(): string;
3
+ get title(): string;
4
+ get obligatory(): boolean;
5
+ get type(): AttributeType;
6
+ get displayHeight(): number;
7
+ get showInTree(): boolean;
8
+ get displaySortOrder(): number;
9
+ get isService(): boolean;
10
+ get configuration(): string;
11
+ get joinWithPrevious(): boolean;
12
+ get isUnique(): boolean;
13
+ get groupTitle(): string;
14
+ get editableForPositionsSource(): string[];
15
+ }
16
+ export declare enum AttributeType {
17
+ Integer = 0,
18
+ Double = 1,
19
+ DateTime = 2,
20
+ String = 3,
21
+ Decimal = 4,
22
+ Numerator = 5,
23
+ Array = 6,
24
+ UserState = 7,
25
+ OrgUnit = 8,
26
+ ElementBook = 9,
27
+ Guid = 10,
28
+ IntegerArray = 11,
29
+ Unknown = 99
30
+ }
@@ -0,0 +1,74 @@
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
+ export declare enum RelationType {
7
+ SourceFiles = 1,
8
+ TaskInitiatorAttachments = 2,
9
+ TaskExecutorAttachments = 3,
10
+ MessageAttachments = 4,
11
+ Custom = 5,
12
+ TaskAttachments = 6
13
+ }
14
+ export declare enum ObjectState {
15
+ Alive = 0,
16
+ InRecycleBin = 1,
17
+ DeletedPermanently = 2,
18
+ Frozen = 3,
19
+ LockRequested = 4,
20
+ LockAccepted = 5
21
+ }
22
+ export interface IDataObject {
23
+ get id(): string;
24
+ get parentId(): string;
25
+ get title(): string;
26
+ get type(): IType;
27
+ get attributes(): {
28
+ [key: string]: any;
29
+ };
30
+ get children(): IChild[];
31
+ get creator(): IPerson;
32
+ get created(): string;
33
+ get actualFileSnapshot(): IFileSnapshot;
34
+ get previousFileSnapshots(): IFileSnapshot[];
35
+ get context(): string[];
36
+ get relations(): IRelation[];
37
+ get access(): IAccessRecord[];
38
+ get accessLevels(): {
39
+ [key: number]: AccessLevel;
40
+ };
41
+ get stateInfo(): IStateInfo;
42
+ get secretInfo(): ISecretInfo;
43
+ }
44
+ export interface IType {
45
+ get id(): number;
46
+ get title(): string;
47
+ get name(): string;
48
+ get icon(): string;
49
+ get sort(): number;
50
+ get hasFiles(): boolean;
51
+ get children(): number[];
52
+ get attributes(): IAttribute[];
53
+ get isDeleted(): boolean;
54
+ get kind(): number;
55
+ get isMountable(): boolean;
56
+ get isService(): boolean;
57
+ get isProject(): boolean;
58
+ get configuration(): string;
59
+ }
60
+ export interface IChild {
61
+ get objectId(): string;
62
+ get typeId(): number;
63
+ }
64
+ export interface ISecretInfo {
65
+ get isSecret(): boolean;
66
+ get secretParentId(): string;
67
+ get secretChangedBy(): number;
68
+ }
69
+ export interface IStateInfo {
70
+ get state(): ObjectState;
71
+ get date(): string;
72
+ get personId(): number;
73
+ get positionId(): number;
74
+ }
@@ -0,0 +1,23 @@
1
+ export interface IFile {
2
+ get body(): IFileBody;
3
+ get name(): string;
4
+ get signatures(): ISignature[];
5
+ }
6
+ export interface IFileBody {
7
+ get id(): string;
8
+ get size(): number;
9
+ get md5(): any;
10
+ get modified(): string;
11
+ get created(): string;
12
+ get accessed(): string;
13
+ }
14
+ export interface ISignature {
15
+ get id(): string;
16
+ get databaseId(): string;
17
+ get positionId(): number;
18
+ get role(): string;
19
+ get sign(): string;
20
+ get requestedSigner(): string;
21
+ get isAdditional(): boolean;
22
+ get objectId(): string;
23
+ }
@@ -0,0 +1,8 @@
1
+ import { IFile } from "./file";
2
+ export interface IFileSnapshot {
3
+ get created(): string;
4
+ get creatorId(): number;
5
+ get reason(): string;
6
+ get files(): IFile[];
7
+ get hasAnnotations(): boolean;
8
+ }
@@ -0,0 +1,12 @@
1
+ export * from './access';
2
+ export * from './annotations';
3
+ export * from './attribute';
4
+ export * from './data-object';
5
+ export * from './file';
6
+ export * from './files-snapshot';
7
+ export * from './person';
8
+ export * from './relation';
9
+ export * from './object-builder';
10
+ export * from './modifier';
11
+ export * from './organisation-unit';
12
+ export * from './subscriptionType';
@@ -0,0 +1,30 @@
1
+ import { Observable } from "rxjs/internal/Observable";
2
+ import { IDataObject } from ".";
3
+ import { IObjectBuilder } from "./object-builder";
4
+ /**
5
+ * Creates, modifies and deletes objects
6
+ */
7
+ export interface IModifier {
8
+ /**
9
+ * Creates a new object
10
+ *
11
+ * @param id New object id
12
+ * @param parentId Parent id
13
+ * @param typeId Creating object's type id
14
+ * @return Fluent interface that enables you to modify created object
15
+ */
16
+ create(id: string, parentId: string, typeId: number): IObjectBuilder;
17
+ /**
18
+ * Edits existing object
19
+ *
20
+ * @param id Id of object to modify
21
+ * @returns Fluent interface that enables you to modify created object
22
+ */
23
+ edit(id: string): IObjectBuilder;
24
+ /**
25
+ * Applies all the changes have been made in modifier
26
+ *
27
+ * @returns Created and edited objects wrapped in cold Observable
28
+ */
29
+ apply(): Observable<IDataObject[]>;
30
+ }
@@ -0,0 +1,110 @@
1
+ import { AttributeType } from "./attribute";
2
+ import { IAnnotationContainer } from "./annotations";
3
+ import { IAccessRecord } from "./access";
4
+ import { IRelation } from "./relation";
5
+ /**
6
+ * Fluent interface that enables you to modify the associated object
7
+ */
8
+ export interface IObjectBuilder {
9
+ /**
10
+ * Sets the string attribute value
11
+ *
12
+ * @param name Attribute name
13
+ * @param value Attribute value
14
+ * @returns Self
15
+ */
16
+ setAttribute(name: string, value: any, type: AttributeType): IObjectBuilder;
17
+ /**
18
+ * Adds access record to an object
19
+ *
20
+ * @param record Access record
21
+ * @returns Self
22
+ */
23
+ setAccess(record: IAccessRecord): IObjectBuilder;
24
+ /**
25
+ * Removes access record
26
+ *
27
+ * @param record Access record
28
+ * @returns Self
29
+ */
30
+ removeAccess(record: IAccessRecord): IObjectBuilder;
31
+ /**
32
+ * Adds a relation
33
+ *
34
+ * @param relation Relation
35
+ * @returns Self
36
+ */
37
+ addRelation(relation: IRelation): IObjectBuilder;
38
+ /**
39
+ * Removes relation
40
+ *
41
+ * @param relationId Relation id
42
+ * @returns Self
43
+ */
44
+ removeRelation(relationId: string): IObjectBuilder;
45
+ /**
46
+ * Sets new type. It is recommended to use this method only for recovering permanently deleted objects. In other cases, this can lead to system malfunction.
47
+ *
48
+ * @param typeId Type id
49
+ * @returns Self
50
+ */
51
+ setTypeId(typeId: number): IObjectBuilder;
52
+ /**
53
+ * Sets new parent
54
+ *
55
+ * @param parentId Parent id
56
+ * @returns Self
57
+ */
58
+ setParentId(parentId: string): IObjectBuilder;
59
+ /**
60
+ * Adds file snapshot
61
+ *
62
+ * @param reason Reason
63
+ * @returns Self
64
+ */
65
+ createSnapshot(reason: string): IObjectBuilder;
66
+ /**
67
+ * Makes file snapshot actual
68
+ *
69
+ * @param version Version of file snapshot to make actual
70
+ * @param reason Reason
71
+ * @returns Self
72
+ */
73
+ createSnapshotFrom(version: string, reason: string): IObjectBuilder;
74
+ /**
75
+ * Sets permanently deleted flag
76
+ *
77
+ * @param isDeleted Value
78
+ * @returns Self
79
+ */
80
+ setIsDeleted(isDeleted: boolean): IObjectBuilder;
81
+ /**
82
+ * Set flag in recycle bin
83
+ *
84
+ * @param isInRecycleBin Value
85
+ * @returns Self
86
+ */
87
+ setIsInRecycleBin(isInRecycleBin: boolean): IObjectBuilder;
88
+ /**
89
+ * Sets frozen flag
90
+ *
91
+ * @param isFreezed Value
92
+ * @returns Self
93
+ */
94
+ setIsFreezed(isFreezed: boolean): IObjectBuilder;
95
+ /**
96
+ * Sets object's secret info
97
+ *
98
+ * @param isSecret Value
99
+ * @returns Self
100
+ */
101
+ setIsSecret(isSecret: boolean): IObjectBuilder;
102
+ /**
103
+ * Adds or changes a annotation
104
+ *
105
+ * @param container Annotation container
106
+ * @param attrbutes Annotation attributes
107
+ * @returns Self
108
+ */
109
+ addAnnotationContainer(container: IAnnotationContainer, attrbutes: any): IObjectBuilder;
110
+ }
@@ -0,0 +1,18 @@
1
+ export interface IOrganizationUnit {
2
+ get id(): number;
3
+ get title(): string;
4
+ get kind(): OrgUnitKind;
5
+ get children(): number[];
6
+ get isDeleted(): boolean;
7
+ get isBoss(): boolean;
8
+ get version(): number;
9
+ get person(): number;
10
+ get vicePersons(): number[];
11
+ get isCanceled(): boolean;
12
+ get groupPersons(): number[];
13
+ }
14
+ export declare enum OrgUnitKind {
15
+ Department = 0,
16
+ Position = 1,
17
+ Group = 2
18
+ }
@@ -0,0 +1,17 @@
1
+ export interface IPerson {
2
+ get id(): number;
3
+ get login(): string;
4
+ get isInactive(): boolean;
5
+ get displayName(): string;
6
+ get positions(): number[];
7
+ get groups(): number[];
8
+ get bossOf(): number[];
9
+ get allOrgUnits(): number[];
10
+ get comment(): string;
11
+ get email(): string;
12
+ get sid(): string;
13
+ get uidDn(): string;
14
+ get isDeleted(): boolean;
15
+ get isAdmin(): boolean;
16
+ get version(): number;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { RelationType } from "./data-object";
2
+ export interface IRelation {
3
+ get id(): string;
4
+ get targetId(): string;
5
+ get type(): RelationType;
6
+ get name(): string;
7
+ get versionId(): string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum SubscriptionType {
2
+ Shallow = 0,
3
+ Deep = 1
4
+ }
@@ -1,2 +1,2 @@
1
- export interface IDataPlugin {
2
- }
1
+ export interface IDataPlugin {
2
+ }
@@ -1 +1,4 @@
1
- export * from './objects.repository';
1
+ export * from './objects-repository';
2
+ export * from './render-context-provider';
3
+ export * from './modifier-provider';
4
+ export * from './repository-events';
@@ -0,0 +1,10 @@
1
+ import { IModifier } from "../data/modifier";
2
+ /**
3
+ * Provides modifier
4
+ */
5
+ export interface IModifierProvider {
6
+ /**
7
+ *
8
+ */
9
+ newModifier(): IModifier;
10
+ }