@foxy.io/elements 1.26.0-beta.2 → 1.27.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-api-browser.js +1 -1
  6. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  8. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  9. package/dist/cdn/foxy-attribute-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-form.js +1 -1
  11. package/dist/cdn/foxy-billing-address-card.js +1 -1
  12. package/dist/cdn/foxy-cancellation-form.js +1 -1
  13. package/dist/cdn/foxy-cart-card.js +1 -1
  14. package/dist/cdn/foxy-cart-form.js +1 -1
  15. package/dist/cdn/foxy-client-card.js +1 -1
  16. package/dist/cdn/foxy-client-form.js +1 -1
  17. package/dist/cdn/foxy-collection-page.js +1 -1
  18. package/dist/cdn/foxy-collection-pages.js +1 -1
  19. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  20. package/dist/cdn/foxy-coupon-card.js +1 -1
  21. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  22. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  23. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  24. package/dist/cdn/foxy-coupon-form.js +1 -1
  25. package/dist/cdn/foxy-custom-field-card.js +1 -1
  26. package/dist/cdn/foxy-custom-field-form.js +1 -1
  27. package/dist/cdn/foxy-customer-api.js +1 -1
  28. package/dist/cdn/foxy-customer-card.js +1 -1
  29. package/dist/cdn/foxy-customer-form.js +1 -1
  30. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  31. package/dist/cdn/foxy-customer-portal.js +1 -1
  32. package/dist/cdn/foxy-customer.js +3 -3
  33. package/dist/cdn/foxy-customers-table.js +1 -1
  34. package/dist/cdn/foxy-discount-builder.js +1 -1
  35. package/dist/cdn/foxy-discount-card.js +1 -1
  36. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  37. package/dist/cdn/foxy-donation.js +1 -1
  38. package/dist/cdn/foxy-downloadable-card.js +1 -1
  39. package/dist/cdn/foxy-downloadable-form.js +1 -1
  40. package/dist/cdn/foxy-email-template-card.js +1 -1
  41. package/dist/cdn/foxy-email-template-form.js +1 -1
  42. package/dist/cdn/foxy-error-entry-card.js +1 -1
  43. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  44. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  45. package/dist/cdn/foxy-form-dialog.js +1 -1
  46. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  47. package/dist/cdn/foxy-gift-card-card.js +1 -1
  48. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  49. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  50. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  51. package/dist/cdn/foxy-gift-card-form.js +1 -1
  52. package/dist/cdn/foxy-i18n-editor.js +2 -2
  53. package/dist/cdn/foxy-i18n.js +1 -1
  54. package/dist/cdn/foxy-integration-card.js +1 -1
  55. package/dist/cdn/foxy-integration-form.js +1 -1
  56. package/dist/cdn/foxy-item-card.js +1 -1
  57. package/dist/cdn/foxy-item-category-card.js +1 -1
  58. package/dist/cdn/foxy-item-category-form.js +1 -1
  59. package/dist/cdn/foxy-item-form.js +1 -1
  60. package/dist/cdn/foxy-item-option-card.js +1 -1
  61. package/dist/cdn/foxy-item-option-form.js +1 -1
  62. package/dist/cdn/foxy-items-form.js +1 -1
  63. package/dist/cdn/foxy-native-integration-card.js +1 -1
  64. package/dist/cdn/foxy-native-integration-form.js +1 -1
  65. package/dist/cdn/foxy-nucleon-element.js +1 -1
  66. package/dist/cdn/foxy-pagination.js +1 -1
  67. package/dist/cdn/foxy-passkey-card.js +1 -1
  68. package/dist/cdn/foxy-passkey-form.js +1 -1
  69. package/dist/cdn/foxy-payment-card.js +1 -1
  70. package/dist/cdn/foxy-payment-method-card.js +1 -1
  71. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  72. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  73. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  74. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  75. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  76. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  77. package/dist/cdn/foxy-payments-api.js +1 -1
  78. package/dist/cdn/foxy-query-builder.js +1 -1
  79. package/dist/cdn/foxy-report-form.js +5 -5
  80. package/dist/cdn/foxy-reports-table.js +1 -1
  81. package/dist/cdn/foxy-shipment-card.js +1 -1
  82. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  83. package/dist/cdn/foxy-sign-in-form.js +1 -1
  84. package/dist/cdn/foxy-spinner.js +2 -2
  85. package/dist/cdn/foxy-store-card.js +1 -1
  86. package/dist/cdn/foxy-store-form.js +1 -1
  87. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  88. package/dist/cdn/foxy-subscription-card.js +1 -1
  89. package/dist/cdn/foxy-subscription-form.js +1 -1
  90. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  91. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  92. package/dist/cdn/foxy-swipe-actions.js +1 -1
  93. package/dist/cdn/foxy-table.js +1 -1
  94. package/dist/cdn/foxy-tax-card.js +1 -1
  95. package/dist/cdn/foxy-tax-form.js +1 -1
  96. package/dist/cdn/foxy-template-config-form.js +1 -1
  97. package/dist/cdn/foxy-template-form.js +1 -1
  98. package/dist/cdn/foxy-template-set-card.js +1 -1
  99. package/dist/cdn/foxy-template-set-form.js +1 -1
  100. package/dist/cdn/foxy-transaction-card.js +1 -1
  101. package/dist/cdn/foxy-transaction.js +1 -1
  102. package/dist/cdn/foxy-transactions-table.js +1 -1
  103. package/dist/cdn/foxy-user-card.js +1 -1
  104. package/dist/cdn/foxy-user-form.js +1 -1
  105. package/dist/cdn/foxy-users-table.js +1 -1
  106. package/dist/cdn/foxy-webhook-card.js +1 -1
  107. package/dist/cdn/foxy-webhook-form.js +1 -1
  108. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  109. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  110. package/dist/cdn/{shared-902b0773.js → shared-019ad470.js} +1 -1
  111. package/dist/cdn/{shared-19732959.js → shared-02883252.js} +1 -1
  112. package/dist/cdn/{shared-213c60d3.js → shared-062f3122.js} +1 -1
  113. package/dist/cdn/{shared-38499b40.js → shared-09ac8087.js} +1 -1
  114. package/dist/cdn/{shared-d7910e16.js → shared-0dcc1ea4.js} +1 -1
  115. package/dist/cdn/{shared-eaceb493.js → shared-0fdfc2c2.js} +1 -1
  116. package/dist/cdn/{shared-550f9cae.js → shared-13afcc16.js} +2 -2
  117. package/dist/cdn/{shared-aa4f6a25.js → shared-1af365fe.js} +1 -1
  118. package/dist/cdn/{shared-f7365ea5.js → shared-1bb9c21a.js} +1 -1
  119. package/dist/cdn/shared-20142d51.js +1 -0
  120. package/dist/cdn/{shared-f3b35364.js → shared-22ba9566.js} +1 -1
  121. package/dist/cdn/{shared-2d40129d.js → shared-24ceebec.js} +6 -6
  122. package/dist/cdn/{shared-d7be11de.js → shared-2bf89a21.js} +1 -1
  123. package/dist/cdn/{shared-8ed04343.js → shared-2d7cab3c.js} +1 -1
  124. package/dist/cdn/{shared-d2dc8486.js → shared-30f373f2.js} +1 -1
  125. package/dist/cdn/{shared-31b7a6ad.js → shared-36a09fe6.js} +1 -1
  126. package/dist/cdn/{shared-942ef1fc.js → shared-380c0453.js} +2 -2
  127. package/dist/cdn/{shared-1f8ae298.js → shared-3895091e.js} +1 -1
  128. package/dist/cdn/{shared-50a3cb63.js → shared-4345e9fd.js} +1 -1
  129. package/dist/cdn/{shared-f9180815.js → shared-51c4a6dd.js} +1 -1
  130. package/dist/cdn/{shared-ac62d098.js → shared-5ba412f7.js} +1 -1
  131. package/dist/cdn/{shared-16b391d9.js → shared-5ecc7f74.js} +1 -1
  132. package/dist/cdn/{shared-55f58244.js → shared-5f6d7cc6.js} +1 -1
  133. package/dist/cdn/shared-6310fdde.js +11 -0
  134. package/dist/cdn/{shared-51318b75.js → shared-6424d196.js} +1 -1
  135. package/dist/cdn/{shared-76812651.js → shared-648f62a1.js} +1 -1
  136. package/dist/cdn/{shared-d28b95c6.js → shared-67696f2f.js} +2 -2
  137. package/dist/cdn/{shared-bc113435.js → shared-708f960f.js} +1 -1
  138. package/dist/cdn/{shared-0838fad0.js → shared-74086729.js} +1 -1
  139. package/dist/cdn/{shared-bb05cfed.js → shared-8438d4ca.js} +1 -1
  140. package/dist/cdn/{shared-b06b1473.js → shared-8a92f939.js} +1 -1
  141. package/dist/cdn/{shared-8d51eaa6.js → shared-8addaf74.js} +1 -1
  142. package/dist/cdn/{shared-e7dffedb.js → shared-8b7ef8ec.js} +1 -1
  143. package/dist/cdn/{shared-c37707da.js → shared-8c937a7c.js} +1 -1
  144. package/dist/cdn/shared-8cc1f513.js +1 -0
  145. package/dist/cdn/{shared-360e1c8e.js → shared-8f706991.js} +1 -1
  146. package/dist/cdn/{shared-ee54f718.js → shared-921d4691.js} +1 -1
  147. package/dist/cdn/{shared-d3bf9ac0.js → shared-9803aa7c.js} +2 -2
  148. package/dist/cdn/{shared-11c2efc8.js → shared-99940888.js} +1 -1
  149. package/dist/cdn/{shared-027a9660.js → shared-9f41236b.js} +1 -1
  150. package/dist/cdn/{shared-b23c903e.js → shared-9f570db0.js} +1 -1
  151. package/dist/cdn/{shared-6a7f96c4.js → shared-a0435ec6.js} +1 -1
  152. package/dist/cdn/{shared-d519a301.js → shared-a0c6a159.js} +2 -2
  153. package/dist/cdn/{shared-533c0d6a.js → shared-a3ec1362.js} +1 -1
  154. package/dist/cdn/{shared-60e167ae.js → shared-a5ec3472.js} +1 -1
  155. package/dist/cdn/{shared-cadbb2e3.js → shared-adecdd5f.js} +1 -1
  156. package/dist/cdn/shared-b114fee0.js +1 -0
  157. package/dist/cdn/{shared-5407617a.js → shared-b17fcc8f.js} +1 -1
  158. package/dist/cdn/{shared-7d24a3f1.js → shared-b56daa27.js} +1 -1
  159. package/dist/cdn/{shared-c36477d7.js → shared-c0242421.js} +1 -1
  160. package/dist/cdn/{shared-6da29a49.js → shared-c0cbb20a.js} +1 -1
  161. package/dist/cdn/{shared-be5ef71d.js → shared-c692070c.js} +1 -1
  162. package/dist/cdn/{shared-a26d7f7a.js → shared-ce9795cd.js} +3 -3
  163. package/dist/cdn/{shared-87f81b69.js → shared-d070d509.js} +1 -1
  164. package/dist/cdn/{shared-a502026c.js → shared-d1ee06bb.js} +1 -1
  165. package/dist/cdn/{shared-2b68c60f.js → shared-d3e8c449.js} +1 -1
  166. package/dist/cdn/{shared-df8380e1.js → shared-d61d1d8d.js} +1 -1
  167. package/dist/cdn/{shared-dc8c202b.js → shared-d96312ed.js} +1 -1
  168. package/dist/cdn/{shared-2787655b.js → shared-d9f44257.js} +1 -1
  169. package/dist/cdn/shared-dbfccb3e.js +2 -0
  170. package/dist/cdn/{shared-7f33a83a.js → shared-dc73b9a5.js} +1 -1
  171. package/dist/cdn/{shared-1e3d7d40.js → shared-ded1248f.js} +1 -1
  172. package/dist/cdn/{shared-be8c90cc.js → shared-e1cade57.js} +11 -22
  173. package/dist/cdn/{shared-927fa880.js → shared-e260fc5a.js} +1 -1
  174. package/dist/cdn/{shared-69c67952.js → shared-e460ee3d.js} +1 -1
  175. package/dist/cdn/{shared-e8621807.js → shared-f0269599.js} +1 -1
  176. package/dist/cdn/{shared-9f039798.js → shared-f655b20d.js} +1 -1
  177. package/dist/cdn/{shared-4721aeb1.js → shared-fba9b7b3.js} +1 -1
  178. package/dist/cdn/{shared-de59c42c.js → shared-fcddc6cc.js} +1 -1
  179. package/dist/cdn/{shared-1c07b1be.js → shared-fe165f2e.js} +1 -1
  180. package/dist/cdn/{shared-f1ee9bf9.js → shared-ff35e803.js} +1 -1
  181. package/dist/cdn/translations/access-recovery-form/en.json +5 -2
  182. package/dist/cdn/translations/address-card/en.json +1 -1
  183. package/dist/cdn/translations/address-form/en.json +86 -26
  184. package/dist/cdn/translations/admin-subscription-card/en.json +1 -1
  185. package/dist/cdn/translations/applied-coupon-code-card/en.json +1 -1
  186. package/dist/cdn/translations/applied-coupon-code-form/en.json +2 -1
  187. package/dist/cdn/translations/applied-tax-card/en.json +1 -1
  188. package/dist/cdn/translations/attribute-card/en.json +1 -1
  189. package/dist/cdn/translations/attribute-form/en.json +36 -17
  190. package/dist/cdn/translations/billing-address-card/en.json +1 -1
  191. package/dist/cdn/translations/cancellation-form/en.json +2 -1
  192. package/dist/cdn/translations/cart-card/en.json +1 -1
  193. package/dist/cdn/translations/cart-form/en.json +51 -29
  194. package/dist/cdn/translations/client-card/en.json +1 -1
  195. package/dist/cdn/translations/client-form/en.json +2 -1
  196. package/dist/cdn/translations/coupon-card/en.json +1 -1
  197. package/dist/cdn/translations/coupon-code-form/en.json +2 -1
  198. package/dist/cdn/translations/coupon-codes-form/en.json +3 -2
  199. package/dist/cdn/translations/coupon-form/en.json +9 -5
  200. package/dist/cdn/translations/custom-field-card/en.json +1 -1
  201. package/dist/cdn/translations/custom-field-form/en.json +2 -1
  202. package/dist/cdn/translations/customer/en.json +143 -57
  203. package/dist/cdn/translations/customer-card/en.json +1 -1
  204. package/dist/cdn/translations/customer-form/en.json +2 -1
  205. package/dist/cdn/translations/customer-portal/en.json +106 -38
  206. package/dist/cdn/translations/customers-table/en.json +2 -1
  207. package/dist/cdn/translations/discount-card/en.json +1 -1
  208. package/dist/cdn/translations/downloadable-card/en.json +1 -1
  209. package/dist/cdn/translations/downloadable-form/en.json +2 -1
  210. package/dist/cdn/translations/email-template-card/en.json +1 -1
  211. package/dist/cdn/translations/email-template-form/en.json +2 -1
  212. package/dist/cdn/translations/filter-attribute-card/en.json +1 -1
  213. package/dist/cdn/translations/filter-attribute-form/en.json +2 -1
  214. package/dist/cdn/translations/generate-codes-form/en.json +2 -1
  215. package/dist/cdn/translations/gift-card-card/en.json +1 -1
  216. package/dist/cdn/translations/gift-card-code-form/en.json +4 -3
  217. package/dist/cdn/translations/gift-card-code-log-card/en.json +1 -1
  218. package/dist/cdn/translations/gift-card-codes-form/en.json +3 -2
  219. package/dist/cdn/translations/gift-card-form/en.json +11 -7
  220. package/dist/cdn/translations/i18n-editor/en.json +2 -1
  221. package/dist/cdn/translations/integration-card/en.json +1 -1
  222. package/dist/cdn/translations/integration-form/en.json +2 -1
  223. package/dist/cdn/translations/item-card/en.json +1 -1
  224. package/dist/cdn/translations/item-category-card/en.json +1 -1
  225. package/dist/cdn/translations/item-category-form/en.json +3 -2
  226. package/dist/cdn/translations/item-form/en.json +44 -23
  227. package/dist/cdn/translations/item-option-form/en.json +2 -1
  228. package/dist/cdn/translations/native-integration-card/en.json +1 -1
  229. package/dist/cdn/translations/native-integration-form/en.json +2 -1
  230. package/dist/cdn/translations/passkey-card/en.json +1 -1
  231. package/dist/cdn/translations/passkey-form/en.json +2 -1
  232. package/dist/cdn/translations/payment-card/en.json +1 -1
  233. package/dist/cdn/translations/payment-method-card/en.json +1 -1
  234. package/dist/cdn/translations/payments-api-fraud-protection-card/en.json +1 -1
  235. package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +2 -1
  236. package/dist/cdn/translations/payments-api-payment-method-card/en.json +1 -1
  237. package/dist/cdn/translations/payments-api-payment-method-form/en.json +2 -1
  238. package/dist/cdn/translations/payments-api-payment-preset-card/en.json +1 -1
  239. package/dist/cdn/translations/payments-api-payment-preset-form/en.json +2 -1
  240. package/dist/cdn/translations/report-form/en.json +2 -1
  241. package/dist/cdn/translations/reports-table/en.json +2 -1
  242. package/dist/cdn/translations/shared/en.json +4 -0
  243. package/dist/cdn/translations/shared/es.json +3 -0
  244. package/dist/cdn/translations/shipment-card/en.json +1 -1
  245. package/dist/cdn/translations/shipping-method-card/en.json +1 -1
  246. package/dist/cdn/translations/sign-in-form/en.json +2 -1
  247. package/dist/cdn/translations/spinner/en.json +1 -1
  248. package/dist/cdn/translations/store-card/en.json +1 -1
  249. package/dist/cdn/translations/store-form/en.json +2 -1
  250. package/dist/cdn/translations/store-shipping-method-form/en.json +3 -2
  251. package/dist/cdn/translations/subscription-card/en.json +1 -1
  252. package/dist/cdn/translations/subscription-form/en.json +10 -7
  253. package/dist/cdn/translations/subscription-settings-form/en.json +2 -1
  254. package/dist/cdn/translations/subscriptions-table/en.json +2 -1
  255. package/dist/cdn/translations/tax-card/en.json +1 -1
  256. package/dist/cdn/translations/tax-form/en.json +2 -1
  257. package/dist/cdn/translations/template-config-form/en.json +2 -1
  258. package/dist/cdn/translations/template-form/en.json +2 -1
  259. package/dist/cdn/translations/template-set-card/en.json +1 -1
  260. package/dist/cdn/translations/template-set-form/en.json +4 -2
  261. package/dist/cdn/translations/transaction/en.json +177 -75
  262. package/dist/cdn/translations/transaction-card/en.json +1 -1
  263. package/dist/cdn/translations/transactions-table/en.json +2 -1
  264. package/dist/cdn/translations/user-card/en.json +1 -1
  265. package/dist/cdn/translations/user-form/en.json +2 -1
  266. package/dist/cdn/translations/users-table/en.json +4 -2
  267. package/dist/cdn/translations/webhook-card/en.json +1 -1
  268. package/dist/cdn/translations/webhook-form/en.json +4 -3
  269. package/dist/cdn/translations/webhook-log-card/en.json +1 -1
  270. package/dist/cdn/translations/webhook-status-card/en.json +1 -1
  271. package/dist/elements/internal/InternalForm/InternalForm.js +10 -3
  272. package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
  273. package/dist/elements/internal/InternalSourceControl/InternalSourceControl.d.ts +1 -0
  274. package/dist/elements/internal/InternalSourceControl/InternalSourceControl.js +19 -4
  275. package/dist/elements/internal/InternalSourceControl/InternalSourceControl.js.map +1 -1
  276. package/dist/elements/public/AddressForm/AddressForm.d.ts +13 -24
  277. package/dist/elements/public/AddressForm/AddressForm.js +76 -275
  278. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  279. package/dist/elements/public/AddressForm/index.d.ts +3 -6
  280. package/dist/elements/public/AddressForm/index.js +3 -6
  281. package/dist/elements/public/AddressForm/index.js.map +1 -1
  282. package/dist/elements/public/AddressForm/types.d.ts +4 -15
  283. package/dist/elements/public/AddressForm/types.js.map +1 -1
  284. package/dist/elements/public/AttributeForm/AttributeForm.d.ts +15 -25
  285. package/dist/elements/public/AttributeForm/AttributeForm.js +35 -238
  286. package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
  287. package/dist/elements/public/AttributeForm/index.d.ts +3 -7
  288. package/dist/elements/public/AttributeForm/index.js +3 -7
  289. package/dist/elements/public/AttributeForm/index.js.map +1 -1
  290. package/dist/elements/public/AttributeForm/types.d.ts +4 -7
  291. package/dist/elements/public/AttributeForm/types.js.map +1 -1
  292. package/dist/elements/public/CustomerForm/CustomerForm.d.ts +0 -1
  293. package/dist/elements/public/CustomerForm/CustomerForm.js +5 -8
  294. package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
  295. package/dist/mixins/translatable.d.ts +6 -0
  296. package/dist/mixins/translatable.js +26 -8
  297. package/dist/mixins/translatable.js.map +1 -1
  298. package/package.json +1 -1
  299. package/dist/cdn/shared-132b2b71.js +0 -2
  300. package/dist/cdn/shared-6d34289d.js +0 -1
  301. package/dist/cdn/shared-f2eb454c.js +0 -1
@@ -33,7 +33,7 @@
33
33
  "spinner": {
34
34
  "loading_busy": "Loading",
35
35
  "loading_empty": "No customer",
36
- "loading_error": "Failed to load"
36
+ "loading_error": "Unknown error"
37
37
  }
38
38
  },
39
39
  "items": {
@@ -68,7 +68,7 @@
68
68
  "spinner": {
69
69
  "loading_busy": "Loading",
70
70
  "loading_empty": "No items",
71
- "loading_error": "Failed to load"
71
+ "loading_error": "Unknown error"
72
72
  }
73
73
  }
74
74
  },
@@ -224,7 +224,7 @@
224
224
  "spinner": {
225
225
  "loading_busy": "Loading",
226
226
  "loading_empty": "No discounts",
227
- "loading_error": "Failed to load"
227
+ "loading_error": "Unknown error"
228
228
  }
229
229
  }
230
230
  }
@@ -241,7 +241,7 @@
241
241
  "spinner": {
242
242
  "loading_busy": "Loading",
243
243
  "loading_empty": "No coupons",
244
- "loading_error": "Failed to load"
244
+ "loading_error": "Unknown error"
245
245
  }
246
246
  }
247
247
  }
@@ -263,25 +263,44 @@
263
263
  "undo_cancel": "Review",
264
264
  "undo_confirm": "Discard",
265
265
  "attribute-form": {
266
- "cancel": "Cancel",
267
- "confirm": "Confirm",
268
- "create": "Create",
269
- "date": "{{value, date}}",
270
- "date_created": "Created on",
271
- "date_modified": "Last updated on",
272
- "delete": "Delete",
273
- "delete_prompt": "This resource will be permanently removed. Are you sure?",
274
- "name": "Name",
275
- "v8n_required": "Required",
276
- "v8n_too_long": "Too long",
277
- "value": "Value",
278
- "visibility": "Visibility",
279
- "visibility_private": "Only me",
280
- "visibility_public": "Everyone",
281
- "visibility_restricted": "Store admins",
266
+ "name": {
267
+ "label": "Name",
268
+ "placeholder": "Required",
269
+ "helper_text": "Name of this attribute. It does not have to be unique.",
270
+ "v8n_required": "Please name this attribute.",
271
+ "v8n_too_long": "Please choose a name that is 500 characters long or less."
272
+ },
273
+ "value": {
274
+ "label": "Value",
275
+ "placeholder": "Required",
276
+ "helper_text": "Value of this attribute. Attribute values are automatically HTML-escaped.",
277
+ "v8n_required": "Please provide a value for this attribute.",
278
+ "v8n_too_long": "Unfortunately we can't store values that are more than 1000 characters long."
279
+ },
280
+ "visibility": {
281
+ "label": "Visibility",
282
+ "option_public": "Everyone",
283
+ "option_restricted": "Store admins",
284
+ "option_private": "Only me",
285
+ "helper_text": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them."
286
+ },
287
+ "timestamps": {
288
+ "date": "{{value, date}}",
289
+ "date_created": "Created on",
290
+ "date_modified": "Last updated on"
291
+ },
292
+ "delete": {
293
+ "delete": "Delete",
294
+ "cancel": "Cancel",
295
+ "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back."
296
+ },
297
+ "create": {
298
+ "create": "Create"
299
+ },
282
300
  "spinner": {
301
+ "refresh": "Refresh",
283
302
  "loading_busy": "Loading",
284
- "loading_error": "Failed to load"
303
+ "loading_error": "Unknown error"
285
304
  }
286
305
  }
287
306
  },
@@ -292,7 +311,7 @@
292
311
  "spinner": {
293
312
  "loading_busy": "Loading",
294
313
  "loading_empty": "No attributes",
295
- "loading_error": "Failed to load"
314
+ "loading_error": "Unknown error"
296
315
  }
297
316
  },
298
317
  "first": "First",
@@ -349,8 +368,9 @@
349
368
  "date": "{{value, date}}"
350
369
  },
351
370
  "spinner": {
371
+ "refresh": "Refresh",
352
372
  "loading_busy": "Loading",
353
- "loading_error": "Failed to load"
373
+ "loading_error": "Unknown error"
354
374
  },
355
375
  "delete": {
356
376
  "delete": "Delete",
@@ -368,7 +388,7 @@
368
388
  "spinner": {
369
389
  "loading_busy": "Loading",
370
390
  "loading_empty": "No item options",
371
- "loading_error": "Failed to load"
391
+ "loading_error": "Unknown error"
372
392
  }
373
393
  },
374
394
  "create_button_text": "Add option +",
@@ -393,8 +413,9 @@
393
413
  "create": "Create"
394
414
  },
395
415
  "spinner": {
416
+ "refresh": "Refresh",
396
417
  "loading_busy": "Loading",
397
- "loading_error": "Failed to load"
418
+ "loading_error": "Unknown error"
398
419
  }
399
420
  }
400
421
  }
@@ -430,8 +451,9 @@
430
451
  "value": "Value",
431
452
  "visibility": "Visibility",
432
453
  "spinner": {
454
+ "refresh": "Refresh",
433
455
  "loading_busy": "Loading",
434
- "loading_error": "Failed to load"
456
+ "loading_error": "Unknown error"
435
457
  }
436
458
  }
437
459
  },
@@ -447,7 +469,7 @@
447
469
  "spinner": {
448
470
  "loading_busy": "Loading",
449
471
  "loading_empty": "No custom fields",
450
- "loading_error": "Failed to load"
472
+ "loading_error": "Unknown error"
451
473
  }
452
474
  }
453
475
  }
@@ -469,25 +491,44 @@
469
491
  "undo_cancel": "Review",
470
492
  "undo_confirm": "Discard",
471
493
  "attribute-form": {
472
- "cancel": "Cancel",
473
- "confirm": "Confirm",
474
- "create": "Create",
475
- "date": "{{value, date}}",
476
- "date_created": "Created on",
477
- "date_modified": "Last updated on",
478
- "delete": "Remove",
479
- "delete_prompt": "Please confirm that you'd like to remove this attribute from the item.",
480
- "name": "Name",
481
- "v8n_required": "Required",
482
- "v8n_too_long": "Too long",
483
- "value": "Value",
484
- "visibility": "Visibility",
485
- "visibility_private": "Only me",
486
- "visibility_public": "Everyone",
487
- "visibility_restricted": "Store admins",
494
+ "name": {
495
+ "label": "Name",
496
+ "placeholder": "Required",
497
+ "helper_text": "Name of this attribute. It does not have to be unique.",
498
+ "v8n_required": "Please name this attribute.",
499
+ "v8n_too_long": "Please choose a name that is 500 characters long or less."
500
+ },
501
+ "value": {
502
+ "label": "Value",
503
+ "placeholder": "Required",
504
+ "helper_text": "Value of this attribute. Attribute values are automatically HTML-escaped.",
505
+ "v8n_required": "Please provide a value for this attribute.",
506
+ "v8n_too_long": "Unfortunately we can't store values that are more than 1000 characters long."
507
+ },
508
+ "visibility": {
509
+ "label": "Visibility",
510
+ "option_public": "Everyone",
511
+ "option_restricted": "Store admins",
512
+ "option_private": "Only me",
513
+ "helper_text": "Controls who can see this attribute. Public attributes can be shown to anyone, including customers. Private attributes are more suitable for configuration or technical details which are irrelevant to the public. Restricted attributes can only be viewed with the OAuth client that created them."
514
+ },
515
+ "timestamps": {
516
+ "date": "{{value, date}}",
517
+ "date_created": "Created on",
518
+ "date_modified": "Last updated on"
519
+ },
520
+ "delete": {
521
+ "delete": "Delete",
522
+ "cancel": "Cancel",
523
+ "delete_prompt": "Are you sure you'd like to remove this attribute? You won't be able to bring it back."
524
+ },
525
+ "create": {
526
+ "create": "Create"
527
+ },
488
528
  "spinner": {
529
+ "refresh": "Refresh",
489
530
  "loading_busy": "Loading",
490
- "loading_error": "Failed to load"
531
+ "loading_error": "Unknown error"
491
532
  }
492
533
  }
493
534
  },
@@ -503,7 +544,7 @@
503
544
  "spinner": {
504
545
  "loading_busy": "Loading",
505
546
  "loading_empty": "No attributes",
506
- "loading_error": "Failed to load"
547
+ "loading_error": "Unknown error"
507
548
  }
508
549
  }
509
550
  }
@@ -550,7 +591,7 @@
550
591
  "spinner": {
551
592
  "loading_busy": "Loading",
552
593
  "loading_empty": "No payments",
553
- "loading_error": "Failed to load"
594
+ "loading_error": "Unknown error"
554
595
  }
555
596
  }
556
597
  }
@@ -562,27 +603,91 @@
562
603
  "cancel": "Cancel",
563
604
  "header_update": "Billing address",
564
605
  "address-form": {
565
- "address_name": "Address name",
566
- "address1": "Address Line 1",
567
- "address2": "Address Line 2",
568
- "cancel": "Cancel",
569
- "city": "City",
570
- "company": "Company",
571
- "confirm": "Confirm",
572
- "country": "Country",
573
- "create": "Create",
574
- "date": "{{value, date}}",
575
- "date_created": "Created on",
576
- "date_modified": "Last updated on",
577
- "delete": "Delete",
578
- "delete_prompt": "This resource will be permanently removed. Are you sure?",
579
- "first_name": "First name",
580
- "last_name": "Last name",
581
- "phone": "Phone",
582
- "postal_code": "Postal code",
583
- "region": "Region",
584
- "v8n_required": "Required",
585
- "v8n_too_long": "Too long",
606
+ "address-name": {
607
+ "label": "Address name",
608
+ "placeholder": "Required",
609
+ "helper_text": "",
610
+ "v8n_required": "Please enter address name",
611
+ "v8n_too_long": "Please shorten address name to 100 characters or less"
612
+ },
613
+ "first-name": {
614
+ "label": "First name",
615
+ "placeholder": "Optional",
616
+ "helper_text": "",
617
+ "v8n_too_long": "Unfortunately we can't store first names longer than 50 characters"
618
+ },
619
+ "last-name": {
620
+ "label": "Last name",
621
+ "placeholder": "Optional",
622
+ "helper_text": "",
623
+ "v8n_too_long": "Unfortunately we can't store last names longer than 50 characters"
624
+ },
625
+ "company": {
626
+ "label": "Company",
627
+ "placeholder": "Optional",
628
+ "helper_text": "",
629
+ "v8n_too_long": "Unfortunately we can't store company names longer than 50 characters"
630
+ },
631
+ "phone": {
632
+ "label": "Phone",
633
+ "placeholder": "Optional",
634
+ "helper_text": "",
635
+ "v8n_too_long": "This phone number appears to be too long"
636
+ },
637
+ "address-one": {
638
+ "label": "Address Line 1",
639
+ "placeholder": "Required",
640
+ "helper_text": "Street address, P.O. box, company name, c/o",
641
+ "v8n_required": "Please enter address line 1",
642
+ "v8n_too_long": "Please shorten address line 1 to 100 characters or less"
643
+ },
644
+ "address-two": {
645
+ "label": "Address Line 2",
646
+ "placeholder": "Optional",
647
+ "helper_text": "Apartment, suite, unit, building, floor, etc.",
648
+ "v8n_too_long": "Please shorten address line 2 to 100 characters or less"
649
+ },
650
+ "city": {
651
+ "label": "City",
652
+ "placeholder": "Optional",
653
+ "helper_text": "",
654
+ "v8n_too_long": "Unfortunately we can't store city names longer than 50 characters"
655
+ },
656
+ "postal-code": {
657
+ "label": "Postal code",
658
+ "placeholder": "Optional",
659
+ "helper_text": "",
660
+ "v8n_too_long": "This postal code appears to be too long"
661
+ },
662
+ "country": {
663
+ "label": "Country",
664
+ "placeholder": "Optional",
665
+ "helper_text": ""
666
+ },
667
+ "region": {
668
+ "label": "Region",
669
+ "placeholder": "Optional",
670
+ "helper_text": "",
671
+ "v8n_too_long": "Unfortunately we can't store region names longer than 50 characters"
672
+ },
673
+ "timestamps": {
674
+ "date": "{{value, date}}",
675
+ "date_created": "Created on",
676
+ "date_modified": "Last updated on"
677
+ },
678
+ "delete": {
679
+ "delete": "Delete",
680
+ "cancel": "Cancel",
681
+ "delete_prompt": "Are you sure you'd like to remove this address? You won't be able to bring it back."
682
+ },
683
+ "create": {
684
+ "create": "Create"
685
+ },
686
+ "spinner": {
687
+ "refresh": "Refresh",
688
+ "loading_busy": "Loading",
689
+ "loading_error": "Unknown error"
690
+ },
586
691
  "country_af": "Afghanistan",
587
692
  "country_ax": "Åland Islands",
588
693
  "country_al": "Albania",
@@ -1159,11 +1264,7 @@
1159
1264
  "country_eh": "Western Sahara",
1160
1265
  "country_ye": "Yemen",
1161
1266
  "country_zm": "Zambia",
1162
- "country_zw": "Zimbabwe",
1163
- "spinner": {
1164
- "loading_busy": "Loading",
1165
- "loading_error": "Failed to load"
1166
- }
1267
+ "country_zw": "Zimbabwe"
1167
1268
  }
1168
1269
  },
1169
1270
  "pagination": {
@@ -1178,7 +1279,7 @@
1178
1279
  "spinner": {
1179
1280
  "loading_busy": "Loading",
1180
1281
  "loading_empty": "No addresses",
1181
- "loading_error": "Failed to load"
1282
+ "loading_error": "Unknown error"
1182
1283
  }
1183
1284
  }
1184
1285
  }
@@ -1201,7 +1302,7 @@
1201
1302
  "spinner": {
1202
1303
  "loading_busy": "Loading",
1203
1304
  "loading_empty": "No shipments",
1204
- "loading_error": "Failed to load"
1305
+ "loading_error": "Unknown error"
1205
1306
  }
1206
1307
  }
1207
1308
  }
@@ -1256,8 +1357,9 @@
1256
1357
  }
1257
1358
  },
1258
1359
  "spinner": {
1360
+ "refresh": "Refresh",
1259
1361
  "loading_busy": "Loading",
1260
1362
  "loading_empty": "No data",
1261
- "loading_error": "Failed to load"
1363
+ "loading_error": "Unknown error"
1262
1364
  }
1263
1365
  }
@@ -28,6 +28,6 @@
28
28
  "spinner": {
29
29
  "loading_busy": "Loading",
30
30
  "loading_empty": "No data",
31
- "loading_error": "Failed to load"
31
+ "loading_error": "Unknown error"
32
32
  }
33
33
  }
@@ -15,8 +15,9 @@
15
15
  "transaction_verified": "Verified",
16
16
  "transaction_voided": "Voided",
17
17
  "spinner": {
18
+ "refresh": "Refresh",
18
19
  "loading_busy": "Loading",
19
20
  "loading_empty": "No data",
20
- "loading_error": "Failed to load"
21
+ "loading_error": "Unknown error"
21
22
  }
22
23
  }
@@ -3,6 +3,6 @@
3
3
  "spinner": {
4
4
  "loading_busy": "Loading",
5
5
  "loading_empty": "No data",
6
- "loading_error": "Failed to load"
6
+ "loading_error": "Unknown error"
7
7
  }
8
8
  }
@@ -20,7 +20,8 @@
20
20
  "v8n_required": "Required",
21
21
  "v8n_too_long": "Too long",
22
22
  "spinner": {
23
+ "refresh": "Refresh",
23
24
  "loading_busy": "Loading",
24
- "loading_error": "Failed to load"
25
+ "loading_error": "Unknown error"
25
26
  }
26
27
  }
@@ -11,9 +11,10 @@
11
11
  "undo_message": "Looks like you didn't save your changes! What would you like to do with them?",
12
12
  "update": "Update",
13
13
  "spinner": {
14
+ "refresh": "Refresh",
14
15
  "loading_busy": "Loading",
15
16
  "loading_empty": "No data",
16
- "loading_error": "Failed to load"
17
+ "loading_error": "Unknown error"
17
18
  },
18
19
  "user-form": {
19
20
  "backend_developer": "Backend developer",
@@ -37,8 +38,9 @@
37
38
  "v8n_required": "Required",
38
39
  "v8n_too_long": "Too long",
39
40
  "spinner": {
41
+ "refresh": "Refresh",
40
42
  "loading_busy": "Loading",
41
- "loading_error": "Failed to load"
43
+ "loading_error": "Unknown error"
42
44
  }
43
45
  }
44
46
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "spinner": {
3
3
  "loading_busy": "Loading",
4
- "loading_error": "Failed to load",
4
+ "loading_error": "Unknown error",
5
5
  "loading_empty": "No data"
6
6
  }
7
7
  }
@@ -57,7 +57,7 @@
57
57
  "date": "{{value, date}}",
58
58
  "spinner": {
59
59
  "loading_busy": "Loading",
60
- "loading_error": "Failed to load",
60
+ "loading_error": "Unknown error",
61
61
  "loading_empty": "No data"
62
62
  }
63
63
  }
@@ -75,7 +75,7 @@
75
75
  "date": "{{value, date}}",
76
76
  "spinner": {
77
77
  "loading_busy": "Loading",
78
- "loading_error": "Failed to load",
78
+ "loading_error": "Unknown error",
79
79
  "loading_empty": "No data"
80
80
  }
81
81
  }
@@ -95,7 +95,8 @@
95
95
  "create": "Create"
96
96
  },
97
97
  "spinner": {
98
+ "refresh": "Refresh",
98
99
  "loading_busy": "Loading",
99
- "loading_error": "Failed to load"
100
+ "loading_error": "Unknown error"
100
101
  }
101
102
  }
@@ -2,7 +2,7 @@
2
2
  "date": "{{value, date}}",
3
3
  "spinner": {
4
4
  "loading_busy": "Loading",
5
- "loading_error": "Failed to load",
5
+ "loading_error": "Unknown error",
6
6
  "loading_empty": "No data"
7
7
  }
8
8
  }
@@ -5,7 +5,7 @@
5
5
  "date": "{{value, date}}",
6
6
  "spinner": {
7
7
  "loading_busy": "Loading",
8
- "loading_error": "Failed to load",
8
+ "loading_error": "Unknown error",
9
9
  "loading_empty": "No data"
10
10
  }
11
11
  }
@@ -46,7 +46,7 @@ export class InternalForm extends Base {
46
46
  <div aria-busy=${this.in('busy')} aria-live="polite" class="relative">
47
47
  <div
48
48
  class=${classMap({
49
- 'grid grid-cols-1 gap-m': true,
49
+ 'space-y-m': true,
50
50
  'transition-opacity': true,
51
51
  'opacity-0 pointer-events-none': isSpinnerVisible,
52
52
  })}
@@ -58,17 +58,24 @@ export class InternalForm extends Base {
58
58
  <div
59
59
  data-testid="spinner"
60
60
  class=${classMap({
61
- 'transition-opacity absolute inset-0 flex': true,
61
+ 'flex flex-col items-center justify-center gap-m': true,
62
+ 'transition-opacity absolute inset-0': true,
62
63
  'opacity-0 pointer-events-none': !isSpinnerVisible,
63
64
  })}
64
65
  >
65
66
  <foxy-spinner
66
67
  layout=${this.in('fail') ? 'vertical' : 'no-label'}
67
- class="m-auto"
68
68
  state=${this.in('fail') ? 'error' : 'busy'}
69
69
  infer="spinner"
70
70
  >
71
71
  </foxy-spinner>
72
+ ${this.href && this.in('fail')
73
+ ? html `
74
+ <vaadin-button theme="small contrast" @click=${() => this.refresh()}>
75
+ <foxy-i18n infer="spinner" key="refresh"></foxy-i18n>
76
+ </vaadin-button>
77
+ `
78
+ : ''}
72
79
  </div>
73
80
  </div>
74
81
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"InternalForm.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalForm/InternalForm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,cAAc,EAAE,sDAAmD;AAC5E,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,OAAO,YAA4C,SAAQ,IAAW;IAA5E;;QAWE,yFAAyF;QACzF,WAAM,GAAkB,IAAI,CAAC;IA0F/B,CAAC;IAlGC,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,GAAG,KAAK,CAAC,UAAU;YACnB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACzB,CAAC;IACJ,CAAC;IAKD;;;;OAIG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,IAAI;YACd,CAAC,CAAC,IAAI,CAAA;;;SAGH;YACH,CAAC,CAAC,IAAI,CAAA,8EAA8E,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,MAAM,gBAAgB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE5F,OAAO,IAAI,CAAA;uBACQ,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;;kBAEpB,QAAQ,CAAC;YACf,wBAAwB,EAAE,IAAI;YAC9B,oBAAoB,EAAE,IAAI;YAC1B,+BAA+B,EAAE,gBAAgB;SAClD,CAAC;;YAEA,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC;YAC/D,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;;;;;kBAKlE,QAAQ,CAAC;YACf,0CAA0C,EAAE,IAAI;YAChD,+BAA+B,EAAE,CAAC,gBAAgB;SACnD,CAAC;;;qBAGS,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU;;oBAE1C,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;;;;;;KAMjD,CAAC;IACJ,CAAC;IAED,IAAY,eAAe;QACzB,MAAM,MAAM,GAAI,IAAI,CAAC,WAAmC,CAAC,kBAAkB,CAAC;QAC5E,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IACvD,CAAC;IAEO,oBAAoB,CAAC,GAAW;QACtC,OAAO,IAAI,CAAA;;;;;cAKD,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;;;KAGlC,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,EAAE,GAAG,EAAE,OAAO,EAAU;QAC7C,OAAO,IAAI,CAAA;;;;;;uDAMwC,GAAG,aAAa,OAAO;;;;mBAI3D,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;KAKxC,CAAC;IACJ,CAAC;;AApGD,8EAA8E;AACvE,+BAAkB,GAAG,QAAQ,CAAC","sourcesContent":["import type { PropertyDeclarations } from 'lit-element';\nimport type { HALJSONResource } from '../../public/NucleonElement/types';\nimport type { TemplateResult } from 'lit-html';\nimport type { Status } from './types';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { NucleonElement } from '../../public/NucleonElement/NucleonElement';\nimport { classMap } from '../../../utils/class-map';\nimport { html } from 'lit-html';\n\nconst Base = ConfigurableMixin(ThemeableMixin(NucleonElement));\n\n/**\n * An internal base class for any nucleon-powered form. Renders create/delete\n * buttons and timestamps by default, displays a spinner in non-idle states.\n *\n * @element foxy-internal-form\n * @since 1.17.0\n */\nexport class InternalForm<TData extends HALJSONResource> extends Base<TData> {\n /** Validation errors with this prefix will show up at the top of the form. */\n static generalErrorPrefix = 'error:';\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n status: { type: Object },\n };\n }\n\n /** Status message to render at the top of the form. If `null`, the message is hidden. */\n status: null | Status = null;\n\n /**\n * Renders form body. This is the method you should implement in your forms\n * instead of `.render()`. If you'd like to keep the submit button and the timestamps,\n * don't forget to add `super.renderBody()` to your template.\n */\n renderBody(): TemplateResult {\n return this.data\n ? html`\n <foxy-internal-timestamps-control infer=\"timestamps\"></foxy-internal-timestamps-control>\n <foxy-internal-delete-control infer=\"delete\"></foxy-internal-delete-control>\n `\n : html`<foxy-internal-create-control infer=\"create\"></foxy-internal-create-control>`;\n }\n\n /**\n * Renders the entire form. You should probably implement `.renderBody()`\n * instead of this method in your form to keep the spinner and the common layout features.\n */\n render(): TemplateResult {\n const isSpinnerVisible = !this.in('idle') && (!this.in({ busy: 'fetching' }) || !this.data);\n\n return html`\n <div aria-busy=${this.in('busy')} aria-live=\"polite\" class=\"relative\">\n <div\n class=${classMap({\n 'grid grid-cols-1 gap-m': true,\n 'transition-opacity': true,\n 'opacity-0 pointer-events-none': isSpinnerVisible,\n })}\n >\n ${this.__generalErrors.map(err => this.__renderGeneralError(err))}\n ${this.status ? this.__renderStatus(this.status) : ''} ${this.renderBody()}\n </div>\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'transition-opacity absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !isSpinnerVisible,\n })}\n >\n <foxy-spinner\n layout=${this.in('fail') ? 'vertical' : 'no-label'}\n class=\"m-auto\"\n state=${this.in('fail') ? 'error' : 'busy'}\n infer=\"spinner\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n private get __generalErrors() {\n const prefix = (this.constructor as typeof InternalForm).generalErrorPrefix;\n return this.errors.filter(v => v.startsWith(prefix));\n }\n\n private __renderGeneralError(err: string) {\n return html`\n <foxy-i18n\n class=\"leading-xs text-body rounded bg-error-10 block\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n infer=\"error\"\n key=${err.replace('error:', '')}\n >\n </foxy-i18n>\n `;\n }\n\n private __renderStatus({ key, options }: Status) {\n return html`\n <p\n data-testid=\"status\"\n class=\"leading-xs text-body rounded bg-success-10 flex items-start gap-m\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=${key} .options=${options}></foxy-i18n>\n <vaadin-button\n class=\"flex-shrink-0\"\n theme=\"success tertiary-inline\"\n @click=${() => (this.status = null)}\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=\"close\"></foxy-i18n>\n </vaadin-button>\n </p>\n `;\n }\n}\n"]}
1
+ {"version":3,"file":"InternalForm.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalForm/InternalForm.ts"],"names":[],"mappings":"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","sourcesContent":["import type { PropertyDeclarations } from 'lit-element';\nimport type { HALJSONResource } from '../../public/NucleonElement/types';\nimport type { TemplateResult } from 'lit-html';\nimport type { Status } from './types';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { NucleonElement } from '../../public/NucleonElement/NucleonElement';\nimport { classMap } from '../../../utils/class-map';\nimport { html } from 'lit-html';\n\nconst Base = ConfigurableMixin(ThemeableMixin(NucleonElement));\n\n/**\n * An internal base class for any nucleon-powered form. Renders create/delete\n * buttons and timestamps by default, displays a spinner in non-idle states.\n *\n * @element foxy-internal-form\n * @since 1.17.0\n */\nexport class InternalForm<TData extends HALJSONResource> extends Base<TData> {\n /** Validation errors with this prefix will show up at the top of the form. */\n static generalErrorPrefix = 'error:';\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n status: { type: Object },\n };\n }\n\n /** Status message to render at the top of the form. If `null`, the message is hidden. */\n status: null | Status = null;\n\n /**\n * Renders form body. This is the method you should implement in your forms\n * instead of `.render()`. If you'd like to keep the submit button and the timestamps,\n * don't forget to add `super.renderBody()` to your template.\n */\n renderBody(): TemplateResult {\n return this.data\n ? html`\n <foxy-internal-timestamps-control infer=\"timestamps\"></foxy-internal-timestamps-control>\n <foxy-internal-delete-control infer=\"delete\"></foxy-internal-delete-control>\n `\n : html`<foxy-internal-create-control infer=\"create\"></foxy-internal-create-control>`;\n }\n\n /**\n * Renders the entire form. You should probably implement `.renderBody()`\n * instead of this method in your form to keep the spinner and the common layout features.\n */\n render(): TemplateResult {\n const isSpinnerVisible = !this.in('idle') && (!this.in({ busy: 'fetching' }) || !this.data);\n\n return html`\n <div aria-busy=${this.in('busy')} aria-live=\"polite\" class=\"relative\">\n <div\n class=${classMap({\n 'space-y-m': true,\n 'transition-opacity': true,\n 'opacity-0 pointer-events-none': isSpinnerVisible,\n })}\n >\n ${this.__generalErrors.map(err => this.__renderGeneralError(err))}\n ${this.status ? this.__renderStatus(this.status) : ''} ${this.renderBody()}\n </div>\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'flex flex-col items-center justify-center gap-m': true,\n 'transition-opacity absolute inset-0': true,\n 'opacity-0 pointer-events-none': !isSpinnerVisible,\n })}\n >\n <foxy-spinner\n layout=${this.in('fail') ? 'vertical' : 'no-label'}\n state=${this.in('fail') ? 'error' : 'busy'}\n infer=\"spinner\"\n >\n </foxy-spinner>\n ${this.href && this.in('fail')\n ? html`\n <vaadin-button theme=\"small contrast\" @click=${() => this.refresh()}>\n <foxy-i18n infer=\"spinner\" key=\"refresh\"></foxy-i18n>\n </vaadin-button>\n `\n : ''}\n </div>\n </div>\n `;\n }\n\n private get __generalErrors() {\n const prefix = (this.constructor as typeof InternalForm).generalErrorPrefix;\n return this.errors.filter(v => v.startsWith(prefix));\n }\n\n private __renderGeneralError(err: string) {\n return html`\n <foxy-i18n\n class=\"leading-xs text-body rounded bg-error-10 block\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n infer=\"error\"\n key=${err.replace('error:', '')}\n >\n </foxy-i18n>\n `;\n }\n\n private __renderStatus({ key, options }: Status) {\n return html`\n <p\n data-testid=\"status\"\n class=\"leading-xs text-body rounded bg-success-10 flex items-start gap-m\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=${key} .options=${options}></foxy-i18n>\n <vaadin-button\n class=\"flex-shrink-0\"\n theme=\"success tertiary-inline\"\n @click=${() => (this.status = null)}\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=\"close\"></foxy-i18n>\n </vaadin-button>\n </p>\n `;\n }\n}\n"]}
@@ -9,6 +9,7 @@ import { InternalEditableControl } from '../InternalEditableControl/InternalEdit
9
9
  export declare class InternalSourceControl extends InternalEditableControl {
10
10
  static get properties(): PropertyDeclarations;
11
11
  static get styles(): CSSResultArray;
12
+ private __isErrorVisible;
12
13
  private __hovered;
13
14
  private __focused;
14
15
  renderControl(): TemplateResult;