@redneckz/wildless-cms-uni-blocks 0.14.875 → 0.14.877

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 (399) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +4 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +264 -136
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  6. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  7. package/bundle/components/Header/DropdownButton.d.ts +2 -0
  8. package/bundle/components/Header/DropdownMenu.d.ts +5 -2
  9. package/bundle/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  10. package/bundle/components/Header/HeaderSubMenuItem.d.ts +3 -0
  11. package/bundle/components/Header/useDropdownSubMenu.d.ts +11 -0
  12. package/bundle/data/NavigationData.d.ts +1 -0
  13. package/bundle/hooks/useInn.d.ts +7 -0
  14. package/bundle/model/FormTypeFieldDef.d.ts +1 -1
  15. package/bundle/retail/components/Fields/SelectField.d.ts +1 -0
  16. package/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  17. package/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  18. package/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  19. package/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  20. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  21. package/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  22. package/bundle/ui-kit/FormField/validators.d.ts +8 -1
  23. package/bundle/ui-kit/Select/Option.d.ts +6 -0
  24. package/bundle/ui-kit/Select/Select.d.ts +2 -0
  25. package/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
  26. package/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
  27. package/dist/api/LeadServiceAPI.d.ts +4 -0
  28. package/dist/api/LeadServiceAPI.js +13 -6
  29. package/dist/api/LeadServiceAPI.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  31. package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
  32. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  33. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  34. package/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
  35. package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
  36. package/dist/components/Header/DropdownButton.d.ts +2 -0
  37. package/dist/components/Header/DropdownButton.js +11 -0
  38. package/dist/components/Header/DropdownButton.js.map +1 -0
  39. package/dist/components/Header/DropdownMenu.d.ts +5 -2
  40. package/dist/components/Header/DropdownMenu.js +2 -36
  41. package/dist/components/Header/DropdownMenu.js.map +1 -1
  42. package/dist/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  43. package/dist/components/Header/HeaderMoreMenuItem.js +27 -0
  44. package/dist/components/Header/HeaderMoreMenuItem.js.map +1 -0
  45. package/dist/components/Header/HeaderSubMenu.js +2 -2
  46. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  47. package/dist/components/Header/HeaderSubMenuItem.d.ts +3 -0
  48. package/dist/components/Header/HeaderSubMenuItem.js +19 -2
  49. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  50. package/dist/components/Header/HeaderTopMenu.js +2 -2
  51. package/dist/components/Header/HeaderTopMenu.js.map +1 -1
  52. package/dist/components/Header/useDropdownSubMenu.d.ts +11 -0
  53. package/dist/components/Header/useDropdownSubMenu.js +37 -0
  54. package/dist/components/Header/useDropdownSubMenu.js.map +1 -0
  55. package/dist/data/NavigationData.d.ts +1 -0
  56. package/dist/hooks/useInn.d.ts +7 -0
  57. package/dist/hooks/useInn.js +11 -0
  58. package/dist/hooks/useInn.js.map +1 -0
  59. package/dist/model/FormTypeFieldDef.d.ts +1 -1
  60. package/dist/retail/components/Fields/SelectField.d.ts +1 -0
  61. package/dist/retail/components/Fields/SelectField.js.map +1 -1
  62. package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  63. package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
  64. package/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
  65. package/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  66. package/{mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js → dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
  67. package/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
  68. package/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  69. package/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
  70. package/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
  71. package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  72. package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
  73. package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
  74. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  75. package/dist/ui-kit/FormField/getField.js +12 -2
  76. package/dist/ui-kit/FormField/getField.js.map +1 -1
  77. package/dist/ui-kit/FormField/getObjectValidator.js +3 -0
  78. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  79. package/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  80. package/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
  81. package/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
  82. package/dist/ui-kit/FormField/validators.d.ts +8 -1
  83. package/dist/ui-kit/FormField/validators.js +5 -2
  84. package/dist/ui-kit/FormField/validators.js.map +1 -1
  85. package/dist/ui-kit/Select/Option.d.ts +6 -0
  86. package/dist/ui-kit/Select/Select.d.ts +2 -0
  87. package/dist/ui-kit/Select/Select.js +27 -5
  88. package/dist/ui-kit/Select/Select.js.map +1 -1
  89. package/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
  90. package/dist/ui-kit/Select/SelectPopup.js +4 -2
  91. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  92. package/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
  93. package/dist/ui-kit/Select/useSelectPopup.js +3 -2
  94. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  95. package/lib/api/LeadServiceAPI.d.ts +4 -0
  96. package/lib/api/LeadServiceAPI.js +13 -6
  97. package/lib/api/LeadServiceAPI.js.map +1 -1
  98. package/lib/common.css +1 -1
  99. package/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  100. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  101. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  102. package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
  103. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  105. package/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
  106. package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
  107. package/lib/components/Header/DropdownButton.d.ts +2 -0
  108. package/lib/components/Header/DropdownButton.js +9 -0
  109. package/lib/components/Header/DropdownButton.js.map +1 -0
  110. package/lib/components/Header/DropdownMenu.d.ts +5 -2
  111. package/lib/components/Header/DropdownMenu.js +2 -37
  112. package/lib/components/Header/DropdownMenu.js.map +1 -1
  113. package/lib/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  114. package/lib/components/Header/HeaderMoreMenuItem.js +25 -0
  115. package/lib/components/Header/HeaderMoreMenuItem.js.map +1 -0
  116. package/lib/components/Header/HeaderSubMenu.js +2 -2
  117. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  118. package/lib/components/Header/HeaderSubMenuItem.d.ts +3 -0
  119. package/lib/components/Header/HeaderSubMenuItem.js +20 -3
  120. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  121. package/lib/components/Header/HeaderTopMenu.js +2 -2
  122. package/lib/components/Header/HeaderTopMenu.js.map +1 -1
  123. package/lib/components/Header/useDropdownSubMenu.d.ts +11 -0
  124. package/lib/components/Header/useDropdownSubMenu.js +34 -0
  125. package/lib/components/Header/useDropdownSubMenu.js.map +1 -0
  126. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  127. package/lib/data/NavigationData.d.ts +1 -0
  128. package/lib/hooks/useInn.d.ts +7 -0
  129. package/lib/hooks/useInn.js +8 -0
  130. package/lib/hooks/useInn.js.map +1 -0
  131. package/lib/model/FormTypeFieldDef.d.ts +1 -1
  132. package/lib/retail/components/Fields/SelectField.d.ts +1 -0
  133. package/lib/retail/components/Fields/SelectField.js.map +1 -1
  134. package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  135. package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
  136. package/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
  137. package/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  138. package/lib/ui-kit/FormField/Fields/{RegionPremiumField.js → FullRegionField.js} +4 -3
  139. package/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
  140. package/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  141. package/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
  142. package/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
  143. package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  144. package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
  145. package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
  146. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  147. package/lib/ui-kit/FormField/getField.js +12 -2
  148. package/lib/ui-kit/FormField/getField.js.map +1 -1
  149. package/lib/ui-kit/FormField/getObjectValidator.js +4 -1
  150. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  151. package/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  152. package/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
  153. package/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
  154. package/lib/ui-kit/FormField/validators.d.ts +8 -1
  155. package/lib/ui-kit/FormField/validators.js +3 -1
  156. package/lib/ui-kit/FormField/validators.js.map +1 -1
  157. package/lib/ui-kit/Select/Option.d.ts +6 -0
  158. package/lib/ui-kit/Select/Select.d.ts +2 -0
  159. package/lib/ui-kit/Select/Select.js +28 -6
  160. package/lib/ui-kit/Select/Select.js.map +1 -1
  161. package/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
  162. package/lib/ui-kit/Select/SelectPopup.js +4 -2
  163. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  164. package/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
  165. package/lib/ui-kit/Select/useSelectPopup.js +3 -2
  166. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  167. package/mobile/bundle/api/LeadServiceAPI.d.ts +4 -0
  168. package/mobile/bundle/bundle.umd.js +187 -91
  169. package/mobile/bundle/bundle.umd.min.js +1 -1
  170. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  171. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  172. package/mobile/bundle/components/Header/DropdownButton.d.ts +2 -0
  173. package/mobile/bundle/components/Header/DropdownMenu.d.ts +5 -2
  174. package/mobile/bundle/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  175. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +3 -0
  176. package/mobile/bundle/components/Header/useDropdownSubMenu.d.ts +11 -0
  177. package/mobile/bundle/data/NavigationData.d.ts +1 -0
  178. package/mobile/bundle/hooks/useInn.d.ts +7 -0
  179. package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
  180. package/mobile/bundle/retail/components/Fields/SelectField.d.ts +1 -0
  181. package/mobile/bundle/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  182. package/mobile/bundle/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  183. package/mobile/bundle/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  184. package/mobile/bundle/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  185. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  186. package/mobile/bundle/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  187. package/mobile/bundle/ui-kit/FormField/validators.d.ts +8 -1
  188. package/mobile/bundle/ui-kit/Select/Option.d.ts +6 -0
  189. package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
  190. package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +1 -0
  191. package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +2 -1
  192. package/mobile/dist/api/LeadServiceAPI.d.ts +4 -0
  193. package/mobile/dist/api/LeadServiceAPI.js +13 -6
  194. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  195. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  196. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
  197. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
  200. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
  201. package/mobile/dist/components/Header/DropdownButton.d.ts +2 -0
  202. package/mobile/dist/components/Header/DropdownButton.js +11 -0
  203. package/mobile/dist/components/Header/DropdownButton.js.map +1 -0
  204. package/mobile/dist/components/Header/DropdownMenu.d.ts +5 -2
  205. package/mobile/dist/components/Header/DropdownMenu.js +2 -36
  206. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  207. package/mobile/dist/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  208. package/mobile/dist/components/Header/HeaderMoreMenuItem.js +27 -0
  209. package/mobile/dist/components/Header/HeaderMoreMenuItem.js.map +1 -0
  210. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -2
  211. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  212. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +3 -0
  213. package/mobile/dist/components/Header/HeaderSubMenuItem.js +19 -2
  214. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  215. package/mobile/dist/components/Header/HeaderTopMenu.js +2 -2
  216. package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
  217. package/mobile/dist/components/Header/useDropdownSubMenu.d.ts +11 -0
  218. package/mobile/dist/components/Header/useDropdownSubMenu.js +37 -0
  219. package/mobile/dist/components/Header/useDropdownSubMenu.js.map +1 -0
  220. package/mobile/dist/data/NavigationData.d.ts +1 -0
  221. package/mobile/dist/hooks/useInn.d.ts +7 -0
  222. package/mobile/dist/hooks/useInn.js +11 -0
  223. package/mobile/dist/hooks/useInn.js.map +1 -0
  224. package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
  225. package/mobile/dist/retail/components/Fields/SelectField.d.ts +1 -0
  226. package/mobile/dist/retail/components/Fields/SelectField.js.map +1 -1
  227. package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  228. package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js +17 -0
  229. package/mobile/dist/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
  230. package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  231. package/{dist/ui-kit/FormField/Fields/RegionPremiumField.js → mobile/dist/ui-kit/FormField/Fields/FullRegionField.js} +5 -4
  232. package/mobile/dist/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
  233. package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  234. package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js +29 -0
  235. package/mobile/dist/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
  236. package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  237. package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +19 -0
  238. package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
  239. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  240. package/mobile/dist/ui-kit/FormField/getField.js +12 -2
  241. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  242. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -0
  243. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  244. package/mobile/dist/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  245. package/mobile/dist/ui-kit/FormField/inputColumnStyle.js +1 -1
  246. package/mobile/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
  247. package/mobile/dist/ui-kit/FormField/validators.d.ts +8 -1
  248. package/mobile/dist/ui-kit/FormField/validators.js +5 -2
  249. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  250. package/mobile/dist/ui-kit/Select/Option.d.ts +6 -0
  251. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
  252. package/mobile/dist/ui-kit/Select/Select.js +27 -5
  253. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  254. package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +1 -0
  255. package/mobile/dist/ui-kit/Select/SelectPopup.js +4 -2
  256. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  257. package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +2 -1
  258. package/mobile/dist/ui-kit/Select/useSelectPopup.js +3 -2
  259. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  260. package/mobile/lib/api/LeadServiceAPI.d.ts +4 -0
  261. package/mobile/lib/api/LeadServiceAPI.js +13 -6
  262. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  263. package/mobile/lib/common.css +1 -1
  264. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +2 -3
  265. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
  266. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  267. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +5 -1
  268. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
  269. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -1
  270. package/mobile/lib/components/Header/DropdownButton.d.ts +2 -0
  271. package/mobile/lib/components/Header/DropdownButton.js +9 -0
  272. package/mobile/lib/components/Header/DropdownButton.js.map +1 -0
  273. package/mobile/lib/components/Header/DropdownMenu.d.ts +5 -2
  274. package/mobile/lib/components/Header/DropdownMenu.js +2 -37
  275. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  276. package/mobile/lib/components/Header/HeaderMoreMenuItem.d.ts +9 -0
  277. package/mobile/lib/components/Header/HeaderMoreMenuItem.js +25 -0
  278. package/mobile/lib/components/Header/HeaderMoreMenuItem.js.map +1 -0
  279. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -2
  280. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  281. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +3 -0
  282. package/mobile/lib/components/Header/HeaderSubMenuItem.js +20 -3
  283. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  284. package/mobile/lib/components/Header/HeaderTopMenu.js +2 -2
  285. package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
  286. package/mobile/lib/components/Header/useDropdownSubMenu.d.ts +11 -0
  287. package/mobile/lib/components/Header/useDropdownSubMenu.js +34 -0
  288. package/mobile/lib/components/Header/useDropdownSubMenu.js.map +1 -0
  289. package/mobile/lib/data/NavigationData.d.ts +1 -0
  290. package/mobile/lib/hooks/useInn.d.ts +7 -0
  291. package/mobile/lib/hooks/useInn.js +8 -0
  292. package/mobile/lib/hooks/useInn.js.map +1 -0
  293. package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
  294. package/mobile/lib/retail/components/Fields/SelectField.d.ts +1 -0
  295. package/mobile/lib/retail/components/Fields/SelectField.js.map +1 -1
  296. package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.d.ts +2 -0
  297. package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js +15 -0
  298. package/mobile/lib/ui-kit/FormField/Fields/CompanyNameByInnField.js.map +1 -0
  299. package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.d.ts +5 -0
  300. package/mobile/lib/ui-kit/FormField/Fields/{RegionPremiumField.js → FullRegionField.js} +4 -3
  301. package/mobile/lib/ui-kit/FormField/Fields/FullRegionField.js.map +1 -0
  302. package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.d.ts +2 -0
  303. package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js +27 -0
  304. package/mobile/lib/ui-kit/FormField/Fields/InnDadataField.js.map +1 -0
  305. package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.d.ts +15 -0
  306. package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +17 -0
  307. package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js.map +1 -0
  308. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  309. package/mobile/lib/ui-kit/FormField/getField.js +12 -2
  310. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  311. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -1
  312. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  313. package/mobile/lib/ui-kit/FormField/inputColumnStyle.d.ts +1 -1
  314. package/mobile/lib/ui-kit/FormField/inputColumnStyle.js +1 -1
  315. package/mobile/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
  316. package/mobile/lib/ui-kit/FormField/validators.d.ts +8 -1
  317. package/mobile/lib/ui-kit/FormField/validators.js +3 -1
  318. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  319. package/mobile/lib/ui-kit/Select/Option.d.ts +6 -0
  320. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
  321. package/mobile/lib/ui-kit/Select/Select.js +28 -6
  322. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  323. package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +1 -0
  324. package/mobile/lib/ui-kit/Select/SelectPopup.js +4 -2
  325. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  326. package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +2 -1
  327. package/mobile/lib/ui-kit/Select/useSelectPopup.js +3 -2
  328. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  329. package/mobile/src/api/LeadServiceAPI.ts +28 -3
  330. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
  331. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
  332. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
  333. package/mobile/src/components/Header/DropdownButton.tsx +26 -0
  334. package/mobile/src/components/Header/DropdownMenu.tsx +15 -85
  335. package/mobile/src/components/Header/HeaderMoreMenuItem.tsx +60 -0
  336. package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -2
  337. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +31 -5
  338. package/mobile/src/components/Header/HeaderTopMenu.tsx +3 -3
  339. package/mobile/src/components/Header/useDropdownSubMenu.tsx +48 -0
  340. package/mobile/src/data/NavigationData.ts +1 -0
  341. package/mobile/src/hooks/useInn.ts +16 -0
  342. package/mobile/src/model/FormTypeFieldDef.ts +2 -1
  343. package/mobile/src/retail/components/Fields/SelectField.tsx +1 -0
  344. package/mobile/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
  345. package/mobile/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
  346. package/mobile/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
  347. package/mobile/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
  348. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  349. package/mobile/src/ui-kit/FormField/getField.tsx +15 -2
  350. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
  351. package/mobile/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
  352. package/mobile/src/ui-kit/FormField/validators.ts +13 -1
  353. package/mobile/src/ui-kit/Select/Option.ts +6 -0
  354. package/mobile/src/ui-kit/Select/Select.tsx +71 -17
  355. package/mobile/src/ui-kit/Select/SelectPopup.tsx +20 -2
  356. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +4 -0
  357. package/package.json +2 -2
  358. package/src/api/LeadServiceAPI.ts +28 -3
  359. package/src/components/ApplicationForm/ApplicationForm.example.json +84 -0
  360. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +47 -0
  361. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +47 -0
  362. package/src/components/ApplicationForm/ApplicationForm.tsx +29 -14
  363. package/src/components/ApplicationForm/ApplicationFormContent.ts +6 -4
  364. package/src/components/Header/DropdownButton.tsx +26 -0
  365. package/src/components/Header/DropdownMenu.tsx +15 -85
  366. package/src/components/Header/Header.fixture.tsx +4 -0
  367. package/src/components/Header/HeaderMoreMenuItem.tsx +60 -0
  368. package/src/components/Header/HeaderSubMenu.tsx +3 -2
  369. package/src/components/Header/HeaderSubMenuItem.tsx +31 -5
  370. package/src/components/Header/HeaderTopMenu.tsx +3 -3
  371. package/src/components/Header/useDropdownSubMenu.tsx +48 -0
  372. package/src/data/NavigationData.ts +1 -0
  373. package/src/hooks/useInn.ts +16 -0
  374. package/src/icons/IconName.ts +4 -4
  375. package/src/model/FormTypeFieldDef.ts +2 -1
  376. package/src/retail/components/Fields/SelectField.tsx +1 -0
  377. package/src/ui-kit/FormField/Fields/CompanyNameByInnField.tsx +24 -0
  378. package/src/ui-kit/FormField/Fields/{RegionPremiumField.tsx → FullRegionField.tsx} +7 -2
  379. package/src/ui-kit/FormField/Fields/InnDadataField.tsx +47 -0
  380. package/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +47 -0
  381. package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  382. package/src/ui-kit/FormField/getField.tsx +15 -2
  383. package/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
  384. package/src/ui-kit/FormField/inputColumnStyle.tsx +1 -1
  385. package/src/ui-kit/FormField/validators.ts +13 -1
  386. package/src/ui-kit/Select/Option.ts +6 -0
  387. package/src/ui-kit/Select/Select.tsx +71 -17
  388. package/src/ui-kit/Select/SelectPopup.tsx +20 -2
  389. package/src/ui-kit/Select/useSelectPopup.tsx +4 -0
  390. package/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  391. package/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  392. package/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
  393. package/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  394. package/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
  395. package/mobile/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  396. package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  397. package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
  398. package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +0 -2
  399. package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +0 -1
@@ -1,6 +1,5 @@
1
1
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type ApplicationFormContent } from './ApplicationFormContent';
3
- interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
3
+ export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
4
4
  }
5
- export declare const ApplicationForm: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormProps, any, any>;
6
- export {};
5
+ export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
@@ -54,11 +54,15 @@ declare type productType = {
54
54
  /** @title Продукт */
55
55
  product?: string;
56
56
  };
57
+ declare type premiumForm = {
58
+ /** @title Форма для премиума */
59
+ isPremium?: boolean;
60
+ };
57
61
  /**
58
62
  * @title Отображать выбор продукта
59
63
  * @default { "showProduct": "" }
60
64
  */
61
- declare type additionalParamsType = hideProductDef | showProductDef;
65
+ export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
62
66
  /**
63
67
  * @title Форма заявки настраиваемая
64
68
  */
@@ -0,0 +1,2 @@
1
+ import { type ButtonProps } from '../../ui-kit/Button/Button';
2
+ export declare const DropdownButton: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
@@ -1,11 +1,14 @@
1
1
  import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
3
  interface DropdownMenuProps extends ComponentType {
4
- items: LinkProps[];
4
+ dropdownRef?: {
5
+ current: HTMLDivElement | null;
6
+ };
7
+ items?: LinkProps[];
5
8
  activeItem?: LinkProps;
6
9
  ariaLabel?: string;
7
10
  }
8
- export declare const DropdownMenu: import("@redneckz/uni-jsx").UNIComponent<DropdownMenuProps, any, any>;
11
+ export declare const DropdownMenu: ({ dropdownRef, items, activeItem, ariaLabel, }: DropdownMenuProps) => any;
9
12
  export declare const DropdownMenuItem: import("@redneckz/uni-jsx").UNIComponent<LinkProps & {
10
13
  isActive?: boolean | undefined;
11
14
  }, any, any>;
@@ -0,0 +1,9 @@
1
+ import { type ComponentType } from '../../model/ComponentType';
2
+ import { type LinkProps } from '../../model/LinkProps';
3
+ interface HeaderMoreMenuItemProps extends ComponentType {
4
+ items: LinkProps[];
5
+ activeItem?: LinkProps;
6
+ ariaLabel?: string;
7
+ }
8
+ export declare const HeaderMoreMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderMoreMenuItemProps, any, any>;
9
+ export {};
@@ -1,9 +1,12 @@
1
+ import { type NavigationLinkProps } from '../../data/NavigationData';
1
2
  import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
2
3
  import { type ComponentType } from '../../model/ComponentType';
3
4
  import { type LinkProps } from '../../model/LinkProps';
4
5
  export interface HeaderSubMenuItemProps extends LinkProps, ComponentType {
5
6
  active?: boolean;
7
+ activeItem?: LinkProps;
6
8
  observerOptions?: IntersectionObserverOptions;
7
9
  onVisibilityChange?: (isIntersecting: boolean) => void;
10
+ items?: NavigationLinkProps[];
8
11
  }
9
12
  export declare const HeaderSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderSubMenuItemProps, any, any>;
@@ -0,0 +1,11 @@
1
+ import { type LinkProps } from '../../model/LinkProps';
2
+ import type { OnCloseProps } from '../../model/OnCloseProps';
3
+ interface DropdownSubMenuOptions extends OnCloseProps {
4
+ isOpen?: boolean;
5
+ activeItem?: LinkProps;
6
+ items?: LinkProps[];
7
+ }
8
+ export declare function useDropdownSubMenu({ items, activeItem, onClose, isOpen }: DropdownSubMenuOptions): {
9
+ current: HTMLDivElement | null;
10
+ };
11
+ export {};
@@ -5,6 +5,7 @@ export interface NavigationLinkProps extends LinkProps {
5
5
  displayArea?: string;
6
6
  dataHeader?: AspectsDef[];
7
7
  dataFooter?: AspectsDef[];
8
+ items?: NavigationLinkProps[];
8
9
  }
9
10
  /**
10
11
  * @title Ссылка
@@ -0,0 +1,7 @@
1
+ interface InnHint {
2
+ fullName?: string;
3
+ address?: string;
4
+ inn?: string;
5
+ }
6
+ export declare const useInn: (searchQuery: string) => Promise<InnHint[]>;
7
+ export {};
@@ -1,2 +1,2 @@
1
1
  /** @hidden */
2
- export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN';
2
+ export declare type FormTypeFieldDef = '' | 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'FEEDBACK' | 'FEEDBACK_QS' | 'OUTSERVICE' | 'FCB' | 'CREDL' | 'CONT' | 'SUPPORT' | 'INVESTADVISER' | 'FINOMBUDSMAN' | 'PF';
@@ -8,5 +8,6 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps, Label
8
8
  source?: DictionaryItem[];
9
9
  fieldName: string;
10
10
  isSearch?: boolean;
11
+ isManualInput?: boolean;
11
12
  }
12
13
  export declare const SelectField: import("../../../UniBlock/UniBlock").UniBlockComponent<SelectFieldProps>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const CompanyNameByInnField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,5 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export interface FullRegionFieldProps extends CustomFieldProps {
3
+ isPremium?: boolean;
4
+ }
5
+ export declare const FullRegionField: import("@redneckz/uni-jsx").UNIComponent<FullRegionFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from '../CustomFieldProps';
2
+ export declare const InnDadataField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,15 @@
1
+ import type { JSONRefObject } from '../../../data/JSONRefObject';
2
+ import type { UniBlockProps } from '../../../UniBlock/UniBlockProps';
3
+ import { type CustomFieldProps } from '../CustomFieldProps';
4
+ export interface PartnerSymbolCodeFieldProps extends CustomFieldProps, UniBlockProps {
5
+ source?: JSONRefObject & {
6
+ agentsList?: AgentType[];
7
+ };
8
+ }
9
+ export declare type AgentType = {
10
+ isActive?: boolean;
11
+ symbolCode?: string;
12
+ ID?: string;
13
+ agentName?: string;
14
+ };
15
+ export declare const PartnerSymbolCodeField: import("../../../UniBlock/UniBlock").UniBlockComponent<PartnerSymbolCodeFieldProps>;
@@ -1,3 +1,3 @@
1
- declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing';
1
+ declare type NameFieldApplicationDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'fullRegion' | 'region' | 'addressBranch' | 'typeForm' | 'registrationDate' | 'birthday' | 'isClient' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'sufferedFrom' | 'situationDescription' | 'applierType' | 'representativeName' | 'regionBranch' | 'consentToReceiveMaterials' | 'consentDataProcessing' | 'partnerSymbolCode' | 'innDadata' | 'companyNameByInn';
2
2
  export declare type NameFieldDef = NameFieldApplicationDef;
3
3
  export {};
@@ -1,2 +1,2 @@
1
1
  import { type ColumnsCount } from '../../model/ColumnCount';
2
- export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "" | "@xl:grid-cols-2";
2
+ export declare const inputColumnStyles: (column: ColumnsCount | undefined) => "@xl:grid-cols-2" | "@xl:grid-cols-1 gap-x-0";
@@ -1,8 +1,15 @@
1
+ interface DadataItem {
2
+ text?: string;
3
+ key?: string;
4
+ innDaData?: any;
5
+ }
1
6
  export declare const defaultValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
2
7
  export declare const defaultSelectValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
3
8
  export declare const nameValidator: (errorMsg?: string) => import("../../validation/validator").Validator<any>;
4
- export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<any>;
9
+ export declare const innValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
10
+ export declare const innDadataValidator: (errorMsg: string) => import("../../validation/validator").Validator<DadataItem>;
5
11
  export declare const phoneValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
6
12
  export declare const phoneOptionalValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
7
13
  export declare const agreementValidator: import("../../validation/validator").Validator<any>;
8
14
  export declare const emailValidator: (errorMsg: string) => import("../../validation/validator").Validator<string>;
15
+ export {};
@@ -1,4 +1,10 @@
1
1
  import type { TextProps } from '../../model/HeadlineType';
2
+ declare type companyData = {
3
+ companyName?: string;
4
+ companyAddress?: string;
5
+ };
2
6
  export declare type Option = TextProps & {
3
7
  key: string;
8
+ innDaData?: companyData;
4
9
  };
10
+ export {};
@@ -7,6 +7,8 @@ export interface SelectProps extends DefaultControlType, ControlProps<Option> {
7
7
  valid?: boolean;
8
8
  isBorder?: boolean;
9
9
  isSearch?: boolean;
10
+ isManualInput?: boolean;
10
11
  iconVersion?: IconVersion;
12
+ onSearchQuery?: (value: string) => void;
11
13
  }
12
14
  export declare const Select: import("@redneckz/uni-jsx").UNIComponent<SelectProps, any, any>;
@@ -8,5 +8,6 @@ export interface SelectPopupProps extends ControlProps<Option> {
8
8
  current: HTMLDivElement | null;
9
9
  };
10
10
  query?: string;
11
+ onChangeQuery?: (value: string) => void;
11
12
  }
12
13
  export declare const SelectPopup: import("@redneckz/uni-jsx").UNIComponent<SelectPopupProps, any, any>;
@@ -2,8 +2,9 @@ import type { OnCloseProps } from '../../model/OnCloseProps';
2
2
  import { type SelectPopupProps } from './SelectPopup';
3
3
  interface SelectPopupOptions extends SelectPopupProps, OnCloseProps {
4
4
  isOpen?: boolean;
5
+ onChangeQuery?: (value: string) => void;
5
6
  }
6
- export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }: SelectPopupOptions): {
7
+ export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, onChangeQuery, }: SelectPopupOptions): {
7
8
  current: HTMLDivElement | null;
8
9
  };
9
10
  export {};
@@ -5,7 +5,11 @@ export declare type LeadRequest = Record<string, JSONRecord | JSONScalar | null>
5
5
  phone?: string;
6
6
  email?: string;
7
7
  inn?: string;
8
+ innDadata?: string;
9
+ fullRegion?: string;
8
10
  secondaryPhoneNumber?: string;
11
+ partnerSymbolCode?: string;
12
+ companyNameByInn?: string;
9
13
  };
10
14
  export declare function LeadServiceAPI(): {
11
15
  send: (body: LeadRequest, isIndividualType?: boolean) => Promise<any>;
@@ -5,7 +5,7 @@ const formatPhone_1 = require("../utils/formatPhone");
5
5
  const apiBaseUrl_1 = require("./apiBaseUrl");
6
6
  function LeadServiceAPI() {
7
7
  async function send(body, isIndividualType = false) {
8
- const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
8
+ const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, innDadata, fullRegion, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, partnerSymbolCode, companyNameByInn, ...staticBody } = body;
9
9
  const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
10
10
  const url = `${apiBaseUrl_1.API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
11
11
  const submitBody = {
@@ -23,6 +23,7 @@ function LeadServiceAPI() {
23
23
  applicationDate,
24
24
  ...getSecondaryPhone(secondaryPhone),
25
25
  }),
26
+ ...formatPFForm(typeForm, { innDadata, fullRegion, partnerSymbolCode, companyNameByInn }),
26
27
  ...staticBody,
27
28
  };
28
29
  try {
@@ -54,9 +55,15 @@ const getRegion = (region, isNaturalPerson = true) => ({
54
55
  const getEmail = (email, isNaturalPerson = true) => ({
55
56
  [isNaturalPerson ? 'email' : 'mail']: email,
56
57
  });
57
- const getSecondaryPhone = (secondaryPhone = '') => {
58
- return !secondaryPhone || secondaryPhone === '+7 ('
59
- ? {}
60
- : { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
61
- };
58
+ const getSecondaryPhone = (secondaryPhone = '') => !secondaryPhone || secondaryPhone === '+7 ('
59
+ ? {}
60
+ : { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
61
+ const formatPFForm = (typeForm, data) => typeForm === 'PF'
62
+ ? {
63
+ inn: data?.innDadata,
64
+ region: data?.fullRegion,
65
+ partnerComments: data?.partnerSymbolCode,
66
+ fullname: data?.companyNameByInn,
67
+ }
68
+ : {};
62
69
  //# sourceMappingURL=LeadServiceAPI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sDAAmD;AACnD,6CAA4C;AAW5C,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,IAAiB,EAAE,gBAAgB,GAAG,KAAK;QAC7D,MAAM,EACJ,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5C,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,CAChD,CAAC,cAAc,IAAI,cAAc,KAAK,MAAM;IAC1C,CAAC,CAAC,EAAE;IACJ,CAAC,CAAC,EAAE,oBAAoB,EAAE,IAAA,yBAAW,EAAC,cAAc,CAAC,EAAE,CAAC;AAE5D,MAAM,YAAY,GAAG,CAAC,QAAiB,EAAE,IAAiB,EAAE,EAAE,CAC5D,QAAQ,KAAK,IAAI;IACf,CAAC,CAAC;QACE,GAAG,EAAE,IAAI,EAAE,SAAS;QACpB,MAAM,EAAE,IAAI,EAAE,UAAU;QACxB,eAAe,EAAE,IAAI,EAAE,iBAAiB;QACxC,QAAQ,EAAE,IAAI,EAAE,gBAAgB;KACjC;IACH,CAAC,CAAC,EAAE,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type ApplicationFormContent } from './ApplicationFormContent';
3
- interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
3
+ export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {
4
4
  }
5
- export declare const ApplicationForm: import("@redneckz/uni-jsx").UNIComponent<ApplicationFormProps, any, any>;
6
- export {};
5
+ export declare const ApplicationForm: import("../../UniBlock/UniBlock").UniBlockComponent<ApplicationFormProps>;
@@ -1,7 +1,6 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ApplicationForm = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
4
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
5
  const LeadServiceAPI_1 = require("../../api/LeadServiceAPI");
7
6
  const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
@@ -15,13 +14,14 @@ const getObjectValidator_1 = require("../../ui-kit/FormField/getObjectValidator"
15
14
  const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
16
15
  const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
17
16
  const ResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/ResponseTypeDialog");
17
+ const UniBlock_1 = require("../../UniBlock/UniBlock");
18
18
  const style_1 = require("../../utils/style");
19
19
  const getFormatData_1 = require("./getFormatData");
20
20
  const getInitialFormState_1 = require("./getInitialFormState");
21
21
  const renderAgreementSubmit_1 = require("./renderAgreementSubmit");
22
22
  const renderContacts_1 = require("./renderContacts");
23
23
  const API = (0, LeadServiceAPI_1.LeadServiceAPI)();
24
- exports.ApplicationForm = (0, uni_jsx_1.JSX)(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
24
+ exports.ApplicationForm = (0, UniBlock_1.UniBlock)(({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
25
25
  const inputs = (0, hooks_1.useMemo)(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
26
26
  const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, typeForm), [inputs, typeForm]);
27
27
  const formValidator = (0, hooks_1.useMemo)(() => (0, getObjectValidator_1.getFormValidator)(inputs), [inputs]);
@@ -41,6 +41,7 @@ exports.ApplicationForm = (0, uni_jsx_1.JSX)(({ className, title, typeForm = '',
41
41
  onSubmit: handleSubmit,
42
42
  });
43
43
  const fieldName = (0, getConsentDataProcessing_1.getConsentDataProcessing)(inputs)?.name;
44
- return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field, { typeForm }))] }, `section-${i}`))), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
44
+ return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
45
45
  });
46
+ const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (_?.inputs || [])?.map((0, getField_1.getField)(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
46
47
  //# sourceMappingURL=ApplicationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAmE;AACnE,6DAA0D;AAC1D,wEAAqE;AACrE,kEAA+D;AAC/D,yDAAsD;AACtD,oGAAiG;AACjG,oEAAiE;AACjE,8FAA2F;AAC3F,8DAA2D;AAC3D,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AAEjE,2FAAwF;AAExF,6CAA0C;AAE1C,mDAAgD;AAChD,+DAA4E;AAC5E,mEAAgE;AAChE,qDAAkD;AAIlD,MAAM,GAAG,GAAG,IAAA,+BAAc,GAAE,CAAC;AAEhB,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,KAAK,EACL,QAA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AAC;AAEF,MAAM,cAAc,GAAG,CACrB,QAAyB,EACzB,KAA+C,EAC/C,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAClD,EAAE,CACF,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACrF,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAA,mBAAQ,EAAW,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC,KAF7E,WAAW,CAAC,EAAE,CAGlB,CACP,CAAC,CAAC"}
@@ -54,11 +54,15 @@ declare type productType = {
54
54
  /** @title Продукт */
55
55
  product?: string;
56
56
  };
57
+ declare type premiumForm = {
58
+ /** @title Форма для премиума */
59
+ isPremium?: boolean;
60
+ };
57
61
  /**
58
62
  * @title Отображать выбор продукта
59
63
  * @default { "showProduct": "" }
60
64
  */
61
- declare type additionalParamsType = hideProductDef | showProductDef;
65
+ export declare type additionalParamsType = premiumForm | hideProductDef | showProductDef;
62
66
  /**
63
67
  * @title Форма заявки настраиваемая
64
68
  */
@@ -1,4 +1,2 @@
1
- /* eslint-disable max-lines */
2
- /* eslint-disable max-len */
3
1
  Object.defineProperty(exports, "__esModule", { value: true });
4
2
  //# sourceMappingURL=ApplicationFormContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,4BAA4B"}
1
+ {"version":3,"file":"ApplicationFormContent.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ApplicationFormContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { type ButtonProps } from '../../ui-kit/Button/Button';
2
+ export declare const DropdownButton: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
@@ -0,0 +1,11 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.DropdownButton = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ exports.DropdownButton = (0, uni_jsx_1.JSX)(({ onClick, children, ariaLabel }) => {
6
+ if (children) {
7
+ return children;
8
+ }
9
+ return ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "flex justify-between items-center group/btn h-6 gap-2xs", "aria-label": ariaLabel, onClick: onClick, role: "button", "aria-labelledby": "labeldiv", children: Array.from({ length: 3 }, (_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, i))) }));
10
+ });
11
+ //# sourceMappingURL=DropdownButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownButton.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE;IAClF,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAC;KACjB;IAED,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,yDAAyD,gBACvD,SAAS,EACrB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,QAAQ,qBACG,UAAU,YAEzB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnC,gCAEE,SAAS,EAAC,0GAA0G,IAD/G,CAAC,CAEN,CACH,CAAC,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,11 +1,14 @@
1
1
  import { type ComponentType } from '../../model/ComponentType';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
3
  interface DropdownMenuProps extends ComponentType {
4
- items: LinkProps[];
4
+ dropdownRef?: {
5
+ current: HTMLDivElement | null;
6
+ };
7
+ items?: LinkProps[];
5
8
  activeItem?: LinkProps;
6
9
  ariaLabel?: string;
7
10
  }
8
- export declare const DropdownMenu: import("@redneckz/uni-jsx").UNIComponent<DropdownMenuProps, any, any>;
11
+ export declare const DropdownMenu: ({ dropdownRef, items, activeItem, ariaLabel, }: DropdownMenuProps) => any;
9
12
  export declare const DropdownMenuItem: import("@redneckz/uni-jsx").UNIComponent<LinkProps & {
10
13
  isActive?: boolean | undefined;
11
14
  }, any, any>;
@@ -2,45 +2,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.DropdownMenuItem = exports.DropdownMenu = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
- const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
7
- const useEventListener_1 = require("@redneckz/uni-jsx/lib/hooks/useEventListener");
8
- const useOutsideClick_1 = require("@redneckz/uni-jsx/lib/hooks/useOutsideClick");
9
5
  const useLink_1 = require("../../hooks/useLink");
10
6
  const dataAttributes_1 = require("../../utils/dataAttributes");
11
7
  const style_1 = require("../../utils/style");
12
- exports.DropdownMenu = (0, uni_jsx_1.JSX)(({ className = '', items, activeItem, ariaLabel = 'Меню' }) => {
13
- const [isVisible, { setFalse, toggle }] = (0, useBool_1.useBool)(false);
14
- const ref = (0, useOutsideClick_1.useOutsideClick)(setFalse);
15
- const dropdownRef = (0, hooks_1.useRef)(null);
16
- const changeDropdownPosition = (0, hooks_1.useCallback)(({ isOpened, buttonRef, menuRef }) => {
17
- if (isOpened && buttonRef.current && menuRef.current) {
18
- const dropdownRect = menuRef.current.getBoundingClientRect();
19
- const dropdownButtonRect = buttonRef.current.getBoundingClientRect();
20
- const newDropdownPosition = globalThis.innerWidth - dropdownRect.width;
21
- if (dropdownRect.right >= globalThis.innerWidth) {
22
- menuRef.current.style.left = `${newDropdownPosition}px`;
23
- }
24
- else if (dropdownButtonRect.left > dropdownRect.left) {
25
- if (newDropdownPosition > dropdownButtonRect.left) {
26
- menuRef.current.style.left = '';
27
- }
28
- else {
29
- menuRef.current.style.left = `${newDropdownPosition}px`;
30
- }
31
- }
32
- }
33
- }, [isVisible]);
34
- (0, useEventListener_1.useEventListener)(globalThis, 'resize', () => changeDropdownPosition({ isOpened: isVisible, buttonRef: ref, menuRef: dropdownRef }));
35
- (0, hooks_1.useEffect)(() => {
36
- changeDropdownPosition({ isOpened: isVisible, buttonRef: ref, menuRef: dropdownRef });
37
- }, [isVisible]);
38
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(isVisible ? 'rounded-md shadow-blue-gray' : '', className), ref: ref, role: "navigation", children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, role: "button", "aria-labelledby": "labeldiv", children: Array(3)
39
- .fill(null)
40
- .map((_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), (0, jsx_runtime_1.jsx)("div", { ref: dropdownRef, className: (0, style_1.style)('absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40', {
41
- hidden: !isVisible,
42
- }), "aria-hidden": !isVisible, children: renderDropdownItems(items, activeItem) })] }));
43
- });
8
+ const DropdownMenu = ({ dropdownRef, items = [], activeItem, ariaLabel, }) => ((0, jsx_runtime_1.jsx)("div", { ref: dropdownRef, className: "absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40", "aria-label": ariaLabel, children: renderDropdownItems(items, activeItem) }));
9
+ exports.DropdownMenu = DropdownMenu;
44
10
  exports.DropdownMenuItem = (0, uni_jsx_1.JSX)(({ isActive, ...rest }) => {
45
11
  const link = (0, useLink_1.useLink)();
46
12
  const { text, href, target, onClick } = link(rest);
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA6E;AAC7E,iEAA8D;AAC9D,mFAAgF;AAChF,iFAA8E;AAC9E,iDAA8C;AAG9C,+DAAkE;AAClE,6CAA0C;AAkB7B,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,GAAG,MAAM,EAAE,EAAE,EAAE;IAC5D,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IACzD,MAAM,GAAG,GAAG,IAAA,iCAAe,EAAiB,QAAQ,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAExD,MAAM,sBAAsB,GAAG,IAAA,mBAAW,EACxC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAgC,EAAE,EAAE;QACjE,IAAI,QAAQ,IAAI,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE;YACpD,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAC7D,MAAM,kBAAkB,GAAG,SAAS,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;YACrE,MAAM,mBAAmB,GAAG,UAAU,CAAC,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC;YAEvE,IAAI,YAAY,CAAC,KAAK,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AC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type ComponentType } from '../../model/ComponentType';
2
+ import { type LinkProps } from '../../model/LinkProps';
3
+ interface HeaderMoreMenuItemProps extends ComponentType {
4
+ items: LinkProps[];
5
+ activeItem?: LinkProps;
6
+ ariaLabel?: string;
7
+ }
8
+ export declare const HeaderMoreMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderMoreMenuItemProps, any, any>;
9
+ export {};
@@ -0,0 +1,27 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.HeaderMoreMenuItem = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
7
+ const style_1 = require("../../utils/style");
8
+ const useDropdownSubMenu_1 = require("./useDropdownSubMenu");
9
+ exports.HeaderMoreMenuItem = (0, uni_jsx_1.JSX)(({ className = '', items, activeItem, ariaLabel = 'Меню' }) => {
10
+ const [isOpenDropdown, { setFalse, toggle }] = (0, useBool_1.useBool)(false);
11
+ const dropdownMenu = (0, useDropdownSubMenu_1.useDropdownSubMenu)({
12
+ items,
13
+ onClose: setFalse,
14
+ isOpen: isOpenDropdown,
15
+ activeItem,
16
+ });
17
+ (0, hooks_1.useEffect)(() => {
18
+ dropdownMenu.current?.addEventListener('mouseleave', setFalse);
19
+ return () => {
20
+ dropdownMenu.current?.removeEventListener('mouseleave', setFalse);
21
+ };
22
+ }, []);
23
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(isOpenDropdown ? 'rounded-md shadow-blue-gray' : '', className), ref: dropdownMenu, role: "navigation", children: (0, jsx_runtime_1.jsx)("button", { type: "button", className: "group/btn flex justify-between items-center h-6", "aria-label": ariaLabel, onClick: toggle, role: "button", "aria-labelledby": "labeldiv", children: Array(3)
24
+ .fill(null)
25
+ .map((_, i) => ((0, jsx_runtime_1.jsx)("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }) }));
26
+ });
27
+ //# sourceMappingURL=HeaderMoreMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderMoreMenuItem.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderMoreMenuItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,iEAA8D;AAG9D,6CAA0C;AAC1C,6DAA0D;AAQ7C,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,GAAG,MAAM,EAAE,EAAE,EAAE;IAC5D,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IAE9D,MAAM,YAAY,GAAG,IAAA,uCAAkB,EAAC;QACtC,KAAK;QACL,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE,cAAc;QACtB,UAAU;KACX,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAE/D,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,EAAE,mBAAmB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QACpE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EAAC,cAAc,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,EAAE,EAAE,SAAS,CAAC,EAChF,GAAG,EAAE,YAAY,EACjB,IAAI,EAAC,YAAY,YAEjB,mCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,iDAAiD,gBAC/C,SAAS,EACrB,OAAO,EAAE,MAAM,EACf,IAAI,EAAC,QAAQ,qBACG,UAAU,YAEzB,KAAK,CAAC,CAAC,CAAC;iBACN,IAAI,CAAC,IAAI,CAAC;iBACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACb,gCAEE,SAAS,EAAC,iHAAiH,IADtH,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC,GACG,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -5,8 +5,8 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
6
  const useActiveRoute_1 = require("../../hooks/useActiveRoute");
7
7
  const ProjectSettings_1 = require("../../ProjectSettings");
8
- const DropdownMenu_1 = require("./DropdownMenu");
9
8
  const HeaderChatBotButton_1 = require("./HeaderChatBotButton");
9
+ const HeaderMoreMenuItem_1 = require("./HeaderMoreMenuItem");
10
10
  const HeaderSubMenuItem_1 = require("./HeaderSubMenuItem");
11
11
  const InternetBankButton_1 = require("./InternetBankButton");
12
12
  exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ subItems = [], version, internetBankButton, dropdownMenuAriaLabel, chatBotAriaLabel }) => {
@@ -21,7 +21,7 @@ exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ subItems = [], version, internetBa
21
21
  ? handleIntersectionActivation(index)
22
22
  : handleIntersectionDeactivation(index));
23
23
  }), [subItems]);
24
- return ((0, jsx_runtime_1.jsxs)("nav", { className: "mt-s flex gap-s items-center justify-between", children: [(0, jsx_runtime_1.jsx)("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg", role: "menu", children: subItems.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderSubMenuItem_1.HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? ((0, jsx_runtime_1.jsx)(DropdownMenu_1.DropdownMenu, { items: dropDownMenuItems, activeItem: activeSubItem, ariaLabel: dropdownMenuAriaLabel })) : null, ProjectSettings_1.projectSettings.CHAT_BOT ? ((0, jsx_runtime_1.jsx)(HeaderChatBotButton_1.HeaderChatBotButton, { version: version, iconVersion: iconVersion, ariaLabel: chatBotAriaLabel })) : null, (0, jsx_runtime_1.jsx)(InternetBankButton_1.InternetBankButton, { version: version, ...internetBankButton })] }));
24
+ return ((0, jsx_runtime_1.jsxs)("nav", { className: "mt-s flex gap-s items-center justify-between", children: [(0, jsx_runtime_1.jsx)("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg", role: "menu", children: subItems.map((_, i) => ((0, jsx_runtime_1.jsx)(HeaderSubMenuItem_1.HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, activeItem: activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? ((0, jsx_runtime_1.jsx)(HeaderMoreMenuItem_1.HeaderMoreMenuItem, { items: dropDownMenuItems, activeItem: activeSubItem, ariaLabel: dropdownMenuAriaLabel })) : null, ProjectSettings_1.projectSettings.CHAT_BOT ? ((0, jsx_runtime_1.jsx)(HeaderChatBotButton_1.HeaderChatBotButton, { version: version, iconVersion: iconVersion, ariaLabel: chatBotAriaLabel })) : null, (0, jsx_runtime_1.jsx)(InternetBankButton_1.InternetBankButton, { version: version, ...internetBankButton })] }));
25
25
  });
26
26
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
27
27
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components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type NavigationLinkProps } from '../../data/NavigationData';
1
2
  import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
2
3
  import { type ComponentType } from '../../model/ComponentType';
3
4
  import { type LinkProps } from '../../model/LinkProps';
4
5
  export interface HeaderSubMenuItemProps extends LinkProps, ComponentType {
5
6
  active?: boolean;
7
+ activeItem?: LinkProps;
6
8
  observerOptions?: IntersectionObserverOptions;
7
9
  onVisibilityChange?: (isIntersecting: boolean) => void;
10
+ items?: NavigationLinkProps[];
8
11
  }
9
12
  export declare const HeaderSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderSubMenuItemProps, any, any>;