@foxy.io/elements 1.24.0-beta.1 → 1.24.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-api-browser.js +1 -1
  6. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  8. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  9. package/dist/cdn/foxy-attribute-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-form.js +1 -1
  11. package/dist/cdn/foxy-cancellation-form.js +1 -1
  12. package/dist/cdn/foxy-cart-card.js +1 -1
  13. package/dist/cdn/foxy-cart-form.js +1 -1
  14. package/dist/cdn/foxy-client-card.js +1 -1
  15. package/dist/cdn/foxy-client-form.js +1 -1
  16. package/dist/cdn/foxy-collection-page.js +1 -1
  17. package/dist/cdn/foxy-collection-pages.js +1 -1
  18. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  19. package/dist/cdn/foxy-coupon-card.js +1 -1
  20. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  21. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  22. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-form.js +1 -1
  24. package/dist/cdn/foxy-custom-field-card.js +1 -1
  25. package/dist/cdn/foxy-custom-field-form.js +1 -1
  26. package/dist/cdn/foxy-customer-api.js +1 -1
  27. package/dist/cdn/foxy-customer-card.js +1 -1
  28. package/dist/cdn/foxy-customer-form.js +1 -1
  29. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  30. package/dist/cdn/foxy-customer-portal.js +1 -1
  31. package/dist/cdn/foxy-customer.js +1 -1
  32. package/dist/cdn/foxy-customers-table.js +1 -1
  33. package/dist/cdn/foxy-discount-builder.js +1 -1
  34. package/dist/cdn/foxy-discount-card.js +1 -1
  35. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  36. package/dist/cdn/foxy-donation.js +1 -1
  37. package/dist/cdn/foxy-downloadable-card.js +1 -1
  38. package/dist/cdn/foxy-downloadable-form.js +1 -1
  39. package/dist/cdn/foxy-email-template-card.js +1 -1
  40. package/dist/cdn/foxy-email-template-form.js +1 -1
  41. package/dist/cdn/foxy-error-entry-card.js +1 -1
  42. package/dist/cdn/foxy-filter-attribute-card.js +1 -0
  43. package/dist/cdn/foxy-filter-attribute-form.js +1 -0
  44. package/dist/cdn/foxy-form-dialog.js +1 -1
  45. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  46. package/dist/cdn/foxy-gift-card-card.js +1 -1
  47. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  48. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  49. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  50. package/dist/cdn/foxy-gift-card-form.js +1 -1
  51. package/dist/cdn/foxy-i18n-editor.js +2 -2
  52. package/dist/cdn/foxy-i18n.js +1 -1
  53. package/dist/cdn/foxy-integration-card.js +1 -1
  54. package/dist/cdn/foxy-integration-form.js +1 -1
  55. package/dist/cdn/foxy-item-card.js +1 -1
  56. package/dist/cdn/foxy-item-category-card.js +1 -1
  57. package/dist/cdn/foxy-item-category-form.js +1 -1
  58. package/dist/cdn/foxy-item-form.js +1 -1
  59. package/dist/cdn/foxy-item-option-card.js +1 -1
  60. package/dist/cdn/foxy-item-option-form.js +1 -1
  61. package/dist/cdn/foxy-items-form.js +1 -1
  62. package/dist/cdn/foxy-nucleon-element.js +1 -1
  63. package/dist/cdn/foxy-pagination.js +1 -1
  64. package/dist/cdn/foxy-passkey-card.js +1 -1
  65. package/dist/cdn/foxy-passkey-form.js +1 -1
  66. package/dist/cdn/foxy-payment-card.js +1 -1
  67. package/dist/cdn/foxy-payment-method-card.js +1 -1
  68. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  69. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  70. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  71. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  72. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  73. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  74. package/dist/cdn/foxy-payments-api.js +1 -1
  75. package/dist/cdn/foxy-query-builder.js +1 -1
  76. package/dist/cdn/foxy-report-form.js +1 -1
  77. package/dist/cdn/foxy-reports-table.js +1 -1
  78. package/dist/cdn/foxy-shipment-card.js +1 -1
  79. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  80. package/dist/cdn/foxy-sign-in-form.js +1 -1
  81. package/dist/cdn/foxy-spinner.js +2 -2
  82. package/dist/cdn/foxy-store-card.js +1 -1
  83. package/dist/cdn/foxy-store-form.js +1 -1
  84. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  85. package/dist/cdn/foxy-subscription-card.js +1 -1
  86. package/dist/cdn/foxy-subscription-form.js +1 -1
  87. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  88. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  89. package/dist/cdn/foxy-table.js +1 -1
  90. package/dist/cdn/foxy-tax-card.js +1 -1
  91. package/dist/cdn/foxy-tax-form.js +1 -1
  92. package/dist/cdn/foxy-template-config-form.js +1 -1
  93. package/dist/cdn/foxy-template-form.js +1 -1
  94. package/dist/cdn/foxy-template-set-card.js +1 -1
  95. package/dist/cdn/foxy-template-set-form.js +1 -1
  96. package/dist/cdn/foxy-transaction-card.js +1 -1
  97. package/dist/cdn/foxy-transaction.js +1 -1
  98. package/dist/cdn/foxy-transactions-table.js +1 -1
  99. package/dist/cdn/foxy-user-card.js +1 -1
  100. package/dist/cdn/foxy-user-form.js +1 -1
  101. package/dist/cdn/foxy-users-table.js +1 -1
  102. package/dist/cdn/foxy-webhook-card.js +1 -1
  103. package/dist/cdn/foxy-webhook-form.js +1 -1
  104. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  105. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  106. package/dist/cdn/{shared-95f9f57d.js → shared-09d4fbb8.js} +1 -1
  107. package/dist/cdn/{shared-2b1da608.js → shared-0a248c0d.js} +1 -1
  108. package/dist/cdn/{shared-1add7ad8.js → shared-17d0db7f.js} +1 -1
  109. package/dist/cdn/{shared-f4561476.js → shared-1b060170.js} +1 -1
  110. package/dist/cdn/shared-1d08a5ad.js +1 -0
  111. package/dist/cdn/{shared-8a671339.js → shared-1d28220a.js} +1 -1
  112. package/dist/cdn/{shared-daf52401.js → shared-1eac92fa.js} +1 -1
  113. package/dist/cdn/{shared-4f999ef4.js → shared-25f64060.js} +1 -1
  114. package/dist/cdn/{shared-98755831.js → shared-307262a1.js} +1 -1
  115. package/dist/cdn/{shared-88455d27.js → shared-31651a9c.js} +1 -1
  116. package/dist/cdn/{shared-a89cb472.js → shared-332f2997.js} +1 -1
  117. package/dist/cdn/{shared-5e5784f4.js → shared-36725fe3.js} +1 -1
  118. package/dist/cdn/{shared-427496b1.js → shared-379b37e6.js} +1 -1
  119. package/dist/cdn/{shared-b5517c1b.js → shared-39f3b48d.js} +1 -1
  120. package/dist/cdn/{shared-1e866f0d.js → shared-432c5183.js} +1 -1
  121. package/dist/cdn/{shared-6f373aa7.js → shared-4674063d.js} +1 -1
  122. package/dist/cdn/{shared-4c7106a1.js → shared-479ad951.js} +1 -1
  123. package/dist/cdn/{shared-f7fc8f00.js → shared-4904bca4.js} +1 -1
  124. package/dist/cdn/{shared-a8cf402a.js → shared-4b67d699.js} +1 -1
  125. package/dist/cdn/{shared-919a9e3e.js → shared-4bbd600d.js} +1 -1
  126. package/dist/cdn/{shared-4b9546a9.js → shared-4c956a8e.js} +1 -1
  127. package/dist/cdn/{shared-ffb7548e.js → shared-4dc58b73.js} +1 -1
  128. package/dist/cdn/{shared-7a5338f3.js → shared-4dee79d4.js} +1 -1
  129. package/dist/cdn/{shared-f7469049.js → shared-51d28e6d.js} +1 -1
  130. package/dist/cdn/shared-53061389.js +1 -0
  131. package/dist/cdn/{shared-47915d1c.js → shared-59042137.js} +1 -1
  132. package/dist/cdn/{shared-7996b565.js → shared-64f98a0f.js} +1 -1
  133. package/dist/cdn/{shared-15517503.js → shared-65318cc1.js} +1 -1
  134. package/dist/cdn/shared-65ba8b39.js +1 -0
  135. package/dist/cdn/{shared-4b870dd4.js → shared-665d6cc4.js} +1 -1
  136. package/dist/cdn/{shared-5816e5e2.js → shared-69a21b9d.js} +1 -1
  137. package/dist/cdn/{shared-14ca3629.js → shared-6abdfcf2.js} +1 -1
  138. package/dist/cdn/{shared-d09de321.js → shared-6dc64a17.js} +1 -1
  139. package/dist/cdn/shared-6f84ac3e.js +1 -0
  140. package/dist/cdn/{shared-5db24486.js → shared-77a4d8e8.js} +1 -1
  141. package/dist/cdn/{shared-58c3cfdd.js → shared-7995407d.js} +1 -1
  142. package/dist/cdn/shared-7f5618ba.js +1 -0
  143. package/dist/cdn/{shared-52d27d8c.js → shared-8474bc4a.js} +1 -1
  144. package/dist/cdn/{shared-8e83d3b5.js → shared-88e36564.js} +1 -1
  145. package/dist/cdn/{shared-ca5e1c6b.js → shared-92f27a38.js} +1 -1
  146. package/dist/cdn/{shared-964cc4a1.js → shared-984fcdf5.js} +3 -3
  147. package/dist/cdn/{shared-b7d2ce09.js → shared-9c626d58.js} +1 -1
  148. package/dist/cdn/{shared-1fe6fb5d.js → shared-9caffb4d.js} +1 -1
  149. package/dist/cdn/{shared-4fd4a4d5.js → shared-a3c73e91.js} +1 -1
  150. package/dist/cdn/{shared-049782e9.js → shared-a92ae606.js} +1 -1
  151. package/dist/cdn/{shared-fae8bf5d.js → shared-b0f534ef.js} +1 -1
  152. package/dist/cdn/{shared-2084b156.js → shared-b3ac59eb.js} +1 -1
  153. package/dist/cdn/{shared-8ed26326.js → shared-b48a83b0.js} +1 -1
  154. package/dist/cdn/{shared-4e03da46.js → shared-ba658670.js} +1 -1
  155. package/dist/cdn/{shared-67fe293e.js → shared-bafcab47.js} +1 -1
  156. package/dist/cdn/{shared-0b5d50ce.js → shared-bdb51db9.js} +1 -1
  157. package/dist/cdn/{shared-a6a5bf97.js → shared-be24dd36.js} +1 -1
  158. package/dist/cdn/shared-bf62a65b.js +1 -0
  159. package/dist/cdn/{shared-eb900735.js → shared-c2d3b32b.js} +1 -1
  160. package/dist/cdn/{shared-689612d6.js → shared-c4240bc6.js} +1 -1
  161. package/dist/cdn/{shared-63bee480.js → shared-c6c6ba69.js} +1 -1
  162. package/dist/cdn/{shared-de790de9.js → shared-c7f2f1ab.js} +1 -1
  163. package/dist/cdn/{shared-ae0df6b9.js → shared-c97e0d6e.js} +1 -1
  164. package/dist/cdn/{shared-bd819b5b.js → shared-cf269a17.js} +1 -1
  165. package/dist/cdn/{shared-5cd8b9a2.js → shared-d14c2060.js} +4 -4
  166. package/dist/cdn/{shared-538d1b55.js → shared-db21f6db.js} +1 -1
  167. package/dist/cdn/{shared-eac3b80a.js → shared-dccf0420.js} +1 -1
  168. package/dist/cdn/{shared-99440d56.js → shared-dfe2602a.js} +1 -1
  169. package/dist/cdn/{shared-d8052238.js → shared-e10052d0.js} +1 -1
  170. package/dist/cdn/{shared-e62effb6.js → shared-e6828dbf.js} +1 -1
  171. package/dist/cdn/{shared-3b92a24f.js → shared-e6997950.js} +1 -1
  172. package/dist/cdn/{shared-58197bb8.js → shared-e7c3b7b6.js} +1 -1
  173. package/dist/cdn/{shared-432ae505.js → shared-e84fa0ea.js} +1 -1
  174. package/dist/cdn/{shared-7f9147ce.js → shared-e8e92fe3.js} +1 -1
  175. package/dist/cdn/shared-fe54babe.js +1 -0
  176. package/dist/cdn/{shared-cf05ab20.js → shared-fef9ecc1.js} +1 -1
  177. package/dist/cdn/{shared-7a386999.js → shared-ff992ead.js} +1 -1
  178. package/dist/cdn/translations/filter-attribute-card/en.json +8 -0
  179. package/dist/cdn/translations/filter-attribute-form/en.json +49 -0
  180. package/dist/cdn/translations/transaction-card/en.json +8 -0
  181. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.d.ts +31 -0
  182. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js +113 -0
  183. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js.map +1 -0
  184. package/dist/elements/public/FilterAttributeCard/index.d.ts +4 -0
  185. package/dist/elements/public/FilterAttributeCard/index.js +6 -0
  186. package/dist/elements/public/FilterAttributeCard/index.js.map +1 -0
  187. package/dist/elements/public/FilterAttributeCard/types.d.ts +3 -0
  188. package/dist/elements/public/FilterAttributeCard/types.js +2 -0
  189. package/dist/elements/public/FilterAttributeCard/types.js.map +1 -0
  190. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.d.ts +46 -0
  191. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +131 -0
  192. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -0
  193. package/dist/elements/public/FilterAttributeForm/index.d.ts +6 -0
  194. package/dist/elements/public/FilterAttributeForm/index.js +8 -0
  195. package/dist/elements/public/FilterAttributeForm/index.js.map +1 -0
  196. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.d.ts +5 -0
  197. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.js +34 -0
  198. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/InternalFilterAttributeFormActionControl.js.map +1 -0
  199. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.d.ts +5 -0
  200. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.js +7 -0
  201. package/dist/elements/public/FilterAttributeForm/internal/InternalFilterAttributeFormActionControl/index.js.map +1 -0
  202. package/dist/elements/public/FilterAttributeForm/types.d.ts +14 -0
  203. package/dist/elements/public/FilterAttributeForm/types.js +2 -0
  204. package/dist/elements/public/FilterAttributeForm/types.js.map +1 -0
  205. package/dist/elements/public/TransactionCard/TransactionCard.js +26 -4
  206. package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
  207. package/dist/elements/public/TransactionCard/types.d.ts +4 -1
  208. package/dist/elements/public/TransactionCard/types.js.map +1 -1
  209. package/dist/elements/public/index.d.ts +2 -0
  210. package/dist/elements/public/index.defined.d.ts +2 -0
  211. package/dist/elements/public/index.defined.js +2 -0
  212. package/dist/elements/public/index.defined.js.map +1 -1
  213. package/dist/elements/public/index.js +2 -0
  214. package/dist/elements/public/index.js.map +1 -1
  215. package/package.json +3 -2
  216. package/dist/cdn/shared-12931460.js +0 -1
  217. package/dist/cdn/shared-509a2f52.js +0 -1
  218. package/dist/cdn/shared-bfdbd733.js +0 -1
  219. package/dist/cdn/shared-c7f56c90.js +0 -1
  220. package/dist/cdn/shared-e41e53c0.js +0 -1
  221. package/dist/cdn/shared-ff45081a.js +0 -1
@@ -1 +1 @@
1
- import{_ as e}from"./shared-98755831.js";const r=r=>class extends r{constructor(){super(...arguments),this.infer=null}static get inferredProperties(){return[]}static get properties(){return e(e({},super.properties),{},{infer:{type:String,reflect:!0}})}inferFromElement(e,r){if(e in r)return r[e]}inferProperties(){this.updateComplete.then((()=>{var e;const r=new Map,t=this.constructor,n=new Set(t.inferredProperties),s=e=>{e&&(e instanceof ShadowRoot?s(e.host):e instanceof HTMLElement&&(n.forEach((t=>{const s=this.inferFromElement(t,e);void 0!==s&&(r.set(t,s),n.delete(t))})),n.size>0&&s(e.parentNode)))};s(this.parentNode),null===(e=this.applyInferredProperties)||void 0===e||e.call(this,r)}))}inferPropertiesInDescendants(){(this.renderRoot===this?[this.renderRoot]:[this.renderRoot,this]).forEach((e=>e.querySelectorAll("[infer]").forEach((e=>e.inferProperties()))))}applyInferredProperties(e){}connectedCallback(){super.connectedCallback(),this.inferPropertiesInDescendants()}updated(e){super.updated(e),this.inferPropertiesInDescendants()}};export{r as I};
1
+ import{_ as e}from"./shared-307262a1.js";const r=r=>class extends r{constructor(){super(...arguments),this.infer=null}static get inferredProperties(){return[]}static get properties(){return e(e({},super.properties),{},{infer:{type:String,reflect:!0}})}inferFromElement(e,r){if(e in r)return r[e]}inferProperties(){this.updateComplete.then((()=>{var e;const r=new Map,t=this.constructor,n=new Set(t.inferredProperties),s=e=>{e&&(e instanceof ShadowRoot?s(e.host):e instanceof HTMLElement&&(n.forEach((t=>{const s=this.inferFromElement(t,e);void 0!==s&&(r.set(t,s),n.delete(t))})),n.size>0&&s(e.parentNode)))};s(this.parentNode),null===(e=this.applyInferredProperties)||void 0===e||e.call(this,r)}))}inferPropertiesInDescendants(){(this.renderRoot===this?[this.renderRoot]:[this.renderRoot,this]).forEach((e=>e.querySelectorAll("[infer]").forEach((e=>e.inferProperties()))))}applyInferredProperties(e){}connectedCallback(){super.connectedCallback(),this.inferPropertiesInDescendants()}updated(e){super.updated(e),this.inferPropertiesInDescendants()}};export{r as I};
@@ -1,4 +1,4 @@
1
- import"./shared-6f373aa7.js";import{h as c}from"./shared-47915d1c.js";
1
+ import"./shared-4674063d.js";import{h as c}from"./shared-59042137.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
@@ -1 +1 @@
1
- import{_ as e}from"./shared-98755831.js";import"./shared-6f373aa7.js";import"./shared-1add7ad8.js";import"./shared-4c7106a1.js";import{L as s,c as t,h as r}from"./shared-7f33a83a.js";import{T as a}from"./shared-95f9f57d.js";import{c as i}from"./shared-4e709717.js";class o extends CustomEvent{constructor(e){super("change",{detail:e})}}let c,l,d=e=>e;class h extends(a(s)){constructor(){super(...arguments),this.readonly=!1,this.disabled=!1,this.checked=!1}static get properties(){return e(e({},super.properties),{},{readonly:{type:Boolean},disabled:{type:Boolean},checked:{type:Boolean}})}static get styles(){return[super.styles,t(c||(c=d`:host{--check-size:1.125rem}label{margin:calc(((1rem * var(--lumo-line-height-s)) - var(--check-size))/ -2) 0}label>:first-child{height:calc(1rem * var(--lumo-line-height-s))}.ml-xxl{margin-left:calc(var(--lumo-space-m) + var(--check-size))}.check{height:var(--check-size);width:var(--check-size)}`))]}render(){return r(l||(l=d` <label class="${0}"> <div class="flex items-center"> <div class="${0}"> <iron-icon icon="lumo:checkmark" class="${0}"> </iron-icon> <input type="checkbox" class="sr-only" .checked="${0}" ?disabled="${0}" data-testid="input" @change="${0}"> </div> </div> <div class="flex-1 font-lumo leading-s ml-m"> <slot></slot> </div> </label> <div class="${0}"> <slot name="content"></slot> </div> `),i({"flex items-start group transition-colors":!0,"cursor-default":this.disabled||this.readonly,"text-disabled":this.disabled,"text-secondary":this.readonly,"cursor-pointer":!this.disabled}),i({"flex-shrink-0 check transition-colors rounded-s border":!0,"focus-within-shadow-outline":!0,"bg-primary text-primary-contrast":!this.readonly&&this.checked,"border-dashed border-contrast-30":this.readonly,"border-transparent":!this.readonly,"opacity-50":this.disabled,"text-secondary bg-contrast-20":!this.readonly&&!this.checked,"group-hover-bg-contrast-30":!this.readonly&&!this.checked}),i({"block w-full h-full transition-transform transform":!0,"scale-100":this.checked,"scale-0":!this.checked}),this.checked,this.disabled,(e=>{if(this.readonly)return e.preventDefault();e.stopPropagation(),this.checked=!this.checked,this.dispatchEvent(new o(this.checked))}),i({"font-lumo ml-xxl transition-colors":!0,"text-disabled":this.disabled}))}}export{h as C,o as a};
1
+ import{_ as e}from"./shared-307262a1.js";import"./shared-4674063d.js";import"./shared-17d0db7f.js";import"./shared-479ad951.js";import{L as s,c as t,h as r}from"./shared-7f33a83a.js";import{T as a}from"./shared-09d4fbb8.js";import{c as i}from"./shared-4e709717.js";class o extends CustomEvent{constructor(e){super("change",{detail:e})}}let c,d,l=e=>e;class h extends(a(s)){constructor(){super(...arguments),this.readonly=!1,this.disabled=!1,this.checked=!1}static get properties(){return e(e({},super.properties),{},{readonly:{type:Boolean},disabled:{type:Boolean},checked:{type:Boolean}})}static get styles(){return[super.styles,t(c||(c=l`:host{--check-size:1.125rem}label{margin:calc(((1rem * var(--lumo-line-height-s)) - var(--check-size))/ -2) 0}label>:first-child{height:calc(1rem * var(--lumo-line-height-s))}.ml-xxl{margin-left:calc(var(--lumo-space-m) + var(--check-size))}.check{height:var(--check-size);width:var(--check-size)}`))]}render(){return r(d||(d=l` <label class="${0}"> <div class="flex items-center"> <div class="${0}"> <iron-icon icon="lumo:checkmark" class="${0}"> </iron-icon> <input type="checkbox" class="sr-only" .checked="${0}" ?disabled="${0}" data-testid="input" @change="${0}"> </div> </div> <div class="flex-1 font-lumo leading-s ml-m"> <slot></slot> </div> </label> <div class="${0}"> <slot name="content"></slot> </div> `),i({"flex items-start group transition-colors":!0,"cursor-default":this.disabled||this.readonly,"text-disabled":this.disabled,"text-secondary":this.readonly,"cursor-pointer":!this.disabled}),i({"flex-shrink-0 check transition-colors rounded-s border":!0,"focus-within-shadow-outline":!0,"bg-primary text-primary-contrast":!this.readonly&&this.checked,"border-dashed border-contrast-30":this.readonly,"border-transparent":!this.readonly,"opacity-50":this.disabled,"text-secondary bg-contrast-20":!this.readonly&&!this.checked,"group-hover-bg-contrast-30":!this.readonly&&!this.checked}),i({"block w-full h-full transition-transform transform":!0,"scale-100":this.checked,"scale-0":!this.checked}),this.checked,this.disabled,(e=>{if(this.readonly)return e.preventDefault();e.stopPropagation(),this.checked=!this.checked,this.dispatchEvent(new o(this.checked))}),i({"font-lumo ml-xxl transition-colors":!0,"text-disabled":this.disabled}))}}export{h as C,o as a};
@@ -1 +1 @@
1
- import"./shared-cf05ab20.js";import"./shared-e62effb6.js";import"./shared-1e866f0d.js";import"./shared-7996b565.js";import"./shared-8e83d3b5.js";import{I as e}from"./shared-99440d56.js";import{_ as a}from"./shared-98755831.js";import{c as t,h as i}from"./shared-7f33a83a.js";let s,l,r=e=>e;customElements.define("foxy-internal-frequency-control",class extends e{constructor(){super(...arguments),this.options=[{value:"d",label:"day"},{value:"w",label:"week"},{value:"m",label:"month"},{value:"y",label:"year"}],this.__i18n={formatValue:e=>e.join(""),parseValue:e=>{var a;const t=e.startsWith(".")?`0${e}`:e,i=parseFloat(e.substring(0,Math.max(t.length-1,0))),s=null!==(a=t[t.length-1])&&void 0!==a?a:"";return isNaN(i)?["0",""]:[i.toString(),s]}}}static get properties(){return a(a({},super.properties),{},{options:{attribute:!1}})}static get styles(){return[super.styles,t(s||(s=r`:host{display:block}vaadin-custom-field{width:100%;font-size:0;line-height:0;padding-top:0!important}vaadin-custom-field::part(label){padding-bottom:var(--lumo-space-s)}vaadin-custom-field::part(error-message)[aria-hidden=false]{padding-top:var(--lumo-space-xs)}vaadin-combo-box,vaadin-integer-field{width:calc(50% - (var(--lumo-space-s)/ 2))}vaadin-integer-field{margin-right:var(--lumo-space-s);padding:0}vaadin-combo-box::part(text-field){padding:0}`))]}renderControl(){var e,a;const t=null!==(e=this._value)&&void 0!==e?e:"",s=parseFloat(this.__i18n.parseValue(t)[0]),d=this.options.map((({value:e,label:a})=>({label:this.t(a,{count:s}),value:e})));return i(l||(l=r` <vaadin-custom-field ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .errorMessage="${0}" .helperText="${0}" .label="${0}" .value="${0}" .i18n="${0}" @change="${0}"> <vaadin-integer-field max="999" min="1" prevent-invalid-input has-controls ?disabled="${0}" ?readonly="${0}" ?invalid="${0}" @keydown="${0}"> </vaadin-integer-field> <vaadin-combo-box item-value-path="value" item-label-path="label" ?disabled="${0}" ?readonly="${0}" ?invalid="${0}" .items="${0}" @keydown="${0}"> </vaadin-combo-box> </vaadin-custom-field> `),this.disabled,this.readonly,this._checkValidity,null!==(a=this._errorMessage)&&void 0!==a?a:"",this.helperText,this.label,t,this.__i18n,(e=>{const a=e.currentTarget;this._value=a.value}),this.disabled,this.readonly,!this._checkValidity(),(e=>{var a;return"Enter"===e.key&&(null===(a=this.nucleon)||void 0===a?void 0:a.submit())}),this.disabled,this.readonly,!this._checkValidity(),d,(e=>{var a;return"Enter"===e.key&&(null===(a=this.nucleon)||void 0===a?void 0:a.submit())}))}updated(e){var a;super.updated(e);const t=this.renderRoot.querySelector("vaadin-custom-field");t&&t.value!==this._value&&(t.value=null!==(a=this._value)&&void 0!==a?a:"")}});
1
+ import"./shared-fef9ecc1.js";import"./shared-e6828dbf.js";import"./shared-432c5183.js";import"./shared-64f98a0f.js";import"./shared-88e36564.js";import{I as e}from"./shared-dfe2602a.js";import{_ as a}from"./shared-307262a1.js";import{c as t,h as i}from"./shared-7f33a83a.js";let s,l,r=e=>e;customElements.define("foxy-internal-frequency-control",class extends e{constructor(){super(...arguments),this.options=[{value:"d",label:"day"},{value:"w",label:"week"},{value:"m",label:"month"},{value:"y",label:"year"}],this.__i18n={formatValue:e=>e.join(""),parseValue:e=>{var a;const t=e.startsWith(".")?`0${e}`:e,i=parseFloat(e.substring(0,Math.max(t.length-1,0))),s=null!==(a=t[t.length-1])&&void 0!==a?a:"";return isNaN(i)?["0",""]:[i.toString(),s]}}}static get properties(){return a(a({},super.properties),{},{options:{attribute:!1}})}static get styles(){return[super.styles,t(s||(s=r`:host{display:block}vaadin-custom-field{width:100%;font-size:0;line-height:0;padding-top:0!important}vaadin-custom-field::part(label){padding-bottom:var(--lumo-space-s)}vaadin-custom-field::part(error-message)[aria-hidden=false]{padding-top:var(--lumo-space-xs)}vaadin-combo-box,vaadin-integer-field{width:calc(50% - (var(--lumo-space-s)/ 2))}vaadin-integer-field{margin-right:var(--lumo-space-s);padding:0}vaadin-combo-box::part(text-field){padding:0}`))]}renderControl(){var e,a;const t=null!==(e=this._value)&&void 0!==e?e:"",s=parseFloat(this.__i18n.parseValue(t)[0]),d=this.options.map((({value:e,label:a})=>({label:this.t(a,{count:s}),value:e})));return i(l||(l=r` <vaadin-custom-field ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .errorMessage="${0}" .helperText="${0}" .label="${0}" .value="${0}" .i18n="${0}" @change="${0}"> <vaadin-integer-field max="999" min="1" prevent-invalid-input has-controls ?disabled="${0}" ?readonly="${0}" ?invalid="${0}" @keydown="${0}"> </vaadin-integer-field> <vaadin-combo-box item-value-path="value" item-label-path="label" ?disabled="${0}" ?readonly="${0}" ?invalid="${0}" .items="${0}" @keydown="${0}"> </vaadin-combo-box> </vaadin-custom-field> `),this.disabled,this.readonly,this._checkValidity,null!==(a=this._errorMessage)&&void 0!==a?a:"",this.helperText,this.label,t,this.__i18n,(e=>{const a=e.currentTarget;this._value=a.value}),this.disabled,this.readonly,!this._checkValidity(),(e=>{var a;return"Enter"===e.key&&(null===(a=this.nucleon)||void 0===a?void 0:a.submit())}),this.disabled,this.readonly,!this._checkValidity(),d,(e=>{var a;return"Enter"===e.key&&(null===(a=this.nucleon)||void 0===a?void 0:a.submit())}))}updated(e){var a;super.updated(e);const t=this.renderRoot.querySelector("vaadin-custom-field");t&&t.value!==this._value&&(t.value=null!==(a=this._value)&&void 0!==a?a:"")}});
@@ -1 +1 @@
1
- import"./shared-7f9147ce.js";import"./shared-e62effb6.js";import{I as e}from"./shared-99440d56.js";import{i as r}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";let a,l=e=>e;customElements.define("foxy-internal-password-control",class extends e{renderControl(){return s(a||(a=l` <vaadin-password-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-password-field> `),r(this._errorMessage),this.helperText,this.placeholder,this.label,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var r;return"Enter"===e.key&&(null===(r=this.nucleon)||void 0===r?void 0:r.submit())}),(e=>{const r=e.currentTarget;this._value=r.value}))}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}});
1
+ import"./shared-e8e92fe3.js";import"./shared-e6828dbf.js";import{I as e}from"./shared-dfe2602a.js";import{i as r}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";let a,l=e=>e;customElements.define("foxy-internal-password-control",class extends e{renderControl(){return s(a||(a=l` <vaadin-password-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-password-field> `),r(this._errorMessage),this.helperText,this.placeholder,this.label,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var r;return"Enter"===e.key&&(null===(r=this.nucleon)||void 0===r?void 0:r.submit())}),(e=>{const r=e.currentTarget;this._value=r.value}))}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}});
@@ -1 +1 @@
1
- import"./shared-cf05ab20.js";import"./shared-e62effb6.js";import"./shared-1e866f0d.js";import{I as e}from"./shared-99440d56.js";import{_ as i}from"./shared-98755831.js";import{i as r}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";let t,l,a,n=e=>e;customElements.define("foxy-internal-integer-control",class extends e{constructor(){super(...arguments),this.prefix=null,this.suffix=null,this.min=null,this.max=null}static get properties(){return i(i({},super.properties),{},{prefix:{},suffix:{},min:{type:Number},max:{type:Number}})}renderControl(){var e,i;return s(t||(t=n` <vaadin-integer-field error-message="${0}" placeholder="${0}" helper-text="${0}" label="${0}" class="w-full" min="${0}" max="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" clear-button-visible @keydown="${0}" @change="${0}"> ${0} ${0} </vaadin-integer-field> `),r(this._errorMessage),this.placeholder,this.helperText,this.label,r(null!==(e=this.min)&&void 0!==e?e:void 0),r(null!==(i=this.max)&&void 0!==i?i:void 0),this.disabled,this.readonly,this._checkValidity,String(this._value),(e=>{var i;return"Enter"===e.key&&(null===(i=this.nucleon)||void 0===i?void 0:i.submit())}),(e=>{const i=e.currentTarget;this._value=parseInt(i.value)}),this.prefix?s(l||(l=n`<div slot="prefix">${0}</div>`),this.prefix):"",this.suffix?s(a||(a=n`<div class="pr-s font-medium" slot="suffix">${0}</div>`),this.suffix):"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:0}set _value(e){super._value=e}});
1
+ import"./shared-fef9ecc1.js";import"./shared-e6828dbf.js";import"./shared-432c5183.js";import{I as e}from"./shared-dfe2602a.js";import{_ as i}from"./shared-307262a1.js";import{i as r}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";let t,l,a,n=e=>e;customElements.define("foxy-internal-integer-control",class extends e{constructor(){super(...arguments),this.prefix=null,this.suffix=null,this.min=null,this.max=null}static get properties(){return i(i({},super.properties),{},{prefix:{},suffix:{},min:{type:Number},max:{type:Number}})}renderControl(){var e,i;return s(t||(t=n` <vaadin-integer-field error-message="${0}" placeholder="${0}" helper-text="${0}" label="${0}" class="w-full" min="${0}" max="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" clear-button-visible @keydown="${0}" @change="${0}"> ${0} ${0} </vaadin-integer-field> `),r(this._errorMessage),this.placeholder,this.helperText,this.label,r(null!==(e=this.min)&&void 0!==e?e:void 0),r(null!==(i=this.max)&&void 0!==i?i:void 0),this.disabled,this.readonly,this._checkValidity,String(this._value),(e=>{var i;return"Enter"===e.key&&(null===(i=this.nucleon)||void 0===i?void 0:i.submit())}),(e=>{const i=e.currentTarget;this._value=parseInt(i.value)}),this.prefix?s(l||(l=n`<div slot="prefix">${0}</div>`),this.prefix):"",this.suffix?s(a||(a=n`<div class="pr-s font-medium" slot="suffix">${0}</div>`),this.suffix):"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:0}set _value(e){super._value=e}});
@@ -0,0 +1 @@
1
+ import{e as t,ar as e,an as r,as as n,at as o,au as a,r as c,av as u,aw as s,ax as i,ay as f,az as b,aA as j,aB as y,aC as v,aD as p,aE as l,aF as d,aG as A,aH as w,aI as g}from"./shared-307262a1.js";import{b as h,a as m}from"./shared-fe54babe.js";var O=Object.create,x=function(){function e(){}return function(r){if(!t(r))return{};if(O)return O(r);e.prototype=r;var n=new e;return e.prototype=void 0,n}}();function I(t,e,r,n){var o=!r;r||(r={});for(var a=-1,c=e.length;++a<c;){var u=e[a],s=n?n(r[u],t[u],u,r,t):void 0;void 0===s&&(s=t[u]),o?h(r,u,s):m(r,u,s)}return r}var S=Object.prototype.hasOwnProperty;function U(r){if(!t(r))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(r);var n=e(r),o=[];for(var a in r)("constructor"!=a||!n&&S.call(r,a))&&o.push(a);return o}function F(t){return r(t)?n(t,!0):U(t)}var B=o(Object.getPrototypeOf,Object);var E="object"==typeof exports&&exports&&!exports.nodeType&&exports,D=E&&"object"==typeof module&&module&&!module.nodeType&&module,M=D&&D.exports===E?c.Buffer:void 0,P=M?M.allocUnsafe:void 0;var C=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,u(t)),t=B(t);return e}:s;function G(t){return f(t,F,C)}var L=Object.prototype.hasOwnProperty;function N(t){var e=new t.constructor(t.byteLength);return new b(e).set(new b(t)),e}var R=/\w*$/;var T=j?j.prototype:void 0,V=T?T.valueOf:void 0;function k(t,e,r){var n,o,a,c=t.constructor;switch(e){case"[object ArrayBuffer]":return N(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return function(t,e){var r=e?N(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?N(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,R.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,V?Object(V.call(n)):{}}}var z=p&&p.isMap,H=z?l(z):function(t){return y(t)&&"[object Map]"==v(t)};var W=p&&p.isSet,$=W?l(W):function(t){return y(t)&&"[object Set]"==v(t)},q={};function J(r,n,o,c,s,i){var f,b=1&n,j=2&n,y=4&n;if(o&&(f=s?o(r,c,s,i):o(r)),void 0!==f)return f;if(!t(r))return r;var p=d(r);if(p){if(f=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&L.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(r),!b)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(r,f)}else{var l=v(r),h="[object Function]"==l||"[object GeneratorFunction]"==l;if(A(r))return function(t,e){if(e)return t.slice();var r=t.length,n=P?P(r):new t.constructor(r);return t.copy(n),n}(r,b);if("[object Object]"==l||"[object Arguments]"==l||h&&!s){if(f=j||h?{}:function(t){return"function"!=typeof t.constructor||e(t)?{}:x(B(t))}(r),!b)return j?function(t,e){return I(t,C(t),e)}(r,function(t,e){return t&&I(e,F(e),t)}(f,r)):function(t,e){return I(t,u(t),e)}(r,function(t,e){return t&&I(e,a(e),t)}(f,r))}else{if(!q[l])return s?r:{};f=k(r,l,b)}}i||(i=new w);var O=i.get(r);if(O)return O;i.set(r,f),$(r)?r.forEach((function(t){f.add(J(t,n,o,t,r,i))})):H(r)&&r.forEach((function(t,e){f.set(e,J(t,n,o,e,r,i))}));var S=p?void 0:(y?j?G:g:j?F:a)(r);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(S||r,(function(t,e){S&&(t=r[e=t]),m(f,e,J(t,n,o,e,r,i))})),f}q["[object Arguments]"]=q["[object Array]"]=q["[object ArrayBuffer]"]=q["[object DataView]"]=q["[object Boolean]"]=q["[object Date]"]=q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Map]"]=q["[object Number]"]=q["[object Object]"]=q["[object RegExp]"]=q["[object Set]"]=q["[object String]"]=q["[object Symbol]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q["[object Error]"]=q["[object Function]"]=q["[object WeakMap]"]=!1;function K(t){return J(t,5)}export{K as c};
@@ -1,4 +1,4 @@
1
- import{D as t,r as e,e as n,g as r,f as i,h as s,o,b as a,p as l,j as c,k as d,m as h,c as u,n as p,q as _,s as f,t as m,v as y}from"./shared-95f9f57d.js";
1
+ import{D as t,r as e,e as n,g as r,f as i,h as s,o,b as a,p as l,j as c,k as d,m as h,c as u,n as p,q as _,s as f,t as m,v as y}from"./shared-09d4fbb8.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1,4 +1,4 @@
1
- import{E as e,T as t}from"./shared-1add7ad8.js";import"./shared-e62effb6.js";import{h as s,P as r}from"./shared-47915d1c.js";import{F as l}from"./shared-6f373aa7.js";const i=s`<dom-module id="lumo-custom-field" theme-for="vaadin-custom-field">
1
+ import{E as e,T as t}from"./shared-17d0db7f.js";import"./shared-e6828dbf.js";import{h as s,P as r}from"./shared-59042137.js";import{F as l}from"./shared-4674063d.js";const i=s`<dom-module id="lumo-custom-field" theme-for="vaadin-custom-field">
2
2
  <template>
3
3
  <style include="lumo-required-field">
4
4
  :host {
@@ -1 +1 @@
1
- import"./shared-8e83d3b5.js";import{I as e}from"./shared-99440d56.js";import{_ as t}from"./shared-98755831.js";import{i as a}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";import{A as i}from"./shared-509a2f52.js";let r,l=e=>e;customElements.define("foxy-internal-async-combo-box-control",class extends e{constructor(){var e;super(...arguments),e=this,this.allowCustomValue=!1,this.itemLabelPath=null,this.itemValuePath=null,this.selectedItem=void 0,this.first=null,this.__dataProvider=async function(t,a){if(!e.first)return a([],0);const s=new URL(e.first);s.searchParams.set("offset",String(t.page*t.pageSize)),s.searchParams.set("limit",String(t.pageSize)),t.filter&&e.itemLabelPath&&s.searchParams.set(e.itemLabelPath,`*${t.filter}*`);const r=await new i(e).fetch(s.toString());if(!r.ok)throw new Error(await r.text());const l=await r.json();a(Array.from(Object.values(l._embedded))[0],l.total_items)}}static get properties(){return t(t({},super.properties),{},{allowCustomValue:{type:Boolean,attribute:"allow-custom-value"},itemLabelPath:{type:String,attribute:"item-label-path"},itemValuePath:{type:String,attribute:"item-value-path"},selectedItem:{attribute:!1},first:{type:String}})}renderControl(){var e,t;return s(r||(r=l` <vaadin-combo-box item-value-path="${0}" item-label-path="${0}" error-message="${0}" item-id-path="_links.self.href" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?allow-custom-value="${0}" ?disabled="${0}" ?readonly="${0}" clear-button-visible .checkValidity="${0}" .dataProvider="${0}" .selectedItem="${0}" .value="${0}" @change="${0}"> </vaadin-combo-box> `),a(null!==(e=this.itemValuePath)&&void 0!==e?e:void 0),a(null!==(t=this.itemLabelPath)&&void 0!==t?t:void 0),a(this._errorMessage),this.helperText,this.placeholder,this.label,this.allowCustomValue,this.disabled,this.readonly,this._checkValidity,this.__dataProvider,this.selectedItem,this._value,(e=>{e.stopPropagation();const t=e.currentTarget;this._value=t.value,this._value===t.value?(this.selectedItem=t.selectedItem,this.dispatchEvent(new CustomEvent("selected-item-changed"))):t.value=this._value}))}updated(e){if(super.updated(e),e.has("first")||e.has("itemLabelPath")){const e=this.renderRoot.querySelector("vaadin-combo-box");e&&(e.size=0,e.size=1)}}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}});
1
+ import"./shared-88e36564.js";import{I as e}from"./shared-dfe2602a.js";import{_ as t}from"./shared-307262a1.js";import{i as a}from"./shared-d3bf9ac0.js";import{h as s}from"./shared-7f33a83a.js";import{A as i}from"./shared-1d08a5ad.js";let r,l=e=>e;customElements.define("foxy-internal-async-combo-box-control",class extends e{constructor(){var e;super(...arguments),e=this,this.allowCustomValue=!1,this.itemLabelPath=null,this.itemValuePath=null,this.selectedItem=void 0,this.first=null,this.__dataProvider=async function(t,a){if(!e.first)return a([],0);const s=new URL(e.first);s.searchParams.set("offset",String(t.page*t.pageSize)),s.searchParams.set("limit",String(t.pageSize)),t.filter&&e.itemLabelPath&&s.searchParams.set(e.itemLabelPath,`*${t.filter}*`);const r=await new i(e).fetch(s.toString());if(!r.ok)throw new Error(await r.text());const l=await r.json();a(Array.from(Object.values(l._embedded))[0],l.total_items)}}static get properties(){return t(t({},super.properties),{},{allowCustomValue:{type:Boolean,attribute:"allow-custom-value"},itemLabelPath:{type:String,attribute:"item-label-path"},itemValuePath:{type:String,attribute:"item-value-path"},selectedItem:{attribute:!1},first:{type:String}})}renderControl(){var e,t;return s(r||(r=l` <vaadin-combo-box item-value-path="${0}" item-label-path="${0}" error-message="${0}" item-id-path="_links.self.href" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?allow-custom-value="${0}" ?disabled="${0}" ?readonly="${0}" clear-button-visible .checkValidity="${0}" .dataProvider="${0}" .selectedItem="${0}" .value="${0}" @change="${0}"> </vaadin-combo-box> `),a(null!==(e=this.itemValuePath)&&void 0!==e?e:void 0),a(null!==(t=this.itemLabelPath)&&void 0!==t?t:void 0),a(this._errorMessage),this.helperText,this.placeholder,this.label,this.allowCustomValue,this.disabled,this.readonly,this._checkValidity,this.__dataProvider,this.selectedItem,this._value,(e=>{e.stopPropagation();const t=e.currentTarget;this._value=t.value,this._value===t.value?(this.selectedItem=t.selectedItem,this.dispatchEvent(new CustomEvent("selected-item-changed"))):t.value=this._value}))}updated(e){if(super.updated(e),e.has("first")||e.has("itemLabelPath")){const e=this.renderRoot.querySelector("vaadin-combo-box");e&&(e.size=0,e.size=1)}}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}});
@@ -0,0 +1 @@
1
+ import{a as r}from"./shared-fe54babe.js";import{e as a,ag as o,ah as t,ai as e}from"./shared-307262a1.js";function n(n,s,i){return null==n?n:function(n,s,i,f){if(!a(n))return n;for(var u=-1,p=(s=o(s,n)).length,l=p-1,v=n;null!=v&&++u<p;){var c=t(s[u]),d=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(u!=l){var h=v[c];void 0===(d=f?f(h,c,v):void 0)&&(d=a(h)?h:e(s[u+1])?[]:{})}r(v,c,d),v=v[c]}return n}(n,s,i)}export{n as s};
@@ -1 +1 @@
1
- import{L as s,h as r}from"./shared-7f33a83a.js";import{w as e}from"./shared-95f9f57d.js";let t,o=s=>s;class n extends s{static get styles(){return e.styles}render(){return r(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> `))}}function a(s){const[r,e,t]=s.split("-").map((s=>parseInt(s,10)));return[r,e,t].some((s=>"number"!=typeof s||isNaN(s)))?null:new Date(r,e-1,t)}export{n as W,a as p};
1
+ import{L as s,h as r}from"./shared-7f33a83a.js";import{w as e}from"./shared-09d4fbb8.js";let t,o=s=>s;class n extends s{static get styles(){return e.styles}render(){return r(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> `))}}function a(s){const[r,e,t]=s.split("-").map((s=>parseInt(s,10)));return[r,e,t].some((s=>"number"!=typeof s||isNaN(s)))?null:new Date(r,e-1,t)}export{n as W,a as p};
@@ -1 +1 @@
1
- import{L as t,c as e,h as s}from"./shared-7f33a83a.js";import{w as a}from"./shared-95f9f57d.js";let d,i,r,l=t=>t;class o extends t{constructor(){super(...arguments),this.items=[],this.disabled=!1}static get properties(){return{disabled:{type:Boolean,reflect:!0},items:{attribute:!1}}}static get styles(){return[a.styles,e(d||(d=l`.max-w-0{max-width:0}`))]}render(){const t=this.disabled?"text-disabled":"text-body",e=this.disabled?"text-disabled":"text-secondary",a="max-w-0 truncate py-s";return s(i||(i=l` <table class="font-lumo text-m leading-m w-full"> <tbody class="divide-y divide-contrast-10"> ${0} </tbody> </table> `),this.items.map((({name:d,value:i})=>s(r||(r=l` <tr> <td class="${0} ${0} w-1-3 pr-m" title="${0}">${0}</td> <td class="${0} ${0} w-2-3" title="${0}">${0}</td> </tr> `),a,e,d,d,a,t,i,i))))}}export{o as P};
1
+ import{L as t,c as e,h as s}from"./shared-7f33a83a.js";import{w as a}from"./shared-09d4fbb8.js";let d,i,r,l=t=>t;class o extends t{constructor(){super(...arguments),this.items=[],this.disabled=!1}static get properties(){return{disabled:{type:Boolean,reflect:!0},items:{attribute:!1}}}static get styles(){return[a.styles,e(d||(d=l`.max-w-0{max-width:0}`))]}render(){const t=this.disabled?"text-disabled":"text-body",e=this.disabled?"text-disabled":"text-secondary",a="max-w-0 truncate py-s";return s(i||(i=l` <table class="font-lumo text-m leading-m w-full"> <tbody class="divide-y divide-contrast-10"> ${0} </tbody> </table> `),this.items.map((({name:d,value:i})=>s(r||(r=l` <tr> <td class="${0} ${0} w-1-3 pr-m" title="${0}">${0}</td> <td class="${0} ${0} w-2-3" title="${0}">${0}</td> </tr> `),a,e,d,d,a,t,i,i))))}}export{o as P};