@foxy.io/elements 1.50.0 → 1.52.0-beta.1
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 +1 -1
- 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-admin-transaction-card.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 +1 -1
- 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 +1 -195
- 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-store-transaction-folder-card.js +1 -1
- package/dist/cdn/foxy-store-transaction-folder-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-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-490dadf8.js → shared-00b3766c.js} +1 -1
- package/dist/cdn/{shared-1301af85.js → shared-0378a2e7.js} +1 -1
- package/dist/cdn/{shared-67aeac0f.js → shared-058530fc.js} +1 -1
- package/dist/cdn/{shared-4dc0bd88.js → shared-05ee3727.js} +1 -1
- package/dist/cdn/{shared-bb2b7d41.js → shared-0f762c6f.js} +1 -1
- package/dist/cdn/{shared-6880e1f6.js → shared-0f92b865.js} +1 -1
- package/dist/cdn/{shared-021fbb51.js → shared-0fd68dc0.js} +2 -2
- package/dist/cdn/{shared-1fa1abbd.js → shared-11b28365.js} +1 -1
- package/dist/cdn/{shared-ddc1c32f.js → shared-1495abba.js} +1 -1
- package/dist/cdn/{shared-f7965314.js → shared-1597defa.js} +1 -1
- package/dist/cdn/{shared-084e1772.js → shared-1599feba.js} +1 -1
- package/dist/cdn/{shared-b0453b08.js → shared-19073761.js} +1 -1
- package/dist/cdn/{shared-8bf38c47.js → shared-1dc640ee.js} +1 -1
- package/dist/cdn/{shared-a9a8eb7c.js → shared-248965c0.js} +1 -1
- package/dist/cdn/{shared-9a454e09.js → shared-33a23cec.js} +1 -1
- package/dist/cdn/{shared-fc6e64a4.js → shared-377cce47.js} +2 -2
- package/dist/cdn/{shared-ee752063.js → shared-3eac4b7c.js} +1 -1
- package/dist/cdn/{shared-de4ec7bb.js → shared-436e1842.js} +1 -1
- package/dist/cdn/{shared-be071e3d.js → shared-515003f6.js} +1 -1
- package/dist/cdn/{shared-1492fa1c.js → shared-5d82169f.js} +1 -1
- package/dist/cdn/{shared-2a84ee72.js → shared-60497743.js} +1 -1
- package/dist/cdn/{shared-4cc1fb20.js → shared-609c9693.js} +1 -1
- package/dist/cdn/{shared-f05c924a.js → shared-62263428.js} +1 -1
- package/dist/cdn/{shared-0ea24ca2.js → shared-65094878.js} +1 -1
- package/dist/cdn/{shared-3c53446d.js → shared-6a0e1b94.js} +3 -3
- package/dist/cdn/{shared-8dd6e5cc.js → shared-6cdfb858.js} +1 -1
- package/dist/cdn/{shared-0a7a4660.js → shared-72511c81.js} +1 -1
- package/dist/cdn/{shared-3c0e3876.js → shared-7892fd3f.js} +4 -4
- package/dist/cdn/{shared-334b7e24.js → shared-80950330.js} +1 -1
- package/dist/cdn/{shared-bc8a1435.js → shared-81c78cb4.js} +1 -1
- package/dist/cdn/{shared-55fa26c2.js → shared-851a1b41.js} +1 -1
- package/dist/cdn/{shared-328aa161.js → shared-887ac0b0.js} +1 -1
- package/dist/cdn/{shared-591ee1bf.js → shared-8a428414.js} +1 -1
- package/dist/cdn/{shared-7a5d645f.js → shared-8d69329d.js} +1 -1
- package/dist/cdn/{shared-9a291941.js → shared-8d8975d5.js} +1 -1
- package/dist/cdn/{shared-f9bb0924.js → shared-8df8e77c.js} +1 -1
- package/dist/cdn/{shared-7c5881c1.js → shared-8efde31e.js} +1 -1
- package/dist/cdn/{shared-add0286c.js → shared-96207bb5.js} +1 -1
- package/dist/cdn/{shared-1da8110b.js → shared-9687ab7b.js} +1 -1
- package/dist/cdn/{shared-b0db52f7.js → shared-99c53365.js} +1 -1
- package/dist/cdn/{shared-d48e260f.js → shared-9a3bf65c.js} +1 -1
- package/dist/cdn/{shared-26b55da2.js → shared-9b35fe34.js} +1 -1
- package/dist/cdn/{shared-910d49eb.js → shared-a0baefff.js} +1 -1
- package/dist/cdn/{shared-ad470adf.js → shared-a20ef119.js} +2 -2
- package/dist/cdn/{shared-43fb8242.js → shared-a53bd0d6.js} +1 -1
- package/dist/cdn/{shared-ba43928a.js → shared-a5d6db21.js} +1 -1
- package/dist/cdn/{shared-d01853e2.js → shared-a6f696b9.js} +1 -1
- package/dist/cdn/shared-af6ccc54.js +1 -0
- package/dist/cdn/{shared-a18827a4.js → shared-afdf7b0c.js} +1 -1
- package/dist/cdn/shared-b1fa9899.js +1 -0
- package/dist/cdn/{shared-5fbbaea2.js → shared-b5e048f5.js} +1 -1
- package/dist/cdn/{shared-83613f15.js → shared-b948488a.js} +1 -1
- package/dist/cdn/{shared-31e75a4a.js → shared-ce05e482.js} +1 -1
- package/dist/cdn/shared-ce7777ce.js +1 -0
- package/dist/cdn/{shared-aa258319.js → shared-d14a664a.js} +1 -1
- package/dist/cdn/{shared-18e301f2.js → shared-db623837.js} +1 -1
- package/dist/cdn/{shared-47ce4456.js → shared-e2d843ca.js} +1 -1
- package/dist/cdn/{shared-68c69a0f.js → shared-e3c62f45.js} +1 -1
- package/dist/cdn/shared-e650caf3.js +1 -0
- package/dist/cdn/{shared-d74aac59.js → shared-ec015a24.js} +1 -1
- package/dist/cdn/{shared-462566b0.js → shared-f1588331.js} +1 -1
- package/dist/cdn/{shared-8f61408a.js → shared-f4f01846.js} +1 -1
- package/dist/cdn/{shared-097487d0.js → shared-f8e360e6.js} +1 -1
- package/dist/cdn/{shared-7e1a3361.js → shared-f9e4a1cc.js} +1 -1
- package/dist/cdn/{shared-986bcd05.js → shared-fa977775.js} +1 -1
- package/dist/cdn/{shared-e9d87207.js → shared-faa174b6.js} +1 -1
- package/dist/cdn/translations/admin-subscription-form/en.json +64 -9
- package/dist/cdn/translations/cart-form/en.json +64 -9
- package/dist/cdn/translations/item-form/en.json +64 -9
- package/dist/cdn/translations/report-form/en.json +83 -33
- package/dist/cdn/translations/reports-table/en.json +1 -0
- package/dist/cdn/translations/transaction/en.json +64 -9
- package/dist/elements/internal/InternalNativeDateControl/InternalNativeDateControl.d.ts +18 -0
- package/dist/elements/internal/InternalNativeDateControl/InternalNativeDateControl.js +109 -0
- package/dist/elements/internal/InternalNativeDateControl/InternalNativeDateControl.js.map +1 -0
- package/dist/elements/internal/InternalNativeDateControl/index.d.ts +3 -0
- package/dist/elements/internal/InternalNativeDateControl/index.js +5 -0
- package/dist/elements/internal/InternalNativeDateControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/ItemForm.d.ts +3 -0
- package/dist/elements/public/ItemForm/ItemForm.js +79 -4
- package/dist/elements/public/ItemForm/ItemForm.js.map +1 -1
- package/dist/elements/public/ItemForm/index.d.ts +3 -0
- package/dist/elements/public/ItemForm/index.js +3 -0
- package/dist/elements/public/ItemForm/index.js.map +1 -1
- package/dist/elements/public/ReportForm/ReportForm.d.ts +20 -18
- package/dist/elements/public/ReportForm/ReportForm.js +126 -339
- package/dist/elements/public/ReportForm/ReportForm.js.map +1 -1
- package/dist/elements/public/ReportForm/index.d.ts +5 -9
- package/dist/elements/public/ReportForm/index.js +5 -9
- package/dist/elements/public/ReportForm/index.js.map +1 -1
- package/dist/elements/public/ReportForm/utils.d.ts +1 -0
- package/dist/elements/public/ReportForm/utils.js +4 -0
- package/dist/elements/public/ReportForm/utils.js.map +1 -1
- package/dist/mixins/themeable.js +4 -8
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/utils/safe-date.js +7 -1
- package/dist/utils/safe-date.js.map +1 -1
- package/package.json +2 -2
- package/dist/cdn/shared-04277241.js +0 -1
- package/dist/cdn/shared-200aa12d.js +0 -1
- package/dist/cdn/shared-56a16e03.js +0 -1
- package/dist/cdn/shared-e6c743bd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-65094878.js";import"./foxy-collection-page.js";import"./foxy-nucleon-element.js";import"./foxy-pagination.js";import"./shared-9b35fe34.js";import{I as e}from"./shared-33a23cec.js";import{m as t,_ as i}from"./shared-8f9014ff.js";import{N as r}from"./shared-fd8b44e3.js";import{i as s}from"./shared-53e42a77.js";import{c as n}from"./shared-4e709717.js";import{h as o,c as l}from"./shared-ba5c42c7.js";import{x as a}from"./shared-887ac0b0.js";let d,h,c,u,f,m=e=>e;let p,v=e=>e;customElements.define("foxy-internal-async-resource-link-list-control",class extends e{constructor(){super(...arguments),this.foreignKeyForUri=null,this.foreignKeyForId=null,this.ownKeyForUri=null,this.optionsHref=null,this.linksHref=null,this.embedKey=null,this.ownUri=null,this.limit=20,this.item=null,this.__getItemRenderer=t(((e,t)=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer=""\n ${t?".data=${ctx.data}":"href=${ctx.href}"}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)),((...e)=>e.join())),this.__renderItem=e=>{var t;const i=this.__getItemRenderer(this.item,!!e.data),r=e=>o(d||(d=m` <div style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)">${0}</div> `),e);if(!e.href||e.href.startsWith("foxy://"))return r(i(e));if(this.readonly)return r(i(e));const s=this.foreignKeyForUri,n=s?null===(t=this.__allLinks)||void 0===t?void 0:t.find((t=>t[s]===e.href)):void 0,l=this.disabled||!this.__allLinks||this.__isFetching;return r(o(h||(h=m` <vaadin-checkbox class="block foxy-internal-checkbox-style-0" ?disabled="${0}" ?checked="${0}" @change="${0}"> <div class="transition-opacity ${0}"> ${0} </div> </vaadin-checkbox> `),l,!!n,(t=>{var i,r,s;t.currentTarget.checked?this.__insertLink(null!==(r=null===(i=e.data)||void 0===i?void 0:i._links.self.href)&&void 0!==r?r:""):this.__deleteLink(null!==(s=null==n?void 0:n._links.self.href)&&void 0!==s?s:"")}),l?"opacity-50":"opacity-100",i(e)))},this.__isFetching=!1}static get properties(){return i(i({},super.properties),{},{foreignKeyForUri:{attribute:"foreign-key-for-uri"},foreignKeyForId:{attribute:"foreign-key-for-id"},ownKeyForUri:{attribute:"own-key-for-uri"},optionsHref:{attribute:"options-href"},linksHref:{attribute:"links-href"},embedKey:{attribute:"embed-key"},ownUri:{attribute:"own-uri"},limit:{type:Number},item:{},__isFetching:{attribute:!1}})}static get styles(){return[super.styles,l(c||(c=m`vaadin-checkbox::part(label){margin:0 0 0 calc(.625em + (var(--lumo-border-radius)/ 4) - 1px);align-self:center;flex:1}`))]}renderControl(){var e;let t;try{const i=new URL(null!==(e=this.optionsHref)&&void 0!==e?e:"");i.searchParams.set("limit",this.limit.toString()),t=i.toString()}catch(e){t=void 0}const i=this.__isFetching||!this.__allLinks;return o(u||(u=m` <div class="group"> <div class="mb-s" ?hidden="${0}"> <div class="flex justify-between font-medium text-l" ?hidden="${0}"> <span>${0}</span> <foxy-i18n class="text-m text-tertiary font-normal transition-opacity ${0}" infer="" key="${0}"> </foxy-i18n> </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> </div> <foxy-pagination first="${0}" infer="pagination"> <foxy-collection-page infer="card" class="${0}" .item="${0}"> </foxy-collection-page> </foxy-pagination> <div class="mt-s text-s leading-xs text-error" ?hidden="${0}"> ${0} </div> ${0} </div> `),!this.label&&!this.helperText,!this.label,this.label,i?"opacity-100":"opacity-0",this.__isFetching?"status_saving":"status_loading",!this.helperText,this.helperText,s(t),n({"block transition-colors divide-y rounded overflow-hidden":!0,"bg-contrast-5 divide-base":!0}),this.__renderItem,!this._errorMessage||this.disabled||this.readonly,this._errorMessage,this.__renderLinkResourceLoaders())}updated(e){var t,i;super.updated(e),e.has("item")&&(null===(i=(t=this.__getItemRenderer.cache).clear)||void 0===i||i.call(t))}async __insertLink(e){var t,i,s,n,o,l,a;this.__isFetching=!0;const d=new r.API(this),h=await d.fetch(null!==(t=this.linksHref)&&void 0!==t?t:"",{method:"POST",body:JSON.stringify({[null!==(i=this.foreignKeyForUri)&&void 0!==i?i:""]:e,[null!==(s=this.ownKeyForUri)&&void 0!==s?s:""]:this.ownUri})});if(h.ok){const e=await h.json(),t=await d.fetch(e._links.self.href);if(t.ok){const i=r.Rumour(null!==(o=null===(n=this.nucleon)||void 0===n?void 0:n.group)&&void 0!==o?o:""),s=await t.json();console.log({related:[null!==(l=this.linksHref)&&void 0!==l?l:""],source:e._links.self.href,data:s}),i.share({related:[null!==(a=this.linksHref)&&void 0!==a?a:""],source:e._links.self.href,data:s})}}this.__isFetching=!1}async __deleteLink(e){var t,i,s;this.__isFetching=!0;const n=new r.API(this);if((await n.fetch(e,{method:"DELETE"})).ok){r.Rumour(null!==(i=null===(t=this.nucleon)||void 0===t?void 0:t.group)&&void 0!==i?i:"").share({related:[null!==(s=this.linksHref)&&void 0!==s?s:""],source:e,data:null})}this.__isFetching=!1}__renderLinkResourceLoaders(){var e,t,i;const r=200,s=this.renderRoot.querySelector("[data-link-page]"),n=Number(null!==(t=null===(e=null==s?void 0:s.data)||void 0===e?void 0:e.total_items)&&void 0!==t?t:r),l=[];try{for(let e=0;e<Math.max(1,Math.ceil(n/r));e++){const t=new URL(null!==(i=this.linksHref)&&void 0!==i?i:"");t.searchParams.set("offset",String(e*r)),t.searchParams.set("limit",String(r)),l.push(t.toString())}}catch(e){}return l.map((e=>o(f||(f=m` <foxy-nucleon class="hidden" data-link-page infer="" href="${0}" @update="${0}"> </foxy-nucleon> `),e,(()=>this.requestUpdate()))))}get __allLinks(){var e,t;const i=this.embedKey;if(!i)return null;const r=this.renderRoot.querySelectorAll("[data-link-page]"),s=[];for(const n of r){const r=null===(t=null===(e=n.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t[i];if(!r)return null;s.push(...r)}return s}});try{a("vaadin-checkbox",l(p||(p=v`:host(.foxy-internal-checkbox-style-0) label{display:flex}`)))}catch(e){}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-99c53365.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as r,h as s}from"./shared-ba5c42c7.js";import{z as e}from"./shared-
|
|
1
|
+
import{L as r,h as s}from"./shared-ba5c42c7.js";import{z as e}from"./shared-887ac0b0.js";let t,o=r=>r;class a extends r{static get styles(){return e.styles}render(){return s(t||(t=o` <p class="flex text-s border border-contrast-10 rounded p-s text-body leading-s"> <iron-icon icon="lumo:error" class="text-error flex-shrink-0 mr-s"></iron-icon> <slot></slot> </p> `))}}export{a as W};
|