@pilotdev/pilot-web-sdk 24.4.0 → 24.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -22
- package/esm2020/lib/contexts/context.mjs +29 -0
- package/esm2020/lib/contexts/document-annotations-list-context.mjs +15 -0
- package/esm2020/lib/contexts/index.mjs +4 -0
- package/esm2020/lib/contexts/render-context.mjs +22 -0
- package/esm2020/lib/data/access.mjs +26 -0
- package/esm2020/lib/data/annotations.mjs +2 -0
- package/esm2020/lib/data/attribute.mjs +17 -0
- package/esm2020/lib/data/data-object.mjs +19 -0
- package/esm2020/lib/data/file.mjs +2 -0
- package/esm2020/lib/data/files-snapshot.mjs +2 -0
- package/esm2020/lib/data/index.mjs +13 -0
- package/esm2020/lib/data/modifier.mjs +2 -0
- package/esm2020/lib/data/object-builder.mjs +2 -0
- package/esm2020/lib/data/organisation-unit.mjs +7 -0
- package/esm2020/lib/data/person.mjs +2 -0
- package/esm2020/lib/data/relation.mjs +2 -0
- package/esm2020/lib/data/subscriptionType.mjs +6 -0
- package/esm2020/lib/idata.plugin.mjs +2 -0
- package/esm2020/lib/injectable/index.mjs +5 -0
- package/esm2020/lib/injectable/modifier-provider.mjs +2 -0
- package/esm2020/lib/injectable/objects-repository.mjs +2 -0
- package/esm2020/lib/injectable/render-context-provider.mjs +2 -0
- package/esm2020/lib/injectable/repository-events.mjs +2 -0
- package/esm2020/lib/menu/checkable-menu.builder.mjs +14 -0
- package/esm2020/lib/menu/index.mjs +5 -0
- package/esm2020/lib/menu/menu-item.builder.mjs +39 -0
- package/esm2020/lib/menu/menu.builder.mjs +68 -0
- package/esm2020/lib/menu/menu.mjs +22 -0
- package/esm2020/lib/toolbar/index.mjs +7 -0
- package/esm2020/lib/toolbar/toolbar-item-submenu.handler.mjs +11 -0
- package/esm2020/lib/toolbar/toolbar-item.builder.mjs +41 -0
- package/esm2020/lib/toolbar/toolbar-menu-item.builder.mjs +15 -0
- package/esm2020/lib/toolbar/toolbar-toggle-item.builder.mjs +14 -0
- package/esm2020/lib/toolbar/toolbar.builder.mjs +88 -0
- package/esm2020/lib/toolbar/toolbar.mjs +27 -0
- package/esm2020/lib/tools/attribute-permission.info.mjs +41 -0
- package/esm2020/lib/tools/guid.mjs +53 -0
- package/esm2020/lib/tools/index.mjs +4 -0
- package/esm2020/lib/tools/utils.mjs +8 -0
- package/esm2020/pilotdev-pilot-web-sdk.mjs +5 -0
- package/esm2020/public-api.mjs +11 -0
- package/fesm2015/pilotdev-pilot-web-sdk.mjs +588 -0
- package/fesm2015/pilotdev-pilot-web-sdk.mjs.map +1 -0
- package/fesm2020/pilotdev-pilot-web-sdk.mjs +588 -0
- package/fesm2020/pilotdev-pilot-web-sdk.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/contexts/context.d.ts +22 -0
- package/lib/contexts/document-annotations-list-context.d.ts +12 -0
- package/{src/lib/contexts/index.ts → lib/contexts/index.d.ts} +1 -1
- package/lib/contexts/render-context.d.ts +17 -0
- package/lib/data/access.d.ts +35 -0
- package/lib/data/annotations.d.ts +15 -0
- package/lib/data/attribute.d.ts +30 -0
- package/lib/data/data-object.d.ts +74 -0
- package/lib/data/file.d.ts +23 -0
- package/lib/data/files-snapshot.d.ts +8 -0
- package/{src/lib/data/index.ts → lib/data/index.d.ts} +2 -2
- package/lib/data/modifier.d.ts +30 -0
- package/lib/data/object-builder.d.ts +110 -0
- package/lib/data/organisation-unit.d.ts +18 -0
- package/lib/data/person.d.ts +17 -0
- package/lib/data/relation.d.ts +8 -0
- package/lib/data/subscriptionType.d.ts +4 -0
- package/lib/idata.plugin.d.ts +2 -0
- package/{src/lib/injectable/index.ts → lib/injectable/index.d.ts} +2 -2
- package/{src/lib/injectable/modifier-provider.ts → lib/injectable/modifier-provider.d.ts} +5 -6
- package/lib/injectable/objects-repository.d.ts +72 -0
- package/lib/injectable/render-context-provider.d.ts +10 -0
- package/lib/injectable/repository-events.d.ts +31 -0
- package/lib/menu/checkable-menu.builder.d.ts +11 -0
- package/{src/lib/menu/index.ts → lib/menu/index.d.ts} +1 -2
- package/lib/menu/menu-item.builder.d.ts +27 -0
- package/lib/menu/menu.builder.d.ts +49 -0
- package/lib/menu/menu.d.ts +18 -0
- package/{src/lib/toolbar/index.ts → lib/toolbar/index.d.ts} +1 -2
- package/lib/toolbar/toolbar-item-submenu.handler.d.ts +9 -0
- package/lib/toolbar/toolbar-item.builder.d.ts +28 -0
- package/lib/toolbar/toolbar-menu-item.builder.d.ts +13 -0
- package/lib/toolbar/toolbar-toggle-item.builder.d.ts +11 -0
- package/lib/toolbar/toolbar.builder.d.ts +65 -0
- package/lib/toolbar/toolbar.d.ts +19 -0
- package/lib/tools/attribute-permission.info.d.ts +8 -0
- package/lib/tools/guid.d.ts +7 -0
- package/lib/tools/index.d.ts +3 -0
- package/lib/tools/utils.d.ts +3 -0
- package/package.json +21 -2
- package/{src/public-api.ts → public-api.d.ts} +1 -4
- package/.eslintrc.json +0 -31
- package/ng-package.json +0 -7
- package/src/lib/contexts/context.ts +0 -38
- package/src/lib/contexts/document-annotations-list-context.ts +0 -21
- package/src/lib/contexts/render-context.ts +0 -28
- package/src/lib/data/access.ts +0 -40
- package/src/lib/data/annotations.ts +0 -20
- package/src/lib/data/attribute.ts +0 -33
- package/src/lib/data/data-object.ts +0 -78
- package/src/lib/data/file.ts +0 -25
- package/src/lib/data/files-snapshot.ts +0 -9
- package/src/lib/data/modifier.ts +0 -31
- package/src/lib/data/object-builder.ts +0 -111
- package/src/lib/data/organisation-unit.ts +0 -20
- package/src/lib/data/person.ts +0 -17
- package/src/lib/data/relation.ts +0 -10
- package/src/lib/data/subscriptionType.ts +0 -5
- package/src/lib/idata.plugin.ts +0 -2
- package/src/lib/injectable/objects-repository.ts +0 -74
- package/src/lib/injectable/render-context-provider.ts +0 -11
- package/src/lib/injectable/repository-events.ts +0 -33
- package/src/lib/menu/checkable-menu.builder.ts +0 -15
- package/src/lib/menu/menu-item.builder.ts +0 -45
- package/src/lib/menu/menu.builder.ts +0 -79
- package/src/lib/menu/menu.ts +0 -24
- package/src/lib/toolbar/toolbar-item-submenu.handler.ts +0 -12
- package/src/lib/toolbar/toolbar-item.builder.ts +0 -45
- package/src/lib/toolbar/toolbar-menu-item.builder.ts +0 -16
- package/src/lib/toolbar/toolbar-toggle-item.builder.ts +0 -15
- package/src/lib/toolbar/toolbar.builder.ts +0 -104
- package/src/lib/toolbar/toolbar.ts +0 -31
- package/src/lib/tools/attribute-permission.info.ts +0 -51
- package/src/lib/tools/guid.ts +0 -63
- package/src/lib/tools/index.ts +0 -3
- package/src/lib/tools/utils.ts +0 -8
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ICheckableMenuItemBuilder } from "./checkable-menu.builder";
|
2
|
+
import { IMenuItemBuilder } from "./menu-item.builder";
|
3
|
+
/**
|
4
|
+
* Represents a menu and enables to add new items to it
|
5
|
+
*/
|
6
|
+
export declare abstract class IMenuBuilder {
|
7
|
+
constructor();
|
8
|
+
/**
|
9
|
+
* Gets the list of existing items of associated menu or subitems of an item
|
10
|
+
* @returns Existing menu item names
|
11
|
+
*/
|
12
|
+
get itemNames(): string[];
|
13
|
+
/**
|
14
|
+
* Gets count of menu items
|
15
|
+
*/
|
16
|
+
get count(): number;
|
17
|
+
/**
|
18
|
+
* Adds a new separator to the associated menu
|
19
|
+
* @param index The index to put the new item at
|
20
|
+
*/
|
21
|
+
addSeparator(index: number): void;
|
22
|
+
/**
|
23
|
+
* Adds a new item to the associated menu
|
24
|
+
* @param name Item's internal name
|
25
|
+
* @param index The index to put the new item at
|
26
|
+
*/
|
27
|
+
addItem(name: string, index: number): IMenuItemBuilder;
|
28
|
+
/**
|
29
|
+
* Adds a new checkable item to the associated menu
|
30
|
+
* @param name Item's internal name
|
31
|
+
* @param index The index to put the new item at
|
32
|
+
*/
|
33
|
+
addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder;
|
34
|
+
/**
|
35
|
+
* Replaces the item to the associated menu
|
36
|
+
* @param name Item's internal name
|
37
|
+
*/
|
38
|
+
replaceItem(name: string): IMenuItemBuilder;
|
39
|
+
/**
|
40
|
+
* Removes the item with the specified name
|
41
|
+
* @param name Item's internal name
|
42
|
+
*/
|
43
|
+
removeItem(name: string): void;
|
44
|
+
/**
|
45
|
+
* Gets the item
|
46
|
+
* @param name Item's internal name
|
47
|
+
*/
|
48
|
+
getItem(name: string): IMenuBuilder;
|
49
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { IMenuBuilder } from "./menu.builder";
|
2
|
+
/**
|
3
|
+
* Interface that allows to add new items to the menu and context menus
|
4
|
+
*/
|
5
|
+
export declare abstract class IMenu<TMenuContext> {
|
6
|
+
/**
|
7
|
+
* The method is called just before the menu is shown
|
8
|
+
* @param builder The menu builder object of associated menu
|
9
|
+
* @param context Context
|
10
|
+
*/
|
11
|
+
build(builder: IMenuBuilder, context: TMenuContext): void;
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
* @param name
|
15
|
+
* @param context
|
16
|
+
*/
|
17
|
+
onMenuItemClick(name: string, context: TMenuContext): void;
|
18
|
+
}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
1
|
export * from './toolbar';
|
3
2
|
export * from './toolbar-item.builder';
|
4
3
|
export * from './toolbar-item-submenu.handler';
|
5
4
|
export * from './toolbar-menu-item.builder';
|
6
5
|
export * from './toolbar-toggle-item.builder';
|
7
|
-
export * from './toolbar.builder';
|
6
|
+
export * from './toolbar.builder';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* Represents a toolbar button and enables to set parametres to it
|
3
|
+
*/
|
4
|
+
export declare abstract class IToolbarButtonItemBuilder {
|
5
|
+
constructor();
|
6
|
+
/**
|
7
|
+
* Item's name to be displayed
|
8
|
+
* @param header - value
|
9
|
+
* @returns instance of IToolbarButtonItemBuilder
|
10
|
+
*/
|
11
|
+
withHeader(header: string): IToolbarButtonItemBuilder;
|
12
|
+
/**
|
13
|
+
* Item's icon in SVG format
|
14
|
+
* @param name - icon name
|
15
|
+
* @param svg - url icon or base64 string
|
16
|
+
*/
|
17
|
+
withIcon(name: string, svg: string): IToolbarButtonItemBuilder;
|
18
|
+
/**
|
19
|
+
* Enabled the item
|
20
|
+
* @param value - value
|
21
|
+
*/
|
22
|
+
withIsEnabled(value: boolean): IToolbarButtonItemBuilder;
|
23
|
+
/**
|
24
|
+
* Item's hint
|
25
|
+
* @param hint - value
|
26
|
+
*/
|
27
|
+
withHint(hint: string): IToolbarButtonItemBuilder;
|
28
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
2
|
+
import { IToolbarItemSubmenuHandler } from "./toolbar-item-submenu.handler";
|
3
|
+
/**
|
4
|
+
* Represents a toolbar menu button and enables to set parametres to it
|
5
|
+
*/
|
6
|
+
export declare abstract class IToolbarMenuButtonItemBuilder extends IToolbarButtonItemBuilder {
|
7
|
+
/**
|
8
|
+
* Build a dropdown menu
|
9
|
+
* @param itemSubmenuHandler - toolbar submenu handler
|
10
|
+
* @returns The toolbar button menu builder
|
11
|
+
*/
|
12
|
+
withMenu(itemSubmenuHandler: IToolbarItemSubmenuHandler): IToolbarMenuButtonItemBuilder;
|
13
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
2
|
+
/**
|
3
|
+
* Represents a toolbar toggle button and enables to set parametres to it
|
4
|
+
*/
|
5
|
+
export declare abstract class IToolbarToggleButtonItemBuilder extends IToolbarButtonItemBuilder {
|
6
|
+
/**
|
7
|
+
*
|
8
|
+
* @param value
|
9
|
+
*/
|
10
|
+
withIsChecked(value: boolean): IToolbarToggleButtonItemBuilder;
|
11
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { IToolbarButtonItemBuilder } from "./toolbar-item.builder";
|
2
|
+
import { IToolbarItemSubmenuHandler } from "./toolbar-item-submenu.handler";
|
3
|
+
import { IToolbarMenuButtonItemBuilder } from "./toolbar-menu-item.builder";
|
4
|
+
import { IToolbarToggleButtonItemBuilder } from "./toolbar-toggle-item.builder";
|
5
|
+
export declare abstract class IToolbarBuilder {
|
6
|
+
constructor();
|
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: number): void;
|
12
|
+
/**
|
13
|
+
* Adds a new button to the associated toolbar
|
14
|
+
* @param name - Internal item's name
|
15
|
+
* @param index - The index to put the new item at
|
16
|
+
*/
|
17
|
+
addButtonItem(name: string, index: number): IToolbarButtonItemBuilder;
|
18
|
+
/**
|
19
|
+
* Adds a new menu button to the associated toolbar
|
20
|
+
* @param name - Internal item's name
|
21
|
+
* @param index - The index to put the new item at
|
22
|
+
*/
|
23
|
+
addMenuButtonItem(name: string, index: number): IToolbarMenuButtonItemBuilder;
|
24
|
+
/**
|
25
|
+
* Adds a new toggle button to the associated toolbar
|
26
|
+
* @param name - Internal item's name
|
27
|
+
* @param index - The index to put the new item at
|
28
|
+
*/
|
29
|
+
addToggleButtonItem(name: string, index: number): IToolbarToggleButtonItemBuilder;
|
30
|
+
/**
|
31
|
+
* Replaces the item from the associated toolbar on button
|
32
|
+
* @param name - The name of toolbar button to replace
|
33
|
+
*/
|
34
|
+
replaceButtonItem(name: string): IToolbarButtonItemBuilder;
|
35
|
+
/**
|
36
|
+
* Replace the item from the associated toolbar on menu button
|
37
|
+
* @param name - The name of toolbar menu button to replace
|
38
|
+
*/
|
39
|
+
replaceMenuButtonItem(name: string): IToolbarMenuButtonItemBuilder;
|
40
|
+
/**
|
41
|
+
* Enables to set parametres to menu button item submenu
|
42
|
+
* @param name - Item's internal name
|
43
|
+
* @param itemSubmenuHandler - The toolbar button menu builder
|
44
|
+
*/
|
45
|
+
handleMenuButtonItemSubmenu(name: string, itemSubmenuHandler: IToolbarItemSubmenuHandler): void;
|
46
|
+
/**
|
47
|
+
* Replaces the item from the associated toolbar on toggle button
|
48
|
+
* @param name - The name of toolbar toggle button to replace
|
49
|
+
*/
|
50
|
+
replaceToggleButtonItem(name: string): IToolbarToggleButtonItemBuilder;
|
51
|
+
/**
|
52
|
+
* Gets the list of existing item names of associated toolbar
|
53
|
+
* @returns - Existing toolbar item names
|
54
|
+
*/
|
55
|
+
get itemNames(): string[];
|
56
|
+
/**
|
57
|
+
* Gets count of toolbar items
|
58
|
+
*/
|
59
|
+
get count(): number;
|
60
|
+
/**
|
61
|
+
* Removes specified item
|
62
|
+
* @param itemName - Item's internal name
|
63
|
+
*/
|
64
|
+
removeItem(itemName: string): void;
|
65
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { IToolbarBuilder } from "./toolbar.builder";
|
2
|
+
/**
|
3
|
+
* Interface that allows to add new items to the toolbar
|
4
|
+
*/
|
5
|
+
export declare abstract class IToolbar<TToolbarContext> {
|
6
|
+
constructor();
|
7
|
+
/**
|
8
|
+
* The method is called just before the toolbar is created
|
9
|
+
* @param builder - the toolbar builder object of associated toolbar
|
10
|
+
* @param context - context
|
11
|
+
*/
|
12
|
+
build(builder: IToolbarBuilder, context: TToolbarContext): void;
|
13
|
+
/**
|
14
|
+
*
|
15
|
+
* @param name
|
16
|
+
* @param context
|
17
|
+
*/
|
18
|
+
onToolbarItemClick(name: string, context: TToolbarContext): void;
|
19
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare class AttributePermissionInfo {
|
2
|
+
private ATTRIBUTE_NAME_MARKER;
|
3
|
+
orgUnits: number[];
|
4
|
+
orgUnitAttributes: string[];
|
5
|
+
constructor(editableForPositionsSource: string[]);
|
6
|
+
extractAllOrgUnits(obj: any): number[];
|
7
|
+
extractAllOrgUnitsByAttributes(attributes: Map<string, any>): number[];
|
8
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pilotdev/pilot-web-sdk",
|
3
|
-
"version": "24.4.
|
3
|
+
"version": "24.4.1",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": "^15.1.4",
|
6
6
|
"@angular/core": "^15.1.4",
|
@@ -9,5 +9,24 @@
|
|
9
9
|
"dependencies": {
|
10
10
|
"tslib": "^2.3.0"
|
11
11
|
},
|
12
|
-
"sideEffects": false
|
12
|
+
"sideEffects": false,
|
13
|
+
"module": "fesm2015/pilotdev-pilot-web-sdk.mjs",
|
14
|
+
"es2020": "fesm2020/pilotdev-pilot-web-sdk.mjs",
|
15
|
+
"esm2020": "esm2020/pilotdev-pilot-web-sdk.mjs",
|
16
|
+
"fesm2020": "fesm2020/pilotdev-pilot-web-sdk.mjs",
|
17
|
+
"fesm2015": "fesm2015/pilotdev-pilot-web-sdk.mjs",
|
18
|
+
"typings": "index.d.ts",
|
19
|
+
"exports": {
|
20
|
+
"./package.json": {
|
21
|
+
"default": "./package.json"
|
22
|
+
},
|
23
|
+
".": {
|
24
|
+
"types": "./index.d.ts",
|
25
|
+
"esm2020": "./esm2020/pilotdev-pilot-web-sdk.mjs",
|
26
|
+
"es2020": "./fesm2020/pilotdev-pilot-web-sdk.mjs",
|
27
|
+
"es2015": "./fesm2015/pilotdev-pilot-web-sdk.mjs",
|
28
|
+
"node": "./fesm2015/pilotdev-pilot-web-sdk.mjs",
|
29
|
+
"default": "./fesm2020/pilotdev-pilot-web-sdk.mjs"
|
30
|
+
}
|
31
|
+
}
|
13
32
|
}
|
@@ -1,10 +1,7 @@
|
|
1
|
-
/*
|
2
|
-
* Public API Surface of pilot-web-sdk
|
3
|
-
*/
|
4
1
|
export * from './lib/idata.plugin';
|
5
2
|
export * from './lib/injectable/index';
|
6
3
|
export * from './lib/toolbar/index';
|
7
4
|
export * from './lib/menu/index';
|
8
5
|
export * from './lib/contexts/index';
|
9
6
|
export * from './lib/tools/index';
|
10
|
-
export * from './lib/data/index';
|
7
|
+
export * from './lib/data/index';
|
package/.eslintrc.json
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "../../.eslintrc.json",
|
3
|
-
"ignorePatterns": ["!**/*"],
|
4
|
-
"overrides": [
|
5
|
-
{
|
6
|
-
"files": ["*.ts"],
|
7
|
-
"rules": {
|
8
|
-
"@angular-eslint/directive-selector": [
|
9
|
-
"error",
|
10
|
-
{
|
11
|
-
"type": "attribute",
|
12
|
-
"prefix": "lib",
|
13
|
-
"style": "camelCase"
|
14
|
-
}
|
15
|
-
],
|
16
|
-
"@angular-eslint/component-selector": [
|
17
|
-
"error",
|
18
|
-
{
|
19
|
-
"type": "element",
|
20
|
-
"prefix": "lib",
|
21
|
-
"style": "kebab-case"
|
22
|
-
}
|
23
|
-
]
|
24
|
-
}
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"files": ["*.html"],
|
28
|
-
"rules": {}
|
29
|
-
}
|
30
|
-
]
|
31
|
-
}
|
package/ng-package.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
import { IDataObject } from "../data";
|
2
|
-
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Contex for objects view
|
6
|
-
*/
|
7
|
-
export class ObjectsViewContext {
|
8
|
-
private readonly _selectedObjects: IDataObject[];
|
9
|
-
private readonly _shortcuts: IDataObject[];
|
10
|
-
private readonly _context: IDataObject;
|
11
|
-
|
12
|
-
constructor(selectedObjects: IDataObject[], context: IDataObject, shortcuts?: IDataObject[]) {
|
13
|
-
this._selectedObjects = selectedObjects;
|
14
|
-
this._context = context;
|
15
|
-
this._shortcuts = shortcuts ?? [];
|
16
|
-
}
|
17
|
-
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
*/
|
21
|
-
public get selectedObjects(): IDataObject[] {
|
22
|
-
return this._selectedObjects;
|
23
|
-
}
|
24
|
-
|
25
|
-
/**
|
26
|
-
*
|
27
|
-
*/
|
28
|
-
public get contextObject(): IDataObject {
|
29
|
-
return this._context;
|
30
|
-
}
|
31
|
-
|
32
|
-
/**
|
33
|
-
*
|
34
|
-
*/
|
35
|
-
public get shortcuts(): IDataObject[] {
|
36
|
-
return this._shortcuts;
|
37
|
-
}
|
38
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { IAnnotationContainerObject } from "../data";
|
2
|
-
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Context for document annotations list
|
6
|
-
*/
|
7
|
-
export class DocumentAnnotationsListContext {
|
8
|
-
private readonly _selectedAnnotations: IAnnotationContainerObject[];
|
9
|
-
|
10
|
-
constructor(selectedAnnotations: IAnnotationContainerObject[]) {
|
11
|
-
this._selectedAnnotations = selectedAnnotations;
|
12
|
-
}
|
13
|
-
|
14
|
-
/**
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
public get selectedAnnotations(): IAnnotationContainerObject[] {
|
18
|
-
return this._selectedAnnotations;
|
19
|
-
}
|
20
|
-
|
21
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { IDataObject } from "../data";
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Context for xps render
|
5
|
-
*/
|
6
|
-
export class RenderContext {
|
7
|
-
private readonly _dataObject: IDataObject;
|
8
|
-
private readonly _selectedVersion: string;
|
9
|
-
|
10
|
-
constructor(dataObject: IDataObject, selectedVersion: string) {
|
11
|
-
this._dataObject = dataObject;
|
12
|
-
this._selectedVersion = selectedVersion;
|
13
|
-
}
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Target object
|
17
|
-
*/
|
18
|
-
public get dataObject(): IDataObject {
|
19
|
-
return this._dataObject;
|
20
|
-
}
|
21
|
-
|
22
|
-
/**
|
23
|
-
* Selected version time
|
24
|
-
*/
|
25
|
-
public get selectedVersion(): string {
|
26
|
-
return this._selectedVersion;
|
27
|
-
}
|
28
|
-
}
|
package/src/lib/data/access.ts
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
export enum AccessLevel {
|
2
|
-
None = 0,
|
3
|
-
Create = 1 << 0,
|
4
|
-
Edit = 1 << 1,
|
5
|
-
View = 1 << 2,
|
6
|
-
Freeze = 1 << 3,
|
7
|
-
Agreement = 1 << 4,
|
8
|
-
Share = 1 << 5,
|
9
|
-
|
10
|
-
ViewCreate = View | Create,
|
11
|
-
ViewEdit = View | Create | Edit,
|
12
|
-
ViewEditAgrement = ViewEdit | Agreement,
|
13
|
-
Full = View | Create | Edit | Freeze | Agreement | Share
|
14
|
-
}
|
15
|
-
|
16
|
-
export enum AccessType {
|
17
|
-
Allow,
|
18
|
-
Deny
|
19
|
-
}
|
20
|
-
|
21
|
-
export enum AccessInheritance {
|
22
|
-
None,
|
23
|
-
InheritUntilSecret,
|
24
|
-
InheritWholeSubtree
|
25
|
-
}
|
26
|
-
|
27
|
-
export interface IAccessRecord {
|
28
|
-
get orgUnitId(): number;
|
29
|
-
get access(): IAccess;
|
30
|
-
get recordOwnerPosition(): number;
|
31
|
-
get inheritanceSource(): string;
|
32
|
-
}
|
33
|
-
|
34
|
-
export interface IAccess {
|
35
|
-
get type(): AccessType;
|
36
|
-
get accessLevel(): AccessLevel;
|
37
|
-
get validThrough(): string;
|
38
|
-
get inheritance(): AccessInheritance;
|
39
|
-
get typeIds(): number[];
|
40
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { IDataObject } from "./data-object";
|
2
|
-
|
3
|
-
|
4
|
-
export interface IAnnotationContainerObject {
|
5
|
-
get container(): IAnnotationContainer;
|
6
|
-
get source(): IDataObject;
|
7
|
-
get attributes(): any;
|
8
|
-
}
|
9
|
-
|
10
|
-
|
11
|
-
export interface IAnnotationContainer {
|
12
|
-
get annotationId(): string;
|
13
|
-
get version(): string;
|
14
|
-
get positionX(): number;
|
15
|
-
get positionY(): number;
|
16
|
-
get pageNumber(): number;
|
17
|
-
get data(): string;
|
18
|
-
get kind(): string;
|
19
|
-
}
|
20
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
export interface IAttribute {
|
3
|
-
get name(): string;
|
4
|
-
get title(): string;
|
5
|
-
get obligatory(): boolean;
|
6
|
-
get type(): AttributeType;
|
7
|
-
get displayHeight(): number;
|
8
|
-
get showInTree(): boolean;
|
9
|
-
get displaySortOrder(): number;
|
10
|
-
get isService(): boolean;
|
11
|
-
get configuration(): string;
|
12
|
-
get joinWithPrevious(): boolean;
|
13
|
-
get isUnique(): boolean;
|
14
|
-
get groupTitle(): string;
|
15
|
-
get editableForPositionsSource(): string[];
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
export enum AttributeType {
|
20
|
-
Integer = 0,
|
21
|
-
Double = 1,
|
22
|
-
DateTime = 2,
|
23
|
-
String = 3,
|
24
|
-
Decimal = 4,
|
25
|
-
Numerator = 5,
|
26
|
-
Array = 6,
|
27
|
-
UserState = 7,
|
28
|
-
OrgUnit = 8,
|
29
|
-
ElementBook = 9,
|
30
|
-
Guid = 10,
|
31
|
-
IntegerArray = 11,
|
32
|
-
Unknown = 99
|
33
|
-
}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import { AccessLevel, IAccessRecord } from "./access";
|
2
|
-
import { IAttribute } from "./attribute";
|
3
|
-
import { IFileSnapshot } from "./files-snapshot";
|
4
|
-
import { IPerson } from "./person";
|
5
|
-
import { IRelation } from "./relation";
|
6
|
-
|
7
|
-
|
8
|
-
export enum RelationType {
|
9
|
-
SourceFiles = 1,
|
10
|
-
TaskInitiatorAttachments = 2,
|
11
|
-
TaskExecutorAttachments = 3,
|
12
|
-
MessageAttachments = 4,
|
13
|
-
Custom = 5,
|
14
|
-
TaskAttachments = 6,
|
15
|
-
}
|
16
|
-
|
17
|
-
export enum ObjectState {
|
18
|
-
Alive,
|
19
|
-
InRecycleBin,
|
20
|
-
DeletedPermanently,
|
21
|
-
Frozen,
|
22
|
-
LockRequested,
|
23
|
-
LockAccepted
|
24
|
-
}
|
25
|
-
|
26
|
-
export interface IDataObject {
|
27
|
-
get id(): string;
|
28
|
-
get parentId(): string;
|
29
|
-
get title(): string;
|
30
|
-
get type(): IType;
|
31
|
-
get attributes(): { [key: string]: any; };
|
32
|
-
get children(): IChild[];
|
33
|
-
get creator(): IPerson;
|
34
|
-
get created(): string;
|
35
|
-
get actualFileSnapshot(): IFileSnapshot;
|
36
|
-
get previousFileSnapshots(): IFileSnapshot[];
|
37
|
-
get context(): string[];
|
38
|
-
get relations(): IRelation[];
|
39
|
-
get access(): IAccessRecord[];
|
40
|
-
get accessLevels(): { [key: number]: AccessLevel; };
|
41
|
-
get stateInfo(): IStateInfo;
|
42
|
-
get secretInfo(): ISecretInfo;
|
43
|
-
}
|
44
|
-
|
45
|
-
export interface IType {
|
46
|
-
get id(): number;
|
47
|
-
get title(): string;
|
48
|
-
get name(): string;
|
49
|
-
get icon(): string;
|
50
|
-
get sort(): number;
|
51
|
-
get hasFiles(): boolean;
|
52
|
-
get children(): number[];
|
53
|
-
get attributes(): IAttribute[];
|
54
|
-
get isDeleted(): boolean;
|
55
|
-
get kind(): number;
|
56
|
-
get isMountable(): boolean;
|
57
|
-
get isService(): boolean;
|
58
|
-
get isProject(): boolean;
|
59
|
-
get configuration(): string;
|
60
|
-
}
|
61
|
-
|
62
|
-
export interface IChild {
|
63
|
-
get objectId(): string;
|
64
|
-
get typeId(): number;
|
65
|
-
}
|
66
|
-
|
67
|
-
export interface ISecretInfo {
|
68
|
-
get isSecret(): boolean;
|
69
|
-
get secretParentId(): string;
|
70
|
-
get secretChangedBy(): number;
|
71
|
-
}
|
72
|
-
|
73
|
-
export interface IStateInfo {
|
74
|
-
get state(): ObjectState;
|
75
|
-
get date(): string;
|
76
|
-
get personId(): number;
|
77
|
-
get positionId(): number;
|
78
|
-
}
|
package/src/lib/data/file.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
export interface IFile {
|
2
|
-
get body(): IFileBody;
|
3
|
-
get name(): string;
|
4
|
-
get signatures(): ISignature[];
|
5
|
-
}
|
6
|
-
|
7
|
-
export interface IFileBody {
|
8
|
-
get id(): string;
|
9
|
-
get size(): number;
|
10
|
-
get md5(): any;
|
11
|
-
get modified(): string;
|
12
|
-
get created(): string;
|
13
|
-
get accessed(): string;
|
14
|
-
}
|
15
|
-
|
16
|
-
export interface ISignature {
|
17
|
-
get id(): string;
|
18
|
-
get databaseId(): string;
|
19
|
-
get positionId(): number;
|
20
|
-
get role(): string;
|
21
|
-
get sign(): string;
|
22
|
-
get requestedSigner(): string;
|
23
|
-
get isAdditional(): boolean;
|
24
|
-
get objectId(): string;
|
25
|
-
}
|
package/src/lib/data/modifier.ts
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
import { Observable } from "rxjs/internal/Observable";
|
2
|
-
import { IDataObject } from ".";
|
3
|
-
import { IObjectBuilder } from "./object-builder";
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Creates, modifies and deletes objects
|
7
|
-
*/
|
8
|
-
export interface IModifier {
|
9
|
-
/**
|
10
|
-
* Creates a new object
|
11
|
-
*
|
12
|
-
* @param id New object id
|
13
|
-
* @param parentId Parent id
|
14
|
-
* @param typeId Creating object's type id
|
15
|
-
* @return Fluent interface that enables you to modify created object
|
16
|
-
*/
|
17
|
-
create(id: string, parentId: string, typeId: number): IObjectBuilder;
|
18
|
-
/**
|
19
|
-
* Edits existing object
|
20
|
-
*
|
21
|
-
* @param id Id of object to modify
|
22
|
-
* @returns Fluent interface that enables you to modify created object
|
23
|
-
*/
|
24
|
-
edit(id: string) : IObjectBuilder;
|
25
|
-
/**
|
26
|
-
* Applies all the changes have been made in modifier
|
27
|
-
*
|
28
|
-
* @returns Created and edited objects wrapped in cold Observable
|
29
|
-
*/
|
30
|
-
apply(): Observable<IDataObject[]>;
|
31
|
-
}
|