@foxy.io/elements 1.15.0-beta.1 → 1.15.0-beta.10

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 (343) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +2 -2
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  5. package/dist/cdn/foxy-attribute-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-form.js +1 -1
  7. package/dist/cdn/foxy-cancellation-form.js +1 -1
  8. package/dist/cdn/foxy-collection-page.js +1 -1
  9. package/dist/cdn/foxy-collection-pages.js +1 -1
  10. package/dist/cdn/foxy-coupon-card.js +1 -0
  11. package/dist/cdn/foxy-coupon-code-form.js +1 -0
  12. package/dist/cdn/foxy-coupon-codes-form.js +1 -0
  13. package/dist/cdn/foxy-coupon-form.js +1 -0
  14. package/dist/cdn/foxy-custom-field-card.js +1 -1
  15. package/dist/cdn/foxy-custom-field-form.js +1 -1
  16. package/dist/cdn/foxy-customer-api.js +1 -1
  17. package/dist/cdn/foxy-customer-card.js +1 -1
  18. package/dist/cdn/foxy-customer-form.js +1 -1
  19. package/dist/cdn/foxy-customer-portal-settings.js +1 -972
  20. package/dist/cdn/foxy-customer-portal.js +13 -13
  21. package/dist/cdn/foxy-customer.js +2 -2
  22. package/dist/cdn/foxy-customers-table.js +1 -1
  23. package/dist/cdn/foxy-discount-card.js +1 -1
  24. package/dist/cdn/foxy-donation.js +1 -1
  25. package/dist/cdn/foxy-email-template-form.js +1 -1
  26. package/dist/cdn/foxy-error-entry-card.js +1 -1
  27. package/dist/cdn/foxy-form-dialog.js +1 -1
  28. package/dist/cdn/foxy-generate-codes-form.js +1 -0
  29. package/dist/cdn/foxy-gift-card-card.js +1 -0
  30. package/dist/cdn/foxy-gift-card-code-form.js +1 -0
  31. package/dist/cdn/foxy-gift-card-codes-form.js +1 -0
  32. package/dist/cdn/foxy-gift-card-form.js +1 -0
  33. package/dist/cdn/foxy-i18n.js +1 -1
  34. package/dist/cdn/foxy-items-form.js +1 -1
  35. package/dist/cdn/foxy-nucleon-element.js +1 -1
  36. package/dist/cdn/foxy-pagination.js +1 -0
  37. package/dist/cdn/foxy-payment-card.js +1 -1
  38. package/dist/cdn/foxy-payment-method-card.js +1 -1
  39. package/dist/cdn/foxy-query-builder.js +1 -69
  40. package/dist/cdn/foxy-sign-in-form.js +1 -1
  41. package/dist/cdn/foxy-spinner.js +2 -2
  42. package/dist/cdn/foxy-subscription-card.js +1 -1
  43. package/dist/cdn/foxy-subscription-form.js +4 -4
  44. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  45. package/dist/cdn/foxy-table.js +1 -1
  46. package/dist/cdn/foxy-tax-card.js +1 -1
  47. package/dist/cdn/foxy-tax-form.js +1 -1
  48. package/dist/cdn/foxy-template-config-form.js +1 -1
  49. package/dist/cdn/foxy-template-form.js +1 -1
  50. package/dist/cdn/foxy-transaction-card.js +1 -1
  51. package/dist/cdn/foxy-transactions-table.js +1 -1
  52. package/dist/cdn/foxy-user-form.js +1 -1
  53. package/dist/cdn/foxy-users-table.js +1 -1
  54. package/dist/cdn/shared-00d6a968.js +1 -0
  55. package/dist/cdn/shared-023a97c2.js +302 -0
  56. package/dist/cdn/{shared-91e768be.js → shared-027c537d.js} +1 -1
  57. package/dist/cdn/{shared-f0a83bd6.js → shared-073cb8e9.js} +1 -1
  58. package/dist/cdn/{shared-8a7bee0d.js → shared-09c5f9f1.js} +1 -1
  59. package/dist/cdn/{shared-94b0ae99.js → shared-0f38a631.js} +2 -2
  60. package/dist/cdn/{shared-200f613b.js → shared-1a67bc75.js} +2 -2
  61. package/dist/cdn/{shared-34b2c1e2.js → shared-21419f10.js} +1 -1
  62. package/dist/cdn/{shared-b5147166.js → shared-340f7584.js} +3 -3
  63. package/dist/cdn/{shared-44cfc617.js → shared-39e3ae67.js} +1 -1
  64. package/dist/cdn/shared-3f0a9c2c.js +1 -0
  65. package/dist/cdn/shared-3f965dce.js +1 -0
  66. package/dist/cdn/{shared-e7f8ffe9.js → shared-448781f9.js} +1 -1
  67. package/dist/cdn/{shared-1761daef.js → shared-5535f38f.js} +1 -1
  68. package/dist/cdn/{shared-0ced76a0.js → shared-5a54a9bc.js} +1 -1
  69. package/dist/cdn/shared-5e2fd1c7.js +1 -0
  70. package/dist/cdn/{shared-5c8b531d.js → shared-60d43523.js} +1 -1
  71. package/dist/cdn/shared-625c1272.js +69 -0
  72. package/dist/cdn/shared-65dfd512.js +131 -0
  73. package/dist/cdn/{shared-a46edf4b.js → shared-756034e4.js} +1 -1
  74. package/dist/cdn/{shared-00563cb0.js → shared-7f0a9790.js} +1 -1
  75. package/dist/cdn/shared-84d2d490.js +1 -0
  76. package/dist/cdn/{shared-df573cea.js → shared-8b20bc23.js} +0 -0
  77. package/dist/cdn/shared-8c8a910c.js +1 -0
  78. package/dist/cdn/{shared-5f54e916.js → shared-9cd49a3e.js} +4 -4
  79. package/dist/cdn/{shared-7a42073a.js → shared-9fc4a896.js} +1 -1
  80. package/dist/cdn/{shared-bb824ab4.js → shared-a040d79d.js} +2 -2
  81. package/dist/cdn/{shared-bc2bfe52.js → shared-ab71552b.js} +1 -1
  82. package/dist/cdn/shared-ae8cd227.js +1 -0
  83. package/dist/cdn/{shared-322e60b1.js → shared-ba39823e.js} +1 -1
  84. package/dist/cdn/shared-d58c947c.js +804 -0
  85. package/dist/cdn/{shared-593f7e2c.js → shared-df730f90.js} +1 -1
  86. package/dist/cdn/shared-e55088b4.js +1 -0
  87. package/dist/cdn/shared-ecfd3539.js +1 -0
  88. package/dist/cdn/shared-f2a69797.js +1 -0
  89. package/dist/cdn/{shared-16f72e27.js → shared-f4ad24f4.js} +1 -1
  90. package/dist/cdn/{shared-ec861f31.js → shared-fab8c705.js} +3 -3
  91. package/dist/cdn/translations/access-recovery-form/en.json +12 -0
  92. package/dist/cdn/translations/address-card/en.json +11 -0
  93. package/dist/cdn/translations/address-form/en.json +27 -0
  94. package/dist/cdn/translations/applied-tax-card/en.json +9 -0
  95. package/dist/cdn/translations/attribute-card/en.json +7 -0
  96. package/dist/cdn/translations/attribute-form/en.json +22 -0
  97. package/dist/cdn/translations/cancellation-form/en.json +10 -0
  98. package/dist/cdn/translations/country/pl.json +251 -0
  99. package/dist/cdn/translations/coupon-card/en.json +36 -0
  100. package/dist/cdn/translations/coupon-code-form/en.json +17 -0
  101. package/dist/cdn/translations/coupon-codes-form/en.json +20 -0
  102. package/dist/cdn/translations/coupon-form/en.json +186 -0
  103. package/dist/cdn/translations/custom-field-card/en.json +7 -0
  104. package/dist/cdn/translations/custom-field-form/en.json +19 -0
  105. package/dist/cdn/translations/customer/en.json +247 -0
  106. package/dist/cdn/translations/customer-card/en.json +7 -0
  107. package/dist/cdn/translations/customer-form/en.json +21 -0
  108. package/dist/cdn/translations/customer-portal/de.json +202 -14
  109. package/dist/cdn/translations/customer-portal/en.json +202 -14
  110. package/dist/cdn/translations/customer-portal/es.json +202 -14
  111. package/dist/cdn/translations/customer-portal/pl.json +223 -0
  112. package/dist/cdn/translations/customer-portal/zh-hk.json +202 -14
  113. package/dist/cdn/translations/customers-table/en.json +9 -0
  114. package/dist/cdn/translations/discount-card/en.json +8 -0
  115. package/dist/cdn/translations/email-template-form/en.json +25 -0
  116. package/dist/cdn/translations/error-entry-card/en.json +7 -0
  117. package/dist/cdn/translations/generate-codes-form/en.json +19 -0
  118. package/dist/cdn/translations/gift-card-card/en.json +9 -0
  119. package/dist/cdn/translations/gift-card-code-form/en.json +19 -0
  120. package/dist/cdn/translations/gift-card-codes-form/en.json +25 -0
  121. package/dist/cdn/translations/gift-card-form/en.json +314 -0
  122. package/dist/cdn/translations/pagination/en.json +7 -0
  123. package/dist/cdn/translations/payment-card/en.json +12 -0
  124. package/dist/cdn/translations/payment-method-card/en.json +13 -0
  125. package/dist/cdn/translations/query-builder/en.json +32 -0
  126. package/dist/cdn/translations/sign-in-form/en.json +21 -0
  127. package/dist/cdn/translations/spinner/en.json +7 -0
  128. package/dist/cdn/translations/subscription-card/en.json +26 -0
  129. package/dist/cdn/translations/subscription-form/en.json +76 -0
  130. package/dist/cdn/translations/subscriptions-table/en.json +26 -0
  131. package/dist/cdn/translations/tax-card/en.json +11 -0
  132. package/dist/cdn/translations/tax-form/en.json +38 -0
  133. package/dist/cdn/translations/template-config-form/en.json +107 -0
  134. package/dist/cdn/translations/template-form/en.json +23 -0
  135. package/dist/cdn/translations/transaction-card/en.json +25 -0
  136. package/dist/cdn/translations/transactions-table/en.json +22 -0
  137. package/dist/cdn/translations/user-form/en.json +26 -0
  138. package/dist/cdn/translations/users-table/en.json +44 -0
  139. package/dist/elements/private/Checkbox/Checkbox.js +36 -22
  140. package/dist/elements/private/Checkbox/Checkbox.js.map +1 -1
  141. package/dist/elements/private/Choice/Choice.js +1 -0
  142. package/dist/elements/private/Choice/Choice.js.map +1 -1
  143. package/dist/elements/private/EditableList/EditableList.d.ts +20 -0
  144. package/dist/elements/private/EditableList/EditableList.js +124 -0
  145. package/dist/elements/private/EditableList/EditableList.js.map +1 -0
  146. package/dist/elements/private/FrequencyInput/FrequencyInput.d.ts +7 -6
  147. package/dist/elements/private/FrequencyInput/FrequencyInput.js +10 -23
  148. package/dist/elements/private/FrequencyInput/FrequencyInput.js.map +1 -1
  149. package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js +1 -1
  150. package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js.map +1 -1
  151. package/dist/elements/public/AttributeCard/types.d.ts +3 -3
  152. package/dist/elements/public/AttributeCard/types.js.map +1 -1
  153. package/dist/elements/public/AttributeForm/AttributeForm.js +2 -1
  154. package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
  155. package/dist/elements/public/AttributeForm/types.d.ts +3 -3
  156. package/dist/elements/public/AttributeForm/types.js.map +1 -1
  157. package/dist/elements/public/CollectionPage/CollectionPage.js +3 -1
  158. package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
  159. package/dist/elements/public/CollectionPage/types.d.ts +2 -0
  160. package/dist/elements/public/CollectionPage/types.js.map +1 -1
  161. package/dist/elements/public/CouponCard/CouponCard.d.ts +29 -0
  162. package/dist/elements/public/CouponCard/CouponCard.js +131 -0
  163. package/dist/elements/public/CouponCard/CouponCard.js.map +1 -0
  164. package/dist/elements/public/CouponCard/index.d.ts +5 -0
  165. package/dist/elements/public/CouponCard/index.js +7 -0
  166. package/dist/elements/public/CouponCard/index.js.map +1 -0
  167. package/dist/elements/public/CouponCard/types.d.ts +15 -0
  168. package/dist/elements/public/CouponCard/types.js +2 -0
  169. package/dist/elements/public/CouponCard/types.js.map +1 -0
  170. package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +45 -0
  171. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +218 -0
  172. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -0
  173. package/dist/elements/public/CouponCodeForm/index.d.ts +8 -0
  174. package/dist/elements/public/CouponCodeForm/index.js +10 -0
  175. package/dist/elements/public/CouponCodeForm/index.js.map +1 -0
  176. package/dist/elements/public/CouponCodeForm/types.d.ts +15 -0
  177. package/dist/elements/public/CouponCodeForm/types.js +2 -0
  178. package/dist/elements/public/CouponCodeForm/types.js.map +1 -0
  179. package/dist/elements/public/CouponCodesForm/CouponCodesForm.d.ts +31 -0
  180. package/dist/elements/public/CouponCodesForm/CouponCodesForm.js +218 -0
  181. package/dist/elements/public/CouponCodesForm/CouponCodesForm.js.map +1 -0
  182. package/dist/elements/public/CouponCodesForm/index.d.ts +8 -0
  183. package/dist/elements/public/CouponCodesForm/index.js +12 -0
  184. package/dist/elements/public/CouponCodesForm/index.js.map +1 -0
  185. package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.d.ts +14 -0
  186. package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.js +48 -0
  187. package/dist/elements/public/CouponCodesForm/internal/InternalCouponCodesFormListItem.js.map +1 -0
  188. package/dist/elements/public/CouponCodesForm/types.d.ts +17 -0
  189. package/dist/elements/public/CouponCodesForm/types.js +2 -0
  190. package/dist/elements/public/CouponCodesForm/types.js.map +1 -0
  191. package/dist/elements/public/CouponForm/CouponForm.d.ts +77 -0
  192. package/dist/elements/public/CouponForm/CouponForm.js +1301 -0
  193. package/dist/elements/public/CouponForm/CouponForm.js.map +1 -0
  194. package/dist/elements/public/CouponForm/index.d.ts +19 -0
  195. package/dist/elements/public/CouponForm/index.js +21 -0
  196. package/dist/elements/public/CouponForm/index.js.map +1 -0
  197. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.d.ts +20 -0
  198. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js +99 -0
  199. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js.map +1 -0
  200. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.d.ts +18 -0
  201. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js +50 -0
  202. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js.map +1 -0
  203. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.d.ts +18 -0
  204. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js +53 -0
  205. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js.map +1 -0
  206. package/dist/elements/public/CouponForm/types.d.ts +27 -0
  207. package/dist/elements/public/CouponForm/types.js +2 -0
  208. package/dist/elements/public/CouponForm/types.js.map +1 -0
  209. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +2 -1
  210. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
  211. package/dist/elements/public/Customer/Customer.js +1 -1
  212. package/dist/elements/public/Customer/Customer.js.map +1 -1
  213. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +25 -8
  214. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
  215. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +20 -6
  216. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
  217. package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +2 -1
  218. package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
  219. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.d.ts +43 -0
  220. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js +249 -0
  221. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js.map +1 -0
  222. package/dist/elements/public/GenerateCodesForm/index.d.ts +8 -0
  223. package/dist/elements/public/GenerateCodesForm/index.js +10 -0
  224. package/dist/elements/public/GenerateCodesForm/index.js.map +1 -0
  225. package/dist/elements/public/GenerateCodesForm/types.d.ts +24 -0
  226. package/dist/elements/public/GenerateCodesForm/types.js +2 -0
  227. package/dist/elements/public/GenerateCodesForm/types.js.map +1 -0
  228. package/dist/elements/public/GiftCardCard/GiftCardCard.d.ts +26 -0
  229. package/dist/elements/public/GiftCardCard/GiftCardCard.js +95 -0
  230. package/dist/elements/public/GiftCardCard/GiftCardCard.js.map +1 -0
  231. package/dist/elements/public/GiftCardCard/index.d.ts +5 -0
  232. package/dist/elements/public/GiftCardCard/index.js +7 -0
  233. package/dist/elements/public/GiftCardCard/index.js.map +1 -0
  234. package/dist/elements/public/GiftCardCard/types.d.ts +11 -0
  235. package/dist/elements/public/GiftCardCard/types.js +2 -0
  236. package/dist/elements/public/GiftCardCard/types.js.map +1 -0
  237. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.d.ts +55 -0
  238. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js +292 -0
  239. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js.map +1 -0
  240. package/dist/elements/public/GiftCardCodeForm/index.d.ts +10 -0
  241. package/dist/elements/public/GiftCardCodeForm/index.js +12 -0
  242. package/dist/elements/public/GiftCardCodeForm/index.js.map +1 -0
  243. package/dist/elements/public/GiftCardCodeForm/types.d.ts +19 -0
  244. package/dist/elements/public/GiftCardCodeForm/types.js +2 -0
  245. package/dist/elements/public/GiftCardCodeForm/types.js.map +1 -0
  246. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.d.ts +37 -0
  247. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js +264 -0
  248. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js.map +1 -0
  249. package/dist/elements/public/GiftCardCodesForm/index.d.ts +9 -0
  250. package/dist/elements/public/GiftCardCodesForm/index.js +13 -0
  251. package/dist/elements/public/GiftCardCodesForm/index.js.map +1 -0
  252. package/dist/elements/public/GiftCardCodesForm/internal/InternalGiftCardCodesFormListItem.d.ts +19 -0
  253. package/dist/elements/public/GiftCardCodesForm/internal/InternalGiftCardCodesFormListItem.js +48 -0
  254. package/dist/elements/public/GiftCardCodesForm/internal/InternalGiftCardCodesFormListItem.js.map +1 -0
  255. package/dist/elements/public/GiftCardCodesForm/types.d.ts +17 -0
  256. package/dist/elements/public/GiftCardCodesForm/types.js +2 -0
  257. package/dist/elements/public/GiftCardCodesForm/types.js.map +1 -0
  258. package/dist/elements/public/GiftCardForm/GiftCardForm.d.ts +67 -0
  259. package/dist/elements/public/GiftCardForm/GiftCardForm.js +684 -0
  260. package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -0
  261. package/dist/elements/public/GiftCardForm/currencies.d.ts +1 -0
  262. package/dist/elements/public/GiftCardForm/currencies.js +173 -0
  263. package/dist/elements/public/GiftCardForm/currencies.js.map +1 -0
  264. package/dist/elements/public/GiftCardForm/index.d.ts +18 -0
  265. package/dist/elements/public/GiftCardForm/index.js +20 -0
  266. package/dist/elements/public/GiftCardForm/index.js.map +1 -0
  267. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.d.ts +20 -0
  268. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.js +99 -0
  269. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.js.map +1 -0
  270. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.d.ts +18 -0
  271. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.js +50 -0
  272. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.js.map +1 -0
  273. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.d.ts +18 -0
  274. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.js +53 -0
  275. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.js.map +1 -0
  276. package/dist/elements/public/GiftCardForm/types.d.ts +28 -0
  277. package/dist/elements/public/GiftCardForm/types.js +2 -0
  278. package/dist/elements/public/GiftCardForm/types.js.map +1 -0
  279. package/dist/elements/public/I18n/I18n.js +1 -1
  280. package/dist/elements/public/I18n/I18n.js.map +1 -1
  281. package/dist/elements/public/I18n/format/date.js +7 -6
  282. package/dist/elements/public/I18n/format/date.js.map +1 -1
  283. package/dist/elements/public/I18n/format/discount.d.ts +6 -0
  284. package/dist/elements/public/I18n/format/discount.js +20 -0
  285. package/dist/elements/public/I18n/format/discount.js.map +1 -0
  286. package/dist/elements/public/I18n/format/index.js +6 -0
  287. package/dist/elements/public/I18n/format/index.js.map +1 -1
  288. package/dist/elements/public/I18n/format/ordinal.d.ts +6 -0
  289. package/dist/elements/public/I18n/format/ordinal.js +9 -0
  290. package/dist/elements/public/I18n/format/ordinal.js.map +1 -0
  291. package/dist/elements/public/I18n/format/relative.d.ts +6 -0
  292. package/dist/elements/public/I18n/format/relative.js +15 -0
  293. package/dist/elements/public/I18n/format/relative.js.map +1 -0
  294. package/dist/elements/public/NucleonElement/NucleonElement.js +4 -4
  295. package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
  296. package/dist/elements/public/Pagination/Pagination.d.ts +37 -0
  297. package/dist/elements/public/Pagination/Pagination.js +158 -0
  298. package/dist/elements/public/Pagination/Pagination.js.map +1 -0
  299. package/dist/elements/public/Pagination/index.d.ts +6 -0
  300. package/dist/elements/public/Pagination/index.js +8 -0
  301. package/dist/elements/public/Pagination/index.js.map +1 -0
  302. package/dist/elements/public/SignInForm/SignInForm.js +1 -1
  303. package/dist/elements/public/SignInForm/SignInForm.js.map +1 -1
  304. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +1 -1
  305. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
  306. package/dist/elements/public/Table/Table.js +20 -5
  307. package/dist/elements/public/Table/Table.js.map +1 -1
  308. package/dist/elements/public/TaxForm/TaxForm.js +16 -14
  309. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  310. package/dist/elements/public/TemplateForm/TemplateForm.js +1 -1
  311. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
  312. package/dist/elements/public/UserForm/UserForm.js +2 -1
  313. package/dist/elements/public/UserForm/UserForm.js.map +1 -1
  314. package/dist/elements/public/UsersTable/UsersTable.d.ts +5 -1
  315. package/dist/elements/public/UsersTable/UsersTable.js +2 -1
  316. package/dist/elements/public/UsersTable/UsersTable.js.map +1 -1
  317. package/dist/elements/public/index.d.ts +10 -0
  318. package/dist/elements/public/index.defined.d.ts +10 -0
  319. package/dist/elements/public/index.defined.js +10 -0
  320. package/dist/elements/public/index.defined.js.map +1 -1
  321. package/dist/elements/public/index.js +10 -0
  322. package/dist/elements/public/index.js.map +1 -1
  323. package/dist/mixins/themeable.js +96 -4
  324. package/dist/mixins/themeable.js.map +1 -1
  325. package/dist/mixins/translatable.js +1 -1
  326. package/dist/mixins/translatable.js.map +1 -1
  327. package/dist/utils/parse-duration.d.ts +1 -1
  328. package/dist/utils/parse-duration.js +7 -3
  329. package/dist/utils/parse-duration.js.map +1 -1
  330. package/package.json +3 -3
  331. package/dist/cdn/shared-07abcd7b.js +0 -1
  332. package/dist/cdn/shared-35dbd2c5.js +0 -1
  333. package/dist/cdn/shared-6b7602c7.js +0 -1
  334. package/dist/cdn/shared-87ca7818.js +0 -1
  335. package/dist/cdn/shared-9a40309d.js +0 -1
  336. package/dist/cdn/shared-ce1da35d.js +0 -1
  337. package/dist/cdn/shared-d01d809a.js +0 -1
  338. package/dist/cdn/shared-d8ffb279.js +0 -264
  339. package/dist/cdn/shared-e5cbf291.js +0 -1
  340. package/dist/cdn/shared-f1dc1c6c.js +0 -1
  341. package/dist/cdn/translations/shared/de.json +0 -271
  342. package/dist/cdn/translations/shared/en.json +0 -272
  343. package/dist/cdn/translations/shared/es.json +0 -272
@@ -1,7 +1,8 @@
1
1
  import { html } from 'lit-element';
2
2
  import { Table } from "../Table/Table.js";
3
+ import { TranslatableMixin } from "../../../mixins/translatable.js";
3
4
  import { roles } from "../UserForm/roles.js";
4
- export class UsersTable extends Table {
5
+ export class UsersTable extends TranslatableMixin(Table, 'users-table') {
5
6
  constructor() {
6
7
  super(...arguments);
7
8
  this.columns = [
@@ -1 +1 @@
1
- {"version":3,"file":"UsersTable.js","sourceRoot":"","sources":["../../../../src/elements/public/UsersTable/UsersTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,aAAa,CAAC;AAMnD,OAAO,EAAE,KAAK,EAAE,0BAAuB;AACvC,OAAO,EAAE,KAAK,EAAE,6BAA0B;AAE1C,MAAM,OAAO,UAAW,SAAQ,KAAW;IAA3C;;QAoFE,YAAO,GAAG;YACR,UAAU,CAAC,UAAU;YACrB,UAAU,CAAC,WAAW;YACtB,UAAU,CAAC,WAAW;YACtB,UAAU,CAAC,iBAAiB;YAC5B,UAAU,CAAC,aAAa;SACzB,CAAC;IAgBJ,CAAC;IAdC,MAAM;QACJ,OAAO,IAAI,CAAA;;iBAEE,IAAI,CAAC,IAAI;;eAEX,IAAI,CAAC,IAAI;aACX,IAAI,CAAC,EAAE;;;;;QAKZ,KAAK,CAAC,MAAM,EAAE;KACjB,CAAC;IACJ,CAAC;;AAxGM,qBAAU,GAAiB;IAChC,IAAI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AAC,EAAE,CAAC,IAAI,CAAA;;;;iBAIJ,CAAC,GAAgB,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAuB,CAAC;QAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAgB,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAe,CAAC;QAEvD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;;0BAEiB,GAAG,CAAC,IAAI,oBAAoB,GAAG,CAAC,EAAE;;KAEvD;CACF,CAAC","sourcesContent":["import { TemplateResult, html } from 'lit-element';\n\nimport { ButtonElement } from '@vaadin/vaadin-button';\nimport { Column } from '../Table/types';\nimport { Data } from './types';\nimport { FormDialog } from '../FormDialog/FormDialog';\nimport { Table } from '../Table/Table';\nimport { roles } from '../UserForm/roles';\n\nexport class UsersTable extends Table<Data> {\n static nameColumn: Column<Data> = {\n cell: ctx => html`\n <span data-testclass=\"name\" class=\"text-m font-medium\">\n ${ctx.data.first_name} ${ctx.data.last_name}\n </span>\n `,\n };\n\n static emailColumn: Column<Data> = {\n hideBelow: 'md',\n cell: ctx => html`\n <span data-testclass=\"email\" class=\"text-m text-secondary\">${ctx.data.email}</span>\n `,\n };\n\n static rolesColumn: Column<Data> = {\n cell: ctx => {\n const props = [\n 'is_merchant',\n 'is_programmer',\n 'is_front_end_developer',\n 'is_designer',\n ] as const;\n\n return html`\n <div data-testclass=\"roles\" class=\"flex space-x-s\">\n ${props.map(\n property => html`\n <div\n class=${ctx.data[property] ? '' : 'text-disabled'}\n style=\"width: 1rem; height: 1rem;\"\n >\n ${roles.find(role => role.property === property)!.icon}\n </div>\n `\n )}\n </div>\n `;\n },\n };\n\n static lastUpdatedColumn: Column<Data> = {\n hideBelow: 'lg',\n cell: ctx => html`\n <span data-testclass=\"lastUpdated\" class=\"text-m text-secondary font-tnum\">\n <foxy-i18n\n options=${JSON.stringify({ value: ctx.data.date_modified })}\n lang=${ctx.lang}\n key=\"date\"\n ns=${ctx.ns}\n >\n </foxy-i18n>\n\n <foxy-i18n\n options=${JSON.stringify({ value: ctx.data.date_modified })}\n lang=${ctx.lang}\n key=\"time\"\n ns=${ctx.ns}\n >\n </foxy-i18n>\n </span>\n `,\n };\n\n static actionsColumn: Column<Data> = {\n cell: ctx => html`\n <vaadin-button\n data-testclass=\"actions\"\n theme=\"tertiary small\"\n @click=${(evt: CustomEvent) => {\n const button = evt.target as ButtonElement;\n const root = button.getRootNode() as ShadowRoot;\n const form = root.querySelector('#form') as FormDialog;\n\n form.href = ctx.data._links.self.href;\n form.show(button);\n }}\n >\n <foxy-i18n lang=${ctx.lang} key=\"update\" ns=${ctx.ns}></foxy-i18n>\n </vaadin-button>\n `,\n };\n\n columns = [\n UsersTable.nameColumn,\n UsersTable.emailColumn,\n UsersTable.rolesColumn,\n UsersTable.lastUpdatedColumn,\n UsersTable.actionsColumn,\n ];\n\n render(): TemplateResult {\n return html`\n <foxy-form-dialog\n parent=${this.href}\n form=\"foxy-user-form\"\n lang=${this.lang}\n ns=${this.ns}\n id=\"form\"\n >\n </foxy-form-dialog>\n\n ${super.render()}\n `;\n }\n}\n"]}
1
+ {"version":3,"file":"UsersTable.js","sourceRoot":"","sources":["../../../../src/elements/public/UsersTable/UsersTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,aAAa,CAAC;AAMnD,OAAO,EAAE,KAAK,EAAE,0BAAuB;AACvC,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,KAAK,EAAE,6BAA0B;AAE1C,MAAM,OAAO,UAAW,SAAQ,iBAAiB,CAAC,KAAK,EAAE,aAAa,CAAO;IAA7E;;QAoFE,YAAO,GAAG;YACR,UAAU,CAAC,UAAU;YACrB,UAAU,CAAC,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EAAE,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;iBACpD,GAAG,CAAC,IAAI;;eAEV,GAAG,CAAC,EAAE;;;;;oBAKD,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;iBACpD,GAAG,CAAC,IAAI;;eAEV,GAAG,CAAC,EAAE;;;;KAIhB;CACF,CAAC;AAEK,wBAAa,GAAiB;IACnC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAA;;;;iBAIJ,CAAC,GAAgB,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAuB,CAAC;QAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAgB,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAe,CAAC;QAEvD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;;0BAEiB,GAAG,CAAC,IAAI,oBAAoB,GAAG,CAAC,EAAE;;KAEvD;CACF,CAAC","sourcesContent":["import { TemplateResult, html } from 'lit-element';\n\nimport { ButtonElement } from '@vaadin/vaadin-button';\nimport { Column } from '../Table/types';\nimport { Data } from './types';\nimport { FormDialog } from '../FormDialog/FormDialog';\nimport { Table } from '../Table/Table';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { roles } from '../UserForm/roles';\n\nexport class UsersTable extends TranslatableMixin(Table, 'users-table')<Data> {\n static nameColumn: Column<Data> = {\n cell: ctx => html`\n <span data-testclass=\"name\" class=\"text-m font-medium\">\n ${ctx.data.first_name} ${ctx.data.last_name}\n </span>\n `,\n };\n\n static emailColumn: Column<Data> = {\n hideBelow: 'md',\n cell: ctx => html`\n <span data-testclass=\"email\" class=\"text-m text-secondary\">${ctx.data.email}</span>\n `,\n };\n\n static rolesColumn: Column<Data> = {\n cell: ctx => {\n const props = [\n 'is_merchant',\n 'is_programmer',\n 'is_front_end_developer',\n 'is_designer',\n ] as const;\n\n return html`\n <div data-testclass=\"roles\" class=\"flex space-x-s\">\n ${props.map(\n property => html`\n <div\n class=${ctx.data[property] ? '' : 'text-disabled'}\n style=\"width: 1rem; height: 1rem;\"\n >\n ${roles.find(role => role.property === property)!.icon}\n </div>\n `\n )}\n </div>\n `;\n },\n };\n\n static lastUpdatedColumn: Column<Data> = {\n hideBelow: 'lg',\n cell: ctx => html`\n <span data-testclass=\"lastUpdated\" class=\"text-m text-secondary font-tnum\">\n <foxy-i18n\n options=${JSON.stringify({ value: ctx.data.date_modified })}\n lang=${ctx.lang}\n key=\"date\"\n ns=${ctx.ns}\n >\n </foxy-i18n>\n\n <foxy-i18n\n options=${JSON.stringify({ value: ctx.data.date_modified })}\n lang=${ctx.lang}\n key=\"time\"\n ns=${ctx.ns}\n >\n </foxy-i18n>\n </span>\n `,\n };\n\n static actionsColumn: Column<Data> = {\n cell: ctx => html`\n <vaadin-button\n data-testclass=\"actions\"\n theme=\"tertiary small\"\n @click=${(evt: CustomEvent) => {\n const button = evt.target as ButtonElement;\n const root = button.getRootNode() as ShadowRoot;\n const form = root.querySelector('#form') as FormDialog;\n\n form.href = ctx.data._links.self.href;\n form.show(button);\n }}\n >\n <foxy-i18n lang=${ctx.lang} key=\"update\" ns=${ctx.ns}></foxy-i18n>\n </vaadin-button>\n `,\n };\n\n columns = [\n UsersTable.nameColumn,\n UsersTable.emailColumn,\n UsersTable.rolesColumn,\n UsersTable.lastUpdatedColumn,\n UsersTable.actionsColumn,\n ];\n\n render(): TemplateResult {\n return html`\n <foxy-form-dialog\n parent=${this.href}\n form=\"foxy-user-form\"\n lang=${this.lang}\n ns=${this.ns}\n id=\"form\"\n >\n </foxy-form-dialog>\n\n ${super.render()}\n `;\n }\n}\n"]}
@@ -7,6 +7,10 @@ export { AttributeForm } from './AttributeForm/AttributeForm';
7
7
  export { CancellationForm } from './CancellationForm/CancellationForm';
8
8
  export { CollectionPage } from './CollectionPage/CollectionPage';
9
9
  export { CollectionPages } from './CollectionPages/CollectionPages';
10
+ export { CouponCard } from './CouponCard/CouponCard';
11
+ export { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';
12
+ export { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';
13
+ export { CouponForm } from './CouponForm/CouponForm';
10
14
  export { Customer } from './Customer/Customer';
11
15
  export { CustomerApi } from './CustomerApi/CustomerApi';
12
16
  export { CustomerCard } from './CustomerCard/CustomerCard';
@@ -21,9 +25,15 @@ export { Donation } from './Donation/Donation';
21
25
  export { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';
22
26
  export { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';
23
27
  export { FormDialog } from './FormDialog/FormDialog';
28
+ export { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';
29
+ export { GiftCardCard } from './GiftCardCard/GiftCardCard';
30
+ export { GiftCardCodeForm } from './GiftCardCodeForm/GiftCardCodeForm';
31
+ export { GiftCardCodesForm } from './GiftCardCodesForm/GiftCardCodesForm';
32
+ export { GiftCardForm } from './GiftCardForm/GiftCardForm';
24
33
  export { I18n } from './I18n/I18n';
25
34
  export { ItemsForm, Item } from './ItemsForm/ItemsForm';
26
35
  export { NucleonElement } from './NucleonElement/NucleonElement';
36
+ export { Pagination } from './Pagination/Pagination';
27
37
  export { PaymentCard } from './PaymentCard/PaymentCard';
28
38
  export { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';
29
39
  export { QueryBuilder } from './QueryBuilder/QueryBuilder';
@@ -7,6 +7,10 @@ export { AttributeForm } from './AttributeForm/index';
7
7
  export { CancellationForm } from './CancellationForm/index';
8
8
  export { CollectionPage } from './CollectionPage/index';
9
9
  export { CollectionPages } from './CollectionPages/index';
10
+ export { CouponCard } from './CouponCard/index';
11
+ export { CouponCodeForm } from './CouponCodeForm/index';
12
+ export { CouponCodesForm } from './CouponCodesForm/index';
13
+ export { CouponForm } from './CouponForm/index';
10
14
  export { Customer } from './Customer/index';
11
15
  export { CustomerApi } from './CustomerApi/index';
12
16
  export { CustomerCard } from './CustomerCard/index';
@@ -21,9 +25,15 @@ export { Donation } from './Donation/index';
21
25
  export { EmailTemplateForm } from './EmailTemplateForm/index';
22
26
  export { ErrorEntryCard } from './ErrorEntryCard/index';
23
27
  export { FormDialog } from './FormDialog/index';
28
+ export { GenerateCodesForm } from './GenerateCodesForm/index';
29
+ export { GiftCardCard } from './GiftCardCard/index';
30
+ export { GiftCardCodeForm } from './GiftCardCodeForm/index';
31
+ export { GiftCardCodesForm } from './GiftCardCodesForm/index';
32
+ export { GiftCardForm } from './GiftCardForm/index';
24
33
  export { I18n } from './I18n/index';
25
34
  export { ItemsForm, Item } from './ItemsForm/index';
26
35
  export { NucleonElement } from './NucleonElement/index';
36
+ export { Pagination } from './Pagination/index';
27
37
  export { PaymentCard } from './PaymentCard/index';
28
38
  export { PaymentMethodCard } from './PaymentMethodCard/index';
29
39
  export { QueryBuilder } from './QueryBuilder/index';
@@ -7,6 +7,10 @@ export { AttributeForm } from "./AttributeForm/index.js";
7
7
  export { CancellationForm } from "./CancellationForm/index.js";
8
8
  export { CollectionPage } from "./CollectionPage/index.js";
9
9
  export { CollectionPages } from "./CollectionPages/index.js";
10
+ export { CouponCard } from "./CouponCard/index.js";
11
+ export { CouponCodeForm } from "./CouponCodeForm/index.js";
12
+ export { CouponCodesForm } from "./CouponCodesForm/index.js";
13
+ export { CouponForm } from "./CouponForm/index.js";
10
14
  export { Customer } from "./Customer/index.js";
11
15
  export { CustomerApi } from "./CustomerApi/index.js";
12
16
  export { CustomerCard } from "./CustomerCard/index.js";
@@ -21,9 +25,15 @@ export { Donation } from "./Donation/index.js";
21
25
  export { EmailTemplateForm } from "./EmailTemplateForm/index.js";
22
26
  export { ErrorEntryCard } from "./ErrorEntryCard/index.js";
23
27
  export { FormDialog } from "./FormDialog/index.js";
28
+ export { GenerateCodesForm } from "./GenerateCodesForm/index.js";
29
+ export { GiftCardCard } from "./GiftCardCard/index.js";
30
+ export { GiftCardCodeForm } from "./GiftCardCodeForm/index.js";
31
+ export { GiftCardCodesForm } from "./GiftCardCodesForm/index.js";
32
+ export { GiftCardForm } from "./GiftCardForm/index.js";
24
33
  export { I18n } from "./I18n/index.js";
25
34
  export { ItemsForm, Item } from "./ItemsForm/index.js";
26
35
  export { NucleonElement } from "./NucleonElement/index.js";
36
+ export { Pagination } from "./Pagination/index.js";
27
37
  export { PaymentCard } from "./PaymentCard/index.js";
28
38
  export { PaymentMethodCard } from "./PaymentMethodCard/index.js";
29
39
  export { QueryBuilder } from "./QueryBuilder/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
1
+ {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA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BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { CouponCard } from './CouponCard/index';\nexport { CouponCodeForm } from './CouponCodeForm/index';\nexport { CouponCodesForm } from './CouponCodesForm/index';\nexport { CouponForm } from './CouponForm/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { GenerateCodesForm } from './GenerateCodesForm/index';\nexport { GiftCardCard } from './GiftCardCard/index';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/index';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/index';\nexport { GiftCardForm } from './GiftCardForm/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { Pagination } from './Pagination/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
@@ -7,6 +7,10 @@ export { AttributeForm } from "./AttributeForm/AttributeForm.js";
7
7
  export { CancellationForm } from "./CancellationForm/CancellationForm.js";
8
8
  export { CollectionPage } from "./CollectionPage/CollectionPage.js";
9
9
  export { CollectionPages } from "./CollectionPages/CollectionPages.js";
10
+ export { CouponCard } from "./CouponCard/CouponCard.js";
11
+ export { CouponCodeForm } from "./CouponCodeForm/CouponCodeForm.js";
12
+ export { CouponCodesForm } from "./CouponCodesForm/CouponCodesForm.js";
13
+ export { CouponForm } from "./CouponForm/CouponForm.js";
10
14
  export { Customer } from "./Customer/Customer.js";
11
15
  export { CustomerApi } from "./CustomerApi/CustomerApi.js";
12
16
  export { CustomerCard } from "./CustomerCard/CustomerCard.js";
@@ -21,9 +25,15 @@ export { Donation } from "./Donation/Donation.js";
21
25
  export { EmailTemplateForm } from "./EmailTemplateForm/EmailTemplateForm.js";
22
26
  export { ErrorEntryCard } from "./ErrorEntryCard/ErrorEntryCard.js";
23
27
  export { FormDialog } from "./FormDialog/FormDialog.js";
28
+ export { GenerateCodesForm } from "./GenerateCodesForm/GenerateCodesForm.js";
29
+ export { GiftCardCard } from "./GiftCardCard/GiftCardCard.js";
30
+ export { GiftCardCodeForm } from "./GiftCardCodeForm/GiftCardCodeForm.js";
31
+ export { GiftCardCodesForm } from "./GiftCardCodesForm/GiftCardCodesForm.js";
32
+ export { GiftCardForm } from "./GiftCardForm/GiftCardForm.js";
24
33
  export { I18n } from "./I18n/I18n.js";
25
34
  export { ItemsForm, Item } from "./ItemsForm/ItemsForm.js";
26
35
  export { NucleonElement } from "./NucleonElement/NucleonElement.js";
36
+ export { Pagination } from "./Pagination/Pagination.js";
27
37
  export { PaymentCard } from "./PaymentCard/PaymentCard.js";
28
38
  export { PaymentMethodCard } from "./PaymentMethodCard/PaymentMethodCard.js";
29
39
  export { QueryBuilder } from "./QueryBuilder/QueryBuilder.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,E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OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,Q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,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { CouponCard } from './CouponCard/CouponCard';\nexport { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';\nexport { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';\nexport { CouponForm } from './CouponForm/CouponForm';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';\nexport { GiftCardCard } from './GiftCardCard/GiftCardCard';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/GiftCardCodeForm';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/GiftCardCodesForm';\nexport { GiftCardForm } from './GiftCardForm/GiftCardForm';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { Pagination } from './Pagination/Pagination';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
@@ -373,6 +373,17 @@ input::-webkit-date-and-time-value{
373
373
  border-width: 0;
374
374
  }
375
375
 
376
+ :host([sm]) .sm-not-sr-only {
377
+ position: static;
378
+ width: auto;
379
+ height: auto;
380
+ padding: 0;
381
+ margin: 0;
382
+ overflow: visible;
383
+ clip: auto;
384
+ white-space: normal;
385
+ }
386
+
376
387
  .pointer-events-none {
377
388
  pointer-events: none;
378
389
  }
@@ -452,6 +463,10 @@ input::-webkit-date-and-time-value{
452
463
  grid-column: span 2 / span 2;
453
464
  }
454
465
 
466
+ :host([md]) .md-col-span-2 {
467
+ grid-column: span 2 / span 2;
468
+ }
469
+
455
470
  .float-left {
456
471
  float: left;
457
472
  }
@@ -568,10 +583,6 @@ input::-webkit-date-and-time-value{
568
583
  margin-top: var(--lumo-space-xl, 2.5rem);
569
584
  }
570
585
 
571
- .-mt-xs {
572
- margin-top: calc(var(--lumo-space-xs, 0.25rem) * -1);
573
- }
574
-
575
586
  .-mt-m {
576
587
  margin-top: calc(var(--lumo-space-m, 1rem) * -1);
577
588
  }
@@ -600,6 +611,10 @@ input::-webkit-date-and-time-value{
600
611
  margin-right: var(--lumo-space-xl, 2.5rem);
601
612
  }
602
613
 
614
+ .-mr-xs {
615
+ margin-right: calc(var(--lumo-space-xs, 0.25rem) * -1);
616
+ }
617
+
603
618
  .-mr-s {
604
619
  margin-right: calc(var(--lumo-space-s, 0.5rem) * -1);
605
620
  }
@@ -632,6 +647,10 @@ input::-webkit-date-and-time-value{
632
647
  margin-left: auto;
633
648
  }
634
649
 
650
+ .ml-xs {
651
+ margin-left: var(--lumo-space-xs, 0.25rem);
652
+ }
653
+
635
654
  .ml-s {
636
655
  margin-left: var(--lumo-space-s, 0.5rem);
637
656
  }
@@ -1053,14 +1072,26 @@ input::-webkit-date-and-time-value{
1053
1072
  grid-template-columns: repeat(2, minmax(0, 1fr));
1054
1073
  }
1055
1074
 
1075
+ .grid-cols-3 {
1076
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1077
+ }
1078
+
1056
1079
  :host([sm]) .sm-grid-cols-2 {
1057
1080
  grid-template-columns: repeat(2, minmax(0, 1fr));
1058
1081
  }
1059
1082
 
1083
+ :host([sm]) .sm-grid-cols-3 {
1084
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1085
+ }
1086
+
1060
1087
  :host([md]) .md-grid-cols-2 {
1061
1088
  grid-template-columns: repeat(2, minmax(0, 1fr));
1062
1089
  }
1063
1090
 
1091
+ :host([md]) .md-grid-cols-4 {
1092
+ grid-template-columns: repeat(4, minmax(0, 1fr));
1093
+ }
1094
+
1064
1095
  .grid-rows-2 {
1065
1096
  grid-template-rows: repeat(2, minmax(0, 1fr));
1066
1097
  }
@@ -1073,6 +1104,10 @@ input::-webkit-date-and-time-value{
1073
1104
  flex-direction: column;
1074
1105
  }
1075
1106
 
1107
+ .flex-col-reverse {
1108
+ flex-direction: column-reverse;
1109
+ }
1110
+
1076
1111
  :host([sm]) .sm-flex-row {
1077
1112
  flex-direction: row;
1078
1113
  }
@@ -1121,6 +1156,10 @@ input::-webkit-date-and-time-value{
1121
1156
  justify-content: space-between;
1122
1157
  }
1123
1158
 
1159
+ .justify-evenly {
1160
+ justify-content: space-evenly;
1161
+ }
1162
+
1124
1163
  .gap-s {
1125
1164
  gap: var(--lumo-space-s, 0.5rem);
1126
1165
  }
@@ -1262,6 +1301,14 @@ input::-webkit-date-and-time-value{
1262
1301
  border-bottom-left-radius: var(--lumo-border-radius-l, 0.75em);
1263
1302
  }
1264
1303
 
1304
+ .rounded-tl-l {
1305
+ border-top-left-radius: var(--lumo-border-radius-l, 0.75em);
1306
+ }
1307
+
1308
+ .rounded-tr-s {
1309
+ border-top-right-radius: var(--lumo-border-radius-s, 0.25em);
1310
+ }
1311
+
1265
1312
  .border {
1266
1313
  border-width: 1px;
1267
1314
  }
@@ -1282,6 +1329,10 @@ input::-webkit-date-and-time-value{
1282
1329
  border-right-width: 1px;
1283
1330
  }
1284
1331
 
1332
+ .border-solid {
1333
+ border-style: solid;
1334
+ }
1335
+
1285
1336
  .border-dashed {
1286
1337
  border-style: dashed;
1287
1338
  }
@@ -1290,6 +1341,10 @@ input::-webkit-date-and-time-value{
1290
1341
  border-color: transparent;
1291
1342
  }
1292
1343
 
1344
+ .border-current {
1345
+ border-color: currentColor;
1346
+ }
1347
+
1293
1348
  .border-contrast-10 {
1294
1349
  border-color: var(--lumo-contrast-10pct, hsla(214, 57%, 24%, 0.1));
1295
1350
  }
@@ -1352,6 +1407,10 @@ input::-webkit-date-and-time-value{
1352
1407
  background-color: transparent;
1353
1408
  }
1354
1409
 
1410
+ .bg-current {
1411
+ background-color: currentColor;
1412
+ }
1413
+
1355
1414
  .bg-base {
1356
1415
  background-color: var(--lumo-base-color, #fff);
1357
1416
  }
@@ -1431,10 +1490,18 @@ input::-webkit-date-and-time-value{
1431
1490
  background-color: var(--lumo-contrast-10pct, hsla(214, 57%, 24%, 0.1));
1432
1491
  }
1433
1492
 
1493
+ .hover-bg-contrast-20:hover {
1494
+ background-color: var(--lumo-contrast-20pct, hsla(214, 53%, 23%, 0.16));
1495
+ }
1496
+
1434
1497
  .hover-bg-primary-10:hover {
1435
1498
  background-color: var(--lumo-primary-color-10pct, hsla(214, 90%, 52%, 0.1));
1436
1499
  }
1437
1500
 
1501
+ .hover-bg-primary:hover {
1502
+ background-color: var(--lumo-primary-color, hsl(214, 90%, 52%));
1503
+ }
1504
+
1438
1505
  .hover-bg-error-10:hover {
1439
1506
  background-color: var(--lumo-error-color-10pct, hsla(3, 100%, 60%, 0.1));
1440
1507
  }
@@ -1545,6 +1612,10 @@ input::-webkit-date-and-time-value{
1545
1612
  padding-left: var(--lumo-space-m, 1rem);
1546
1613
  }
1547
1614
 
1615
+ .pl {
1616
+ padding-left: var(--lumo-space-m, 1rem);
1617
+ }
1618
+
1548
1619
  .text-left {
1549
1620
  text-align: left;
1550
1621
  }
@@ -1637,6 +1708,19 @@ input::-webkit-date-and-time-value{
1637
1708
  text-transform: none;
1638
1709
  }
1639
1710
 
1711
+ .ordinal {
1712
+ --tw-ordinal: var(--tw-empty,/*!*/ /*!*/);
1713
+ --tw-slashed-zero: var(--tw-empty,/*!*/ /*!*/);
1714
+ --tw-numeric-figure: var(--tw-empty,/*!*/ /*!*/);
1715
+ --tw-numeric-spacing: var(--tw-empty,/*!*/ /*!*/);
1716
+ --tw-numeric-fraction: var(--tw-empty,/*!*/ /*!*/);
1717
+ font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
1718
+ }
1719
+
1720
+ .ordinal {
1721
+ --tw-ordinal: ordinal;
1722
+ }
1723
+
1640
1724
  .leading-none {
1641
1725
  line-height: 1;
1642
1726
  }
@@ -1709,6 +1793,10 @@ input::-webkit-date-and-time-value{
1709
1793
  color: var(--lumo-success-text-color, hsl(145, 100%, 32%));
1710
1794
  }
1711
1795
 
1796
+ .text-success-contrast {
1797
+ color: var(--lumo-success-contrast-color, #fff);
1798
+ }
1799
+
1712
1800
  .text-header {
1713
1801
  color: var(--lumo-header-text-color, hsl(214, 35%, 15%));
1714
1802
  }
@@ -1738,6 +1826,10 @@ input::-webkit-date-and-time-value{
1738
1826
  color: var(--lumo-primary-text-color, hsl(214, 90%, 52%));
1739
1827
  }
1740
1828
 
1829
+ .hover-text-primary-contrast:hover {
1830
+ color: var(--lumo-primary-contrast-color, #fff);
1831
+ }
1832
+
1741
1833
  .hover-text-error:hover {
1742
1834
  color: var(--lumo-error-text-color, hsl(3, 92%, 53%));
1743
1835
  }
@@ -1 +1 @@
1
- {"version":3,"file":"themeable.js","sourceRoot":"","sources":["../../src/mixins/themeable.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAA0C,UAAU,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,wBAAqB;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,WAAkB,EACkB,EAAE;IACtC,OAAO,MAAM,gBAAiB,SAAQ,WAAW;QAC/C,MAAM,KAAK,MAAM;YACf,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC;YAEjC,OAAO;gBACL,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAqHF;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,OAAgB,SAAU,SAAQ,mBAAmB,CACzD,eAAe,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAC5C;CAAG","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport { CSSResult, CSSResultArray, Constructor, LitElement, css } from 'lit-element';\n\nimport { ResponsiveMixin } from './responsive';\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements';\n\ntype Base = Constructor<LitElement> & { styles?: CSSResult | CSSResultArray | CSSStyleSheet };\n\nexport const ThemeableMixin = <TBase extends Base>(\n BaseElement: TBase\n): TBase & { styles: CSSResultArray } => {\n return class ThemeableElement extends BaseElement {\n static get styles(): CSSResultArray {\n const originalCSS = super.styles;\n\n return [\n ...(originalCSS ? (Array.isArray(originalCSS) ? originalCSS : [originalCSS]) : []),\n css`\n @tailwind base;\n\n * {\n -webkit-tap-highlight-color: transparent;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n :host {\n display: block;\n }\n\n details > summary::-webkit-details-marker {\n display: none;\n }\n\n details > summary {\n list-style: none;\n }\n\n vaadin-select {\n margin-top: -4px;\n margin-bottom: -4px;\n }\n\n vaadin-text-area,\n vaadin-text-field,\n vaadin-date-picker,\n vaadin-email-field,\n vaadin-number-field,\n vaadin-custom-field,\n vaadin-integer-field,\n vaadin-password-field,\n vaadin-combo-box::part(text-field) {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n vaadin-date-picker::part(text-field) {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n vaadin-button {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(label) {\n margin: 0.1875em var(--lumo-space-m);\n }\n\n .appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n }\n\n .appearance-none::-webkit-calendar-picker-indicator,\n .appearance-none::-webkit-outer-spin-button,\n .appearance-none::-webkit-inner-spin-button,\n .appearance-none::-webkit-list-button {\n opacity: 0 !important;\n width: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n\n input::-webkit-date-and-time-value {\n text-align: inherit !important;\n }\n\n @tailwind components;\n\n @tailwind utilities;\n\n @layer utilities {\n .border-radius-overflow-fix {\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n }\n\n @variants sm, md, lg, xl {\n .grid-rows-auto {\n grid-auto-rows: 1fr;\n }\n\n .icon-inline {\n --iron-icon-height: 1em;\n --iron-icon-width: 1em;\n }\n\n .bg-blurred {\n backdrop-filter: blur(25px);\n background: var(--lumo-tint-80pct);\n }\n\n .max-w-modal {\n max-width: 28rem;\n }\n\n .w-narrow-modal {\n width: 18rem;\n }\n\n .snap-x-mandatory {\n scroll-snap-type: x mandatory;\n }\n\n .snap-start {\n scroll-snap-align: start;\n }\n }\n }\n `,\n ];\n }\n };\n};\n\n/**\n * One of the base classes for each rel-specific element in the collection\n * providing shared TailwindCSS styles for Shadow DOM content.\n * This class MUST NOT be used on its own (hence the `abstract` keyword) or\n * referenced externally (outside of the package).\n *\n * @deprecated\n */\nexport abstract class Themeable extends ScopedElementsMixin(\n ResponsiveMixin(ThemeableMixin(LitElement))\n) {}\n"]}
1
+ {"version":3,"file":"themeable.js","sourceRoot":"","sources":["../../src/mixins/themeable.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAA0C,UAAU,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,wBAAqB;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,MAAM,CAAC,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAqHF;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,OAAgB,SAAU,SAAQ,mBAAmB,CACzD,eAAe,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAC5C;CAAG","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport { CSSResult, CSSResultArray, Constructor, LitElement, css } from 'lit-element';\n\nimport { ResponsiveMixin } from './responsive';\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements';\n\ntype Base = Constructor<LitElement> & { styles?: CSSResult | CSSResultArray | CSSStyleSheet };\n\nexport const ThemeableMixin = <TBase extends Base>(\n BaseElement: TBase\n): TBase & { styles: CSSResultArray } => {\n return class ThemeableElement extends BaseElement {\n static get styles(): CSSResultArray {\n const originalCSS = super.styles;\n\n return [\n ...(originalCSS ? (Array.isArray(originalCSS) ? originalCSS : [originalCSS]) : []),\n css`\n @tailwind base;\n\n * {\n -webkit-tap-highlight-color: transparent;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n :host {\n display: block;\n }\n\n details > summary::-webkit-details-marker {\n display: none;\n }\n\n details > summary {\n list-style: none;\n }\n\n vaadin-select {\n margin-top: -4px;\n margin-bottom: -4px;\n }\n\n vaadin-text-area,\n vaadin-text-field,\n vaadin-date-picker,\n vaadin-email-field,\n vaadin-number-field,\n vaadin-custom-field,\n vaadin-integer-field,\n vaadin-password-field,\n vaadin-combo-box::part(text-field) {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n vaadin-date-picker::part(text-field) {\n padding-top: 0;\n padding-bottom: 0;\n }\n\n vaadin-button {\n margin: 0;\n }\n\n vaadin-checkbox::part(checkbox) {\n margin: 0;\n }\n\n vaadin-checkbox::part(label) {\n margin: 0.1875em var(--lumo-space-m);\n }\n\n .appearance-none {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n }\n\n .appearance-none::-webkit-calendar-picker-indicator,\n .appearance-none::-webkit-outer-spin-button,\n .appearance-none::-webkit-inner-spin-button,\n .appearance-none::-webkit-list-button {\n opacity: 0 !important;\n width: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n\n input::-webkit-date-and-time-value {\n text-align: inherit !important;\n }\n\n @tailwind components;\n\n @tailwind utilities;\n\n @layer utilities {\n .border-radius-overflow-fix {\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n }\n\n @variants sm, md, lg, xl {\n .grid-rows-auto {\n grid-auto-rows: 1fr;\n }\n\n .icon-inline {\n --iron-icon-height: 1em;\n --iron-icon-width: 1em;\n }\n\n .bg-blurred {\n backdrop-filter: blur(25px);\n background: var(--lumo-tint-80pct);\n }\n\n .max-w-modal {\n max-width: 28rem;\n }\n\n .w-narrow-modal {\n width: 18rem;\n }\n\n .snap-x-mandatory {\n scroll-snap-type: x mandatory;\n }\n\n .snap-start {\n scroll-snap-align: start;\n }\n }\n }\n `,\n ];\n }\n };\n};\n\n/**\n * One of the base classes for each rel-specific element in the collection\n * providing shared TailwindCSS styles for Shadow DOM content.\n * This class MUST NOT be used on its own (hence the `abstract` keyword) or\n * referenced externally (outside of the package).\n *\n * @deprecated\n */\nexport abstract class Themeable extends ScopedElementsMixin(\n ResponsiveMixin(ThemeableMixin(LitElement))\n) {}\n"]}
@@ -72,7 +72,7 @@ export class Translatable extends Themeable {
72
72
  this.__i18n.use(HttpApi);
73
73
  this.__whenI18NReady = this.__i18n.init({
74
74
  ns: ['global'],
75
- supportedLngs: ['nl', 'en', 'es', 'sv', 'fi', 'fr', 'de', 'zh', 'no', 'it'],
75
+ supportedLngs: ['nl', 'en', 'es', 'sv', 'fi', 'fr', 'de', 'zh', 'no', 'it', 'pl'],
76
76
  interpolation: { format: Translatable.__f },
77
77
  fallbackLng: 'en',
78
78
  fallbackNS: 'global',
@@ -1 +1 @@
1
- {"version":3,"file":"translatable.js","sourceRoot":"","sources":["../../src/mixins/translatable.ts"],"names":[],"mappings":"AACA,OAAO,OAAuD,MAAM,SAAS,CAAC;AAE9E,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EAAE,GAAG,EAAE,kBAAe;AAE7B;;;;;;;GAOG;AACH,MAAM,OAAgB,YAAa,SAAQ,SAAS;IA+DlD;;;;;OAKG;IACH,YAAY,SAAS,GAAG,QAAQ;QAC9B,KAAK,EAAE,CAAC;QAXF,WAAM,GAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAwB,CAAC,CAAC,CAAC,CAAC;QAEzD,SAAI,GAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAuB,CAAC,CAAC,CAAC,CAAC;QAU5D,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;QACpB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;IACvD,CAAC;IAxED,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,GAAG,KAAK,CAAC,UAAU;YACnB,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;YACxC,EAAE,EAAE,EAAE,IAA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,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,mBAAmB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QAC5F,CAAC;QAED,gBAAgB;QAChB,OAAO,CAAC,iBAA2C;YACjD,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;YAEjC,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,WAAW,CAA4B,CAAC;YAC/E,IAAI,CAAC,WAAW;gBAAE,OAAO;YAEzB,IAAI,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC;gBAAE,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChF,IAAI,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC;gBAAE,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1F,CAAC;QAED,oBAAoB;;YAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;YAC7B,MAAA,IAAI,CAAC,qBAAqB,+CAA1B,IAAI,EAA2B;QACjC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Constructor, LitElement, PropertyDeclarations } from 'lit-element';\nimport i18next, { FormatFunction, StringMap, TFunction, i18n } from 'i18next';\n\nimport HttpApi from 'i18next-http-backend';\nimport { I18n } from '../elements/public/I18n/I18n';\nimport { Themeable } from './themeable';\nimport { cdn } from '../env';\n\n/**\n * One of the base classes for each rel-specific element in the collection,\n * providing internationalization capabilities to the derived components.\n * This class MUST NOT be used on its own (hence the `abstract` keyword) or\n * referenced externally (outside of the package).\n *\n * @deprecated\n */\nexport abstract class Translatable extends Themeable {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String, noAccessor: true },\n ns: { type: String, noAccessor: true },\n };\n }\n\n /**\n * i18next formatter that converts given value to lowecase.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __fLowercase: FormatFunction = (value): string => {\n return value.toLowerCase();\n };\n\n /**\n * i18next formatter that presents an array of serializable items\n * as `[0], [1], [...] and [length - 1]`. For example, given an array like\n * the following: `['a', 'b', 'c']`, it will output `'a, b and c'`.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __fList: FormatFunction = (value): string => {\n return (value as string[])\n .map((v, i, a) => {\n if (i === 0) return v;\n const part = i === a.length - 1 ? ` $t(and) ` : ',';\n return `${part} ${v}`;\n })\n .join('');\n };\n\n /**\n * Chooses the right i18next formatter for the given template.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __f: FormatFunction = (...args): string => {\n const value = args[0];\n const formats = args[1]?.split(' ') ?? [];\n\n return formats.reduce((result, format) => {\n switch (format) {\n case 'lowercase':\n return Translatable.__fLowercase(result);\n case 'list':\n return Translatable.__fList(result);\n default:\n return result;\n }\n }, value);\n };\n\n private static __whenI18NReady: Promise<TFunction>;\n\n private static __isI18NReady = false;\n\n private static __i18n: i18n;\n\n private __lang = (this._i18n.options.fallbackLng as string[])[0];\n\n private __ns = (this._i18n.options.fallbackNS as string[])[0];\n\n /**\n * Creates class instance and starts loading missing translations\n * in background. Triggers render when ready.\n *\n * @param defaultNS Name of the folder translations for this component are stored in. Usually a node name without vendor prefix.\n */\n constructor(defaultNS = 'global') {\n super();\n this.ns = defaultNS;\n this._whenI18nReady.then(() => this.requestUpdate());\n }\n\n /**\n * Contains the language this component presents its translatable\n * content in. Assigning a value to this property will load new\n * translations in background and trigger a render afterwards.\n *\n * **Example:** `\"en\"`\n */\n public get lang(): string {\n return this.__lang;\n }\n\n public set lang(value: string) {\n if (!value || value === 'undefined') return;\n this.__lang = value;\n this._i18n.loadLanguages(value).then(() => {\n if (this.__lang === value) this.requestUpdate();\n });\n }\n\n /**\n * The namespace to look for the translations in. We use this property to\n * sync namespace settings with the parent element and it's highly unlikely\n * that you'll ever need to set or read it in your code.\n *\n * **Example:** `\"admin\"`\n */\n public get ns(): string {\n return this.__ns;\n }\n\n public set ns(value: string) {\n this.__ns = value;\n this._i18n.loadNamespaces(value).then(() => {\n if (this.__ns === value) this.requestUpdate();\n });\n }\n\n private static __initI18N() {\n this.__i18n = i18next.createInstance();\n this.__i18n.use(HttpApi);\n\n this.__whenI18NReady = this.__i18n.init({\n ns: ['global'],\n supportedLngs: ['nl', 'en', 'es', 'sv', 'fi', 'fr', 'de', 'zh', 'no', 'it'],\n interpolation: { format: Translatable.__f },\n fallbackLng: 'en',\n fallbackNS: 'global',\n defaultNS: 'global',\n detection: {\n order: ['querystring', 'navigator', 'htmlTag', 'path', 'subdomain'],\n caches: [],\n },\n backend: {\n loadPath: `${cdn}/translations/{{ns}}/{{lng}}.json`,\n },\n });\n\n this.__whenI18NReady.then(() => (this.__isI18NReady = true));\n\n return this.__i18n;\n }\n\n protected get _i18n(): i18n {\n return Translatable.__i18n ?? Translatable.__initI18N();\n }\n\n protected get _whenI18nReady(): Promise<TFunction> {\n return Translatable.__whenI18NReady;\n }\n\n protected get _isI18nReady(): boolean {\n return Translatable.__isI18NReady;\n }\n\n protected get _t(): TFunction {\n const ns = [this.__ns, this._i18n.options.fallbackNS as string];\n return this._i18n.getFixedT(this.__lang, ns);\n }\n}\n\ntype Base = Constructor<LitElement> & { properties?: PropertyDeclarations };\ntype Translator = (key: string, options?: StringMap) => string;\n\nexport declare class TranslatableMixinHost {\n /** Optional ISO 639-1 code describing the language element content is written in. */\n lang: string;\n\n /**\n * Namespace used by this element.\n * @since 1.4.0\n */\n ns: string;\n\n /**\n * Translation function from i18next fixed to the current language and element namespace.\n * @since 1.4.0\n */\n get t(): Translator;\n}\n\nexport const TranslatableMixin = <T extends Base>(\n BaseElement: T,\n defaultNS = ''\n): T & Constructor<TranslatableMixinHost> & { defaultNS: string } => {\n return class TranslatableElement extends BaseElement {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String },\n ns: { type: String },\n };\n }\n\n static get defaultNS(): string {\n return defaultNS;\n }\n\n lang = '';\n\n ns = defaultNS;\n\n t: Translator = (key, options) => {\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n\n if (!I18nElement) return key;\n\n const keys = [\n ...[defaultNS, ...this.ns.split(' ').reverse()]\n .map(v => v.trim())\n .filter((v, i, a) => a.indexOf(v) === i && v.length > 0)\n .reverse()\n .map((v, i, a) => `${v}:${[...a.slice(i + 1), key].join('.')}`),\n `shared:${key}`,\n ];\n\n return I18nElement.i18next.t(keys, { lng: this.lang, ...options }).toString();\n };\n\n private __untrackTranslations?: () => void;\n\n connectedCallback(): void {\n super.connectedCallback();\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n this.__untrackTranslations = I18nElement?.onTranslationChange(() => this.requestUpdate());\n }\n\n /** @readonly */\n updated(changedProperties: Map<keyof I18n, unknown>): void {\n super.updated(changedProperties);\n\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n if (!I18nElement) return;\n\n if (changedProperties.has('lang')) I18nElement.i18next.loadLanguages(this.lang);\n if (changedProperties.has('ns')) I18nElement.i18next.loadNamespaces(this.ns.split(' '));\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__untrackTranslations?.();\n }\n };\n};\n"]}
1
+ {"version":3,"file":"translatable.js","sourceRoot":"","sources":["../../src/mixins/translatable.ts"],"names":[],"mappings":"AACA,OAAO,OAAuD,MAAM,SAAS,CAAC;AAE9E,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EAAE,GAAG,EAAE,kBAAe;AAE7B;;;;;;;GAOG;AACH,MAAM,OAAgB,YAAa,SAAQ,SAAS;IA+DlD;;;;;OAKG;IACH,YAAY,SAAS,GAAG,QAAQ;QAC9B,KAAK,EAAE,CAAC;QAXF,WAAM,GAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAwB,CAAC,CAAC,CAAC,CAAC;QAEzD,SAA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, StringMap, TFunction, i18n } from 'i18next';\n\nimport HttpApi from 'i18next-http-backend';\nimport { I18n } from '../elements/public/I18n/I18n';\nimport { Themeable } from './themeable';\nimport { cdn } from '../env';\n\n/**\n * One of the base classes for each rel-specific element in the collection,\n * providing internationalization capabilities to the derived components.\n * This class MUST NOT be used on its own (hence the `abstract` keyword) or\n * referenced externally (outside of the package).\n *\n * @deprecated\n */\nexport abstract class Translatable extends Themeable {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String, noAccessor: true },\n ns: { type: String, noAccessor: true },\n };\n }\n\n /**\n * i18next formatter that converts given value to lowecase.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __fLowercase: FormatFunction = (value): string => {\n return value.toLowerCase();\n };\n\n /**\n * i18next formatter that presents an array of serializable items\n * as `[0], [1], [...] and [length - 1]`. For example, given an array like\n * the following: `['a', 'b', 'c']`, it will output `'a, b and c'`.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __fList: FormatFunction = (value): string => {\n return (value as string[])\n .map((v, i, a) => {\n if (i === 0) return v;\n const part = i === a.length - 1 ? ` $t(and) ` : ',';\n return `${part} ${v}`;\n })\n .join('');\n };\n\n /**\n * Chooses the right i18next formatter for the given template.\n * @see https://www.i18next.com/translation-function/formatting\n */\n private static __f: FormatFunction = (...args): string => {\n const value = args[0];\n const formats = args[1]?.split(' ') ?? [];\n\n return formats.reduce((result, format) => {\n switch (format) {\n case 'lowercase':\n return Translatable.__fLowercase(result);\n case 'list':\n return Translatable.__fList(result);\n default:\n return result;\n }\n }, value);\n };\n\n private static __whenI18NReady: Promise<TFunction>;\n\n private static __isI18NReady = false;\n\n private static __i18n: i18n;\n\n private __lang = (this._i18n.options.fallbackLng as string[])[0];\n\n private __ns = (this._i18n.options.fallbackNS as string[])[0];\n\n /**\n * Creates class instance and starts loading missing translations\n * in background. Triggers render when ready.\n *\n * @param defaultNS Name of the folder translations for this component are stored in. Usually a node name without vendor prefix.\n */\n constructor(defaultNS = 'global') {\n super();\n this.ns = defaultNS;\n this._whenI18nReady.then(() => this.requestUpdate());\n }\n\n /**\n * Contains the language this component presents its translatable\n * content in. Assigning a value to this property will load new\n * translations in background and trigger a render afterwards.\n *\n * **Example:** `\"en\"`\n */\n public get lang(): string {\n return this.__lang;\n }\n\n public set lang(value: string) {\n if (!value || value === 'undefined') return;\n this.__lang = value;\n this._i18n.loadLanguages(value).then(() => {\n if (this.__lang === value) this.requestUpdate();\n });\n }\n\n /**\n * The namespace to look for the translations in. We use this property to\n * sync namespace settings with the parent element and it's highly unlikely\n * that you'll ever need to set or read it in your code.\n *\n * **Example:** `\"admin\"`\n */\n public get ns(): string {\n return this.__ns;\n }\n\n public set ns(value: string) {\n this.__ns = value;\n this._i18n.loadNamespaces(value).then(() => {\n if (this.__ns === value) this.requestUpdate();\n });\n }\n\n private static __initI18N() {\n this.__i18n = i18next.createInstance();\n this.__i18n.use(HttpApi);\n\n this.__whenI18NReady = this.__i18n.init({\n ns: ['global'],\n supportedLngs: ['nl', 'en', 'es', 'sv', 'fi', 'fr', 'de', 'zh', 'no', 'it', 'pl'],\n interpolation: { format: Translatable.__f },\n fallbackLng: 'en',\n fallbackNS: 'global',\n defaultNS: 'global',\n detection: {\n order: ['querystring', 'navigator', 'htmlTag', 'path', 'subdomain'],\n caches: [],\n },\n backend: {\n loadPath: `${cdn}/translations/{{ns}}/{{lng}}.json`,\n },\n });\n\n this.__whenI18NReady.then(() => (this.__isI18NReady = true));\n\n return this.__i18n;\n }\n\n protected get _i18n(): i18n {\n return Translatable.__i18n ?? Translatable.__initI18N();\n }\n\n protected get _whenI18nReady(): Promise<TFunction> {\n return Translatable.__whenI18NReady;\n }\n\n protected get _isI18nReady(): boolean {\n return Translatable.__isI18NReady;\n }\n\n protected get _t(): TFunction {\n const ns = [this.__ns, this._i18n.options.fallbackNS as string];\n return this._i18n.getFixedT(this.__lang, ns);\n }\n}\n\ntype Base = Constructor<LitElement> & { properties?: PropertyDeclarations };\ntype Translator = (key: string, options?: StringMap) => string;\n\nexport declare class TranslatableMixinHost {\n /** Optional ISO 639-1 code describing the language element content is written in. */\n lang: string;\n\n /**\n * Namespace used by this element.\n * @since 1.4.0\n */\n ns: string;\n\n /**\n * Translation function from i18next fixed to the current language and element namespace.\n * @since 1.4.0\n */\n get t(): Translator;\n}\n\nexport const TranslatableMixin = <T extends Base>(\n BaseElement: T,\n defaultNS = ''\n): T & Constructor<TranslatableMixinHost> & { defaultNS: string } => {\n return class TranslatableElement extends BaseElement {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String },\n ns: { type: String },\n };\n }\n\n static get defaultNS(): string {\n return defaultNS;\n }\n\n lang = '';\n\n ns = defaultNS;\n\n t: Translator = (key, options) => {\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n\n if (!I18nElement) return key;\n\n const keys = [\n ...[defaultNS, ...this.ns.split(' ').reverse()]\n .map(v => v.trim())\n .filter((v, i, a) => a.indexOf(v) === i && v.length > 0)\n .reverse()\n .map((v, i, a) => `${v}:${[...a.slice(i + 1), key].join('.')}`),\n `shared:${key}`,\n ];\n\n return I18nElement.i18next.t(keys, { lng: this.lang, ...options }).toString();\n };\n\n private __untrackTranslations?: () => void;\n\n connectedCallback(): void {\n super.connectedCallback();\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n this.__untrackTranslations = I18nElement?.onTranslationChange(() => this.requestUpdate());\n }\n\n /** @readonly */\n updated(changedProperties: Map<keyof I18n, unknown>): void {\n super.updated(changedProperties);\n\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n | undefined;\n if (!I18nElement) return;\n\n if (changedProperties.has('lang')) I18nElement.i18next.loadLanguages(this.lang);\n if (changedProperties.has('ns')) I18nElement.i18next.loadNamespaces(this.ns.split(' '));\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__untrackTranslations?.();\n }\n };\n};\n"]}
@@ -2,4 +2,4 @@ export interface Duration {
2
2
  count: number;
3
3
  units: string;
4
4
  }
5
- export declare function parseDuration(value: string): Duration;
5
+ export declare function parseDuration(value: string, full?: boolean): Duration;
@@ -1,7 +1,11 @@
1
- export function parseDuration(value) {
1
+ export function parseDuration(value, full = false) {
2
+ var _a;
3
+ const unitsMap = { y: 'year', m: 'month', w: 'week', d: 'day' };
4
+ const count = value.replace(/(y|m|w|d)/, '');
5
+ const unit = value.replace(/\.?\d+/, '');
2
6
  return {
3
- count: parseInt(value.replace(/(y|m|w|d)/, '')),
4
- units: value.replace(/\.?\d+/, ''),
7
+ count: count === '.5' ? 0.5 : parseInt(count),
8
+ units: full ? (_a = unitsMap[unit]) !== null && _a !== void 0 ? _a : unit : unit,
5
9
  };
6
10
  }
7
11
  //# sourceMappingURL=parse-duration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-duration.js","sourceRoot":"","sources":["../../src/utils/parse-duration.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO;QACL,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC/C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACnC,CAAC;AACJ,CAAC","sourcesContent":["export interface Duration {\n count: number;\n units: string;\n}\n\nexport function parseDuration(value: string): Duration {\n return {\n count: parseInt(value.replace(/(y|m|w|d)/, '')),\n units: value.replace(/\\.?\\d+/, ''),\n };\n}\n"]}
1
+ {"version":3,"file":"parse-duration.js","sourceRoot":"","sources":["../../src/utils/parse-duration.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,IAAI,GAAG,KAAK;;IACvD,MAAM,QAAQ,GAA2B,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;IACxF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEzC,OAAO;QACL,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC7C,KAAK,EAAE,IAAI,CAAC,CAAC,OAAC,QAAQ,CAAC,IAAI,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,IAAI;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["export interface Duration {\n count: number;\n units: string;\n}\n\nexport function parseDuration(value: string, full = false): Duration {\n const unitsMap: Record<string, string> = { y: 'year', m: 'month', w: 'week', d: 'day' };\n const count = value.replace(/(y|m|w|d)/, '');\n const unit = value.replace(/\\.?\\d+/, '');\n\n return {\n count: count === '.5' ? 0.5 : parseInt(count),\n units: full ? unitsMap[unit] ?? unit : unit,\n };\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/elements",
3
3
  "type": "module",
4
- "version": "1.15.0-beta.1",
4
+ "version": "1.15.0-beta.10",
5
5
  "description": "E-commerce web components by Foxy.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,12 +26,12 @@
26
26
  "prepack": "npm run lint && rimraf dist && node ./.build/compile-for-npm.js && rollup -c"
27
27
  },
28
28
  "dependencies": {
29
- "@foxy.io/sdk": "^1.6.0",
29
+ "@foxy.io/sdk": "^1.8.2",
30
30
  "@open-wc/lit-helpers": "^0.3.11",
31
31
  "@open-wc/scoped-elements": "1.2.1",
32
32
  "@polymer/iron-icons": "^3.0.1",
33
33
  "@vaadin-component-factory/vcf-tooltip": "^1.3.14",
34
- "@vaadin/vaadin": "^15.0.6",
34
+ "@vaadin/vaadin": "^14.8.5",
35
35
  "cookie-storage": "^6.1.0",
36
36
  "dedent": "^0.7.0",
37
37
  "email-validator": "^2.0.4",
@@ -1 +0,0 @@
1
- import{L as e,j as t,_ as s,h as i}from"./shared-63eaded9.js";import{A as a}from"./shared-00563cb0.js";import{C as o}from"./shared-593f7e2c.js";import{T as n,R as l,a as d}from"./shared-9a40309d.js";import{F as r}from"./shared-1761daef.js";import{c}from"./shared-4e709717.js";class h extends CustomEvent{constructor(e=!1){super("hide",{detail:{cancelled:e}})}}class u extends CustomEvent{constructor(){super("show")}}let p,m=e=>e;class v extends(n(l(e))){static get styles(){return[super.styles,t(p||(p=m`:host{position:relative;z-index:200}`))]}}let b,_,y,g,f,w,x,$=e=>e;class D extends(d(o(n(e)))){constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.header="",this.alert=!1,this.__handleKeyDown=e=>{"Escape"===e.key&&D.openDialogs[0]===this&&this.closable&&this.hide(this.editable)},this.__connected=!1,this.__visible=!1}static get properties(){return s(s({},super.properties),{},{__connected:{attribute:!1},__visible:{attribute:!1},centered:{type:Boolean},closable:{type:Boolean},editable:{type:Boolean},header:{type:String},alert:{type:Boolean},open:{type:Boolean,noAccessor:!0}})}static get styles(){return[super.styles,t(b||(b=$`.grid-cols-header{grid-template-columns:1fr auto 1fr}.scale-85{--tw-scale-x:0.85;--tw-scale-y:0.85}`))]}get open(){return this.__visible&&this.__connected}set open(e){e===this.open||(e?this.show():this.hide(this.editable))}connectedCallback(){super.connectedCallback(),addEventListener("keydown",this.__handleKeyDown)}disconnectedCallback(){var e;super.disconnectedCallback(),removeEventListener("keydown",this.__handleKeyDown),null===(e=D.dialogWindows.get(this))||void 0===e||e.remove(),D.dialogWindows.delete(this)}createRenderRoot(){const e=new v,t=document.querySelectorAll(D.dialogWindowsHost),s=Array.from(t).pop();return e.addEventListener("fetch",(e=>{e instanceof r&&(e.stopImmediatePropagation(),e.preventDefault(),e.respondWith(new a(this).fetch(e.request)))})),null==s||s.appendChild(e),D.dialogWindows.set(this,e),e.shadowRoot}render(e){if(!this.__connected)return i(_||(_=$``));const t=D.openDialogs[0]===this,s=D.openDialogs[1]===this,a=D.openDialogs[2]===this,o=!t&&!s&&!a;return i(y||(y=$` <div class="${0}"> <div id="backdrop" class="${0}" tabindex="-1" @click="${0}"></div> <div role="dialog" aria-labelledby="dialog-title" class="${0}"> <div class="${0}"> <div class="h-l grid grid-cols-header text-m font-lumo font-medium border-b border-contrast-10"> ${0} <h1 id="dialog-title" class="truncate self-center text-center"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </h1> ${0} </div> <div class="flex-1 overflow-y-auto overflow-x-hidden overscroll-contain"> <div class="p-m relative">${0}</div> </div> </div> </div> </div> `),c({"z-50 fixed inset-0":!0,"pointer-events-none":!this.__visible}),c({"select-none ease-in-out transition duration-500 absolute inset-0 bg-shade-50 focus-outline-none":!0,"opacity-100":this.__visible,"opacity-0":!this.__visible}),(()=>this.closable&&this.hide(this.editable)),c({"transform origin-bottom ease-in-out transition duration-500 relative h-full ml-auto sm-origin-center sm-max-w-modal":!0,"flex justify-center items-end sm-items-center mr-auto":this.alert,"translate-y-full sm-translate-y-0":!this.__visible,"sm-translate-x-full":!this.alert&&!this.__visible,"sm-opacity-0 sm-scale-110":this.alert&&!this.__visible,"translate-y-0 translate-x-0":t&&this.__visible,"scale-95 -translate-y-s sm-translate-y-0":s&&this.__visible,"scale-90 -translate-y-m sm-translate-y-0":a&&this.__visible,"opacity-0 scale-85 -translate-y-l sm-translate-y-0":o&&this.__visible}),c({"overflow-hidden flex flex-col bg-base rounded-t-l sm-rounded-b-l":!0,"absolute inset-0 mt-xl sm-m-xl":!this.alert,"shadow-xxl":this.__visible}),this.closable&&!this.hiddenSelector.matches("close-button",!0)?i(g||(g=$` <vaadin-button id="close-button" theme="tertiary-inline" class="mr-auto m-s px-s" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("close-button",!0),(()=>this.hide(this.editable)),this.lang,this.editable?"cancel":"close",this.ns):i(f||(f=$`<div></div>`)),this.ns,this.lang,this.header,this.editable&&!this.hiddenSelector.matches("save-button",!0)?i(w||(w=$` <vaadin-button data-testid="save-button" ?disabled="${0}" theme="primary" class="ml-auto h-auto min-h-0 min-w-0 m-xs px-m" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="save"></foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("save-button",!0),this.save,this.ns,this.lang):i(x||(x=$`<div></div>`)),null==e?void 0:e())}async hide(e=!1){var t;null===(t=this.__returnFocusTo)||void 0===t||t.focus(),await this.__setOpenDialogs(D.openDialogs.filter((e=>e!==this))),await this.__setConnected(!1),this.dispatchEvent(new D.HideEvent(!!e))}async show(e){this.__returnFocusTo=e,await this.__setConnected(!0),await this.__setOpenDialogs([this,...D.openDialogs]);const t=this.renderRoot.querySelector("#close-button");null==t||t.focus(),this.dispatchEvent(new D.ShowEvent)}async save(){await this.hide(!1)}async __setOpenDialogs(e){D.openDialogs.length=0,D.openDialogs.push(...e),await Promise.all([Promise.all(D.openDialogs.map((e=>e.requestUpdate()))),new Promise((e=>{this.renderRoot.querySelector("#backdrop").addEventListener("transitionend",e,{once:!0}),this.__visible=D.openDialogs.includes(this)}))])}async __setConnected(e){this.__connected=e,await this.updateComplete.then((()=>this.getBoundingClientRect()))}}D.dialogWindowsHost="#foxy-dialog-windows-host, body",D.dialogWindows=new WeakMap,D.openDialogs=[],D.ShowEvent=u,D.HideEvent=h,customElements.define("foxy-dialog-window",v);export{D};