@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.
- package/dist/cjs/{Content-986f7a13.js → Content-1d98b2f3.js} +297 -17
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-88cc6900.js +6 -0
- package/dist/cjs/document-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dom-95afd968.js +75 -0
- package/dist/cjs/dropdown-menu.cjs.entry.js +191 -4
- package/dist/cjs/index-0b9c3c7d.js +3064 -0
- package/dist/cjs/loader.cjs.js +19 -3
- package/dist/cjs/org-popup.cjs.entry.js +1 -1
- package/dist/cjs/pdf-viewer.cjs.entry.js +87 -6
- package/dist/cjs/search-box.cjs.entry.js +19 -7
- package/dist/cjs/search-embed.cjs.entry.js +1 -1
- package/dist/cjs/search-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/search-recent.cjs.entry.js +2 -2
- package/dist/cjs/search-saved.cjs.entry.js +2 -2
- package/dist/cjs/search-starred.cjs.entry.js +1 -1
- package/dist/cjs/search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/shadow-css-71d0f821.js +391 -0
- package/dist/cjs/tags-indicator.cjs.entry.js +1 -1
- package/dist/cjs/template-card.cjs.entry.js +1 -1
- package/dist/cjs/toggle-icon-buttons.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +113 -5
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/elements/search-box/search-box.css +4 -0
- package/dist/collection/components/elements/search-box/search-box.js +73 -14
- package/dist/collection/components/elements/search-box/search-box.stories.js +3 -1
- package/dist/custom-elements/index.js +597 -34
- package/dist/docs.json +40 -5
- package/dist/esm/{Content-386637c8.js → Content-0d614ff3.js} +297 -17
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-c64026cd.js +4 -0
- package/dist/esm/document-status-indicator.entry.js +1 -1
- package/dist/esm/dom-a712b575.js +73 -0
- package/dist/esm/dropdown-menu.entry.js +191 -4
- package/dist/esm/index-81ec66c1.js +3027 -0
- package/dist/esm/loader.js +19 -3
- package/dist/esm/org-popup.entry.js +1 -1
- package/dist/esm/pdf-viewer.entry.js +87 -6
- package/dist/esm/search-box.entry.js +19 -7
- package/dist/esm/search-embed.entry.js +1 -1
- package/dist/esm/search-quick-functions.entry.js +1 -1
- package/dist/esm/search-recent.entry.js +2 -2
- package/dist/esm/search-saved.entry.js +2 -2
- package/dist/esm/search-starred.entry.js +1 -1
- package/dist/esm/search-tabs.entry.js +1 -1
- package/dist/esm/shadow-css-1e16431b.js +389 -0
- package/dist/esm/tags-indicator.entry.js +1 -1
- package/dist/esm/template-card.entry.js +1 -1
- package/dist/esm/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +113 -5
- package/dist/esm-es5/Content-0d614ff3.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/css-shim-c64026cd.js +1 -0
- package/dist/esm-es5/document-status-indicator.entry.js +1 -1
- package/dist/esm-es5/dom-a712b575.js +21 -0
- package/dist/esm-es5/dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/index-81ec66c1.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/org-popup.entry.js +1 -1
- package/dist/esm-es5/pdf-viewer.entry.js +2 -2
- package/dist/esm-es5/search-box.entry.js +1 -1
- package/dist/esm-es5/search-embed.entry.js +1 -1
- package/dist/esm-es5/search-quick-functions.entry.js +1 -1
- package/dist/esm-es5/search-recent.entry.js +1 -1
- package/dist/esm-es5/search-saved.entry.js +1 -1
- package/dist/esm-es5/search-starred.entry.js +1 -1
- package/dist/esm-es5/search-tabs.entry.js +1 -1
- package/dist/esm-es5/shadow-css-1e16431b.js +12 -0
- package/dist/esm-es5/tags-indicator.entry.js +1 -1
- package/dist/esm-es5/template-card.entry.js +1 -1
- package/dist/esm-es5/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/elements/search-box/search-box.d.ts +20 -5
- package/dist/types/components/elements/search-box/search-box.stories.d.ts +3 -1
- package/dist/types/components.d.ts +23 -1
- package/dist/verdocs-web-sdk/Content-0d614ff3.js +2175 -0
- package/dist/verdocs-web-sdk/Content-42ddf5ec.system.js +1 -0
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-0e9af51a.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-c64026cd.js +4 -0
- package/dist/verdocs-web-sdk/document-status-indicator.entry.js +55 -0
- package/dist/verdocs-web-sdk/document-status-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/dom-a712b575.js +73 -0
- package/dist/verdocs-web-sdk/dom-f6327147.system.js +21 -0
- package/dist/verdocs-web-sdk/dropdown-menu.entry.js +1990 -0
- package/dist/verdocs-web-sdk/dropdown-menu.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/index-46cb292b.system.js +1 -0
- package/dist/verdocs-web-sdk/index-81ec66c1.js +3027 -0
- package/dist/verdocs-web-sdk/index.esm.js +1 -0
- package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
- package/dist/verdocs-web-sdk/org-popup.entry.js +21 -0
- package/dist/verdocs-web-sdk/org-popup.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/pdf-viewer.entry.js +13754 -0
- package/dist/verdocs-web-sdk/pdf-viewer.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/search-box.entry.js +46 -0
- package/dist/verdocs-web-sdk/search-box.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-embed.entry.js +15 -0
- package/dist/verdocs-web-sdk/search-embed.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-quick-functions.entry.js +27 -0
- package/dist/verdocs-web-sdk/search-quick-functions.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-recent.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-recent.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-saved.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-saved.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-starred.entry.js +42 -0
- package/dist/verdocs-web-sdk/search-starred.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-tabs.entry.js +16 -0
- package/dist/verdocs-web-sdk/search-tabs.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/shadow-css-1e16431b.js +389 -0
- package/dist/verdocs-web-sdk/shadow-css-ef154fe4.system.js +13 -0
- package/dist/verdocs-web-sdk/tags-indicator.entry.js +16 -0
- package/dist/verdocs-web-sdk/tags-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/template-card.entry.js +24 -0
- package/dist/verdocs-web-sdk/template-card.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.entry.js +28 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.css +12 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +125 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
- package/package.json +5 -5
- package/dist/cjs/index-e2fb537e.js +0 -1631
- package/dist/custom-elements.json +0 -266
- package/dist/esm/index-183a8995.js +0 -1602
- package/dist/esm-es5/Content-386637c8.js +0 -1
- package/dist/esm-es5/index-183a8995.js +0 -1
- package/dist/verdocs-web-sdk/p-153879ad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1d1bc463.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29cb7cbc.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2cec77cf.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-32a5788a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-33f73371.system.js +0 -1
- package/dist/verdocs-web-sdk/p-349248f0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-36082c90.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3a032151.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3cc8281f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-440d8a73.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4d4e090f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-55660c24.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-63107dd5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6b569aa1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6e033b90.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6ee008ff.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7ab216be.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d10b067.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-89be87e5.js +0 -1
- package/dist/verdocs-web-sdk/p-92e7863c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-99ebfee7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9af63b8a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9da35744.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b3d5601a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b466e003.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bb99a203.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cbc784a6.system.js +0 -1
- package/dist/verdocs-web-sdk/p-cf030985.js +0 -1
- package/dist/verdocs-web-sdk/p-d73f486f.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-dea09611.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e34538bd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e59eda0c.system.entry.js +0 -1
package/dist/docs.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2021-11-
|
|
2
|
+
"timestamp": "2021-11-05T18:48:02",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "2.
|
|
6
|
-
"typescriptVersion": "4.
|
|
5
|
+
"version": "2.10.0",
|
|
6
|
+
"typescriptVersion": "4.3.5"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
9
9
|
{
|
|
@@ -313,13 +313,30 @@
|
|
|
313
313
|
"docsTags": [],
|
|
314
314
|
"usage": {},
|
|
315
315
|
"props": [
|
|
316
|
+
{
|
|
317
|
+
"name": "query",
|
|
318
|
+
"type": "string",
|
|
319
|
+
"mutable": false,
|
|
320
|
+
"attr": "query",
|
|
321
|
+
"reflectToAttr": false,
|
|
322
|
+
"docs": "The text search string entered by the user.",
|
|
323
|
+
"docsTags": [],
|
|
324
|
+
"default": "''",
|
|
325
|
+
"values": [
|
|
326
|
+
{
|
|
327
|
+
"type": "string"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"optional": false,
|
|
331
|
+
"required": false
|
|
332
|
+
},
|
|
316
333
|
{
|
|
317
334
|
"name": "type",
|
|
318
335
|
"type": "\"all\" | \"document\" | \"organization\" | \"template\"",
|
|
319
336
|
"mutable": false,
|
|
320
337
|
"attr": "type",
|
|
321
338
|
"reflectToAttr": false,
|
|
322
|
-
"docs": "",
|
|
339
|
+
"docs": "If set to a value other than 'all', a removeable filter indicator will be displayed.",
|
|
323
340
|
"docsTags": [],
|
|
324
341
|
"default": "'all'",
|
|
325
342
|
"values": [
|
|
@@ -346,13 +363,31 @@
|
|
|
346
363
|
],
|
|
347
364
|
"methods": [],
|
|
348
365
|
"events": [
|
|
366
|
+
{
|
|
367
|
+
"event": "queryChanged",
|
|
368
|
+
"detail": "string",
|
|
369
|
+
"bubbles": true,
|
|
370
|
+
"cancelable": true,
|
|
371
|
+
"composed": true,
|
|
372
|
+
"docs": "Event fired when the user changes the query string.",
|
|
373
|
+
"docsTags": []
|
|
374
|
+
},
|
|
349
375
|
{
|
|
350
376
|
"event": "search",
|
|
351
377
|
"detail": "ISearchEvent",
|
|
352
378
|
"bubbles": true,
|
|
353
379
|
"cancelable": true,
|
|
354
380
|
"composed": true,
|
|
355
|
-
"docs": "Event fired when the
|
|
381
|
+
"docs": "Event fired when the user changes the type.",
|
|
382
|
+
"docsTags": []
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"event": "typeChanged",
|
|
386
|
+
"detail": "\"all\" | \"document\" | \"organization\" | \"template\"",
|
|
387
|
+
"bubbles": true,
|
|
388
|
+
"cancelable": true,
|
|
389
|
+
"composed": true,
|
|
390
|
+
"docs": "Event fired when the user changes the type.",
|
|
356
391
|
"docsTags": []
|
|
357
392
|
}
|
|
358
393
|
],
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
var bind = function bind(fn, thisArg) {
|
|
2
4
|
return function wrap() {
|
|
3
5
|
var args = new Array(arguments.length);
|
|
@@ -8,6 +10,10 @@ var bind = function bind(fn, thisArg) {
|
|
|
8
10
|
};
|
|
9
11
|
};
|
|
10
12
|
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
11
17
|
// utils is a library of generic helper functions non-specific to axios
|
|
12
18
|
|
|
13
19
|
var toString = Object.prototype.toString;
|
|
@@ -354,6 +360,10 @@ var utils = {
|
|
|
354
360
|
stripBOM: stripBOM
|
|
355
361
|
};
|
|
356
362
|
|
|
363
|
+
'use strict';
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
357
367
|
function encode(val) {
|
|
358
368
|
return encodeURIComponent(val).
|
|
359
369
|
replace(/%3A/gi, ':').
|
|
@@ -421,6 +431,10 @@ var buildURL = function buildURL(url, params, paramsSerializer) {
|
|
|
421
431
|
return url;
|
|
422
432
|
};
|
|
423
433
|
|
|
434
|
+
'use strict';
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
424
438
|
function InterceptorManager() {
|
|
425
439
|
this.handlers = [];
|
|
426
440
|
}
|
|
@@ -472,6 +486,10 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
472
486
|
|
|
473
487
|
var InterceptorManager_1 = InterceptorManager;
|
|
474
488
|
|
|
489
|
+
'use strict';
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
475
493
|
var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
|
|
476
494
|
utils.forEach(headers, function processHeader(value, name) {
|
|
477
495
|
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
@@ -481,6 +499,8 @@ var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName)
|
|
|
481
499
|
});
|
|
482
500
|
};
|
|
483
501
|
|
|
502
|
+
'use strict';
|
|
503
|
+
|
|
484
504
|
/**
|
|
485
505
|
* Update an Error with the specified config, error code, and response.
|
|
486
506
|
*
|
|
@@ -522,6 +542,10 @@ var enhanceError = function enhanceError(error, config, code, request, response)
|
|
|
522
542
|
return error;
|
|
523
543
|
};
|
|
524
544
|
|
|
545
|
+
'use strict';
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
525
549
|
/**
|
|
526
550
|
* Create an Error with the specified message, config, error code, request and response.
|
|
527
551
|
*
|
|
@@ -537,6 +561,10 @@ var createError = function createError(message, config, code, request, response)
|
|
|
537
561
|
return enhanceError(error, config, code, request, response);
|
|
538
562
|
};
|
|
539
563
|
|
|
564
|
+
'use strict';
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
540
568
|
/**
|
|
541
569
|
* Resolve or reject a Promise based on response status.
|
|
542
570
|
*
|
|
@@ -559,6 +587,10 @@ var settle = function settle(resolve, reject, response) {
|
|
|
559
587
|
}
|
|
560
588
|
};
|
|
561
589
|
|
|
590
|
+
'use strict';
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
562
594
|
var cookies = (
|
|
563
595
|
utils.isStandardBrowserEnv() ?
|
|
564
596
|
|
|
@@ -609,6 +641,8 @@ var cookies = (
|
|
|
609
641
|
})()
|
|
610
642
|
);
|
|
611
643
|
|
|
644
|
+
'use strict';
|
|
645
|
+
|
|
612
646
|
/**
|
|
613
647
|
* Determines whether the specified URL is absolute
|
|
614
648
|
*
|
|
@@ -622,6 +656,8 @@ var isAbsoluteURL = function isAbsoluteURL(url) {
|
|
|
622
656
|
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
623
657
|
};
|
|
624
658
|
|
|
659
|
+
'use strict';
|
|
660
|
+
|
|
625
661
|
/**
|
|
626
662
|
* Creates a new URL by combining the specified URLs
|
|
627
663
|
*
|
|
@@ -635,6 +671,11 @@ var combineURLs = function combineURLs(baseURL, relativeURL) {
|
|
|
635
671
|
: baseURL;
|
|
636
672
|
};
|
|
637
673
|
|
|
674
|
+
'use strict';
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
638
679
|
/**
|
|
639
680
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
640
681
|
* only when the requestedURL is not already an absolute URL.
|
|
@@ -651,6 +692,10 @@ var buildFullPath = function buildFullPath(baseURL, requestedURL) {
|
|
|
651
692
|
return requestedURL;
|
|
652
693
|
};
|
|
653
694
|
|
|
695
|
+
'use strict';
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
654
699
|
// Headers whose duplicates are ignored by node
|
|
655
700
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
656
701
|
var ignoreDuplicateOf = [
|
|
@@ -701,6 +746,10 @@ var parseHeaders = function parseHeaders(headers) {
|
|
|
701
746
|
return parsed;
|
|
702
747
|
};
|
|
703
748
|
|
|
749
|
+
'use strict';
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
704
753
|
var isURLSameOrigin = (
|
|
705
754
|
utils.isStandardBrowserEnv() ?
|
|
706
755
|
|
|
@@ -766,6 +815,17 @@ var isURLSameOrigin = (
|
|
|
766
815
|
})()
|
|
767
816
|
);
|
|
768
817
|
|
|
818
|
+
'use strict';
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
769
829
|
var xhr = function xhrAdapter(config) {
|
|
770
830
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
771
831
|
var requestData = config.data;
|
|
@@ -945,6 +1005,12 @@ var xhr = function xhrAdapter(config) {
|
|
|
945
1005
|
});
|
|
946
1006
|
};
|
|
947
1007
|
|
|
1008
|
+
'use strict';
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
948
1014
|
var DEFAULT_CONTENT_TYPE = {
|
|
949
1015
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
950
1016
|
};
|
|
@@ -1074,6 +1140,11 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
1074
1140
|
|
|
1075
1141
|
var defaults_1 = defaults;
|
|
1076
1142
|
|
|
1143
|
+
'use strict';
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1077
1148
|
/**
|
|
1078
1149
|
* Transform the data for a request or a response
|
|
1079
1150
|
*
|
|
@@ -1092,10 +1163,19 @@ var transformData = function transformData(data, headers, fns) {
|
|
|
1092
1163
|
return data;
|
|
1093
1164
|
};
|
|
1094
1165
|
|
|
1166
|
+
'use strict';
|
|
1167
|
+
|
|
1095
1168
|
var isCancel = function isCancel(value) {
|
|
1096
1169
|
return !!(value && value.__CANCEL__);
|
|
1097
1170
|
};
|
|
1098
1171
|
|
|
1172
|
+
'use strict';
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1099
1179
|
/**
|
|
1100
1180
|
* Throws a `Cancel` if cancellation has been requested.
|
|
1101
1181
|
*/
|
|
@@ -1172,6 +1252,10 @@ var dispatchRequest = function dispatchRequest(config) {
|
|
|
1172
1252
|
});
|
|
1173
1253
|
};
|
|
1174
1254
|
|
|
1255
|
+
'use strict';
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1175
1259
|
/**
|
|
1176
1260
|
* Config-specific merge-function which creates a new config-object
|
|
1177
1261
|
* by merging two configuration objects together.
|
|
@@ -1401,6 +1485,10 @@ const pkg = {
|
|
|
1401
1485
|
version: version
|
|
1402
1486
|
};
|
|
1403
1487
|
|
|
1488
|
+
'use strict';
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1404
1492
|
var validators$1 = {};
|
|
1405
1493
|
|
|
1406
1494
|
// eslint-disable-next-line func-names
|
|
@@ -1503,6 +1591,15 @@ var validator = {
|
|
|
1503
1591
|
validators: validators$1
|
|
1504
1592
|
};
|
|
1505
1593
|
|
|
1594
|
+
'use strict';
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
|
|
1506
1603
|
var validators = validator.validators;
|
|
1507
1604
|
/**
|
|
1508
1605
|
* Create a new instance of Axios
|
|
@@ -1643,6 +1740,8 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
1643
1740
|
|
|
1644
1741
|
var Axios_1 = Axios;
|
|
1645
1742
|
|
|
1743
|
+
'use strict';
|
|
1744
|
+
|
|
1646
1745
|
/**
|
|
1647
1746
|
* A `Cancel` is an object that is thrown when an operation is canceled.
|
|
1648
1747
|
*
|
|
@@ -1661,6 +1760,10 @@ Cancel.prototype.__CANCEL__ = true;
|
|
|
1661
1760
|
|
|
1662
1761
|
var Cancel_1 = Cancel;
|
|
1663
1762
|
|
|
1763
|
+
'use strict';
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1664
1767
|
/**
|
|
1665
1768
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
1666
1769
|
*
|
|
@@ -1715,6 +1818,8 @@ CancelToken.source = function source() {
|
|
|
1715
1818
|
|
|
1716
1819
|
var CancelToken_1 = CancelToken;
|
|
1717
1820
|
|
|
1821
|
+
'use strict';
|
|
1822
|
+
|
|
1718
1823
|
/**
|
|
1719
1824
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
1720
1825
|
*
|
|
@@ -1741,6 +1846,8 @@ var spread = function spread(callback) {
|
|
|
1741
1846
|
};
|
|
1742
1847
|
};
|
|
1743
1848
|
|
|
1849
|
+
'use strict';
|
|
1850
|
+
|
|
1744
1851
|
/**
|
|
1745
1852
|
* Determines whether the payload is an error thrown by Axios
|
|
1746
1853
|
*
|
|
@@ -1751,6 +1858,14 @@ var isAxiosError = function isAxiosError(payload) {
|
|
|
1751
1858
|
return (typeof payload === 'object') && (payload.isAxiosError === true);
|
|
1752
1859
|
};
|
|
1753
1860
|
|
|
1861
|
+
'use strict';
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1754
1869
|
/**
|
|
1755
1870
|
* Create an instance of Axios
|
|
1756
1871
|
*
|
|
@@ -1803,25 +1918,154 @@ axios_1.default = _default;
|
|
|
1803
1918
|
|
|
1804
1919
|
var axios = axios_1;
|
|
1805
1920
|
|
|
1806
|
-
|
|
1807
|
-
//
|
|
1808
|
-
|
|
1809
|
-
//
|
|
1810
|
-
|
|
1921
|
+
"use strict";
|
|
1922
|
+
// This file provides a polyfill for managing globals in both NodeJS and browser environments. This is
|
|
1923
|
+
// an anti-pattern we'd hoped to avoid, but we have several projects dependending on one common library
|
|
1924
|
+
// (this js-sdk) and we want that library to provide a common endpoint to all callers (so authentication
|
|
1925
|
+
// tokens only need to be tracked in one place). The trouble is, one of those libraries is based on
|
|
1926
|
+
// StencilJS and is compiling its modules into Web Components. Because of how module resolution works,
|
|
1927
|
+
// when those Components load js-sdk they get a separate instance. Without messy options like having to
|
|
1928
|
+
// pass raw data from the caller to each Component, or pass around references to a common Endpoint, they
|
|
1929
|
+
// have no way to access authenticated sessions unless we make the Endpoint a true global.
|
|
1930
|
+
//
|
|
1931
|
+
// @credit https://github.com/medikoo/es5-ext/blob/master/global.js
|
|
1932
|
+
// @credit https://mathiasbynens.be/notes/globalthis
|
|
1933
|
+
var naiveFallback = function () {
|
|
1934
|
+
if (typeof self === 'object' && self)
|
|
1935
|
+
return self;
|
|
1936
|
+
if (typeof window === 'object' && window)
|
|
1937
|
+
return window;
|
|
1938
|
+
throw new Error('Unable to resolve global `this`');
|
|
1939
|
+
};
|
|
1940
|
+
var globalThis_1 = (function () {
|
|
1941
|
+
if (this)
|
|
1942
|
+
return this;
|
|
1943
|
+
// Unexpected strict mode (may happen if e.g. bundled into ESM module)
|
|
1944
|
+
// Fallback to standard globalThis if available
|
|
1945
|
+
if (typeof globalThis === 'object' && globalThis)
|
|
1946
|
+
return globalThis;
|
|
1947
|
+
// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
|
|
1948
|
+
// In all ES5+ engines global object inherits from Object.prototype
|
|
1949
|
+
// (if you approached one that doesn't please report)
|
|
1950
|
+
try {
|
|
1951
|
+
Object.defineProperty(Object.prototype, '__global__', {
|
|
1952
|
+
get: function () {
|
|
1953
|
+
return this;
|
|
1954
|
+
},
|
|
1955
|
+
configurable: true,
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
catch (error) {
|
|
1959
|
+
// Unfortunate case of updates to Object.prototype being restricted
|
|
1960
|
+
// via preventExtensions, seal or freeze
|
|
1961
|
+
return naiveFallback();
|
|
1962
|
+
}
|
|
1963
|
+
try {
|
|
1964
|
+
// Safari case (window.__global__ works, but __global__ does not)
|
|
1965
|
+
if (!__global__)
|
|
1966
|
+
return naiveFallback();
|
|
1967
|
+
return __global__;
|
|
1968
|
+
}
|
|
1969
|
+
finally {
|
|
1970
|
+
delete Object.prototype.__global__;
|
|
1971
|
+
}
|
|
1972
|
+
})();
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* The Transport Endpoint is a global singleton used to call Verdocs APIs. There can only be one Endpoint per application, and
|
|
1976
|
+
* its configuration settings are shared for all callers.
|
|
1977
|
+
*
|
|
1978
|
+
* @module
|
|
1979
|
+
*/
|
|
1980
|
+
var DEFAULTS = {
|
|
1811
1981
|
baseURL: 'https://api.verdocs.com/',
|
|
1812
1982
|
timeout: 3000,
|
|
1813
1983
|
headers: { 'X-Client-ID': 'NONE' },
|
|
1814
1984
|
};
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1985
|
+
// @credit https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/
|
|
1986
|
+
// Also see globalThis for comments about why we're doing this in the first place.
|
|
1987
|
+
var ENDPOINT_KEY = Symbol.for('verdocs-api-endpoint');
|
|
1988
|
+
if (!globalThis_1[ENDPOINT_KEY]) {
|
|
1989
|
+
globalThis_1[ENDPOINT_KEY] = axios.create(DEFAULTS);
|
|
1990
|
+
}
|
|
1991
|
+
var endpoint = globalThis_1[ENDPOINT_KEY];
|
|
1992
|
+
var requestLogger = function (r) {
|
|
1993
|
+
// tslint:disable-next-line
|
|
1994
|
+
console.log("[JS-SDK] " + r.method.toUpperCase() + " " + r.baseURL + r.url, r.data ? JSON.stringify(r.data) : '');
|
|
1995
|
+
return r;
|
|
1996
|
+
};
|
|
1997
|
+
/**
|
|
1998
|
+
* Set the auth token that will be used for Verdocs API calls.
|
|
1999
|
+
*
|
|
2000
|
+
* ```typescript
|
|
2001
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
2002
|
+
*
|
|
2003
|
+
* Transport.setAuthorization(accessToken);
|
|
2004
|
+
* ```
|
|
2005
|
+
*/
|
|
2006
|
+
var setAuthorization = function (accessToken) {
|
|
2007
|
+
if (accessToken) {
|
|
2008
|
+
endpoint.defaults.headers.Authorization = "Bearer " + accessToken;
|
|
2009
|
+
}
|
|
2010
|
+
else {
|
|
2011
|
+
delete endpoint.defaults.headers.Authorization;
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
/**
|
|
2015
|
+
* Set the Client ID for Verdocs API calls.
|
|
2016
|
+
*
|
|
2017
|
+
* ```typescript
|
|
2018
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
2019
|
+
*
|
|
2020
|
+
* Transport.setClientID('1234);
|
|
2021
|
+
* ```
|
|
2022
|
+
*/
|
|
2023
|
+
var setClientID = function (clientID) {
|
|
2024
|
+
endpoint.defaults.headers['X-Client-ID'] = clientID;
|
|
2025
|
+
};
|
|
2026
|
+
/**
|
|
2027
|
+
* Set the base URL for API calls. This defaults to https://api.verdocs.com/ and should only be changed after consultation with
|
|
2028
|
+
* Verdocs Developer Support (e.g. to access a private API endpoint).
|
|
2029
|
+
*
|
|
2030
|
+
* ```typescript
|
|
2031
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
2032
|
+
*
|
|
2033
|
+
* Transport.setBaseUrl('https://my-private-api.verdocs.com');
|
|
2034
|
+
* ```
|
|
2035
|
+
*/
|
|
2036
|
+
var setBaseUrl = function (baseUrl) {
|
|
2037
|
+
endpoint.defaults.baseURL = baseUrl;
|
|
2038
|
+
};
|
|
2039
|
+
/**
|
|
2040
|
+
* Set the timeout for API calls in milliseconds. 2000-4000ms is recommended for most purposes. 3000ms is the default.
|
|
2041
|
+
*
|
|
2042
|
+
* ```typescript
|
|
2043
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
2044
|
+
*
|
|
2045
|
+
* Transport.setTimeout(3000);
|
|
2046
|
+
* ```
|
|
2047
|
+
*/
|
|
2048
|
+
var setTimeout$1 = function (timeout) {
|
|
2049
|
+
endpoint.defaults.timeout = timeout;
|
|
2050
|
+
};
|
|
2051
|
+
/**
|
|
2052
|
+
* Enable or disable request logging. This may expose sensitive data in the console log, so it should only be used for debugging.
|
|
2053
|
+
*
|
|
2054
|
+
* ```typescript
|
|
2055
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
2056
|
+
*
|
|
2057
|
+
* Transport.logRequests(true);
|
|
2058
|
+
* ```
|
|
2059
|
+
*/
|
|
2060
|
+
var requestLoggerId = null;
|
|
2061
|
+
var logRequests = function (enable) {
|
|
2062
|
+
if (enable && requestLoggerId === null) {
|
|
2063
|
+
requestLoggerId = endpoint.interceptors.request.use(requestLogger);
|
|
2064
|
+
}
|
|
2065
|
+
else if (!enable && requestLoggerId !== null) {
|
|
2066
|
+
endpoint.interceptors.request.eject(requestLoggerId);
|
|
2067
|
+
}
|
|
1822
2068
|
};
|
|
1823
|
-
var endpoint;
|
|
1824
|
-
recreateEndpoint();
|
|
1825
2069
|
/**
|
|
1826
2070
|
* Helper to get the endpoint for direct access to HTTP functions.
|
|
1827
2071
|
*
|
|
@@ -1832,12 +2076,16 @@ recreateEndpoint();
|
|
|
1832
2076
|
* ```
|
|
1833
2077
|
*/
|
|
1834
2078
|
var getEndpoint = function () {
|
|
1835
|
-
if (!endpoint) {
|
|
1836
|
-
recreateEndpoint();
|
|
1837
|
-
}
|
|
1838
2079
|
return endpoint;
|
|
1839
2080
|
};
|
|
1840
2081
|
|
|
2082
|
+
/**
|
|
2083
|
+
* Verdocs provides a range of search functions to help find and retrieve content. This module provides generic functions intended
|
|
2084
|
+
* to locate items across all content types. More specific retrievals may be performed using the various "list" endpoints within
|
|
2085
|
+
* each collection (e.g. {@link Documents.Documents.searchDocuments} or {@link Templates.Templates.searchTemplates}).
|
|
2086
|
+
*
|
|
2087
|
+
* @module
|
|
2088
|
+
*/
|
|
1841
2089
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1842
2090
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1843
2091
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -1891,5 +2139,37 @@ var getSearchHistory = function () { return __awaiter(void 0, void 0, void 0, fu
|
|
|
1891
2139
|
.then(function (r) { return r.data; })];
|
|
1892
2140
|
});
|
|
1893
2141
|
}); };
|
|
2142
|
+
/**
|
|
2143
|
+
* Save a search. If a name is re-used, that saved search will be overwritten with the new parameters.
|
|
2144
|
+
*
|
|
2145
|
+
* ```typescript
|
|
2146
|
+
* import {Content} from '@verdocs/js-sdk/Search';
|
|
2147
|
+
*
|
|
2148
|
+
* const entry = await Documents.saveSearch('W9 Forms', {q: 'w9', type: 'template});
|
|
2149
|
+
* ```
|
|
2150
|
+
*/
|
|
2151
|
+
var saveSearch = function (name, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2152
|
+
return __generator(this, function (_a) {
|
|
2153
|
+
return [2 /*return*/, getEndpoint()
|
|
2154
|
+
.post('/search/saved', { name: name, params: params })
|
|
2155
|
+
.then(function (r) { return r.data; })];
|
|
2156
|
+
});
|
|
2157
|
+
}); };
|
|
2158
|
+
/**
|
|
2159
|
+
* Search for documents matching various criteria.
|
|
2160
|
+
*
|
|
2161
|
+
* ```typescript
|
|
2162
|
+
* import {Content} from '@verdocs/js-sdk/Search';
|
|
2163
|
+
*
|
|
2164
|
+
* const {result, page, total} = await Documents.search({ ... });
|
|
2165
|
+
* ```
|
|
2166
|
+
*/
|
|
2167
|
+
var searchContent = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2168
|
+
return __generator(this, function (_a) {
|
|
2169
|
+
return [2 /*return*/, getEndpoint()
|
|
2170
|
+
.post('/search/content')
|
|
2171
|
+
.then(function (r) { return r.data; })];
|
|
2172
|
+
});
|
|
2173
|
+
}); };
|
|
1894
2174
|
|
|
1895
2175
|
export { getSearchHistory as g };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
+
*/
|
|
4
|
+
var __assign=undefined&&undefined.__assign||function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-81ec66c1.js';
|
|
2
2
|
|
|
3
3
|
const CancelledIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>`;
|
|
4
4
|
|