@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
+
*/
|
|
4
|
+
(function(){
|
|
5
|
+
var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return !(!a||!(a.__CE_isImportDocument||a instanceof Document))}
|
|
6
|
+
function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
|
|
7
|
+
function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d);}c=c.firstChild?c.firstChild:n(a,c);}}function r(a,b,d){a[b]=d;}function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1;}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d);}function ca(a,b){a.b=!0;a.c.push(b);}function da(a,b){a.b=!0;a.f.push(b);}function v(a,b){a.b&&p(b,function(b){return w(a,b)});}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b);}}
|
|
8
|
+
function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c);}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c);}}
|
|
9
|
+
function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e});}});}else f.push(b);},c);if(a.b)for(b=
|
|
10
|
+
0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
|
|
11
|
+
function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop();}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
|
|
12
|
+
d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null);}l(b)&&a.connectedCallback(b);}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a);};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a);};
|
|
13
|
+
u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e);};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}));}function C(a){a.b&&a.b.disconnect();}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c]);};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a);});}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0);}function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a);}
|
|
14
|
+
E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
|
|
15
|
+
return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[];}catch(q){return}finally{this.c=!1;}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
|
|
16
|
+
a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}));};E.prototype.i=function(a){A(this.a,a);};
|
|
17
|
+
function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b);}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e);}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
|
|
18
|
+
E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})};};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
|
|
19
|
+
E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
|
|
20
|
+
"textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
|
|
21
|
+
pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
|
|
22
|
+
e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}();}function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q);}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f);}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append));}function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
|
|
23
|
+
d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja});}function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else {var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h];}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a]);}}});}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
|
|
24
|
+
a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
|
|
25
|
+
a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
|
|
26
|
+
b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent);}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a));}});});}function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m);}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k);}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
|
|
27
|
+
r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h);}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d);});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this);});}function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a);}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t);}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}});}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a});}
|
|
28
|
+
function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b]);}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this);}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
|
|
29
|
+
d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");});}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a);}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
|
|
30
|
+
set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0]);}});});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null);});r(Element.prototype,"setAttributeNS",function(a,
|
|
31
|
+
b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a);});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null);});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
|
|
32
|
+
a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a);});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c);}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements});}}).call(self);
|
|
33
|
+
|
|
34
|
+
// Polyfill document.baseURI
|
|
35
|
+
"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var a=document.querySelector("base");return a&&a.href?a.href:document.URL}});
|
|
36
|
+
|
|
37
|
+
// Polyfill CustomEvent
|
|
38
|
+
"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b},window.CustomEvent.prototype=window.Event.prototype);
|
|
39
|
+
|
|
40
|
+
// Event.composedPath
|
|
41
|
+
(function(b,c,d){b.composedPath||(b.composedPath=function(){if(this.path)return this.path;var a=this.target;for(this.path=[];null!==a.parentNode;)this.path.push(a),a=a.parentNode;this.path.push(c,d);return this.path});})(Event.prototype,document,window);
|
|
42
|
+
|
|
43
|
+
/*!
|
|
44
|
+
Element.closest and Element.matches
|
|
45
|
+
https://github.com/jonathantneal/closest
|
|
46
|
+
Creative Commons Zero v1.0 Universal
|
|
47
|
+
*/
|
|
48
|
+
(function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode;}return null});})(window.Element.prototype);
|
|
49
|
+
|
|
50
|
+
/*!
|
|
51
|
+
Element.getRootNode()
|
|
52
|
+
*/
|
|
53
|
+
(function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)});})(Element.prototype);
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
Element.isConnected()
|
|
57
|
+
*/
|
|
58
|
+
(function(a){"isConnected"in a||Object.defineProperty(a,"isConnected",{configurable:!0,enumerable:!0,get:function(){var a=this.getRootNode({composed:!0});return a&&9===a.nodeType}});})(Element.prototype);
|
|
59
|
+
|
|
60
|
+
/*!
|
|
61
|
+
Element.remove()
|
|
62
|
+
*/
|
|
63
|
+
(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
64
|
+
|
|
65
|
+
/*!
|
|
66
|
+
Element.classList
|
|
67
|
+
*/
|
|
68
|
+
!function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class");}return ""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n();},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n();},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n();},t.item=function(e){return t[e]},t.contains=function(e){return -1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n();},t.value=e.getAttribute("class")||"",t}});}(Element.prototype);
|
|
69
|
+
|
|
70
|
+
/*!
|
|
71
|
+
DOMTokenList
|
|
72
|
+
*/
|
|
73
|
+
(function(b){try{document.body.classList.add();}catch(e){var c=b.add,d=b.remove;b.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a]);};b.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a]);};}})(DOMTokenList.prototype);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-81ec66c1.js';
|
|
2
2
|
|
|
3
3
|
var top = 'top';
|
|
4
4
|
var bottom = 'bottom';
|
|
@@ -159,6 +159,9 @@ function getBasePlacement(placement) {
|
|
|
159
159
|
// import { isHTMLElement } from './instanceOf';
|
|
160
160
|
function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
|
|
161
161
|
includeScale) {
|
|
162
|
+
if (includeScale === void 0) {
|
|
163
|
+
includeScale = false;
|
|
164
|
+
}
|
|
162
165
|
|
|
163
166
|
var rect = element.getBoundingClientRect();
|
|
164
167
|
var scaleX = 1;
|
|
@@ -424,7 +427,16 @@ function effect$1(_ref2) {
|
|
|
424
427
|
}
|
|
425
428
|
}
|
|
426
429
|
|
|
430
|
+
if ("development" !== "production") {
|
|
431
|
+
if (!isHTMLElement(arrowElement)) {
|
|
432
|
+
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
427
436
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
437
|
+
if ("development" !== "production") {
|
|
438
|
+
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
439
|
+
}
|
|
428
440
|
|
|
429
441
|
return;
|
|
430
442
|
}
|
|
@@ -547,6 +559,16 @@ function computeStyles(_ref4) {
|
|
|
547
559
|
_options$roundOffsets = options.roundOffsets,
|
|
548
560
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
549
561
|
|
|
562
|
+
if ("development" !== "production") {
|
|
563
|
+
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
|
|
564
|
+
|
|
565
|
+
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
566
|
+
return transitionProperty.indexOf(property) >= 0;
|
|
567
|
+
})) {
|
|
568
|
+
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
550
572
|
var commonStyles = {
|
|
551
573
|
placement: getBasePlacement(state.placement),
|
|
552
574
|
variation: getVariation(state.placement),
|
|
@@ -911,6 +933,8 @@ function computeOffsets(_ref) {
|
|
|
911
933
|
case end:
|
|
912
934
|
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
913
935
|
break;
|
|
936
|
+
|
|
937
|
+
default:
|
|
914
938
|
}
|
|
915
939
|
}
|
|
916
940
|
|
|
@@ -994,6 +1018,10 @@ function computeAutoPlacement(state, options) {
|
|
|
994
1018
|
|
|
995
1019
|
if (allowedPlacements.length === 0) {
|
|
996
1020
|
allowedPlacements = placements$1;
|
|
1021
|
+
|
|
1022
|
+
if ("development" !== "production") {
|
|
1023
|
+
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
1024
|
+
}
|
|
997
1025
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
998
1026
|
|
|
999
1027
|
|
|
@@ -1432,9 +1460,9 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1432
1460
|
}
|
|
1433
1461
|
|
|
1434
1462
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1435
|
-
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1463
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1436
1464
|
var documentElement = getDocumentElement(offsetParent);
|
|
1437
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
1465
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1438
1466
|
var scroll = {
|
|
1439
1467
|
scrollLeft: 0,
|
|
1440
1468
|
scrollTop: 0
|
|
@@ -1451,7 +1479,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1451
1479
|
}
|
|
1452
1480
|
|
|
1453
1481
|
if (isHTMLElement(offsetParent)) {
|
|
1454
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
1482
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
1455
1483
|
offsets.x += offsetParent.clientLeft;
|
|
1456
1484
|
offsets.y += offsetParent.clientTop;
|
|
1457
1485
|
} else if (documentElement) {
|
|
@@ -1526,6 +1554,108 @@ function debounce(fn) {
|
|
|
1526
1554
|
};
|
|
1527
1555
|
}
|
|
1528
1556
|
|
|
1557
|
+
function format(str) {
|
|
1558
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1559
|
+
args[_key - 1] = arguments[_key];
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
return [].concat(args).reduce(function (p, c) {
|
|
1563
|
+
return p.replace(/%s/, c);
|
|
1564
|
+
}, str);
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
1568
|
+
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
1569
|
+
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
1570
|
+
function validateModifiers(modifiers) {
|
|
1571
|
+
modifiers.forEach(function (modifier) {
|
|
1572
|
+
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
1573
|
+
.filter(function (value, index, self) {
|
|
1574
|
+
return self.indexOf(value) === index;
|
|
1575
|
+
}).forEach(function (key) {
|
|
1576
|
+
switch (key) {
|
|
1577
|
+
case 'name':
|
|
1578
|
+
if (typeof modifier.name !== 'string') {
|
|
1579
|
+
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
break;
|
|
1583
|
+
|
|
1584
|
+
case 'enabled':
|
|
1585
|
+
if (typeof modifier.enabled !== 'boolean') {
|
|
1586
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
break;
|
|
1590
|
+
|
|
1591
|
+
case 'phase':
|
|
1592
|
+
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
1593
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
break;
|
|
1597
|
+
|
|
1598
|
+
case 'fn':
|
|
1599
|
+
if (typeof modifier.fn !== 'function') {
|
|
1600
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
break;
|
|
1604
|
+
|
|
1605
|
+
case 'effect':
|
|
1606
|
+
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
1607
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
break;
|
|
1611
|
+
|
|
1612
|
+
case 'requires':
|
|
1613
|
+
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
1614
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
break;
|
|
1618
|
+
|
|
1619
|
+
case 'requiresIfExists':
|
|
1620
|
+
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
1621
|
+
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
break;
|
|
1625
|
+
|
|
1626
|
+
case 'options':
|
|
1627
|
+
case 'data':
|
|
1628
|
+
break;
|
|
1629
|
+
|
|
1630
|
+
default:
|
|
1631
|
+
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
1632
|
+
return "\"" + s + "\"";
|
|
1633
|
+
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
1637
|
+
if (modifiers.find(function (mod) {
|
|
1638
|
+
return mod.name === requirement;
|
|
1639
|
+
}) == null) {
|
|
1640
|
+
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
});
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
function uniqueBy(arr, fn) {
|
|
1648
|
+
var identifiers = new Set();
|
|
1649
|
+
return arr.filter(function (item) {
|
|
1650
|
+
var identifier = fn(item);
|
|
1651
|
+
|
|
1652
|
+
if (!identifiers.has(identifier)) {
|
|
1653
|
+
identifiers.add(identifier);
|
|
1654
|
+
return true;
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1529
1659
|
function mergeByName(modifiers) {
|
|
1530
1660
|
var merged = modifiers.reduce(function (merged, current) {
|
|
1531
1661
|
var existing = merged[current.name];
|
|
@@ -1541,6 +1671,8 @@ function mergeByName(modifiers) {
|
|
|
1541
1671
|
});
|
|
1542
1672
|
}
|
|
1543
1673
|
|
|
1674
|
+
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
1675
|
+
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
1544
1676
|
var DEFAULT_OPTIONS = {
|
|
1545
1677
|
placement: 'bottom',
|
|
1546
1678
|
modifiers: [],
|
|
@@ -1603,6 +1735,40 @@ function popperGenerator(generatorOptions) {
|
|
|
1603
1735
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
1604
1736
|
return m.enabled;
|
|
1605
1737
|
}); // Validate the provided modifiers so that the consumer will get warned
|
|
1738
|
+
// if one of the modifiers is invalid for any reason
|
|
1739
|
+
|
|
1740
|
+
if ("development" !== "production") {
|
|
1741
|
+
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
1742
|
+
var name = _ref.name;
|
|
1743
|
+
return name;
|
|
1744
|
+
});
|
|
1745
|
+
validateModifiers(modifiers);
|
|
1746
|
+
|
|
1747
|
+
if (getBasePlacement(state.options.placement) === auto) {
|
|
1748
|
+
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
1749
|
+
var name = _ref2.name;
|
|
1750
|
+
return name === 'flip';
|
|
1751
|
+
});
|
|
1752
|
+
|
|
1753
|
+
if (!flipModifier) {
|
|
1754
|
+
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
var _getComputedStyle = getComputedStyle(popper),
|
|
1759
|
+
marginTop = _getComputedStyle.marginTop,
|
|
1760
|
+
marginRight = _getComputedStyle.marginRight,
|
|
1761
|
+
marginBottom = _getComputedStyle.marginBottom,
|
|
1762
|
+
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
1763
|
+
// cause bugs with positioning, so we'll warn the consumer
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
1767
|
+
return parseFloat(margin);
|
|
1768
|
+
})) {
|
|
1769
|
+
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1606
1772
|
|
|
1607
1773
|
runModifierEffects();
|
|
1608
1774
|
return instance.update();
|
|
@@ -1623,6 +1789,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1623
1789
|
// anymore
|
|
1624
1790
|
|
|
1625
1791
|
if (!areValidElements(reference, popper)) {
|
|
1792
|
+
if ("development" !== "production") {
|
|
1793
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
1794
|
+
}
|
|
1626
1795
|
|
|
1627
1796
|
return;
|
|
1628
1797
|
} // Store the reference and popper rects to be read by modifiers
|
|
@@ -1646,8 +1815,17 @@ function popperGenerator(generatorOptions) {
|
|
|
1646
1815
|
state.orderedModifiers.forEach(function (modifier) {
|
|
1647
1816
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
1648
1817
|
});
|
|
1818
|
+
var __debug_loops__ = 0;
|
|
1649
1819
|
|
|
1650
1820
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
1821
|
+
if ("development" !== "production") {
|
|
1822
|
+
__debug_loops__ += 1;
|
|
1823
|
+
|
|
1824
|
+
if (__debug_loops__ > 100) {
|
|
1825
|
+
console.error(INFINITE_LOOP_ERROR);
|
|
1826
|
+
break;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1651
1829
|
|
|
1652
1830
|
if (state.reset === true) {
|
|
1653
1831
|
state.reset = false;
|
|
@@ -1686,6 +1864,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1686
1864
|
};
|
|
1687
1865
|
|
|
1688
1866
|
if (!areValidElements(reference, popper)) {
|
|
1867
|
+
if ("development" !== "production") {
|
|
1868
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
1869
|
+
}
|
|
1689
1870
|
|
|
1690
1871
|
return instance;
|
|
1691
1872
|
}
|
|
@@ -1732,6 +1913,12 @@ function popperGenerator(generatorOptions) {
|
|
|
1732
1913
|
return instance;
|
|
1733
1914
|
};
|
|
1734
1915
|
}
|
|
1916
|
+
var createPopper$2 = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
|
|
1917
|
+
|
|
1918
|
+
var defaultModifiers$1 = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1];
|
|
1919
|
+
var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
1920
|
+
defaultModifiers: defaultModifiers$1
|
|
1921
|
+
}); // eslint-disable-next-line import/no-unused-modules
|
|
1735
1922
|
|
|
1736
1923
|
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
1737
1924
|
var createPopper = /*#__PURE__*/popperGenerator({
|