adp-web-components 0.1.85 → 0.1.87

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 (307) hide show
  1. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +5 -5
  2. package/dist/cjs/flexible-container.cjs.entry.js +1 -1
  3. package/dist/cjs/form-checkbox.cjs.entry.js +4 -4
  4. package/dist/cjs/form-date-picker.cjs.entry.js +5 -5
  5. package/dist/cjs/form-dialog_13.cjs.entry.js +4558 -30
  6. package/dist/cjs/{form-input-CfVsbpFP.js → form-input-cvIkC0L1.js} +1 -1
  7. package/dist/cjs/form-input_5.cjs.entry.js +356 -0
  8. package/dist/cjs/form-switch.cjs.entry.js +3 -3
  9. package/dist/cjs/form-time-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/functions-B8zuvn0I.js +298 -0
  11. package/dist/cjs/general-form.cjs.entry.js +19 -20
  12. package/dist/cjs/general-inquiry-form.cjs.entry.js +19 -20
  13. package/dist/cjs/{get-language-from-url-DoohcPbK.js → get-language-from-url-Ct6kvnEu.js} +8 -5
  14. package/dist/cjs/{get-local-language-DgXjQalC.js → get-local-language-DgKmTOw3.js} +1 -1
  15. package/dist/cjs/{get-mock-files-bJFu7gKO.js → get-mock-files-B0LOwG9Y.js} +1 -1
  16. package/dist/cjs/information-table.cjs.entry.js +1 -1
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  19. package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
  20. package/dist/cjs/{state-object-B3gJgyPV.js → mappers-C82gH1dw.js} +1 -11
  21. package/dist/cjs/part-lookup.cjs.entry.js +2 -2
  22. package/dist/cjs/service-booking-form.cjs.entry.js +19 -20
  23. package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
  24. package/dist/cjs/shift-components.cjs.js +1 -1
  25. package/dist/cjs/shift-slider.cjs.entry.js +1 -1
  26. package/dist/cjs/shift-switch.cjs.entry.js +1 -1
  27. package/dist/cjs/shift-tab-content.cjs.entry.js +2 -2
  28. package/dist/cjs/shift-tabs_2.cjs.entry.js +4 -4
  29. package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -20
  30. package/dist/cjs/test-drive-form.cjs.entry.js +19 -20
  31. package/dist/cjs/{validation-BAHdEc4w.js → validation-jJwLyk27.js} +1 -7
  32. package/dist/cjs/vehicle-accessories_7.cjs.entry.js +8 -8
  33. package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
  34. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +22 -31
  35. package/dist/cjs/{white-loader-kSznMo_u.js → white-loader-D6sR0fOI.js} +3 -1
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/components/flexible-container.css +1 -1
  38. package/dist/collection/components/components/information-table.css +1 -1
  39. package/dist/collection/components/components/loading-spinner.css +1 -1
  40. package/dist/collection/components/components/shift-accordion.css +1 -1
  41. package/dist/collection/components/components/shift-select.css +1 -0
  42. package/dist/collection/components/components/shift-select.js +568 -0
  43. package/dist/collection/components/components/shift-slider.js +1 -1
  44. package/dist/collection/components/components/shift-switch.js +1 -1
  45. package/dist/collection/components/components/shift-tab-content.css +1 -1
  46. package/dist/collection/components/components/shift-tab-content.js +1 -1
  47. package/dist/collection/components/components/shift-tabs.css +1 -1
  48. package/dist/collection/components/components/shift-tabs.js +2 -2
  49. package/dist/collection/components/form-elements/components/form-input-prefix.js +3 -1
  50. package/dist/collection/components/form-elements/form-checkbox.js +1 -1
  51. package/dist/collection/components/form-elements/form-date-picker-legacy.js +4 -4
  52. package/dist/collection/components/form-elements/form-dialog.js +3 -3
  53. package/dist/collection/components/form-elements/form-file.js +2 -2
  54. package/dist/collection/components/form-elements/form-input.js +2 -2
  55. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  56. package/dist/collection/components/form-elements/form-phone-number.js +130 -30
  57. package/dist/collection/components/form-elements/form-select.js +11 -72
  58. package/dist/collection/components/forms/defaults/mappers.js +1 -7
  59. package/dist/collection/components/forms/defaults/style.css +1 -1
  60. package/dist/collection/components/forms/defaults/validation.js +1 -7
  61. package/dist/collection/components/forms/general-form.js +4 -6
  62. package/dist/collection/components/forms/general-inquiry.js +4 -6
  63. package/dist/collection/components/forms/service-booking.js +4 -6
  64. package/dist/collection/components/forms/ssc-lookup.js +4 -6
  65. package/dist/collection/components/forms/test-drive.js +4 -6
  66. package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +1 -8
  67. package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
  68. package/dist/collection/components/forms/vehicle-quotation/validations.js +0 -5
  69. package/dist/collection/components/forms/vehicle-quotation.js +8 -7
  70. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  71. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  72. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  73. package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
  74. package/dist/collection/components/part-lookup/part-lookup.css +1 -1
  75. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  76. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  77. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  78. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  79. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  80. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
  81. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
  82. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  83. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
  84. package/dist/collection/features/form-hook/form-hook.js +8 -5
  85. package/dist/collection/features/form-hook/functions.js +4 -5
  86. package/dist/collection/features/form-hook/phone-validator.js +1 -41
  87. package/dist/components/dead-stock-lookup.js +1 -1
  88. package/dist/components/distributor-lookup.js +1 -1
  89. package/dist/components/flexible-container.js +1 -1
  90. package/dist/components/form-checkbox.js +1 -1
  91. package/dist/components/form-date-picker.js +1 -1
  92. package/dist/components/form-dialog.js +1 -1
  93. package/dist/components/form-file.js +1 -1
  94. package/dist/components/form-input-preview.js +1 -1
  95. package/dist/components/form-input.js +1 -1
  96. package/dist/components/form-phone-number.js +1 -1
  97. package/dist/components/form-picker-input.js +1 -1
  98. package/dist/components/form-select.js +1 -1
  99. package/dist/components/form-shadow-input.js +1 -1
  100. package/dist/components/form-stepper-control.js +1 -1
  101. package/dist/components/form-stepper-submit.js +1 -1
  102. package/dist/components/form-stepper.js +1 -1
  103. package/dist/components/form-structure-error.js +1 -1
  104. package/dist/components/form-structure.js +1 -1
  105. package/dist/components/form-submit.js +1 -1
  106. package/dist/components/form-switch.js +1 -1
  107. package/dist/components/form-text-area.js +1 -1
  108. package/dist/components/form-time-picker.js +1 -1
  109. package/dist/components/form-vin-input.js +1 -1
  110. package/dist/components/general-form.js +1 -1
  111. package/dist/components/general-inquiry-form.js +1 -1
  112. package/dist/components/information-table.js +1 -1
  113. package/dist/components/loading-spinner.js +1 -1
  114. package/dist/components/manufacturer-lookup.js +1 -1
  115. package/dist/components/manufacturer-part-lookup.js +1 -1
  116. package/dist/components/{p-DmIzOjiJ.js → p-B3i0qlmP.js} +1 -1
  117. package/dist/components/p-B8X9IaVO.js +5 -0
  118. package/dist/components/p-BR17GwMP.js +5 -0
  119. package/dist/components/{p-BW9zczGE.js → p-BStdaKUW.js} +1 -1
  120. package/dist/components/p-Beal8HBv.js +5 -0
  121. package/dist/components/p-BjxXpALJ.js +5 -0
  122. package/dist/components/p-Bk0lC2Er.js +5 -0
  123. package/dist/components/{p-sDS2uNRH.js → p-ByIyuTgY.js} +1 -1
  124. package/dist/components/{p-c9wvEEzy.js → p-C5Adm0yQ.js} +1 -1
  125. package/dist/components/p-C8273fhq.js +5 -0
  126. package/dist/components/{p-Crmq_SrE.js → p-CBVOlWDR.js} +1 -1
  127. package/dist/components/{p-BcT3C8sP.js → p-CETtCq5M.js} +1 -1
  128. package/dist/components/p-CEaAolsJ.js +5 -0
  129. package/dist/components/p-COPmj7B5.js +5 -0
  130. package/dist/components/p-CS7DsoSo.js +5 -0
  131. package/dist/components/p-CWIhyBXh.js +5 -0
  132. package/dist/components/{p-D-sbGtxL.js → p-CfywqPfb.js} +1 -1
  133. package/dist/components/p-Cliso0Jh.js +5 -0
  134. package/dist/components/p-Cp10Giyv.js +5 -0
  135. package/dist/components/p-CxL9hBt2.js +5 -0
  136. package/dist/components/p-D-ggy6RV.js +5 -0
  137. package/dist/components/{p-CIANzvVt.js → p-D8zdewea.js} +1 -1
  138. package/dist/components/p-DCUQa1ZS.js +5 -0
  139. package/dist/components/{p-BNjcsx7O.js → p-DKKol0I_.js} +1 -1
  140. package/dist/components/p-DPWPJwpz.js +5 -0
  141. package/dist/components/p-DVg1741_.js +5 -0
  142. package/dist/components/{p-B-a6ktHS.js → p-DZK4ppw-.js} +1 -1
  143. package/dist/components/p-DcuHEGLP.js +5 -0
  144. package/dist/components/p-DwGcu-Ri.js +5 -0
  145. package/dist/components/{p-BgNVZc8s.js → p-DwV8tgOD.js} +1 -1
  146. package/dist/components/{p-DZNQs_My.js → p-Gs02yoj7.js} +1 -1
  147. package/dist/components/{p-DrfcYzF1.js → p-KSM2f2w0.js} +1 -1
  148. package/dist/components/{p-B1zj9gi9.js → p-KlUIwQJ_.js} +1 -1
  149. package/dist/components/{p-D0sxdCna.js → p-R4_FgQZu.js} +1 -1
  150. package/dist/components/{p-DC6cT-dz.js → p-ctr68qXa.js} +1 -1
  151. package/dist/components/p-luk3AfIc.js +5 -0
  152. package/dist/components/p-nrYXPNI2.js +5 -0
  153. package/dist/components/p-oGV1BqdG.js +5 -0
  154. package/dist/components/{p-8XSbLgc1.js → p-q3l-s-M2.js} +1 -1
  155. package/dist/components/p-qJP_AdCB.js +5 -0
  156. package/dist/components/p-tnQIP2O8.js +5 -0
  157. package/dist/components/{p-BNjxHrl0.js → p-y0aCpCQj.js} +1 -1
  158. package/dist/components/part-lookup.js +1 -1
  159. package/dist/components/service-booking-form.js +1 -1
  160. package/dist/components/shift-accordion.js +1 -1
  161. package/dist/components/shift-select.d.ts +11 -0
  162. package/dist/components/shift-select.js +5 -0
  163. package/dist/components/shift-slider.js +1 -1
  164. package/dist/components/shift-switch.js +1 -1
  165. package/dist/components/shift-tab-content.js +1 -1
  166. package/dist/components/shift-tabs.js +1 -1
  167. package/dist/components/ssc-lookup-form.js +1 -1
  168. package/dist/components/test-drive-form.js +1 -1
  169. package/dist/components/vehicle-accessories.js +1 -1
  170. package/dist/components/vehicle-claimable-items.js +1 -1
  171. package/dist/components/vehicle-item-claim-form.js +1 -1
  172. package/dist/components/vehicle-lookup.js +1 -1
  173. package/dist/components/vehicle-paint-thickness.js +1 -1
  174. package/dist/components/vehicle-quotation-form.js +1 -1
  175. package/dist/components/vehicle-sale-information.js +1 -1
  176. package/dist/components/vehicle-service-history.js +1 -1
  177. package/dist/components/vehicle-specification.js +1 -1
  178. package/dist/components/vehicle-warranty-details.js +1 -1
  179. package/dist/esm/dead-stock-lookup_3.entry.js +5 -5
  180. package/dist/esm/flexible-container.entry.js +1 -1
  181. package/dist/esm/form-checkbox.entry.js +4 -4
  182. package/dist/esm/form-date-picker.entry.js +5 -5
  183. package/dist/esm/form-dialog_13.entry.js +4559 -31
  184. package/dist/esm/{form-input-BZhw7_xV.js → form-input-Dcr-Pd8b.js} +1 -1
  185. package/dist/esm/form-input_5.entry.js +350 -0
  186. package/dist/esm/form-switch.entry.js +3 -3
  187. package/dist/esm/form-time-picker.entry.js +1 -1
  188. package/dist/esm/functions-BV-8Zxxg.js +287 -0
  189. package/dist/esm/general-form.entry.js +10 -11
  190. package/dist/esm/general-inquiry-form.entry.js +10 -11
  191. package/dist/esm/{get-language-from-url-X9X1Ax8Z.js → get-language-from-url-C-Rb5RW0.js} +8 -5
  192. package/dist/esm/{get-local-language-fN5yD1k3.js → get-local-language-fnTvjsMh.js} +1 -1
  193. package/dist/esm/{get-mock-files-CbEHAxlT.js → get-mock-files-I7xQDKOi.js} +1 -1
  194. package/dist/esm/information-table.entry.js +1 -1
  195. package/dist/esm/loader.js +1 -1
  196. package/dist/esm/loading-spinner.entry.js +1 -1
  197. package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
  198. package/dist/esm/{state-object-BQ1UuxjE.js → mappers-Bk5UgY3t.js} +2 -11
  199. package/dist/esm/part-lookup.entry.js +2 -2
  200. package/dist/esm/service-booking-form.entry.js +10 -11
  201. package/dist/esm/shift-accordion.entry.js +1 -1
  202. package/dist/esm/shift-components.js +1 -1
  203. package/dist/esm/shift-slider.entry.js +1 -1
  204. package/dist/esm/shift-switch.entry.js +1 -1
  205. package/dist/esm/shift-tab-content.entry.js +2 -2
  206. package/dist/esm/shift-tabs_2.entry.js +4 -4
  207. package/dist/esm/ssc-lookup-form.entry.js +10 -11
  208. package/dist/esm/test-drive-form.entry.js +10 -11
  209. package/dist/esm/{validation-DI1MnYKr.js → validation-oieVWBn1.js} +1 -7
  210. package/dist/esm/vehicle-accessories_7.entry.js +8 -8
  211. package/dist/esm/vehicle-lookup.entry.js +3 -3
  212. package/dist/esm/vehicle-quotation-form.entry.js +13 -22
  213. package/dist/esm/{white-loader-CG4JPVdv.js → white-loader-DG6pqLQw.js} +3 -1
  214. package/dist/mocks/generated/broker-dealer/part-lookup.json +127 -0
  215. package/dist/mocks/generated/broker-dealer/vehicle-lookup.json +275 -0
  216. package/dist/mocks/generated/standard-dealer/vehicle-lookup.json +112 -2
  217. package/dist/shift-components/{p-b99d645c.entry.js → p-012dc118.entry.js} +1 -1
  218. package/dist/shift-components/p-13a74448.entry.js +5 -0
  219. package/dist/shift-components/p-30f2f132.entry.js +5 -0
  220. package/dist/shift-components/{p-61f1b657.entry.js → p-3a1a1268.entry.js} +1 -1
  221. package/dist/shift-components/{p-93f8d3cb.entry.js → p-3d196be4.entry.js} +1 -1
  222. package/dist/shift-components/{p-a04bc89f.entry.js → p-4312c6d8.entry.js} +1 -1
  223. package/dist/shift-components/p-5de5f71b.entry.js +5 -0
  224. package/dist/shift-components/p-5eb48275.entry.js +5 -0
  225. package/dist/shift-components/{p-a4abc248.entry.js → p-6662f17d.entry.js} +1 -1
  226. package/dist/shift-components/p-6eed1668.entry.js +5 -0
  227. package/dist/shift-components/p-72ada566.entry.js +5 -0
  228. package/dist/shift-components/{p-8950c0d3.entry.js → p-767a92e1.entry.js} +1 -1
  229. package/dist/shift-components/p-78034d50.entry.js +5 -0
  230. package/dist/shift-components/{p-e52dcb2a.entry.js → p-7e86111e.entry.js} +1 -1
  231. package/dist/shift-components/p-8b18d680.entry.js +5 -0
  232. package/dist/shift-components/{p-c18fe44e.entry.js → p-8d733785.entry.js} +1 -1
  233. package/dist/shift-components/{p-b3e12582.entry.js → p-93f1056f.entry.js} +1 -1
  234. package/dist/shift-components/{p-7a4e1765.entry.js → p-96e667e2.entry.js} +1 -1
  235. package/dist/shift-components/{p-BJJ8dVwO.js → p-B8VkFyfR.js} +1 -1
  236. package/dist/shift-components/p-BuurMgGN.js +5 -0
  237. package/dist/shift-components/p-DEWpW9-h.js +5 -0
  238. package/dist/shift-components/p-DQUCHNJ-.js +5 -0
  239. package/dist/shift-components/{p-CjbN38OR.js → p-DhsHmr8w.js} +1 -1
  240. package/dist/shift-components/p-DlOwT0yg.js +5 -0
  241. package/dist/shift-components/p-a206829d.entry.js +5 -0
  242. package/dist/shift-components/{p-7a69c2a0.entry.js → p-a2593afd.entry.js} +1 -1
  243. package/dist/shift-components/p-ad30afe7.entry.js +5 -0
  244. package/dist/shift-components/p-b83498ac.entry.js +5 -0
  245. package/dist/shift-components/p-ce9bfd94.entry.js +5 -0
  246. package/dist/shift-components/{p-65b612a5.entry.js → p-e3252106.entry.js} +1 -1
  247. package/dist/shift-components/{p-2d250c2c.entry.js → p-f6f9027f.entry.js} +1 -1
  248. package/dist/shift-components/{p-EIAqVmko.js → p-h5_mqJ-3.js} +1 -1
  249. package/dist/shift-components/p-veklgezh.js +5 -0
  250. package/dist/shift-components/shift-components.esm.js +1 -1
  251. package/dist/types/components/components/shift-select.d.ts +41 -0
  252. package/dist/types/components/form-elements/form-phone-number.d.ts +19 -3
  253. package/dist/types/components/form-elements/form-select.d.ts +3 -9
  254. package/dist/types/components/forms/defaults/mappers.d.ts +1 -1
  255. package/dist/types/components/forms/defaults/validation.d.ts +1 -3
  256. package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +2 -3
  257. package/dist/types/components/forms/vehicle-quotation/validations.d.ts +3 -3
  258. package/dist/types/components.d.ts +123 -4
  259. package/dist/types/features/form-hook/interface.d.ts +1 -0
  260. package/dist/types/features/form-hook/phone-validator.d.ts +1 -2
  261. package/package.json +2 -1
  262. package/dist/cjs/form-input_4.cjs.entry.js +0 -319
  263. package/dist/cjs/phone-validator-DBP8Hynm.js +0 -4791
  264. package/dist/collection/components/forms/defaults/state-object.js +0 -5
  265. package/dist/components/p-B2UXU4lO.js +0 -5
  266. package/dist/components/p-B882WrlQ.js +0 -5
  267. package/dist/components/p-BKhQwtv6.js +0 -5
  268. package/dist/components/p-BLiZRR3-.js +0 -5
  269. package/dist/components/p-BeL46S5b.js +0 -5
  270. package/dist/components/p-Bru6COhI.js +0 -5
  271. package/dist/components/p-CEXM9vIa.js +0 -5
  272. package/dist/components/p-COtjTa3C.js +0 -5
  273. package/dist/components/p-Cxsxd6jX.js +0 -5
  274. package/dist/components/p-CzuBo570.js +0 -5
  275. package/dist/components/p-DAXzUOtq.js +0 -5
  276. package/dist/components/p-DHQY55KN.js +0 -5
  277. package/dist/components/p-DJ0xfjFN.js +0 -5
  278. package/dist/components/p-DSTKQdoW.js +0 -5
  279. package/dist/components/p-DT2OVZtH.js +0 -5
  280. package/dist/components/p-DYUjesC-.js +0 -5
  281. package/dist/components/p-Dg9H_vUO.js +0 -5
  282. package/dist/components/p-DqOll_wA.js +0 -5
  283. package/dist/components/p-DqPjMHKd.js +0 -5
  284. package/dist/components/p-F2tAV4E8.js +0 -5
  285. package/dist/components/p-KLPAymsW.js +0 -5
  286. package/dist/components/p-d53FlScY.js +0 -5
  287. package/dist/components/p-eCakWzyl.js +0 -5
  288. package/dist/esm/form-input_4.entry.js +0 -314
  289. package/dist/esm/phone-validator-BPJU63Ak.js +0 -4779
  290. package/dist/shift-components/p-26c95935.entry.js +0 -5
  291. package/dist/shift-components/p-3bea5aaa.entry.js +0 -5
  292. package/dist/shift-components/p-3fa2e731.entry.js +0 -5
  293. package/dist/shift-components/p-533ff451.entry.js +0 -5
  294. package/dist/shift-components/p-7PtHUjhE.js +0 -5
  295. package/dist/shift-components/p-7a6621db.entry.js +0 -5
  296. package/dist/shift-components/p-8d4c4317.entry.js +0 -5
  297. package/dist/shift-components/p-8e7e0ca5.entry.js +0 -5
  298. package/dist/shift-components/p-B1_PA5hq.js +0 -5
  299. package/dist/shift-components/p-C5tUvw8g.js +0 -5
  300. package/dist/shift-components/p-CgTEvrEQ.js +0 -5
  301. package/dist/shift-components/p-Cm_2J53u.js +0 -5
  302. package/dist/shift-components/p-cf208379.entry.js +0 -5
  303. package/dist/shift-components/p-ea7f7ffa.entry.js +0 -5
  304. package/dist/shift-components/p-edf3fb47.entry.js +0 -5
  305. package/dist/shift-components/p-ee305b43.entry.js +0 -5
  306. package/dist/shift-components/p-fb23c572.entry.js +0 -5
  307. package/dist/types/components/forms/defaults/state-object.d.ts +0 -6
@@ -0,0 +1,568 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import cn from "../../global/lib/cn";
7
+ import Loader from "~assets/loader.svg";
8
+ import { TickIcon } from "../../global/assets/tick-icon";
9
+ import { ArrowUpIcon } from "../../global/assets/arrow-up-icon";
10
+ import { AddIcon } from "../../global/assets/add-icon";
11
+ export class ShiftSelect {
12
+ constructor() {
13
+ this.hasTick = true;
14
+ this.hasArrow = true;
15
+ this.searchValue = '';
16
+ this.isOpen = false;
17
+ this.selectedValue = '';
18
+ this.clearable = false;
19
+ this.options = [];
20
+ this.reverseOptions = false;
21
+ this.forceOpenUpwards = false;
22
+ this.openUpwards = false;
23
+ this.toggleDropdown = () => {
24
+ if (this.isOpen && !this.searchable)
25
+ this.updateContext({ isOpen: false });
26
+ else
27
+ this.adjustDropdownPosition();
28
+ };
29
+ this.closeDropdown = (event) => {
30
+ if (!this.el.contains(event.target)) {
31
+ this.updateContext({ isOpen: false });
32
+ }
33
+ };
34
+ this.handleResize = () => {
35
+ if (this.isOpen) {
36
+ this.adjustDropdownPosition();
37
+ }
38
+ };
39
+ this.onSearchInput = (event) => {
40
+ const target = event.target;
41
+ this.updateContext({ searchValue: target.value, selectedValue: '' });
42
+ };
43
+ this.clearInput = () => {
44
+ this.updateContext({ searchValue: '', selectedValue: '' });
45
+ const selectButton = this.el.getElementsByClassName('form-input-select')[0];
46
+ selectButton.focus();
47
+ if (!this.isOpen)
48
+ this.adjustDropdownPosition();
49
+ };
50
+ }
51
+ async componentDidLoad() {
52
+ document.addEventListener('click', this.closeDropdown);
53
+ document.addEventListener('keydown', this.handleKeyDown.bind(this));
54
+ window.addEventListener('resize', this.handleResize);
55
+ }
56
+ adjustDropdownPosition() {
57
+ requestAnimationFrame(() => {
58
+ const selectButton = this.el.getElementsByClassName('form-input-select')[0];
59
+ const selectContainer = this.el.getElementsByClassName('form-select-container')[0];
60
+ const rect = selectButton.getBoundingClientRect();
61
+ const spaceBelow = window.innerHeight - rect.bottom - 20; // 20 is padding
62
+ this.openUpwards = spaceBelow < selectContainer.getBoundingClientRect().height || this.forceOpenUpwards;
63
+ setTimeout(() => {
64
+ this.updateContext({ isOpen: true });
65
+ }, 10);
66
+ });
67
+ }
68
+ handleKeyDown(event) {
69
+ if (!this.isOpen)
70
+ return;
71
+ if (event.key === 'Escape') {
72
+ this.updateContext({ isOpen: false });
73
+ }
74
+ }
75
+ async disconnectedCallback() {
76
+ document.removeEventListener('click', this.closeDropdown);
77
+ document.removeEventListener('keydown', this.handleKeyDown.bind(this));
78
+ window.removeEventListener('resize', this.handleResize);
79
+ }
80
+ render() {
81
+ const selectedItem = this.options.find(item => this.selectedValue === item.value);
82
+ return (h(Host, { key: '08bf24aa2d919f5ce28dac3f0cd3c14879d86049', translate: "no" }, h("div", { key: '672d7685dc79f8738e4846d07db52a9dff63bc6e', part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen, disabled: this.disableInput, disableInput: this.disableInput }) }, h("slot", { key: '6cb72636e64d578009e1ddd3598f61aaa8bfaa0c' }), h("input", { key: '0fed4953de58ec04f6ef3f9ca512f8a25f1bc87b', type: "text", disabled: this.disableInput, part: `${this.name}-input-select form-input-select`, value: this.searchable ? this.searchValue : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) || '', readOnly: !this.searchable, onInput: this.onSearchInput, onClick: this.toggleDropdown, placeholder: this.placeholder, class: cn('form-input-style form-input-select', {
83
+ 'form-input-error-style': this.isError,
84
+ }) }), h("div", { key: 'e1388edd8279196614712aed3529f5901a22720c', part: `${this.name}-select-icon-container form-input-select-icon-container`, class: cn('form-input-select-icon-container cursor-pointer', { 'pointer-events-none!': !((selectedItem || this.searchValue) && this.clearable) }) }, (selectedItem || this.searchValue) && this.clearable ? (h(AddIcon, { part: `${this.name}-cross-icon`, onClick: this.clearInput, class: "form-input-select-icon cross" })) : (this.hasArrow && h(ArrowUpIcon, { part: `${this.name}-arrow-icon select-arrow`, class: "cursor-pointer form-input-select-icon pointer-events-none! arrow" }))), h("div", { key: '7dd018430bd09e03f3d45b400e61cbbe4b9a4d3c', part: cn(`${this.name}-select-container form-select-container`, {
85
+ 'form-select-container-upwards': this.openUpwards || this.forceOpenUpwards,
86
+ 'form-select-container-downwards': !this.openUpwards && !this.forceOpenUpwards,
87
+ }), class: cn('form-select-container', {
88
+ upwards: this.openUpwards || this.forceOpenUpwards,
89
+ downwards: !this.openUpwards && !this.forceOpenUpwards,
90
+ }) }, !!this.options.length &&
91
+ (this.reverseOptions ? [...this.options].reverse() : this.options).map(option => this.fullRenderOption ? (this.fullRenderOption(option, this.selectedValue === option.value, this.handleSelection)) : (h("button", { type: "button", part: cn(`${this.name}-select-option form-select-option`, { 'form-select-option-selected': this.selectedValue === option.value }), onClick: () => this.handleSelection(option), class: cn('form-select-option', {
92
+ selected: this.selectedValue === option.value,
93
+ }) }, this.renderOption ? (this.renderOption(option, this.selectedValue === option.value)) : (h("div", { part: `${this.name}-select-option-label form-select-option-label`, class: "form-select-option-label" }, option.label)), this.hasTick && h(TickIcon, { part: `${this.name}-tick-icon`, class: "form-select-option-tick" })))), !this.options.length && (h("div", { key: '9fe470cfa70e1e544c4816b06a78d617fb702f6a', part: `${this.name}-select-empty-container form-select-empty-container`, class: cn('form-select-empty-container', { error: this.fetchingErrorText }) }, this.fetchingErrorText, !this.fetchingErrorText &&
94
+ (this.isLoading ? h("img", { part: `${this.name}-select-spinner form-select-spinner`, class: "form-select-spinner", src: Loader }) : this.noSelectionText)))))));
95
+ }
96
+ static get is() { return "shift-select"; }
97
+ static get originalStyleUrls() {
98
+ return {
99
+ "$": ["shift-select.css"]
100
+ };
101
+ }
102
+ static get styleUrls() {
103
+ return {
104
+ "$": ["shift-select.css"]
105
+ };
106
+ }
107
+ static get properties() {
108
+ return {
109
+ "name": {
110
+ "type": "string",
111
+ "attribute": "name",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "string",
115
+ "resolved": "string",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": ""
123
+ },
124
+ "getter": false,
125
+ "setter": false,
126
+ "reflect": false
127
+ },
128
+ "hasTick": {
129
+ "type": "boolean",
130
+ "attribute": "has-tick",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "boolean",
134
+ "resolved": "boolean",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": ""
142
+ },
143
+ "getter": false,
144
+ "setter": false,
145
+ "reflect": false,
146
+ "defaultValue": "true"
147
+ },
148
+ "hasArrow": {
149
+ "type": "boolean",
150
+ "attribute": "has-arrow",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "boolean",
154
+ "resolved": "boolean",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "getter": false,
164
+ "setter": false,
165
+ "reflect": false,
166
+ "defaultValue": "true"
167
+ },
168
+ "searchValue": {
169
+ "type": "string",
170
+ "attribute": "search-value",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "string",
174
+ "resolved": "string",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": ""
182
+ },
183
+ "getter": false,
184
+ "setter": false,
185
+ "reflect": false,
186
+ "defaultValue": "''"
187
+ },
188
+ "isError": {
189
+ "type": "boolean",
190
+ "attribute": "is-error",
191
+ "mutable": false,
192
+ "complexType": {
193
+ "original": "boolean",
194
+ "resolved": "boolean",
195
+ "references": {}
196
+ },
197
+ "required": false,
198
+ "optional": true,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": ""
202
+ },
203
+ "getter": false,
204
+ "setter": false,
205
+ "reflect": false
206
+ },
207
+ "searchable": {
208
+ "type": "boolean",
209
+ "attribute": "searchable",
210
+ "mutable": false,
211
+ "complexType": {
212
+ "original": "boolean",
213
+ "resolved": "boolean",
214
+ "references": {}
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": ""
221
+ },
222
+ "getter": false,
223
+ "setter": false,
224
+ "reflect": false
225
+ },
226
+ "isLoading": {
227
+ "type": "boolean",
228
+ "attribute": "is-loading",
229
+ "mutable": false,
230
+ "complexType": {
231
+ "original": "boolean",
232
+ "resolved": "boolean",
233
+ "references": {}
234
+ },
235
+ "required": false,
236
+ "optional": true,
237
+ "docs": {
238
+ "tags": [],
239
+ "text": ""
240
+ },
241
+ "getter": false,
242
+ "setter": false,
243
+ "reflect": false
244
+ },
245
+ "placeholder": {
246
+ "type": "string",
247
+ "attribute": "placeholder",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": true,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": ""
259
+ },
260
+ "getter": false,
261
+ "setter": false,
262
+ "reflect": false
263
+ },
264
+ "disableInput": {
265
+ "type": "boolean",
266
+ "attribute": "disable-input",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "boolean",
270
+ "resolved": "boolean",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": true,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": ""
278
+ },
279
+ "getter": false,
280
+ "setter": false,
281
+ "reflect": false
282
+ },
283
+ "isOpen": {
284
+ "type": "boolean",
285
+ "attribute": "is-open",
286
+ "mutable": false,
287
+ "complexType": {
288
+ "original": "boolean",
289
+ "resolved": "boolean",
290
+ "references": {}
291
+ },
292
+ "required": false,
293
+ "optional": false,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": ""
297
+ },
298
+ "getter": false,
299
+ "setter": false,
300
+ "reflect": false,
301
+ "defaultValue": "false"
302
+ },
303
+ "noSelectionText": {
304
+ "type": "string",
305
+ "attribute": "no-selection-text",
306
+ "mutable": false,
307
+ "complexType": {
308
+ "original": "string",
309
+ "resolved": "string",
310
+ "references": {}
311
+ },
312
+ "required": false,
313
+ "optional": true,
314
+ "docs": {
315
+ "tags": [],
316
+ "text": ""
317
+ },
318
+ "getter": false,
319
+ "setter": false,
320
+ "reflect": false
321
+ },
322
+ "selectedValue": {
323
+ "type": "string",
324
+ "attribute": "selected-value",
325
+ "mutable": false,
326
+ "complexType": {
327
+ "original": "string",
328
+ "resolved": "string",
329
+ "references": {}
330
+ },
331
+ "required": false,
332
+ "optional": false,
333
+ "docs": {
334
+ "tags": [],
335
+ "text": ""
336
+ },
337
+ "getter": false,
338
+ "setter": false,
339
+ "reflect": false,
340
+ "defaultValue": "''"
341
+ },
342
+ "clearable": {
343
+ "type": "boolean",
344
+ "attribute": "clearable",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "boolean",
348
+ "resolved": "boolean",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": true,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": ""
356
+ },
357
+ "getter": false,
358
+ "setter": false,
359
+ "reflect": false,
360
+ "defaultValue": "false"
361
+ },
362
+ "options": {
363
+ "type": "unknown",
364
+ "attribute": "options",
365
+ "mutable": false,
366
+ "complexType": {
367
+ "original": "FormSelectItem[]",
368
+ "resolved": "FormSelectItem[]",
369
+ "references": {
370
+ "FormSelectItem": {
371
+ "location": "global",
372
+ "id": "global::FormSelectItem"
373
+ }
374
+ }
375
+ },
376
+ "required": false,
377
+ "optional": false,
378
+ "docs": {
379
+ "tags": [],
380
+ "text": ""
381
+ },
382
+ "getter": false,
383
+ "setter": false,
384
+ "defaultValue": "[]"
385
+ },
386
+ "reverseOptions": {
387
+ "type": "boolean",
388
+ "attribute": "reverse-options",
389
+ "mutable": false,
390
+ "complexType": {
391
+ "original": "boolean",
392
+ "resolved": "boolean",
393
+ "references": {}
394
+ },
395
+ "required": false,
396
+ "optional": true,
397
+ "docs": {
398
+ "tags": [],
399
+ "text": ""
400
+ },
401
+ "getter": false,
402
+ "setter": false,
403
+ "reflect": false,
404
+ "defaultValue": "false"
405
+ },
406
+ "forceOpenUpwards": {
407
+ "type": "boolean",
408
+ "attribute": "force-open-upwards",
409
+ "mutable": false,
410
+ "complexType": {
411
+ "original": "boolean",
412
+ "resolved": "boolean",
413
+ "references": {}
414
+ },
415
+ "required": false,
416
+ "optional": true,
417
+ "docs": {
418
+ "tags": [],
419
+ "text": ""
420
+ },
421
+ "getter": false,
422
+ "setter": false,
423
+ "reflect": false,
424
+ "defaultValue": "false"
425
+ },
426
+ "fetchingErrorText": {
427
+ "type": "any",
428
+ "attribute": "fetching-error-text",
429
+ "mutable": false,
430
+ "complexType": {
431
+ "original": "string | boolean",
432
+ "resolved": "boolean | string",
433
+ "references": {}
434
+ },
435
+ "required": false,
436
+ "optional": true,
437
+ "docs": {
438
+ "tags": [],
439
+ "text": ""
440
+ },
441
+ "getter": false,
442
+ "setter": false,
443
+ "reflect": false
444
+ },
445
+ "handleSelection": {
446
+ "type": "unknown",
447
+ "attribute": "handle-selection",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "(option: FormSelectItem) => void",
451
+ "resolved": "(option: FormSelectItem) => void",
452
+ "references": {
453
+ "FormSelectItem": {
454
+ "location": "global",
455
+ "id": "global::FormSelectItem"
456
+ }
457
+ }
458
+ },
459
+ "required": false,
460
+ "optional": false,
461
+ "docs": {
462
+ "tags": [],
463
+ "text": ""
464
+ },
465
+ "getter": false,
466
+ "setter": false
467
+ },
468
+ "onSelection": {
469
+ "type": "unknown",
470
+ "attribute": "on-selection",
471
+ "mutable": false,
472
+ "complexType": {
473
+ "original": "(newSelection: FormSelectItem) => void",
474
+ "resolved": "(newSelection: FormSelectItem) => void",
475
+ "references": {
476
+ "FormSelectItem": {
477
+ "location": "global",
478
+ "id": "global::FormSelectItem"
479
+ }
480
+ }
481
+ },
482
+ "required": false,
483
+ "optional": true,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": ""
487
+ },
488
+ "getter": false,
489
+ "setter": false
490
+ },
491
+ "renderOption": {
492
+ "type": "unknown",
493
+ "attribute": "render-option",
494
+ "mutable": false,
495
+ "complexType": {
496
+ "original": "(option: FormSelectItem, isSelected) => any",
497
+ "resolved": "(option: FormSelectItem, isSelected: any) => any",
498
+ "references": {
499
+ "FormSelectItem": {
500
+ "location": "global",
501
+ "id": "global::FormSelectItem"
502
+ }
503
+ }
504
+ },
505
+ "required": false,
506
+ "optional": true,
507
+ "docs": {
508
+ "tags": [],
509
+ "text": ""
510
+ },
511
+ "getter": false,
512
+ "setter": false
513
+ },
514
+ "fullRenderOption": {
515
+ "type": "unknown",
516
+ "attribute": "full-render-option",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "(option: FormSelectItem, isSelected, handleSelection) => any",
520
+ "resolved": "(option: FormSelectItem, isSelected: any, handleSelection: any) => any",
521
+ "references": {
522
+ "FormSelectItem": {
523
+ "location": "global",
524
+ "id": "global::FormSelectItem"
525
+ }
526
+ }
527
+ },
528
+ "required": false,
529
+ "optional": true,
530
+ "docs": {
531
+ "tags": [],
532
+ "text": ""
533
+ },
534
+ "getter": false,
535
+ "setter": false
536
+ },
537
+ "updateContext": {
538
+ "type": "unknown",
539
+ "attribute": "update-context",
540
+ "mutable": false,
541
+ "complexType": {
542
+ "original": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string }>) => void",
543
+ "resolved": "(newValues: Partial<{ isOpen: boolean; searchValue: string; selectedValue: string; }>) => void",
544
+ "references": {
545
+ "Partial": {
546
+ "location": "global",
547
+ "id": "global::Partial"
548
+ }
549
+ }
550
+ },
551
+ "required": false,
552
+ "optional": false,
553
+ "docs": {
554
+ "tags": [],
555
+ "text": ""
556
+ },
557
+ "getter": false,
558
+ "setter": false
559
+ }
560
+ };
561
+ }
562
+ static get states() {
563
+ return {
564
+ "openUpwards": {}
565
+ };
566
+ }
567
+ static get elementRef() { return "el"; }
568
+ }
@@ -22,7 +22,7 @@ export class ShiftSlider {
22
22
  this.flexibleContainerRef.stopAnimation = false;
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: '94cef19e956bf48770b12235dfd7f0e8f4f1986a', translate: "no" }, h("flexible-container", { key: 'd4bc2c483e18113f9e76832f3193a44bb5319834', stopAnimation: true, classes: "relative" }, this.components.map((listElement, idx) => (h("div", { class: cn('w-full transition !duration-1000', 'element-number-' + idx, {
25
+ return (h(Host, { key: 'bb296cbb3e8ca2d23bdfde378220cbfd9f7fcb43', translate: "no" }, h("flexible-container", { key: '488fc550280ac1e0f44c56dbccd0aefaca7d3c1b', stopAnimation: true, classes: "relative" }, this.components.map((listElement, idx) => (h("div", { class: cn('w-full transition !duration-1000', 'element-number-' + idx, {
26
26
  'opacity-0 absolute top-0 !pointer-events-none [&_*]:!pointer-events-none': this.activeIndex !== idx,
27
27
  'translate-x-[110%]': this.activeIndex < idx,
28
28
  '-translate-x-[110%]': this.activeIndex > idx,
@@ -15,7 +15,7 @@ export class ShiftSwitch {
15
15
  return this.inputRef.checked;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '56b4c3ee61a76ec12990dd79a9c86c004cba862f', translate: "no" }, h("label", { key: '37f09eff00b011f07f88a6569a66622919a2d783', part: "shift-checkbox", class: cn('relative flex items-center cursor-pointer select-none', { 'opacity-75 cursor-default': this.disabled }) }, h("input", { key: 'a0d481253d6e0b4e37e951f4e3e87f4a51e2c46a', type: "checkbox", value: "true", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.onChange, class: "shift-checkbox peer hidden" }), h("div", { key: '21b9f2f8f6b88bd3c135ecc7e17362dad1ac83e4', class: "relative w-[50px] h-[24px] rounded-full border-2 border-blue-300 bg-blue-100 peer-checked:bg-blue-500 peer-checked:[&_div]:translate-x-[28px] peer-checked:border-blue-500 transition-colors duration-300" }, h("div", { key: '49ea9f35ffde9912ffb8a599c50cd94d520ae257', class: "absolute top-[-2px] left-[-2px] size-[24px] rounded-full bg-white shadow-md transition-all duration-300 peer-checked:bg-blue-500" })), h("span", { key: 'bfa74d628fe97883f54842922d8ede31fdedba44', class: "ms-2 text-gray-700" }, this.label))));
18
+ return (h(Host, { key: '6eb3154f4ffe47e44490566d3832fe63038cc9fa', translate: "no" }, h("label", { key: '3893c7b0dec68b954174bfc38e8fad5cc097f353', part: "shift-checkbox", class: cn('relative flex items-center cursor-pointer select-none', { 'opacity-75 cursor-default': this.disabled }) }, h("input", { key: '05248f71415c5fcb08968929dbd488b6c7002d2e', type: "checkbox", value: "true", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.onChange, class: "shift-checkbox peer hidden" }), h("div", { key: '2a3a617a43b9b637c0b2b3e8c1b50cf233bb5960', class: "relative w-[50px] h-[24px] rounded-full border-2 border-blue-300 bg-blue-100 peer-checked:bg-blue-500 peer-checked:[&_div]:translate-x-[28px] peer-checked:border-blue-500 transition-colors duration-300" }, h("div", { key: 'a7bc307e2892c7addd7422844ebb92f9fef7bbac', class: "absolute top-[-2px] left-[-2px] size-[24px] rounded-full bg-white shadow-md transition-all duration-300 peer-checked:bg-blue-500" })), h("span", { key: '3c0a20cf788a1368451e6d872702afece834ab26', class: "ms-2 text-gray-700" }, this.label))));
19
19
  }
20
20
  static get is() { return "shift-switch"; }
21
21
  static get originalStyleUrls() {