@justifi/webcomponents 5.3.5 → 5.4.0

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 (442) hide show
  1. package/dist/cjs/{Api-f5280a80.js → Api-83d93333.js} +2 -2
  2. package/dist/cjs/{SubAccount-f9069337.js → SubAccount-9babbfd3.js} +7 -7
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-6abf6ed3.js → badge-591df67f.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  6. package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
  7. package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
  8. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  9. package/dist/cjs/{business.service-776142b1.js → business.service-27f67b29.js} +1 -1
  10. package/dist/cjs/{button-aed2ce1a.js → button-7f272a63.js} +1 -1
  11. package/dist/cjs/{Analytics-e91a5523.js → check-pkg-version-52c7c2ab.js} +22 -2
  12. package/dist/cjs/{checkout.service-0643396e.js → checkout.service-46a5b9f2.js} +2 -2
  13. package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -9
  14. package/dist/cjs/{checkouts-table-f88ad3c8.js → checkouts-table-7f2081df.js} +2 -2
  15. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  16. package/dist/cjs/{dispute.service-53c80520.js → dispute.service-a36c48bf.js} +2 -2
  17. package/dist/cjs/{table-ad35ff09.js → event-types-921f3555.js} +9 -2
  18. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  19. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  20. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  21. package/dist/cjs/{form-control-error-text-74fb8498.js → form-control-error-text-377bcf59.js} +1 -1
  22. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  23. package/dist/cjs/{form-control-help-text-3cffd918.js → form-control-help-text-f7369e16.js} +1 -1
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  25. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  26. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  29. package/dist/cjs/{get-payout-csv-bdd7d9c0.js → get-payout-csv-c1c7f03f.js} +2 -2
  30. package/dist/cjs/{get-subaccounts-40c4a0b6.js → get-subaccounts-c1d559a0.js} +2 -2
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  32. package/dist/cjs/{header-1-cc98bae2.js → header-1-a63a16d5.js} +1 -1
  33. package/dist/cjs/{header-3-05ce2ad0.js → header-3-a6e0f274.js} +1 -1
  34. package/dist/cjs/{insurance-state-211cd636.js → insurance-state-ff4fca5a.js} +1 -1
  35. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -5
  37. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  39. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
  40. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-checkout.cjs.entry.js +7 -8
  43. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
  45. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  46. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
  47. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
  48. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
  49. package/dist/cjs/justifi-order-terminals.cjs.entry.js +108 -55
  50. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +4 -4
  51. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
  52. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  53. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  54. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
  57. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  58. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
  59. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  60. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  61. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +70 -0
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +78 -14
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-82b16c28.js → package-53904238.js} +1 -1
  69. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  70. package/dist/cjs/{parts-63f60e81.js → parts-3118ab4b.js} +12 -5
  71. package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
  72. package/dist/cjs/{payment.service-23b0dcb8.js → payment.service-fedf131a.js} +2 -2
  73. package/dist/cjs/payments-list-core.cjs.entry.js +9 -10
  74. package/dist/cjs/{payments-status-b9192db7.js → payments-status-96156930.js} +1 -1
  75. package/dist/cjs/{payments-table-dba2f145.js → payments-table-6f87d43e.js} +2 -2
  76. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  77. package/dist/cjs/payouts-list-core.cjs.entry.js +9 -10
  78. package/dist/cjs/{payouts-status-385a794d.js → payouts-status-aa6842ac.js} +1 -1
  79. package/dist/cjs/{payouts-table-8cd537de.js → payouts-table-d4c8bbbc.js} +2 -2
  80. package/dist/cjs/{skeleton-65afa2f5.js → skeleton-32198b92.js} +1 -1
  81. package/dist/cjs/{spinner-a95e9b8d.js → spinner-a5c0f3c0.js} +1 -1
  82. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  83. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +45 -64
  84. package/dist/cjs/terminal-orders-list-params-state-c419078f.js +22 -0
  85. package/dist/cjs/{terminal-orders-table-8baa5461.js → terminal-orders-table-eb95b278.js} +8 -3
  86. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  87. package/dist/cjs/{terminal.service-2f41898f.js → terminal.service-ac44fc14.js} +8 -2
  88. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -9
  89. package/dist/cjs/{terminals-table-c4c01dc3.js → terminals-table-3f0c33ea.js} +2 -2
  90. package/dist/cjs/{utils-f752bd45.js → utils-97041614.js} +1 -1
  91. package/dist/cjs/webcomponents.cjs.js +1 -1
  92. package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
  93. package/dist/collection/actions/terminal/order-terminals.js +29 -0
  94. package/dist/collection/api/Api.js +2 -2
  95. package/dist/collection/api/TerminalOrder.js +4 -4
  96. package/dist/collection/api/services/terminal.service.js +6 -0
  97. package/dist/collection/api/services/terminal_orders.service.js +9 -0
  98. package/dist/collection/collection-manifest.json +2 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
  100. package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
  101. package/dist/collection/components/order-terminals/order-terminals.js +109 -48
  102. package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.js +1 -1
  103. package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.js +4 -4
  104. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  105. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  106. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  107. package/dist/collection/components/payments-list/payments-list.js +1 -1
  108. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  109. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  110. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  111. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  112. package/dist/collection/components/refund-form/refund-form.js +1 -1
  113. package/dist/collection/components/terminal-orders-list/terminal-order-status.js +6 -1
  114. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +67 -9
  115. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +141 -0
  116. package/dist/collection/components/terminal-orders-list/terminal-orders-list-params-state.js +14 -0
  117. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
  118. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  119. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  120. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  121. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  122. package/dist/collection/styles/parts.js +7 -0
  123. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  124. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  125. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  126. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  127. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  128. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  129. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  130. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  131. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  132. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  133. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  134. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  135. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  136. package/dist/docs.json +275 -18
  137. package/dist/esm/{Api-391d00e2.js → Api-52242eb0.js} +2 -2
  138. package/dist/esm/{SubAccount-f31bdeb4.js → SubAccount-0248b5ab.js} +4 -4
  139. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  140. package/dist/esm/{badge-7768a2b1.js → badge-1555ad1d.js} +1 -1
  141. package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
  142. package/dist/esm/bank-account-form_9.entry.js +4 -4
  143. package/dist/esm/billing-form_3.entry.js +6 -6
  144. package/dist/esm/business-details-core.entry.js +3 -3
  145. package/dist/esm/{business.service-f7c3b9f7.js → business.service-13890e74.js} +1 -1
  146. package/dist/esm/{button-b3d07089.js → button-1e756c34.js} +1 -1
  147. package/dist/{module/Analytics.js → esm/check-pkg-version-0557a5c4.js} +22 -3
  148. package/dist/esm/{checkout.service-020aaf97.js → checkout.service-fe338804.js} +2 -2
  149. package/dist/esm/checkouts-list-core.entry.js +6 -7
  150. package/dist/esm/{checkouts-table-974c57ba.js → checkouts-table-e339bf0c.js} +2 -2
  151. package/dist/esm/custom-popper.entry.js +2 -2
  152. package/dist/esm/{dispute.service-b234b5c7.js → dispute.service-3e1320fe.js} +2 -2
  153. package/dist/esm/{table-03e4dfc0.js → event-types-359ef89e.js} +10 -3
  154. package/dist/esm/form-alert_5.entry.js +1 -1
  155. package/dist/esm/form-control-checkbox.entry.js +5 -5
  156. package/dist/esm/form-control-date.entry.js +4 -4
  157. package/dist/esm/{form-control-error-text-923afdfa.js → form-control-error-text-1391123f.js} +1 -1
  158. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  159. package/dist/esm/{form-control-help-text-c7bdd493.js → form-control-help-text-9918264e.js} +1 -1
  160. package/dist/esm/form-control-monetary.entry.js +5 -5
  161. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  162. package/dist/esm/form-control-number.entry.js +5 -5
  163. package/dist/esm/form-control-radio.entry.js +3 -3
  164. package/dist/esm/form-control-select_3.entry.js +4 -4
  165. package/dist/esm/{get-payout-csv-9528b0a2.js → get-payout-csv-9021a002.js} +2 -2
  166. package/dist/esm/{get-subaccounts-212c162d.js → get-subaccounts-6b048fd1.js} +2 -2
  167. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  168. package/dist/esm/{header-1-649109a3.js → header-1-adb520cc.js} +1 -1
  169. package/dist/esm/{header-3-ca7bb57b.js → header-3-ca58500e.js} +1 -1
  170. package/dist/esm/{insurance-state-e3b48bb2.js → insurance-state-24af6ddb.js} +1 -1
  171. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +4 -4
  172. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +5 -5
  173. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  174. package/dist/esm/justifi-business-details.entry.js +6 -7
  175. package/dist/esm/justifi-business-form.entry.js +8 -9
  176. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  177. package/dist/esm/justifi-checkout-core.entry.js +5 -5
  178. package/dist/esm/justifi-checkout.entry.js +6 -7
  179. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  180. package/dist/esm/justifi-checkouts-list.entry.js +9 -10
  181. package/dist/esm/justifi-details.entry.js +2 -2
  182. package/dist/esm/justifi-dispute-management.entry.js +5 -6
  183. package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
  184. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
  185. package/dist/esm/justifi-order-terminals.entry.js +107 -54
  186. package/dist/esm/justifi-owner-form_3.entry.js +4 -4
  187. package/dist/esm/justifi-payment-details.entry.js +7 -8
  188. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  189. package/dist/esm/justifi-payment-provisioning.entry.js +4 -5
  190. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  191. package/dist/esm/justifi-payments-list.entry.js +10 -11
  192. package/dist/esm/justifi-payout-details.entry.js +7 -8
  193. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  194. package/dist/esm/justifi-payouts-list.entry.js +11 -12
  195. package/dist/esm/justifi-refund-form.entry.js +3 -3
  196. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  197. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  198. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +66 -0
  199. package/dist/esm/justifi-terminal-orders-list.entry.js +79 -15
  200. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  201. package/dist/esm/justifi-terminals-list.entry.js +10 -11
  202. package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
  203. package/dist/esm/loader.js +1 -1
  204. package/dist/esm/{package-b9d805ae.js → package-25d5d805.js} +1 -1
  205. package/dist/esm/pagination-menu.entry.js +1 -1
  206. package/dist/esm/{parts-18c966b1.js → parts-ad835bef.js} +8 -4
  207. package/dist/esm/payment-details-core.entry.js +12 -12
  208. package/dist/esm/{payment.service-81752187.js → payment.service-2967c84b.js} +2 -2
  209. package/dist/esm/payments-list-core.entry.js +8 -9
  210. package/dist/esm/{payments-status-f451caf6.js → payments-status-d011e114.js} +1 -1
  211. package/dist/esm/{payments-table-a7836555.js → payments-table-3e33b856.js} +2 -2
  212. package/dist/esm/payout-details-core.entry.js +7 -7
  213. package/dist/esm/payouts-list-core.entry.js +8 -9
  214. package/dist/esm/{payouts-status-bfae9f42.js → payouts-status-181276c5.js} +1 -1
  215. package/dist/esm/{payouts-table-55f1a8a3.js → payouts-table-199bdf64.js} +2 -2
  216. package/dist/esm/{skeleton-ca37b248.js → skeleton-0cde7cb6.js} +1 -1
  217. package/dist/esm/{spinner-30abb9b0.js → spinner-342e71ff.js} +1 -1
  218. package/dist/esm/table-filters-menu.entry.js +2 -2
  219. package/dist/esm/terminal-orders-list-core.entry.js +44 -63
  220. package/dist/esm/terminal-orders-list-params-state-8fec0a0b.js +16 -0
  221. package/dist/esm/{terminal-orders-table-a340c409.js → terminal-orders-table-2884305a.js} +8 -3
  222. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  223. package/dist/esm/{terminal.service-3c3f2c3f.js → terminal.service-4fab5adc.js} +8 -2
  224. package/dist/esm/terminals-list-core.entry.js +7 -8
  225. package/dist/esm/{terminals-table-88549e54.js → terminals-table-4e1644e8.js} +2 -2
  226. package/dist/esm/{utils-e7df4815.js → utils-96c6292c.js} +1 -1
  227. package/dist/esm/webcomponents.js +1 -1
  228. package/dist/module/Api.js +2 -2
  229. package/dist/module/SubAccount.js +4 -4
  230. package/dist/module/check-pkg-version.js +80 -1
  231. package/dist/module/checkouts-list-core2.js +1 -2
  232. package/dist/module/custom-popper2.js +2 -2
  233. package/dist/module/dispute-response.js +1 -2
  234. package/dist/module/event-types2.js +55 -1
  235. package/dist/module/form-control-checkbox2.js +2 -2
  236. package/dist/module/form-control-date2.js +2 -2
  237. package/dist/module/form-control-file-v22.js +1 -1
  238. package/dist/module/form-control-file2.js +2 -2
  239. package/dist/module/form-control-monetary2.js +2 -2
  240. package/dist/module/form-control-number-masked2.js +2 -2
  241. package/dist/module/form-control-number.js +2 -2
  242. package/dist/module/form-control-radio2.js +2 -2
  243. package/dist/module/form-control-text2.js +2 -2
  244. package/dist/module/form-control-textarea2.js +2 -2
  245. package/dist/module/hidden-input2.js +1 -1
  246. package/dist/module/iframe-input2.js +3 -3
  247. package/dist/module/justifi-business-details.js +1 -2
  248. package/dist/module/justifi-business-form.js +1 -2
  249. package/dist/module/justifi-checkout.js +2 -3
  250. package/dist/module/justifi-checkouts-list.js +1 -2
  251. package/dist/module/justifi-dispute-management.js +1 -2
  252. package/dist/module/justifi-gross-payment-chart.js +1 -2
  253. package/dist/module/justifi-order-terminals.js +105 -51
  254. package/dist/module/justifi-payment-details.js +1 -2
  255. package/dist/module/justifi-payment-provisioning.js +1 -2
  256. package/dist/module/justifi-payments-list-filters.js +3 -3
  257. package/dist/module/justifi-payments-list.js +2 -3
  258. package/dist/module/justifi-payout-details.js +1 -2
  259. package/dist/module/justifi-payouts-list-filters.js +3 -3
  260. package/dist/module/justifi-payouts-list.js +2 -3
  261. package/dist/module/justifi-refund-form.js +1 -1
  262. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  263. package/dist/module/justifi-terminal-orders-list-filters.d.ts +11 -0
  264. package/dist/module/justifi-terminal-orders-list-filters.js +119 -0
  265. package/dist/module/justifi-terminal-orders-list.js +75 -12
  266. package/dist/module/justifi-terminals-list-filters.js +2 -2
  267. package/dist/module/justifi-terminals-list.js +3 -4
  268. package/dist/module/justifi-tokenize-payment-method.js +3 -4
  269. package/dist/module/package.js +1 -1
  270. package/dist/module/parts.js +8 -4
  271. package/dist/module/payment-details-core2.js +7 -7
  272. package/dist/module/payment-provisioning-core.js +2 -2
  273. package/dist/module/payments-list-core2.js +2 -3
  274. package/dist/module/payout-details-core2.js +1 -1
  275. package/dist/module/payouts-list-core2.js +2 -3
  276. package/dist/module/terminal-orders-list-core2.js +44 -59
  277. package/dist/module/terminal-orders-list-params-state.js +16 -0
  278. package/dist/module/terminal-quantity-selector2.js +2 -2
  279. package/dist/module/terminal.service.js +6 -0
  280. package/dist/module/terminals-list-core2.js +2 -3
  281. package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
  282. package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
  283. package/dist/types/api/Api.d.ts +1 -1
  284. package/dist/types/api/TerminalOrder.d.ts +11 -5
  285. package/dist/types/api/services/terminal.service.d.ts +2 -0
  286. package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
  287. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
  288. package/dist/types/components/order-terminals/order-terminals.d.ts +20 -3
  289. package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.d.ts +2 -2
  290. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -2
  291. package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +19 -0
  292. package/dist/types/components/terminal-orders-list/terminal-orders-list-params-state.d.ts +6 -0
  293. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
  294. package/dist/types/components.d.ts +49 -6
  295. package/dist/types/styles/parts.d.ts +6 -0
  296. package/dist/webcomponents/p-00d55a4b.entry.js +1 -0
  297. package/dist/webcomponents/{p-348fc9b1.js → p-04d59ef8.js} +1 -1
  298. package/dist/webcomponents/p-073f24ba.entry.js +1 -0
  299. package/dist/webcomponents/p-07c13189.entry.js +1 -0
  300. package/dist/webcomponents/p-0bafaf49.entry.js +1 -0
  301. package/dist/webcomponents/p-0d01d245.entry.js +1 -0
  302. package/dist/webcomponents/p-13d62477.entry.js +1 -0
  303. package/dist/webcomponents/{p-930e2e05.js → p-17c4edf7.js} +1 -1
  304. package/dist/webcomponents/{p-6776df16.js → p-17eea747.js} +1 -1
  305. package/dist/webcomponents/p-1b3a6c40.entry.js +1 -0
  306. package/dist/webcomponents/p-1fb5677e.entry.js +1 -0
  307. package/dist/webcomponents/p-24203209.entry.js +1 -0
  308. package/dist/webcomponents/{p-ca19fd2e.js → p-251c8e97.js} +1 -1
  309. package/dist/webcomponents/{p-d37d20ca.entry.js → p-258087a8.entry.js} +1 -1
  310. package/dist/webcomponents/p-2759d157.entry.js +1 -0
  311. package/dist/webcomponents/{p-f48dd1ef.entry.js → p-2cd9b608.entry.js} +1 -1
  312. package/dist/webcomponents/p-2dd39017.js +1 -0
  313. package/dist/webcomponents/p-3030f5e6.entry.js +1 -0
  314. package/dist/webcomponents/p-308ec9c7.entry.js +1 -0
  315. package/dist/webcomponents/{p-9ffed802.js → p-324587d0.js} +1 -1
  316. package/dist/webcomponents/{p-d019b800.js → p-34a95381.js} +1 -1
  317. package/dist/webcomponents/{p-b40bcf59.js → p-365e56fc.js} +1 -1
  318. package/dist/webcomponents/p-36e32bc4.entry.js +1 -0
  319. package/dist/webcomponents/p-454acd29.entry.js +1 -0
  320. package/dist/webcomponents/{p-adf30888.entry.js → p-45e68bb3.entry.js} +1 -1
  321. package/dist/webcomponents/p-485df2fe.entry.js +1 -0
  322. package/dist/webcomponents/p-50b012a3.entry.js +1 -0
  323. package/dist/webcomponents/p-52e2cc5e.js +1 -0
  324. package/dist/webcomponents/{p-ec3f9d80.entry.js → p-55e21977.entry.js} +1 -1
  325. package/dist/webcomponents/{p-0a271654.entry.js → p-56143442.entry.js} +1 -1
  326. package/dist/webcomponents/{p-834c12a0.entry.js → p-5cf1898d.entry.js} +1 -1
  327. package/dist/webcomponents/p-5d600828.js +1 -0
  328. package/dist/webcomponents/{p-0e180654.js → p-5f6b4bc9.js} +1 -1
  329. package/dist/webcomponents/{p-6501cb6e.entry.js → p-61a45f7d.entry.js} +1 -1
  330. package/dist/webcomponents/p-646d007a.js +1 -0
  331. package/dist/webcomponents/p-651c881b.js +1 -0
  332. package/dist/webcomponents/{p-0ef25316.entry.js → p-6a4b710e.entry.js} +1 -1
  333. package/dist/webcomponents/{p-140836f1.entry.js → p-74f6cc28.entry.js} +1 -1
  334. package/dist/webcomponents/p-78255a04.entry.js +1 -0
  335. package/dist/webcomponents/p-7d93c28b.js +1 -0
  336. package/dist/webcomponents/{p-808f61aa.js → p-88af0d7d.js} +1 -1
  337. package/dist/webcomponents/p-8946edfd.js +1 -0
  338. package/dist/webcomponents/p-8ffd9f7c.js +1 -0
  339. package/dist/webcomponents/{p-29988e8f.entry.js → p-92b18902.entry.js} +1 -1
  340. package/dist/webcomponents/{p-57ddf983.entry.js → p-92f29922.entry.js} +1 -1
  341. package/dist/webcomponents/{p-66cdd475.js → p-944f1cc7.js} +1 -1
  342. package/dist/webcomponents/p-97f3a1b0.entry.js +1 -0
  343. package/dist/webcomponents/p-9c57de4e.entry.js +1 -0
  344. package/dist/webcomponents/p-9fcab358.entry.js +1 -0
  345. package/dist/webcomponents/{p-b4ed5a2c.js → p-a0f715d4.js} +1 -1
  346. package/dist/webcomponents/p-a35f3b5b.js +1 -0
  347. package/dist/webcomponents/p-a7594f8f.entry.js +1 -0
  348. package/dist/webcomponents/{p-69ae193c.js → p-a81cabed.js} +1 -1
  349. package/dist/webcomponents/{p-3744006f.js → p-b19a37d4.js} +1 -1
  350. package/dist/webcomponents/{p-c1af1fdb.entry.js → p-b7960f37.entry.js} +1 -1
  351. package/dist/webcomponents/{p-7d43c1d6.entry.js → p-b7ddb76f.entry.js} +1 -1
  352. package/dist/webcomponents/p-b97f433a.entry.js +1 -0
  353. package/dist/webcomponents/{p-913d51b9.js → p-ba113075.js} +1 -1
  354. package/dist/webcomponents/p-be6fea42.entry.js +1 -0
  355. package/dist/webcomponents/p-beec0b60.js +1 -0
  356. package/dist/webcomponents/p-c380213d.js +1 -0
  357. package/dist/webcomponents/{p-420d6572.entry.js → p-c3939138.entry.js} +1 -1
  358. package/dist/webcomponents/p-c7c9725d.entry.js +1 -0
  359. package/dist/webcomponents/p-cba7d0a7.entry.js +1 -0
  360. package/dist/webcomponents/{p-77245638.js → p-d273f33b.js} +1 -1
  361. package/dist/webcomponents/p-d4724349.js +1 -0
  362. package/dist/webcomponents/p-d575c2c1.entry.js +1 -0
  363. package/dist/webcomponents/{p-dd535097.js → p-d5960545.js} +1 -1
  364. package/dist/webcomponents/p-d78ea308.entry.js +1 -0
  365. package/dist/webcomponents/p-d7bcf8f0.js +1 -0
  366. package/dist/webcomponents/{p-566883fb.entry.js → p-d8ba9309.entry.js} +1 -1
  367. package/dist/webcomponents/p-da2a9dfa.entry.js +1 -0
  368. package/dist/webcomponents/{p-1a9d60b1.entry.js → p-dac9282d.entry.js} +1 -1
  369. package/dist/webcomponents/{p-4a580682.entry.js → p-dd3de924.entry.js} +1 -1
  370. package/dist/webcomponents/p-df9ff0ce.entry.js +1 -0
  371. package/dist/webcomponents/p-e1dd47e1.entry.js +1 -0
  372. package/dist/webcomponents/{p-7e4c84f7.entry.js → p-e52e9120.entry.js} +1 -1
  373. package/dist/webcomponents/p-e545c079.entry.js +1 -0
  374. package/dist/webcomponents/p-e5c60276.entry.js +1 -0
  375. package/dist/webcomponents/p-e5de1a00.entry.js +1 -0
  376. package/dist/webcomponents/{p-7dc34297.entry.js → p-ed3ad073.entry.js} +1 -1
  377. package/dist/webcomponents/{p-54502491.entry.js → p-f1573cad.entry.js} +1 -1
  378. package/dist/webcomponents/p-f1d6e14f.js +1 -0
  379. package/dist/webcomponents/{p-4014d084.entry.js → p-f57d5d4f.entry.js} +1 -1
  380. package/dist/webcomponents/{p-8548d8de.js → p-f87e871d.js} +1 -1
  381. package/dist/webcomponents/p-f8a95380.entry.js +1 -0
  382. package/dist/webcomponents/{p-1e3cc191.entry.js → p-fa5688f7.entry.js} +1 -1
  383. package/dist/webcomponents/p-fbdc18e4.entry.js +1 -0
  384. package/dist/webcomponents/{p-49fc12b2.entry.js → p-fdd244b1.entry.js} +1 -1
  385. package/dist/webcomponents/webcomponents.esm.js +1 -1
  386. package/package.json +1 -1
  387. package/dist/cjs/check-pkg-version-d19c6fdb.js +0 -24
  388. package/dist/cjs/event-types-b6d34593.js +0 -8
  389. package/dist/esm/Analytics-d0f79dc3.js +0 -82
  390. package/dist/esm/check-pkg-version-2e9f961e.js +0 -22
  391. package/dist/esm/event-types-0a83d0b4.js +0 -8
  392. package/dist/module/table.js +0 -55
  393. package/dist/webcomponents/p-0ef50c81.js +0 -1
  394. package/dist/webcomponents/p-0f85fde5.entry.js +0 -1
  395. package/dist/webcomponents/p-0faaae79.entry.js +0 -1
  396. package/dist/webcomponents/p-121e9167.entry.js +0 -1
  397. package/dist/webcomponents/p-1d019dda.entry.js +0 -1
  398. package/dist/webcomponents/p-1f99a902.js +0 -1
  399. package/dist/webcomponents/p-1fcde0de.entry.js +0 -1
  400. package/dist/webcomponents/p-229c841e.entry.js +0 -1
  401. package/dist/webcomponents/p-2481c1d3.entry.js +0 -1
  402. package/dist/webcomponents/p-31507b3a.entry.js +0 -1
  403. package/dist/webcomponents/p-36060c36.entry.js +0 -1
  404. package/dist/webcomponents/p-418ab812.entry.js +0 -1
  405. package/dist/webcomponents/p-45bed1b7.js +0 -1
  406. package/dist/webcomponents/p-4bb0d6fd.js +0 -1
  407. package/dist/webcomponents/p-4c4a2c48.js +0 -1
  408. package/dist/webcomponents/p-4f9a2f1f.js +0 -1
  409. package/dist/webcomponents/p-55a6599a.entry.js +0 -1
  410. package/dist/webcomponents/p-5bf5f7d7.entry.js +0 -1
  411. package/dist/webcomponents/p-5dc767d8.js +0 -1
  412. package/dist/webcomponents/p-6815a6cb.entry.js +0 -1
  413. package/dist/webcomponents/p-76d1036b.entry.js +0 -1
  414. package/dist/webcomponents/p-77e3ed67.js +0 -1
  415. package/dist/webcomponents/p-867e34b8.entry.js +0 -1
  416. package/dist/webcomponents/p-8a3f1a56.entry.js +0 -1
  417. package/dist/webcomponents/p-8a9debac.entry.js +0 -1
  418. package/dist/webcomponents/p-8b3842ce.js +0 -1
  419. package/dist/webcomponents/p-96a491aa.js +0 -1
  420. package/dist/webcomponents/p-9a6eacd0.entry.js +0 -1
  421. package/dist/webcomponents/p-9d8cf927.entry.js +0 -1
  422. package/dist/webcomponents/p-b0335a17.entry.js +0 -1
  423. package/dist/webcomponents/p-b075211e.entry.js +0 -1
  424. package/dist/webcomponents/p-b7a407fb.entry.js +0 -1
  425. package/dist/webcomponents/p-b894423f.js +0 -1
  426. package/dist/webcomponents/p-bc6e3e59.entry.js +0 -1
  427. package/dist/webcomponents/p-bc73a554.entry.js +0 -1
  428. package/dist/webcomponents/p-c17af2a4.entry.js +0 -1
  429. package/dist/webcomponents/p-ca55be58.js +0 -1
  430. package/dist/webcomponents/p-d979d9ea.entry.js +0 -1
  431. package/dist/webcomponents/p-d981a599.entry.js +0 -1
  432. package/dist/webcomponents/p-da415c08.entry.js +0 -1
  433. package/dist/webcomponents/p-e0befd51.js +0 -1
  434. package/dist/webcomponents/p-e7d2eba7.entry.js +0 -1
  435. package/dist/webcomponents/p-e895bc2a.entry.js +0 -1
  436. package/dist/webcomponents/p-ee991c9e.entry.js +0 -1
  437. package/dist/webcomponents/p-f1580c62.js +0 -1
  438. package/dist/webcomponents/p-fe0399a1.js +0 -1
  439. package/dist/webcomponents/p-fe439eb2.entry.js +0 -1
  440. package/dist/webcomponents/p-fe8be5fa.entry.js +0 -1
  441. package/dist/webcomponents/p-ffbd95d0.entry.js +0 -1
  442. /package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.d.ts +0 -0
@@ -4,24 +4,28 @@ import { table, tableCell } from "../../styles/parts";
4
4
  import { TableEmptyState, TableErrorState, TableLoadingState } from "../../ui-components";
5
5
  import { pagingDefaults } from "../../api";
6
6
  import { terminalOrdersTableCells, terminalOrdersTableColumns } from "./terminal-orders-table";
7
- import mockTerminalOrders from "../../../../../mockData/mockTerminalOrdersListSuccess.json";
7
+ import { TableClickActions } from "../../ui-components/table/event-types";
8
+ import { getRequestParams, onQueryParamsChange } from "./terminal-orders-list-params-state";
8
9
  export class TerminalOrdersListCore {
9
10
  constructor() {
10
11
  this.handleClickPrevious = (beforeCursor) => {
11
12
  this.pagingParams = { before_cursor: beforeCursor };
13
+ this.clickEvent.emit({ name: TableClickActions.previous });
12
14
  };
13
15
  this.handleClickNext = (afterCursor) => {
14
16
  this.pagingParams = { after_cursor: afterCursor };
17
+ this.clickEvent.emit({ name: TableClickActions.next });
15
18
  };
16
19
  this.rowClickHandler = (e) => {
17
20
  const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
18
21
  if (!clickedOrderId)
19
22
  return;
20
- console.log('clickedOrderId', clickedOrderId);
23
+ const orderData = this.terminalOrders.find((order) => order.id === clickedOrderId);
24
+ this.clickEvent.emit({ name: TableClickActions.row, data: orderData });
21
25
  };
22
26
  this.getTerminalOrders = undefined;
23
27
  this.columns = undefined;
24
- this.terminalOrders = mockTerminalOrders.data;
28
+ this.terminalOrders = [];
25
29
  this.terminalOrdersTable = undefined;
26
30
  this.loading = true;
27
31
  this.errorMessage = undefined;
@@ -36,11 +40,38 @@ export class TerminalOrdersListCore {
36
40
  if (this.getTerminalOrders) {
37
41
  this.fetchData();
38
42
  }
43
+ onQueryParamsChange('set', () => {
44
+ this.pagingParams = {};
45
+ });
46
+ onQueryParamsChange('reset', () => {
47
+ this.pagingParams = {};
48
+ this.errorMessage = '';
49
+ });
39
50
  }
40
51
  fetchData() {
41
52
  this.loading = true;
42
- console.log('fetching terminal orders');
43
- this.loading = false;
53
+ this.getTerminalOrders({
54
+ params: this.terminalOrderParams,
55
+ onSuccess: async ({ terminalOrders, pagingInfo }) => {
56
+ this.terminalOrders = terminalOrders;
57
+ this.paging = pagingInfo;
58
+ this.terminalOrdersTable.collectionData = this.terminalOrders;
59
+ },
60
+ onError: ({ error, code, severity }) => {
61
+ this.errorMessage = error;
62
+ this.errorEvent.emit({
63
+ errorCode: code,
64
+ message: error,
65
+ severity,
66
+ });
67
+ },
68
+ final: () => { this.loading = false; },
69
+ });
70
+ }
71
+ get terminalOrderParams() {
72
+ const requestParams = getRequestParams();
73
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
74
+ return params;
44
75
  }
45
76
  get entityId() {
46
77
  return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
@@ -55,7 +86,7 @@ export class TerminalOrdersListCore {
55
86
  return !this.showEmptyState && !this.showErrorState && !this.loading;
56
87
  }
57
88
  render() {
58
- return (h("div", { key: 'e07bb592d2d419079a00fe017789c98dc5814202' }, h("div", { key: '1090df8ad75e0fdcd07a625c608c2fc0d38391d9', class: "table-wrapper" }, h("table", { key: '31637db0926f2cd88d1333d5f512842406b1e0ef', class: "table table-hover", part: table }, h("thead", { key: '2af2d35a486433b2cb2bab0b7d61d4be9e8d70ab', class: "table-head sticky-top" }, h("tr", { key: 'a42e578f3369b6466a331abeb34d63d9c09c0122', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '16c4a9e940268fe2da49a9b14680d34a0f160ccc', class: "table-body" }, h(TableLoadingState, { key: 'a1ce6dcc9799bdd215b5d686d05e3014e594d975', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '135df5499de4e17855643d8ce4ebeb7f71aa5e85', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '00d2f0bc0bceb46178970c1eb0a0eb87c6fa6054', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '49ce37b7ea5e979c8d754d48b9c803a163623387', class: "sticky-bottom" }, h("tr", { key: 'b73f32023e01d82c3eb91120c7eae907a9367517', class: "table-light align-middle" }, h("td", { key: 'cae073d169507d459d60f150fecbaad287996c74', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '9a9fa1cd2c520ee09814adf6d060d048bd77dcc1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
89
+ return (h("div", { key: '07a7b40585feb4644ddcf1a8c202460c79c8b045' }, h("div", { key: 'e03fc01808d22ce86bfdfaa2086f8492f45ee64e', class: "table-wrapper" }, h("table", { key: '0c54da0a4526466e487ad5093cb6c426c4cfb81a', class: "table table-hover", part: table }, h("thead", { key: 'b4495bd1eb73750104667cb7b74061dca4bb6257', class: "table-head sticky-top" }, h("tr", { key: '8df705836f557da6c08b33094eecb0505f8d3ec8', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '47b008d75931b177e1acd3bc073f6015dfb17498', class: "table-body" }, h(TableLoadingState, { key: '7f2e4e329ec342db4aac981e514e28245cdbc992', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f4a17608ce889a890f5dd1bf689e6ae24ad28ca9', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'e57677d193f4eff27793d684607572631dc97d8a', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '7c427d0b2db99df57ebd097ef8671566f6239d50', class: "sticky-bottom" }, h("tr", { key: 'b5d8bf7d6d43119f8f31a2ea0e0966e8f0888889', class: "table-light align-middle" }, h("td", { key: 'f36bd4d815ca6be5c69a264c90b0ce6696bc6664', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '25f4964ec46220bbceac9f763e668f77bac79299', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
59
90
  }
60
91
  static get is() { return "terminal-orders-list-core"; }
61
92
  static get properties() {
@@ -111,6 +142,27 @@ export class TerminalOrdersListCore {
111
142
  }
112
143
  static get events() {
113
144
  return [{
145
+ "method": "clickEvent",
146
+ "name": "click-event",
147
+ "bubbles": true,
148
+ "cancelable": true,
149
+ "composed": true,
150
+ "docs": {
151
+ "tags": [],
152
+ "text": ""
153
+ },
154
+ "complexType": {
155
+ "original": "ComponentClickEvent",
156
+ "resolved": "ComponentClickEvent",
157
+ "references": {
158
+ "ComponentClickEvent": {
159
+ "location": "import",
160
+ "path": "../../api",
161
+ "id": "src/api/index.ts::ComponentClickEvent"
162
+ }
163
+ }
164
+ }
165
+ }, {
114
166
  "method": "errorEvent",
115
167
  "name": "error-event",
116
168
  "bubbles": true,
@@ -121,9 +173,15 @@ export class TerminalOrdersListCore {
121
173
  "text": ""
122
174
  },
123
175
  "complexType": {
124
- "original": "any",
125
- "resolved": "any",
126
- "references": {}
176
+ "original": "ComponentErrorEvent",
177
+ "resolved": "ComponentErrorEvent",
178
+ "references": {
179
+ "ComponentErrorEvent": {
180
+ "location": "import",
181
+ "path": "../../api",
182
+ "id": "src/api/index.ts::ComponentErrorEvent"
183
+ }
184
+ }
127
185
  }
128
186
  }];
129
187
  }
@@ -0,0 +1,141 @@
1
+ import { h } from "@stencil/core";
2
+ import { filterParams, propsParams, clearParams } from "./terminal-orders-list-params-state";
3
+ import { StyledHost } from "../../ui-components";
4
+ import { TerminalOrderStatus, TerminalOrderType } from "../../api";
5
+ import { convertToLocal, convertToUTC } from "../../utils/utils";
6
+ import { terminalOrdersListFilterMenu, orderStatusTerminalOrdersListFilterParam, orderTypeTerminalOrdersListFilterParam, createdAfterTerminalOrdersListFilterParam, createdBeforeTerminalOrdersListFilterParam } from "../../styles/parts";
7
+ export class TerminalOrdersListFilters {
8
+ constructor() {
9
+ this.setParamsOnChange = (name, value) => {
10
+ filterParams[name] = value;
11
+ };
12
+ this.handleDateInput = (name, value) => {
13
+ const utcDate = convertToUTC(value, { setExactTime: true });
14
+ this.setParamsOnChange(name, utcDate);
15
+ };
16
+ this.orderStatus = undefined;
17
+ this.orderType = undefined;
18
+ this.createdAfter = undefined;
19
+ this.createdBefore = undefined;
20
+ }
21
+ componentWillLoad() {
22
+ const propsToSet = {
23
+ order_status: this.orderStatus,
24
+ order_type: this.orderType,
25
+ created_after: this.createdAfter,
26
+ created_before: this.createdBefore
27
+ };
28
+ Object.entries(propsToSet).forEach(([key, value]) => {
29
+ if (value) {
30
+ propsParams[key] = value;
31
+ }
32
+ });
33
+ }
34
+ get terminalOrderStatusOptions() {
35
+ return [
36
+ { label: 'All', value: '' },
37
+ { label: 'Created', value: TerminalOrderStatus.created },
38
+ { label: 'Completed', value: TerminalOrderStatus.completed },
39
+ { label: 'Submitted', value: TerminalOrderStatus.submitted },
40
+ ];
41
+ }
42
+ get terminalOrderTypeOptions() {
43
+ return [
44
+ { label: 'All', value: '' },
45
+ { label: 'Boarding Only', value: TerminalOrderType.boardingOnly },
46
+ { label: 'Boarding Shipping', value: TerminalOrderType.boardingShipping },
47
+ ];
48
+ }
49
+ render() {
50
+ const filterMenuParams = Object.assign({}, filterParams);
51
+ return (h(StyledHost, { key: '9f84e2a68bbf745714bd972e6f8510eb5c864248' }, h("table-filters-menu", { key: 'f78bfdd9940b62f74cc96969946df75274e8580c', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'e16d37583700f39e1ab513fb362555677aa77bbf', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '81e9b0f98cec6fb803b17ce10a1a79d61f302988', class: "p-2" }, h("form-control-select", { key: 'c5749e4b06a3c4af835e03384434d0fed054c22b', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: 'e2367532d8147a1fc184eadce40f61894cd701cd', class: "p-2" }, h("form-control-select", { key: 'f8145506abf6879b4a21d9ae49d43061e5f6daef', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '61b3da75c15121adc65c37443f0d251c2bf0af45', class: "p-2" }, h("form-control-date", { key: 'eb8afbbb5b2148fb12705fc0b577290b9f5ac881', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
52
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '968131100100709c91fdd1c6d2916910bb5d34b2', class: "p-2" }, h("form-control-date", { key: 'd1f34c4297a80dd7c9f3e301d798c99db82a7b80', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
53
+ convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
54
+ }
55
+ static get is() { return "justifi-terminal-orders-list-filters"; }
56
+ static get encapsulation() { return "shadow"; }
57
+ static get properties() {
58
+ return {
59
+ "orderStatus": {
60
+ "type": "string",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "TerminalOrderStatus",
64
+ "resolved": "TerminalOrderStatus.completed | TerminalOrderStatus.created | TerminalOrderStatus.submitted",
65
+ "references": {
66
+ "TerminalOrderStatus": {
67
+ "location": "import",
68
+ "path": "../../api",
69
+ "id": "src/api/index.ts::TerminalOrderStatus"
70
+ }
71
+ }
72
+ },
73
+ "required": false,
74
+ "optional": true,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": ""
78
+ },
79
+ "attribute": "order-status",
80
+ "reflect": false
81
+ },
82
+ "orderType": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "TerminalOrderType",
87
+ "resolved": "TerminalOrderType.boardingOnly | TerminalOrderType.boardingShipping",
88
+ "references": {
89
+ "TerminalOrderType": {
90
+ "location": "import",
91
+ "path": "../../api",
92
+ "id": "src/api/index.ts::TerminalOrderType"
93
+ }
94
+ }
95
+ },
96
+ "required": false,
97
+ "optional": true,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "attribute": "order-type",
103
+ "reflect": false
104
+ },
105
+ "createdAfter": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "attribute": "created-after",
120
+ "reflect": false
121
+ },
122
+ "createdBefore": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": true,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "attribute": "created-before",
137
+ "reflect": false
138
+ }
139
+ };
140
+ }
141
+ }
@@ -0,0 +1,14 @@
1
+ import { createStore } from "@stencil/store";
2
+ const filterParamsInitialState = {};
3
+ const propsParamsInitialState = {};
4
+ const filterParamsStore = createStore(() => filterParamsInitialState);
5
+ const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
6
+ const propsParamsStore = createStore(() => propsParamsInitialState);
7
+ const { state: propsParams } = propsParamsStore;
8
+ const getRequestParams = () => {
9
+ return Object.assign(Object.assign({}, filterParams), propsParams);
10
+ };
11
+ const clearParams = () => {
12
+ filterParamsStore.reset();
13
+ };
14
+ export { filterParams, propsParams, onQueryParamsChange, clearParams, getRequestParams };
@@ -2,37 +2,54 @@ import { h } from "@stencil/core";
2
2
  import { StyledHost } from "../../ui-components";
3
3
  import { checkPkgVersion } from "../../utils/check-pkg-version";
4
4
  import { defaultColumnsKeys } from "./terminal-orders-table";
5
+ import { makeGetTerminalOrders } from "../../actions/terminal/get-terminal-orders";
6
+ import { TerminalOrderService } from "../../api/services/terminal_orders.service";
7
+ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
8
+ import JustifiAnalytics from "../../api/Analytics";
5
9
  export class TerminalOrdersList {
6
10
  constructor() {
11
+ this.handleErrorEvent = (event) => {
12
+ this.errorMessage = event.detail.message;
13
+ this.errorEvent.emit(event.detail);
14
+ };
7
15
  this.getTerminalOrders = undefined;
8
16
  this.errorMessage = null;
9
- this.businessId = undefined;
17
+ this.accountId = undefined;
10
18
  this.authToken = undefined;
11
19
  this.apiOrigin = PROXY_API_ORIGIN;
12
20
  this.columns = defaultColumnsKeys;
13
21
  }
14
22
  componentWillLoad() {
15
23
  checkPkgVersion();
16
- this.initializeGetTerminalOrders();
24
+ this.analytics = new JustifiAnalytics(this);
25
+ this.initializeGetData();
17
26
  }
18
- initializeGetTerminalOrders() {
19
- if (this.businessId && this.authToken) {
20
- this.getTerminalOrders = () => {
21
- console.log('getTerminalOrders');
22
- };
27
+ initializeGetData() {
28
+ if (this.accountId && this.authToken) {
29
+ this.getTerminalOrders = makeGetTerminalOrders({
30
+ id: this.accountId,
31
+ authToken: this.authToken,
32
+ service: new TerminalOrderService(),
33
+ apiOrigin: this.apiOrigin
34
+ });
23
35
  }
24
36
  else {
25
- this.errorMessage = 'Business ID and Auth Token are required';
37
+ this.errorMessage = 'Account ID and Auth Token are required';
38
+ this.errorEvent.emit({
39
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
40
+ message: this.errorMessage,
41
+ severity: ComponentErrorSeverity.ERROR,
42
+ });
26
43
  }
27
44
  }
28
45
  render() {
29
- return (h(StyledHost, { key: 'f64c444f9e93c3f520bd5c119b49b6b51163e03b' }, h("terminal-orders-list-core", { key: 'd7601588a25fd5ee08ad8faddc02807a61015d15', getTerminalOrders: this.getTerminalOrders, columns: this.columns })));
46
+ return (h(StyledHost, { key: '1975f9c01aa35624f1b7f0fc5b444a9b688fb01a' }, h("terminal-orders-list-core", { key: '5488661e4526af1e3db008e56baf5289c46737e6', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
30
47
  }
31
48
  static get is() { return "justifi-terminal-orders-list"; }
32
49
  static get encapsulation() { return "shadow"; }
33
50
  static get properties() {
34
51
  return {
35
- "businessId": {
52
+ "accountId": {
36
53
  "type": "string",
37
54
  "mutable": false,
38
55
  "complexType": {
@@ -46,7 +63,7 @@ export class TerminalOrdersList {
46
63
  "tags": [],
47
64
  "text": ""
48
65
  },
49
- "attribute": "business-id",
66
+ "attribute": "account-id",
50
67
  "reflect": false
51
68
  },
52
69
  "authToken": {
@@ -110,4 +127,28 @@ export class TerminalOrdersList {
110
127
  "errorMessage": {}
111
128
  };
112
129
  }
130
+ static get events() {
131
+ return [{
132
+ "method": "errorEvent",
133
+ "name": "error-event",
134
+ "bubbles": true,
135
+ "cancelable": true,
136
+ "composed": true,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": ""
140
+ },
141
+ "complexType": {
142
+ "original": "ComponentErrorEvent",
143
+ "resolved": "ComponentErrorEvent",
144
+ "references": {
145
+ "ComponentErrorEvent": {
146
+ "location": "import",
147
+ "path": "../../api",
148
+ "id": "src/api/index.ts::ComponentErrorEvent"
149
+ }
150
+ }
151
+ }
152
+ }];
153
+ }
113
154
  }
@@ -124,7 +124,7 @@ export class TerminalsListCore {
124
124
  return !this.showEmptyState && !this.showErrorState && !this.loading;
125
125
  }
126
126
  render() {
127
- return (h("div", { key: 'd700224838a23855b9cce179c23d40da07fd37ce' }, h("div", { key: '0a03d361d4482342edc5db06209f87a83735791f', class: "table-wrapper" }, h("table", { key: '690d3b7ea58065281171e005252d4969f6284719', class: "table table-hover", part: table }, h("thead", { key: 'c92fc6c7514afc995e0d4e148d715b69c96118cd', class: "table-head sticky-top" }, h("tr", { key: 'bfeff664d29eac8f52e12adf40841b74711e9de2', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '0e8c69e12b8a64020e1b10af92ce05f7e1864d28', class: "table-body" }, h(TableLoadingState, { key: '3fef62d6146938773a52c88f178438004d46f1eb', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'caec9eb5131fd8037e5cdccaf6c29d2f7f91ed7e', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'bd597887c2441bc070ff8ca9ec8d03564e62b9eb', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'ec61caec8ae1de6f106221f21827a89dfcad5b05', class: "sticky-bottom" }, h("tr", { key: 'e99c4133f365a7fefdc18d4a8bae9ac67b877fbd', class: "table-light align-middle" }, h("td", { key: 'ed22056d675baa32eef0bcc7fd2a4ae659d563aa', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '8dffd0065bb7d74b43d2a56a5c0356d84301e58b', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
127
+ return (h("div", { key: 'b43bce610d87129e9f509a0b62e2c8ca25187c1b' }, h("div", { key: '8a29d235532fbea5e8de8196ba11776dbd697b7e', class: "table-wrapper" }, h("table", { key: 'f52c104f03c014510c8b796d6fdaaf56d0f17cc4', class: "table table-hover", part: table }, h("thead", { key: 'c3690cf84b2208e5bf91ce781876bc42a468f96c', class: "table-head sticky-top" }, h("tr", { key: '419b8dd4d311efe4435c4ca3a15f62985d4300f3', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '5c9ef7f9d6d53b2f63c907f35cd7e6afeb44481b', class: "table-body" }, h(TableLoadingState, { key: '6b24dda78bd4c17751e8956127ff9394c720edf5', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '76d3646c7ba043f091947d5fdd536d4ac7df6902', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '0b418d8ca3268176b47aee6b80712d75181c8d9c', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'a46a3632e5610dd29f919d9c7b969cb1c07f67ac', class: "sticky-bottom" }, h("tr", { key: '7ef9b68abdae3cb542ecce0c261746413f1e6321', class: "table-light align-middle" }, h("td", { key: '72b477d84f6e58a5e457647e581de87ebc8f53c0', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'de9635642f0ea24da62b8dd2c50e05c4a2c87f37', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
128
128
  }
129
129
  static get is() { return "terminals-list-core"; }
130
130
  static get properties() {
@@ -35,7 +35,7 @@ export class TerminalsListFilters {
35
35
  }
36
36
  render() {
37
37
  const filterMenuParams = Object.assign({}, filterParams);
38
- return (h(StyledHost, { key: 'c0dc68ecfc49cbb1ec3297c1ae9b66e4d21fecc5' }, h("table-filters-menu", { key: '74a2627c14a61251052647bc41b6a9d331f04a20', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '0aa6684df6548ffc721507ba11d8494a7ac56d46', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '6cb0918e840d7651e41b11c262cae4c6932c32ef', class: "p-2" }, h("form-control-text", { key: 'b5b134f5c243596b1232404b8f341bd46f69ae40', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '8d88708e80c08fcfa9fb204afa1b0aade761d440', class: "p-2" }, h("form-control-select", { key: 'cfd6300240fd31d6e826f9f0662cdabf5b950497', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
38
+ return (h(StyledHost, { key: 'b731afdb3ffb0c9bc35c5e04177b0db9bc5b9a69' }, h("table-filters-menu", { key: '8ee2d6e6f4e12e03a8236b35aae3132f5a72c204', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'a8b6adb28c43a2f528554ee9ae582001bddcaac5', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '08cc61200740cb6fac0b123bd2005942ea9d6c3f', class: "p-2" }, h("form-control-text", { key: 'd0f572c893e3d44256d482e791b93588422bcf86', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'a498de1139b122bad5416267ecc949debc43491d', class: "p-2" }, h("form-control-select", { key: '6235e893b62882e993e798b9a3cc1fafc84f215c', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
39
39
  }
40
40
  static get is() { return "justifi-terminals-list-filters"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -66,7 +66,7 @@ export class TerminalsList {
66
66
  }
67
67
  }
68
68
  render() {
69
- return (h(StyledHost, { key: '8829e2070592554b23ea8593c2528a6582374b1e' }, h("terminals-list-core", { key: '7dfa54f94366214f53fae5240050955a5f5750f4', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
69
+ return (h(StyledHost, { key: '9ad0d637bd745ee2296142c426d539f90cf403a5' }, h("terminals-list-core", { key: '26b420a410976adea74b8545d367b5f9df7178d3', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
70
70
  }
71
71
  static get is() { return "justifi-terminals-list"; }
72
72
  static get encapsulation() { return "shadow"; }
@@ -52,7 +52,7 @@ export class TokenizePaymentMethod {
52
52
  this.paymentMethodOptionsRef.fillBillingForm(fields);
53
53
  }
54
54
  render() {
55
- return (h(StyledHost, { key: '8377b1e614cb8c1f737ce7f81b35017c7bf4b390' }, h("form", { key: 'a30d047312977dec17fc810dd7039d64a71396d0' }, h("fieldset", { key: 'ffda409f721f09fef1397cef899b49c2f70d51e3' }, h("div", { key: 'cbaa2c97e2be236df2f2e7e3a1df0eca0b20f75a', class: "row gy-3" }, h("div", { key: 'cc9bac328a0feaf2c1754c50e9790eb1dbd04768', class: "col-12" }, h("justifi-payment-method-options", { key: 'bc646adf579be124bc110aa04256bcafe419ca3b', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: 'e65e8a79fd265a053e46e9ee215f84abb57e1212', class: "col-12" }, h(Button, { key: 'f568dc1cb0c6ca2f22897b3ad94f37383ac8ac26', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
55
+ return (h(StyledHost, { key: 'b4c878459fb1601d429140d80ce02b898d6ca2ed' }, h("form", { key: '11917b591a4116e5711c0afd3e68b6599d064cae' }, h("fieldset", { key: 'b3c4ad0c42a424091a433e9aa8375108831e6c47' }, h("div", { key: 'bee2fa3c6c5de31d25cb102185fc977a5436a53b', class: "row gy-3" }, h("div", { key: 'fb32aa9f47716077a3dad2bfd7bfc950200014ba', class: "col-12" }, h("justifi-payment-method-options", { key: 'dca7ac67609a13e1b14bdc042eb131a07305e0d8', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: '2218cb2eac22fd6187da4d205fc2437a980fa2a5', class: "col-12" }, h(Button, { key: '1299a5a10261b375cfec1b2599cc6de7f606bad9', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
56
56
  }
57
57
  static get is() { return "justifi-tokenize-payment-method"; }
58
58
  static get encapsulation() { return "shadow"; }
@@ -112,3 +112,10 @@ export const terminalsListFilterMenu = `${filterMenu} terminals-list-filter-menu
112
112
  export const terminalsListFilterParam = `terminals-list-filter-param`;
113
113
  export const terminalIdTerminalsListFilterParam = `${terminalsListFilterParam} terminal-id-terminals-list-filter-param`;
114
114
  export const terminalStatusTerminalsListFilterParam = `${terminalsListFilterParam} terminal-status-terminals-list-filter-param`;
115
+ // Terminal Orders List Filters
116
+ export const terminalOrdersListFilterMenu = `${filterMenu} terminal-orders-list-filter-menu`;
117
+ export const terminalOrdersListFilterParam = `terminal-orders-list-filter-param`;
118
+ export const orderStatusTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-status-terminal-orders-list-filter-param`;
119
+ export const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} order-type-terminal-orders-list-filter-param`;
120
+ export const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
121
+ export const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
@@ -81,7 +81,7 @@ export class CustomPopper {
81
81
  this.hideEvent.emit();
82
82
  }
83
83
  render() {
84
- return (h("div", { key: '1ea99d6aaa69619c4c1120c1f2fc4e0fcc1cc802' }, h("style", { key: 'b8a785d6c4dc1de3459aa84e8fecc2170c1c52cf' }, `
84
+ return (h("div", { key: '0da182c59e8285f0ab76d2f667218c378a402518' }, h("style", { key: 'a5cec35dd7cbe6474627f22837703e53711c104b' }, `
85
85
  .popper-content {
86
86
  display: none;
87
87
  }
@@ -89,7 +89,7 @@ export class CustomPopper {
89
89
  display: block;
90
90
  z-index: 1030;
91
91
  }
92
- `), h("div", { key: 'fbd29d61602df70db874c80749397b40426f967a', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: 'a75954430d14e1eb0a070650495a2c8e87bbb31d' }))));
92
+ `), h("div", { key: '657fcfafffda783f7b57af10256fb45c7c8720c9', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '4cf71afd1ef0e9a24a7d56c118e420d27de31e26' }))));
93
93
  }
94
94
  static get is() { return "custom-popper"; }
95
95
  static get properties() {
@@ -38,10 +38,10 @@ export class CheckboxInput {
38
38
  return inputCheckbox;
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: '6eb5805f9001ba5f27590a8f709c611bcb491cc7' }, h("div", { key: 'f8b4ee1c24087c1bcb65ac7df4874916c7dd36ad', class: 'form-group d-flex flex-column' }, h("div", { key: 'a41d4b50c7c5d2bdd6008a441d29eba5f8f94b9a', class: "form-check" }, h("input", { key: 'd6124d672dda656b4dc9061176c37f8f14d101c8', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
41
+ return (h(Host, { key: '36192fe5f4e99ccc8cb77b6a0058d68427b6dc79' }, h("div", { key: '3fd77dbca4264579b0e4293bc537dea99a9e325b', class: 'form-group d-flex flex-column' }, h("div", { key: '737b2076e66604ce3fc1b141deb1909a8ac2be27', class: "form-check" }, h("input", { key: '3d606b0c14eda0ffba58bd844b75e3ca23f0a611', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
42
42
  this.isFocused = false;
43
43
  this.formControlBlur.emit();
44
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '429ce242775f3ff5a7dda515bf57cd0780de8fdf', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '4680da9893c1015cb53a85250eb906a07551fdcc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'ed5178fe1bd5cd501ef5ebadcf9e49580b1d2bda', errorText: this.errorText, name: this.name }))));
44
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '2a8af56e9bee18f4252ea436ae76d65128ee1648', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '013c9b143992a088692de81b623bffb6b4e5f06f', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '0b6814622ff6d0a61d251aea399600ead731ad1a', errorText: this.errorText, name: this.name }))));
45
45
  }
46
46
  static get is() { return "form-control-checkbox"; }
47
47
  static get properties() {
@@ -50,10 +50,10 @@ export class DateInput {
50
50
  return part;
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '5360f4917c4af8d4e40522a25e838703d8374480' }, h("div", { key: '56a3a99c81ebbf00d1ff5befa1a96363660806ae', class: "form-group d-flex flex-column" }, h("div", { key: '5556531a79f39fecd1cc4027568bc3642f68ed68', class: "d-flex gap-2" }, h("label", { key: 'b722b7e91adaf94c57698cf5743d43d8cbb04957', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '109aabf5047eebe8254ed49379b297af05f68ac2', helpText: this.helpText })), h("input", { key: 'eb9862be33313981dccda15889d315893344ff41', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
53
+ return (h(Host, { key: '39efc4cf0cf20cd611c775f1e47ace6b445eab99' }, h("div", { key: '82de246b4d67f3c1a234987c3d9259e8ed7fb3e5', class: "form-group d-flex flex-column" }, h("div", { key: '033c637f965aa750c6130504f70f7fabb9d1a9da', class: "d-flex gap-2" }, h("label", { key: 'ce384aeee225254eac66cfcb6fbe8b6b5677cd5e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'a8195ae52a1904bcdaa0ee082b77164bb399e5bc', helpText: this.helpText })), h("input", { key: '07bb64ebf4727c892bc5e873d6b8327cb0e89430', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
54
54
  this.isFocused = false;
55
55
  this.formControlBlur.emit();
56
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '01217373b82eee84fae370f504cfee157c6f83ec', errorText: this.errorText, name: this.name }))));
56
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '783b7b021819a5c26441a438be7b83dabb4cfce1', errorText: this.errorText, name: this.name }))));
57
57
  }
58
58
  static get is() { return "form-control-date"; }
59
59
  static get properties() {
@@ -12,7 +12,7 @@ export class FileInput {
12
12
  this.disabled = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '1d12d202fde10e242d835ad9cf1baf037bf08685', exportparts: "label,input,input-invalid" }, h("div", { key: '3a1d62634eb422bb81d693edc7bf7209095031aa', class: "form-group d-flex flex-column" }, h("div", { key: '19a28fe026bdc3950cceef5985f706bc65a8a036', class: "d-flex align-items-start gap-2" }, h("label", { key: '7ef8d2699382ec129538afea93e7fb99e075755e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ac6fa865cb28cae95fb235984c1b8b390ed7a4e8', helpText: this.helpText })), h("input", { key: '46f3596ff86814fc15ee189c5261b74b1a163555', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'ad1c1e9b8066cc536530423ecc1ee62a6605590b', errorText: this.errorText, name: this.name }))));
15
+ return (h(Host, { key: '4dff12fa7d0cb33919c39db34bbc0957fdd5653f', exportparts: "label,input,input-invalid" }, h("div", { key: 'ae39b30919625c00463cbbd5bf5172a93b7bd9f1', class: "form-group d-flex flex-column" }, h("div", { key: 'f0d20dd0d0c3bed154c220722598dfe41dc4cc45', class: "d-flex align-items-start gap-2" }, h("label", { key: '768f21bee9cf3e87caacd08ebd7506d01550f206', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ee446659b7b9503678c16f14a49d564ca8caf27a', helpText: this.helpText })), h("input", { key: 'c7eee6e890f87be8a3af204fcdb1cd5d032e5419', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: '5a87d616b1b4be16b32b69d315f07b05d8d060bc', errorText: this.errorText, name: this.name }))));
16
16
  }
17
17
  static get is() { return "form-control-file-v2"; }
18
18
  static get properties() {
@@ -47,10 +47,10 @@ export class FileInput {
47
47
  return part;
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: 'b42a36acdd4b1ccbe38d3f990c1ad75dcdca427c' }, h("div", { key: 'b77e933e6ec75850cd4f81136ed6c7b1e9d4eab8', class: "form-group d-flex flex-column" }, h("div", { key: '1d106fa3f984f9339be5d532e9909e802506a070', class: "d-flex align-items-start gap-2" }, h("label", { key: '015b1ec3a10e9e6085a07d82a6f50049b33ca72a', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '7b1920d7910a8cdea94f2264f4525abd6ce12b04', helpText: this.helpText })), h("input", { key: '7fd8b89dc312b0fa773ca3f1286146906dcbcbc9', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
50
+ return (h(Host, { key: 'ffd39ec9c5c98ba6d51f30fe3f0877807b9218a2' }, h("div", { key: '8d95c947132661088128a20350cb8823eb50aaa1', class: "form-group d-flex flex-column" }, h("div", { key: 'c494f917ca23d99c6dafded70156a62610764223', class: "d-flex align-items-start gap-2" }, h("label", { key: '8a6ba2787312c3a6e1e531bc05e4459aaecb6229', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5b68e00507d2211fcc481f007c701179eb4bed78', helpText: this.helpText })), h("input", { key: 'd75a0df1951b215b60cee837b102f1b0522cc810', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
51
51
  this.isFocused = false;
52
52
  this.formControlBlur.emit();
53
- } }), h(FormControlErrorText, { key: '5747821abcfedb2bf33a65907f333ea48478c37a', errorText: this.errorText, name: this.name }))));
53
+ } }), h(FormControlErrorText, { key: '10231eb3448127011aca32c2e653d7974ab27e2e', errorText: this.errorText, name: this.name }))));
54
54
  }
55
55
  static get is() { return "form-control-file"; }
56
56
  static get properties() {
@@ -63,10 +63,10 @@ export class MonetaryInput {
63
63
  return part;
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '83294146c6f3ae050163857d50b844539397553a' }, h("div", { key: '07251dfdad902a9a80515b3cc5fd3d66ea623e0c', class: "form-group d-flex flex-column" }, h("label", { key: '96b4419c336b6b75183692f9233759c5f703dc3f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '3f4acb21a8d950365446153df63031698032cbf6', class: "input-group" }, h("span", { key: '9d33e13f2740d2c8326eeae18d77210a32436a44', class: "input-group-text", part: text }, "$"), h("input", { key: '8521bd07c63e502699088e45d41f953b28b5fbbe', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
66
+ return (h(Host, { key: '8389bbed996b97a2e4c7536a3f31f8b4873651e4' }, h("div", { key: '0cc9d812e034c7017ea49fdb91bcd399ac3112cc', class: "form-group d-flex flex-column" }, h("label", { key: '04bf1b6ab410d6236a8d2ea47364c844a557f3fc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: 'bc77863e0a0dc4472c62d98fbca50da4b683b14d', class: "input-group" }, h("span", { key: '28e7f0f65529fab762846711cf681b105546a04d', class: "input-group-text", part: text }, "$"), h("input", { key: 'edfac6a9f10b1914299a6f42497ebb26659717d3', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
67
67
  this.isFocused = false;
68
68
  this.formControlBlur.emit();
69
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '8158ef70a7e3179433bf0d06b6ab3ac84cc99432', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '2ff89c0f5b9667b7a93f580891f1e314528c5d14', errorText: this.errorText, name: this.name }))));
69
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '9c28f25c98432c07678698e53b219d17d3d847a7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '8cd3f89e1efd87fd0209cb5e6cd525b916de073a', errorText: this.errorText, name: this.name }))));
70
70
  }
71
71
  static get is() { return "form-control-monetary"; }
72
72
  static get properties() {
@@ -67,10 +67,10 @@ export class NumberInputMasked {
67
67
  return input;
68
68
  }
69
69
  render() {
70
- return (h(Host, { key: 'ce4be8f8dbc45d56729f8dc410782d543d6d36bb' }, h("div", { key: 'f541c120af578d82943b6ad74d0b9c3072b885ff', class: "form-group d-flex flex-column" }, h("div", { key: 'bcb14b211d16aae90f30a9668988dfe9c8828b1d', class: "d-flex align-items-start gap-2" }, h("label", { key: '00e7d4b05a71de70d6b835c6c7bafefbdc9c334e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'e327c42167cc82a32761759a51f8894f615dc682', helpText: this.helpText })), h("input", { key: 'fe0a584dba22642e87bb7ed60289e33ca9d68a5b', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
70
+ return (h(Host, { key: '33803369123a612e3a59159eca88fa851cc4bdda' }, h("div", { key: '4ec22ee1c45e050bb3c82465620f4195f0ee9f78', class: "form-group d-flex flex-column" }, h("div", { key: '54f8150c131f9e1d591e893ff850014f986ca4ce', class: "d-flex align-items-start gap-2" }, h("label", { key: '10adc8be977ddc13488f86e62d43e15cc27e8061', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'db05a1e10871fcb9cf7bf425963b57a802e8258b', helpText: this.helpText })), h("input", { key: '05e6000baf931e6bd51eb44a149613bdad453080', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
71
71
  this.isFocused = false;
72
72
  this.formControlBlur.emit();
73
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'b0c95b90958073dd5c695dad53618536a1f0ddae', errorText: this.errorText, name: this.name }))));
73
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '82ec36209485f448694614454cbddfffa1acca9e', errorText: this.errorText, name: this.name }))));
74
74
  }
75
75
  static get is() { return "form-control-number-masked"; }
76
76
  static get properties() {
@@ -43,10 +43,10 @@ export class NumberInput {
43
43
  return input;
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '7f0a9eb69396c743a326a7c800c1a44758e9021e' }, h("div", { key: 'c6690d26559078214bc996c67d9d7822d8602b40', class: 'form-group d-flex flex-column' }, h("label", { key: 'b7fa671a2f4c16b748c266433ac8b3f0106a667f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '487e6a423ba4f215f0c6937f83623d2c7fade9d2', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
46
+ return (h(Host, { key: 'bd8c24f0c1209334fde787d8dc7402e75ea1d91b' }, h("div", { key: 'd49ef47d17045ab070005a04a9edc5b11ba1b879', class: 'form-group d-flex flex-column' }, h("label", { key: '49bfca8efbaa753dae1f862f5490ab8943c6a9fd', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '3b4ef4300374a4cdd37f85e2155fcc26d357fdca', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
47
47
  this.isFocused = false;
48
48
  this.formControlBlur.emit();
49
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '1013d3b9060dca903372a6a15e340b0e07d011e7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '4911a0cd712df5789e9ebde0e10e8e0e323f908c', errorText: this.errorText, name: this.name }))));
49
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '4bdb8dc58c7143ccdbcd50568784b62217459ba9', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '0e5a0df13a356fe03dc389fc4bf6eba9000597fc', errorText: this.errorText, name: this.name }))));
50
50
  }
51
51
  static get is() { return "form-control-number"; }
52
52
  static get properties() {
@@ -34,10 +34,10 @@ export class RadioInput {
34
34
  return inputRadio;
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: 'bfa0d204b4a34281c66a890e74d2cbabdde704b9', class: 'form-group d-flex flex-column' }, h("div", { key: 'f2d9e0158d35806119570996eb33b261e163f66b', class: "form-check" }, h("input", { key: '08de0c12111ed8a20c763c9b1e3b503ee069c6df', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
37
+ return (h(Host, { key: '6ac053e94a211ac008c55ae97f3e1b22d76a9557', class: 'form-group d-flex flex-column' }, h("div", { key: 'fe44896b709219947f63d47ea3c8318bd7649bc0', class: "form-check" }, h("input", { key: 'c56759dc4c85da7cbb2e62b6a7eb2648cd42c278', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
38
38
  this.isFocused = false;
39
39
  this.formControlBlur.emit();
40
- }, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '24fb4d3d6308992b65b0346dff2fd87865b1a244', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'a70371f57745f7b1929f75610bb8a769bb99a515', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '3860ec0a17a2775905e268739564791925a87fb9', errorText: this.errorText, name: this.name })));
40
+ }, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '97949ce6465290e528e21575d3fbd4785c3568a7', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'd521e8eae3d7602f59934373c36dab803fcdefd3', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '2851bc02a7fbb665086e54f2fade679c357d34e6', errorText: this.errorText, name: this.name })));
41
41
  }
42
42
  static get is() { return "form-control-radio"; }
43
43
  static get properties() {