@pilotdev/pilot-web-sdk 24.41.0 → 24.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/esm2022/lib/contexts/context.mjs +32 -0
  2. package/esm2022/lib/contexts/document-annotations-list-context.mjs +16 -0
  3. package/esm2022/lib/contexts/render-context.mjs +24 -0
  4. package/esm2022/lib/data/expected-error.mjs +9 -0
  5. package/esm2022/lib/injectable/injection-source.mjs +45 -0
  6. package/esm2022/lib/personal-settings/system-settings-keys.mjs +75 -0
  7. package/esm2022/lib/tools/attribute-permission.info.mjs +43 -0
  8. package/esm2022/lib/tools/guid.mjs +53 -0
  9. package/{fesm2020 → fesm2022}/pilotdev-pilot-web-sdk.mjs +93 -76
  10. package/{fesm2015 → fesm2022}/pilotdev-pilot-web-sdk.mjs.map +1 -1
  11. package/package.json +7 -13
  12. package/esm2020/lib/contexts/context.mjs +0 -29
  13. package/esm2020/lib/contexts/document-annotations-list-context.mjs +0 -15
  14. package/esm2020/lib/contexts/render-context.mjs +0 -22
  15. package/esm2020/lib/data/expected-error.mjs +0 -8
  16. package/esm2020/lib/injectable/injection-source.mjs +0 -37
  17. package/esm2020/lib/personal-settings/system-settings-keys.mjs +0 -75
  18. package/esm2020/lib/tools/attribute-permission.info.mjs +0 -41
  19. package/esm2020/lib/tools/guid.mjs +0 -53
  20. package/fesm2015/pilotdev-pilot-web-sdk.mjs +0 -1031
  21. package/fesm2020/pilotdev-pilot-web-sdk.mjs.map +0 -1
  22. /package/{esm2020 → esm2022}/lib/base/disposable.mjs +0 -0
  23. /package/{esm2020 → esm2022}/lib/base/index.mjs +0 -0
  24. /package/{esm2020 → esm2022}/lib/base/initializable.mjs +0 -0
  25. /package/{esm2020 → esm2022}/lib/commands/command-builder.mjs +0 -0
  26. /package/{esm2020 → esm2022}/lib/commands/index.mjs +0 -0
  27. /package/{esm2020 → esm2022}/lib/contexts/index.mjs +0 -0
  28. /package/{esm2020 → esm2022}/lib/contexts/page-context.mjs +0 -0
  29. /package/{esm2020 → esm2022}/lib/data/access.mjs +0 -0
  30. /package/{esm2020 → esm2022}/lib/data/annotations.mjs +0 -0
  31. /package/{esm2020 → esm2022}/lib/data/attribute.mjs +0 -0
  32. /package/{esm2020 → esm2022}/lib/data/certificate.mjs +0 -0
  33. /package/{esm2020 → esm2022}/lib/data/data-object.mjs +0 -0
  34. /package/{esm2020 → esm2022}/lib/data/file.mjs +0 -0
  35. /package/{esm2020 → esm2022}/lib/data/files-snapshot.mjs +0 -0
  36. /package/{esm2020 → esm2022}/lib/data/index.mjs +0 -0
  37. /package/{esm2020 → esm2022}/lib/data/organisation-unit.mjs +0 -0
  38. /package/{esm2020 → esm2022}/lib/data/person.mjs +0 -0
  39. /package/{esm2020 → esm2022}/lib/data/relation.mjs +0 -0
  40. /package/{esm2020 → esm2022}/lib/data/signature-type.mjs +0 -0
  41. /package/{esm2020 → esm2022}/lib/data/signature-verification-result.mjs +0 -0
  42. /package/{esm2020 → esm2022}/lib/data/signature-verification-status.mjs +0 -0
  43. /package/{esm2020 → esm2022}/lib/data/subscription-type.mjs +0 -0
  44. /package/{esm2020 → esm2022}/lib/data/theme.mjs +0 -0
  45. /package/{esm2020 → esm2022}/lib/icrypto-provider.mjs +0 -0
  46. /package/{esm2020 → esm2022}/lib/idata.plugin.mjs +0 -0
  47. /package/{esm2020 → esm2022}/lib/injectable/command-builder-provider.mjs +0 -0
  48. /package/{esm2020 → esm2022}/lib/injectable/index.mjs +0 -0
  49. /package/{esm2020 → esm2022}/lib/injectable/ipersonal-settings.mjs +0 -0
  50. /package/{esm2020 → esm2022}/lib/injectable/modifier-provider.mjs +0 -0
  51. /package/{esm2020 → esm2022}/lib/injectable/objects-repository.mjs +0 -0
  52. /package/{esm2020 → esm2022}/lib/injectable/progress-service.mjs +0 -0
  53. /package/{esm2020 → esm2022}/lib/injectable/render-context-provider.mjs +0 -0
  54. /package/{esm2020 → esm2022}/lib/injectable/repository-events.mjs +0 -0
  55. /package/{esm2020 → esm2022}/lib/injectable/theme-service.mjs +0 -0
  56. /package/{esm2020 → esm2022}/lib/menu/checkable-menu.builder.mjs +0 -0
  57. /package/{esm2020 → esm2022}/lib/menu/index.mjs +0 -0
  58. /package/{esm2020 → esm2022}/lib/menu/menu-item.builder.mjs +0 -0
  59. /package/{esm2020 → esm2022}/lib/menu/menu.builder.mjs +0 -0
  60. /package/{esm2020 → esm2022}/lib/menu/menu.mjs +0 -0
  61. /package/{esm2020 → esm2022}/lib/modifier/index.mjs +0 -0
  62. /package/{esm2020 → esm2022}/lib/modifier/modifier.mjs +0 -0
  63. /package/{esm2020 → esm2022}/lib/modifier/object-builder.mjs +0 -0
  64. /package/{esm2020 → esm2022}/lib/modifier/signature-modifier.mjs +0 -0
  65. /package/{esm2020 → esm2022}/lib/openspace/index.mjs +0 -0
  66. /package/{esm2020 → esm2022}/lib/openspace/openspace-view.mjs +0 -0
  67. /package/{esm2020 → esm2022}/lib/page-navigation/index.mjs +0 -0
  68. /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation-section-element.builder.mjs +0 -0
  69. /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation-section.builder.mjs +0 -0
  70. /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation.builder.mjs +0 -0
  71. /package/{esm2020 → esm2022}/lib/page-navigation/page-navigation.mjs +0 -0
  72. /package/{esm2020 → esm2022}/lib/personal-settings/index.mjs +0 -0
  73. /package/{esm2020 → esm2022}/lib/personal-settings/isettings-feature.mjs +0 -0
  74. /package/{esm2020 → esm2022}/lib/personal-settings/isettings-value-provider.mjs +0 -0
  75. /package/{esm2020 → esm2022}/lib/tabs/index.mjs +0 -0
  76. /package/{esm2020 → esm2022}/lib/tabs/tab-item.builder.mjs +0 -0
  77. /package/{esm2020 → esm2022}/lib/tabs/tabs.builder.mjs +0 -0
  78. /package/{esm2020 → esm2022}/lib/tabs/tabs.mjs +0 -0
  79. /package/{esm2020 → esm2022}/lib/toolbar/index.mjs +0 -0
  80. /package/{esm2020 → esm2022}/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -0
  81. /package/{esm2020 → esm2022}/lib/toolbar/toolbar-item.builder.mjs +0 -0
  82. /package/{esm2020 → esm2022}/lib/toolbar/toolbar-menu-item.builder.mjs +0 -0
  83. /package/{esm2020 → esm2022}/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -0
  84. /package/{esm2020 → esm2022}/lib/toolbar/toolbar.builder.mjs +0 -0
  85. /package/{esm2020 → esm2022}/lib/toolbar/toolbar.mjs +0 -0
  86. /package/{esm2020 → esm2022}/lib/tools/index.mjs +0 -0
  87. /package/{esm2020 → esm2022}/lib/tools/utils.mjs +0 -0
  88. /package/{esm2020 → esm2022}/pilotdev-pilot-web-sdk.mjs +0 -0
  89. /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}-[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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3BpbG90LXdlYi1zZGsvc3JjL2xpYi90b29scy9ndWlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sU0FBUyxHQUFHLEtBQUssRUFBRSxDQUFDO0FBQzFCLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsRUFBRSxDQUFDLEVBQUU7SUFDNUIsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7Q0FDbkQ7QUFFRCxNQUFNLE9BQU8sSUFBSTtJQUtmLE1BQU0sQ0FBQyxPQUFPO1FBRVosSUFBSSxNQUFNLENBQUMsZUFBZSxFQUFFO1lBQzFCLHdEQUF3RDtZQUN4RCxPQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsVUFBVSxFQUFFLENBQUM7U0FDbkM7UUFFRCx5RkFBeUY7UUFDekYsTUFBTSxJQUF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