@foxy.io/elements 1.18.0-beta.13 → 1.18.0-beta.15

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 (252) 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-api-browser.js +1 -1
  5. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-card.js +1 -1
  7. package/dist/cdn/foxy-attribute-form.js +1 -1
  8. package/dist/cdn/foxy-cancellation-form.js +1 -1
  9. package/dist/cdn/foxy-collection-page.js +1 -1
  10. package/dist/cdn/foxy-collection-pages.js +1 -1
  11. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  12. package/dist/cdn/foxy-coupon-card.js +1 -1
  13. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  14. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  15. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  16. package/dist/cdn/foxy-coupon-form.js +1 -1
  17. package/dist/cdn/foxy-custom-field-card.js +1 -1
  18. package/dist/cdn/foxy-custom-field-form.js +1 -1
  19. package/dist/cdn/foxy-customer-api.js +1 -1
  20. package/dist/cdn/foxy-customer-card.js +1 -1
  21. package/dist/cdn/foxy-customer-form.js +1 -1
  22. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  23. package/dist/cdn/foxy-customer-portal.js +2 -2
  24. package/dist/cdn/foxy-customer.js +2 -2
  25. package/dist/cdn/foxy-customers-table.js +1 -1
  26. package/dist/cdn/foxy-discount-builder.js +1 -1
  27. package/dist/cdn/foxy-discount-card.js +1 -1
  28. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  29. package/dist/cdn/foxy-donation.js +1 -1
  30. package/dist/cdn/foxy-email-template-card.js +1 -1
  31. package/dist/cdn/foxy-email-template-form.js +1 -1
  32. package/dist/cdn/foxy-error-entry-card.js +1 -1
  33. package/dist/cdn/foxy-form-dialog.js +1 -1
  34. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  35. package/dist/cdn/foxy-gift-card-card.js +1 -1
  36. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  37. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  38. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  39. package/dist/cdn/foxy-gift-card-form.js +1 -1
  40. package/dist/cdn/foxy-i18n.js +1 -1
  41. package/dist/cdn/foxy-item-card.js +1 -1
  42. package/dist/cdn/foxy-item-category-card.js +1 -1
  43. package/dist/cdn/foxy-item-category-form.js +1 -1
  44. package/dist/cdn/foxy-item-form.js +1 -1
  45. package/dist/cdn/foxy-item-option-card.js +1 -1
  46. package/dist/cdn/foxy-item-option-form.js +1 -1
  47. package/dist/cdn/foxy-items-form.js +1 -1
  48. package/dist/cdn/foxy-nucleon-element.js +1 -1
  49. package/dist/cdn/foxy-pagination.js +1 -1
  50. package/dist/cdn/foxy-payment-card.js +1 -1
  51. package/dist/cdn/foxy-payment-method-card.js +1 -1
  52. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  53. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  54. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  55. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  56. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  57. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  58. package/dist/cdn/foxy-payments-api.js +1 -1
  59. package/dist/cdn/foxy-query-builder.js +1 -1
  60. package/dist/cdn/foxy-report-form.js +12 -12
  61. package/dist/cdn/foxy-reports-table.js +5 -5
  62. package/dist/cdn/foxy-shipment-card.js +2 -2
  63. package/dist/cdn/foxy-shipping-method-card.js +1 -0
  64. package/dist/cdn/foxy-sign-in-form.js +1 -1
  65. package/dist/cdn/foxy-spinner.js +1 -1
  66. package/dist/cdn/foxy-store-form.js +1 -0
  67. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  68. package/dist/cdn/foxy-subscription-card.js +1 -1
  69. package/dist/cdn/foxy-subscription-form.js +3 -3
  70. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  71. package/dist/cdn/foxy-table.js +1 -1
  72. package/dist/cdn/foxy-tax-card.js +1 -1
  73. package/dist/cdn/foxy-tax-form.js +1 -1
  74. package/dist/cdn/foxy-template-card.js +1 -1
  75. package/dist/cdn/foxy-template-config-form.js +1 -1
  76. package/dist/cdn/foxy-template-form.js +1 -1
  77. package/dist/cdn/foxy-template-set-card.js +1 -0
  78. package/dist/cdn/foxy-template-set-form.js +1 -1
  79. package/dist/cdn/foxy-transaction-card.js +1 -1
  80. package/dist/cdn/foxy-transaction.js +1 -1
  81. package/dist/cdn/foxy-transactions-table.js +1 -1
  82. package/dist/cdn/foxy-user-form.js +1 -1
  83. package/dist/cdn/foxy-users-table.js +1 -1
  84. package/dist/cdn/foxy-webhook-card.js +1 -1
  85. package/dist/cdn/foxy-webhook-form.js +1 -1
  86. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  87. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  88. package/dist/cdn/{shared-a0f6e39c.js → shared-0565ecbc.js} +1 -1
  89. package/dist/cdn/{shared-d863e06b.js → shared-081ad02f.js} +1 -1
  90. package/dist/cdn/{shared-415c86b6.js → shared-0953a0e7.js} +1 -1
  91. package/dist/cdn/{shared-fff1815b.js → shared-0d91f648.js} +1 -1
  92. package/dist/cdn/{shared-8a34457d.js → shared-10dbb9d7.js} +1 -1
  93. package/dist/cdn/{shared-9f0606f2.js → shared-15278fe0.js} +1 -1
  94. package/dist/cdn/{shared-015e5cb9.js → shared-1d34726a.js} +1 -1
  95. package/dist/cdn/{shared-10e7ddf5.js → shared-23e0d67e.js} +1 -1
  96. package/dist/cdn/{shared-57412bac.js → shared-2a56246b.js} +1 -1
  97. package/dist/cdn/{shared-7c8b3ce0.js → shared-2af327d0.js} +1 -1
  98. package/dist/cdn/{shared-7e690245.js → shared-3425791b.js} +5 -5
  99. package/dist/cdn/{shared-26adbd9b.js → shared-34cd3a01.js} +1 -1
  100. package/dist/cdn/shared-38df92f3.js +1 -0
  101. package/dist/cdn/{shared-c7fad58c.js → shared-398b3c49.js} +1 -1
  102. package/dist/cdn/{shared-5382ccfa.js → shared-3ef5c283.js} +1 -1
  103. package/dist/cdn/{shared-68fad60e.js → shared-45418f3b.js} +1 -1
  104. package/dist/cdn/{shared-58445db9.js → shared-4610cbdb.js} +1 -1
  105. package/dist/cdn/{shared-b0ba62ff.js → shared-4a796610.js} +1 -1
  106. package/dist/cdn/{shared-f38a79cc.js → shared-4ff7174f.js} +1 -1
  107. package/dist/cdn/shared-5606cd36.js +1 -0
  108. package/dist/cdn/{shared-aecb20d0.js → shared-5c837b54.js} +1 -1
  109. package/dist/cdn/{shared-ba78987f.js → shared-63671948.js} +1 -1
  110. package/dist/cdn/{shared-8911c2e0.js → shared-6b471536.js} +1 -1
  111. package/dist/cdn/{shared-4382f0cd.js → shared-6dafebaf.js} +1 -1
  112. package/dist/cdn/{shared-53cdff0b.js → shared-74b7438a.js} +1 -1
  113. package/dist/cdn/shared-760cc838.js +1 -0
  114. package/dist/cdn/shared-779795c5.js +1 -0
  115. package/dist/cdn/{shared-68600caf.js → shared-7ab9beb2.js} +1 -1
  116. package/dist/cdn/{shared-45cc4f44.js → shared-7ca327ea.js} +1 -1
  117. package/dist/cdn/{shared-cbff5e58.js → shared-8033b140.js} +1 -1
  118. package/dist/cdn/{shared-0b67dae4.js → shared-8328826e.js} +7 -7
  119. package/dist/cdn/{shared-34db34b2.js → shared-86be537c.js} +1 -1
  120. package/dist/cdn/{shared-20b2223a.js → shared-8704e701.js} +1 -1
  121. package/dist/cdn/shared-88924652.js +169 -0
  122. package/dist/cdn/shared-890a22af.js +1 -0
  123. package/dist/cdn/shared-8ab29d7d.js +1 -0
  124. package/dist/cdn/{shared-465cdd03.js → shared-8dee6348.js} +2 -2
  125. package/dist/cdn/{shared-d8faafc7.js → shared-9195959e.js} +1 -1
  126. package/dist/cdn/{shared-8c8853ab.js → shared-93c15291.js} +1 -1
  127. package/dist/cdn/shared-a420358e.js +1 -0
  128. package/dist/cdn/{shared-6a2cf3b9.js → shared-a5000f1f.js} +2 -2
  129. package/dist/cdn/{shared-b54eb879.js → shared-a6339611.js} +1 -1
  130. package/dist/cdn/{shared-da126678.js → shared-a861c770.js} +1 -1
  131. package/dist/cdn/{shared-2ec256d5.js → shared-a8966936.js} +1 -1
  132. package/dist/cdn/{shared-cd1bc9f5.js → shared-a8ada44e.js} +1 -1
  133. package/dist/cdn/{shared-c47571a6.js → shared-abf68928.js} +1 -1
  134. package/dist/cdn/shared-b567541a.js +1 -0
  135. package/dist/cdn/{shared-ef792142.js → shared-b6a37360.js} +1 -1
  136. package/dist/cdn/{shared-c6f5602e.js → shared-b98f0ad9.js} +1 -1
  137. package/dist/cdn/{shared-e46eb641.js → shared-bd4b0759.js} +1 -1
  138. package/dist/cdn/shared-c29811ec.js +1 -0
  139. package/dist/cdn/{shared-2e33702b.js → shared-cd14b0cc.js} +1 -1
  140. package/dist/cdn/{shared-09a14740.js → shared-d1b62ccd.js} +17 -12
  141. package/dist/cdn/{shared-008ffb33.js → shared-d58e7670.js} +1 -1
  142. package/dist/cdn/shared-d82f3ba0.js +1 -0
  143. package/dist/cdn/{shared-5bf3f8f1.js → shared-d8b14272.js} +1 -1
  144. package/dist/cdn/{shared-27aeabd9.js → shared-dee53530.js} +1 -1
  145. package/dist/cdn/{shared-35e929aa.js → shared-eefa4103.js} +1 -1
  146. package/dist/cdn/{shared-0f137ff8.js → shared-f22d1ed9.js} +1 -1
  147. package/dist/cdn/{shared-f49ee631.js → shared-fd124dfd.js} +1 -1
  148. package/dist/cdn/shared-fdf6ca55.js +1 -0
  149. package/dist/cdn/{shared-fce199fa.js → shared-ffea7639.js} +1 -1
  150. package/dist/cdn/translations/email-template-card/en.json +1 -1
  151. package/dist/cdn/translations/shipping-method-card/en.json +11 -0
  152. package/dist/cdn/translations/store-form/en.json +316 -0
  153. package/dist/cdn/translations/template-config-form/en.json +0 -4
  154. package/dist/cdn/translations/template-set-card/en.json +7 -0
  155. package/dist/cdn/translations/template-set-form/en.json +8 -342
  156. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.d.ts +6 -0
  157. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js +47 -28
  158. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js.map +1 -1
  159. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.d.ts +11 -0
  160. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js +143 -0
  161. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js.map +1 -0
  162. package/dist/elements/internal/InternalEditableListControl/index.d.ts +3 -0
  163. package/dist/elements/internal/InternalEditableListControl/index.js +5 -0
  164. package/dist/elements/internal/InternalEditableListControl/index.js.map +1 -0
  165. package/dist/elements/internal/InternalEditableListControl/types.d.ts +9 -0
  166. package/dist/elements/internal/InternalEditableListControl/types.js +2 -0
  167. package/dist/elements/internal/InternalEditableListControl/types.js.map +1 -0
  168. package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.d.ts +6 -1
  169. package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js +25 -12
  170. package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js.map +1 -1
  171. package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.d.ts +4 -1
  172. package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js +15 -0
  173. package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js.map +1 -1
  174. package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.d.ts +13 -0
  175. package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js +40 -0
  176. package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js.map +1 -0
  177. package/dist/elements/internal/InternalPasswordControl/index.d.ts +4 -0
  178. package/dist/elements/internal/InternalPasswordControl/index.js +6 -0
  179. package/dist/elements/internal/InternalPasswordControl/index.js.map +1 -0
  180. package/dist/elements/internal/InternalTextControl/InternalTextControl.d.ts +4 -1
  181. package/dist/elements/internal/InternalTextControl/InternalTextControl.js +15 -1
  182. package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -1
  183. package/dist/elements/private/Dialog/Dialog.d.ts +2 -0
  184. package/dist/elements/private/Dialog/Dialog.js +6 -1
  185. package/dist/elements/private/Dialog/Dialog.js.map +1 -1
  186. package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js +8 -1
  187. package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js.map +1 -1
  188. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.d.ts +15 -0
  189. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js +78 -0
  190. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js.map +1 -0
  191. package/dist/elements/public/ShippingMethodCard/index.d.ts +4 -0
  192. package/dist/elements/public/ShippingMethodCard/index.js +6 -0
  193. package/dist/elements/public/ShippingMethodCard/index.js.map +1 -0
  194. package/dist/elements/public/ShippingMethodCard/types.d.ts +10 -0
  195. package/dist/elements/public/ShippingMethodCard/types.js +2 -0
  196. package/dist/elements/public/ShippingMethodCard/types.js.map +1 -0
  197. package/dist/elements/public/StoreForm/StoreForm.d.ts +55 -0
  198. package/dist/elements/public/StoreForm/StoreForm.js +1030 -0
  199. package/dist/elements/public/StoreForm/StoreForm.js.map +1 -0
  200. package/dist/elements/public/StoreForm/index.d.ts +15 -0
  201. package/dist/elements/public/StoreForm/index.js +17 -0
  202. package/dist/elements/public/StoreForm/index.js.map +1 -0
  203. package/dist/elements/public/StoreForm/types.d.ts +3 -0
  204. package/dist/elements/public/StoreForm/types.js +2 -0
  205. package/dist/elements/public/StoreForm/types.js.map +1 -0
  206. package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js +24 -0
  207. package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js.map +1 -1
  208. package/dist/elements/public/StoreShippingMethodForm/index.d.ts +1 -0
  209. package/dist/elements/public/StoreShippingMethodForm/index.js +1 -0
  210. package/dist/elements/public/StoreShippingMethodForm/index.js.map +1 -1
  211. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +0 -1
  212. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +9 -58
  213. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -1
  214. package/dist/elements/public/TemplateConfigForm/index.d.ts +0 -1
  215. package/dist/elements/public/TemplateConfigForm/index.js +0 -1
  216. package/dist/elements/public/TemplateConfigForm/index.js.map +1 -1
  217. package/dist/elements/public/TemplateSetCard/TemplateSetCard.d.ts +10 -0
  218. package/dist/elements/public/TemplateSetCard/TemplateSetCard.js +18 -0
  219. package/dist/elements/public/TemplateSetCard/TemplateSetCard.js.map +1 -0
  220. package/dist/elements/public/TemplateSetCard/index.d.ts +3 -0
  221. package/dist/elements/public/TemplateSetCard/index.js +5 -0
  222. package/dist/elements/public/TemplateSetCard/index.js.map +1 -0
  223. package/dist/elements/public/TemplateSetCard/types.d.ts +3 -0
  224. package/dist/elements/public/TemplateSetCard/types.js +2 -0
  225. package/dist/elements/public/TemplateSetCard/types.js.map +1 -0
  226. package/dist/elements/public/TemplateSetForm/TemplateSetForm.d.ts +1 -20
  227. package/dist/elements/public/TemplateSetForm/TemplateSetForm.js +21 -236
  228. package/dist/elements/public/TemplateSetForm/TemplateSetForm.js.map +1 -1
  229. package/dist/elements/public/TemplateSetForm/index.d.ts +0 -8
  230. package/dist/elements/public/TemplateSetForm/index.js +0 -8
  231. package/dist/elements/public/TemplateSetForm/index.js.map +1 -1
  232. package/dist/elements/public/index.d.ts +3 -0
  233. package/dist/elements/public/index.defined.d.ts +3 -0
  234. package/dist/elements/public/index.defined.js +3 -0
  235. package/dist/elements/public/index.defined.js.map +1 -1
  236. package/dist/elements/public/index.js +3 -0
  237. package/dist/elements/public/index.js.map +1 -1
  238. package/dist/mixins/themeable.js +280 -88
  239. package/dist/mixins/themeable.js.map +1 -1
  240. package/package.json +1 -1
  241. package/dist/cdn/shared-0093ee59.js +0 -6
  242. package/dist/cdn/shared-156144ab.js +0 -1
  243. package/dist/cdn/shared-2a20ac6b.js +0 -1
  244. package/dist/cdn/shared-3909c1e5.js +0 -1
  245. package/dist/cdn/shared-3fb5f380.js +0 -1
  246. package/dist/cdn/shared-4cd53ea2.js +0 -1
  247. package/dist/cdn/shared-8c91f512.js +0 -169
  248. package/dist/cdn/shared-9eff0743.js +0 -1
  249. package/dist/cdn/shared-a03d948d.js +0 -1
  250. package/dist/cdn/shared-be043b54.js +0 -1
  251. package/dist/cdn/shared-c00bff9d.js +0 -1
  252. package/dist/cdn/shared-c60b6e1a.js +0 -1
@@ -2,367 +2,33 @@
2
2
  "description": {
3
3
  "label": "Description",
4
4
  "placeholder": "Required - e.g. My Template Set",
5
- "helper_text": "",
5
+ "helper_text": "Any label that will help you identify this template set in the admin. We won't show this text to the customers.",
6
6
  "v8n_required": "Please enter a description for this set",
7
7
  "v8n_too_long": "Please reduce this description to 100 characters or less"
8
8
  },
9
9
  "code": {
10
10
  "label": "Code",
11
11
  "placeholder": "Required - e.g. MY-TEMPLATE-SET",
12
- "helper_text": "",
12
+ "helper_text": "The template set code for applying this template set to the cart. Your customers might see this code in the URL.",
13
13
  "v8n_required": "Please enter a code for this set",
14
14
  "v8n_too_long": "Please reduce this code to 50 characters or less"
15
15
  },
16
- "cart-template-uri": {
17
- "template": "Template",
18
- "cache": "Cache",
19
- "cancel": "Cancel",
20
- "default": "Default",
21
- "description": "Description",
22
- "template_clipboard": "From clipboard",
23
- "template_clipboard_explainer": "Paste the template here to use it",
24
- "template_default": "Default",
25
- "template_default_explainer": "Use the default template",
26
- "template_url": "From URL",
27
- "template_url_explainer": "Fetch the template from a public URL",
28
- "spinner": {
29
- "loading_busy": "Loading",
30
- "loading_error": "Failed to load"
31
- }
32
- },
33
- "cart-include-template-uri": {
34
- "template": "Template",
35
- "cache": "Cache",
36
- "cancel": "Cancel",
37
- "default": "Default",
38
- "description": "Description",
39
- "template_clipboard": "From clipboard",
40
- "template_clipboard_explainer": "Paste the template here to use it",
41
- "template_default": "Default",
42
- "template_default_explainer": "Use the default template",
43
- "template_url": "From URL",
44
- "template_url_explainer": "Fetch the template from a public URL",
45
- "spinner": {
46
- "loading_busy": "Loading",
47
- "loading_error": "Failed to load"
48
- }
49
- },
50
- "checkout-template-uri": {
51
- "template": "Template",
52
- "cache": "Cache",
53
- "cancel": "Cancel",
54
- "default": "Default",
55
- "description": "Description",
56
- "template_clipboard": "From clipboard",
57
- "template_clipboard_explainer": "Paste the template here to use it",
58
- "template_default": "Default",
59
- "template_default_explainer": "Use the default template",
60
- "template_url": "From URL",
61
- "template_url_explainer": "Fetch the template from a public URL",
62
- "spinner": {
63
- "loading_busy": "Loading",
64
- "loading_error": "Failed to load"
65
- }
66
- },
67
- "receipt-template-uri": {
68
- "template": "Template",
69
- "cache": "Cache",
70
- "cancel": "Cancel",
71
- "default": "Default",
72
- "description": "Description",
73
- "template_clipboard": "From clipboard",
74
- "template_clipboard_explainer": "Paste the template here to use it",
75
- "template_default": "Default",
76
- "template_default_explainer": "Use the default template",
77
- "template_url": "From URL",
78
- "template_url_explainer": "Fetch the template from a public URL",
79
- "spinner": {
80
- "loading_busy": "Loading",
81
- "loading_error": "Failed to load"
82
- }
83
- },
84
- "email-template-uri": {
85
- "cache": "Cache",
86
- "cancel": "Cancel",
87
- "confirm": "Confirm",
88
- "default": "Default",
89
- "html_template": "HTML template",
90
- "template_clipboard": "From clipboard",
91
- "template_clipboard_explainer": "Paste the template here to use it",
92
- "template_default": "Default",
93
- "template_default_explainer": "Use the default template",
94
- "template_url": "From URL",
95
- "template_url_explainer": "Fetch the template from a public URL",
96
- "text_template": "Text template",
97
- "template-language": {
98
- "label": "Language",
99
- "placeholder": "Default (Nunjucks)",
100
- "helper_text": ""
101
- },
102
- "spinner": {
103
- "loading_busy": "Loading",
104
- "loading_error": "Failed to load"
105
- }
106
- },
107
16
  "language": {
108
17
  "label": "Language",
109
18
  "placeholder": "Select language",
110
- "helper_text": "",
19
+ "helper_text": "We'll apply this language to our cart, checkout and receipt pages.",
111
20
  "v8n_required": "Please select a language for this set"
112
21
  },
113
22
  "locale-code": {
114
23
  "label": "Locale",
115
24
  "placeholder": "Select locale",
116
- "helper_text": "",
25
+ "helper_text": "We'll use this locale to format prices and dates for your customers.",
117
26
  "v8n_required": "Please select a locale for this set"
118
27
  },
119
- "header_general": "General",
120
- "config": {
121
- "payment-method-set-uri": {
122
- "is-live": {
123
- "label": "",
124
- "option_live": "Use live credentials",
125
- "helper_text": ""
126
- },
127
- "is-purchase-order-enabled": {
128
- "label": "",
129
- "option_true": "Allow purchase orders",
130
- "helper_text": ""
131
- },
132
- "payment-methods": {
133
- "delete_header": "Remove payment method",
134
- "delete_message": "Are you sure you'd like to remove this payment method? You'll need to configure it again if you decide to bring it back.",
135
- "delete_confirm": "Remove",
136
- "delete_cancel": "Cancel",
137
- "title": "Payment methods",
138
- "dialog": {
139
- "header_update": "Payment method",
140
- "header_create": "New payment method",
141
- "close": "Close",
142
- "cancel": "Cancel",
143
- "save": "Save",
144
- "undo_header": "Unsaved changes",
145
- "undo_message": "Looks like you didn't save your changes! What would you like to do with them?",
146
- "undo_cancel": "Review",
147
- "undo_confirm": "Discard"
148
- },
149
- "pagination": {
150
- "create_button_text": "Add payment method",
151
- "card": {
152
- "delete_button_text": "Remove"
153
- }
154
- }
155
- },
156
- "fraud-protections": {
157
- "delete_header": "Remove fraud protection",
158
- "delete_message": "Are you sure you'd like to remove this fraud protection? You'll need to configure it again if you decide to bring it back.",
159
- "delete_confirm": "Remove",
160
- "delete_cancel": "Cancel",
161
- "title": "Fraud protections",
162
- "dialog": {
163
- "header_update": "Fraud protection",
164
- "header_create": "New fraud protection",
165
- "close": "Close",
166
- "cancel": "Cancel",
167
- "save": "Save",
168
- "undo_header": "Unsaved changes",
169
- "undo_message": "Looks like you didn't save your changes! What would you like to do with them?",
170
- "undo_cancel": "Review",
171
- "undo_confirm": "Discard"
172
- },
173
- "pagination": {
174
- "create_button_text": "Add fraud protection",
175
- "card": {
176
- "delete_button_text": "Remove"
177
- }
178
- }
179
- },
180
- "spinner": {
181
- "loading_busy": "Loading",
182
- "loading_error": "Failed to load"
183
- }
184
- },
185
- "template-dialog": {
186
- "cart_template_uri_header": "Cart template",
187
- "cart_include_template_uri_header": "Cart include template",
188
- "checkout_template_uri_header": "Checkout template",
189
- "receipt_template_uri_header": "Web receipt template",
190
- "email_template_uri_header": "Email receipt template",
191
- "close": "Close",
192
- "cancel": "Cancel",
193
- "save": "Save",
194
- "undo_header": "Unsaved changes",
195
- "undo_message": "Looks like you didn't save your changes! What would you like to do with them?",
196
- "undo_cancel": "Review",
197
- "undo_confirm": "Discard"
198
- },
199
- "templates_title": "Templates",
200
- "templates_helper_text": "Click any of the templates above to customize how those views are presented to your customers. Warning: this functionality is for advanced users only.",
201
- "cart-template-uri": {
202
- "title": "Cart template",
203
- "type_custom_url": "Custom (URL)",
204
- "type_custom_text": "Custom (Text)",
205
- "type_default": "Default",
206
- "spinner": {
207
- "loading_busy": "Loading cart template",
208
- "loading_empty": "No cart template",
209
- "loading_error": "Failed to load cart template"
210
- }
211
- },
212
- "cart-include-template-uri": {
213
- "title": "Cart include template",
214
- "type_custom_url": "Custom (URL)",
215
- "type_custom_text": "Custom (Text)",
216
- "type_default": "Default",
217
- "spinner": {
218
- "loading_busy": "Loading cart include template",
219
- "loading_empty": "No cart include template",
220
- "loading_error": "Failed to load cart include template"
221
- }
222
- },
223
- "checkout-template-uri": {
224
- "title": "Checkout template",
225
- "type_custom_url": "Custom (URL)",
226
- "type_custom_text": "Custom (Text)",
227
- "type_default": "Default",
228
- "spinner": {
229
- "loading_busy": "Loading checkout template",
230
- "loading_empty": "No checkout template",
231
- "loading_error": "Failed to load checkout template"
232
- }
233
- },
234
- "receipt-template-uri": {
235
- "title": "Web receipt template",
236
- "type_custom_url": "Custom (URL)",
237
- "type_custom_text": "Custom (Text)",
238
- "type_default": "Default",
239
- "spinner": {
240
- "loading_busy": "Loading web receipt template",
241
- "loading_empty": "No web receipt template",
242
- "loading_error": "Failed to load web receipt template"
243
- }
244
- },
245
- "email-template-uri": {
246
- "title": "Email receipt template",
247
- "type_custom_url": "Custom (URL)",
248
- "type_custom_text": "Custom (Text)",
249
- "type_mixed": "Mixed",
250
- "type_default": "Default",
251
- "spinner": {
252
- "loading_busy": "Loading email receipt template",
253
- "loading_empty": "No email receipt template",
254
- "loading_error": "Failed to load email receipt template"
255
- }
256
- },
257
- "add_country": "Add country",
258
- "add_field": "Add field",
259
- "add_region": "Add region",
260
- "address1": "Address Line 1",
261
- "address2": "Address Line 2",
262
- "allow": "Allow",
263
- "allowlist": "Allow all except",
264
- "billing": "Billing",
265
- "block": "Block",
266
- "blocklist": "Ban all except",
267
- "cart_controls": "Quantity",
268
- "cart_type": "Cart display",
269
- "cart_type_custom": "Custom",
270
- "cart_type_custom_explainer": "Build your own JSONP cart with included config",
271
- "cart_type_default": "Sidecart",
272
- "cart_type_default_explainer": "Default cart appearance in version 2.0",
273
- "cart_type_fullpage": "Full page",
274
- "cart_type_fullpage_explainer": "Send all customers to a full page cart while still including minicart functionality",
275
- "checked_by_default": "Checked by default",
276
- "checkout_type": "Accounts",
277
- "checkout_type_account_only": "Allow customer accounts only",
278
- "checkout_type_default_account": "Allow both, default to customer",
279
- "checkout_type_default_guest": "Allow both, default to guest",
280
- "checkout_type_guest_only": "Allow guests only",
281
- "checkout_type_helper_text": "If you select Allow guests only, your store will not be able to use subscriptions.",
282
- "city": "City",
283
- "close": "Close",
284
- "close_icon": "Close icon",
285
- "company": "Company",
286
- "consent": "Consent",
287
- "copy": "Copy",
288
- "country": "Country",
289
- "coupon_entry": "Coupon code",
290
- "create": "Create",
291
- "custom_config": "Custom config",
292
- "custom_config_helper_text": "If you have any custom values you'd like to make available to your twig template, you can add them here as a valid JSON string.",
293
- "custom_fields": "Custom fields",
294
- "custom_fields_helper_text": "If you have information you'd like to collect from the customer on the checkout page, you can add custom form fields here which will be added to the checkout form. We recommend you follow the same HTML container structure used on other checkout fields for consistency. You can use Twig syntax here.",
295
- "custom_footer": "Custom footer",
296
- "custom_footer_helper_text": "Any JS snippets or conversion scripts you need to add to the footer can be put here and will be inserted before the </body> tag. You can use Twig syntax here. For conversion scripts you only want to display once on the receipt page, use {% if first_receipt_display %} {# conversion script content here #} {% endif %}.",
297
- "custom_header": "Custom header",
298
- "custom_header_helper_text": "Any CSS or JS you need to add to the header can be put here and will be inserted before the </head> tag of your templates. Keep in mind all script file references must be through https or run through the Foxy caching system. Twig syntax is not available in the header.",
299
- "default": "Default",
300
- "delete": "Delete",
301
- "delete_prompt": "This resource will be permanently removed. Are you sure?",
302
- "disabled": "Disabled",
303
- "display_sdta": "Display a Secure Data Transfer agreement to EU customers",
304
- "display_sdta_explainer": "If you have customers in the European Union, enable this feature so they can opt in to sending their data to our secure servers in the United States.",
305
- "display_tos_link": "Display a link to Terms & Conditions",
306
- "display_tos_link_explainer": "Include a checkbox to ask your customers to agree to your Terms of Service.",
307
- "enable_postcode_lookup": "Offer city and state suggestions based on postcode",
308
- "enabled": "Enabled",
309
- "error": "Error",
310
- "field_plural": "Fields",
311
- "first_name": "First name",
312
- "foxycomplete": "Location autocomplete",
313
- "foxycomplete_combobox": "Combo Box",
314
- "foxycomplete_combobox_explainer": "Expand to browse options, type to search",
315
- "foxycomplete_disabled": "Disabled",
316
- "foxycomplete_disabled_explainer": "Let customers pick an option from a list",
317
- "foxycomplete_search": "Search",
318
- "foxycomplete_search_explainer": "Display a «search as you type» field",
319
- "ga_account_id": "Account ID",
320
- "ga_account_id_explainer": "You can find the ID in the Admin section of your Analytics in Tracking info > Tracking code.",
321
- "ga_include_on_site": "Include via loader.js",
322
- "ga_include_on_site_explainer": "Enable Google Analytics on any page where the loader.js file is included.",
323
- "hidden": "Hidden",
324
- "hidden_fields": "Hidden fields",
325
- "last_name": "Last name",
326
- "location_plural": "Locations",
327
- "location_url": "Location (URL)",
328
- "newsletter_subscribe": "Allow users to sign up for your newsletter",
329
- "newsletter_subscribe_explainer": "This includes a checkbox on your checkout to allow customers to choose to sign up to your newsletter, available in the transaction reports, the API and webhooks.",
330
- "open_icon": "Open icon",
331
- "optional": "Optional",
332
- "phone": "Phone",
333
- "postal_code": "Postal code",
334
- "product_category": "Product category",
335
- "product_code": "Product code",
336
- "product_options": "Product options",
337
- "product_weight": "Product weight",
338
- "region": "Region",
339
- "require_consent": "Require consent to proceed",
340
- "required": "Required",
341
- "same_as_shipping": "Same as shipping",
342
- "shipping": "Shipping",
343
- "show_country_flags": "Show country flags",
344
- "sio_account_id": "Write Key",
345
- "sio_account_id_explainer": "You can find the write key in your project set up guide or in the source’s settings.",
346
- "skip_csc_for_saved": "Skip CSC for saved cards",
347
- "skip_csc_for_sso": "Skip CSC for single sign-on",
348
- "sub_enddate": "Subscription end date",
349
- "sub_frequency": "Subscription frequency",
350
- "sub_nextdate": "Subscription next date",
351
- "sub_startdate": "Subscription start date",
352
- "supported_cards": "Cards",
353
- "supported_cards_disclaimer": "Applies only to payment gateways where the customer enters their payment card information directly on the Foxy checkout. Exceptions: Adyen Embedded, Amazon Pay, Apple Pay, Klarna, Square and Stripe.",
354
- "tab_advanced": "Advanced",
355
- "tab_analytics": "Analytics",
356
- "tab_cart": "Cart",
357
- "tab_checkout": "Checkout",
358
- "tax_id": "Tax ID",
359
- "troubleshooting": "Troubleshooting",
360
- "troubleshooting_debug": "Log debug messages in the browser console",
361
- "troubleshooting_debug_explainer": "Enable this option to trigger console.log() calls for our JS, which can assist with troubleshooting your store.",
362
- "spinner": {
363
- "loading_busy": "Loading",
364
- "loading_error": "Failed to load"
365
- }
28
+ "payment-method-set-uri": {
29
+ "label": "Payment method set",
30
+ "placeholder": "Default payment method set",
31
+ "helper_text": "With this template set applied, your customers will see payment methods from the selected set."
366
32
  },
367
33
  "timestamps": {
368
34
  "date_created": "Created on",
@@ -14,6 +14,12 @@ export declare class InternalAsyncListControl extends InternalControl {
14
14
  form: FormDialog['form'];
15
15
  /** Same as the `item` property of `CollectionPage`. */
16
16
  item: CollectionPage<any>['item'];
17
+ /** Same as the `wide` property of `FormDialog`. */
18
+ wide: boolean;
19
+ /** Hides Delete Swipe Action if true. */
20
+ hideDeleteButton: boolean;
21
+ /** Hides Create button if true. */
22
+ hideCreateButton: boolean;
17
23
  private __deletionConfimationCallback;
18
24
  private __cachedCardRenderer;
19
25
  private __itemRenderer;
@@ -14,33 +14,44 @@ export class InternalAsyncListControl extends InternalControl {
14
14
  this.form = '';
15
15
  /** Same as the `item` property of `CollectionPage`. */
16
16
  this.item = '';
17
+ /** Same as the `wide` property of `FormDialog`. */
18
+ this.wide = false;
19
+ /** Hides Delete Swipe Action if true. */
20
+ this.hideDeleteButton = false;
21
+ /** Hides Create button if true. */
22
+ this.hideCreateButton = false;
17
23
  this.__deletionConfimationCallback = null;
18
24
  this.__cachedCardRenderer = null;
19
25
  this.__itemRenderer = ctx => {
20
26
  if (!this.form || !ctx.data)
21
27
  return this.__cardRenderer(ctx);
22
28
  const isDisabled = this.disabledSelector.matches('card', true);
23
- return html `
24
- <foxy-swipe-actions class="block">
25
- <button
26
- ?disabled=${isDisabled}
27
- class=${classMap({
29
+ const clickableItem = html `
30
+ <button
31
+ ?disabled=${isDisabled}
32
+ class=${classMap({
28
33
  'rounded-t-l': !ctx.previous,
29
34
  'rounded-b-l': !ctx.next,
30
35
  'focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50': true,
31
36
  'text-left w-full block transition-colors': true,
32
37
  'hover-bg-contrast-5': !isDisabled,
33
38
  })}
34
- @click=${(evt) => {
39
+ @click=${(evt) => {
35
40
  const button = evt.currentTarget;
36
41
  const dialog = this.__dialog;
37
42
  dialog.header = 'header_update';
38
43
  dialog.href = ctx.href;
39
44
  dialog.show(button);
40
45
  }}
41
- >
42
- ${this.__cardRenderer(ctx)}
43
- </button>
46
+ >
47
+ ${this.__cardRenderer(ctx)}
48
+ </button>
49
+ `;
50
+ if (this.hideDeleteButton)
51
+ return clickableItem;
52
+ return html `
53
+ <foxy-swipe-actions class="block">
54
+ ${clickableItem}
44
55
 
45
56
  <vaadin-button
46
57
  theme="primary error"
@@ -67,11 +78,14 @@ export class InternalAsyncListControl extends InternalControl {
67
78
  static get properties() {
68
79
  return {
69
80
  ...super.properties,
81
+ hideDeleteButton: { type: Boolean, attribute: 'hide-delete-button' },
82
+ hideCreateButton: { type: Boolean, attribute: 'hide-create-button' },
70
83
  related: { type: Array },
71
84
  first: { type: String },
72
85
  limit: { type: Number },
73
86
  form: { type: String },
74
87
  item: { type: String },
88
+ wide: { type: Boolean },
75
89
  };
76
90
  }
77
91
  renderControl() {
@@ -91,44 +105,49 @@ export class InternalAsyncListControl extends InternalControl {
91
105
  parent=${first}
92
106
  infer="dialog"
93
107
  id="form"
108
+ ?wide=${this.wide}
94
109
  .related=${this.related}
95
110
  .form=${this.form}
96
111
  >
97
112
  </foxy-form-dialog>
98
113
 
99
- <foxy-internal-confirm-dialog
100
- message="delete_message"
101
- confirm="delete_confirm"
102
- cancel="delete_cancel"
103
- header="delete_header"
104
- theme="error"
105
- lang=${this.lang}
106
- ns=${this.ns}
107
- id="confirm"
108
- @hide=${(evt) => {
109
- var _a;
110
- if (!evt.detail.cancelled)
111
- (_a = this.__deletionConfimationCallback) === null || _a === void 0 ? void 0 : _a.call(this);
112
- }}
113
- >
114
- </foxy-internal-confirm-dialog>
114
+ ${this.hideDeleteButton
115
+ ? ''
116
+ : html `
117
+ <foxy-internal-confirm-dialog
118
+ message="delete_message"
119
+ confirm="delete_confirm"
120
+ cancel="delete_cancel"
121
+ header="delete_header"
122
+ theme="error"
123
+ lang=${this.lang}
124
+ ns=${this.ns}
125
+ id="confirm"
126
+ @hide=${(evt) => {
127
+ var _a;
128
+ if (!evt.detail.cancelled)
129
+ (_a = this.__deletionConfimationCallback) === null || _a === void 0 ? void 0 : _a.call(this);
130
+ }}
131
+ >
132
+ </foxy-internal-confirm-dialog>
133
+ `}
115
134
  `
116
135
  : ''}
117
136
 
118
137
  <foxy-pagination first=${first} infer="pagination">
119
138
  <foxy-collection-page
120
- class="block divide-y divide-contrast-5 rounded-t-l rounded-b-l overflow-hidden bg-contrast-5"
139
+ class="mb-s block divide-y divide-contrast-5 rounded-t-l rounded-b-l overflow-hidden bg-contrast-5"
121
140
  infer="card"
122
141
  .related=${this.related}
123
142
  .item=${this.__itemRenderer}
124
143
  >
125
144
  </foxy-collection-page>
126
145
 
127
- ${!this.form || this.readonly
146
+ ${!this.form || this.readonly || this.hideCreateButton
128
147
  ? ''
129
148
  : html `
130
149
  <vaadin-button
131
- class="my-s bg-success-10 w-full rounded-t-l rounded-b-l"
150
+ class="mb-s bg-success-10 w-full rounded-t-l rounded-b-l"
132
151
  theme="success"
133
152
  ?disabled=${this.disabled}
134
153
  @click=${(evt) => {
@@ -1 +1 @@
1
- {"version":3,"file":"InternalAsyncListControl.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalAsyncListControl/InternalAsyncListControl.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,8CAA2C;AACrE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,OAAO,wBAAyB,SAAQ,eAAe;IAA7D;;QAYE,0DAA0D;QAC1D,YAAO,GAAG,EAAc,CAAC;QAEzB,yDAAyD;QACzD,UAAK,GAAG,EAAE,CAAC;QAEX,+DAA+D;QAC/D,UAAK,GAAG,EAAE,CAAC;QAEX,6FAA6F;QAC7F,SAAI,GAAuB,EAAE,CAAC;QAE9B,uDAAuD;QACvD,SAAI,GAAgC,EAAE,CAAC;QAE/B,kCAA6B,GAAwB,IAAI,CAAC;QAE1D,yBAAoB,GAGjB,I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import type { CollectionPage, NucleonElement } from '../../public';\nimport type { InternalConfirmDialog } from '../InternalConfirmDialog';\nimport type { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport type { ItemRenderer } from '../../public/CollectionPage/types';\nimport type { FormDialog } from '../../index';\n\nimport { InternalControl } from '../InternalControl/InternalControl';\nimport { classMap } from '../../../utils/class-map';\nimport { html } from 'lit-element';\n\nexport class InternalAsyncListControl extends InternalControl {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n related: { type: Array },\n first: { type: String },\n limit: { type: Number },\n form: { type: String },\n item: { type: String },\n };\n }\n\n /** Same as the `related` property of `NucleonElement`. */\n related = [] as string[];\n\n /** Limit query parameter to apply to the `first` URL. */\n limit = 20;\n\n /** URI of the first page of the hAPI collection to display. */\n first = '';\n\n /** Same as the `form` property of `FormDialog`. If set, will open a dialog on item click. */\n form: FormDialog['form'] = '';\n\n /** Same as the `item` property of `CollectionPage`. */\n item: CollectionPage<any>['item'] = '';\n\n private __deletionConfimationCallback: (() => void) | null = null;\n\n private __cachedCardRenderer: {\n item: InternalAsyncListControl['item'];\n render: ItemRenderer;\n } | null = null;\n\n private __itemRenderer: ItemRenderer = ctx => {\n if (!this.form || !ctx.data) return this.__cardRenderer(ctx);\n\n const isDisabled = this.disabledSelector.matches('card', true);\n\n return html`\n <foxy-swipe-actions class=\"block\">\n <button\n ?disabled=${isDisabled}\n class=${classMap({\n 'rounded-t-l': !ctx.previous,\n 'rounded-b-l': !ctx.next,\n 'focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50': true,\n 'text-left w-full block transition-colors': true,\n 'hover-bg-contrast-5': !isDisabled,\n })}\n @click=${(evt: Event) => {\n const button = evt.currentTarget as HTMLButtonElement;\n const dialog = this.__dialog;\n\n dialog.header = 'header_update';\n dialog.href = ctx.href;\n dialog.show(button);\n }}\n >\n ${this.__cardRenderer(ctx)}\n </button>\n\n <vaadin-button\n theme=\"primary error\"\n class=\"h-full rounded-t-l rounded-b-l\"\n slot=\"action\"\n @click=${(evt: CustomEvent) => {\n const button = evt.currentTarget as HTMLElement;\n const confirm = this.renderRoot.querySelector('#confirm') as InternalConfirmDialog;\n\n confirm.show(button);\n\n this.__deletionConfimationCallback = () => {\n const cardButton = button.previousElementSibling!;\n const card = cardButton.querySelector<NucleonElement<any>>('[href]');\n\n card?.delete();\n this.__deletionConfimationCallback = null;\n };\n }}\n >\n <foxy-i18n infer=\"\" key=\"delete_button_text\"></foxy-i18n>\n </vaadin-button>\n </foxy-swipe-actions>\n `;\n };\n\n renderControl(): TemplateResult {\n let first: string;\n\n try {\n const url = new URL(this.first);\n url.searchParams.set('limit', String(this.limit));\n first = url.toString();\n } catch {\n first = this.first;\n }\n\n return html`\n ${this.form\n ? html`\n <foxy-form-dialog\n parent=${first}\n infer=\"dialog\"\n id=\"form\"\n .related=${this.related}\n .form=${this.form as any}\n >\n </foxy-form-dialog>\n\n <foxy-internal-confirm-dialog\n message=\"delete_message\"\n confirm=\"delete_confirm\"\n cancel=\"delete_cancel\"\n header=\"delete_header\"\n theme=\"error\"\n lang=${this.lang}\n ns=${this.ns}\n id=\"confirm\"\n @hide=${(evt: DialogHideEvent) => {\n if (!evt.detail.cancelled) this.__deletionConfimationCallback?.();\n }}\n >\n </foxy-internal-confirm-dialog>\n `\n : ''}\n\n <foxy-pagination first=${first} infer=\"pagination\">\n <foxy-collection-page\n class=\"block divide-y divide-contrast-5 rounded-t-l rounded-b-l overflow-hidden bg-contrast-5\"\n infer=\"card\"\n .related=${this.related}\n .item=${this.__itemRenderer as any}\n >\n </foxy-collection-page>\n\n ${!this.form || this.readonly\n ? ''\n : html`\n <vaadin-button\n class=\"my-s bg-success-10 w-full rounded-t-l rounded-b-l\"\n theme=\"success\"\n ?disabled=${this.disabled}\n @click=${(evt: Event) => {\n evt.preventDefault();\n evt.stopPropagation();\n\n const dialog = this.__dialog;\n const button = evt.currentTarget as HTMLButtonElement;\n\n dialog.header = 'header_create';\n dialog.href = '';\n dialog.show(button);\n }}\n >\n <foxy-i18n infer=\"\" key=\"create_button_text\"></foxy-i18n>\n <iron-icon class=\"icon-inline\" icon=\"icons:add\"></iron-icon>\n </vaadin-button>\n `}\n </foxy-pagination>\n `;\n }\n\n private get __dialog() {\n return this.renderRoot.querySelector('#form') as FormDialog;\n }\n\n private get __cardRenderer() {\n if (this.__cachedCardRenderer?.item !== this.item) {\n this.__cachedCardRenderer = {\n item: this.item,\n render:\n typeof this.item === 'string'\n ? (new Function(\n 'ctx',\n `return ctx.html\\`<${this.item} related=\\${JSON.stringify(ctx.related)} parent=\\${ctx.parent} class=\"p-m\" infer href=\\${ctx.href}></${this.item}>\\``\n ) as ItemRenderer)\n : this.item,\n };\n }\n\n return this.__cachedCardRenderer.render;\n }\n}\n"]}
1
+ {"version":3,"file":"InternalAsyncListControl.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalAsyncListControl/InternalAsyncListControl.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,8CAA2C;AACrE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,OAAO,wBAAyB,SAAQ,eAAe;IAA7D;;QAeE,0DAA0D;QAC1D,YAAO,GAAG,EAAc,CAAC;QAEzB,yDAAyD;QACzD,UAAK,GAAG,EAAE,CAAC;QAEX,+DAA+D;QAC/D,UAAK,GAAG,EAAE,CAAC;QAEX,6FAA6F;QAC7F,SAAI,GAAuB,EAAE,CAAC;QAE9B,uDAAuD;QACvD,SAAI,GAAgC,EAAE,CAAC;QAEvC,mDAAmD;QACnD,SAAI,GAAG,KAAK,CAAC;QAEb,yCAAyC;QACzC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,mCAAmC;QACnC,qBAAgB,GAAG,KAAK,CAAC;QAEjB,kCAA6B,GAAwB,IAAI,CAAC;QAE1D,yBAAoB,GAGjB,IAAI,CAAC;QAER,mBAAc,GAAiB,GAAG,CAAC,EA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AI,EAAE;YACjD,IAAI,CAAC,oBAAoB,GAAG;gBAC1B,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EACJ,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;oBAC3B,CAAC,CAAE,IAAI,QAAQ,CACX,KAAK,EACL,qBAAqB,IAAI,CAAC,IAAI,wGAAwG,IAAI,CAAC,IAAI,KAAK,CACpI;oBACpB,CAAC,CAAC,IAAI,CAAC,IAAI;aAChB,CAAC;SACH;QAED,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;IAC1C,CAAC;CACF","sourcesContent":["import type { PropertyDeclarations, TemplateResult } from 'lit-element';\nimport type { CollectionPage, NucleonElement } from '../../public';\nimport type { InternalConfirmDialog } from '../InternalConfirmDialog';\nimport type { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport type { ItemRenderer } from '../../public/CollectionPage/types';\nimport type { FormDialog } from '../../index';\n\nimport { InternalControl } from '../InternalControl/InternalControl';\nimport { classMap } from '../../../utils/class-map';\nimport { html } from 'lit-element';\n\nexport class InternalAsyncListControl extends InternalControl {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n hideDeleteButton: { type: Boolean, attribute: 'hide-delete-button' },\n hideCreateButton: { type: Boolean, attribute: 'hide-create-button' },\n related: { type: Array },\n first: { type: String },\n limit: { type: Number },\n form: { type: String },\n item: { type: String },\n wide: { type: Boolean },\n };\n }\n\n /** Same as the `related` property of `NucleonElement`. */\n related = [] as string[];\n\n /** Limit query parameter to apply to the `first` URL. */\n limit = 20;\n\n /** URI of the first page of the hAPI collection to display. */\n first = '';\n\n /** Same as the `form` property of `FormDialog`. If set, will open a dialog on item click. */\n form: FormDialog['form'] = '';\n\n /** Same as the `item` property of `CollectionPage`. */\n item: CollectionPage<any>['item'] = '';\n\n /** Same as the `wide` property of `FormDialog`. */\n wide = false;\n\n /** Hides Delete Swipe Action if true. */\n hideDeleteButton = false;\n\n /** Hides Create button if true. */\n hideCreateButton = false;\n\n private __deletionConfimationCallback: (() => void) | null = null;\n\n private __cachedCardRenderer: {\n item: InternalAsyncListControl['item'];\n render: ItemRenderer;\n } | null = null;\n\n private __itemRenderer: ItemRenderer = ctx => {\n if (!this.form || !ctx.data) return this.__cardRenderer(ctx);\n\n const isDisabled = this.disabledSelector.matches('card', true);\n\n const clickableItem = html`\n <button\n ?disabled=${isDisabled}\n class=${classMap({\n 'rounded-t-l': !ctx.previous,\n 'rounded-b-l': !ctx.next,\n 'focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50': true,\n 'text-left w-full block transition-colors': true,\n 'hover-bg-contrast-5': !isDisabled,\n })}\n @click=${(evt: Event) => {\n const button = evt.currentTarget as HTMLButtonElement;\n const dialog = this.__dialog;\n\n dialog.header = 'header_update';\n dialog.href = ctx.href;\n dialog.show(button);\n }}\n >\n ${this.__cardRenderer(ctx)}\n </button>\n `;\n\n if (this.hideDeleteButton) return clickableItem;\n\n return html`\n <foxy-swipe-actions class=\"block\">\n ${clickableItem}\n\n <vaadin-button\n theme=\"primary error\"\n class=\"h-full rounded-t-l rounded-b-l\"\n slot=\"action\"\n @click=${(evt: CustomEvent) => {\n const button = evt.currentTarget as HTMLElement;\n const confirm = this.renderRoot.querySelector('#confirm') as InternalConfirmDialog;\n\n confirm.show(button);\n\n this.__deletionConfimationCallback = () => {\n const cardButton = button.previousElementSibling!;\n const card = cardButton.querySelector<NucleonElement<any>>('[href]');\n\n card?.delete();\n this.__deletionConfimationCallback = null;\n };\n }}\n >\n <foxy-i18n infer=\"\" key=\"delete_button_text\"></foxy-i18n>\n </vaadin-button>\n </foxy-swipe-actions>\n `;\n };\n\n renderControl(): TemplateResult {\n let first: string;\n\n try {\n const url = new URL(this.first);\n url.searchParams.set('limit', String(this.limit));\n first = url.toString();\n } catch {\n first = this.first;\n }\n\n return html`\n ${this.form\n ? html`\n <foxy-form-dialog\n parent=${first}\n infer=\"dialog\"\n id=\"form\"\n ?wide=${this.wide}\n .related=${this.related}\n .form=${this.form as any}\n >\n </foxy-form-dialog>\n\n ${this.hideDeleteButton\n ? ''\n : html`\n <foxy-internal-confirm-dialog\n message=\"delete_message\"\n confirm=\"delete_confirm\"\n cancel=\"delete_cancel\"\n header=\"delete_header\"\n theme=\"error\"\n lang=${this.lang}\n ns=${this.ns}\n id=\"confirm\"\n @hide=${(evt: DialogHideEvent) => {\n if (!evt.detail.cancelled) this.__deletionConfimationCallback?.();\n }}\n >\n </foxy-internal-confirm-dialog>\n `}\n `\n : ''}\n\n <foxy-pagination first=${first} infer=\"pagination\">\n <foxy-collection-page\n class=\"mb-s block divide-y divide-contrast-5 rounded-t-l rounded-b-l overflow-hidden bg-contrast-5\"\n infer=\"card\"\n .related=${this.related}\n .item=${this.__itemRenderer as any}\n >\n </foxy-collection-page>\n\n ${!this.form || this.readonly || this.hideCreateButton\n ? ''\n : html`\n <vaadin-button\n class=\"mb-s bg-success-10 w-full rounded-t-l rounded-b-l\"\n theme=\"success\"\n ?disabled=${this.disabled}\n @click=${(evt: Event) => {\n evt.preventDefault();\n evt.stopPropagation();\n\n const dialog = this.__dialog;\n const button = evt.currentTarget as HTMLButtonElement;\n\n dialog.header = 'header_create';\n dialog.href = '';\n dialog.show(button);\n }}\n >\n <foxy-i18n infer=\"\" key=\"create_button_text\"></foxy-i18n>\n <iron-icon class=\"icon-inline\" icon=\"icons:add\"></iron-icon>\n </vaadin-button>\n `}\n </foxy-pagination>\n `;\n }\n\n private get __dialog() {\n return this.renderRoot.querySelector('#form') as FormDialog;\n }\n\n private get __cardRenderer() {\n if (this.__cachedCardRenderer?.item !== this.item) {\n this.__cachedCardRenderer = {\n item: this.item,\n render:\n typeof this.item === 'string'\n ? (new Function(\n 'ctx',\n `return ctx.html\\`<${this.item} related=\\${JSON.stringify(ctx.related)} parent=\\${ctx.parent} class=\"p-m\" infer href=\\${ctx.href}></${this.item}>\\``\n ) as ItemRenderer)\n : this.item,\n };\n }\n\n return this.__cachedCardRenderer.render;\n }\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import type { PropertyDeclarations, TemplateResult } from 'lit-element';
2
+ import type { Item, Option } from './types';
3
+ import { InternalEditableControl } from '../InternalEditableControl/InternalEditableControl';
4
+ export declare class InternalEditableListControl extends InternalEditableControl {
5
+ static get properties(): PropertyDeclarations;
6
+ options: Option[];
7
+ private __newItem;
8
+ render(): TemplateResult;
9
+ protected get _value(): Item[];
10
+ protected set _value(newValue: Item[]);
11
+ }