@verdocs/web-sdk 1.0.15 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/cjs/{Content-986f7a13.js → Content-1d98b2f3.js} +297 -17
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/css-shim-88cc6900.js +6 -0
  4. package/dist/cjs/document-status-indicator.cjs.entry.js +1 -1
  5. package/dist/cjs/dom-95afd968.js +75 -0
  6. package/dist/cjs/dropdown-menu.cjs.entry.js +191 -4
  7. package/dist/cjs/index-0b9c3c7d.js +3064 -0
  8. package/dist/cjs/loader.cjs.js +19 -3
  9. package/dist/cjs/org-popup.cjs.entry.js +1 -1
  10. package/dist/cjs/pdf-viewer.cjs.entry.js +87 -6
  11. package/dist/cjs/search-box.cjs.entry.js +19 -7
  12. package/dist/cjs/search-embed.cjs.entry.js +1 -1
  13. package/dist/cjs/search-quick-functions.cjs.entry.js +1 -1
  14. package/dist/cjs/search-recent.cjs.entry.js +2 -2
  15. package/dist/cjs/search-saved.cjs.entry.js +2 -2
  16. package/dist/cjs/search-starred.cjs.entry.js +1 -1
  17. package/dist/cjs/search-tabs.cjs.entry.js +1 -1
  18. package/dist/cjs/shadow-css-71d0f821.js +391 -0
  19. package/dist/cjs/tags-indicator.cjs.entry.js +1 -1
  20. package/dist/cjs/template-card.cjs.entry.js +1 -1
  21. package/dist/cjs/toggle-icon-buttons.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-web-sdk.cjs.js +113 -5
  23. package/dist/collection/collection-manifest.json +2 -2
  24. package/dist/collection/components/elements/search-box/search-box.css +4 -0
  25. package/dist/collection/components/elements/search-box/search-box.js +73 -14
  26. package/dist/collection/components/elements/search-box/search-box.stories.js +3 -1
  27. package/dist/custom-elements/index.js +597 -34
  28. package/dist/docs.json +40 -5
  29. package/dist/esm/{Content-386637c8.js → Content-0d614ff3.js} +297 -17
  30. package/dist/esm/app-globals-0f993ce5.js +3 -0
  31. package/dist/esm/css-shim-c64026cd.js +4 -0
  32. package/dist/esm/document-status-indicator.entry.js +1 -1
  33. package/dist/esm/dom-a712b575.js +73 -0
  34. package/dist/esm/dropdown-menu.entry.js +191 -4
  35. package/dist/esm/index-81ec66c1.js +3027 -0
  36. package/dist/esm/loader.js +19 -3
  37. package/dist/esm/org-popup.entry.js +1 -1
  38. package/dist/esm/pdf-viewer.entry.js +87 -6
  39. package/dist/esm/search-box.entry.js +19 -7
  40. package/dist/esm/search-embed.entry.js +1 -1
  41. package/dist/esm/search-quick-functions.entry.js +1 -1
  42. package/dist/esm/search-recent.entry.js +2 -2
  43. package/dist/esm/search-saved.entry.js +2 -2
  44. package/dist/esm/search-starred.entry.js +1 -1
  45. package/dist/esm/search-tabs.entry.js +1 -1
  46. package/dist/esm/shadow-css-1e16431b.js +389 -0
  47. package/dist/esm/tags-indicator.entry.js +1 -1
  48. package/dist/esm/template-card.entry.js +1 -1
  49. package/dist/esm/toggle-icon-buttons.entry.js +1 -1
  50. package/dist/esm/verdocs-web-sdk.js +113 -5
  51. package/dist/esm-es5/Content-0d614ff3.js +1 -0
  52. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  53. package/dist/esm-es5/css-shim-c64026cd.js +1 -0
  54. package/dist/esm-es5/document-status-indicator.entry.js +1 -1
  55. package/dist/esm-es5/dom-a712b575.js +21 -0
  56. package/dist/esm-es5/dropdown-menu.entry.js +1 -1
  57. package/dist/esm-es5/index-81ec66c1.js +1 -0
  58. package/dist/esm-es5/loader.js +1 -1
  59. package/dist/esm-es5/org-popup.entry.js +1 -1
  60. package/dist/esm-es5/pdf-viewer.entry.js +2 -2
  61. package/dist/esm-es5/search-box.entry.js +1 -1
  62. package/dist/esm-es5/search-embed.entry.js +1 -1
  63. package/dist/esm-es5/search-quick-functions.entry.js +1 -1
  64. package/dist/esm-es5/search-recent.entry.js +1 -1
  65. package/dist/esm-es5/search-saved.entry.js +1 -1
  66. package/dist/esm-es5/search-starred.entry.js +1 -1
  67. package/dist/esm-es5/search-tabs.entry.js +1 -1
  68. package/dist/esm-es5/shadow-css-1e16431b.js +12 -0
  69. package/dist/esm-es5/tags-indicator.entry.js +1 -1
  70. package/dist/esm-es5/template-card.entry.js +1 -1
  71. package/dist/esm-es5/toggle-icon-buttons.entry.js +1 -1
  72. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  73. package/dist/types/components/elements/search-box/search-box.d.ts +20 -5
  74. package/dist/types/components/elements/search-box/search-box.stories.d.ts +3 -1
  75. package/dist/types/components.d.ts +23 -1
  76. package/dist/verdocs-web-sdk/Content-0d614ff3.js +2175 -0
  77. package/dist/verdocs-web-sdk/Content-42ddf5ec.system.js +1 -0
  78. package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
  79. package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
  80. package/dist/verdocs-web-sdk/css-shim-0e9af51a.system.js +1 -0
  81. package/dist/verdocs-web-sdk/css-shim-c64026cd.js +4 -0
  82. package/dist/verdocs-web-sdk/document-status-indicator.entry.js +55 -0
  83. package/dist/verdocs-web-sdk/document-status-indicator.system.entry.js +1 -0
  84. package/dist/verdocs-web-sdk/dom-a712b575.js +73 -0
  85. package/dist/verdocs-web-sdk/dom-f6327147.system.js +21 -0
  86. package/dist/verdocs-web-sdk/dropdown-menu.entry.js +1990 -0
  87. package/dist/verdocs-web-sdk/dropdown-menu.system.entry.js +1 -0
  88. package/dist/verdocs-web-sdk/index-46cb292b.system.js +1 -0
  89. package/dist/verdocs-web-sdk/index-81ec66c1.js +3027 -0
  90. package/dist/verdocs-web-sdk/index.esm.js +1 -0
  91. package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
  92. package/dist/verdocs-web-sdk/org-popup.entry.js +21 -0
  93. package/dist/verdocs-web-sdk/org-popup.system.entry.js +1 -0
  94. package/dist/verdocs-web-sdk/pdf-viewer.entry.js +13754 -0
  95. package/dist/verdocs-web-sdk/pdf-viewer.system.entry.js +23 -0
  96. package/dist/verdocs-web-sdk/search-box.entry.js +46 -0
  97. package/dist/verdocs-web-sdk/search-box.system.entry.js +1 -0
  98. package/dist/verdocs-web-sdk/search-embed.entry.js +15 -0
  99. package/dist/verdocs-web-sdk/search-embed.system.entry.js +1 -0
  100. package/dist/verdocs-web-sdk/search-quick-functions.entry.js +27 -0
  101. package/dist/verdocs-web-sdk/search-quick-functions.system.entry.js +1 -0
  102. package/dist/verdocs-web-sdk/search-recent.entry.js +35 -0
  103. package/dist/verdocs-web-sdk/search-recent.system.entry.js +1 -0
  104. package/dist/verdocs-web-sdk/search-saved.entry.js +35 -0
  105. package/dist/verdocs-web-sdk/search-saved.system.entry.js +1 -0
  106. package/dist/verdocs-web-sdk/search-starred.entry.js +42 -0
  107. package/dist/verdocs-web-sdk/search-starred.system.entry.js +1 -0
  108. package/dist/verdocs-web-sdk/search-tabs.entry.js +16 -0
  109. package/dist/verdocs-web-sdk/search-tabs.system.entry.js +1 -0
  110. package/dist/verdocs-web-sdk/shadow-css-1e16431b.js +389 -0
  111. package/dist/verdocs-web-sdk/shadow-css-ef154fe4.system.js +13 -0
  112. package/dist/verdocs-web-sdk/tags-indicator.entry.js +16 -0
  113. package/dist/verdocs-web-sdk/tags-indicator.system.entry.js +1 -0
  114. package/dist/verdocs-web-sdk/template-card.entry.js +24 -0
  115. package/dist/verdocs-web-sdk/template-card.system.entry.js +1 -0
  116. package/dist/verdocs-web-sdk/toggle-icon-buttons.entry.js +28 -0
  117. package/dist/verdocs-web-sdk/toggle-icon-buttons.system.entry.js +1 -0
  118. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +12 -1
  119. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +125 -1
  120. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  121. package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
  122. package/package.json +5 -5
  123. package/dist/cjs/index-e2fb537e.js +0 -1631
  124. package/dist/custom-elements.json +0 -266
  125. package/dist/esm/index-183a8995.js +0 -1602
  126. package/dist/esm-es5/Content-386637c8.js +0 -1
  127. package/dist/esm-es5/index-183a8995.js +0 -1
  128. package/dist/verdocs-web-sdk/p-153879ad.entry.js +0 -1
  129. package/dist/verdocs-web-sdk/p-1d1bc463.system.entry.js +0 -1
  130. package/dist/verdocs-web-sdk/p-29cb7cbc.entry.js +0 -1
  131. package/dist/verdocs-web-sdk/p-2cec77cf.entry.js +0 -1
  132. package/dist/verdocs-web-sdk/p-32a5788a.entry.js +0 -1
  133. package/dist/verdocs-web-sdk/p-33f73371.system.js +0 -1
  134. package/dist/verdocs-web-sdk/p-349248f0.system.entry.js +0 -1
  135. package/dist/verdocs-web-sdk/p-36082c90.entry.js +0 -1
  136. package/dist/verdocs-web-sdk/p-3a032151.entry.js +0 -1
  137. package/dist/verdocs-web-sdk/p-3cc8281f.system.entry.js +0 -1
  138. package/dist/verdocs-web-sdk/p-440d8a73.system.entry.js +0 -1
  139. package/dist/verdocs-web-sdk/p-4d4e090f.system.entry.js +0 -1
  140. package/dist/verdocs-web-sdk/p-55660c24.entry.js +0 -1
  141. package/dist/verdocs-web-sdk/p-63107dd5.system.entry.js +0 -1
  142. package/dist/verdocs-web-sdk/p-6b569aa1.system.entry.js +0 -1
  143. package/dist/verdocs-web-sdk/p-6e033b90.system.entry.js +0 -1
  144. package/dist/verdocs-web-sdk/p-6ee008ff.entry.js +0 -1
  145. package/dist/verdocs-web-sdk/p-7ab216be.system.entry.js +0 -1
  146. package/dist/verdocs-web-sdk/p-7d10b067.system.entry.js +0 -23
  147. package/dist/verdocs-web-sdk/p-89be87e5.js +0 -1
  148. package/dist/verdocs-web-sdk/p-92e7863c.system.entry.js +0 -1
  149. package/dist/verdocs-web-sdk/p-99ebfee7.system.entry.js +0 -1
  150. package/dist/verdocs-web-sdk/p-9af63b8a.system.js +0 -1
  151. package/dist/verdocs-web-sdk/p-9da35744.entry.js +0 -1
  152. package/dist/verdocs-web-sdk/p-b3d5601a.entry.js +0 -1
  153. package/dist/verdocs-web-sdk/p-b466e003.entry.js +0 -1
  154. package/dist/verdocs-web-sdk/p-bb99a203.entry.js +0 -1
  155. package/dist/verdocs-web-sdk/p-cbc784a6.system.js +0 -1
  156. package/dist/verdocs-web-sdk/p-cf030985.js +0 -1
  157. package/dist/verdocs-web-sdk/p-d73f486f.entry.js +0 -23
  158. package/dist/verdocs-web-sdk/p-dea09611.entry.js +0 -1
  159. package/dist/verdocs-web-sdk/p-e34538bd.system.entry.js +0 -1
  160. package/dist/verdocs-web-sdk/p-e59eda0c.system.entry.js +0 -1
@@ -2,19 +2,35 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
8
  /*
8
- Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
9
10
  */
10
11
  const patchEsm = () => {
12
+ // NOTE!! This fn cannot use async/await!
13
+ // @ts-ignore
14
+ if (index.BUILD.cssVarShim && !(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
15
+ // @ts-ignore
16
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-88cc6900.js'); }).then(() => {
17
+ if ((index.plt.$cssShim$ = index.win.__cssshim)) {
18
+ return index.plt.$cssShim$.i();
19
+ }
20
+ else {
21
+ // for better minification
22
+ return 0;
23
+ }
24
+ });
25
+ }
11
26
  return index.promiseResolve();
12
27
  };
13
28
 
14
29
  const defineCustomElements = (win, options) => {
15
30
  if (typeof window === 'undefined') return Promise.resolve();
16
31
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["document-status-indicator.cjs",[[0,"document-status-indicator",{"status":[1],"theme":[1]}]]],["dropdown-menu.cjs",[[0,"dropdown-menu",{"options":[16],"open":[4],"tall":[4],"isOpen":[32]}]]],["org-popup.cjs",[[0,"org-popup",{"organization":[8],"theme":[1]}]]],["pdf-viewer.cjs",[[0,"pdf-viewer",{"rotation":[2],"src":[1]}]]],["search-box.cjs",[[0,"search-box",{"type":[1],"q":[32]}]]],["search-embed.cjs",[[1,"search-embed"]]],["search-quick-functions.cjs",[[0,"search-quick-functions"]]],["search-recent.cjs",[[0,"search-recent",{"limit":[2],"recent":[32]}]]],["search-saved.cjs",[[0,"search-saved",{"limit":[2],"saved":[32]}]]],["search-starred.cjs",[[0,"search-starred",{"options":[8]}]]],["search-tabs.cjs",[[4,"search-tabs",{"selected":[32]}]]],["tags-indicator.cjs",[[0,"tags-indicator",{"tags":[16],"theme":[1]}]]],["template-card.cjs",[[0,"template-card",{"template":[8],"theme":[1]}]]],["toggle-icon-buttons.cjs",[[0,"toggle-icon-buttons",{"options":[16],"theme":[1]},[[6,"click","handleClick"]]]]]], options);
32
+ appGlobals.globalScripts();
33
+ return index.bootstrapLazy([["document-status-indicator.cjs",[[0,"document-status-indicator",{"status":[1],"theme":[1]}]]],["dropdown-menu.cjs",[[0,"dropdown-menu",{"options":[16],"open":[4],"tall":[4],"isOpen":[32]}]]],["org-popup.cjs",[[0,"org-popup",{"organization":[8],"theme":[1]}]]],["pdf-viewer.cjs",[[0,"pdf-viewer",{"rotation":[2],"src":[1]}]]],["search-box.cjs",[[0,"search-box",{"type":[1],"query":[1]}]]],["search-embed.cjs",[[1,"search-embed"]]],["search-quick-functions.cjs",[[0,"search-quick-functions"]]],["search-recent.cjs",[[0,"search-recent",{"limit":[2],"recent":[32]}]]],["search-saved.cjs",[[0,"search-saved",{"limit":[2],"saved":[32]}]]],["search-starred.cjs",[[0,"search-starred",{"options":[8]}]]],["search-tabs.cjs",[[4,"search-tabs",{"selected":[32]}]]],["tags-indicator.cjs",[[0,"tags-indicator",{"tags":[16],"theme":[1]}]]],["template-card.cjs",[[0,"template-card",{"template":[8],"theme":[1]}]]],["toggle-icon-buttons.cjs",[[0,"toggle-icon-buttons",{"options":[16],"theme":[1]},[[6,"click","handleClick"]]]]]], options);
18
34
  });
19
35
  };
20
36
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const UserGroup = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>`;
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -15,11 +15,19 @@ function createCommonjsModule(fn, basedir, module) {
15
15
  path: basedir,
16
16
  exports: {},
17
17
  require: function (path, base) {
18
- return commonjsRequire();
18
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
19
19
  }
20
20
  }, fn(module, module.exports), module.exports;
21
21
  }
22
22
 
23
+ function getDefaultExportFromNamespaceIfPresent (n) {
24
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
25
+ }
26
+
27
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
28
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
29
+ }
30
+
23
31
  function getAugmentedNamespace(n) {
24
32
  if (n.__esModule) return n;
25
33
  var a = Object.defineProperty({}, '__esModule', {value: true});
@@ -72,7 +80,14 @@ var pdf = createCommonjsModule(function (module, exports) {
72
80
  */
73
81
 
74
82
  (function webpackUniversalModuleDefinition(root, factory) {
75
- module.exports = factory();
83
+ if('object' === 'object' && 'object' === 'object')
84
+ module.exports = factory();
85
+ else if(typeof undefined === 'function' && undefined.amd)
86
+ undefined("pdfjs-dist/build/pdf", [], factory);
87
+ else if('object' === 'object')
88
+ exports["pdfjs-dist/build/pdf"] = factory();
89
+ else
90
+ root["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory();
76
91
  })(commonjsGlobal, function() {
77
92
  return /******/ (function(modules) { // webpackBootstrap
78
93
  /******/ // The module cache
@@ -164,6 +179,8 @@ return /******/ (function(modules) { // webpackBootstrap
164
179
  /* 0 */
165
180
  /***/ (function(module, exports, __w_pdfjs_require__) {
166
181
 
182
+ "use strict";
183
+
167
184
 
168
185
  Object.defineProperty(exports, "__esModule", {
169
186
  value: true
@@ -376,6 +393,9 @@ var _worker_options = __w_pdfjs_require__(10);
376
393
  var _text_layer = __w_pdfjs_require__(17);
377
394
 
378
395
  var _svg = __w_pdfjs_require__(18);
396
+
397
+ const pdfjsVersion = '2.5.207';
398
+ const pdfjsBuild = '0974d605';
379
399
  {
380
400
  const {
381
401
  isNodeJS
@@ -410,6 +430,8 @@ var _svg = __w_pdfjs_require__(18);
410
430
  /* 1 */
411
431
  /***/ (function(module, exports, __w_pdfjs_require__) {
412
432
 
433
+ "use strict";
434
+
413
435
 
414
436
  Object.defineProperty(exports, "__esModule", {
415
437
  value: true
@@ -908,6 +930,8 @@ exports.PDFDateString = PDFDateString;
908
930
  /* 2 */
909
931
  /***/ (function(module, exports, __w_pdfjs_require__) {
910
932
 
933
+ "use strict";
934
+
911
935
 
912
936
  Object.defineProperty(exports, "__esModule", {
913
937
  value: true
@@ -1734,13 +1758,19 @@ exports.createObjectURL = createObjectURL;
1734
1758
  /* 3 */
1735
1759
  /***/ (function(module, exports, __w_pdfjs_require__) {
1736
1760
 
1761
+ "use strict";
1762
+
1763
+
1764
+ var _is_node = __w_pdfjs_require__(4);
1737
1765
 
1738
- __w_pdfjs_require__(4);
1766
+ ;
1739
1767
 
1740
1768
  /***/ }),
1741
1769
  /* 4 */
1742
1770
  /***/ (function(module, exports, __w_pdfjs_require__) {
1743
1771
 
1772
+ "use strict";
1773
+
1744
1774
 
1745
1775
  Object.defineProperty(exports, "__esModule", {
1746
1776
  value: true
@@ -1753,6 +1783,8 @@ exports.isNodeJS = isNodeJS;
1753
1783
  /* 5 */
1754
1784
  /***/ (function(module, exports, __w_pdfjs_require__) {
1755
1785
 
1786
+ "use strict";
1787
+
1756
1788
 
1757
1789
  Object.defineProperty(exports, "__esModule", {
1758
1790
  value: true
@@ -3834,6 +3866,8 @@ exports.build = build;
3834
3866
  /* 6 */
3835
3867
  /***/ (function(module, exports, __w_pdfjs_require__) {
3836
3868
 
3869
+ "use strict";
3870
+
3837
3871
 
3838
3872
  Object.defineProperty(exports, "__esModule", {
3839
3873
  value: true
@@ -4219,6 +4253,8 @@ exports.FontFaceObject = FontFaceObject;
4219
4253
  /* 7 */
4220
4254
  /***/ (function(module, exports, __w_pdfjs_require__) {
4221
4255
 
4256
+ "use strict";
4257
+
4222
4258
 
4223
4259
  Object.defineProperty(exports, "__esModule", {
4224
4260
  value: true
@@ -4242,6 +4278,8 @@ exports.apiCompatibilityParams = apiCompatibilityParams;
4242
4278
  /* 8 */
4243
4279
  /***/ (function(module, exports, __w_pdfjs_require__) {
4244
4280
 
4281
+ "use strict";
4282
+
4245
4283
 
4246
4284
  Object.defineProperty(exports, "__esModule", {
4247
4285
  value: true
@@ -4256,6 +4294,7 @@ var MIN_FONT_SIZE = 16;
4256
4294
  var MAX_FONT_SIZE = 100;
4257
4295
  var MAX_GROUP_SIZE = 4096;
4258
4296
  var MIN_WIDTH_FACTOR = 0.65;
4297
+ var COMPILE_TYPE3_GLYPHS = true;
4259
4298
  var MAX_SIZE_TO_COMPILE = 1000;
4260
4299
  var FULL_CHUNK_HEIGHT = 16;
4261
4300
 
@@ -6024,7 +6063,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
6024
6063
  var isPatternFill = this.current.patternFill;
6025
6064
  var glyph = this.processingType3;
6026
6065
 
6027
- if (glyph && glyph.compiled === undefined) {
6066
+ if (COMPILE_TYPE3_GLYPHS && glyph && glyph.compiled === undefined) {
6028
6067
  if (width <= MAX_SIZE_TO_COMPILE && height <= MAX_SIZE_TO_COMPILE) {
6029
6068
  glyph.compiled = compileType3Glyph({
6030
6069
  data: img.data,
@@ -6285,6 +6324,8 @@ exports.CanvasGraphics = CanvasGraphics;
6285
6324
  /* 9 */
6286
6325
  /***/ (function(module, exports, __w_pdfjs_require__) {
6287
6326
 
6327
+ "use strict";
6328
+
6288
6329
 
6289
6330
  Object.defineProperty(exports, "__esModule", {
6290
6331
  value: true
@@ -6764,6 +6805,8 @@ exports.TilingPattern = TilingPattern;
6764
6805
  /* 10 */
6765
6806
  /***/ (function(module, exports, __w_pdfjs_require__) {
6766
6807
 
6808
+ "use strict";
6809
+
6767
6810
 
6768
6811
  Object.defineProperty(exports, "__esModule", {
6769
6812
  value: true
@@ -6778,6 +6821,8 @@ GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? ""
6778
6821
  /* 11 */
6779
6822
  /***/ (function(module, exports, __w_pdfjs_require__) {
6780
6823
 
6824
+ "use strict";
6825
+
6781
6826
 
6782
6827
  Object.defineProperty(exports, "__esModule", {
6783
6828
  value: true
@@ -7277,6 +7322,8 @@ exports.MessageHandler = MessageHandler;
7277
7322
  /* 12 */
7278
7323
  /***/ (function(module, exports, __w_pdfjs_require__) {
7279
7324
 
7325
+ "use strict";
7326
+
7280
7327
 
7281
7328
  Object.defineProperty(exports, "__esModule", {
7282
7329
  value: true
@@ -7403,6 +7450,8 @@ exports.Metadata = Metadata;
7403
7450
  /* 13 */
7404
7451
  /***/ (function(module, exports, __w_pdfjs_require__) {
7405
7452
 
7453
+ "use strict";
7454
+
7406
7455
 
7407
7456
  Object.defineProperty(exports, "__esModule", {
7408
7457
  value: true
@@ -7844,6 +7893,8 @@ exports.SimpleXMLParser = SimpleXMLParser;
7844
7893
  /* 14 */
7845
7894
  /***/ (function(module, exports, __w_pdfjs_require__) {
7846
7895
 
7896
+ "use strict";
7897
+
7847
7898
 
7848
7899
  Object.defineProperty(exports, "__esModule", {
7849
7900
  value: true
@@ -8197,6 +8248,8 @@ class PDFDataTransportStreamRangeReader {
8197
8248
  /* 15 */
8198
8249
  /***/ (function(module, exports, __w_pdfjs_require__) {
8199
8250
 
8251
+ "use strict";
8252
+
8200
8253
 
8201
8254
  Object.defineProperty(exports, "__esModule", {
8202
8255
  value: true
@@ -8642,6 +8695,8 @@ var WebGLUtils = function WebGLUtilsClosure() {
8642
8695
  /* 16 */
8643
8696
  /***/ (function(module, exports, __w_pdfjs_require__) {
8644
8697
 
8698
+ "use strict";
8699
+
8645
8700
 
8646
8701
  Object.defineProperty(exports, "__esModule", {
8647
8702
  value: true
@@ -8805,6 +8860,9 @@ class AnnotationElement {
8805
8860
  case _util.AnnotationBorderStyleType.UNDERLINE:
8806
8861
  container.style.borderBottomStyle = "solid";
8807
8862
  break;
8863
+
8864
+ default:
8865
+ break;
8808
8866
  }
8809
8867
 
8810
8868
  if (data.color) {
@@ -9673,6 +9731,8 @@ exports.AnnotationLayer = AnnotationLayer;
9673
9731
  /* 17 */
9674
9732
  /***/ (function(module, exports, __w_pdfjs_require__) {
9675
9733
 
9734
+ "use strict";
9735
+
9676
9736
 
9677
9737
  Object.defineProperty(exports, "__esModule", {
9678
9738
  value: true
@@ -10366,6 +10426,8 @@ exports.renderTextLayer = renderTextLayer;
10366
10426
  /* 18 */
10367
10427
  /***/ (function(module, exports, __w_pdfjs_require__) {
10368
10428
 
10429
+ "use strict";
10430
+
10369
10431
 
10370
10432
  Object.defineProperty(exports, "__esModule", {
10371
10433
  value: true
@@ -11133,7 +11195,7 @@ exports.SVGGraphics = SVGGraphics;
11133
11195
  }
11134
11196
 
11135
11197
  current.tspan.textContent += character;
11136
- }
11198
+ } else {}
11137
11199
 
11138
11200
  let charWidth;
11139
11201
 
@@ -11890,6 +11952,8 @@ exports.SVGGraphics = SVGGraphics;
11890
11952
  /* 19 */
11891
11953
  /***/ (function(module, exports, __w_pdfjs_require__) {
11892
11954
 
11955
+ "use strict";
11956
+
11893
11957
 
11894
11958
  Object.defineProperty(exports, "__esModule", {
11895
11959
  value: true
@@ -11900,6 +11964,8 @@ var _util = __w_pdfjs_require__(2);
11900
11964
 
11901
11965
  var _network_utils = __w_pdfjs_require__(20);
11902
11966
 
11967
+ ;
11968
+
11903
11969
  const fs = require$$4;
11904
11970
 
11905
11971
  const http = require$$4;
@@ -12355,6 +12421,8 @@ class PDFNodeStreamFsRangeReader extends BaseRangeReader {
12355
12421
  /* 20 */
12356
12422
  /***/ (function(module, exports, __w_pdfjs_require__) {
12357
12423
 
12424
+ "use strict";
12425
+
12358
12426
 
12359
12427
  Object.defineProperty(exports, "__esModule", {
12360
12428
  value: true
@@ -12445,6 +12513,8 @@ function validateResponseStatus(status) {
12445
12513
  /* 21 */
12446
12514
  /***/ (function(module, exports, __w_pdfjs_require__) {
12447
12515
 
12516
+ "use strict";
12517
+
12448
12518
 
12449
12519
  Object.defineProperty(exports, "__esModule", {
12450
12520
  value: true
@@ -12631,6 +12701,8 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
12631
12701
  /* 22 */
12632
12702
  /***/ (function(module, exports, __w_pdfjs_require__) {
12633
12703
 
12704
+ "use strict";
12705
+
12634
12706
 
12635
12707
  Object.defineProperty(exports, "__esModule", {
12636
12708
  value: true
@@ -12640,6 +12712,8 @@ exports.PDFNetworkStream = void 0;
12640
12712
  var _util = __w_pdfjs_require__(2);
12641
12713
 
12642
12714
  var _network_utils = __w_pdfjs_require__(20);
12715
+
12716
+ ;
12643
12717
  const OK_RESPONSE = 200;
12644
12718
  const PARTIAL_CONTENT_RESPONSE = 206;
12645
12719
 
@@ -13184,6 +13258,8 @@ class PDFNetworkStreamRangeRequestReader {
13184
13258
  /* 23 */
13185
13259
  /***/ (function(module, exports, __w_pdfjs_require__) {
13186
13260
 
13261
+ "use strict";
13262
+
13187
13263
 
13188
13264
  Object.defineProperty(exports, "__esModule", {
13189
13265
  value: true
@@ -13194,6 +13270,8 @@ var _util = __w_pdfjs_require__(2);
13194
13270
 
13195
13271
  var _network_utils = __w_pdfjs_require__(20);
13196
13272
 
13273
+ ;
13274
+
13197
13275
  function createFetchOptions(headers, withCredentials, abortController) {
13198
13276
  return {
13199
13277
  method: "GET",
@@ -13472,6 +13550,9 @@ class PDFFetchStreamRangeReader {
13472
13550
 
13473
13551
  const pdf$1 = /*@__PURE__*/getDefaultExportFromCjs(pdf);
13474
13552
 
13553
+ function format(first, middle, last) {
13554
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
13555
+ }
13475
13556
  const integerSequence = (start, count) => Array(count)
13476
13557
  .fill(1)
13477
13558
  .map((_, index) => index + start);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const SearchIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
8
  <path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>
@@ -14,23 +14,35 @@ const CloseIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" x
14
14
  </svg>
15
15
  `;
16
16
 
17
- const searchBoxCss = "search-box{font-family:sans-serif;font-family:var(--verdocs-font)}search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}search-box form button.search{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}search-box form svg{width:12px;height:12px;margin-right:6px}search-box ::-webkit-input-placeholder{color:#aeb4bf}search-box ::-moz-placeholder{color:#aeb4bf}search-box :-ms-input-placeholder{color:#aeb4bf}search-box ::-ms-input-placeholder{color:#aeb4bf}search-box ::placeholder{color:#aeb4bf}";
17
+ const searchBoxCss = "search-box{font-family:sans-serif;font-family:var(--verdocs-font)}search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}search-box form input:focus{outline:none}search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}search-box form svg{width:12px;height:12px;margin-right:6px}search-box ::-webkit-input-placeholder{color:#aeb4bf}search-box ::-moz-placeholder{color:#aeb4bf}search-box :-ms-input-placeholder{color:#aeb4bf}search-box ::-ms-input-placeholder{color:#aeb4bf}search-box ::placeholder{color:#aeb4bf}";
18
18
 
19
19
  let SearchBox = class {
20
20
  constructor(hostRef) {
21
21
  index.registerInstance(this, hostRef);
22
22
  this.search = index.createEvent(this, "search", 7);
23
+ this.typeChanged = index.createEvent(this, "typeChanged", 7);
24
+ this.queryChanged = index.createEvent(this, "queryChanged", 7);
25
+ /**
26
+ * If set to a value other than 'all', a removeable filter indicator will be displayed.
27
+ */
23
28
  this.type = 'all';
29
+ /**
30
+ * The text search string entered by the user.
31
+ */
32
+ this.query = '';
24
33
  }
25
- handleSubmit(e) {
34
+ handleSearch(e) {
26
35
  e.preventDefault();
27
- this.search.emit({ type: this.type, q: this.q });
36
+ this.search.emit({ type: this.type, query: this.query });
28
37
  }
29
- handleChange(event) {
30
- this.q = event.target.value;
38
+ handleChange(e) {
39
+ this.queryChanged.emit(e.target.value);
40
+ }
41
+ handleClearFilter() {
42
+ this.typeChanged.emit('all');
31
43
  }
32
44
  render() {
33
- return (index.h(index.Host, null, index.h("form", { onSubmit: e => this.handleSubmit(e) }, this.type !== undefined && this.type !== 'all' && (index.h("span", { class: "type" }, this.type, "s ", index.h("button", { class: "remove", innerHTML: CloseIcon }))), index.h("input", { type: "text", placeholder: "search documents, templates, people...", value: this.q, onInput: e => this.handleChange(e) }), index.h("button", { onClick: e => this.handleSubmit(e), class: "search" }, index.h("span", { innerHTML: SearchIcon }), "Search"))));
45
+ return (index.h(index.Host, null, index.h("form", { onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (index.h("span", { class: "type" }, this.type, "s ", index.h("button", { class: "remove", innerHTML: CloseIcon, onClick: this.handleClearFilter }))), index.h("input", { type: "text", placeholder: "search documents, templates, people...", value: this.query, onInput: e => this.handleChange(e) }), index.h("button", { onClick: e => this.handleSearch(e), class: "search" }, index.h("span", { innerHTML: SearchIcon }), "Search"))));
34
46
  }
35
47
  };
36
48
  SearchBox.style = searchBoxCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const searchEmbedCss = ":host{display:block}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const TemplateIcon = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>`;
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
6
- const Content = require('./Content-986f7a13.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
+ const Content = require('./Content-1d98b2f3.js');
7
7
 
8
8
  const SearchIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>`;
9
9
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
6
- const Content = require('./Content-986f7a13.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
+ const Content = require('./Content-1d98b2f3.js');
7
7
 
8
8
  const SearchIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>`;
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const DocumentIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>`;
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e2fb537e.js');
5
+ const index = require('./index-0b9c3c7d.js');
6
6
 
7
7
  const searchTabsCss = ":host{display:block}";
8
8