adp-web-components 0.1.85 → 0.1.86

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 (280) hide show
  1. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +2 -2
  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-D5J5cdK2.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-CWfRQqOw.js} +1 -1
  15. package/dist/cjs/{get-mock-files-bJFu7gKO.js → get-mock-files-DG4Nk29D.js} +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +2 -2
  18. package/dist/cjs/{state-object-B3gJgyPV.js → mappers-C82gH1dw.js} +1 -11
  19. package/dist/cjs/part-lookup.cjs.entry.js +1 -1
  20. package/dist/cjs/service-booking-form.cjs.entry.js +19 -20
  21. package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/shift-components.cjs.js +1 -1
  23. package/dist/cjs/shift-slider.cjs.entry.js +1 -1
  24. package/dist/cjs/shift-switch.cjs.entry.js +1 -1
  25. package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
  26. package/dist/cjs/shift-tabs_2.cjs.entry.js +2 -2
  27. package/dist/cjs/ssc-lookup-form.cjs.entry.js +19 -20
  28. package/dist/cjs/test-drive-form.cjs.entry.js +19 -20
  29. package/dist/cjs/{validation-BAHdEc4w.js → validation-jJwLyk27.js} +1 -7
  30. package/dist/cjs/vehicle-accessories_7.cjs.entry.js +1 -1
  31. package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -2
  32. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +15 -25
  33. package/dist/cjs/{white-loader-kSznMo_u.js → white-loader-D6sR0fOI.js} +3 -1
  34. package/dist/collection/collection-manifest.json +1 -0
  35. package/dist/collection/components/components/flexible-container.css +1 -1
  36. package/dist/collection/components/components/shift-accordion.css +1 -1
  37. package/dist/collection/components/components/shift-select.css +1 -0
  38. package/dist/collection/components/components/shift-select.js +568 -0
  39. package/dist/collection/components/components/shift-slider.js +1 -1
  40. package/dist/collection/components/components/shift-switch.js +1 -1
  41. package/dist/collection/components/components/shift-tab-content.js +1 -1
  42. package/dist/collection/components/components/shift-tabs.js +2 -2
  43. package/dist/collection/components/form-elements/components/form-input-prefix.js +3 -1
  44. package/dist/collection/components/form-elements/form-checkbox.js +1 -1
  45. package/dist/collection/components/form-elements/form-date-picker-legacy.js +4 -4
  46. package/dist/collection/components/form-elements/form-dialog.js +3 -3
  47. package/dist/collection/components/form-elements/form-file.js +2 -2
  48. package/dist/collection/components/form-elements/form-input.js +2 -2
  49. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  50. package/dist/collection/components/form-elements/form-phone-number.js +130 -30
  51. package/dist/collection/components/form-elements/form-select.js +11 -72
  52. package/dist/collection/components/forms/defaults/mappers.js +1 -7
  53. package/dist/collection/components/forms/defaults/style.css +1 -1
  54. package/dist/collection/components/forms/defaults/validation.js +1 -7
  55. package/dist/collection/components/forms/general-form.js +4 -6
  56. package/dist/collection/components/forms/general-inquiry.js +4 -6
  57. package/dist/collection/components/forms/service-booking.js +4 -6
  58. package/dist/collection/components/forms/ssc-lookup.js +4 -6
  59. package/dist/collection/components/forms/test-drive.js +4 -6
  60. package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +1 -8
  61. package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
  62. package/dist/collection/components/forms/vehicle-quotation/validations.js +0 -5
  63. package/dist/collection/components/forms/vehicle-quotation.js +1 -1
  64. package/dist/collection/features/form-hook/form-hook.js +8 -5
  65. package/dist/collection/features/form-hook/functions.js +0 -1
  66. package/dist/collection/features/form-hook/phone-validator.js +1 -41
  67. package/dist/components/dead-stock-lookup.js +1 -1
  68. package/dist/components/distributor-lookup.js +1 -1
  69. package/dist/components/flexible-container.js +1 -1
  70. package/dist/components/form-checkbox.js +1 -1
  71. package/dist/components/form-date-picker.js +1 -1
  72. package/dist/components/form-dialog.js +1 -1
  73. package/dist/components/form-file.js +1 -1
  74. package/dist/components/form-input-preview.js +1 -1
  75. package/dist/components/form-input.js +1 -1
  76. package/dist/components/form-phone-number.js +1 -1
  77. package/dist/components/form-picker-input.js +1 -1
  78. package/dist/components/form-select.js +1 -1
  79. package/dist/components/form-shadow-input.js +1 -1
  80. package/dist/components/form-stepper-control.js +1 -1
  81. package/dist/components/form-stepper-submit.js +1 -1
  82. package/dist/components/form-stepper.js +1 -1
  83. package/dist/components/form-structure-error.js +1 -1
  84. package/dist/components/form-structure.js +1 -1
  85. package/dist/components/form-submit.js +1 -1
  86. package/dist/components/form-switch.js +1 -1
  87. package/dist/components/form-text-area.js +1 -1
  88. package/dist/components/form-time-picker.js +1 -1
  89. package/dist/components/form-vin-input.js +1 -1
  90. package/dist/components/general-form.js +1 -1
  91. package/dist/components/general-inquiry-form.js +1 -1
  92. package/dist/components/information-table.js +1 -1
  93. package/dist/components/manufacturer-lookup.js +1 -1
  94. package/dist/components/manufacturer-part-lookup.js +1 -1
  95. package/dist/components/p-04wNXJ_q.js +5 -0
  96. package/dist/components/p-4n_cgPjf.js +5 -0
  97. package/dist/components/p-B8X9IaVO.js +5 -0
  98. package/dist/components/p-BDgNqOMe.js +5 -0
  99. package/dist/components/p-BFxBL1n-.js +5 -0
  100. package/dist/components/{p-BNjxHrl0.js → p-BUnCuQVo.js} +1 -1
  101. package/dist/components/p-BY5Ji84D.js +5 -0
  102. package/dist/components/{p-c9wvEEzy.js → p-BgttkHzs.js} +1 -1
  103. package/dist/components/p-Bk0lC2Er.js +5 -0
  104. package/dist/components/p-C2TMzq3P.js +5 -0
  105. package/dist/components/p-C5obPa8c.js +5 -0
  106. package/dist/components/{p-Crmq_SrE.js → p-CAvWNw8_.js} +1 -1
  107. package/dist/components/{p-DZNQs_My.js → p-CHjkTvcK.js} +1 -1
  108. package/dist/components/p-CJbV4CRN.js +5 -0
  109. package/dist/components/{p-DC6cT-dz.js → p-CKWUV8sc.js} +1 -1
  110. package/dist/components/{p-B-a6ktHS.js → p-CO0Weo2C.js} +1 -1
  111. package/dist/components/{p-BW9zczGE.js → p-CQ1pe5_N.js} +1 -1
  112. package/dist/components/p-CSltLdDZ.js +5 -0
  113. package/dist/components/p-CVP-Kfuq.js +5 -0
  114. package/dist/components/{p-BgNVZc8s.js → p-CX0MCoJm.js} +1 -1
  115. package/dist/components/{p-DrfcYzF1.js → p-CZPaKPho.js} +1 -1
  116. package/dist/components/p-CxL9hBt2.js +5 -0
  117. package/dist/components/p-D1sSrUE7.js +5 -0
  118. package/dist/components/p-D5Vp16LE.js +5 -0
  119. package/dist/components/p-DAOx9Qnb.js +5 -0
  120. package/dist/components/{p-BcT3C8sP.js → p-DEniRp-Y.js} +1 -1
  121. package/dist/components/{p-CIANzvVt.js → p-DNT9N8sa.js} +1 -1
  122. package/dist/components/{p-D0sxdCna.js → p-DdJblbUj.js} +1 -1
  123. package/dist/components/{p-DmIzOjiJ.js → p-DqaISuxu.js} +1 -1
  124. package/dist/components/p-E1MRBxpY.js +5 -0
  125. package/dist/components/p-EVz2SQxD.js +5 -0
  126. package/dist/components/{p-B1zj9gi9.js → p-KlUIwQJ_.js} +1 -1
  127. package/dist/components/p-NC__PzEk.js +5 -0
  128. package/dist/components/{p-BNjcsx7O.js → p-OMoAsmX4.js} +1 -1
  129. package/dist/components/{p-sDS2uNRH.js → p-R9s5HIai.js} +1 -1
  130. package/dist/components/p-Rs-gwVEC.js +5 -0
  131. package/dist/components/p-Toqpa7YK.js +5 -0
  132. package/dist/components/{p-D-sbGtxL.js → p-ajNVZbZb.js} +1 -1
  133. package/dist/components/p-lM8Wndby.js +5 -0
  134. package/dist/components/p-nzjwgyi2.js +5 -0
  135. package/dist/components/p-rgNGWak-.js +5 -0
  136. package/dist/components/part-lookup.js +1 -1
  137. package/dist/components/service-booking-form.js +1 -1
  138. package/dist/components/shift-accordion.js +1 -1
  139. package/dist/components/shift-select.d.ts +11 -0
  140. package/dist/components/shift-select.js +5 -0
  141. package/dist/components/shift-slider.js +1 -1
  142. package/dist/components/shift-switch.js +1 -1
  143. package/dist/components/shift-tab-content.js +1 -1
  144. package/dist/components/shift-tabs.js +1 -1
  145. package/dist/components/ssc-lookup-form.js +1 -1
  146. package/dist/components/test-drive-form.js +1 -1
  147. package/dist/components/vehicle-accessories.js +1 -1
  148. package/dist/components/vehicle-claimable-items.js +1 -1
  149. package/dist/components/vehicle-item-claim-form.js +1 -1
  150. package/dist/components/vehicle-lookup.js +1 -1
  151. package/dist/components/vehicle-paint-thickness.js +1 -1
  152. package/dist/components/vehicle-quotation-form.js +1 -1
  153. package/dist/components/vehicle-sale-information.js +1 -1
  154. package/dist/components/vehicle-service-history.js +1 -1
  155. package/dist/components/vehicle-specification.js +1 -1
  156. package/dist/components/vehicle-warranty-details.js +1 -1
  157. package/dist/esm/dead-stock-lookup_3.entry.js +2 -2
  158. package/dist/esm/flexible-container.entry.js +1 -1
  159. package/dist/esm/form-checkbox.entry.js +4 -4
  160. package/dist/esm/form-date-picker.entry.js +5 -5
  161. package/dist/esm/form-dialog_13.entry.js +4559 -31
  162. package/dist/esm/{form-input-BZhw7_xV.js → form-input-Dcr-Pd8b.js} +1 -1
  163. package/dist/esm/form-input_5.entry.js +350 -0
  164. package/dist/esm/form-switch.entry.js +3 -3
  165. package/dist/esm/form-time-picker.entry.js +1 -1
  166. package/dist/esm/functions-DtSiZ2w7.js +287 -0
  167. package/dist/esm/general-form.entry.js +10 -11
  168. package/dist/esm/general-inquiry-form.entry.js +10 -11
  169. package/dist/esm/{get-language-from-url-X9X1Ax8Z.js → get-language-from-url-C-Rb5RW0.js} +8 -5
  170. package/dist/esm/{get-local-language-fN5yD1k3.js → get-local-language-TggqJhkD.js} +1 -1
  171. package/dist/esm/{get-mock-files-CbEHAxlT.js → get-mock-files-CqnoWX3h.js} +1 -1
  172. package/dist/esm/loader.js +1 -1
  173. package/dist/esm/manufacturer-part-lookup.entry.js +2 -2
  174. package/dist/esm/{state-object-BQ1UuxjE.js → mappers-Bk5UgY3t.js} +2 -11
  175. package/dist/esm/part-lookup.entry.js +1 -1
  176. package/dist/esm/service-booking-form.entry.js +10 -11
  177. package/dist/esm/shift-accordion.entry.js +1 -1
  178. package/dist/esm/shift-components.js +1 -1
  179. package/dist/esm/shift-slider.entry.js +1 -1
  180. package/dist/esm/shift-switch.entry.js +1 -1
  181. package/dist/esm/shift-tab-content.entry.js +1 -1
  182. package/dist/esm/shift-tabs_2.entry.js +2 -2
  183. package/dist/esm/ssc-lookup-form.entry.js +10 -11
  184. package/dist/esm/test-drive-form.entry.js +10 -11
  185. package/dist/esm/{validation-DI1MnYKr.js → validation-oieVWBn1.js} +1 -7
  186. package/dist/esm/vehicle-accessories_7.entry.js +1 -1
  187. package/dist/esm/vehicle-lookup.entry.js +2 -2
  188. package/dist/esm/vehicle-quotation-form.entry.js +6 -16
  189. package/dist/esm/{white-loader-CG4JPVdv.js → white-loader-DG6pqLQw.js} +3 -1
  190. package/dist/mocks/generated/broker-dealer/part-lookup.json +127 -0
  191. package/dist/mocks/generated/broker-dealer/vehicle-lookup.json +275 -0
  192. package/dist/shift-components/p-0f6a4a2c.entry.js +5 -0
  193. package/dist/shift-components/p-1c18a25e.entry.js +5 -0
  194. package/dist/shift-components/{p-e52dcb2a.entry.js → p-29cb1041.entry.js} +1 -1
  195. package/dist/shift-components/{p-7a4e1765.entry.js → p-3123d3fd.entry.js} +1 -1
  196. package/dist/shift-components/{p-8950c0d3.entry.js → p-411f777f.entry.js} +1 -1
  197. package/dist/shift-components/p-5ce126f7.entry.js +5 -0
  198. package/dist/shift-components/p-5db9ae4b.entry.js +5 -0
  199. package/dist/shift-components/p-800d78fe.entry.js +5 -0
  200. package/dist/shift-components/{p-a04bc89f.entry.js → p-8882ac0f.entry.js} +1 -1
  201. package/dist/shift-components/{p-c18fe44e.entry.js → p-8d733785.entry.js} +1 -1
  202. package/dist/shift-components/{p-BJJ8dVwO.js → p-B8VkFyfR.js} +1 -1
  203. package/dist/shift-components/p-BuurMgGN.js +5 -0
  204. package/dist/shift-components/{p-EIAqVmko.js → p-Bvk_2TgY.js} +1 -1
  205. package/dist/shift-components/p-DQUCHNJ-.js +5 -0
  206. package/dist/shift-components/p-DlOwT0yg.js +5 -0
  207. package/dist/shift-components/{p-CjbN38OR.js → p-EubhneKo.js} +1 -1
  208. package/dist/shift-components/p-YbxvNbN5.js +5 -0
  209. package/dist/shift-components/{p-b3e12582.entry.js → p-a9f6c258.entry.js} +1 -1
  210. package/dist/shift-components/p-adb7282c.entry.js +5 -0
  211. package/dist/shift-components/p-b6518621.entry.js +5 -0
  212. package/dist/shift-components/p-ca014643.entry.js +5 -0
  213. package/dist/shift-components/{p-93f8d3cb.entry.js → p-cc033f27.entry.js} +1 -1
  214. package/dist/shift-components/{p-61f1b657.entry.js → p-ccb80e4d.entry.js} +1 -1
  215. package/dist/shift-components/p-cf23180a.entry.js +5 -0
  216. package/dist/shift-components/p-d6619b20.entry.js +5 -0
  217. package/dist/shift-components/p-d6dfb9bd.entry.js +5 -0
  218. package/dist/shift-components/{p-b99d645c.entry.js → p-e225d38c.entry.js} +1 -1
  219. package/dist/shift-components/{p-65b612a5.entry.js → p-e3252106.entry.js} +1 -1
  220. package/dist/shift-components/p-f6b6e66e.entry.js +5 -0
  221. package/dist/shift-components/{p-2d250c2c.entry.js → p-f6f9027f.entry.js} +1 -1
  222. package/dist/shift-components/p-veklgezh.js +5 -0
  223. package/dist/shift-components/shift-components.esm.js +1 -1
  224. package/dist/types/components/components/shift-select.d.ts +41 -0
  225. package/dist/types/components/form-elements/form-phone-number.d.ts +19 -3
  226. package/dist/types/components/form-elements/form-select.d.ts +3 -9
  227. package/dist/types/components/forms/defaults/mappers.d.ts +1 -1
  228. package/dist/types/components/forms/defaults/validation.d.ts +1 -3
  229. package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +2 -3
  230. package/dist/types/components/forms/vehicle-quotation/validations.d.ts +3 -3
  231. package/dist/types/components.d.ts +123 -4
  232. package/dist/types/features/form-hook/interface.d.ts +1 -0
  233. package/dist/types/features/form-hook/phone-validator.d.ts +1 -2
  234. package/package.json +1 -1
  235. package/dist/cjs/form-input_4.cjs.entry.js +0 -319
  236. package/dist/cjs/phone-validator-DBP8Hynm.js +0 -4791
  237. package/dist/collection/components/forms/defaults/state-object.js +0 -5
  238. package/dist/components/p-B2UXU4lO.js +0 -5
  239. package/dist/components/p-B882WrlQ.js +0 -5
  240. package/dist/components/p-BKhQwtv6.js +0 -5
  241. package/dist/components/p-BLiZRR3-.js +0 -5
  242. package/dist/components/p-BeL46S5b.js +0 -5
  243. package/dist/components/p-Bru6COhI.js +0 -5
  244. package/dist/components/p-CEXM9vIa.js +0 -5
  245. package/dist/components/p-COtjTa3C.js +0 -5
  246. package/dist/components/p-Cxsxd6jX.js +0 -5
  247. package/dist/components/p-CzuBo570.js +0 -5
  248. package/dist/components/p-DAXzUOtq.js +0 -5
  249. package/dist/components/p-DHQY55KN.js +0 -5
  250. package/dist/components/p-DJ0xfjFN.js +0 -5
  251. package/dist/components/p-DSTKQdoW.js +0 -5
  252. package/dist/components/p-DT2OVZtH.js +0 -5
  253. package/dist/components/p-DYUjesC-.js +0 -5
  254. package/dist/components/p-Dg9H_vUO.js +0 -5
  255. package/dist/components/p-DqOll_wA.js +0 -5
  256. package/dist/components/p-DqPjMHKd.js +0 -5
  257. package/dist/components/p-F2tAV4E8.js +0 -5
  258. package/dist/components/p-KLPAymsW.js +0 -5
  259. package/dist/components/p-d53FlScY.js +0 -5
  260. package/dist/components/p-eCakWzyl.js +0 -5
  261. package/dist/esm/form-input_4.entry.js +0 -314
  262. package/dist/esm/phone-validator-BPJU63Ak.js +0 -4779
  263. package/dist/shift-components/p-26c95935.entry.js +0 -5
  264. package/dist/shift-components/p-3bea5aaa.entry.js +0 -5
  265. package/dist/shift-components/p-3fa2e731.entry.js +0 -5
  266. package/dist/shift-components/p-533ff451.entry.js +0 -5
  267. package/dist/shift-components/p-7PtHUjhE.js +0 -5
  268. package/dist/shift-components/p-7a6621db.entry.js +0 -5
  269. package/dist/shift-components/p-8d4c4317.entry.js +0 -5
  270. package/dist/shift-components/p-8e7e0ca5.entry.js +0 -5
  271. package/dist/shift-components/p-B1_PA5hq.js +0 -5
  272. package/dist/shift-components/p-C5tUvw8g.js +0 -5
  273. package/dist/shift-components/p-CgTEvrEQ.js +0 -5
  274. package/dist/shift-components/p-Cm_2J53u.js +0 -5
  275. package/dist/shift-components/p-cf208379.entry.js +0 -5
  276. package/dist/shift-components/p-ea7f7ffa.entry.js +0 -5
  277. package/dist/shift-components/p-edf3fb47.entry.js +0 -5
  278. package/dist/shift-components/p-ee305b43.entry.js +0 -5
  279. package/dist/shift-components/p-fb23c572.entry.js +0 -5
  280. 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() {
@@ -22,7 +22,7 @@ export class ShiftTabContent {
22
22
  newElement.classList.add('slide-content-in');
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'e2504e858e72f2d191ab1dcbd959a01d7d5e35fb', translate: "no" }, h("flexible-container", { key: '26bb816814b22503ed350a5d4032f6aa3ea9aab8' }, Object.entries(this.components).map(([componentName, component]) => (h("div", { onAnimationEnd: () => this.clearAnimationClasses(componentName), class: cn('!w-full transition !duration-0', `tab-${componentName}`, {
25
+ return (h(Host, { key: 'fb05a73f2ff6d3260b7caeeaeaa79bc990a90a21', translate: "no" }, h("flexible-container", { key: '939e63dfb225498d98d9e8cec42f03d4b51d7a88' }, Object.entries(this.components).map(([componentName, component]) => (h("div", { onAnimationEnd: () => this.clearAnimationClasses(componentName), class: cn('!w-full transition !duration-0', `tab-${componentName}`, {
26
26
  'absolute opacity-0 top-0 !pointer-events-none [&_*]:!pointer-events-none translate-x-[-200%] translate-y-[200%]': componentName !== this.activeComponent,
27
27
  }) }, component))))));
28
28
  }
@@ -6,9 +6,9 @@ import { h } from "@stencil/core";
6
6
  import cn from "../../global/lib/cn";
7
7
  export class ShiftTabs {
8
8
  render() {
9
- return (h("div", { key: 'd54e113bcdfd519318f6045da0b6c0aa0a44edc3', class: this.containerClasses }, h("div", { key: '442468efc6d28553f8d7fe23faaf71f274c34559', class: cn('border-b relative flex mb-[6px] ps-[12px] gap-[4px]', this.tabClasses) }, this.tabs.map((label, idx) => (h("button", { key: label + idx, onClick: () => !(this.activeTabIndex === idx || this.activeTabLabel === label) && this.changeActiveTab({ label, idx }), class: cn('px-[16px] cursor-pointer after:w-full py-[6px] after:h-[1px] after:left-0 after:bottom-0 after:absolute after:bg-white after:opacity-0 after:translate-y-full after:z-10 after:duration-500 after:transition text-[17px] relative transition-colors !border-b-0 duration-500 font-medium text-black bg-[#f6f6f6] border border-gray-200 rounded-t-[4px] focus:outline-none', {
9
+ return (h("div", { key: 'a5a56a5274278345bc12366513fec0c092c201e5', class: this.containerClasses }, h("div", { key: 'ace8f36dd8babfb0b79e075d52899e0c544fd5e6', class: cn('border-b relative flex mb-[6px] ps-[12px] gap-[4px]', this.tabClasses) }, this.tabs.map((label, idx) => (h("button", { key: label + idx, onClick: () => !(this.activeTabIndex === idx || this.activeTabLabel === label) && this.changeActiveTab({ label, idx }), class: cn('px-[16px] cursor-pointer after:w-full py-[6px] after:h-[1px] after:left-0 after:bottom-0 after:absolute after:bg-white after:opacity-0 after:translate-y-full after:z-10 after:duration-500 after:transition text-[17px] relative transition-colors !border-b-0 duration-500 font-medium text-black bg-[#f6f6f6] border border-gray-200 rounded-t-[4px] focus:outline-none', {
10
10
  'bg-white cursor-default after:opacity-100': this.activeTabIndex === idx || this.activeTabLabel === label,
11
- }) }, label)))), h("flexible-container", { key: 'ae9f36c652a180d4a4102c39a8fe2fac8995fe0e' }, h("slot", { key: 'e6c6b39356004f7e1eef4f4c606965595c40c7b2' }))));
11
+ }) }, label)))), h("flexible-container", { key: '7803f0c291093c85cebc9f84e33bcd98d13cb3cd' }, h("slot", { key: '44d2c6539b71057c6023d8bfafe2b2c6a98e4c21' }))));
12
12
  }
13
13
  static get is() { return "shift-tabs"; }
14
14
  static get originalStyleUrls() {
@@ -7,7 +7,9 @@ import cn from "../../../global/lib/cn";
7
7
  export const FormInputPrefix = ({ direction, prefix, name }) => {
8
8
  if (!prefix)
9
9
  return false;
10
- return (h("div", { dir: direction, class: "form-input-prefix", part: cn('form-input-prefix', {
10
+ return (h("div", { dir: direction, class: cn('form-input-prefix', {
11
+ [`${name}-prefix`]: !!name,
12
+ }), part: cn('form-input-prefix', {
11
13
  [`${name}-prefix`]: !!name,
12
14
  }) }, prefix));
13
15
  };
@@ -28,7 +28,7 @@ export class FormCheckbox {
28
28
  render() {
29
29
  const { disabled, meta, errorMessage, isError } = this.form.getInputState(this.name);
30
30
  const { label, errorTextMessage } = getInputLocalization(this, meta, errorMessage);
31
- return (h(Host, { key: '1f39a1d7bd88114acd3515b28ed18caf69cec1ce', translate: "no" }, h("div", { key: '42e12d17027f8e475525711a108af678376eacfe', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h("div", { key: '05c198ec2b5e3b1b6c1e718c83127aed49755751', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("shift-checkbox", { key: '8664d270f9895dcb4dd89050a561ae900737419a', name: this.name, label: label, class: "form-checkbox" })), h(FormErrorMessage, { key: 'de5837cef7edc257a5b63c40ae1b5f105d0baebc', name: this.name, isError: isError, errorMessage: errorTextMessage }))));
31
+ return (h(Host, { key: 'ea82df7ac72163a1c0bd9c8c53f5b295d7ec5ebb', translate: "no" }, h("div", { key: 'b244a04294d090892807133ba36299a24c8d2334', part: this.name, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h("div", { key: 'b4cd00753e462162f92556c7e77d1327e76ddbd7', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("shift-checkbox", { key: 'cb2eabb31194c6c17ed16bc35882ec8a9ecec33e', name: this.name, label: label, class: "form-checkbox" })), h(FormErrorMessage, { key: '57f6e15f89da65bb428eb1c2bd6727a4a1b3bc3e', name: this.name, isError: isError, errorMessage: errorTextMessage }))));
32
32
  }
33
33
  static get is() { return "form-checkbox"; }
34
34
  static get originalStyleUrls() {