adp-web-components 0.3.10 → 0.3.13

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 (467) hide show
  1. package/dist/cjs/{add-icon-CF5SHPFy.js → add-icon-BaoMAIgg.js} +2 -4
  2. package/dist/cjs/{app-globals-CLG2l7G2.js → app-globals-DBRBLgev.js} +3 -2
  3. package/dist/cjs/arrow-icon-CJX1aUJ8.js +11 -0
  4. package/dist/cjs/arrow-up-icon-B3Z5Myqt.js +11 -0
  5. package/dist/cjs/calendar-days-icon-CsHz2cgV.js +11 -0
  6. package/dist/cjs/{check-icon-BZSYrNhm.js → check-icon-CqTKjw2o.js} +2 -3
  7. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +54 -48
  8. package/dist/cjs/{decode-time-offset-iH1ebYUR.js → decode-time-offset-DOSaziv5.js} +1 -1
  9. package/dist/cjs/{fetch-from-CDC_gRf3.js → fetch-from-BNNXW9VC.js} +1 -1
  10. package/dist/cjs/flexible-container.cjs.entry.js +14 -8
  11. package/dist/cjs/form-checkbox.cjs.entry.js +6 -6
  12. package/dist/cjs/form-date-picker.cjs.entry.js +12 -10
  13. package/dist/cjs/form-dialog_13.cjs.entry.js +191 -113
  14. package/dist/cjs/{form-error-message-BVlrmjov.js → form-error-message-K-KI154V.js} +4 -5
  15. package/dist/cjs/{form-input-cvIkC0L1.js → form-input-PYkIVe7J.js} +10 -10
  16. package/dist/cjs/{form-input-label-CVEi7sIh.js → form-input-label-uhneFYXO.js} +4 -6
  17. package/dist/cjs/form-input_7.cjs.entry.js +57 -41
  18. package/dist/cjs/form-switch.cjs.entry.js +6 -6
  19. package/dist/cjs/form-time-picker.cjs.entry.js +13 -11
  20. package/dist/cjs/{functions-DfKzlH6K.js → functions-Bu1AQDD2.js} +16 -14
  21. package/dist/cjs/general-form.cjs.entry.js +18 -14
  22. package/dist/cjs/general-inquiry-form.cjs.entry.js +18 -14
  23. package/dist/cjs/{get-custom-classes-for-portal-DKFBTajH.js → get-custom-classes-for-portal-NNOxAU3P.js} +3 -4
  24. package/dist/cjs/{get-language-from-url-CFD-qrqi.js → get-language-from-url-p2OXldYh.js} +5 -4
  25. package/dist/cjs/{get-local-language-rENgkS8G.js → get-local-language-BR0p0bBg.js} +2 -2
  26. package/dist/cjs/{get-mock-files-CzWl-czX.js → get-mock-files-Dljv5P4k.js} +2 -2
  27. package/dist/cjs/{index-H5Wezxcv.js → index-Bi6W8dMN.js} +492 -270
  28. package/dist/cjs/information-table.cjs.entry.js +8 -10
  29. package/dist/cjs/{loader-icon-DO2Fu65-.js → loader-icon-By94sKO7.js} +2 -10
  30. package/dist/cjs/loader.cjs.js +3 -3
  31. package/dist/cjs/loading-spinner.cjs.entry.js +4 -4
  32. package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +10 -8
  33. package/dist/cjs/{mappers-CoVG3ogT.js → mappers-DF2WCWpn.js} +10 -14
  34. package/dist/cjs/{material-card-DyHk88WR.js → material-card-BqsZgRVE.js} +4 -12
  35. package/dist/cjs/part-lookup.cjs.entry.js +11 -7
  36. package/dist/cjs/qr-code-scan-B-8WHa22.js +11 -0
  37. package/dist/cjs/service-booking-form.cjs.entry.js +18 -14
  38. package/dist/cjs/shift-accordion.cjs.entry.js +4 -4
  39. package/dist/cjs/shift-checkbox.cjs.entry.js +5 -5
  40. package/dist/cjs/shift-components.cjs.js +4 -4
  41. package/dist/cjs/shift-slider.cjs.entry.js +7 -5
  42. package/dist/cjs/shift-switch.cjs.entry.js +4 -4
  43. package/dist/cjs/shift-tab-content.cjs.entry.js +7 -5
  44. package/dist/cjs/shift-tabs_2.cjs.entry.js +25 -25
  45. package/dist/cjs/ssc-lookup-form.cjs.entry.js +18 -14
  46. package/dist/cjs/test-drive-form.cjs.entry.js +18 -14
  47. package/dist/cjs/{triangle-alert-B9UanYfs.js → triangle-alert-CN15U99s.js} +3 -11
  48. package/dist/cjs/vehicle-accessories_7.cjs.entry.js +119 -178
  49. package/dist/cjs/vehicle-info-layout-sV6altzn.js +12 -0
  50. package/dist/cjs/vehicle-lookup.cjs.entry.js +19 -10
  51. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +30 -30
  52. package/dist/collection/collection-manifest.json +3 -2
  53. package/dist/collection/components/components/empty.css +1 -1
  54. package/dist/collection/components/components/flexible-container.css +1 -1
  55. package/dist/collection/components/components/flexible-container.js +10 -10
  56. package/dist/collection/components/components/information-table.css +1 -1
  57. package/dist/collection/components/components/information-table.js +12 -20
  58. package/dist/collection/components/components/loading-spinner.css +1 -1
  59. package/dist/collection/components/components/loading-spinner.js +3 -3
  60. package/dist/collection/components/components/shift-accordion.css +1 -1
  61. package/dist/collection/components/components/shift-accordion.js +5 -6
  62. package/dist/collection/components/components/shift-checkbox.js +13 -14
  63. package/dist/collection/components/components/shift-portal.css +1 -1
  64. package/dist/collection/components/components/shift-portal.js +3 -4
  65. package/dist/collection/components/components/shift-select-dropdown.css +1 -1
  66. package/dist/collection/components/components/shift-select-dropdown.js +23 -24
  67. package/dist/collection/components/components/shift-select.css +1 -1
  68. package/dist/collection/components/components/shift-select.js +47 -43
  69. package/dist/collection/components/components/shift-slider.js +3 -4
  70. package/dist/collection/components/components/shift-switch.js +13 -14
  71. package/dist/collection/components/components/shift-tab-content.css +1 -1
  72. package/dist/collection/components/components/shift-tab-content.js +3 -4
  73. package/dist/collection/components/components/shift-tabs.css +1 -1
  74. package/dist/collection/components/components/shift-tabs.js +10 -12
  75. package/dist/collection/components/form-elements/VehicleImageViewer.js +1 -1
  76. package/dist/collection/components/form-elements/form-checkbox.js +17 -17
  77. package/dist/collection/components/form-elements/form-date-picker-legacy.js +26 -27
  78. package/dist/collection/components/form-elements/form-dialog.js +7 -8
  79. package/dist/collection/components/form-elements/form-file.js +114 -60
  80. package/dist/collection/components/form-elements/form-input-preview.js +8 -8
  81. package/dist/collection/components/form-elements/form-input.js +30 -32
  82. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  83. package/dist/collection/components/form-elements/form-phone-number.js +26 -26
  84. package/dist/collection/components/form-elements/form-picker-input.js +37 -38
  85. package/dist/collection/components/form-elements/form-select.js +38 -37
  86. package/dist/collection/components/form-elements/form-shadow-input.js +8 -8
  87. package/dist/collection/components/form-elements/form-stepper-control.js +17 -17
  88. package/dist/collection/components/form-elements/form-stepper-submit.js +19 -19
  89. package/dist/collection/components/form-elements/form-stepper.js +13 -12
  90. package/dist/collection/components/form-elements/form-structure-error.js +4 -3
  91. package/dist/collection/components/form-elements/form-structure.js +16 -16
  92. package/dist/collection/components/form-elements/form-submit.js +16 -16
  93. package/dist/collection/components/form-elements/form-switch.js +17 -17
  94. package/dist/collection/components/form-elements/form-text-area.js +22 -22
  95. package/dist/collection/components/form-elements/form-time-picker-legacy.js +26 -26
  96. package/dist/collection/components/form-elements/form-vin-input.js +32 -32
  97. package/dist/collection/components/forms/defaults/mappers.js +4 -4
  98. package/dist/collection/components/forms/general-form.js +22 -29
  99. package/dist/collection/components/forms/general-inquiry.js +22 -29
  100. package/dist/collection/components/forms/service-booking.js +22 -29
  101. package/dist/collection/components/forms/ssc-lookup.js +22 -29
  102. package/dist/collection/components/forms/test-drive.js +22 -29
  103. package/dist/collection/components/forms/vehicle-quotation/VehicleImageViewer.js +1 -1
  104. package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +13 -13
  105. package/dist/collection/components/forms/vehicle-quotation.js +22 -27
  106. package/dist/collection/components/part-lookup/dead-stock-lookup.js +41 -29
  107. package/dist/collection/components/part-lookup/distributor-lookup.js +49 -36
  108. package/dist/collection/components/part-lookup/manufacturer-lookup.js +41 -29
  109. package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
  110. package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +24 -20
  111. package/dist/collection/components/part-lookup/part-lookup.js +39 -34
  112. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +1 -1
  113. package/dist/collection/components/vehicle-lookup/components/claimable-trace-modal.js +1 -1
  114. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  115. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +36 -27
  116. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  117. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +56 -41
  118. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  119. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +21 -21
  120. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  121. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +34 -34
  122. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  123. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +35 -26
  124. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
  125. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +38 -29
  126. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
  127. package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +35 -26
  128. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  129. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +35 -26
  130. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
  131. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +67 -55
  132. package/dist/collection/components/vin-extractor/vin-extractor.js +27 -26
  133. package/dist/collection/features/form-hook/form-hook.js +4 -3
  134. package/dist/collection/features/form-hook/functions.js +13 -11
  135. package/dist/collection/features/form-hook/inputs/form-input.js +10 -10
  136. package/dist/collection/global/lib/fetch-from.js +1 -1
  137. package/dist/collection/global/lib/get-custom-classes-for-portal.js +1 -1
  138. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-menu-dto.js +1 -0
  139. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-menu-line-dto.js +1 -0
  140. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-menu-part-dto.js +1 -0
  141. package/dist/collection/templates/vehicle-lookup/mock-data.js +3 -2
  142. package/dist/components/dead-stock-lookup.js +1 -1
  143. package/dist/components/distributor-lookup.js +1 -1
  144. package/dist/components/flexible-container.js +1 -1
  145. package/dist/components/form-checkbox.js +1 -1
  146. package/dist/components/form-date-picker.js +1 -1
  147. package/dist/components/form-dialog.js +1 -1
  148. package/dist/components/form-file.js +1 -1
  149. package/dist/components/form-input-preview.js +1 -1
  150. package/dist/components/form-input.js +1 -1
  151. package/dist/components/form-phone-number.js +1 -1
  152. package/dist/components/form-picker-input.js +1 -1
  153. package/dist/components/form-select.js +1 -1
  154. package/dist/components/form-shadow-input.js +1 -1
  155. package/dist/components/form-stepper-control.js +1 -1
  156. package/dist/components/form-stepper-submit.js +1 -1
  157. package/dist/components/form-stepper.js +1 -1
  158. package/dist/components/form-structure-error.js +1 -1
  159. package/dist/components/form-structure.js +1 -1
  160. package/dist/components/form-submit.js +1 -1
  161. package/dist/components/form-switch.js +1 -1
  162. package/dist/components/form-text-area.js +1 -1
  163. package/dist/components/form-time-picker.js +1 -1
  164. package/dist/components/form-vin-input.js +1 -1
  165. package/dist/components/general-form.js +1 -1
  166. package/dist/components/general-inquiry-form.js +1 -1
  167. package/dist/components/index.d.ts +2 -0
  168. package/dist/components/index.js +1 -1
  169. package/dist/components/information-table.js +1 -1
  170. package/dist/components/loading-spinner.js +1 -1
  171. package/dist/components/manufacturer-lookup.js +1 -1
  172. package/dist/components/manufacturer-part-lookup.js +1 -1
  173. package/dist/components/p-50EIzP4j.js +5 -0
  174. package/dist/components/p-8EOK_QhL.js +5 -0
  175. package/dist/components/p-B3Vlmu9F.js +5 -0
  176. package/dist/components/p-B42vuL_p.js +5 -0
  177. package/dist/components/p-B8g3fLoh.js +5 -0
  178. package/dist/components/p-BDHTK4yJ.js +5 -0
  179. package/dist/components/p-BDlZ35Dv.js +5 -0
  180. package/dist/components/p-BFAzCUQY.js +5 -0
  181. package/dist/components/p-BHYsBcpG.js +5 -0
  182. package/dist/components/p-BIeJEFM6.js +5 -0
  183. package/dist/components/p-BMxw31OW.js +5 -0
  184. package/dist/components/p-BNs9PHd8.js +5 -0
  185. package/dist/components/p-BP6R1nYk.js +5 -0
  186. package/dist/components/p-BcRom3sV.js +5 -0
  187. package/dist/components/p-BjLQXN9e.js +5 -0
  188. package/dist/components/{p-CyHSA0jj.js → p-BsgLxjfx.js} +1 -1
  189. package/dist/components/p-BshR1DsJ.js +5 -0
  190. package/dist/components/p-C24AOawm.js +5 -0
  191. package/dist/components/p-C55Gk63d.js +5 -0
  192. package/dist/components/p-CD1XArUc.js +5 -0
  193. package/dist/components/p-CK6WFXQF.js +5 -0
  194. package/dist/components/p-CKrwCtec.js +5 -0
  195. package/dist/components/p-CLkGfAsm.js +5 -0
  196. package/dist/components/{p-nQWwKabJ.js → p-CMgPnaDZ.js} +1 -1
  197. package/dist/components/p-CRJSM0nN.js +5 -0
  198. package/dist/components/p-CjByjVT0.js +5 -0
  199. package/dist/components/p-Cl-rntc3.js +5 -0
  200. package/dist/components/{p-Dl7l7tdl.js → p-ClDpIRF9.js} +1 -1
  201. package/dist/components/p-Cmq7s1Gl.js +5 -0
  202. package/dist/components/p-CnZZ3ASF.js +5 -0
  203. package/dist/components/{p-CRxLIkuy.js → p-CoAe_PpX.js} +1 -1
  204. package/dist/components/{p-i9Qh8W9F.js → p-CtyIp56a.js} +1 -1
  205. package/dist/components/p-CvcaE6Ss.js +5 -0
  206. package/dist/components/{p-X95dYnNe.js → p-D-0CfzDk.js} +1 -1
  207. package/dist/components/p-DBErZTaY.js +5 -0
  208. package/dist/components/p-DJ0awYVE.js +5 -0
  209. package/dist/components/p-DNZ31iYw.js +5 -0
  210. package/dist/components/p-DWGSY0dp.js +5 -0
  211. package/dist/components/p-DbAAihIH.js +5 -0
  212. package/dist/components/p-DlG98nFs.js +5 -0
  213. package/dist/components/p-Dv_BQG7D.js +5 -0
  214. package/dist/components/{p-C-oReaYu.js → p-DzfwEYqx.js} +1 -1
  215. package/dist/components/{p-Bk0lC2Er.js → p-G9UmKW9m.js} +1 -1
  216. package/dist/components/p-Hlqj6HsH.js +5 -0
  217. package/dist/components/p-Wv20cFTm.js +5 -0
  218. package/dist/components/p-dRP9cgZF.js +5 -0
  219. package/dist/components/p-ubqjXh5U.js +5 -0
  220. package/dist/components/part-lookup.js +1 -1
  221. package/dist/components/service-booking-form.js +1 -1
  222. package/dist/components/shift-accordion.js +1 -1
  223. package/dist/components/shift-checkbox.js +1 -1
  224. package/dist/components/shift-portal.js +1 -1
  225. package/dist/components/shift-select-dropdown.js +1 -1
  226. package/dist/components/shift-select.js +1 -1
  227. package/dist/components/shift-slider.js +1 -1
  228. package/dist/components/shift-switch.js +1 -1
  229. package/dist/components/shift-tab-content.js +1 -1
  230. package/dist/components/shift-tabs.js +1 -1
  231. package/dist/components/ssc-lookup-form.js +1 -1
  232. package/dist/components/test-drive-form.js +1 -1
  233. package/dist/components/vehicle-accessories.js +1 -1
  234. package/dist/components/vehicle-claimable-items.js +1 -1
  235. package/dist/components/vehicle-item-claim-form.js +1 -1
  236. package/dist/components/vehicle-lookup.js +1 -1
  237. package/dist/components/vehicle-paint-thickness.js +1 -1
  238. package/dist/components/vehicle-quotation-form.js +1 -1
  239. package/dist/components/vehicle-sale-information.js +1 -1
  240. package/dist/components/vehicle-service-history.js +1 -1
  241. package/dist/components/vehicle-specification.js +1 -1
  242. package/dist/components/vehicle-warranty-details.js +1 -1
  243. package/dist/components/vin-extractor.js +1 -1
  244. package/dist/esm/{add-icon-1FhDJgrT.js → add-icon-DxQVyX6U.js} +2 -4
  245. package/dist/esm/app-globals-ci3rJxmu.js +10 -0
  246. package/dist/esm/arrow-icon-DRTeN2D5.js +9 -0
  247. package/dist/esm/arrow-up-icon-FAYFxG6c.js +9 -0
  248. package/dist/esm/calendar-days-icon-BOy0a_W-.js +9 -0
  249. package/dist/esm/{check-icon-mzFBdGKX.js → check-icon-BYK1ESZG.js} +2 -3
  250. package/dist/esm/dead-stock-lookup_3.entry.js +54 -48
  251. package/dist/esm/{decode-time-offset-Yzmqcv0-.js → decode-time-offset-ChO_PV6l.js} +1 -1
  252. package/dist/esm/{fetch-from-CJnc-a42.js → fetch-from-Cmq7s1Gl.js} +1 -1
  253. package/dist/esm/flexible-container.entry.js +14 -8
  254. package/dist/esm/form-checkbox.entry.js +6 -6
  255. package/dist/esm/form-date-picker.entry.js +12 -10
  256. package/dist/esm/form-dialog_13.entry.js +191 -113
  257. package/dist/esm/{form-error-message-7rL_3zgN.js → form-error-message-YvMHko71.js} +4 -5
  258. package/dist/esm/{form-input-Dcr-Pd8b.js → form-input-DAgayhNz.js} +10 -10
  259. package/dist/esm/{form-input-label-C4MUngYi.js → form-input-label-cuvgzRcH.js} +4 -6
  260. package/dist/esm/form-input_7.entry.js +57 -41
  261. package/dist/esm/form-switch.entry.js +6 -6
  262. package/dist/esm/form-time-picker.entry.js +13 -11
  263. package/dist/esm/{functions-D5F-Ha2E.js → functions-DHzedl_R.js} +16 -14
  264. package/dist/esm/general-form.entry.js +18 -14
  265. package/dist/esm/general-inquiry-form.entry.js +18 -14
  266. package/dist/esm/{get-custom-classes-for-portal-8uDhq9VB.js → get-custom-classes-for-portal-C4LvwyrX.js} +3 -4
  267. package/dist/esm/{get-language-from-url-BGvsZ8gr.js → get-language-from-url-U4hZ4dwn.js} +5 -4
  268. package/dist/esm/{get-local-language-Ni37hOJT.js → get-local-language-TRD6vPH7.js} +2 -2
  269. package/dist/esm/{get-mock-files-CTROnpSS.js → get-mock-files-K2mWecRb.js} +2 -2
  270. package/dist/esm/{index-jNkxdTjc.js → index-Cg4V9l26.js} +493 -270
  271. package/dist/esm/information-table.entry.js +8 -10
  272. package/dist/esm/{loader-icon-C9goMj-j.js → loader-icon-B2ls1yXl.js} +2 -10
  273. package/dist/esm/loader.js +4 -4
  274. package/dist/esm/loading-spinner.entry.js +4 -4
  275. package/dist/esm/manufacturer-part-lookup.entry.js +10 -8
  276. package/dist/esm/{mappers-CA3VC0xY.js → mappers-CeTQZn37.js} +10 -14
  277. package/dist/esm/{material-card-ZydeukMY.js → material-card-BMtefyp-.js} +4 -12
  278. package/dist/esm/part-lookup.entry.js +11 -7
  279. package/dist/esm/qr-code-scan-CktgNBSD.js +9 -0
  280. package/dist/esm/service-booking-form.entry.js +18 -14
  281. package/dist/esm/shift-accordion.entry.js +4 -4
  282. package/dist/esm/shift-checkbox.entry.js +5 -5
  283. package/dist/esm/shift-components.js +5 -5
  284. package/dist/esm/shift-slider.entry.js +7 -5
  285. package/dist/esm/shift-switch.entry.js +4 -4
  286. package/dist/esm/shift-tab-content.entry.js +7 -5
  287. package/dist/esm/shift-tabs_2.entry.js +25 -25
  288. package/dist/esm/ssc-lookup-form.entry.js +18 -14
  289. package/dist/esm/test-drive-form.entry.js +18 -14
  290. package/dist/esm/{triangle-alert-CVJ0-eRT.js → triangle-alert-D4H9aWiT.js} +3 -11
  291. package/dist/esm/vehicle-accessories_7.entry.js +119 -178
  292. package/dist/esm/vehicle-info-layout-DQ12Civq.js +10 -0
  293. package/dist/esm/vehicle-lookup.entry.js +19 -10
  294. package/dist/esm/vehicle-quotation-form.entry.js +30 -30
  295. package/dist/integration-manifest.json +14 -21
  296. package/dist/shift-components/p-031f2ae6.entry.js +5 -0
  297. package/dist/shift-components/p-0578b913.entry.js +5 -0
  298. package/dist/shift-components/{p-CyHqRBNl.js → p-08Pl1Pmo.js} +1 -1
  299. package/dist/{components/p-CJVlKa4a.js → shift-components/p-0dd7911f.entry.js} +1 -1
  300. package/dist/shift-components/p-10511716.entry.js +5 -0
  301. package/dist/shift-components/p-1500556f.entry.js +5 -0
  302. package/dist/shift-components/p-214259ae.entry.js +5 -0
  303. package/dist/shift-components/p-22648595.entry.js +5 -0
  304. package/dist/shift-components/p-23df4ed2.entry.js +5 -0
  305. package/dist/shift-components/p-2f904561.entry.js +5 -0
  306. package/dist/shift-components/p-332ebda4.entry.js +5 -0
  307. package/dist/shift-components/p-3fcb1657.entry.js +5 -0
  308. package/dist/shift-components/p-46e5146f.entry.js +5 -0
  309. package/dist/shift-components/{p-dff52f51.entry.js → p-61ecc144.entry.js} +1 -1
  310. package/dist/shift-components/p-6b82a9b3.entry.js +5 -0
  311. package/dist/shift-components/p-7a41a739.entry.js +5 -0
  312. package/dist/shift-components/p-960fedbb.entry.js +5 -0
  313. package/dist/shift-components/p-981d1f44.entry.js +5 -0
  314. package/dist/shift-components/p-9c950549.entry.js +5 -0
  315. package/dist/shift-components/{p-BqIKtMjz.js → p-B8RCucpl.js} +1 -1
  316. package/dist/shift-components/{p-Dax5QQIX.js → p-BBmr0kTe.js} +1 -1
  317. package/dist/shift-components/{p-DqLLLv_z.js → p-BG5y01yj.js} +1 -1
  318. package/dist/shift-components/p-BLdwm9KB.js +5 -0
  319. package/dist/shift-components/{p-D7tlaAVX.js → p-BVDXHvth.js} +1 -1
  320. package/dist/shift-components/p-BY1wHcOT.js +5 -0
  321. package/dist/shift-components/{p-CRXqIT0k.js → p-BaC5C1YJ.js} +1 -1
  322. package/dist/shift-components/{p-BYqBwpb9.js → p-BpCf2ue6.js} +1 -1
  323. package/dist/shift-components/{p-WjikIqgU.js → p-BtLpOQVM.js} +1 -1
  324. package/dist/shift-components/{p-BAVCXWzv.js → p-CC1CaPP4.js} +1 -1
  325. package/dist/shift-components/{p-BUeE5BHf.js → p-CRd5RAng.js} +1 -1
  326. package/dist/shift-components/p-Cg4V9l26.js +6 -0
  327. package/dist/shift-components/{p-DLnQ2n2n.js → p-CiA8HlYO.js} +1 -1
  328. package/dist/shift-components/p-Cmq7s1Gl.js +5 -0
  329. package/dist/shift-components/{p-gbZBovQk.js → p-CtUQMviL.js} +1 -1
  330. package/dist/shift-components/p-D2XgNV12.js +5 -0
  331. package/dist/shift-components/p-DlBduQTw.js +5 -0
  332. package/dist/shift-components/{p-Dkfzp2fH.js → p-Dvl1mJ6N.js} +1 -1
  333. package/dist/shift-components/{p-CAlGd4kD.js → p-DwFWMVcD.js} +1 -1
  334. package/dist/shift-components/{p-6CGlGx2z.js → p-FFH7sR1n.js} +1 -1
  335. package/dist/shift-components/p-a4086c90.entry.js +5 -0
  336. package/dist/shift-components/p-a55ceb19.entry.js +5 -0
  337. package/dist/shift-components/p-b611f72e.entry.js +5 -0
  338. package/dist/shift-components/p-bc966aa0.entry.js +5 -0
  339. package/dist/shift-components/p-d33c83ac.entry.js +5 -0
  340. package/dist/shift-components/p-e979caa9.entry.js +5 -0
  341. package/dist/shift-components/p-fa39d151.entry.js +5 -0
  342. package/dist/shift-components/p-fe7ece41.entry.js +5 -0
  343. package/dist/shift-components/{p-BPBFbh5T.js → p-rsylYLbj.js} +1 -1
  344. package/dist/shift-components/p-yhCrSkom.js +5 -0
  345. package/dist/shift-components/shift-components.esm.js +1 -1
  346. package/dist/stencil-docs.d.ts +37 -0
  347. package/dist/stencil-docs.json +552 -434
  348. package/dist/types/components/components/shift-select.d.ts +1 -1
  349. package/dist/types/components/form-elements/form-file.d.ts +3 -0
  350. package/dist/types/components/part-lookup/part-lookup.d.ts +1 -1
  351. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +1 -1
  352. package/dist/types/components.d.ts +675 -122
  353. package/dist/types/features/multi-lingual/types.d.ts +4 -4
  354. package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +2 -0
  355. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-menu-dto.d.ts +9 -0
  356. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-menu-line-dto.d.ts +25 -0
  357. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-menu-part-dto.d.ts +8 -0
  358. package/dist/types/locales/forms/type.d.ts +4 -4
  359. package/dist/types/locales/partLookup/distributor/type.d.ts +8 -8
  360. package/dist/types/locales/partLookup/manufacturer/type.d.ts +6 -6
  361. package/dist/types/locales/partLookup/wrapper-type.d.ts +14 -14
  362. package/dist/types/locales/vehicleLookup/accessories/type.d.ts +6 -6
  363. package/dist/types/locales/vehicleLookup/claimableItems/type.d.ts +10 -10
  364. package/dist/types/locales/vehicleLookup/paintThickness/type.d.ts +8 -8
  365. package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +4 -4
  366. package/dist/types/locales/vehicleLookup/warranty/type.d.ts +4 -4
  367. package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +28 -28
  368. package/dist/types/stencil-public-runtime.d.ts +158 -6
  369. package/package.json +11 -3
  370. package/dist/cjs/arrow-icon-ZTqfmBmE.js +0 -12
  371. package/dist/cjs/arrow-up-icon-eGUQ8IBP.js +0 -12
  372. package/dist/cjs/calendar-days-icon-Ugslrikt.js +0 -21
  373. package/dist/cjs/qr-code-scan-DIO-qSdh.js +0 -22
  374. package/dist/cjs/vehicle-info-layout-DSEDx5Ah.js +0 -17
  375. package/dist/components/p-29N0dbLz.js +0 -5
  376. package/dist/components/p-5xxH8tbS.js +0 -5
  377. package/dist/components/p-9i0_UJRs.js +0 -5
  378. package/dist/components/p-9t4GxAn6.js +0 -5
  379. package/dist/components/p-B0q_TtAs.js +0 -5
  380. package/dist/components/p-B3GZNjni.js +0 -5
  381. package/dist/components/p-B82T4Hkf.js +0 -5
  382. package/dist/components/p-B9UMGz5l.js +0 -5
  383. package/dist/components/p-BKEmXOAB.js +0 -5
  384. package/dist/components/p-BO45PIaz.js +0 -5
  385. package/dist/components/p-BYUpn8lm.js +0 -5
  386. package/dist/components/p-Bl19uBGg.js +0 -5
  387. package/dist/components/p-ByVBkYAW.js +0 -5
  388. package/dist/components/p-Bz6DMlPf.js +0 -5
  389. package/dist/components/p-C9ZOfr_w.js +0 -5
  390. package/dist/components/p-CAz4JeZW.js +0 -5
  391. package/dist/components/p-CDSPKvU1.js +0 -5
  392. package/dist/components/p-CJ9S-Asv.js +0 -5
  393. package/dist/components/p-CJnc-a42.js +0 -5
  394. package/dist/components/p-CSgwIdIr.js +0 -5
  395. package/dist/components/p-C_8HkL6G.js +0 -5
  396. package/dist/components/p-C_IRqEhE.js +0 -5
  397. package/dist/components/p-CeGDfcYR.js +0 -5
  398. package/dist/components/p-CeJEEQYu.js +0 -5
  399. package/dist/components/p-Cnkkomtx.js +0 -5
  400. package/dist/components/p-D8rN5WIR.js +0 -5
  401. package/dist/components/p-DLCfMh59.js +0 -5
  402. package/dist/components/p-DT4kh-pu.js +0 -5
  403. package/dist/components/p-DeN_jzI1.js +0 -5
  404. package/dist/components/p-DwIMCfpC.js +0 -5
  405. package/dist/components/p-PCwMfpZi.js +0 -5
  406. package/dist/components/p-VimEBeIa.js +0 -5
  407. package/dist/components/p-Ycq41Fdn.js +0 -5
  408. package/dist/components/p-a7ph9yIa.js +0 -5
  409. package/dist/components/p-aQWi8aKM.js +0 -5
  410. package/dist/components/p-ecmObcUU.js +0 -5
  411. package/dist/components/p-k759Go4_.js +0 -5
  412. package/dist/components/p-ywf-N3VN.js +0 -5
  413. package/dist/esm/app-globals-iQ64oiU-.js +0 -9
  414. package/dist/esm/arrow-icon-CpbG2bMD.js +0 -10
  415. package/dist/esm/arrow-up-icon-CSgSH4zF.js +0 -10
  416. package/dist/esm/calendar-days-icon-FhJhuU8S.js +0 -19
  417. package/dist/esm/qr-code-scan-DUAfaPLZ.js +0 -20
  418. package/dist/esm/vehicle-info-layout-iwnuxQFr.js +0 -15
  419. package/dist/shift-components/p-1f9c801c.entry.js +0 -5
  420. package/dist/shift-components/p-33484b98.entry.js +0 -5
  421. package/dist/shift-components/p-37f0d7f7.entry.js +0 -5
  422. package/dist/shift-components/p-40f0ba9e.entry.js +0 -5
  423. package/dist/shift-components/p-4f20eeac.entry.js +0 -5
  424. package/dist/shift-components/p-5936fb9c.entry.js +0 -5
  425. package/dist/shift-components/p-5b7d5e05.entry.js +0 -5
  426. package/dist/shift-components/p-5ce6a1c0.entry.js +0 -5
  427. package/dist/shift-components/p-62f175f2.entry.js +0 -5
  428. package/dist/shift-components/p-67e9a531.entry.js +0 -5
  429. package/dist/shift-components/p-6e65d13b.entry.js +0 -5
  430. package/dist/shift-components/p-74eed800.entry.js +0 -5
  431. package/dist/shift-components/p-8c30b865.entry.js +0 -5
  432. package/dist/shift-components/p-B03BLbR_.js +0 -5
  433. package/dist/shift-components/p-B8VkFyfR.js +0 -5
  434. package/dist/shift-components/p-CJnc-a42.js +0 -5
  435. package/dist/shift-components/p-DI7VJflN.js +0 -5
  436. package/dist/shift-components/p-a0137183.entry.js +0 -5
  437. package/dist/shift-components/p-a08944e6.entry.js +0 -5
  438. package/dist/shift-components/p-a8693d7c.entry.js +0 -5
  439. package/dist/shift-components/p-abc043a4.entry.js +0 -5
  440. package/dist/shift-components/p-aeb00243.entry.js +0 -5
  441. package/dist/shift-components/p-b717911c.entry.js +0 -5
  442. package/dist/shift-components/p-c9608074.entry.js +0 -5
  443. package/dist/shift-components/p-d8f10684.entry.js +0 -5
  444. package/dist/shift-components/p-dc1a4f60.entry.js +0 -5
  445. package/dist/shift-components/p-dd24ce5f.entry.js +0 -5
  446. package/dist/shift-components/p-e797e560.entry.js +0 -5
  447. package/dist/shift-components/p-f155c990.entry.js +0 -5
  448. package/dist/shift-components/p-jNkxdTjc.js +0 -6
  449. package/dist/shift-components/p-jnXfhMAx.js +0 -5
  450. package/dist/shift-components/p-zUjGUnSs.js +0 -5
  451. /package/dist/components/{p-DN4c_zdE.js → p-5NIYyHI-.js} +0 -0
  452. /package/dist/components/{p-Cgt5s_xn.js → p-B6xZ__mT.js} +0 -0
  453. /package/dist/components/{p-DHfdaMCZ.js → p-BA1Id0rV.js} +0 -0
  454. /package/dist/components/{p-C1xgsXlk.js → p-BacLEn39.js} +0 -0
  455. /package/dist/components/{p-JSG4fAIl.js → p-BcYtRtiU.js} +0 -0
  456. /package/dist/components/{p-BG8YXzND.js → p-ByNlQjpu.js} +0 -0
  457. /package/dist/components/{p-BMqwfA7R.js → p-ByRA9Jio.js} +0 -0
  458. /package/dist/components/{p-BlqCKH24.js → p-BzsXkZqy.js} +0 -0
  459. /package/dist/components/{p-iTJ5pT2w.js → p-CILGkcfa.js} +0 -0
  460. /package/dist/components/{p-BHy4oEqB.js → p-CLdijNKL.js} +0 -0
  461. /package/dist/components/{p-8u5uhwdg.js → p-D9mmIizU.js} +0 -0
  462. /package/dist/components/{p-uiE7emGF.js → p-DRhkO-Ac.js} +0 -0
  463. /package/dist/components/{p-Co_hK-X8.js → p-D_ukwEEB.js} +0 -0
  464. /package/dist/components/{p-piZ41_ho.js → p-Df4xlD1R.js} +0 -0
  465. /package/dist/components/{p-Ce4X3l8Z.js → p-MGQ2O9as.js} +0 -0
  466. /package/dist/components/{p-pnQgLSsX.js → p-_nGOa2Au.js} +0 -0
  467. /package/dist/components/{p-ClpSwIg-.js → p-d7wdNFwt.js} +0 -0
@@ -26,7 +26,11 @@ export class FormFile {
26
26
  this.openFilePicker = () => {
27
27
  if (!this.fileInput)
28
28
  return;
29
- this.reset(); // clears old file + state
29
+ // Only clear the input value, so re-picking the same file still fires a change event.
30
+ // Visible state is left alone until a file actually arrives — clearing it here would
31
+ // swap the upload failure for a "required" error while the picker is still open, and
32
+ // would wipe a valid selection if the user cancels.
33
+ this.fileInput.value = '';
30
34
  this.fileInput.click();
31
35
  };
32
36
  this.handleFileChange = async (event) => {
@@ -43,7 +47,17 @@ export class FormFile {
43
47
  try {
44
48
  if (this.signUrl) {
45
49
  const signedFiles = await this.requestSignedUpload(limited);
46
- this.form.pendingRequests[this.name] = async () => await this.uploadToSignedUrl(limited, signedFiles);
50
+ this.form.pendingRequests[this.name] = async () => {
51
+ try {
52
+ await this.uploadToSignedUrl(limited, signedFiles);
53
+ }
54
+ catch (error) {
55
+ console.error(error);
56
+ this.setUploadError(error);
57
+ this.form.rerender({ inputName: this.name, rerenderForm: true });
58
+ throw error;
59
+ }
60
+ };
47
61
  }
48
62
  this.uploadState = 'success';
49
63
  this.syncValue([...limited]);
@@ -51,16 +65,9 @@ export class FormFile {
51
65
  target.files = dataTransfer.files;
52
66
  }
53
67
  catch (error) {
54
- this.sasFiles = [];
55
68
  console.error(error);
56
69
  target.files = dataTransfer.files;
57
- const [locale, language] = this.form.getFormLocale();
58
- this.uploadState = 'error';
59
- this.failedText = this.getFailureText(locale, language);
60
- this.syncValue();
61
- // @ts-ignore
62
- if (this.fileInput)
63
- this.fileInput.value = [];
70
+ this.setUploadError(error);
64
71
  }
65
72
  finally {
66
73
  this.stopGlobalLoading();
@@ -120,10 +127,13 @@ export class FormFile {
120
127
  this.form.unsubscribe(this.name);
121
128
  }
122
129
  reset() {
130
+ var _a, _b;
123
131
  this.stopGlobalLoading();
124
132
  if (this.fileInput)
125
133
  this.fileInput.value = '';
134
+ (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.pendingRequests) === null || _b === void 0 ? true : delete _b[this.name];
126
135
  this.fileName = '';
136
+ this.failedText = '';
127
137
  this.uploadState = 'idle';
128
138
  }
129
139
  startGlobalLoading() {
@@ -153,6 +163,51 @@ export class FormFile {
153
163
  var _a, _b, _c, _d;
154
164
  return ((_b = (_a = this.localization) === null || _a === void 0 ? void 0 : _a[language]) === null || _b === void 0 ? void 0 : _b.failure) || ((_d = (_c = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d.wildCard) || 'Upload failed. Please try again.';
155
165
  }
166
+ // Tagged so setUploadError knows the text came from the server and is safe to show,
167
+ // unlike a network-level "Failed to fetch".
168
+ async responseError(response) {
169
+ const error = new Error(await this.getResponseError(response));
170
+ error.fromServer = true;
171
+ return error;
172
+ }
173
+ async getResponseError(response) {
174
+ var _a, _b, _c, _d, _e;
175
+ const [locale, language] = this.form.getFormLocale();
176
+ const fallback = this.getFailureText(locale, language);
177
+ const raw = await response.text().catch(() => '');
178
+ if (!raw.trim())
179
+ return fallback;
180
+ const contentType = response.headers.get('content-type') || '';
181
+ if (contentType.includes('json') || raw.trimStart().startsWith('{')) {
182
+ try {
183
+ const parsed = JSON.parse(raw);
184
+ const message = (_a = parsed === null || parsed === void 0 ? void 0 : parsed.message) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.Message;
185
+ const text = (_d = (_c = (_b = message === null || message === void 0 ? void 0 : message.body) !== null && _b !== void 0 ? _b : message === null || message === void 0 ? void 0 : message.Body) !== null && _c !== void 0 ? _c : message === null || message === void 0 ? void 0 : message.title) !== null && _d !== void 0 ? _d : message === null || message === void 0 ? void 0 : message.Title;
186
+ if (typeof text === 'string' && text.trim())
187
+ return text.trim();
188
+ }
189
+ catch (_f) {
190
+ // fall through to the localized fallback
191
+ }
192
+ return fallback;
193
+ }
194
+ // Blob storage answers with XML: <Error><Code>..</Code><Message>..</Message></Error>
195
+ const xmlMessage = (_e = raw.match(/<Message>([\s\S]*?)<\/Message>/)) === null || _e === void 0 ? void 0 : _e[1];
196
+ const text = (xmlMessage || raw).trim().split('\n')[0].trim();
197
+ return text && text.length <= 300 ? text : fallback;
198
+ }
199
+ setUploadError(error) {
200
+ var _a, _b;
201
+ const [locale, language] = this.form.getFormLocale();
202
+ const message = typeof error === 'string' ? error : (error === null || error === void 0 ? void 0 : error.fromServer) ? error === null || error === void 0 ? void 0 : error.message : '';
203
+ (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.pendingRequests) === null || _b === void 0 ? true : delete _b[this.name];
204
+ this.sasFiles = [];
205
+ this.uploadState = 'error';
206
+ this.failedText = (message === null || message === void 0 ? void 0 : message.trim()) || this.getFailureText(locale, language);
207
+ this.syncValue();
208
+ if (this.fileInput)
209
+ this.fileInput.value = '';
210
+ }
156
211
  matchesAccept(value) {
157
212
  var _a;
158
213
  if (!this.accept)
@@ -184,12 +239,16 @@ export class FormFile {
184
239
  const resolved = (value === null || value === void 0 ? void 0 : value[0]) || '';
185
240
  this.fileName = typeof resolved === 'string' ? resolved : resolved === null || resolved === void 0 ? void 0 : resolved.name;
186
241
  // @ts-ignore
187
- (_a = this.form) === null || _a === void 0 ? void 0 : _a.validateForm(this.name, !!value ? value : [], false);
242
+ (_a = this.form) === null || _a === void 0 ? void 0 : _a.validateForm(this.name, value ? value : [], false);
188
243
  (_b = this.form) === null || _b === void 0 ? void 0 : _b.rerender({ inputName: this.name, rerenderForm: true });
189
244
  }
190
245
  async requestSignedUpload(files) {
191
246
  var _a, _b, _c;
192
- const formHeaders = { 'Content-Type': 'application/json' };
247
+ const [, language] = this.form.getFormLocale();
248
+ // Send an explicit single-value Accept-Language, matching every other backend call.
249
+ // Left unset, the browser sends its own weighted header (`en-US,en;q=0.9`) whenever more
250
+ // than one language is configured, which the backend cannot parse.
251
+ const formHeaders = { 'Content-Type': 'application/json', 'Accept-Language': language || 'en' };
193
252
  const recaptchaKey = (_c = (_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.context.structure) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.recaptchaKey;
194
253
  if (grecaptcha && recaptchaKey) {
195
254
  const token = await grecaptcha.execute(recaptchaKey, { action: 'submit' });
@@ -211,7 +270,7 @@ export class FormFile {
211
270
  method: this.signMethod || 'POST',
212
271
  });
213
272
  if (!response.ok)
214
- throw new Error('Failed to get signed upload URL');
273
+ throw await this.responseError(response);
215
274
  const json = await response.json();
216
275
  const list = (json === null || json === void 0 ? void 0 : json.entity) || (json === null || json === void 0 ? void 0 : json.Entity) || json;
217
276
  const arr = Array.isArray(list) ? list : Array.isArray(json) ? json : [];
@@ -233,21 +292,16 @@ export class FormFile {
233
292
  return signedFiles;
234
293
  }
235
294
  async uploadToSignedUrl(files, signedFiles) {
236
- files === null || files === void 0 ? void 0 : files.forEach(async (file, idx) => {
295
+ await Promise.all((files || []).map(async (file, idx) => {
237
296
  var _a, _b;
238
- try {
239
- const response = await fetch((_a = signedFiles === null || signedFiles === void 0 ? void 0 : signedFiles[idx]) === null || _a === void 0 ? void 0 : _a.uploadUrl, {
240
- method: 'PUT',
241
- headers: Object.assign({ 'Content-Type': file.type || 'application/octet-stream', 'x-ms-blob-type': 'BlockBlob' }, (_b = signedFiles === null || signedFiles === void 0 ? void 0 : signedFiles[idx]) === null || _b === void 0 ? void 0 : _b.headers),
242
- body: file,
243
- });
244
- if (!response.ok)
245
- console.error(response);
246
- }
247
- catch (error) {
248
- console.error(error);
249
- }
250
- });
297
+ const response = await fetch((_a = signedFiles === null || signedFiles === void 0 ? void 0 : signedFiles[idx]) === null || _a === void 0 ? void 0 : _a.uploadUrl, {
298
+ method: 'PUT',
299
+ headers: Object.assign({ 'Content-Type': file.type || 'application/octet-stream', 'x-ms-blob-type': 'BlockBlob' }, (_b = signedFiles === null || signedFiles === void 0 ? void 0 : signedFiles[idx]) === null || _b === void 0 ? void 0 : _b.headers),
300
+ body: file,
301
+ });
302
+ if (!response.ok)
303
+ throw await this.responseError(response);
304
+ }));
251
305
  }
252
306
  render() {
253
307
  const { disabled, isRequired, meta, isError, errorMessage } = this.form.getInputState(this.name);
@@ -259,11 +313,11 @@ export class FormFile {
259
313
  const isErrorState = this.uploadState !== 'uploading' && (!!this.failedText || isError);
260
314
  // @ts-ignore
261
315
  window === null || window === void 0 ? void 0 : window.s = this.form;
262
- return (h(Host, { key: '01a336807102ac05f2d56b86fba4ffc07b7204bb', translate: "no" }, h("label", { key: 'c0dc4c48ffa9e536accbdc6bc4620e6a2c4ef4a9', part: `form-file ${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: disableInput }) }, h(FormInputLabel, { key: '757b0effce444d8df8993404a7a62a75cef3996e', name: this.name, isRequired: isRequired, label: label }), h("div", { key: 'b5d63a30ccd687d0ff7e79da1968a9d0a2324cf7', part: `${this.name}-container form-input-container`, class: cn('form-input-container') }, h("input", { key: 'f80697792482c72df360cdcd1e0b82a0ffbe0dfb', type: "file", name: this.name, accept: this.accept, disabled: disableInput, multiple: this.maxUpload > 1, onChange: this.handleFileChange, part: `${this.name}-file-input form-file-input`, class: cn('form-file-input', `${partKeyPrefix}${this.name}-input`) }), h("button", { key: '92b1a144940f796246a6c9a61fd71d68ef565bf0', type: "button", disabled: disableInput, onClick: this.openFilePicker, part: `${this.name}-file-trigger form-file-trigger form-input`, title: showSpinner ? this.getLoadingText(locale, language) : displayText, class: cn('form-file-trigger form-input-style', {
316
+ return (h(Host, { key: '2e6fff41c02c74c27bdf7090d1db741d2d2d1f3f', translate: "no" }, h("label", { key: 'd223e629794d4c3006733ec9b34e2c6fe1227319', part: `form-file ${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: disableInput }) }, h(FormInputLabel, { key: '4584e81d3f039b241a3926cdc31937a2a6932d27', name: this.name, isRequired: isRequired, label: label }), h("div", { key: '2eb0dec1c916ee2268f6e6e2f121777b688861b8', part: `${this.name}-container form-input-container`, class: cn('form-input-container') }, h("input", { key: 'a2fc3290827b89875f50ef5664d21e96473badbc', type: "file", name: this.name, accept: this.accept, disabled: disableInput, multiple: this.maxUpload > 1, onChange: this.handleFileChange, part: `${this.name}-file-input form-file-input`, class: cn('form-file-input', `${partKeyPrefix}${this.name}-input`) }), h("button", { key: '38b6b6b841981077cca8e252d76adeeed6af826f', type: "button", disabled: disableInput, onClick: this.openFilePicker, part: `${this.name}-file-trigger form-file-trigger form-input`, title: showSpinner ? this.getLoadingText(locale, language) : displayText, class: cn('form-file-trigger form-input-style', {
263
317
  'form-input-error-style': isErrorState,
264
318
  'form-file-trigger-loading': showSpinner,
265
319
  'form-file-trigger-success': this.uploadState === 'success',
266
- }) }, h("span", { key: 'd3c43e9a9cc883cea8db1c229097764807f2f92d', part: `${this.name}-file-text form-file-text`, class: "form-file-text" }, showSpinner ? this.getLoadingText(locale, language) : displayText), h("span", { key: 'fe69569c57c3597260d256f95f9e163aca239046', part: `${this.name}-file-icon form-file-icon`, class: "form-file-icon" }, showSpinner && h(LoaderIcon, { key: 'c93782e7a6057e02e43b013a6609a122724af446', class: "form-file-spinner" }), !showSpinner && this.uploadState === 'success' && h(TickIcon, { key: 'dba3e6c5d0767007fb011b33e9f6c262041d6bcc', class: "form-file-success-icon" })))), h(FormErrorMessage, { key: 'c70a8614a3d2b1c9416caee665007f33bc530e50', name: this.name, isError: isErrorState, errorMessage: this.failedText || errorTextMessage }))));
320
+ }) }, h("span", { key: '0eb7c3f4b5c1fee1b26fc2f12c5858bd7594eead', part: `${this.name}-file-text form-file-text`, class: "form-file-text" }, showSpinner ? this.getLoadingText(locale, language) : displayText), h("span", { key: 'f0b0d94b7d9016566d2ad06459fbe787fca31f6b', part: `${this.name}-file-icon form-file-icon`, class: "form-file-icon" }, showSpinner && h(LoaderIcon, { key: 'f8f0e6fd9df60dc092c00ee7ad4a9552df5c02cc', class: "form-file-spinner" }), !showSpinner && this.uploadState === 'success' && h(TickIcon, { key: '1ab155ccc1383f9d5c77f966b50b9945ba84a82e', class: "form-file-success-icon" })))), h(FormErrorMessage, { key: '69689beddd7f5da29c99c410922fa589d8f849be', name: this.name, isError: isErrorState, errorMessage: this.failedText || errorTextMessage }))));
267
321
  }
268
322
  static get is() { return "form-file"; }
269
323
  static get originalStyleUrls() {
@@ -280,7 +334,6 @@ export class FormFile {
280
334
  return {
281
335
  "name": {
282
336
  "type": "string",
283
- "attribute": "name",
284
337
  "mutable": false,
285
338
  "complexType": {
286
339
  "original": "string",
@@ -295,11 +348,11 @@ export class FormFile {
295
348
  },
296
349
  "getter": false,
297
350
  "setter": false,
298
- "reflect": false
351
+ "reflect": false,
352
+ "attribute": "name"
299
353
  },
300
354
  "wrapperId": {
301
355
  "type": "string",
302
- "attribute": "wrapper-id",
303
356
  "mutable": false,
304
357
  "complexType": {
305
358
  "original": "string",
@@ -314,11 +367,11 @@ export class FormFile {
314
367
  },
315
368
  "getter": false,
316
369
  "setter": false,
317
- "reflect": false
370
+ "reflect": false,
371
+ "attribute": "wrapper-id"
318
372
  },
319
373
  "form": {
320
374
  "type": "unknown",
321
- "attribute": "form",
322
375
  "mutable": false,
323
376
  "complexType": {
324
377
  "original": "FormHook<any>",
@@ -327,7 +380,8 @@ export class FormFile {
327
380
  "FormHook": {
328
381
  "location": "import",
329
382
  "path": "~features/form-hook",
330
- "id": "src/features/form-hook/index.ts::FormHook"
383
+ "id": "src/features/form-hook/index.ts::FormHook",
384
+ "referenceLocation": "FormHook"
331
385
  }
332
386
  }
333
387
  },
@@ -342,7 +396,6 @@ export class FormFile {
342
396
  },
343
397
  "isLoading": {
344
398
  "type": "boolean",
345
- "attribute": "is-loading",
346
399
  "mutable": false,
347
400
  "complexType": {
348
401
  "original": "boolean",
@@ -357,11 +410,11 @@ export class FormFile {
357
410
  },
358
411
  "getter": false,
359
412
  "setter": false,
360
- "reflect": false
413
+ "reflect": false,
414
+ "attribute": "is-loading"
361
415
  },
362
416
  "wrapperClass": {
363
417
  "type": "string",
364
- "attribute": "wrapper-class",
365
418
  "mutable": false,
366
419
  "complexType": {
367
420
  "original": "string",
@@ -376,11 +429,11 @@ export class FormFile {
376
429
  },
377
430
  "getter": false,
378
431
  "setter": false,
379
- "reflect": false
432
+ "reflect": false,
433
+ "attribute": "wrapper-class"
380
434
  },
381
435
  "isDisabled": {
382
436
  "type": "boolean",
383
- "attribute": "is-disabled",
384
437
  "mutable": false,
385
438
  "complexType": {
386
439
  "original": "boolean",
@@ -395,11 +448,11 @@ export class FormFile {
395
448
  },
396
449
  "getter": false,
397
450
  "setter": false,
398
- "reflect": false
451
+ "reflect": false,
452
+ "attribute": "is-disabled"
399
453
  },
400
454
  "accept": {
401
455
  "type": "string",
402
- "attribute": "accept",
403
456
  "mutable": false,
404
457
  "complexType": {
405
458
  "original": "string",
@@ -414,11 +467,11 @@ export class FormFile {
414
467
  },
415
468
  "getter": false,
416
469
  "setter": false,
417
- "reflect": false
470
+ "reflect": false,
471
+ "attribute": "accept"
418
472
  },
419
473
  "maxSize": {
420
474
  "type": "number",
421
- "attribute": "max-size",
422
475
  "mutable": false,
423
476
  "complexType": {
424
477
  "original": "number",
@@ -433,11 +486,11 @@ export class FormFile {
433
486
  },
434
487
  "getter": false,
435
488
  "setter": false,
436
- "reflect": false
489
+ "reflect": false,
490
+ "attribute": "max-size"
437
491
  },
438
492
  "required": {
439
493
  "type": "boolean",
440
- "attribute": "required",
441
494
  "mutable": false,
442
495
  "complexType": {
443
496
  "original": "boolean",
@@ -452,11 +505,11 @@ export class FormFile {
452
505
  },
453
506
  "getter": false,
454
507
  "setter": false,
455
- "reflect": false
508
+ "reflect": false,
509
+ "attribute": "required"
456
510
  },
457
511
  "signUrl": {
458
512
  "type": "string",
459
- "attribute": "sign-url",
460
513
  "mutable": false,
461
514
  "complexType": {
462
515
  "original": "string",
@@ -471,11 +524,11 @@ export class FormFile {
471
524
  },
472
525
  "getter": false,
473
526
  "setter": false,
474
- "reflect": false
527
+ "reflect": false,
528
+ "attribute": "sign-url"
475
529
  },
476
530
  "maxUpload": {
477
531
  "type": "number",
478
- "attribute": "max-upload",
479
532
  "mutable": false,
480
533
  "complexType": {
481
534
  "original": "number",
@@ -491,11 +544,11 @@ export class FormFile {
491
544
  "getter": false,
492
545
  "setter": false,
493
546
  "reflect": false,
547
+ "attribute": "max-upload",
494
548
  "defaultValue": "1"
495
549
  },
496
550
  "signMethod": {
497
551
  "type": "string",
498
- "attribute": "sign-method",
499
552
  "mutable": false,
500
553
  "complexType": {
501
554
  "original": "'POST' | 'PUT'",
@@ -511,11 +564,11 @@ export class FormFile {
511
564
  "getter": false,
512
565
  "setter": false,
513
566
  "reflect": false,
567
+ "attribute": "sign-method",
514
568
  "defaultValue": "'POST'"
515
569
  },
516
570
  "signPrefix": {
517
571
  "type": "string",
518
- "attribute": "sign-prefix",
519
572
  "mutable": false,
520
573
  "complexType": {
521
574
  "original": "string",
@@ -530,11 +583,11 @@ export class FormFile {
530
583
  },
531
584
  "getter": false,
532
585
  "setter": false,
533
- "reflect": false
586
+ "reflect": false,
587
+ "attribute": "sign-prefix"
534
588
  },
535
589
  "accountName": {
536
590
  "type": "string",
537
- "attribute": "account-name",
538
591
  "mutable": false,
539
592
  "complexType": {
540
593
  "original": "string",
@@ -549,11 +602,11 @@ export class FormFile {
549
602
  },
550
603
  "getter": false,
551
604
  "setter": false,
552
- "reflect": false
605
+ "reflect": false,
606
+ "attribute": "account-name"
553
607
  },
554
608
  "containerName": {
555
609
  "type": "string",
556
- "attribute": "container-name",
557
610
  "mutable": false,
558
611
  "complexType": {
559
612
  "original": "string",
@@ -568,20 +621,21 @@ export class FormFile {
568
621
  },
569
622
  "getter": false,
570
623
  "setter": false,
571
- "reflect": false
624
+ "reflect": false,
625
+ "attribute": "container-name"
572
626
  },
573
627
  "localization": {
574
628
  "type": "unknown",
575
- "attribute": "localization",
576
629
  "mutable": false,
577
630
  "complexType": {
578
631
  "original": "FormInputLocalization<{\n uploading?: string;\n upload?: string;\n failure?: string;\n success?: string;\n }>",
579
- "resolved": "{ [lang: string]: { label?: string; placeholder?: string; require?: string; format?: string; minMessage: string; maxMessage: string; betweenMessage: string; } & { uploading?: string; upload?: string; failure?: string; success?: string; }; }",
632
+ "resolved": "{ uploading?: string; upload?: string; failure?: string; success?: string; }",
580
633
  "references": {
581
634
  "FormInputLocalization": {
582
635
  "location": "import",
583
636
  "path": "~features/form-hook",
584
- "id": "src/features/form-hook/index.ts::FormInputLocalization"
637
+ "id": "src/features/form-hook/index.ts::FormInputLocalization",
638
+ "referenceLocation": "FormInputLocalization"
585
639
  }
586
640
  }
587
641
  },
@@ -48,7 +48,6 @@ export class FormStepper {
48
48
  return {
49
49
  "name": {
50
50
  "type": "string",
51
- "attribute": "name",
52
51
  "mutable": false,
53
52
  "complexType": {
54
53
  "original": "string",
@@ -63,11 +62,11 @@ export class FormStepper {
63
62
  },
64
63
  "getter": false,
65
64
  "setter": false,
66
- "reflect": false
65
+ "reflect": false,
66
+ "attribute": "name"
67
67
  },
68
68
  "props": {
69
69
  "type": "any",
70
- "attribute": "props",
71
70
  "mutable": false,
72
71
  "complexType": {
73
72
  "original": "any",
@@ -83,11 +82,11 @@ export class FormStepper {
83
82
  "getter": false,
84
83
  "setter": false,
85
84
  "reflect": false,
85
+ "attribute": "props",
86
86
  "defaultValue": "{}"
87
87
  },
88
88
  "form": {
89
89
  "type": "unknown",
90
- "attribute": "form",
91
90
  "mutable": false,
92
91
  "complexType": {
93
92
  "original": "FormHook<any>",
@@ -96,7 +95,8 @@ export class FormStepper {
96
95
  "FormHook": {
97
96
  "location": "import",
98
97
  "path": "~features/form-hook",
99
- "id": "src/features/form-hook/index.ts::FormHook"
98
+ "id": "src/features/form-hook/index.ts::FormHook",
99
+ "referenceLocation": "FormHook"
100
100
  }
101
101
  }
102
102
  },
@@ -111,16 +111,16 @@ export class FormStepper {
111
111
  },
112
112
  "localization": {
113
113
  "type": "unknown",
114
- "attribute": "localization",
115
114
  "mutable": false,
116
115
  "complexType": {
117
116
  "original": "FormInputLocalization<{ value?: string }>",
118
- "resolved": "{ [lang: string]: { label?: string; placeholder?: string; require?: string; format?: string; minMessage: string; maxMessage: string; betweenMessage: string; } & { value?: string; }; }",
117
+ "resolved": "{ value?: string; }",
119
118
  "references": {
120
119
  "FormInputLocalization": {
121
120
  "location": "import",
122
121
  "path": "~features/form-hook",
123
- "id": "src/features/form-hook/index.ts::FormInputLocalization"
122
+ "id": "src/features/form-hook/index.ts::FormInputLocalization",
123
+ "referenceLocation": "FormInputLocalization"
124
124
  }
125
125
  }
126
126
  },