@pilotdev/pilot-web-sdk 24.42.0 → 24.44.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/contexts/context.mjs +32 -0
- package/esm2022/lib/contexts/document-annotations-list-context.mjs +16 -0
- package/esm2022/lib/contexts/render-context.mjs +24 -0
- package/esm2022/lib/data/expected-error.mjs +9 -0
- package/esm2022/lib/injectable/injection-source.mjs +45 -0
- package/esm2022/lib/personal-settings/system-settings-keys.mjs +75 -0
- package/esm2022/lib/tools/attribute-permission.info.mjs +43 -0
- package/esm2022/lib/tools/guid.mjs +53 -0
- package/{fesm2020 → fesm2022}/pilotdev-pilot-web-sdk.mjs +93 -76
- package/{fesm2015 → fesm2022}/pilotdev-pilot-web-sdk.mjs.map +1 -1
- package/package.json +7 -13
- package/esm2020/lib/contexts/context.mjs +0 -29
- package/esm2020/lib/contexts/document-annotations-list-context.mjs +0 -15
- package/esm2020/lib/contexts/render-context.mjs +0 -22
- package/esm2020/lib/data/expected-error.mjs +0 -8
- package/esm2020/lib/injectable/injection-source.mjs +0 -37
- package/esm2020/lib/personal-settings/system-settings-keys.mjs +0 -75
- package/esm2020/lib/tools/attribute-permission.info.mjs +0 -41
- package/esm2020/lib/tools/guid.mjs +0 -53
- package/fesm2015/pilotdev-pilot-web-sdk.mjs +0 -1031
- package/fesm2020/pilotdev-pilot-web-sdk.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/base/disposable.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/base/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/base/initializable.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/commands/command-builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/commands/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/contexts/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/contexts/page-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/access.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/annotations.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/attribute.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/certificate.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/data-object.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/file.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/files-snapshot.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/organisation-unit.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/person.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/relation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/signature-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/signature-verification-result.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/signature-verification-status.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/subscription-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/data/theme.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/icrypto-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/idata.plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/command-builder-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/ipersonal-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/modifier-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/objects-repository.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/progress-service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/render-context-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/repository-events.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injectable/theme-service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/menu/checkable-menu.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/menu/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/menu/menu-item.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/menu/menu.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/menu/menu.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modifier/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modifier/modifier.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modifier/object-builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modifier/signature-modifier.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/openspace/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/openspace/openspace-view.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/page-navigation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation-section-element.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation-section.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/personal-settings/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/personal-settings/isettings-feature.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/personal-settings/isettings-value-provider.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tabs/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tabs/tab-item.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tabs/tabs.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tabs/tabs.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar-item.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar-menu-item.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar.builder.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/toolbar/toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tools/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/tools/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/pilotdev-pilot-web-sdk.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
@@ -1,53 +0,0 @@
|
|
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}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})";
|
52
|
-
Guid.EMPTY = "00000000-0000-0000-0000-000000000000";
|
53
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29scy9ndWlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sU0FBUyxHQUFHLEtBQUssRUFBRSxDQUFDO0FBQzFCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUU7SUFDNUIsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7Q0FDbkQ7QUFFRCxNQUFNLE9BQU8sSUFBSTtJQUtmLE1BQU0sQ0FBQyxPQUFPO1FBRVosSUFBSSxNQUFNLENBQUMsZUFBZSxFQUFFO1lBQzFCLHdEQUF3RDtZQUN4RCxPQUFPLE1BQU0sQ0FBQyxNQU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