adata-ui 3.0.2 → 3.1.0

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 (316) hide show
  1. package/dist/module.d.mts +2 -0
  2. package/dist/module.json +5 -1
  3. package/dist/module.mjs +39 -6
  4. package/dist/runtime/components/Alert.vue +62 -0
  5. package/dist/runtime/components/Alert.vue.d.ts +29 -0
  6. package/dist/runtime/components/Chip.vue +24 -0
  7. package/dist/runtime/components/Chip.vue.d.ts +19 -0
  8. package/dist/runtime/components/ColorMode.vue +46 -0
  9. package/dist/runtime/components/ColorMode.vue.d.ts +2 -0
  10. package/dist/runtime/components/DigitBadge.vue +58 -0
  11. package/dist/runtime/components/DigitBadge.vue.d.ts +21 -0
  12. package/dist/runtime/components/Footer.vue +283 -0
  13. package/dist/runtime/components/Footer.vue.d.ts +2 -0
  14. package/dist/runtime/components/FooterAccordion.vue +78 -0
  15. package/dist/runtime/components/FooterAccordion.vue.d.ts +11 -0
  16. package/dist/runtime/components/Header.vue +139 -0
  17. package/dist/runtime/components/Header.vue.d.ts +41 -0
  18. package/dist/runtime/components/NewFooter.vue +267 -0
  19. package/dist/runtime/components/NewFooter.vue.d.ts +2 -0
  20. package/dist/runtime/components/NewFooterAccordion.vue +85 -0
  21. package/dist/runtime/components/NewFooterAccordion.vue.d.ts +11 -0
  22. package/dist/runtime/components/OtherServiceFeatures.vue +104 -0
  23. package/dist/runtime/components/OtherServiceFeatures.vue.d.ts +2 -0
  24. package/dist/runtime/components/Tag.vue +46 -0
  25. package/dist/runtime/components/Tag.vue.d.ts +25 -0
  26. package/dist/runtime/components/Toggle.vue +139 -0
  27. package/dist/runtime/components/Toggle.vue.d.ts +39 -0
  28. package/dist/runtime/components/accordion/Accordion.vue +149 -0
  29. package/dist/runtime/components/accordion/Accordion.vue.d.ts +41 -0
  30. package/dist/runtime/components/accordion/types.d.ts +15 -0
  31. package/dist/runtime/components/accordion/types.js +0 -0
  32. package/dist/runtime/components/accordion/ui.config.d.ts +22 -0
  33. package/dist/runtime/components/accordion/ui.config.js +21 -0
  34. package/dist/runtime/components/button/Button.vue +133 -0
  35. package/dist/runtime/components/button/Button.vue.d.ts +37 -0
  36. package/dist/runtime/components/button/types.d.ts +21 -0
  37. package/dist/runtime/components/button/types.js +0 -0
  38. package/dist/runtime/components/checkbox/Checkbox.vue +124 -0
  39. package/dist/runtime/components/checkbox/Checkbox.vue.d.ts +45 -0
  40. package/dist/runtime/components/date-picker/DatePicker.vue +102 -0
  41. package/dist/runtime/components/date-picker/DatePicker.vue.d.ts +16 -0
  42. package/dist/runtime/components/floating-label/FloatingLabel.vue +22 -0
  43. package/dist/runtime/components/floating-label/FloatingLabel.vue.d.ts +16 -0
  44. package/dist/runtime/components/forms/input/standard/InputStandard.vue +301 -0
  45. package/dist/runtime/components/forms/input/standard/InputStandard.vue.d.ts +0 -0
  46. package/dist/runtime/components/forms/input/textarea/ATextarea.vue +158 -0
  47. package/dist/runtime/components/forms/input/textarea/ATextarea.vue.d.ts +43 -0
  48. package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue +114 -0
  49. package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue.d.ts +5 -0
  50. package/dist/runtime/components/forms/request-demo/RequestDemo.vue +67 -0
  51. package/dist/runtime/components/forms/request-demo/RequestDemo.vue.d.ts +23 -0
  52. package/dist/runtime/components/header/AlmatyContacts.vue +120 -0
  53. package/dist/runtime/components/header/AlmatyContacts.vue.d.ts +2 -0
  54. package/dist/runtime/components/header/AstanaContacts.vue +65 -0
  55. package/dist/runtime/components/header/AstanaContacts.vue.d.ts +2 -0
  56. package/dist/runtime/components/header/CardGallery.vue +156 -0
  57. package/dist/runtime/components/header/CardGallery.vue.d.ts +2 -0
  58. package/dist/runtime/components/header/ContactMenu.vue +105 -0
  59. package/dist/runtime/components/header/ContactMenu.vue.d.ts +11 -0
  60. package/dist/runtime/components/header/HeaderLink.vue +169 -0
  61. package/dist/runtime/components/header/HeaderLink.vue.d.ts +2 -0
  62. package/dist/runtime/components/header/LangSwitcher.vue +48 -0
  63. package/dist/runtime/components/header/LangSwitcher.vue.d.ts +2 -0
  64. package/dist/runtime/components/header/ListItem.vue +26 -0
  65. package/dist/runtime/components/header/ListItem.vue.d.ts +7 -0
  66. package/dist/runtime/components/header/NavCard.vue +40 -0
  67. package/dist/runtime/components/header/NavCard.vue.d.ts +8 -0
  68. package/dist/runtime/components/header/NavList.vue +101 -0
  69. package/dist/runtime/components/header/NavList.vue.d.ts +17 -0
  70. package/dist/runtime/components/header/ProductMenu.vue +369 -0
  71. package/dist/runtime/components/header/ProductMenu.vue.d.ts +11 -0
  72. package/dist/runtime/components/header/ProfileMenu.vue +56 -0
  73. package/dist/runtime/components/header/ProfileMenu.vue.d.ts +16 -0
  74. package/dist/runtime/components/header/ProfileMenuContent.vue +228 -0
  75. package/dist/runtime/components/header/ProfileMenuContent.vue.d.ts +16 -0
  76. package/dist/runtime/components/header/TopHeader.vue +152 -0
  77. package/dist/runtime/components/header/TopHeader.vue.d.ts +10 -0
  78. package/dist/runtime/components/header/types.d.ts +19 -0
  79. package/dist/runtime/components/header/types.js +0 -0
  80. package/dist/runtime/components/header-mobile/HeaderMobile.vue +53 -0
  81. package/dist/runtime/components/header-mobile/HeaderMobile.vue.d.ts +17 -0
  82. package/dist/runtime/components/mobile-navigation/BottomNavigation.vue +68 -0
  83. package/dist/runtime/components/mobile-navigation/BottomNavigation.vue.d.ts +29 -0
  84. package/dist/runtime/components/mobile-navigation/MainButton.vue +16 -0
  85. package/dist/runtime/components/mobile-navigation/MainButton.vue.d.ts +2 -0
  86. package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue +261 -0
  87. package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue.d.ts +2 -0
  88. package/dist/runtime/components/modals/NoAccessContent.vue +58 -0
  89. package/dist/runtime/components/modals/NoAccessContent.vue.d.ts +5 -0
  90. package/dist/runtime/components/pill-tabs/PillTabs.vue +137 -0
  91. package/dist/runtime/components/pill-tabs/PillTabs.vue.d.ts +38 -0
  92. package/dist/runtime/components/pill-tabs/types.d.ts +18 -0
  93. package/dist/runtime/components/pill-tabs/types.js +0 -0
  94. package/dist/runtime/components/radio-button/RadioButton.vue +69 -0
  95. package/dist/runtime/components/radio-button/RadioButton.vue.d.ts +40 -0
  96. package/dist/runtime/components/row-card/RowCard.vue +44 -0
  97. package/dist/runtime/components/row-card/RowCard.vue.d.ts +26 -0
  98. package/dist/runtime/components/select-row/index.vue +117 -0
  99. package/dist/runtime/components/select-row/index.vue.d.ts +31 -0
  100. package/dist/runtime/components/tree-select/TreeSelect.vue +132 -0
  101. package/dist/runtime/components/tree-select/TreeSelect.vue.d.ts +22 -0
  102. package/dist/runtime/components/tree-select/TreeService.d.ts +54 -0
  103. package/dist/runtime/components/tree-select/TreeService.js +209 -0
  104. package/dist/runtime/components/tree-select/components/tree-select-nodes.vue +100 -0
  105. package/dist/runtime/components/tree-select/components/tree-select-nodes.vue.d.ts +9 -0
  106. package/dist/runtime/components/tree-select/types.d.ts +29 -0
  107. package/dist/runtime/components/tree-select/types.js +0 -0
  108. package/dist/runtime/composables/highlight.d.ts +1 -0
  109. package/dist/runtime/composables/highlight.js +15 -0
  110. package/dist/runtime/composables/projectState.d.ts +2 -0
  111. package/dist/runtime/composables/projectState.js +3 -0
  112. package/dist/runtime/i18n/i18n.config.d.ts +1731 -0
  113. package/dist/runtime/i18n/i18n.config.js +20 -0
  114. package/dist/runtime/i18n.d.ts +2 -0
  115. package/dist/runtime/i18n.js +15 -0
  116. package/dist/runtime/icons/arrow/arrow-circle-down.vue +30 -0
  117. package/dist/runtime/icons/arrow/arrow-circle-down.vue.d.ts +2 -0
  118. package/dist/runtime/icons/arrow/arrow-graph-up.vue +24 -0
  119. package/dist/runtime/icons/arrow/arrow-graph-up.vue.d.ts +2 -0
  120. package/dist/runtime/icons/arrow/arrow-right.vue +24 -0
  121. package/dist/runtime/icons/arrow/arrow-right.vue.d.ts +2 -0
  122. package/dist/runtime/icons/arrow/arrow-side-up.vue +19 -0
  123. package/dist/runtime/icons/arrow/arrow-side-up.vue.d.ts +2 -0
  124. package/dist/runtime/icons/arrow/arrow-top-right-on-square.vue +19 -0
  125. package/dist/runtime/icons/arrow/arrow-top-right-on-square.vue.d.ts +2 -0
  126. package/dist/runtime/icons/arrow/chevron-down.vue +19 -0
  127. package/dist/runtime/icons/arrow/chevron-down.vue.d.ts +2 -0
  128. package/dist/runtime/icons/avatar.vue +41 -0
  129. package/dist/runtime/icons/avatar.vue.d.ts +2 -0
  130. package/dist/runtime/icons/avto/car.vue +17 -0
  131. package/dist/runtime/icons/avto/car.vue.d.ts +2 -0
  132. package/dist/runtime/icons/avto/truck.vue +17 -0
  133. package/dist/runtime/icons/avto/truck.vue.d.ts +2 -0
  134. package/dist/runtime/icons/block.vue +19 -0
  135. package/dist/runtime/icons/block.vue.d.ts +2 -0
  136. package/dist/runtime/icons/bookmark.vue +19 -0
  137. package/dist/runtime/icons/bookmark.vue.d.ts +2 -0
  138. package/dist/runtime/icons/calculator.vue +19 -0
  139. package/dist/runtime/icons/calculator.vue.d.ts +2 -0
  140. package/dist/runtime/icons/calendar.vue +24 -0
  141. package/dist/runtime/icons/calendar.vue.d.ts +2 -0
  142. package/dist/runtime/icons/check-circle.vue +25 -0
  143. package/dist/runtime/icons/check-circle.vue.d.ts +2 -0
  144. package/dist/runtime/icons/checkbox/checkbox-active.vue +19 -0
  145. package/dist/runtime/icons/checkbox/checkbox-active.vue.d.ts +2 -0
  146. package/dist/runtime/icons/checkbox/checkbox-empty.vue +20 -0
  147. package/dist/runtime/icons/checkbox/checkbox-empty.vue.d.ts +2 -0
  148. package/dist/runtime/icons/checkbox/checkbox-intermediate.vue +19 -0
  149. package/dist/runtime/icons/checkbox/checkbox-intermediate.vue.d.ts +2 -0
  150. package/dist/runtime/icons/clipboard-text.vue +17 -0
  151. package/dist/runtime/icons/clipboard-text.vue.d.ts +2 -0
  152. package/dist/runtime/icons/clock.vue +25 -0
  153. package/dist/runtime/icons/clock.vue.d.ts +2 -0
  154. package/dist/runtime/icons/color-mode/moon.vue +20 -0
  155. package/dist/runtime/icons/color-mode/moon.vue.d.ts +2 -0
  156. package/dist/runtime/icons/color-mode/sun.vue +27 -0
  157. package/dist/runtime/icons/color-mode/sun.vue.d.ts +2 -0
  158. package/dist/runtime/icons/communication/mail.vue +19 -0
  159. package/dist/runtime/icons/communication/mail.vue.d.ts +2 -0
  160. package/dist/runtime/icons/communication/phone.vue +19 -0
  161. package/dist/runtime/icons/communication/phone.vue.d.ts +2 -0
  162. package/dist/runtime/icons/company.vue +19 -0
  163. package/dist/runtime/icons/company.vue.d.ts +2 -0
  164. package/dist/runtime/icons/currency/dollar.vue +19 -0
  165. package/dist/runtime/icons/currency/dollar.vue.d.ts +2 -0
  166. package/dist/runtime/icons/currency/down.vue +22 -0
  167. package/dist/runtime/icons/currency/down.vue.d.ts +2 -0
  168. package/dist/runtime/icons/currency/eur.vue +69 -0
  169. package/dist/runtime/icons/currency/eur.vue.d.ts +2 -0
  170. package/dist/runtime/icons/currency/rub.vue +25 -0
  171. package/dist/runtime/icons/currency/rub.vue.d.ts +2 -0
  172. package/dist/runtime/icons/currency/usd.vue +269 -0
  173. package/dist/runtime/icons/currency/usd.vue.d.ts +2 -0
  174. package/dist/runtime/icons/currency/yuan.vue +37 -0
  175. package/dist/runtime/icons/currency/yuan.vue.d.ts +2 -0
  176. package/dist/runtime/icons/document/hdocument.vue +17 -0
  177. package/dist/runtime/icons/document/hdocument.vue.d.ts +2 -0
  178. package/dist/runtime/icons/document/id.vue +19 -0
  179. package/dist/runtime/icons/document/id.vue.d.ts +2 -0
  180. package/dist/runtime/icons/document/profile.vue +19 -0
  181. package/dist/runtime/icons/document/profile.vue.d.ts +2 -0
  182. package/dist/runtime/icons/download.vue +26 -0
  183. package/dist/runtime/icons/download.vue.d.ts +2 -0
  184. package/dist/runtime/icons/edit.vue +24 -0
  185. package/dist/runtime/icons/edit.vue.d.ts +2 -0
  186. package/dist/runtime/icons/file/excel.vue +88 -0
  187. package/dist/runtime/icons/file/excel.vue.d.ts +2 -0
  188. package/dist/runtime/icons/file/file.vue +19 -0
  189. package/dist/runtime/icons/file/file.vue.d.ts +2 -0
  190. package/dist/runtime/icons/file/files.vue +17 -0
  191. package/dist/runtime/icons/file/files.vue.d.ts +2 -0
  192. package/dist/runtime/icons/globe.vue +19 -0
  193. package/dist/runtime/icons/globe.vue.d.ts +2 -0
  194. package/dist/runtime/icons/handshake.vue +19 -0
  195. package/dist/runtime/icons/handshake.vue.d.ts +2 -0
  196. package/dist/runtime/icons/history.vue +19 -0
  197. package/dist/runtime/icons/history.vue.d.ts +2 -0
  198. package/dist/runtime/icons/info/info-circle.vue +29 -0
  199. package/dist/runtime/icons/info/info-circle.vue.d.ts +2 -0
  200. package/dist/runtime/icons/invoice.vue +35 -0
  201. package/dist/runtime/icons/invoice.vue.d.ts +2 -0
  202. package/dist/runtime/icons/link-chain.vue +31 -0
  203. package/dist/runtime/icons/link-chain.vue.d.ts +2 -0
  204. package/dist/runtime/icons/loader-circle.vue +41 -0
  205. package/dist/runtime/icons/loader-circle.vue.d.ts +2 -0
  206. package/dist/runtime/icons/lock.vue +19 -0
  207. package/dist/runtime/icons/lock.vue.d.ts +2 -0
  208. package/dist/runtime/icons/logo/adata.vue +48 -0
  209. package/dist/runtime/icons/logo/adata.vue.d.ts +2 -0
  210. package/dist/runtime/icons/logo/logo.vue +27 -0
  211. package/dist/runtime/icons/logo/logo.vue.d.ts +2 -0
  212. package/dist/runtime/icons/medal.vue +17 -0
  213. package/dist/runtime/icons/medal.vue.d.ts +2 -0
  214. package/dist/runtime/icons/menu/menu-filled.vue +61 -0
  215. package/dist/runtime/icons/menu/menu-filled.vue.d.ts +2 -0
  216. package/dist/runtime/icons/menu/menu.vue +41 -0
  217. package/dist/runtime/icons/menu/menu.vue.d.ts +2 -0
  218. package/dist/runtime/icons/message.vue +24 -0
  219. package/dist/runtime/icons/message.vue.d.ts +2 -0
  220. package/dist/runtime/icons/modals/door.vue +170 -0
  221. package/dist/runtime/icons/modals/door.vue.d.ts +2 -0
  222. package/dist/runtime/icons/moon.vue +10 -0
  223. package/dist/runtime/icons/moon.vue.d.ts +2 -0
  224. package/dist/runtime/icons/more.vue +36 -0
  225. package/dist/runtime/icons/more.vue.d.ts +2 -0
  226. package/dist/runtime/icons/navigation/expand-window.vue +19 -0
  227. package/dist/runtime/icons/navigation/expand-window.vue.d.ts +2 -0
  228. package/dist/runtime/icons/navigation/location.vue +25 -0
  229. package/dist/runtime/icons/navigation/location.vue.d.ts +2 -0
  230. package/dist/runtime/icons/navigation/logout.vue +19 -0
  231. package/dist/runtime/icons/navigation/logout.vue.d.ts +2 -0
  232. package/dist/runtime/icons/notifications.vue +25 -0
  233. package/dist/runtime/icons/notifications.vue.d.ts +2 -0
  234. package/dist/runtime/icons/other-service/arrow-square-down.vue +15 -0
  235. package/dist/runtime/icons/other-service/arrow-square-down.vue.d.ts +2 -0
  236. package/dist/runtime/icons/other-service/arrow-top-right-on-square.vue +6 -0
  237. package/dist/runtime/icons/other-service/arrow-top-right-on-square.vue.d.ts +2 -0
  238. package/dist/runtime/icons/other-service/block.vue +16 -0
  239. package/dist/runtime/icons/other-service/block.vue.d.ts +2 -0
  240. package/dist/runtime/icons/other-service/currency-dollar.vue +16 -0
  241. package/dist/runtime/icons/other-service/currency-dollar.vue.d.ts +2 -0
  242. package/dist/runtime/icons/other-service/globe.vue +16 -0
  243. package/dist/runtime/icons/other-service/globe.vue.d.ts +2 -0
  244. package/dist/runtime/icons/other-service/link.vue +7 -0
  245. package/dist/runtime/icons/other-service/link.vue.d.ts +2 -0
  246. package/dist/runtime/icons/other-service/magnifying-glass.vue +9 -0
  247. package/dist/runtime/icons/other-service/magnifying-glass.vue.d.ts +2 -0
  248. package/dist/runtime/icons/other-service/standing-scales.vue +15 -0
  249. package/dist/runtime/icons/other-service/standing-scales.vue.d.ts +2 -0
  250. package/dist/runtime/icons/other-service/users-three.vue +7 -0
  251. package/dist/runtime/icons/other-service/users-three.vue.d.ts +2 -0
  252. package/dist/runtime/icons/plus-circle.vue +24 -0
  253. package/dist/runtime/icons/plus-circle.vue.d.ts +2 -0
  254. package/dist/runtime/icons/plus.vue +24 -0
  255. package/dist/runtime/icons/plus.vue.d.ts +2 -0
  256. package/dist/runtime/icons/radio/radio-check.vue +24 -0
  257. package/dist/runtime/icons/radio/radio-check.vue.d.ts +2 -0
  258. package/dist/runtime/icons/radio/radio-empty.vue +20 -0
  259. package/dist/runtime/icons/radio/radio-empty.vue.d.ts +2 -0
  260. package/dist/runtime/icons/receipt/hcheck.vue +27 -0
  261. package/dist/runtime/icons/receipt/hcheck.vue.d.ts +2 -0
  262. package/dist/runtime/icons/receipt/receipt.vue +27 -0
  263. package/dist/runtime/icons/receipt/receipt.vue.d.ts +2 -0
  264. package/dist/runtime/icons/scale.vue +19 -0
  265. package/dist/runtime/icons/scale.vue.d.ts +2 -0
  266. package/dist/runtime/icons/search.vue +27 -0
  267. package/dist/runtime/icons/search.vue.d.ts +2 -0
  268. package/dist/runtime/icons/socials/facebook.vue +15 -0
  269. package/dist/runtime/icons/socials/facebook.vue.d.ts +2 -0
  270. package/dist/runtime/icons/socials/instagram.vue +19 -0
  271. package/dist/runtime/icons/socials/instagram.vue.d.ts +2 -0
  272. package/dist/runtime/icons/socials/linkedin.vue +24 -0
  273. package/dist/runtime/icons/socials/linkedin.vue.d.ts +2 -0
  274. package/dist/runtime/icons/socials/telegram.vue +15 -0
  275. package/dist/runtime/icons/socials/telegram.vue.d.ts +2 -0
  276. package/dist/runtime/icons/socials/tik-tok.vue +15 -0
  277. package/dist/runtime/icons/socials/tik-tok.vue.d.ts +2 -0
  278. package/dist/runtime/icons/socials/whatsapp.vue +21 -0
  279. package/dist/runtime/icons/socials/whatsapp.vue.d.ts +2 -0
  280. package/dist/runtime/icons/socials/youtube.vue +16 -0
  281. package/dist/runtime/icons/socials/youtube.vue.d.ts +2 -0
  282. package/dist/runtime/icons/sun.vue +14 -0
  283. package/dist/runtime/icons/sun.vue.d.ts +2 -0
  284. package/dist/runtime/icons/sviazi.vue +19 -0
  285. package/dist/runtime/icons/sviazi.vue.d.ts +2 -0
  286. package/dist/runtime/icons/tenge.vue +22 -0
  287. package/dist/runtime/icons/tenge.vue.d.ts +2 -0
  288. package/dist/runtime/icons/trash.vue +24 -0
  289. package/dist/runtime/icons/trash.vue.d.ts +2 -0
  290. package/dist/runtime/icons/upload.vue +26 -0
  291. package/dist/runtime/icons/upload.vue.d.ts +2 -0
  292. package/dist/runtime/icons/user.vue +30 -0
  293. package/dist/runtime/icons/user.vue.d.ts +2 -0
  294. package/dist/runtime/icons/users/users-three.vue +17 -0
  295. package/dist/runtime/icons/users/users-three.vue.d.ts +2 -0
  296. package/dist/runtime/icons/users/users.vue +31 -0
  297. package/dist/runtime/icons/users/users.vue.d.ts +2 -0
  298. package/dist/runtime/icons/warning-triangle.vue +29 -0
  299. package/dist/runtime/icons/warning-triangle.vue.d.ts +2 -0
  300. package/dist/runtime/icons/work-bag.vue +20 -0
  301. package/dist/runtime/icons/work-bag.vue.d.ts +2 -0
  302. package/dist/runtime/icons/x-mark.vue +18 -0
  303. package/dist/runtime/icons/x-mark.vue.d.ts +2 -0
  304. package/dist/runtime/lang/en.d.ts +4 -0
  305. package/dist/runtime/lang/en.js +545 -0
  306. package/dist/runtime/lang/kk.d.ts +4 -0
  307. package/dist/runtime/lang/kk.js +545 -0
  308. package/dist/runtime/lang/ru.d.ts +575 -0
  309. package/dist/runtime/lang/ru.js +607 -0
  310. package/dist/runtime/shared/constants/pages.d.ts +71 -0
  311. package/dist/runtime/shared/constants/pages.js +71 -0
  312. package/package.json +66 -58
  313. package/dist/runtime/components/header/TheHeader.vue +0 -15
  314. package/dist/runtime/components/header/TheHeader.vue.d.ts +0 -2
  315. package/dist/runtime/plugin.d.ts +0 -2
  316. package/dist/runtime/plugin.js +0 -4
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <li
3
+ :style="{ 'padding-left': `${node.level * 20}px` }"
4
+ :class="[
5
+ { 'bg-[#2C3E500D] dark:bg-[#E3E5E80D]': node.state === 'checked' && type === 'select' }
6
+ ]"
7
+ >
8
+ <div
9
+ v-if="!node?.hidden"
10
+ class="flex items-center gap-1 p-2"
11
+ >
12
+ <div class="min-w-4">
13
+ <i-chevron-down
14
+ v-if="node.expandable"
15
+ width="16"
16
+ height="16"
17
+ :class="['cursor-pointer transition-all', { '-rotate-90': node.expandableClosed }]"
18
+ @click="toggleExpand(node)"
19
+ />
20
+ </div>
21
+ <div
22
+ v-if="type === 'select'"
23
+ class="w-full"
24
+ >
25
+ <input
26
+ :id="node.id.toString()"
27
+ type="checkbox"
28
+ class="hidden"
29
+ :checked="node.state === 'checked'"
30
+ @change="handleCheckboxChange"
31
+ >
32
+ <label
33
+ :for="node.id.toString()"
34
+ class="flex grow cursor-pointer items-center justify-between gap-4"
35
+ >
36
+ <span
37
+ :class="{ 'font-semibold': node.level === 0 }"
38
+ v-html="node.text"
39
+ />
40
+ <checkbox-active
41
+ v-if="node.state === 'checked'"
42
+ class="min-w-4 text-blue-700"
43
+ />
44
+ </label>
45
+ </div>
46
+ <adt-checkbox
47
+ v-if="type === 'checkbox'"
48
+ size="lg"
49
+ :model-value="node.state === 'checked'"
50
+ :name="`${node.id}`"
51
+ :intermediate="node.state === 'indeterminate'"
52
+ side="right"
53
+ always-intermediate
54
+ @change="handleCheckboxChange"
55
+ >
56
+ <span
57
+ class="heading-05"
58
+ v-html="node.text"
59
+ />
60
+ </adt-checkbox>
61
+ </div>
62
+
63
+ <!-- <a-transition-height> -->
64
+ <ul v-if="node.expandable && !node.expandableClosed">
65
+ <template
66
+ v-for="childNode in node.child"
67
+ :key="childNode.id"
68
+ >
69
+ <tree-select-nodes
70
+ :node="childNode"
71
+ :toggle-expand="toggleExpand"
72
+ :toggle-checkbox="toggleCheckbox"
73
+ :type="type"
74
+ />
75
+ </template>
76
+ </ul>
77
+ <!-- </a-transition-height> -->
78
+ </li>
79
+ </template>
80
+
81
+ <script setup>
82
+ import IChevronDown from "#icons/arrow/chevron-down.vue";
83
+ import CheckboxActive from "#icons/checkbox/checkbox-active.vue";
84
+ const props = defineProps({
85
+ node: { type: Object, required: true },
86
+ toggleExpand: { type: Function, required: true },
87
+ toggleCheckbox: { type: Function, required: true },
88
+ type: { type: String, required: true }
89
+ });
90
+ const handleCheckboxChange = (event) => {
91
+ props.toggleCheckbox(props.node.id, event.target.checked);
92
+ };
93
+ const toggleExpand = (node) => {
94
+ props.toggleExpand(node);
95
+ };
96
+ </script>
97
+
98
+ <style scoped>
99
+
100
+ </style>
@@ -0,0 +1,9 @@
1
+ import type { TreeNestedNode } from '~/src/runtime/components/tree-select/types';
2
+ interface Props {
3
+ node: TreeNestedNode;
4
+ toggleExpand: Function;
5
+ toggleCheckbox: Function;
6
+ type: 'checkbox' | 'select';
7
+ }
8
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,29 @@
1
+ export interface TreeNode {
2
+ id: string | number;
3
+ name: string;
4
+ state: TreeNodeState;
5
+ level: number;
6
+ expandable: boolean;
7
+ expandableClosed: boolean;
8
+ parent: string | number | null;
9
+ hidden?: boolean;
10
+ child: (string | number)[];
11
+ }
12
+ export interface TreeNestedNode {
13
+ id: string | number;
14
+ name: string;
15
+ state: TreeNodeState;
16
+ level: number;
17
+ expandable: boolean;
18
+ expandableClosed: boolean;
19
+ text: string;
20
+ hidden: boolean;
21
+ child: TreeNestedNode[];
22
+ }
23
+ export type TreeData = {
24
+ id: number | string;
25
+ name: string;
26
+ children?: TreeData[];
27
+ };
28
+ export type TreeNodeState = 'checked' | 'unchecked' | 'indeterminate';
29
+ export type TreeNodeStateEditable = 'checked' | 'unchecked';
File without changes
@@ -0,0 +1 @@
1
+ export default function (text: string, search?: string): string;
@@ -0,0 +1,15 @@
1
+ export default function(text, search = "") {
2
+ let label = text || "";
3
+ const index = label.toLowerCase().indexOf(search?.toLowerCase());
4
+ const regExp = new RegExp(search, "gi");
5
+ if (index >= 0) {
6
+ label = label.replace(
7
+ regExp,
8
+ `<span class="bg-yellow-200 dark:text-gray-950 dark:bg-yellow-300">${label.substring(
9
+ index,
10
+ index + search.length
11
+ )}</span>`
12
+ );
13
+ }
14
+ return label;
15
+ }
@@ -0,0 +1,2 @@
1
+ export declare const useCurrentModule: () => any;
2
+ export declare const useContacts: () => any;
@@ -0,0 +1,3 @@
1
+ import { useState } from "#imports";
2
+ export const useCurrentModule = () => useState("current-module", () => "pk");
3
+ export const useContacts = () => useState("contacts", () => []);