@justifi/webcomponents 4.7.4 → 4.7.6

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 (649) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/{Api-548eaa62.js → Api-a06b996e.js} +35 -35
  3. package/dist/cjs/{Pagination-cae1dcbd.js → Pagination-0da8f095.js} +5 -5
  4. package/dist/cjs/Payout-7821eb61.js +183 -0
  5. package/dist/cjs/SubAccount-b9487cbb.js +107 -0
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +50 -50
  7. package/dist/cjs/business-form-schema-a2b87e77.js +148 -0
  8. package/dist/cjs/config-ff2dda66.js +15 -0
  9. package/dist/cjs/{form-1e732a9d.js → form-2ad3d374.js} +84 -84
  10. package/dist/cjs/form-control-datepart_2.cjs.entry.js +108 -108
  11. package/dist/cjs/form-control-monetary.cjs.entry.js +50 -50
  12. package/dist/cjs/form-control-number_3.cjs.entry.js +108 -108
  13. package/dist/cjs/{index-c5ace247.js → index-55950669.js} +220 -52
  14. package/dist/cjs/{index-5a880722.js → index-fc5339a5.js} +406 -195
  15. package/dist/cjs/{index.esm-91ec051e.js → index.esm-c08c2adc.js} +61 -30
  16. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +372 -372
  17. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +56 -56
  18. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +79 -79
  19. package/dist/cjs/justifi-business-details.cjs.entry.js +61 -61
  20. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +135 -122
  21. package/dist/cjs/justifi-business-form.cjs.entry.js +80 -69
  22. package/dist/cjs/justifi-business-list.cjs.entry.js +128 -128
  23. package/dist/cjs/justifi-card-form.cjs.entry.js +57 -57
  24. package/dist/cjs/justifi-details.cjs.entry.js +13 -13
  25. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +125 -125
  26. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +72 -72
  27. package/dist/cjs/justifi-payment-details.cjs.entry.js +53 -53
  28. package/dist/cjs/justifi-payment-form.cjs.entry.js +89 -89
  29. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +171 -188
  30. package/dist/cjs/justifi-payments-list.cjs.entry.js +99 -100
  31. package/dist/cjs/justifi-payout-details.cjs.entry.js +54 -54
  32. package/dist/cjs/justifi-payouts-list.cjs.entry.js +121 -121
  33. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +135 -135
  34. package/dist/cjs/justifi-refund-form.cjs.entry.js +85 -85
  35. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +62 -62
  36. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +86 -86
  37. package/dist/cjs/justifi-table_2.cjs.entry.js +64 -61
  38. package/dist/cjs/loader.cjs.js +2 -2
  39. package/dist/cjs/select-input_2.cjs.entry.js +38 -38
  40. package/dist/cjs/state-options-96d05a98.js +246 -0
  41. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +41 -41
  42. package/dist/cjs/subaccount-bank-details.cjs.entry.js +11 -11
  43. package/dist/cjs/subaccount-terms-details.cjs.entry.js +11 -11
  44. package/dist/cjs/{utils-13d069be.js → utils-36bf8b3e.js} +108 -108
  45. package/dist/cjs/utils-931f4879.js +34 -0
  46. package/dist/cjs/utils-99c086ee.js +35 -0
  47. package/dist/cjs/webcomponents.cjs.js +3 -3
  48. package/dist/collection/api/Api.js +34 -34
  49. package/dist/collection/api/Business.js +39 -39
  50. package/dist/collection/api/Pagination.js +5 -5
  51. package/dist/collection/api/Payment.js +108 -108
  52. package/dist/collection/api/Payout.js +33 -33
  53. package/dist/collection/api/Proceed.js +33 -33
  54. package/dist/collection/api/SubAccount.js +78 -78
  55. package/dist/collection/api/mockData/MockOnboardingData.js +108 -108
  56. package/dist/collection/api/mockData/MockPayments.js +207 -207
  57. package/dist/collection/api/mockData/MockSubAccount.js +96 -96
  58. package/dist/collection/api/mockData/mockGrossVolumeReport.js +123 -123
  59. package/dist/collection/collection-manifest.json +4 -4
  60. package/dist/collection/components/bank-account-form/bank-account-form.js +260 -259
  61. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +10 -10
  62. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +38 -38
  63. package/dist/collection/components/billing-form/billing-form-schema.js +6 -6
  64. package/dist/collection/components/billing-form/billing-form.css +16 -12
  65. package/dist/collection/components/billing-form/billing-form.js +177 -179
  66. package/dist/collection/components/billing-form/state-options.js +240 -240
  67. package/dist/collection/components/billing-form/test/billing-form.spec.js +50 -50
  68. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +23 -16
  69. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +43 -43
  70. package/dist/collection/components/business-details/business-details.css +11 -4
  71. package/dist/collection/components/business-details/business-details.js +107 -107
  72. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +23 -16
  73. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +43 -43
  74. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +23 -16
  75. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +43 -43
  76. package/dist/collection/components/business-details/owner-details/owner-details.css +23 -16
  77. package/dist/collection/components/business-details/owner-details/owner-details.js +45 -45
  78. package/dist/collection/components/business-details/representative-details/representative-details.css +23 -16
  79. package/dist/collection/components/business-details/representative-details/representative-details.js +43 -43
  80. package/dist/collection/components/business-form/additional-questions/additional-questions.js +49 -49
  81. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +8 -8
  82. package/dist/collection/components/business-form/business-address/business-address-form.css +16 -12
  83. package/dist/collection/components/business-form/business-address/business-address-form.js +93 -93
  84. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +6 -6
  85. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +21 -21
  86. package/dist/collection/components/business-form/business-form-schema.js +137 -137
  87. package/dist/collection/components/business-form/business-form-stepped.css +23 -16
  88. package/dist/collection/components/business-form/business-form-stepped.js +218 -203
  89. package/dist/collection/components/business-form/business-form.css +118 -16
  90. package/dist/collection/components/business-form/business-form.js +142 -111
  91. package/dist/collection/components/business-form/business-generic-info/business-generic-info.css +16 -12
  92. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +57 -57
  93. package/dist/collection/components/business-form/business-owners/business-owners.css +23 -16
  94. package/dist/collection/components/business-form/business-owners/business-owners.js +117 -117
  95. package/dist/collection/components/business-form/business-representative/business-representative.css +16 -12
  96. package/dist/collection/components/business-form/business-representative/business-representative.js +65 -65
  97. package/dist/collection/components/business-form/helpers.js +19 -19
  98. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +6 -6
  99. package/dist/collection/components/business-form/legal-address-form/legal-address-form.css +16 -12
  100. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +61 -61
  101. package/dist/collection/components/business-form/test/business-form.spec.js +35 -35
  102. package/dist/collection/components/business-list/business-list.css +3 -0
  103. package/dist/collection/components/business-list/business-list.js +160 -160
  104. package/dist/collection/components/business-list/business-list.stories.js +10 -10
  105. package/dist/collection/components/card-form/card-form.js +278 -277
  106. package/dist/collection/components/card-form/test/card-form.e2e.js +10 -10
  107. package/dist/collection/components/card-form/test/card-form.spec.js +45 -45
  108. package/dist/collection/components/details/details.css +38 -31
  109. package/dist/collection/components/details/details.js +42 -42
  110. package/dist/collection/components/form/form-control-datepart.js +224 -224
  111. package/dist/collection/components/form/form-control-monetary.js +177 -177
  112. package/dist/collection/components/form/form-control-number-masked.js +208 -208
  113. package/dist/collection/components/form/form-control-number.css +7 -2
  114. package/dist/collection/components/form/form-control-number.js +188 -188
  115. package/dist/collection/components/form/form-control-select.css +7 -2
  116. package/dist/collection/components/form/form-control-select.js +196 -196
  117. package/dist/collection/components/form/form-control-text.css +7 -2
  118. package/dist/collection/components/form/form-control-text.js +188 -188
  119. package/dist/collection/components/form/form.js +80 -80
  120. package/dist/collection/components/form/utils.js +2 -0
  121. package/dist/collection/components/gross-payment-chart/chart-utils.js +52 -52
  122. package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +3 -0
  123. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +125 -125
  124. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +7 -7
  125. package/dist/collection/components/pagination-menu/pagination-menu.js +72 -72
  126. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +144 -144
  127. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +10 -10
  128. package/dist/collection/components/payment-details/payment-details.css +38 -31
  129. package/dist/collection/components/payment-details/payment-details.js +106 -106
  130. package/dist/collection/components/payment-form/payment-form.css +16 -12
  131. package/dist/collection/components/payment-form/payment-form.js +319 -318
  132. package/dist/collection/components/payment-form/payment-method-selector.css +6 -2
  133. package/dist/collection/components/payment-form/payment-method-selector.js +90 -90
  134. package/dist/collection/components/payment-form/test/payment-form.e2e.js +9 -9
  135. package/dist/collection/components/payment-form/test/payment-form.spec.js +157 -157
  136. package/dist/collection/components/payment-method-form/get-computed-theme.js +47 -47
  137. package/dist/collection/components/payment-method-form/message-event-types.js +14 -14
  138. package/dist/collection/components/payment-method-form/payment-method-form.js +288 -262
  139. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +16 -16
  140. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +43 -43
  141. package/dist/collection/components/payments-list/payments-list.css +3 -0
  142. package/dist/collection/components/payments-list/payments-list.js +179 -180
  143. package/dist/collection/components/payments-list/test/payments-list.spec.js +21 -21
  144. package/dist/collection/components/payout-details/payout-details.css +38 -31
  145. package/dist/collection/components/payout-details/payout-details.js +107 -107
  146. package/dist/collection/components/payouts-list/payouts-list.css +3 -0
  147. package/dist/collection/components/payouts-list/payouts-list.js +201 -201
  148. package/dist/collection/components/proceeds-list/proceeds-list.css +3 -0
  149. package/dist/collection/components/proceeds-list/proceeds-list.js +182 -182
  150. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +12 -12
  151. package/dist/collection/components/refund-form/refund-form-schema.js +9 -9
  152. package/dist/collection/components/refund-form/refund-form.css +23 -16
  153. package/dist/collection/components/refund-form/refund-form.js +216 -216
  154. package/dist/collection/components/refund-form/refund-form.stories.js +27 -27
  155. package/dist/collection/components/select-input/select-input.css +7 -2
  156. package/dist/collection/components/select-input/select-input.js +139 -139
  157. package/dist/collection/components/select-input/test/select-input.spec.js +38 -38
  158. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +23 -16
  159. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +65 -65
  160. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +23 -16
  161. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +43 -43
  162. package/dist/collection/components/subaccount-details/subaccount-details.css +38 -31
  163. package/dist/collection/components/subaccount-details/subaccount-details.js +132 -132
  164. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +9 -9
  165. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +23 -16
  166. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +43 -44
  167. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +23 -16
  168. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +44 -43
  169. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +23 -16
  170. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +43 -43
  171. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +23 -16
  172. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +43 -43
  173. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +7 -7
  174. package/dist/collection/components/subaccounts-list/subaccounts-list.js +166 -166
  175. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +12 -12
  176. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +6 -6
  177. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +21 -21
  178. package/dist/collection/components/table/table.css +38 -31
  179. package/dist/collection/components/table/table.js +217 -224
  180. package/dist/collection/components/table/test/table.spec.js +64 -48
  181. package/dist/collection/components/table/utils.js +4 -0
  182. package/dist/collection/components/text-input/test/text-input.spec.js +31 -31
  183. package/dist/collection/components/text-input/text-input.css +7 -2
  184. package/dist/collection/components/text-input/text-input.js +122 -122
  185. package/dist/collection/utils/country-options.js +198 -198
  186. package/dist/collection/utils/phone-masks.js +1 -1
  187. package/dist/collection/utils/utils.js +107 -107
  188. package/dist/config.js +9 -9
  189. package/dist/docs.d.ts +401 -0
  190. package/dist/docs.json +6511 -0
  191. package/dist/esm/{Api-c65d3ed8.js → Api-0e88671c.js} +35 -35
  192. package/dist/esm/{Pagination-31f770d6.js → Pagination-afc8f96d.js} +5 -5
  193. package/dist/esm/Payout-c42e3877.js +179 -0
  194. package/dist/esm/SubAccount-b3ce8720.js +105 -0
  195. package/dist/esm/additional-questions-details_5.entry.js +50 -50
  196. package/dist/esm/business-form-schema-997c585c.js +144 -0
  197. package/dist/esm/config-476c7241.js +13 -0
  198. package/dist/esm/{form-32cf3d1e.js → form-5279c05a.js} +84 -84
  199. package/dist/esm/form-control-datepart_2.entry.js +108 -108
  200. package/dist/esm/form-control-monetary.entry.js +50 -50
  201. package/dist/esm/form-control-number_3.entry.js +108 -108
  202. package/dist/esm/{index-5ed53c20.js → index-5eb05747.js} +406 -195
  203. package/dist/esm/{index-7471ed60.js → index-62b8aa8a.js} +220 -52
  204. package/dist/esm/{index.esm-9397ffa0.js → index.esm-8ae36d07.js} +61 -30
  205. package/dist/esm/justifi-additional-questions_6.entry.js +372 -372
  206. package/dist/esm/justifi-bank-account-form.entry.js +56 -56
  207. package/dist/esm/justifi-billing-form_2.entry.js +79 -79
  208. package/dist/esm/justifi-business-details.entry.js +61 -61
  209. package/dist/esm/justifi-business-form-stepped.entry.js +135 -122
  210. package/dist/esm/justifi-business-form.entry.js +80 -69
  211. package/dist/esm/justifi-business-list.entry.js +128 -128
  212. package/dist/esm/justifi-card-form.entry.js +57 -57
  213. package/dist/esm/justifi-details.entry.js +13 -13
  214. package/dist/esm/justifi-gross-payment-chart.entry.js +125 -125
  215. package/dist/esm/justifi-payment-balance-transactions.entry.js +72 -72
  216. package/dist/esm/justifi-payment-details.entry.js +53 -53
  217. package/dist/esm/justifi-payment-form.entry.js +89 -89
  218. package/dist/esm/justifi-payment-method-form.entry.js +171 -188
  219. package/dist/esm/justifi-payments-list.entry.js +99 -100
  220. package/dist/esm/justifi-payout-details.entry.js +54 -54
  221. package/dist/esm/justifi-payouts-list.entry.js +121 -121
  222. package/dist/esm/justifi-proceeds-list.entry.js +135 -135
  223. package/dist/esm/justifi-refund-form.entry.js +85 -85
  224. package/dist/esm/justifi-subaccount-details.entry.js +62 -62
  225. package/dist/esm/justifi-subaccounts-list.entry.js +86 -86
  226. package/dist/esm/justifi-table_2.entry.js +64 -61
  227. package/dist/esm/loader.js +3 -3
  228. package/dist/esm/polyfills/core-js.js +0 -0
  229. package/dist/esm/polyfills/dom.js +0 -0
  230. package/dist/esm/polyfills/es5-html-element.js +0 -0
  231. package/dist/esm/polyfills/index.js +0 -0
  232. package/dist/esm/polyfills/system.js +0 -0
  233. package/dist/esm/select-input_2.entry.js +38 -38
  234. package/dist/esm/state-options-fc1daf67.js +244 -0
  235. package/dist/esm/subaccount-account-details_4.entry.js +41 -41
  236. package/dist/esm/subaccount-bank-details.entry.js +11 -11
  237. package/dist/esm/subaccount-terms-details.entry.js +11 -11
  238. package/dist/esm/{utils-40b7002c.js → utils-26c7dd12.js} +108 -108
  239. package/dist/esm/utils-8cc130a9.js +31 -0
  240. package/dist/esm/utils-f33f7e3c.js +27 -0
  241. package/dist/esm/webcomponents.js +4 -4
  242. package/{loader → dist/loader}/cdn.js +1 -1
  243. package/{loader → dist/loader}/index.cjs.js +1 -1
  244. package/{loader → dist/loader}/index.d.ts +1 -1
  245. package/dist/loader/index.es2017.js +3 -0
  246. package/{loader → dist/loader}/index.js +2 -2
  247. package/dist/{components → module}/Api.js +35 -35
  248. package/dist/{components → module}/Pagination.js +5 -5
  249. package/dist/module/Payout.js +179 -0
  250. package/dist/module/SubAccount.js +105 -0
  251. package/dist/{components → module}/additional-questions-details.d.ts +2 -2
  252. package/dist/module/additional-questions-details2.js +36 -0
  253. package/dist/module/additional-questions.js +50 -0
  254. package/dist/module/billing-form.js +113 -0
  255. package/dist/module/business-address-form.js +72 -0
  256. package/dist/module/business-generic-info.js +212 -0
  257. package/dist/module/business-owners.js +116 -0
  258. package/dist/module/business-representative.js +90 -0
  259. package/dist/module/config.js +13 -0
  260. package/dist/module/details.js +38 -0
  261. package/dist/{components → module}/form-control-datepart.d.ts +2 -2
  262. package/dist/module/form-control-datepart2.js +98 -0
  263. package/dist/{components → module}/form-control-monetary.d.ts +2 -2
  264. package/dist/module/form-control-monetary2.js +83 -0
  265. package/dist/{components → module}/form-control-number-masked.d.ts +2 -2
  266. package/dist/module/form-control-number-masked2.js +82 -0
  267. package/dist/{components → module}/form-control-number.d.ts +2 -2
  268. package/dist/module/form-control-number2.js +71 -0
  269. package/dist/{components → module}/form-control-select.d.ts +2 -2
  270. package/dist/module/form-control-select2.js +67 -0
  271. package/dist/{components → module}/form-control-text.d.ts +2 -2
  272. package/dist/module/form-control-text2.js +71 -0
  273. package/dist/{components → module}/form.js +84 -84
  274. package/dist/{components → module}/generic-info-details.d.ts +2 -2
  275. package/dist/module/generic-info-details2.js +37 -0
  276. package/dist/{components → module}/index.esm.js +61 -30
  277. package/dist/{components → module}/index2.js +406 -195
  278. package/dist/{components → module}/justifi-additional-questions.d.ts +2 -2
  279. package/dist/{components → module}/justifi-bank-account-form.d.ts +2 -2
  280. package/dist/module/justifi-bank-account-form.js +96 -0
  281. package/dist/{components → module}/justifi-billing-form.d.ts +2 -2
  282. package/dist/{components → module}/justifi-business-address-form.d.ts +2 -2
  283. package/dist/{components → module}/justifi-business-details.d.ts +2 -2
  284. package/dist/module/justifi-business-details.js +130 -0
  285. package/dist/{components → module}/justifi-business-form-stepped.d.ts +2 -2
  286. package/dist/module/justifi-business-form-stepped.js +242 -0
  287. package/dist/{components → module}/justifi-business-form.d.ts +2 -2
  288. package/dist/{components/justifi-payment-details.js → module/justifi-business-form.js} +175 -79
  289. package/dist/{components → module}/justifi-business-generic-info.d.ts +2 -2
  290. package/dist/{components → module}/justifi-business-list.d.ts +2 -2
  291. package/dist/module/justifi-business-list.js +197 -0
  292. package/dist/{components → module}/justifi-business-owners.d.ts +2 -2
  293. package/dist/{components → module}/justifi-business-representative.d.ts +2 -2
  294. package/dist/{components → module}/justifi-card-form.d.ts +2 -2
  295. package/dist/module/justifi-card-form.js +98 -0
  296. package/dist/{components → module}/justifi-details.d.ts +2 -2
  297. package/dist/{components → module}/justifi-gross-payment-chart.d.ts +2 -2
  298. package/dist/{components → module}/justifi-gross-payment-chart.js +146 -142
  299. package/dist/{components → module}/justifi-legal-address-form.d.ts +2 -2
  300. package/dist/{components → module}/justifi-payment-balance-transactions.d.ts +2 -2
  301. package/dist/module/justifi-payment-balance-transactions.js +125 -0
  302. package/dist/{components → module}/justifi-payment-details.d.ts +2 -2
  303. package/dist/module/justifi-payment-details.js +98 -0
  304. package/dist/{components → module}/justifi-payment-form.d.ts +2 -2
  305. package/dist/module/justifi-payment-form.js +169 -0
  306. package/dist/{components → module}/justifi-payment-method-form.d.ts +2 -2
  307. package/dist/{components → module}/justifi-payment-method-selector.d.ts +2 -2
  308. package/dist/{components → module}/justifi-payments-list.d.ts +2 -2
  309. package/dist/module/justifi-payments-list.js +154 -0
  310. package/dist/{components → module}/justifi-payout-details.d.ts +2 -2
  311. package/dist/module/justifi-payout-details.js +99 -0
  312. package/dist/{components → module}/justifi-payouts-list.d.ts +2 -2
  313. package/dist/module/justifi-payouts-list.js +176 -0
  314. package/dist/{components → module}/justifi-proceeds-list.d.ts +2 -2
  315. package/dist/module/justifi-proceeds-list.js +199 -0
  316. package/dist/{components → module}/justifi-refund-form.d.ts +2 -2
  317. package/dist/module/justifi-refund-form.js +139 -0
  318. package/dist/{components → module}/justifi-subaccount-details.d.ts +2 -2
  319. package/dist/module/justifi-subaccount-details.js +134 -0
  320. package/dist/{components → module}/justifi-subaccounts-list.d.ts +2 -2
  321. package/dist/module/justifi-subaccounts-list.js +142 -0
  322. package/dist/{components → module}/justifi-table.d.ts +2 -2
  323. package/dist/{components → module}/legal-address-details.d.ts +2 -2
  324. package/dist/module/legal-address-details2.js +36 -0
  325. package/dist/module/legal-address-form.js +268 -0
  326. package/dist/{components → module}/owner-details.d.ts +2 -2
  327. package/dist/module/owner-details2.js +39 -0
  328. package/dist/{components → module}/pagination-menu.d.ts +2 -2
  329. package/dist/module/pagination-menu2.js +43 -0
  330. package/dist/{components → module}/payment-method-form.js +191 -207
  331. package/dist/module/payment-method-selector.js +44 -0
  332. package/dist/{components → module}/phone-masks.js +1 -1
  333. package/dist/{components → module}/representative-details.d.ts +2 -2
  334. package/dist/module/representative-details2.js +37 -0
  335. package/dist/{components → module}/select-input.d.ts +2 -2
  336. package/dist/module/select-input2.js +50 -0
  337. package/dist/module/state-options.js +244 -0
  338. package/dist/{components → module}/subaccount-account-details.d.ts +2 -2
  339. package/dist/module/subaccount-account-details2.js +38 -0
  340. package/dist/{components → module}/subaccount-bank-details.d.ts +2 -2
  341. package/dist/module/subaccount-bank-details.js +39 -0
  342. package/dist/{components → module}/subaccount-merchant-details.d.ts +2 -2
  343. package/dist/module/subaccount-merchant-details2.js +37 -0
  344. package/dist/{components → module}/subaccount-owners-details.d.ts +2 -2
  345. package/dist/module/subaccount-owners-details2.js +37 -0
  346. package/dist/{components → module}/subaccount-representative-details.d.ts +2 -2
  347. package/dist/module/subaccount-representative-details2.js +37 -0
  348. package/dist/{components → module}/subaccount-terms-details.d.ts +2 -2
  349. package/dist/{webcomponents/p-98e4eae3.entry.js → module/subaccount-terms-details.js} +39 -1
  350. package/dist/module/table.js +93 -0
  351. package/dist/{components → module}/text-input.d.ts +2 -2
  352. package/dist/module/text-input2.js +48 -0
  353. package/dist/module/utils.js +27 -0
  354. package/dist/{components → module}/utils2.js +108 -108
  355. package/dist/module/utils3.js +31 -0
  356. package/dist/types/api/Api.d.ts +14 -14
  357. package/dist/types/api/Business.d.ts +120 -120
  358. package/dist/types/api/GrossVolume.d.ts +4 -4
  359. package/dist/types/api/Pagination.d.ts +12 -12
  360. package/dist/types/api/Payment.d.ts +134 -134
  361. package/dist/types/api/Payout.d.ts +51 -51
  362. package/dist/types/api/Proceed.d.ts +51 -51
  363. package/dist/types/api/SubAccount.d.ts +130 -130
  364. package/dist/types/api/mockData/MockOnboardingData.d.ts +5 -5
  365. package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +5 -5
  366. package/dist/types/api/shared.d.ts +9 -9
  367. package/dist/types/components/bank-account-form/bank-account-form.d.ts +58 -0
  368. package/dist/types/components/billing-form/billing-form-schema.d.ts +18 -18
  369. package/dist/types/components/billing-form/billing-form.d.ts +25 -25
  370. package/dist/types/components/billing-form/state-options.d.ts +2 -2
  371. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  372. package/dist/types/components/business-details/business-details.d.ts +13 -13
  373. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +2 -2
  374. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +2 -2
  375. package/dist/types/components/business-details/owner-details/owner-details.d.ts +2 -2
  376. package/dist/types/components/business-details/representative-details/representative-details.d.ts +2 -2
  377. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +7 -7
  378. package/dist/types/components/business-form/business-address/business-address-form-schema.d.ts +16 -16
  379. package/dist/types/components/business-form/business-address/business-address-form.d.ts +7 -7
  380. package/dist/types/components/business-form/business-form-schema.d.ts +102 -102
  381. package/dist/types/components/business-form/business-form-stepped.d.ts +27 -23
  382. package/dist/types/components/business-form/business-form.d.ts +16 -11
  383. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +6 -6
  384. package/dist/types/components/business-form/business-owners/business-owners.d.ts +22 -22
  385. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +13 -13
  386. package/dist/types/components/business-form/business-representative/business-representative.d.ts +8 -8
  387. package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +12 -12
  388. package/dist/types/components/business-form/legal-address-form/legal-address-form.d.ts +7 -7
  389. package/dist/types/components/business-list/business-list.d.ts +27 -27
  390. package/dist/types/components/business-list/business-list.stories.d.ts +3 -3
  391. package/dist/types/components/card-form/card-form.d.ts +68 -0
  392. package/dist/types/components/details/details.d.ts +2 -2
  393. package/dist/types/components/details/utils.d.ts +10 -10
  394. package/dist/types/components/form/form-control-datepart.d.ts +16 -16
  395. package/dist/types/components/form/form-control-monetary.d.ts +14 -14
  396. package/dist/types/components/form/form-control-number-masked.d.ts +16 -16
  397. package/dist/types/components/form/form-control-number.d.ts +15 -15
  398. package/dist/types/components/form/form-control-select.d.ts +17 -17
  399. package/dist/types/components/form/form-control-text.d.ts +15 -15
  400. package/dist/types/components/form/form.d.ts +18 -18
  401. package/dist/types/components/form/utils.d.ts +1 -0
  402. package/dist/types/components/gross-payment-chart/chart-utils.d.ts +39 -39
  403. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +16 -16
  404. package/dist/types/components/pagination-menu/pagination-menu.d.ts +5 -5
  405. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +14 -14
  406. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +3 -3
  407. package/dist/types/components/payment-details/payment-details.d.ts +9 -9
  408. package/dist/types/components/payment-form/payment-form.d.ts +22 -22
  409. package/dist/types/components/payment-form/payment-method-selector.d.ts +6 -6
  410. package/dist/types/components/payment-form/tokenize.d.ts +3 -3
  411. package/dist/types/components/payment-method-form/message-event-types.d.ts +14 -14
  412. package/dist/types/components/payment-method-form/payment-method-form.d.ts +21 -22
  413. package/dist/types/components/payment-method-form/payment-method-responses.d.ts +40 -40
  414. package/dist/types/components/payment-method-form/theme.d.ts +45 -45
  415. package/dist/types/components/payments-list/payments-list.d.ts +14 -14
  416. package/dist/types/components/payout-details/payout-details.d.ts +9 -9
  417. package/dist/types/components/payouts-list/payouts-list.d.ts +15 -15
  418. package/dist/types/components/proceeds-list/proceeds-list.d.ts +15 -15
  419. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +4 -4
  420. package/dist/types/components/refund-form/refund-form-schema.d.ts +4 -4
  421. package/dist/types/components/refund-form/refund-form.d.ts +54 -54
  422. package/dist/types/components/refund-form/refund-form.stories.d.ts +21 -21
  423. package/dist/types/components/select-input/select-input.d.ts +14 -14
  424. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +3 -3
  425. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +2 -2
  426. package/dist/types/components/subaccount-details/subaccount-details.d.ts +13 -13
  427. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +3 -3
  428. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +2 -2
  429. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +2 -2
  430. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +2 -2
  431. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +2 -2
  432. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +14 -14
  433. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +4 -4
  434. package/dist/types/components/table/table.d.ts +18 -19
  435. package/dist/types/components/table/utils.d.ts +3 -0
  436. package/dist/types/components/text-input/text-input.d.ts +10 -10
  437. package/dist/types/components.d.ts +232 -17
  438. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/config.d.ts +11 -0
  439. package/dist/types/stencil-public-runtime.d.ts +32 -3
  440. package/dist/types/utils/country-options.d.ts +2 -2
  441. package/dist/types/utils/phone-masks.d.ts +1 -1
  442. package/dist/webcomponents/{p-b157f6ae.js → p-04c7f8f8.js} +1 -1
  443. package/dist/webcomponents/p-0a0cf2e6.entry.js +1 -0
  444. package/dist/webcomponents/p-0a1347cf.entry.js +1 -0
  445. package/dist/webcomponents/{p-86c23e1e.js → p-0f3e9483.js} +1 -1
  446. package/dist/webcomponents/p-0fa49c38.entry.js +1 -0
  447. package/dist/webcomponents/p-1e2a98bf.js +1 -0
  448. package/dist/webcomponents/{p-311250e2.entry.js → p-2b2f8162.entry.js} +1 -1
  449. package/dist/webcomponents/p-34c30022.entry.js +1 -0
  450. package/dist/webcomponents/{p-988191bf.js → p-3bef762a.js} +1 -1
  451. package/dist/webcomponents/{p-cdd06952.entry.js → p-40fb25c6.entry.js} +1 -1
  452. package/dist/webcomponents/p-45d2761d.entry.js +1 -0
  453. package/dist/webcomponents/p-4f14df36.js +2 -0
  454. package/dist/webcomponents/p-525adabf.entry.js +1 -0
  455. package/dist/webcomponents/p-57aab065.entry.js +1 -0
  456. package/dist/webcomponents/p-5a502ceb.entry.js +1 -0
  457. package/dist/webcomponents/p-5bf0ac1a.entry.js +1 -0
  458. package/dist/{components/subaccount-terms-details.js → webcomponents/p-64a5126c.entry.js} +1 -38
  459. package/dist/webcomponents/p-6e80f063.entry.js +1 -0
  460. package/dist/webcomponents/{p-59860ac8.js → p-78baff54.js} +1 -1
  461. package/dist/webcomponents/p-85ddbe82.entry.js +1 -0
  462. package/dist/webcomponents/p-8bbb1b10.entry.js +1 -0
  463. package/dist/webcomponents/p-90926321.js +1 -0
  464. package/dist/webcomponents/p-93579716.js +1 -0
  465. package/dist/webcomponents/p-9ba0be02.entry.js +1 -0
  466. package/dist/webcomponents/p-9cec4a27.entry.js +1 -0
  467. package/dist/webcomponents/p-9e0d2179.entry.js +1 -0
  468. package/dist/webcomponents/p-ac8be2a8.entry.js +1 -0
  469. package/dist/webcomponents/p-bd099662.entry.js +1 -0
  470. package/dist/{components/additional-questions-details2.js → webcomponents/p-c43e29ac.entry.js} +1 -35
  471. package/dist/webcomponents/p-c4826a33.entry.js +1 -0
  472. package/dist/webcomponents/{p-ed8c9b88.entry.js → p-c63a98f6.entry.js} +1 -1
  473. package/dist/webcomponents/{p-c0f9f6a8.entry.js → p-c950901c.entry.js} +2 -2
  474. package/dist/webcomponents/{p-3ee831ac.entry.js → p-d4755024.entry.js} +1 -1
  475. package/dist/webcomponents/p-d8835e7a.entry.js +1 -0
  476. package/dist/webcomponents/p-e8e109bd.entry.js +1 -0
  477. package/dist/webcomponents/p-ead8cfc2.entry.js +1 -0
  478. package/dist/webcomponents/p-f74899b9.entry.js +1 -0
  479. package/dist/webcomponents/p-f9183f12.entry.js +1 -0
  480. package/dist/webcomponents/webcomponents.css +1 -1
  481. package/dist/webcomponents/webcomponents.esm.js +1 -1
  482. package/package.json +18 -41
  483. package/readme.md +1 -1
  484. package/dist/cjs/Payout-f8240e9c.js +0 -183
  485. package/dist/cjs/SubAccount-f47c8522.js +0 -107
  486. package/dist/cjs/business-form-schema-fe831c30.js +0 -148
  487. package/dist/cjs/config-a156df17.js +0 -15
  488. package/dist/cjs/helpers-c505d861.js +0 -26
  489. package/dist/cjs/state-options-83b52cd1.js +0 -246
  490. package/dist/cjs/utils-a47b2e73.js +0 -35
  491. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +0 -132
  492. package/dist/collection/components/bank-account-form/example.js +0 -54
  493. package/dist/collection/components/billing-form/billing-form.stories.js +0 -61
  494. package/dist/collection/components/billing-form/example.js +0 -26
  495. package/dist/collection/components/business-details/business-details.stories.js +0 -23
  496. package/dist/collection/components/business-form/business-form-example.js +0 -12
  497. package/dist/collection/components/business-form/business-form-stepped-example.js +0 -12
  498. package/dist/collection/components/business-form/business-form-stepped.stories.js +0 -132
  499. package/dist/collection/components/business-form/business-form.stories.js +0 -127
  500. package/dist/collection/components/card-form/card-form.stories.js +0 -137
  501. package/dist/collection/components/card-form/example.js +0 -59
  502. package/dist/collection/components/gross-payment-chart/example.js +0 -12
  503. package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +0 -22
  504. package/dist/collection/components/payment-details/example.js +0 -12
  505. package/dist/collection/components/payment-details/payment-details.stories.js +0 -47
  506. package/dist/collection/components/payment-form/example.js +0 -23
  507. package/dist/collection/components/payment-form/payment-form.stories.js +0 -129
  508. package/dist/collection/components/payments-list/example.js +0 -12
  509. package/dist/collection/components/payments-list/payments-list.stories.js +0 -88
  510. package/dist/collection/components/payout-details/example.js +0 -12
  511. package/dist/collection/components/payout-details/payout-details.stories.js +0 -47
  512. package/dist/collection/components/payouts-list/example.js +0 -12
  513. package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -88
  514. package/dist/components/Payout.js +0 -179
  515. package/dist/components/SubAccount.js +0 -105
  516. package/dist/components/additional-questions.js +0 -49
  517. package/dist/components/billing-form.js +0 -112
  518. package/dist/components/business-address-form.js +0 -69
  519. package/dist/components/business-generic-info.js +0 -211
  520. package/dist/components/business-owners.js +0 -115
  521. package/dist/components/business-representative.js +0 -89
  522. package/dist/components/config.js +0 -13
  523. package/dist/components/details.js +0 -37
  524. package/dist/components/form-control-datepart2.js +0 -95
  525. package/dist/components/form-control-monetary2.js +0 -80
  526. package/dist/components/form-control-number-masked2.js +0 -79
  527. package/dist/components/form-control-number2.js +0 -68
  528. package/dist/components/form-control-select2.js +0 -64
  529. package/dist/components/form-control-text2.js +0 -68
  530. package/dist/components/generic-info-details2.js +0 -36
  531. package/dist/components/helpers.js +0 -24
  532. package/dist/components/justifi-bank-account-form.js +0 -95
  533. package/dist/components/justifi-business-details.js +0 -129
  534. package/dist/components/justifi-business-form-stepped.js +0 -227
  535. package/dist/components/justifi-business-form.js +0 -175
  536. package/dist/components/justifi-business-list.js +0 -192
  537. package/dist/components/justifi-card-form.js +0 -97
  538. package/dist/components/justifi-payment-balance-transactions.js +0 -122
  539. package/dist/components/justifi-payment-form.js +0 -168
  540. package/dist/components/justifi-payments-list.js +0 -149
  541. package/dist/components/justifi-payout-details.js +0 -95
  542. package/dist/components/justifi-payouts-list.js +0 -171
  543. package/dist/components/justifi-proceeds-list.js +0 -194
  544. package/dist/components/justifi-refund-form.js +0 -138
  545. package/dist/components/justifi-subaccount-details.js +0 -130
  546. package/dist/components/justifi-subaccounts-list.js +0 -137
  547. package/dist/components/legal-address-details2.js +0 -35
  548. package/dist/components/legal-address-form.js +0 -267
  549. package/dist/components/owner-details2.js +0 -38
  550. package/dist/components/pagination-menu2.js +0 -42
  551. package/dist/components/payment-method-selector.js +0 -43
  552. package/dist/components/representative-details2.js +0 -36
  553. package/dist/components/select-input2.js +0 -49
  554. package/dist/components/state-options.js +0 -244
  555. package/dist/components/subaccount-account-details2.js +0 -37
  556. package/dist/components/subaccount-bank-details.js +0 -38
  557. package/dist/components/subaccount-merchant-details2.js +0 -36
  558. package/dist/components/subaccount-owners-details2.js +0 -36
  559. package/dist/components/subaccount-representative-details2.js +0 -36
  560. package/dist/components/table.js +0 -89
  561. package/dist/components/text-input2.js +0 -47
  562. package/dist/components/utils.js +0 -27
  563. package/dist/esm/Payout-586f06a3.js +0 -179
  564. package/dist/esm/SubAccount-128190e9.js +0 -105
  565. package/dist/esm/business-form-schema-30a3eadd.js +0 -144
  566. package/dist/esm/config-ceb0f902.js +0 -13
  567. package/dist/esm/helpers-1d5ecdc8.js +0 -24
  568. package/dist/esm/state-options-ece00aa2.js +0 -244
  569. package/dist/esm/utils-d19c2778.js +0 -27
  570. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -23
  571. package/dist/types/components/billing-form/billing-form.stories.d.ts +0 -8
  572. package/dist/types/components/business-details/business-details.stories.d.ts +0 -7
  573. package/dist/types/components/business-form/business-form-stepped.stories.d.ts +0 -27
  574. package/dist/types/components/business-form/business-form.stories.d.ts +0 -27
  575. package/dist/types/components/card-form/card-form.stories.d.ts +0 -17
  576. package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +0 -7
  577. package/dist/types/components/payment-details/payment-details.stories.d.ts +0 -8
  578. package/dist/types/components/payment-form/payment-form.stories.d.ts +0 -8
  579. package/dist/types/components/payments-list/payments-list.stories.d.ts +0 -9
  580. package/dist/types/components/payout-details/payout-details.stories.d.ts +0 -8
  581. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +0 -9
  582. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -11
  583. package/dist/webcomponents/p-14f7229e.entry.js +0 -1
  584. package/dist/webcomponents/p-2c2cde2d.js +0 -1
  585. package/dist/webcomponents/p-3501b0e8.entry.js +0 -1
  586. package/dist/webcomponents/p-3fc95638.entry.js +0 -1
  587. package/dist/webcomponents/p-4214dbb8.entry.js +0 -1
  588. package/dist/webcomponents/p-46d5f717.entry.js +0 -1
  589. package/dist/webcomponents/p-4852ce94.entry.js +0 -1
  590. package/dist/webcomponents/p-4ec00b55.entry.js +0 -1
  591. package/dist/webcomponents/p-4fb653a8.entry.js +0 -1
  592. package/dist/webcomponents/p-586c8a4f.entry.js +0 -1
  593. package/dist/webcomponents/p-5e6726a8.entry.js +0 -1
  594. package/dist/webcomponents/p-7bda12a5.entry.js +0 -1
  595. package/dist/webcomponents/p-7d58db66.js +0 -1
  596. package/dist/webcomponents/p-8f37e3ee.js +0 -1
  597. package/dist/webcomponents/p-91757d9f.entry.js +0 -1
  598. package/dist/webcomponents/p-9e012e33.entry.js +0 -1
  599. package/dist/webcomponents/p-a1ef6b4c.entry.js +0 -1
  600. package/dist/webcomponents/p-af771964.entry.js +0 -1
  601. package/dist/webcomponents/p-b60a58f4.entry.js +0 -1
  602. package/dist/webcomponents/p-bb70152e.entry.js +0 -1
  603. package/dist/webcomponents/p-bc91044c.entry.js +0 -1
  604. package/dist/webcomponents/p-c29c587f.entry.js +0 -1
  605. package/dist/webcomponents/p-cbb60191.js +0 -2
  606. package/dist/webcomponents/p-d0e4eca5.entry.js +0 -1
  607. package/dist/webcomponents/p-d4b66d74.entry.js +0 -1
  608. package/dist/webcomponents/p-e7ef2455.entry.js +0 -1
  609. package/dist/webcomponents/p-f2f0aa6e.entry.js +0 -1
  610. package/dist/webcomponents/p-f4075186.entry.js +0 -1
  611. package/loader/index.es2017.js +0 -3
  612. /package/{loader → dist/loader}/package.json +0 -0
  613. /package/dist/{components → module}/additional-questions-details.js +0 -0
  614. /package/dist/{components → module}/form-control-datepart.js +0 -0
  615. /package/dist/{components → module}/form-control-monetary.js +0 -0
  616. /package/dist/{components → module}/form-control-number-masked.js +0 -0
  617. /package/dist/{components → module}/form-control-number.js +0 -0
  618. /package/dist/{components → module}/form-control-select.js +0 -0
  619. /package/dist/{components → module}/form-control-text.js +0 -0
  620. /package/dist/{components → module}/generic-info-details.js +0 -0
  621. /package/dist/{components → module}/index.d.ts +0 -0
  622. /package/dist/{components → module}/index.js +0 -0
  623. /package/dist/{components → module}/justifi-additional-questions.js +0 -0
  624. /package/dist/{components → module}/justifi-billing-form.js +0 -0
  625. /package/dist/{components → module}/justifi-business-address-form.js +0 -0
  626. /package/dist/{components → module}/justifi-business-generic-info.js +0 -0
  627. /package/dist/{components → module}/justifi-business-owners.js +0 -0
  628. /package/dist/{components → module}/justifi-business-representative.js +0 -0
  629. /package/dist/{components → module}/justifi-details.js +0 -0
  630. /package/dist/{components → module}/justifi-legal-address-form.js +0 -0
  631. /package/dist/{components → module}/justifi-payment-method-form.js +0 -0
  632. /package/dist/{components → module}/justifi-payment-method-selector.js +0 -0
  633. /package/dist/{components → module}/justifi-table.js +0 -0
  634. /package/dist/{components → module}/legal-address-details.js +0 -0
  635. /package/dist/{components → module}/owner-details.js +0 -0
  636. /package/dist/{components → module}/pagination-menu.js +0 -0
  637. /package/dist/{components → module}/representative-details.js +0 -0
  638. /package/dist/{components → module}/select-input.js +0 -0
  639. /package/dist/{components → module}/subaccount-account-details.js +0 -0
  640. /package/dist/{components → module}/subaccount-merchant-details.js +0 -0
  641. /package/dist/{components → module}/subaccount-owners-details.js +0 -0
  642. /package/dist/{components → module}/subaccount-representative-details.js +0 -0
  643. /package/dist/{components → module}/text-input.js +0 -0
  644. /package/dist/webcomponents/{p-0d5d02d7.js → p-56f6ce4c.js} +0 -0
  645. /package/dist/webcomponents/{p-e12ab547.js → p-71679a41.js} +0 -0
  646. /package/dist/webcomponents/{p-47bc59b5.js → p-8e2a88a8.js} +0 -0
  647. /package/dist/webcomponents/{p-d6b5793d.js → p-9a6e4749.js} +0 -0
  648. /package/dist/webcomponents/{p-526cb161.js → p-9b4b91ba.js} +0 -0
  649. /package/dist/webcomponents/{p-9b6dcac5.js → p-ae263544.js} +0 -0
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
27
27
  }
28
28
  };
29
29
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
+ /**
31
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
32
+ *
33
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
34
+ * support as of Stencil v4.
35
+ */
36
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
30
37
  /**
31
38
  * Default style mode id
32
39
  */
@@ -35,6 +42,11 @@ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
35
42
  * Don't add values to these!!
36
43
  */
37
44
  const EMPTY_OBJ = {};
45
+ /**
46
+ * Namespaces
47
+ */
48
+ const SVG_NS = 'http://www.w3.org/2000/svg';
49
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
38
50
  const isDef = (v) => v != null;
39
51
  /**
40
52
  * Check whether a value is a 'complex type', defined here as an object or a
@@ -99,6 +111,7 @@ const h = (nodeName, vnodeData, ...children) => {
99
111
  };
100
112
  walk(children);
101
113
  if (vnodeData) {
114
+ // normalize class / className attributes
102
115
  {
103
116
  const classData = vnodeData.className || vnodeData.class;
104
117
  if (classData) {
@@ -320,6 +333,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
320
333
  }
321
334
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
322
335
  }
336
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
337
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
338
+ styleElm.innerHTML += SLOT_FB_CSS;
339
+ }
323
340
  if (appliedStyles) {
324
341
  appliedStyles.add(scopeId);
325
342
  }
@@ -448,11 +465,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
448
465
  // except for the first character, we keep the event name case
449
466
  memberName = ln[2] + memberName.slice(3);
450
467
  }
451
- if (oldValue) {
452
- plt.rel(elm, memberName, oldValue, false);
453
- }
454
- if (newValue) {
455
- plt.ael(elm, memberName, newValue, false);
468
+ if (oldValue || newValue) {
469
+ // Need to account for "capture" events.
470
+ // If the event name ends with "Capture", we'll update the name to remove
471
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
472
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
473
+ // Make sure we only replace the last instance of "Capture"
474
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
475
+ if (oldValue) {
476
+ plt.rel(elm, memberName, oldValue, capture);
477
+ }
478
+ if (newValue) {
479
+ plt.ael(elm, memberName, newValue, capture);
480
+ }
456
481
  }
457
482
  }
458
483
  else {
@@ -474,7 +499,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
474
499
  elm[memberName] = newValue;
475
500
  }
476
501
  }
477
- catch (e) { }
502
+ catch (e) {
503
+ /**
504
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
505
+ */
506
+ }
478
507
  }
479
508
  if (newValue == null || newValue === false) {
480
509
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -493,7 +522,14 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
493
522
  }
494
523
  };
495
524
  const parseClassListRegex = /\s/;
525
+ /**
526
+ * Parsed a string of classnames into an array
527
+ * @param value className string, e.g. "foo bar baz"
528
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
529
+ */
496
530
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
531
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
532
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
497
533
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
498
534
  // if the element passed in is a shadow root, which is a document fragment
499
535
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -537,8 +573,15 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
537
573
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
538
574
  }
539
575
  else {
576
+ if (!isSvgMode) {
577
+ isSvgMode = newVNode.$tag$ === 'svg';
578
+ }
540
579
  // create element
541
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
580
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
581
+ );
582
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
583
+ isSvgMode = false;
584
+ }
542
585
  // add css classes, attrs, props, listeners, etc.
543
586
  {
544
587
  updateElement(null, newVNode, isSvgMode);
@@ -559,7 +602,20 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
559
602
  }
560
603
  }
561
604
  }
605
+ {
606
+ if (newVNode.$tag$ === 'svg') {
607
+ // Only reset the SVG context when we're exiting <svg> element
608
+ isSvgMode = false;
609
+ }
610
+ else if (elm.tagName === 'foreignObject') {
611
+ // Reenter SVG context when we're exiting <foreignObject> element
612
+ isSvgMode = true;
613
+ }
614
+ }
562
615
  }
616
+ // This needs to always happen so we can hide nodes that are projected
617
+ // to another component but don't end up in a slot
618
+ elm['s-hn'] = hostTagName;
563
619
  return elm;
564
620
  };
565
621
  /**
@@ -684,8 +740,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
684
740
  * @param oldCh the old children of the parent node
685
741
  * @param newVNode the new VNode which will replace the parent
686
742
  * @param newCh the new children of the parent node
743
+ * @param isInitialRender whether or not this is the first render of the vdom
687
744
  */
688
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
745
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
689
746
  let oldStartIdx = 0;
690
747
  let newStartIdx = 0;
691
748
  let oldEndIdx = oldCh.length - 1;
@@ -709,25 +766,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
709
766
  else if (newEndVnode == null) {
710
767
  newEndVnode = newCh[--newEndIdx];
711
768
  }
712
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
769
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
713
770
  // if the start nodes are the same then we should patch the new VNode
714
771
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
715
772
  // indices to reflect that. We don't need to move any DOM Nodes around
716
773
  // since things are matched up in order.
717
- patch(oldStartVnode, newStartVnode);
774
+ patch(oldStartVnode, newStartVnode, isInitialRender);
718
775
  oldStartVnode = oldCh[++oldStartIdx];
719
776
  newStartVnode = newCh[++newStartIdx];
720
777
  }
721
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
778
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
722
779
  // likewise, if the end nodes are the same we patch new onto old and
723
780
  // decrement our end indices, and also likewise in this case we don't
724
781
  // need to move any DOM Nodes.
725
- patch(oldEndVnode, newEndVnode);
782
+ patch(oldEndVnode, newEndVnode, isInitialRender);
726
783
  oldEndVnode = oldCh[--oldEndIdx];
727
784
  newEndVnode = newCh[--newEndIdx];
728
785
  }
729
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
730
- patch(oldStartVnode, newEndVnode);
786
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
787
+ patch(oldStartVnode, newEndVnode, isInitialRender);
731
788
  // We need to move the element for `oldStartVnode` into a position which
732
789
  // will be appropriate for `newEndVnode`. For this we can use
733
790
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -749,8 +806,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
749
806
  oldStartVnode = oldCh[++oldStartIdx];
750
807
  newEndVnode = newCh[--newEndIdx];
751
808
  }
752
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
753
- patch(oldEndVnode, newStartVnode);
809
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
810
+ patch(oldEndVnode, newStartVnode, isInitialRender);
754
811
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
755
812
  // the same node, so since we're here we know that they are not. Thus we
756
813
  // can move the element for `oldEndVnode` _before_ the element for
@@ -804,9 +861,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
804
861
  *
805
862
  * @param leftVNode the first VNode to check
806
863
  * @param rightVNode the second VNode to check
864
+ * @param isInitialRender whether or not this is the first render of the vdom
807
865
  * @returns whether they're equal or not
808
866
  */
809
- const isSameVnode = (leftVNode, rightVNode) => {
867
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
810
868
  // compare if two vnode to see if they're "technically" the same
811
869
  // need to have the same element tag, and same key to be the same
812
870
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -821,14 +879,20 @@ const isSameVnode = (leftVNode, rightVNode) => {
821
879
  *
822
880
  * @param oldVNode an old VNode whose DOM element and children we want to update
823
881
  * @param newVNode a new VNode representing an updated version of the old one
882
+ * @param isInitialRender whether or not this is the first render of the vdom
824
883
  */
825
- const patch = (oldVNode, newVNode) => {
884
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
826
885
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
827
886
  const oldChildren = oldVNode.$children$;
828
887
  const newChildren = newVNode.$children$;
829
888
  const tag = newVNode.$tag$;
830
889
  const text = newVNode.$text$;
831
890
  if (text === null) {
891
+ {
892
+ // test if we're rendering an svg element, or still rendering nodes inside of one
893
+ // only add this to the when the compiler sees we're using an svg somewhere
894
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
895
+ }
832
896
  {
833
897
  if (tag === 'slot')
834
898
  ;
@@ -842,7 +906,7 @@ const patch = (oldVNode, newVNode) => {
842
906
  if (oldChildren !== null && newChildren !== null) {
843
907
  // looks like there's child vnodes for both the old and new vnodes
844
908
  // so we need to call `updateChildren` to reconcile them
845
- updateChildren(elm, oldChildren, newVNode, newChildren);
909
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
846
910
  }
847
911
  else if (newChildren !== null) {
848
912
  // no old child vnodes, but there are new child vnodes to add
@@ -857,6 +921,9 @@ const patch = (oldVNode, newVNode) => {
857
921
  // no new child vnodes, but there are old child vnodes to remove
858
922
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
859
923
  }
924
+ if (isSvgMode && tag === 'svg') {
925
+ isSvgMode = false;
926
+ }
860
927
  }
861
928
  else if (oldVNode.$text$ !== text) {
862
929
  // update the text content for the text only vnode
@@ -865,9 +932,9 @@ const patch = (oldVNode, newVNode) => {
865
932
  }
866
933
  };
867
934
  /**
868
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
869
- * calling them with `null`. This signals that the DOM element corresponding to
870
- * the VDom node has been removed from the DOM.
935
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
936
+ * them with `null`. This signals that the DOM element corresponding to the VDom
937
+ * node has been removed from the DOM.
871
938
  *
872
939
  * @param vNode a virtual DOM node
873
940
  */
@@ -929,7 +996,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
929
996
  scopeId = hostElm['s-sc'];
930
997
  }
931
998
  // synchronous patch
932
- patch(oldVNode, rootVnode);
999
+ patch(oldVNode, rootVnode, isInitialLoad);
933
1000
  };
934
1001
  const attachToAncestor = (hostRef, ancestorComponent) => {
935
1002
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1085,6 +1152,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1085
1152
  */
1086
1153
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
1087
1154
  try {
1155
+ /**
1156
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1157
+ * method, so we can call the method immediately. If not, check before calling it.
1158
+ */
1088
1159
  instance = instance.render() ;
1089
1160
  {
1090
1161
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1164,6 +1235,16 @@ const appDidLoad = (who) => {
1164
1235
  }
1165
1236
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1166
1237
  };
1238
+ /**
1239
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1240
+ * e.g. custom element node. If a build figures out that e.g. no component
1241
+ * has a `componentDidLoad` method, the instance method gets removed from the
1242
+ * output bundle and this function returns `undefined`.
1243
+ * @param instance any object that may or may not contain methods
1244
+ * @param method method name
1245
+ * @param arg single arbitrary argument
1246
+ * @returns result of method call if it exists, otherwise `undefined`
1247
+ */
1167
1248
  const safeCall = (instance, method, arg) => {
1168
1249
  if (instance && instance[method]) {
1169
1250
  try {
@@ -1231,13 +1312,14 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1231
1312
  * @returns a reference to the same constructor passed in (but now mutated)
1232
1313
  */
1233
1314
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1315
+ var _a;
1316
+ const prototype = Cstr.prototype;
1234
1317
  if (cmpMeta.$members$) {
1235
1318
  if (Cstr.watchers) {
1236
1319
  cmpMeta.$watchers$ = Cstr.watchers;
1237
1320
  }
1238
1321
  // It's better to have a const than two Object.entries()
1239
1322
  const members = Object.entries(cmpMeta.$members$);
1240
- const prototype = Cstr.prototype;
1241
1323
  members.map(([memberName, [memberFlags]]) => {
1242
1324
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1243
1325
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1260,16 +1342,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1260
1342
  // proxyComponent - method
1261
1343
  Object.defineProperty(prototype, memberName, {
1262
1344
  value(...args) {
1345
+ var _a;
1263
1346
  const ref = getHostRef(this);
1264
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1347
+ return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1265
1348
  },
1266
1349
  });
1267
1350
  }
1268
1351
  });
1269
1352
  if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1270
1353
  const attrNameToPropName = new Map();
1271
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1354
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1272
1355
  plt.jmp(() => {
1356
+ var _a;
1273
1357
  const propName = attrNameToPropName.get(attrName);
1274
1358
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1275
1359
  // in the case where an attribute was set inline.
@@ -1291,12 +1375,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1291
1375
  // customElements.define('my-component', MyComponent);
1292
1376
  // </script>
1293
1377
  // ```
1294
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1378
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1295
1379
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1296
1380
  // to the value that was set inline i.e. "some-value" from above example. When
1297
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1381
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1298
1382
  //
1299
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1383
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1300
1384
  // by connectedCallback as this attributeChangedCallback will not fire.
1301
1385
  //
1302
1386
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -1316,23 +1400,63 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1316
1400
  // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1317
1401
  return;
1318
1402
  }
1403
+ else if (propName == null) {
1404
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1405
+ // on a vanilla web component
1406
+ const hostRef = getHostRef(this);
1407
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1408
+ // We only want to trigger the callback(s) if:
1409
+ // 1. The instance is ready
1410
+ // 2. The watchers are ready
1411
+ // 3. The value has changed
1412
+ if (flags &&
1413
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1414
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1415
+ newValue !== oldValue) {
1416
+ const instance = hostRef.$lazyInstance$ ;
1417
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1418
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1419
+ if (instance[callbackName] != null) {
1420
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1421
+ }
1422
+ });
1423
+ }
1424
+ return;
1425
+ }
1319
1426
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1320
1427
  });
1321
1428
  };
1322
- // create an array of attributes to observe
1323
- // and also create a map of html attribute name to js property name
1324
- Cstr.observedAttributes = members
1325
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1326
- .map(([propName, m]) => {
1327
- const attrName = m[1] || propName;
1328
- attrNameToPropName.set(attrName, propName);
1329
- return attrName;
1330
- });
1429
+ // Create an array of attributes to observe
1430
+ // This list in comprised of all strings used within a `@Watch()` decorator
1431
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1432
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1433
+ // an invalid attribute.
1434
+ Cstr.observedAttributes = Array.from(new Set([
1435
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1436
+ ...members
1437
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1438
+ .map(([propName, m]) => {
1439
+ const attrName = m[1] || propName;
1440
+ attrNameToPropName.set(attrName, propName);
1441
+ return attrName;
1442
+ }),
1443
+ ]));
1331
1444
  }
1332
1445
  }
1333
1446
  return Cstr;
1334
1447
  };
1335
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1448
+ /**
1449
+ * Initialize a Stencil component given a reference to its host element, its
1450
+ * runtime bookkeeping data structure, runtime metadata about the component,
1451
+ * and (optionally) an HMR version ID.
1452
+ *
1453
+ * @param elm a host element
1454
+ * @param hostRef the element's runtime bookkeeping object
1455
+ * @param cmpMeta runtime metadata for the Stencil component
1456
+ * @param hmrVersionId an (optional) HMR version ID
1457
+ */
1458
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1459
+ let Cstr;
1336
1460
  // initializeComponent
1337
1461
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1338
1462
  // Let the runtime know that the component has been initialized
@@ -1500,20 +1624,27 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1500
1624
  const customElements = win.customElements;
1501
1625
  const head = doc.head;
1502
1626
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1503
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1627
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1504
1628
  const deferredConnectedCallbacks = [];
1505
1629
  let appLoadFallback;
1506
1630
  let isBootstrapping = true;
1507
1631
  Object.assign(plt, options);
1508
1632
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1633
+ let hasSlotRelocation = false;
1509
1634
  lazyBundles.map((lazyBundle) => {
1510
1635
  lazyBundle[1].map((compactMeta) => {
1636
+ var _a;
1511
1637
  const cmpMeta = {
1512
1638
  $flags$: compactMeta[0],
1513
1639
  $tagName$: compactMeta[1],
1514
1640
  $members$: compactMeta[2],
1515
1641
  $listeners$: compactMeta[3],
1516
1642
  };
1643
+ // Check if we are using slots outside the shadow DOM in this component.
1644
+ // We'll use this information later to add styles for `slot-fb` elements
1645
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1646
+ hasSlotRelocation = true;
1647
+ }
1517
1648
  {
1518
1649
  cmpMeta.$members$ = compactMeta[2];
1519
1650
  }
@@ -1521,7 +1652,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1521
1652
  cmpMeta.$listeners$ = compactMeta[3];
1522
1653
  }
1523
1654
  {
1524
- cmpMeta.$watchers$ = {};
1655
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1525
1656
  }
1526
1657
  const tagName = cmpMeta.$tagName$;
1527
1658
  const HostElement = class extends HTMLElement {
@@ -1570,15 +1701,25 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1570
1701
  }
1571
1702
  });
1572
1703
  });
1704
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1705
+ if (hasSlotRelocation) {
1706
+ dataStyles.innerHTML += SLOT_FB_CSS;
1707
+ }
1708
+ // Add hydration styles
1573
1709
  {
1574
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1575
- visibilityStyle.setAttribute('data-styles', '');
1710
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1711
+ }
1712
+ // If we have styles, add them to the DOM
1713
+ if (dataStyles.innerHTML.length) {
1714
+ dataStyles.setAttribute('data-styles', '');
1576
1715
  // Apply CSP nonce to the style tag if it exists
1577
1716
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1578
1717
  if (nonce != null) {
1579
- visibilityStyle.setAttribute('nonce', nonce);
1718
+ dataStyles.setAttribute('nonce', nonce);
1580
1719
  }
1581
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1720
+ // Insert the styles into the document head
1721
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1722
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1582
1723
  }
1583
1724
  // Process deferred connectedCallbacks now all components have been registered
1584
1725
  isBootstrapping = false;
@@ -1630,13 +1771,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
1630
1771
  * @returns void
1631
1772
  */
1632
1773
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1774
+ /**
1775
+ * A WeakMap mapping runtime component references to their corresponding host reference
1776
+ * instances.
1777
+ */
1633
1778
  const hostRefs = /*@__PURE__*/ new WeakMap();
1779
+ /**
1780
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1781
+ *
1782
+ * @param ref the runtime ref of interest
1783
+ * @returns the Host reference (if found) or undefined
1784
+ */
1634
1785
  const getHostRef = (ref) => hostRefs.get(ref);
1786
+ /**
1787
+ * Register a lazy instance with the {@link hostRefs} object so it's
1788
+ * corresponding {@link d.HostRef} can be retrieved later.
1789
+ *
1790
+ * @param lazyInstance the lazy instance of interest
1791
+ * @param hostRef that instances `HostRef` object
1792
+ * @returns a reference to the host ref WeakMap
1793
+ */
1635
1794
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1636
- const registerHost = (elm, cmpMeta) => {
1795
+ /**
1796
+ * Register a host element for a Stencil component, setting up various metadata
1797
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1798
+ * metadata.
1799
+ *
1800
+ * @param hostElement the host element to register
1801
+ * @param cmpMeta runtime metadata for that component
1802
+ * @returns a reference to the host ref WeakMap
1803
+ */
1804
+ const registerHost = (hostElement, cmpMeta) => {
1637
1805
  const hostRef = {
1638
1806
  $flags$: 0,
1639
- $hostElement$: elm,
1807
+ $hostElement$: hostElement,
1640
1808
  $cmpMeta$: cmpMeta,
1641
1809
  $instanceValues$: new Map(),
1642
1810
  };
@@ -1645,11 +1813,11 @@ const registerHost = (elm, cmpMeta) => {
1645
1813
  }
1646
1814
  {
1647
1815
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1648
- elm['s-p'] = [];
1649
- elm['s-rc'] = [];
1816
+ hostElement['s-p'] = [];
1817
+ hostElement['s-rc'] = [];
1650
1818
  }
1651
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1652
- return hostRefs.set(elm, hostRef);
1819
+ addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
1820
+ return hostRefs.set(hostElement, hostRef);
1653
1821
  };
1654
1822
  const isMemberInElement = (elm, memberName) => memberName in elm;
1655
1823
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -1737,7 +1905,7 @@ const flush = () => {
1737
1905
  }
1738
1906
  }
1739
1907
  };
1740
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1908
+ const nextTick = (cb) => promiseResolve().then(cb);
1741
1909
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1742
1910
 
1743
1911
  export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };