@foxy.io/elements 1.42.0-beta.6 → 1.42.0-beta.7
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/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +5 -5
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +2 -2
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +1 -1
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +4 -4
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +10 -10
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-swipe-actions.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-864ea319.js → shared-0553380e.js} +1 -1
- package/dist/cdn/{shared-fca3a317.js → shared-0c242246.js} +1 -1
- package/dist/cdn/{shared-25167d28.js → shared-0cc8df04.js} +1 -1
- package/dist/cdn/{shared-4e309d01.js → shared-0cfb1c08.js} +1 -1
- package/dist/cdn/{shared-77f39a8a.js → shared-0f4dfb14.js} +1 -1
- package/dist/cdn/{shared-16ae74b2.js → shared-1aff90a9.js} +1 -1
- package/dist/cdn/shared-1b46df2a.js +417 -0
- package/dist/cdn/{shared-70380f94.js → shared-1d03f911.js} +1 -1
- package/dist/cdn/shared-241b6cca.js +231 -0
- package/dist/cdn/{shared-56d91134.js → shared-2939f350.js} +1 -1
- package/dist/cdn/shared-2b126cea.js +25 -0
- package/dist/cdn/{shared-4ded48ee.js → shared-2fe8aabd.js} +1 -1
- package/dist/cdn/{shared-7a2aaafa.js → shared-330e57d9.js} +1 -1
- package/dist/cdn/shared-35c9fa1d.js +1 -0
- package/dist/cdn/{shared-49337d35.js → shared-393a7ab2.js} +1 -1
- package/dist/cdn/{shared-bc2eb9bb.js → shared-3a2134c8.js} +1 -1
- package/dist/cdn/{shared-7f5f6657.js → shared-3aca4932.js} +1 -1
- package/dist/cdn/{shared-e4768909.js → shared-3cdec25d.js} +9 -9
- package/dist/cdn/{shared-8b891950.js → shared-40028e80.js} +1 -1
- package/dist/cdn/{shared-127ec8a7.js → shared-434cdfec.js} +1 -1
- package/dist/cdn/{shared-df369311.js → shared-46f8e3d9.js} +1 -1
- package/dist/cdn/{shared-5960c279.js → shared-4bd1f3d8.js} +1 -1
- package/dist/cdn/shared-4cae017c.js +1 -0
- package/dist/cdn/{shared-42c91940.js → shared-4d919766.js} +1 -1
- package/dist/cdn/{shared-e55e32dd.js → shared-4f808d2e.js} +1 -1
- package/dist/cdn/{shared-a4ca1c5d.js → shared-53253d60.js} +1 -1
- package/dist/cdn/{shared-663794ff.js → shared-5520b96c.js} +1 -1
- package/dist/cdn/shared-578cde14.js +1 -0
- package/dist/cdn/{shared-7b3aac7e.js → shared-58b6710c.js} +1 -1
- package/dist/cdn/{shared-16d1018b.js → shared-5a04e75c.js} +1 -1
- package/dist/cdn/{shared-92153a7f.js → shared-5d7c4673.js} +1 -1
- package/dist/cdn/{shared-1b7e17c7.js → shared-692691ca.js} +1 -1
- package/dist/cdn/{shared-e653b80e.js → shared-6f08d218.js} +1 -1
- package/dist/cdn/{shared-2a5d1cdf.js → shared-753fdd34.js} +1 -1
- package/dist/cdn/{shared-500b7eb7.js → shared-7977d581.js} +2 -2
- package/dist/cdn/{shared-d5f6483f.js → shared-7eeb591f.js} +1 -1
- package/dist/cdn/{shared-9a4d52dd.js → shared-86337ba8.js} +1 -1
- package/dist/cdn/{shared-3ca95e21.js → shared-8c42634c.js} +1 -1
- package/dist/cdn/{shared-1f6366c0.js → shared-8e010314.js} +1 -1
- package/dist/cdn/{shared-7995cbcf.js → shared-8f81f4ed.js} +1 -1
- package/dist/cdn/{shared-6f1261fa.js → shared-92995c02.js} +1 -1
- package/dist/cdn/{shared-076f086a.js → shared-948919d2.js} +1 -1
- package/dist/cdn/{shared-a1f654fc.js → shared-98f382f3.js} +1 -1
- package/dist/cdn/{shared-76cbea00.js → shared-9d4813e6.js} +1 -1
- package/dist/cdn/{shared-eb086cef.js → shared-a60ca6fe.js} +1 -1
- package/dist/cdn/{shared-ee9ee09a.js → shared-ae2336ab.js} +1 -1
- package/dist/cdn/{shared-6b3b8c63.js → shared-b05ef317.js} +1 -1
- package/dist/cdn/shared-b1c9199f.js +531 -0
- package/dist/cdn/{shared-5714fc55.js → shared-b6c5ac14.js} +2 -2
- package/dist/cdn/{shared-253e51f7.js → shared-c009b9b6.js} +1 -1
- package/dist/cdn/{shared-75e7361d.js → shared-c231e3bf.js} +1 -1
- package/dist/cdn/{shared-a3a18e8d.js → shared-c584966f.js} +1 -1
- package/dist/cdn/{shared-90754404.js → shared-c5b019e5.js} +1 -1
- package/dist/cdn/{shared-eed9b226.js → shared-cae254ee.js} +9 -9
- package/dist/cdn/{shared-771431a9.js → shared-ceeb14e9.js} +1 -1
- package/dist/cdn/{shared-fc66cb5d.js → shared-cf008f13.js} +1 -1
- package/dist/cdn/{shared-f9f64dee.js → shared-d3d4badd.js} +1 -1
- package/dist/cdn/{shared-d2304d50.js → shared-d743d0fd.js} +1 -1
- package/dist/cdn/{shared-a3a4c368.js → shared-d8694661.js} +6 -6
- package/dist/cdn/{shared-1ce5b073.js → shared-e1400289.js} +1 -1
- package/dist/cdn/shared-e615d2d9.js +1 -0
- package/dist/cdn/{shared-677953e0.js → shared-ec9893c7.js} +1 -1
- package/dist/cdn/{shared-68a5368a.js → shared-f79f08cc.js} +1 -1
- package/dist/cdn/translations/admin-subscription-form/en.json +112 -48
- package/dist/cdn/translations/api-browser/en.json +7 -3
- package/dist/cdn/translations/cart-form/en.json +91 -39
- package/dist/cdn/translations/coupon-code-form/en.json +7 -3
- package/dist/cdn/translations/coupon-form/en.json +28 -12
- package/dist/cdn/translations/customer/en.json +28 -12
- package/dist/cdn/translations/customer-portal/de.json +14 -6
- package/dist/cdn/translations/customer-portal/en.json +14 -6
- package/dist/cdn/translations/customer-portal/es.json +14 -6
- package/dist/cdn/translations/customer-portal/fr.json +14 -6
- package/dist/cdn/translations/customer-portal/nl.json +14 -6
- package/dist/cdn/translations/customer-portal/pl.json +14 -6
- package/dist/cdn/translations/customer-portal/sv.json +14 -6
- package/dist/cdn/translations/customer-portal/zh-HK.json +14 -6
- package/dist/cdn/translations/customer-portal-settings-form/en.json +14 -6
- package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +28 -12
- package/dist/cdn/translations/gift-card-code-form/en.json +14 -6
- package/dist/cdn/translations/gift-card-form/en.json +35 -15
- package/dist/cdn/translations/item-category-form/en.json +14 -6
- package/dist/cdn/translations/item-form/en.json +35 -15
- package/dist/cdn/translations/native-integration-form/en.json +14 -6
- package/dist/cdn/translations/pagination/en.json +7 -3
- package/dist/cdn/translations/payment-method-card/en.json +7 -3
- package/dist/cdn/translations/store-shipping-method-form/en.json +28 -12
- package/dist/cdn/translations/subscription-form/en.json +21 -9
- package/dist/cdn/translations/tax-form/en.json +7 -3
- package/dist/cdn/translations/template-set-form/en.json +7 -3
- package/dist/cdn/translations/transaction/en.json +98 -42
- package/dist/cdn/translations/update-payment-method-form/en.json +7 -3
- package/dist/cdn/translations/webhook-form/en.json +14 -6
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +13 -31
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.js +98 -91
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/Pagination/index.d.ts +1 -0
- package/dist/elements/public/Pagination/index.js +1 -0
- package/dist/elements/public/Pagination/index.js.map +1 -1
- package/dist/elements/public/SwipeActions/SwipeActions.d.ts +1 -0
- package/dist/elements/public/SwipeActions/SwipeActions.js +8 -5
- package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
- package/dist/mixins/themeable.js +0 -18
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-0662adb7.js +0 -1
- package/dist/cdn/shared-0995ae7c.js +0 -637
- package/dist/cdn/shared-0e1ad508.js +0 -1
- package/dist/cdn/shared-20fb2969.js +0 -88
- package/dist/cdn/shared-21fba20d.js +0 -1
- package/dist/cdn/shared-292dcee0.js +0 -10
- package/dist/cdn/shared-5c057c26.js +0 -419
- package/dist/cdn/shared-651c44fa.js +0 -6
- package/dist/cdn/shared-7a4ca3f1.js +0 -1
- package/dist/cdn/shared-986d0f7f.js +0 -1
- package/dist/cdn/shared-c365c1ae.js +0 -31
- package/dist/cdn/shared-f28e46bf.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as t,r as e,
|
|
1
|
+
import{D as t,r as e,l as n,b as r,f as i,s,o,c as a,p as l,d as c,e as d,g as h,h as u,u as p,j as _,k as f,m,n as y}from"./shared-e1400289.js";
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -55,7 +55,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
55
55
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
56
56
|
Code distributed by Google as part of the polymer project is also
|
|
57
57
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
58
|
-
*/const z=!(window.ShadyDOM&&window.ShadyDOM.inUse);let H,B;function j(t){H=(!t||!t.shimcssproperties)&&(z||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(B=window.ShadyCSS.cssBuild);const Y=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?H=window.ShadyCSS.nativeCss:window.ShadyCSS?(j(window.ShadyCSS),window.ShadyCSS=void 0):j(window.WebComponents&&window.WebComponents.flags);const
|
|
58
|
+
*/const z=!(window.ShadyDOM&&window.ShadyDOM.inUse);let H,B;function j(t){H=(!t||!t.shimcssproperties)&&(z||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(B=window.ShadyCSS.cssBuild);const Y=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?H=window.ShadyCSS.nativeCss:window.ShadyCSS?(j(window.ShadyCSS),window.ShadyCSS=void 0):j(window.WebComponents&&window.WebComponents.flags);const J=H,q=new I;
|
|
59
59
|
/**
|
|
60
60
|
@license
|
|
61
61
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -64,7 +64,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
64
64
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
65
65
|
Code distributed by Google as part of the polymer project is also
|
|
66
66
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
67
|
-
*/window.ShadyCSS||(window.ShadyCSS={prepareTemplate(t,e,n){},prepareTemplateDom(t,e){},prepareTemplateStyles(t,e,n){},styleSubtree(t,e){
|
|
67
|
+
*/window.ShadyCSS||(window.ShadyCSS={prepareTemplate(t,e,n){},prepareTemplateDom(t,e){},prepareTemplateStyles(t,e,n){},styleSubtree(t,e){q.processStyles(),k(t,e)},styleElement(t){q.processStyles()},styleDocument(t){q.processStyles(),k(document.body,t)},getComputedStyleValue:(t,e)=>D(t,e),flushCustomStyles(){},nativeCss:J,nativeShadow:z,cssBuild:B,disableRuntime:Y}),window.ShadyCSS.CustomStyleInterface=q;
|
|
68
68
|
/**
|
|
69
69
|
@license
|
|
70
70
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -139,7 +139,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
139
139
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
140
140
|
Code distributed by Google as part of the polymer project is also
|
|
141
141
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
142
|
-
*/let Ht=!1,Bt=!1;function jt(t){(function(){if(!Ht){Ht=!0;const t=document.createElement("textarea");t.placeholder="a",Bt=t.placeholder===t.textContent}return Bt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Yt=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,n,r)=>{const i=n.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(i,r)):e.setAttribute(r,i)}})();function
|
|
142
|
+
*/let Ht=!1,Bt=!1;function jt(t){(function(){if(!Ht){Ht=!0;const t=document.createElement("textarea");t.placeholder="a",Bt=t.placeholder===t.textContent}return Bt})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Yt=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,n,r)=>{const i=n.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(i,r)):e.setAttribute(r,i)}})();function Jt(t){let e=t.getAttribute("is");if(e&&zt[e]){let n=t;for(n.removeAttribute("is"),t=n.ownerDocument.createElement(e),n.parentNode.replaceChild(t,n),t.appendChild(n);n.attributes.length;){const{name:e}=n.attributes[0];Yt(t,n,e),n.removeAttribute(e)}}return t}function qt(t,e){let n=e.parentInfo&&qt(t,e.parentInfo);if(!n)return t;for(let t=n.firstChild,r=0;t;t=t.nextSibling)if(e.parentIndex===r++)return t}function $t(t,e,n,r){r.id&&(e[r.id]=n)}function Ut(t,e,n){if(n.events&&n.events.length)for(let r,i=0,s=n.events;i<s.length&&(r=s[i]);i++)t._addMethodEventListenerToNode(e,r.name,r.value,t)}function Vt(t,e,n,r){n.templateInfo&&(e._templateInfo=n.templateInfo,e._parentTemplateInfo=r)}const Xt=st((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let n=t._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=Boolean(e),n.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,n,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,n){return this._parseTemplateNode(t.content,e,n)}static _parseTemplateNode(t,e,n){let r=!1,i=t;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(e.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,e,n)||r,jt(i),i.firstChild&&this._parseTemplateChildNodes(i,e,n),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,e,n)||r),r||n.noted}static _parseTemplateChildNodes(t,e,n){if("script"!==t.localName&&"style"!==t.localName)for(let r,i=t.firstChild,s=0;i;i=r){if("template"==i.localName&&(i=Jt(i)),r=i.nextSibling,i.nodeType===Node.TEXT_NODE){let n=r;for(;n&&n.nodeType===Node.TEXT_NODE;)i.textContent+=n.textContent,r=n.nextSibling,t.removeChild(n),n=r;if(e.stripWhiteSpace&&!i.textContent.trim()){t.removeChild(i);continue}}let o={parentIndex:s,parentInfo:n};this._parseTemplateNode(i,e,o)&&(o.infoIndex=e.nodeInfoList.push(o)-1),i.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,n){let r=t,i=this._parseTemplate(r,e);return(i.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=i,!0}static _parseTemplateNodeAttributes(t,e,n){let r=!1,i=Array.from(t.attributes);for(let s,o=i.length-1;s=i[o];o--)r=this._parseTemplateNodeAttribute(t,e,n,s.name,s.value)||r;return r}static _parseTemplateNodeAttribute(t,e,n,r,i){return"on-"===r.slice(0,3)?(t.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let n=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,r=e.content||t.content,i=document.importNode(r,!0);i.__noInsertionPoint=!e.hasInsertionPoint;let s=i.nodeList=new Array(n.length);i.$={};for(let t,r=0,o=n.length;r<o&&(t=n[r]);r++){let n=s[r]=qt(i,t);$t(0,i.$,n,t),Vt(0,n,t,e),Ut(this,n,t)}return i}_addMethodEventListenerToNode(t,e,n,r){let i=function(t,e,n){return t=t._methodHost||t,function(e){t[n]?t[n](e,e.detail):console.warn("listener method `"+n+"` not defined")}}(r=r||t,0,n);return this._addEventListenerToNode(t,e,i),i}_addEventListenerToNode(t,e,n){t.addEventListener(e,n)}_removeEventListenerFromNode(t,e,n){t.removeEventListener(e,n)}}));
|
|
143
143
|
/**
|
|
144
144
|
* @fileoverview
|
|
145
145
|
* @suppress {checkPrototypalTypes}
|
|
@@ -200,7 +200,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
200
200
|
Code distributed by Google as part of the polymer project is also
|
|
201
201
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
202
202
|
*/
|
|
203
|
-
let je="string"==typeof document.head.style.touchAction,Ye="__polymerGestures",
|
|
203
|
+
let je="string"==typeof document.head.style.touchAction,Ye="__polymerGestures",Je="__polymerGesturesHandled",qe="__polymerGesturesTouchAction",$e=["mousedown","mousemove","mouseup","click"],Ue=[0,1,4,2],Ve=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Xe(t){return $e.indexOf(t)>-1}let We=!1;function Ge(t){if(!Xe(t)&&"touchend"!==t)return je&&We&&y?{passive:!0}:void 0}!function(){try{let t=Object.defineProperty({},"passive",{get(){We=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();let Ze=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const Ke=[],Qe={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},tn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function en(t){let e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];try{let n=t.getRootNode();if(t.id){let r=n.querySelectorAll(`label[for = '${t.id}']`);for(let t=0;t<r.length;t++)e.push(r[t])}}catch(t){}}return e}let nn=function(t){let e=t.sourceCapabilities;var n;if((!e||e.firesTouchEvents)&&(t[Je]={skip:!0},"click"===t.type)){let e=!1,r=cn(t);for(let t=0;t<r.length;t++){if(r[t].nodeType===Node.ELEMENT_NODE)if("label"===r[t].localName)Ke.push(r[t]);else if(n=r[t],Qe[n.localName]){let n=en(r[t]);for(let t=0;t<n.length;t++)e=e||Ke.indexOf(n[t])>-1}if(r[t]===on.mouse.target)return}if(e)return;t.preventDefault(),t.stopPropagation()}};function rn(t){let e=Ze?["click"]:$e;for(let n,r=0;r<e.length;r++)n=e[r],t?(Ke.length=0,document.addEventListener(n,nn,!0)):document.removeEventListener(n,nn,!0)}function sn(t){let e=t.type;if(!Xe(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ve&&(e=Ue[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}let on={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function an(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function ln(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){on.mouse.mouseIgnoreJob||rn(!0),on.mouse.target=cn(t)[0],on.mouse.mouseIgnoreJob=Fe.debounce(on.mouse.mouseIgnoreJob,At.after(2500),(function(){rn(),on.mouse.target=null,on.mouse.mouseIgnoreJob=null}))}),!!We&&{passive:!0});const cn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],dn={},hn=[];function un(t){const e=cn(t);return e.length>0?e[0]:t.target}function pn(t){let e,n=t.type,r=t.currentTarget[Ye];if(!r)return;let i=r[n];if(i){if(!t[Je]&&(t[Je]={},"touch"===n.slice(0,5))){let e=t.changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(on.touch.id=e.identifier),on.touch.id!==e.identifier)return;je||"touchstart"!==n&&"touchmove"!==n||function(t){let e=t.changedTouches[0],n=t.type;if("touchstart"===n)on.touch.x=e.clientX,on.touch.y=e.clientY,on.touch.scrollDecided=!1;else if("touchmove"===n){if(on.touch.scrollDecided)return;on.touch.scrollDecided=!0;let n=function(t){let e="auto",n=cn(t);for(let t,r=0;r<n.length;r++)if(t=n[r],t[qe]){e=t[qe];break}return e}(t),r=!1,i=Math.abs(on.touch.x-e.clientX),s=Math.abs(on.touch.y-e.clientY);t.cancelable&&("none"===n?r=!0:"pan-x"===n?r=s>i:"pan-y"===n&&(r=i>s)),r?t.preventDefault():Pn("track")}}(t)}if(e=t[Je],!e.skip){for(let n,r=0;r<hn.length;r++)n=hn[r],i[n.name]&&!e[n.name]&&n.flow&&n.flow.start.indexOf(t.type)>-1&&n.reset&&n.reset();for(let r,s=0;s<hn.length;s++)r=hn[s],i[r.name]&&!e[r.name]&&(e[r.name]=!0,r[n](t))}}}function _n(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];o||(t[Ye]=o={});for(let e,n,r=0;r<i.length;r++)e=i[r],Ze&&Xe(e)&&"click"!==e||(n=o[e],n||(o[e]=n={_count:0}),0===n._count&&t.addEventListener(e,pn,Ge(e)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,n),r.touchAction&&yn(t,r.touchAction)}(t,e,n),!0)}function fn(t,e,n){return!!dn[e]&&(function(t,e,n){let r=dn[e],i=r.deps,s=r.name,o=t[Ye];if(o)for(let e,n,r=0;r<i.length;r++)e=i[r],n=o[e],n&&n[s]&&(n[s]=(n[s]||1)-1,n._count=(n._count||1)-1,0===n._count&&t.removeEventListener(e,pn,Ge(e)));t.removeEventListener(e,n)}(t,e,n),!0)}function mn(t){hn.push(t);for(let e=0;e<t.emits.length;e++)dn[t.emits[e]]=t}function yn(t,e){je&&t instanceof HTMLElement&&It.run((()=>{t.style.touchAction=e})),t[qe]=e}function gn(t,e,n){let r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,ot(t).dispatchEvent(r),r.defaultPrevented){let t=n.preventer||n.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Pn(t){let e=function(t){for(let e,n=0;n<hn.length;n++){e=hn[n];for(let n,r=0;r<e.emits.length;r++)if(n=e.emits[r],n===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function bn(){on.mouse.mouseIgnoreJob&&on.mouse.mouseIgnoreJob.flush()}function wn(t,e,n,r){e&&gn(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(t){return Pn(t)}})}function vn(t,e,n){if(t.prevent)return!1;if(t.started)return!0;let r=Math.abs(t.x-e),i=Math.abs(t.y-n);return r>=5||i>=5}function Cn(t,e,n){if(!e)return;let r,i=t.moves[t.moves.length-2],s=t.moves[t.moves.length-1],o=s.x-t.x,a=s.y-t.y,l=0;i&&(r=s.x-i.x,l=s.y-i.y),gn(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:o,dy:a,ddx:r,ddy:l,sourceEvent:n,hover:function(){return function(t,e){let n=document.elementFromPoint(t,e),r=n;for(;r&&r.shadowRoot&&!window.ShadyDOM;){let i=r;if(r=r.shadowRoot.elementFromPoint(t,e),i===r)break;r&&(n=r)}return n}(n.clientX,n.clientY)}})}function Sn(t,e,n){let r=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),s=un(n||e);!s||tn[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=un(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let n=e.getBoundingClientRect(),r=t.pageX,i=t.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(e))&&(t.prevent||gn(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}
|
|
204
204
|
/**
|
|
205
205
|
@license
|
|
206
206
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -209,4 +209,4 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
209
209
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
210
210
|
Code distributed by Google as part of the polymer project is also
|
|
211
211
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
212
|
-
*/mn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this;an(this.info,(function(t){sn(t)||(wn("up",e,t),ln(n.info))}),(function(t){sn(t)&&wn("up",e,t),ln(n.info)})),wn("down",e,t)},touchstart:function(t){wn("down",un(t),t.changedTouches[0],t)},touchend:function(t){wn("up",un(t),t.changedTouches[0],t)}}),mn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this,r=function(t){let r=t.clientX,i=t.clientY;vn(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&Pn("tap"),n.info.addMove({x:r,y:i}),sn(t)||(n.info.state="end",ln(n.info)),e&&Cn(n.info,e,t),n.info.started=!0)};an(this.info,r,(function(t){n.info.started&&r(t),ln(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart:function(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){let e=un(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;vn(this.info,r,i)&&("start"===this.info.state&&Pn("tap"),this.info.addMove({x:r,y:i}),Cn(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=un(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Cn(this.info,e,n))}}),mn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){sn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){sn(t)&&Sn(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Sn(this.info,t.changedTouches[0],t)}});const En=st((t=>class extends t{_addEventListenerToNode(t,e,n){_n(t,e,n)||super._addEventListenerToNode(t,e,n)}_removeEventListenerFromNode(t,e,n){fn(t,e,n)||super._removeEventListenerFromNode(t,e,n)}}));export{
|
|
212
|
+
*/mn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this;an(this.info,(function(t){sn(t)||(wn("up",e,t),ln(n.info))}),(function(t){sn(t)&&wn("up",e,t),ln(n.info)})),wn("down",e,t)},touchstart:function(t){wn("down",un(t),t.changedTouches[0],t)},touchend:function(t){wn("up",un(t),t.changedTouches[0],t)}}),mn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ln(this.info)},mousedown:function(t){if(!sn(t))return;let e=un(t),n=this,r=function(t){let r=t.clientX,i=t.clientY;vn(n.info,r,i)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&Pn("tap"),n.info.addMove({x:r,y:i}),sn(t)||(n.info.state="end",ln(n.info)),e&&Cn(n.info,e,t),n.info.started=!0)};an(this.info,r,(function(t){n.info.started&&r(t),ln(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart:function(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){let e=un(t),n=t.changedTouches[0],r=n.clientX,i=n.clientY;vn(this.info,r,i)&&("start"===this.info.state&&Pn("tap"),this.info.addMove({x:r,y:i}),Cn(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){let e=un(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Cn(this.info,e,n))}}),mn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){sn(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){sn(t)&&Sn(this.info,t)},touchstart:function(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){Sn(this.info,t.changedTouches[0],t)}});const En=st((t=>class extends t{_addEventListenerToNode(t,e,n){_n(t,e,n)||super._addEventListenerToNode(t,e,n)}_removeEventListenerFromNode(t,e,n){fn(t,e,n)||super._removeEventListenerFromNode(t,e,n)}}));export{lt as A,bn as B,bt as C,Fe as D,ke as E,En as G,R as M,De as P,L as V,Nt as a,_n as b,z as c,B as d,He as e,Be as f,F as g,w as h,xt as i,M as j,D as k,Y as l,st as m,J as n,Ft as o,It as p,Re as q,Le as r,yn as s,At as t,k as u,ft as v,ot as w,xe as x,ut as y,ht as z};
|