@pilotdev/pilot-web-sdk 24.4.0 → 24.9.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +22 -3
- 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,88 @@
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcGlsb3Qtd2ViLXNkay9zcmMvbGliL3Rvb2xiYXIvdG9vbGJhci5idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBLE1BQU0sT0FBZ0IsZUFBZTtJQUVuQztRQUNFLElBQUksSUFBSSxDQUFDLFdBQVcsSUFBSSxlQUFlLEVBQUU7WUFDdkMsTUFBTSxJQUFJLEtBQUssQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO1NBQzVEO0lBQ0gsQ0FBQztJQUVEOzs7T0FHRztJQUNILFlBQVksQ0FBQyxLQUFhO1FBQ3hCLE1BQU0sSUFBSSxLQUFLLENBQUMsMkRBQTJELENBQUMsQ0FBQztJQUMvRSxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNILGFBQWEsQ0FBQyxJQUFZLEVBQUUsS0FBYTtRQUN2QyxNQUFNLElBQUksS0FBSyxDQUFDLDBFQUEwRSxDQUFDLENBQUM7SUFDOUYsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCxpQkFBaUIsQ0FBQyxJQUFZLEVBQUUsS0FBYTtRQUMzQyxNQUFNLElBQUksS0FBSyxDQUFDLDhFQUE4RSxDQUFDLENBQUM7SUFDbEcsQ0FBQztJQUVEOzs7O09BSUc7SUFDSCxtQkFBbUIsQ0FBQyxJQUFZLEVBQUUsS0FBYTtRQUM3QyxNQUFNLElBQUksS0FBSyxDQUFDLGdGQUFnRixDQUFDLENBQUM7SUFDcEcsQ0FBQztJQUVEOzs7T0FHRztJQUNILGlCQUFpQixDQUFDLElBQVk7UUFD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bGVtZW50ZWQuXCIpO1xuICB9XG5cbiAgLyoqXG4gICAqIEdldHMgY291bnQgb2YgdG9vbGJhciBpdGVtc1xuICAgKi9cbiAgZ2V0IGNvdW50KCk6IG51bWJlciB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiR2V0dGVyICdjb3VudCgpJyBtdXN0IGJlIGltcGxlbWVudGVkLlwiKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZW1vdmVzIHNwZWNpZmllZCBpdGVtXG4gICAqIEBwYXJhbSBpdGVtTmFtZSAtIEl0ZW0ncyBpbnRlcm5hbCBuYW1lXG4gICAqL1xuICByZW1vdmVJdGVtKGl0ZW1OYW1lOiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ3JlbW92ZUl0ZW0obmFtZTogc3RyaW5nKScgbXVzdCBiZSBpbXBsZW1lbnRlZC5cIik7XG4gIH1cbn0iXX0=
|
@@ -0,0 +1,27 @@
|
|
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,eyJ2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QWJzdHJhY3QgY2xhc3NlcyBjYW4ndCBiZSBpbnN0YW50aWF0ZWQuXCIpO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBUaGUgbWV0aG9kIGlzIGNhbGxlZCBqdXN0IGJlZm9yZSB0aGUgdG9vbGJhciBpcyBjcmVhdGVkXG4gICAqIEBwYXJhbSBidWlsZGVyIC0gdGhlIHRvb2xiYXIgYnVpbGRlciBvYmplY3Qgb2YgYXNzb2NpYXRlZCB0b29sYmFyXG4gICAqIEBwYXJhbSBjb250ZXh0IC0gY29udGV4dFxuICAgKi9cbiAgYnVpbGQoYnVpbGRlcjogSVRvb2xiYXJCdWlsZGVyLCBjb250ZXh0OiBUVG9vbGJhckNvbnRleHQpOiB2b2lkIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJNZXRob2QgJ2J1aWxkKGJ1aWxkZXI6IElUb29sYmFyQnVpbGRlciwgY29udGV4dDogVFRvb2xiYXJDb250ZXh0KScgbXVzdCBiZSBpbXBsZW1lbnRlZC5cIik7XG4gIH1cblxuICAvKipcbiAgICogXG4gICAqIEBwYXJhbSBuYW1lIFxuICAgKiBAcGFyYW0gY29udGV4dCBcbiAgICovXG4gIG9uVG9vbGJhckl0ZW1DbGljayhuYW1lOiBzdHJpbmcsIGNvbnRleHQ6IFRUb29sYmFyQ29udGV4dCk6IHZvaWQge1xuICAgIHRocm93IG5ldyBFcnJvcihcIk1ldGhvZCAnb25Ub29sYmFySXRlbUNsaWNrKG5hbWU6IHN0cmluZywgY29udGV4dDogVFRvb2xiYXJDb250ZXh0KScgbXVzdCBiZSBpbXBsZW1lbnRlZC5cIik7XG4gIH1cbn0iXX0=
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { objectToMap } from "./utils";
|
2
|
+
export class AttributePermissionInfo {
|
3
|
+
constructor(editableForPositionsSource) {
|
4
|
+
this.ATTRIBUTE_NAME_MARKER = '&';
|
5
|
+
this.orgUnits = new Array();
|
6
|
+
this.orgUnitAttributes = new Array();
|
7
|
+
if (!editableForPositionsSource)
|
8
|
+
return;
|
9
|
+
editableForPositionsSource.forEach(str => {
|
10
|
+
if (str.length > 0 && str[0] === this.ATTRIBUTE_NAME_MARKER) {
|
11
|
+
this.orgUnitAttributes.push(str.substring(1));
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
const num = Number(str);
|
15
|
+
if (!isNaN(num))
|
16
|
+
this.orgUnits.push(num);
|
17
|
+
}
|
18
|
+
});
|
19
|
+
}
|
20
|
+
extractAllOrgUnits(obj) {
|
21
|
+
const attrMap = objectToMap(obj.attributes);
|
22
|
+
return this.extractAllOrgUnitsByAttributes(attrMap);
|
23
|
+
}
|
24
|
+
extractAllOrgUnitsByAttributes(attributes) {
|
25
|
+
let result = new Array();
|
26
|
+
if (!this.orgUnitAttributes || !attributes)
|
27
|
+
return result;
|
28
|
+
this.orgUnitAttributes.forEach(permissionAttributeName => {
|
29
|
+
if (attributes.has(permissionAttributeName)) {
|
30
|
+
const value = attributes.get(permissionAttributeName);
|
31
|
+
if (value && Array.isArray(value)) {
|
32
|
+
value.forEach(intValue => {
|
33
|
+
result.push(intValue);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
}
|
37
|
+
});
|
38
|
+
return result;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlLXBlcm1pc3Npb24uaW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29scy9hdHRyaWJ1dGUtcGVybWlzc2lvbi5pbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFdEMsTUFBTSxPQUFPLHVCQUF1QjtJQU1sQyxZQUFZLDBCQU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npb25BdHRyaWJ1dGVOYW1lKSl7XG4gICAgICAgIGNvbnN0IHZhbHVlID0gYXR0cmlidXRlcy5nZXQocGVybWlzc2lvbkF0dHJpYnV0ZU5hbWUpO1xuICAgICAgICBpZiAodmFsdWUgJiYgQXJyYXkuaXNBcnJheSh2YWx1ZSkpe1xuICAgICAgICAgIHZhbHVlLmZvckVhY2goaW50VmFsdWUgPT4ge1xuICAgICAgICAgICAgcmVzdWx0LnB1c2goaW50VmFsdWUpO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,53 @@
|
|
1
|
+
const byteToHex = Array();
|
2
|
+
for (let i = 0; i < 256; ++i) {
|
3
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
4
|
+
}
|
5
|
+
export class Guid {
|
6
|
+
static newGuid() {
|
7
|
+
if (window.isSecureContext) {
|
8
|
+
// If crypto.getRandomValues is available try to use it.
|
9
|
+
return window.crypto.randomUUID();
|
10
|
+
}
|
11
|
+
// Fall back to Math.random if a higher quality random number generator is not available.
|
12
|
+
const uuid = new Array(16);
|
13
|
+
var d = new Date().getTime();
|
14
|
+
for (var i = 0; i < 16; i++) {
|
15
|
+
var r = ((d + Math.random() * 256) % 256) | 0;
|
16
|
+
d = Math.trunc(d / 256);
|
17
|
+
uuid[i] = r;
|
18
|
+
}
|
19
|
+
// Makes uuid compliant to RFC-4122
|
20
|
+
uuid[6] = (uuid[6] & 0x0F) | 0x40; // uuid version
|
21
|
+
uuid[8] = (uuid[8] & 0x3F) | 0x80; // uuid variant
|
22
|
+
return this.stringify(uuid);
|
23
|
+
}
|
24
|
+
static isGuid(str) {
|
25
|
+
const regex = new RegExp(this.regex);
|
26
|
+
return regex.test(str) && str.length === 36;
|
27
|
+
}
|
28
|
+
static stringify(arr) {
|
29
|
+
return (byteToHex[arr[0]] +
|
30
|
+
byteToHex[arr[1]] +
|
31
|
+
byteToHex[arr[2]] +
|
32
|
+
byteToHex[arr[3]] +
|
33
|
+
'-' +
|
34
|
+
byteToHex[arr[4]] +
|
35
|
+
byteToHex[arr[5]] +
|
36
|
+
'-' +
|
37
|
+
byteToHex[arr[6]] +
|
38
|
+
byteToHex[arr[7]] +
|
39
|
+
'-' +
|
40
|
+
byteToHex[arr[8]] +
|
41
|
+
byteToHex[arr[9]] +
|
42
|
+
'-' +
|
43
|
+
byteToHex[arr[10]] +
|
44
|
+
byteToHex[arr[11]] +
|
45
|
+
byteToHex[arr[12]] +
|
46
|
+
byteToHex[arr[13]] +
|
47
|
+
byteToHex[arr[14]] +
|
48
|
+
byteToHex[arr[15]]).toLowerCase();
|
49
|
+
}
|
50
|
+
}
|
51
|
+
Guid.regex = "(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})";
|
52
|
+
Guid.EMPTY = "00000000-0000-0000-0000-000000000000";
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29scy9ndWlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sU0FBUyxHQUFHLEtBQUssRUFBRSxDQUFDO0FBQzFCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUU7SUFDNUIsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7Q0FDbkQ7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bNF1dICtcbiAgICAgIGJ5dGVUb0hleFthcnJbNV1dICtcbiAgICAgICctJyArXG4gICAgICBieXRlVG9IZXhbYXJyWzZdXSArXG4gICAgICBieXRlVG9IZXhbYXJyWzddXSArXG4gICAgICAnLScgK1xuICAgICAgYnl0ZVRvSGV4W2Fycls4XV0gK1xuICAgICAgYnl0ZVRvSGV4W2Fycls5XV0gK1xuICAgICAgJy0nICtcbiAgICAgIGJ5dGVUb0hleFthcnJbMTBdXSArXG4gICAgICBieXRlVG9IZXhbYXJyWzExXV0gK1xuICAgICAgYnl0ZVRvSGV4W2FyclsxMl1dICtcbiAgICAgIGJ5dGVUb0hleFthcnJbMTNdXSArXG4gICAgICBieXRlVG9IZXhbYXJyWzE0XV0gK1xuICAgICAgYnl0ZVRvSGV4W2FyclsxNV1dXG4gICAgKS50b0xvd2VyQ2FzZSgpO1xuICB9XG59Il19
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export * from './attribute-permission.info';
|
2
|
+
export * from './utils';
|
3
|
+
export * from './guid';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLFFBQVEsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXR0cmlidXRlLXBlcm1pc3Npb24uaW5mbyc7XG5leHBvcnQgKiBmcm9tICcuL3V0aWxzJ1xuZXhwb3J0ICogZnJvbSAnLi9ndWlkJyJdfQ==
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export function objectToMap(objectMap) {
|
2
|
+
const map = new Map();
|
3
|
+
Object.keys(objectMap).forEach(key => {
|
4
|
+
map.set(key, objectMap[key]);
|
5
|
+
});
|
6
|
+
return map;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9waWxvdC13ZWItc2RrL3NyYy9saWIvdG9vbHMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxVQUFVLFdBQVcsQ0FBSSxTQUFrQztJQUMvRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsRUFBYSxDQUFDO0lBQ2pDLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ25DLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO0lBQy9CLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiXG5leHBvcnQgZnVuY3Rpb24gb2JqZWN0VG9NYXA8VD4ob2JqZWN0TWFwOiB7IFtrZXk6IHN0cmluZ106IGFueTsgfSk6IE1hcDxzdHJpbmcsIFQ+IHtcbiAgY29uc3QgbWFwID0gbmV3IE1hcDxzdHJpbmcsIFQ+KCk7XG4gIE9iamVjdC5rZXlzKG9iamVjdE1hcCkuZm9yRWFjaChrZXkgPT4ge1xuICAgIG1hcC5zZXQoa2V5LCBvYmplY3RNYXBba2V5XSk7XG4gIH0pO1xuICByZXR1cm4gbWFwO1xufSBcbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public-api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlsb3RkZXYtcGlsb3Qtd2ViLXNkay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3BpbG90ZGV2LXBpbG90LXdlYi1zZGsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
* Public API Surface of pilot-web-sdk
|
3
|
+
*/
|
4
|
+
export * from './lib/idata.plugin';
|
5
|
+
export * from './lib/injectable/index';
|
6
|
+
export * from './lib/toolbar/index';
|
7
|
+
export * from './lib/menu/index';
|
8
|
+
export * from './lib/contexts/index';
|
9
|
+
export * from './lib/tools/index';
|
10
|
+
export * from './lib/data/index';
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBwaWxvdC13ZWItc2RrXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL2lkYXRhLnBsdWdpbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9pbmplY3RhYmxlL2luZGV4JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Rvb2xiYXIvaW5kZXgnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbWVudS9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb250ZXh0cy9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90b29scy9pbmRleCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kYXRhL2luZGV4JzsiXX0=
|