pukaad-ui-lib 1.32.0 → 1.34.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 (287) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/button.d.vue.ts +2 -2
  3. package/dist/runtime/components/button.vue.d.ts +2 -2
  4. package/dist/runtime/components/card/card.d.vue.ts +6 -6
  5. package/dist/runtime/components/card/card.vue.d.ts +6 -6
  6. package/dist/runtime/components/carousel.d.vue.ts +2 -2
  7. package/dist/runtime/components/carousel.vue.d.ts +2 -2
  8. package/dist/runtime/components/collapse/collapse-multiple.d.vue.ts +2 -0
  9. package/dist/runtime/components/collapse/collapse-multiple.vue +12 -2
  10. package/dist/runtime/components/collapse/collapse-multiple.vue.d.ts +2 -0
  11. package/dist/runtime/components/data-list.d.vue.ts +7 -7
  12. package/dist/runtime/components/data-list.vue.d.ts +7 -7
  13. package/dist/runtime/components/data-table.d.vue.ts +16 -16
  14. package/dist/runtime/components/data-table.vue.d.ts +16 -16
  15. package/dist/runtime/components/dialog/dialog-email-OTP.d.vue.ts +2 -2
  16. package/dist/runtime/components/dialog/dialog-email-OTP.vue.d.ts +2 -2
  17. package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +2 -2
  18. package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +2 -2
  19. package/dist/runtime/components/drawer/drawer.d.vue.ts +5 -5
  20. package/dist/runtime/components/drawer/drawer.vue.d.ts +5 -5
  21. package/dist/runtime/components/dropdown.d.vue.ts +2 -2
  22. package/dist/runtime/components/dropdown.vue.d.ts +2 -2
  23. package/dist/runtime/components/input/input-birth-date.d.vue.ts +42 -0
  24. package/dist/runtime/components/input/input-birth-date.vue +74 -0
  25. package/dist/runtime/components/input/input-birth-date.vue.d.ts +42 -0
  26. package/dist/runtime/components/input/input-combobox.d.vue.ts +3 -3
  27. package/dist/runtime/components/input/input-combobox.vue.d.ts +3 -3
  28. package/dist/runtime/components/input/input-date-picker.d.vue.ts +57 -0
  29. package/dist/runtime/components/input/input-date-picker.vue +208 -0
  30. package/dist/runtime/components/input/input-date-picker.vue.d.ts +57 -0
  31. package/dist/runtime/components/input/input-file.d.vue.ts +5 -5
  32. package/dist/runtime/components/input/input-file.vue.d.ts +5 -5
  33. package/dist/runtime/components/input/input-radio.d.vue.ts +13 -13
  34. package/dist/runtime/components/input/input-radio.vue.d.ts +13 -13
  35. package/dist/runtime/components/input/input-select.d.vue.ts +2 -2
  36. package/dist/runtime/components/input/input-select.vue.d.ts +2 -2
  37. package/dist/runtime/components/input/input-slider.d.vue.ts +1 -1
  38. package/dist/runtime/components/input/input-slider.vue.d.ts +1 -1
  39. package/dist/runtime/components/input/input-text-field.d.vue.ts +4 -4
  40. package/dist/runtime/components/input/input-text-field.vue.d.ts +4 -4
  41. package/dist/runtime/components/input/input-textarea.d.vue.ts +4 -4
  42. package/dist/runtime/components/input/input-textarea.vue.d.ts +4 -4
  43. package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +2 -2
  44. package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +2 -2
  45. package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +2 -2
  46. package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +2 -2
  47. package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +2 -2
  48. package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +2 -2
  49. package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -2
  50. package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -2
  51. package/dist/runtime/components/modal/modal-password.d.vue.ts +2 -2
  52. package/dist/runtime/components/modal/modal-password.vue.d.ts +2 -2
  53. package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +2 -2
  54. package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +2 -2
  55. package/dist/runtime/components/modal/modal.d.vue.ts +7 -7
  56. package/dist/runtime/components/modal/modal.vue.d.ts +7 -7
  57. package/dist/runtime/components/table.d.vue.ts +6 -6
  58. package/dist/runtime/components/table.vue.d.ts +6 -6
  59. package/dist/runtime/components/tooltip.d.vue.ts +3 -3
  60. package/dist/runtime/components/tooltip.vue.d.ts +3 -3
  61. package/dist/runtime/components/ui/alert-dialog/AlertDialog.d.vue.ts +2 -2
  62. package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +2 -2
  63. package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.d.vue.ts +2 -2
  64. package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +2 -2
  65. package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.d.vue.ts +2 -2
  66. package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +2 -2
  67. package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +2 -2
  68. package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
  69. package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.d.vue.ts +2 -2
  70. package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +2 -2
  71. package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.d.vue.ts +2 -2
  72. package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +2 -2
  73. package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.d.vue.ts +2 -2
  74. package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +2 -2
  75. package/dist/runtime/components/ui/avatar/Avatar.d.vue.ts +2 -2
  76. package/dist/runtime/components/ui/avatar/Avatar.vue.d.ts +2 -2
  77. package/dist/runtime/components/ui/avatar/AvatarFallback.d.vue.ts +2 -2
  78. package/dist/runtime/components/ui/avatar/AvatarFallback.vue.d.ts +2 -2
  79. package/dist/runtime/components/ui/avatar/AvatarImage.d.vue.ts +2 -2
  80. package/dist/runtime/components/ui/avatar/AvatarImage.vue.d.ts +2 -2
  81. package/dist/runtime/components/ui/button/Button.d.vue.ts +2 -2
  82. package/dist/runtime/components/ui/button/Button.vue.d.ts +2 -2
  83. package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +42 -0
  84. package/dist/runtime/components/ui/calendar/Calendar.vue +174 -0
  85. package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +42 -0
  86. package/dist/runtime/components/ui/calendar/CalendarCell.d.vue.ts +18 -0
  87. package/dist/runtime/components/ui/calendar/CalendarCell.vue +23 -0
  88. package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +18 -0
  89. package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +20 -0
  90. package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +38 -0
  91. package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +20 -0
  92. package/dist/runtime/components/ui/calendar/CalendarGrid.d.vue.ts +18 -0
  93. package/dist/runtime/components/ui/calendar/CalendarGrid.vue +22 -0
  94. package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +18 -0
  95. package/dist/runtime/components/ui/calendar/CalendarGridBody.d.vue.ts +14 -0
  96. package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +16 -0
  97. package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +14 -0
  98. package/dist/runtime/components/ui/calendar/CalendarGridHead.d.vue.ts +18 -0
  99. package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +17 -0
  100. package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +18 -0
  101. package/dist/runtime/components/ui/calendar/CalendarGridRow.d.vue.ts +18 -0
  102. package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +21 -0
  103. package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +18 -0
  104. package/dist/runtime/components/ui/calendar/CalendarHeadCell.d.vue.ts +18 -0
  105. package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +22 -0
  106. package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +18 -0
  107. package/dist/runtime/components/ui/calendar/CalendarHeader.d.vue.ts +18 -0
  108. package/dist/runtime/components/ui/calendar/CalendarHeader.vue +22 -0
  109. package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +18 -0
  110. package/dist/runtime/components/ui/calendar/CalendarHeading.d.vue.ts +19 -0
  111. package/dist/runtime/components/ui/calendar/CalendarHeading.vue +26 -0
  112. package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +19 -0
  113. package/dist/runtime/components/ui/calendar/CalendarNextButton.d.vue.ts +18 -0
  114. package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +32 -0
  115. package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +18 -0
  116. package/dist/runtime/components/ui/calendar/CalendarPrevButton.d.vue.ts +18 -0
  117. package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +32 -0
  118. package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +18 -0
  119. package/dist/runtime/components/ui/calendar/index.d.ts +13 -0
  120. package/dist/runtime/components/ui/calendar/index.js +12 -0
  121. package/dist/runtime/components/ui/carousel/Carousel.d.vue.ts +7 -7
  122. package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +7 -7
  123. package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +2 -2
  124. package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +2 -2
  125. package/dist/runtime/components/ui/command/Command.d.vue.ts +2 -2
  126. package/dist/runtime/components/ui/command/Command.vue.d.ts +2 -2
  127. package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +2 -2
  128. package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +2 -2
  129. package/dist/runtime/components/ui/command/CommandEmpty.d.vue.ts +2 -2
  130. package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +2 -2
  131. package/dist/runtime/components/ui/command/CommandGroup.d.vue.ts +2 -2
  132. package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +2 -2
  133. package/dist/runtime/components/ui/command/CommandList.d.vue.ts +2 -2
  134. package/dist/runtime/components/ui/command/CommandList.vue.d.ts +2 -2
  135. package/dist/runtime/components/ui/command/CommandSeparator.d.vue.ts +2 -2
  136. package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +2 -2
  137. package/dist/runtime/components/ui/dialog/Dialog.d.vue.ts +2 -2
  138. package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +2 -2
  139. package/dist/runtime/components/ui/dialog/DialogClose.d.vue.ts +2 -2
  140. package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +2 -2
  141. package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +2 -2
  142. package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +2 -2
  143. package/dist/runtime/components/ui/dialog/DialogDescription.d.vue.ts +2 -2
  144. package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +2 -2
  145. package/dist/runtime/components/ui/dialog/DialogOverlay.d.vue.ts +2 -2
  146. package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +2 -2
  147. package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +2 -2
  148. package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +2 -2
  149. package/dist/runtime/components/ui/dialog/DialogTitle.d.vue.ts +2 -2
  150. package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +2 -2
  151. package/dist/runtime/components/ui/dialog/DialogTrigger.d.vue.ts +2 -2
  152. package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +2 -2
  153. package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.d.vue.ts +2 -2
  154. package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +2 -2
  155. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +2 -2
  156. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
  157. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
  158. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
  159. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.d.vue.ts +2 -2
  160. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +2 -2
  161. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +2 -2
  162. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +2 -2
  163. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +2 -2
  164. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +2 -2
  165. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.d.vue.ts +2 -2
  166. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +2 -2
  167. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.d.vue.ts +3 -3
  168. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +3 -3
  169. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.d.vue.ts +2 -2
  170. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +2 -2
  171. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +2 -2
  172. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  173. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +2 -2
  174. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +2 -2
  175. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.d.vue.ts +2 -2
  176. package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +2 -2
  177. package/dist/runtime/components/ui/form/FormControl.d.vue.ts +2 -2
  178. package/dist/runtime/components/ui/form/FormControl.vue.d.ts +2 -2
  179. package/dist/runtime/components/ui/form/FormLabel.d.vue.ts +2 -2
  180. package/dist/runtime/components/ui/form/FormLabel.vue.d.ts +2 -2
  181. package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +3 -3
  182. package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +3 -3
  183. package/dist/runtime/components/ui/input-group/index.d.ts +1 -1
  184. package/dist/runtime/components/ui/label/Label.d.vue.ts +2 -2
  185. package/dist/runtime/components/ui/label/Label.vue.d.ts +2 -2
  186. package/dist/runtime/components/ui/native-select/NativeSelect.d.vue.ts +23 -0
  187. package/dist/runtime/components/ui/native-select/NativeSelect.vue +44 -0
  188. package/dist/runtime/components/ui/native-select/NativeSelect.vue.d.ts +23 -0
  189. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +401 -0
  190. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue +12 -0
  191. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +401 -0
  192. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +405 -0
  193. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue +12 -0
  194. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +405 -0
  195. package/dist/runtime/components/ui/native-select/index.d.ts +3 -0
  196. package/dist/runtime/components/ui/native-select/index.js +3 -0
  197. package/dist/runtime/components/ui/pagination/Pagination.d.vue.ts +2 -2
  198. package/dist/runtime/components/ui/pagination/Pagination.vue.d.ts +2 -2
  199. package/dist/runtime/components/ui/pagination/PaginationContent.d.vue.ts +2 -2
  200. package/dist/runtime/components/ui/pagination/PaginationContent.vue.d.ts +2 -2
  201. package/dist/runtime/components/ui/pagination/PaginationEllipsis.d.vue.ts +2 -2
  202. package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue.d.ts +2 -2
  203. package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +2 -2
  204. package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +2 -2
  205. package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +2 -2
  206. package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +2 -2
  207. package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +2 -2
  208. package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +2 -2
  209. package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +2 -2
  210. package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +2 -2
  211. package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +2 -2
  212. package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +2 -2
  213. package/dist/runtime/components/ui/pin-input/PinInput.d.vue.ts +8 -4
  214. package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +8 -4
  215. package/dist/runtime/components/ui/pin-input/PinInputGroup.d.vue.ts +2 -2
  216. package/dist/runtime/components/ui/pin-input/PinInputGroup.vue.d.ts +2 -2
  217. package/dist/runtime/components/ui/pin-input/PinInputSeparator.d.vue.ts +2 -2
  218. package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue.d.ts +2 -2
  219. package/dist/runtime/components/ui/popover/Popover.d.vue.ts +2 -2
  220. package/dist/runtime/components/ui/popover/Popover.vue.d.ts +2 -2
  221. package/dist/runtime/components/ui/popover/PopoverAnchor.d.vue.ts +2 -2
  222. package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +2 -2
  223. package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +2 -2
  224. package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +2 -2
  225. package/dist/runtime/components/ui/popover/PopoverTrigger.d.vue.ts +2 -2
  226. package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +2 -2
  227. package/dist/runtime/components/ui/scroll-area/ScrollArea.d.vue.ts +18 -0
  228. package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +32 -0
  229. package/dist/runtime/components/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
  230. package/dist/runtime/components/ui/scroll-area/ScrollBar.d.vue.ts +10 -0
  231. package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +33 -0
  232. package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
  233. package/dist/runtime/components/ui/scroll-area/index.d.ts +2 -0
  234. package/dist/runtime/components/ui/scroll-area/index.js +2 -0
  235. package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
  236. package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
  237. package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
  238. package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
  239. package/dist/runtime/components/ui/select/SelectGroup.d.vue.ts +2 -2
  240. package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +2 -2
  241. package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +3 -3
  242. package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +3 -3
  243. package/dist/runtime/components/ui/select/SelectItemText.d.vue.ts +2 -2
  244. package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +2 -2
  245. package/dist/runtime/components/ui/select/SelectLabel.d.vue.ts +2 -2
  246. package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +2 -2
  247. package/dist/runtime/components/ui/select/SelectScrollDownButton.d.vue.ts +2 -2
  248. package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +2 -2
  249. package/dist/runtime/components/ui/select/SelectScrollUpButton.d.vue.ts +2 -2
  250. package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +2 -2
  251. package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +2 -2
  252. package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +2 -2
  253. package/dist/runtime/components/ui/select/SelectValue.d.vue.ts +2 -2
  254. package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +2 -2
  255. package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +2 -2
  256. package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +2 -2
  257. package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +2 -2
  258. package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +2 -2
  259. package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +2 -2
  260. package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +2 -2
  261. package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +2 -2
  262. package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +2 -2
  263. package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +2 -2
  264. package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +2 -2
  265. package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +2 -2
  266. package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +2 -2
  267. package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +2 -2
  268. package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +2 -2
  269. package/dist/runtime/components/ui/table/TableEmpty.d.vue.ts +2 -2
  270. package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +2 -2
  271. package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +2 -2
  272. package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +2 -2
  273. package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +2 -2
  274. package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +2 -2
  275. package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +2 -2
  276. package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +2 -2
  277. package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +2 -2
  278. package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +2 -2
  279. package/dist/runtime/components/ui/tooltip/Tooltip.d.vue.ts +2 -2
  280. package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +2 -2
  281. package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +2 -2
  282. package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +2 -2
  283. package/dist/runtime/components/ui/tooltip/TooltipProvider.d.vue.ts +2 -2
  284. package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +2 -2
  285. package/dist/runtime/components/ui/tooltip/TooltipTrigger.d.vue.ts +2 -2
  286. package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +2 -2
  287. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.32.0",
4
+ "version": "1.34.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -8,9 +8,9 @@ export interface ButtonProps {
8
8
  variant?: ButtonVariant;
9
9
  color?: ButtonColor;
10
10
  }
11
- declare var __VLS_7: {};
11
+ declare var __VLS_8: {};
12
12
  type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_7) => any;
13
+ default?: (props: typeof __VLS_8) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
16
16
  type: ButtonType;
@@ -8,9 +8,9 @@ export interface ButtonProps {
8
8
  variant?: ButtonVariant;
9
9
  color?: ButtonColor;
10
10
  }
11
- declare var __VLS_7: {};
11
+ declare var __VLS_8: {};
12
12
  type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_7) => any;
13
+ default?: (props: typeof __VLS_8) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
16
16
  type: ButtonType;
@@ -2,17 +2,17 @@ export interface CardProps {
2
2
  title?: string;
3
3
  description?: string;
4
4
  }
5
- declare var __VLS_12: {}, __VLS_19: {}, __VLS_26: {}, __VLS_33: any, __VLS_40: any;
5
+ declare var __VLS_14: {}, __VLS_22: {}, __VLS_30: {}, __VLS_38: any, __VLS_46: any;
6
6
  type __VLS_Slots = {} & {
7
- header?: (props: typeof __VLS_12) => any;
7
+ header?: (props: typeof __VLS_14) => any;
8
8
  } & {
9
- title?: (props: typeof __VLS_19) => any;
9
+ title?: (props: typeof __VLS_22) => any;
10
10
  } & {
11
- description?: (props: typeof __VLS_26) => any;
11
+ description?: (props: typeof __VLS_30) => any;
12
12
  } & {
13
- default?: (props: typeof __VLS_33) => any;
13
+ default?: (props: typeof __VLS_38) => any;
14
14
  } & {
15
- footer?: (props: typeof __VLS_40) => any;
15
+ footer?: (props: typeof __VLS_46) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,17 +2,17 @@ export interface CardProps {
2
2
  title?: string;
3
3
  description?: string;
4
4
  }
5
- declare var __VLS_12: {}, __VLS_19: {}, __VLS_26: {}, __VLS_33: any, __VLS_40: any;
5
+ declare var __VLS_14: {}, __VLS_22: {}, __VLS_30: {}, __VLS_38: any, __VLS_46: any;
6
6
  type __VLS_Slots = {} & {
7
- header?: (props: typeof __VLS_12) => any;
7
+ header?: (props: typeof __VLS_14) => any;
8
8
  } & {
9
- title?: (props: typeof __VLS_19) => any;
9
+ title?: (props: typeof __VLS_22) => any;
10
10
  } & {
11
- description?: (props: typeof __VLS_26) => any;
11
+ description?: (props: typeof __VLS_30) => any;
12
12
  } & {
13
- default?: (props: typeof __VLS_33) => any;
13
+ default?: (props: typeof __VLS_38) => any;
14
14
  } & {
15
- footer?: (props: typeof __VLS_40) => any;
15
+ footer?: (props: typeof __VLS_46) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,7 +1,7 @@
1
1
  import type { CarouselProps } from "@/types/components/carousel";
2
- declare var __VLS_27: {};
2
+ declare var __VLS_25: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_27) => any;
4
+ default?: (props: typeof __VLS_25) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<CarouselProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  "clicked-image": () => any;
@@ -1,7 +1,7 @@
1
1
  import type { CarouselProps } from "@/types/components/carousel";
2
- declare var __VLS_27: {};
2
+ declare var __VLS_25: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_27) => any;
4
+ default?: (props: typeof __VLS_25) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<CarouselProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  "clicked-image": () => any;
@@ -5,6 +5,7 @@ interface TypeItem {
5
5
  type __VLS_Props = {
6
6
  items?: TypeItem[];
7
7
  divider?: boolean;
8
+ expandAll?: boolean;
8
9
  };
9
10
  declare var __VLS_6: {
10
11
  label: string;
@@ -20,6 +21,7 @@ type __VLS_Slots = {} & {
20
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
22
  items: TypeItem[];
22
23
  divider: boolean;
24
+ expandAll: boolean;
23
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
27
  declare const _default: typeof __VLS_export;
@@ -54,13 +54,23 @@
54
54
  </template>
55
55
 
56
56
  <script setup>
57
- import { ref } from "vue";
57
+ import { ref, watch } from "vue";
58
58
  const props = defineProps({
59
59
  items: { type: Array, required: false, default: () => [] },
60
- divider: { type: Boolean, required: false, default: () => false }
60
+ divider: { type: Boolean, required: false, default: () => false },
61
+ expandAll: { type: Boolean, required: false, default: () => false }
61
62
  });
62
63
  const labelRef = ref([]);
63
64
  const arrShow = ref([]);
65
+ watch(
66
+ () => [props.expandAll, props.items],
67
+ ([expandAll, items]) => {
68
+ if (expandAll) {
69
+ arrShow.value = items.map((_, index) => index);
70
+ }
71
+ },
72
+ { immediate: true }
73
+ );
64
74
  const handleShow = (index) => {
65
75
  if (arrShow.value.includes(index)) {
66
76
  arrShow.value = arrShow.value.filter((item) => item !== index);
@@ -5,6 +5,7 @@ interface TypeItem {
5
5
  type __VLS_Props = {
6
6
  items?: TypeItem[];
7
7
  divider?: boolean;
8
+ expandAll?: boolean;
8
9
  };
9
10
  declare var __VLS_6: {
10
11
  label: string;
@@ -20,6 +21,7 @@ type __VLS_Slots = {} & {
20
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
22
  items: TypeItem[];
22
23
  divider: boolean;
24
+ expandAll: boolean;
23
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
27
  declare const _default: typeof __VLS_export;
@@ -11,20 +11,20 @@ type __VLS_ModelProps = {
11
11
  "page"?: number;
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_6: {
14
+ declare var __VLS_7: {
15
15
  items: Record<string, any>[];
16
- }, __VLS_26: {
16
+ }, __VLS_29: {
17
17
  item: Record<string, any>;
18
18
  index: number;
19
- }, __VLS_28: {}, __VLS_35: {};
19
+ }, __VLS_31: {}, __VLS_39: {};
20
20
  type __VLS_Slots = {} & {
21
- body?: (props: typeof __VLS_6) => any;
21
+ body?: (props: typeof __VLS_7) => any;
22
22
  } & {
23
- item?: (props: typeof __VLS_26) => any;
23
+ item?: (props: typeof __VLS_29) => any;
24
24
  } & {
25
- empty?: (props: typeof __VLS_28) => any;
25
+ empty?: (props: typeof __VLS_31) => any;
26
26
  } & {
27
- 'empty-content'?: (props: typeof __VLS_35) => any;
27
+ 'empty-content'?: (props: typeof __VLS_39) => any;
28
28
  };
29
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
30
  "update:page": (value: number) => any;
@@ -11,20 +11,20 @@ type __VLS_ModelProps = {
11
11
  "page"?: number;
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_6: {
14
+ declare var __VLS_7: {
15
15
  items: Record<string, any>[];
16
- }, __VLS_26: {
16
+ }, __VLS_29: {
17
17
  item: Record<string, any>;
18
18
  index: number;
19
- }, __VLS_28: {}, __VLS_35: {};
19
+ }, __VLS_31: {}, __VLS_39: {};
20
20
  type __VLS_Slots = {} & {
21
- body?: (props: typeof __VLS_6) => any;
21
+ body?: (props: typeof __VLS_7) => any;
22
22
  } & {
23
- item?: (props: typeof __VLS_26) => any;
23
+ item?: (props: typeof __VLS_29) => any;
24
24
  } & {
25
- empty?: (props: typeof __VLS_28) => any;
25
+ empty?: (props: typeof __VLS_31) => any;
26
26
  } & {
27
- 'empty-content'?: (props: typeof __VLS_35) => any;
27
+ 'empty-content'?: (props: typeof __VLS_39) => any;
28
28
  };
29
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
30
  "update:page": (value: number) => any;
@@ -17,30 +17,30 @@ type __VLS_ModelProps = {
17
17
  "page"?: number;
18
18
  };
19
19
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
- declare var __VLS_11: {
20
+ declare var __VLS_13: {
21
21
  item: TableHeader[];
22
- }, __VLS_28: {
23
- items: any;
24
- header: any;
25
- }, __VLS_43: {
26
- item: any;
27
- header: any;
22
+ }, __VLS_32: {
23
+ items: Record<string, any>[];
24
+ header: TableHeader[];
25
+ }, __VLS_48: {
26
+ item: Record<string, any>;
27
+ header: TableHeader[];
28
28
  index: number;
29
- }, __VLS_51: `item-${any}`, __VLS_52: {
30
- item: any;
31
- }, __VLS_54: {}, __VLS_61: {};
29
+ }, __VLS_57: `item-${string}`, __VLS_58: {
30
+ item: Record<string, any>;
31
+ }, __VLS_60: {}, __VLS_68: {};
32
32
  type __VLS_Slots = {} & {
33
- [K in NonNullable<typeof __VLS_51>]?: (props: typeof __VLS_52) => any;
33
+ [K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
34
34
  } & {
35
- header?: (props: typeof __VLS_11) => any;
35
+ header?: (props: typeof __VLS_13) => any;
36
36
  } & {
37
- body?: (props: typeof __VLS_28) => any;
37
+ body?: (props: typeof __VLS_32) => any;
38
38
  } & {
39
- item?: (props: typeof __VLS_43) => any;
39
+ item?: (props: typeof __VLS_48) => any;
40
40
  } & {
41
- empty?: (props: typeof __VLS_54) => any;
41
+ empty?: (props: typeof __VLS_60) => any;
42
42
  } & {
43
- 'empty-content'?: (props: typeof __VLS_61) => any;
43
+ 'empty-content'?: (props: typeof __VLS_68) => any;
44
44
  };
45
45
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
46
  "update:page": (value: number) => any;
@@ -17,30 +17,30 @@ type __VLS_ModelProps = {
17
17
  "page"?: number;
18
18
  };
19
19
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
- declare var __VLS_11: {
20
+ declare var __VLS_13: {
21
21
  item: TableHeader[];
22
- }, __VLS_28: {
23
- items: any;
24
- header: any;
25
- }, __VLS_43: {
26
- item: any;
27
- header: any;
22
+ }, __VLS_32: {
23
+ items: Record<string, any>[];
24
+ header: TableHeader[];
25
+ }, __VLS_48: {
26
+ item: Record<string, any>;
27
+ header: TableHeader[];
28
28
  index: number;
29
- }, __VLS_51: `item-${any}`, __VLS_52: {
30
- item: any;
31
- }, __VLS_54: {}, __VLS_61: {};
29
+ }, __VLS_57: `item-${string}`, __VLS_58: {
30
+ item: Record<string, any>;
31
+ }, __VLS_60: {}, __VLS_68: {};
32
32
  type __VLS_Slots = {} & {
33
- [K in NonNullable<typeof __VLS_51>]?: (props: typeof __VLS_52) => any;
33
+ [K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
34
34
  } & {
35
- header?: (props: typeof __VLS_11) => any;
35
+ header?: (props: typeof __VLS_13) => any;
36
36
  } & {
37
- body?: (props: typeof __VLS_28) => any;
37
+ body?: (props: typeof __VLS_32) => any;
38
38
  } & {
39
- item?: (props: typeof __VLS_43) => any;
39
+ item?: (props: typeof __VLS_48) => any;
40
40
  } & {
41
- empty?: (props: typeof __VLS_54) => any;
41
+ empty?: (props: typeof __VLS_60) => any;
42
42
  } & {
43
- 'empty-content'?: (props: typeof __VLS_61) => any;
43
+ 'empty-content'?: (props: typeof __VLS_68) => any;
44
44
  };
45
45
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
46
  "update:page": (value: number) => any;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- close: () => any;
11
10
  complete: () => any;
11
+ close: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onClose?: (() => any) | undefined;
15
14
  onComplete?: (() => any) | undefined;
15
+ onClose?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- close: () => any;
11
10
  complete: () => any;
11
+ close: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onClose?: (() => any) | undefined;
15
14
  onComplete?: (() => any) | undefined;
15
+ onClose?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- close: () => any;
11
10
  complete: (value: string) => any;
11
+ close: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onClose?: (() => any) | undefined;
15
14
  onComplete?: ((value: string) => any) | undefined;
15
+ onClose?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  phone: string;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- close: () => any;
11
10
  complete: (value: string) => any;
11
+ close: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onClose?: (() => any) | undefined;
15
14
  onComplete?: ((value: string) => any) | undefined;
15
+ onClose?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  phone: string;
@@ -8,17 +8,17 @@ type __VLS_ModelProps = {
8
8
  modelValue?: boolean;
9
9
  };
10
10
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
- declare var __VLS_20: {}, __VLS_32: {
11
+ declare var __VLS_22: {}, __VLS_36: {
12
12
  meta: any;
13
- }, __VLS_39: {
13
+ }, __VLS_44: {
14
14
  meta: any;
15
15
  };
16
16
  type __VLS_Slots = {} & {
17
- header?: (props: typeof __VLS_20) => any;
17
+ header?: (props: typeof __VLS_22) => any;
18
18
  } & {
19
- default?: (props: typeof __VLS_32) => any;
19
+ default?: (props: typeof __VLS_36) => any;
20
20
  } & {
21
- footer?: (props: typeof __VLS_39) => any;
21
+ footer?: (props: typeof __VLS_44) => any;
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:modelValue": (value: boolean) => any;
@@ -8,17 +8,17 @@ type __VLS_ModelProps = {
8
8
  modelValue?: boolean;
9
9
  };
10
10
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
- declare var __VLS_20: {}, __VLS_32: {
11
+ declare var __VLS_22: {}, __VLS_36: {
12
12
  meta: any;
13
- }, __VLS_39: {
13
+ }, __VLS_44: {
14
14
  meta: any;
15
15
  };
16
16
  type __VLS_Slots = {} & {
17
- header?: (props: typeof __VLS_20) => any;
17
+ header?: (props: typeof __VLS_22) => any;
18
18
  } & {
19
- default?: (props: typeof __VLS_32) => any;
19
+ default?: (props: typeof __VLS_36) => any;
20
20
  } & {
21
- footer?: (props: typeof __VLS_39) => any;
21
+ footer?: (props: typeof __VLS_44) => any;
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:modelValue": (value: boolean) => any;
@@ -1,6 +1,6 @@
1
- declare var __VLS_12: {};
1
+ declare var __VLS_14: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_12) => any;
3
+ default?: (props: typeof __VLS_14) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,6 +1,6 @@
1
- declare var __VLS_12: {};
1
+ declare var __VLS_14: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_12) => any;
3
+ default?: (props: typeof __VLS_14) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,42 @@
1
+ import type { HTMLAttributes } from "vue";
2
+ import type { LayoutTypes } from "@/runtime/components/ui/calendar";
3
+ export interface InputBirthDateProps {
4
+ id?: string;
5
+ name?: string;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ placeholder?: string;
9
+ description?: string;
10
+ disabledErrorMessage?: boolean;
11
+ required?: boolean;
12
+ dateFormat?: string;
13
+ locale?: string;
14
+ layout?: LayoutTypes;
15
+ class?: HTMLAttributes["class"];
16
+ minAge?: number;
17
+ maxYearsBack?: number;
18
+ }
19
+ type __VLS_Props = InputBirthDateProps;
20
+ type __VLS_ModelProps = {
21
+ modelValue?: Date | undefined;
22
+ };
23
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: Date | undefined) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: Date | undefined) => any) | undefined;
28
+ }>, {
29
+ required: boolean;
30
+ id: string;
31
+ name: string;
32
+ placeholder: string;
33
+ disabled: boolean;
34
+ disabledErrorMessage: boolean;
35
+ locale: string;
36
+ layout: "month-and-year" | "month-only" | "year-only";
37
+ dateFormat: string;
38
+ minAge: number;
39
+ maxYearsBack: number;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
@@ -0,0 +1,74 @@
1
+ <template>
2
+ <InputDatePicker
3
+ v-model="modelValue"
4
+ :id="props.id"
5
+ :name="props.name"
6
+ :label="props.label"
7
+ :placeholder="props.placeholder"
8
+ :disabled="props.disabled"
9
+ :required="props.required"
10
+ :description="props.description"
11
+ :disabled-error-message="props.disabledErrorMessage"
12
+ :date-format="props.dateFormat"
13
+ :locale="props.locale"
14
+ :layout="props.layout"
15
+ :max-value="today"
16
+ :min-value="minDate"
17
+ :rules="birthDateRules"
18
+ :class="props.class"
19
+ />
20
+ </template>
21
+
22
+ <script setup>
23
+ import { computed } from "vue";
24
+ const props = defineProps({
25
+ id: { type: String, required: false, default: "input-birth-date" },
26
+ name: { type: String, required: false, default: "input-birth-date" },
27
+ disabled: { type: Boolean, required: false, default: false },
28
+ label: { type: String, required: false },
29
+ placeholder: { type: String, required: false, default: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19\u0E40\u0E01\u0E34\u0E14" },
30
+ description: { type: String, required: false },
31
+ disabledErrorMessage: { type: Boolean, required: false, default: false },
32
+ required: { type: Boolean, required: false, default: false },
33
+ dateFormat: { type: String, required: false, default: "D MMMM BBBB" },
34
+ locale: { type: String, required: false, default: "th" },
35
+ layout: { type: null, required: false, default: "month-and-year" },
36
+ class: { type: null, required: false },
37
+ minAge: { type: Number, required: false, default: 13 },
38
+ maxYearsBack: { type: Number, required: false, default: 100 }
39
+ });
40
+ const modelValue = defineModel({ type: null, ...{ default: void 0 } });
41
+ const today = computed(() => /* @__PURE__ */ new Date());
42
+ const minDate = computed(() => {
43
+ const date = /* @__PURE__ */ new Date();
44
+ date.setFullYear(date.getFullYear() - props.maxYearsBack);
45
+ return date;
46
+ });
47
+ const birthDateRules = (v) => {
48
+ if (!v && props.required) {
49
+ return `\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01${props.label || "\u0E27\u0E31\u0E19\u0E40\u0E01\u0E34\u0E14"}`;
50
+ }
51
+ if (v) {
52
+ const now = /* @__PURE__ */ new Date();
53
+ if (v > now) {
54
+ return "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
55
+ }
56
+ const minAllowedDate = /* @__PURE__ */ new Date();
57
+ minAllowedDate.setFullYear(
58
+ minAllowedDate.getFullYear() - props.maxYearsBack
59
+ );
60
+ if (v < minAllowedDate) {
61
+ return "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
62
+ }
63
+ const ageDate = new Date(
64
+ now.getFullYear() - props.minAge,
65
+ now.getMonth(),
66
+ now.getDate()
67
+ );
68
+ if (v > ageDate) {
69
+ return `\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2D\u0E32\u0E22\u0E38\u0E44\u0E21\u0E48\u0E15\u0E48\u0E33\u0E01\u0E27\u0E48\u0E32 ${props.minAge} \u0E1B\u0E35`;
70
+ }
71
+ }
72
+ return true;
73
+ };
74
+ </script>
@@ -0,0 +1,42 @@
1
+ import type { HTMLAttributes } from "vue";
2
+ import type { LayoutTypes } from "@/runtime/components/ui/calendar";
3
+ export interface InputBirthDateProps {
4
+ id?: string;
5
+ name?: string;
6
+ disabled?: boolean;
7
+ label?: string;
8
+ placeholder?: string;
9
+ description?: string;
10
+ disabledErrorMessage?: boolean;
11
+ required?: boolean;
12
+ dateFormat?: string;
13
+ locale?: string;
14
+ layout?: LayoutTypes;
15
+ class?: HTMLAttributes["class"];
16
+ minAge?: number;
17
+ maxYearsBack?: number;
18
+ }
19
+ type __VLS_Props = InputBirthDateProps;
20
+ type __VLS_ModelProps = {
21
+ modelValue?: Date | undefined;
22
+ };
23
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: Date | undefined) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: Date | undefined) => any) | undefined;
28
+ }>, {
29
+ required: boolean;
30
+ id: string;
31
+ name: string;
32
+ placeholder: string;
33
+ disabled: boolean;
34
+ disabledErrorMessage: boolean;
35
+ locale: string;
36
+ layout: "month-and-year" | "month-only" | "year-only";
37
+ dateFormat: string;
38
+ minAge: number;
39
+ maxYearsBack: number;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
@@ -19,11 +19,11 @@ type __VLS_ModelProps = {
19
19
  modelValue?: string | string[];
20
20
  };
21
21
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
- declare var __VLS_18: {}, __VLS_70: {};
22
+ declare var __VLS_21: {}, __VLS_81: {};
23
23
  type __VLS_Slots = {} & {
24
- label?: (props: typeof __VLS_18) => any;
24
+ label?: (props: typeof __VLS_21) => any;
25
25
  } & {
26
- options?: (props: typeof __VLS_70) => any;
26
+ options?: (props: typeof __VLS_81) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
29
29
  validate: () => Promise<any>;
@@ -19,11 +19,11 @@ type __VLS_ModelProps = {
19
19
  modelValue?: string | string[];
20
20
  };
21
21
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
- declare var __VLS_18: {}, __VLS_70: {};
22
+ declare var __VLS_21: {}, __VLS_81: {};
23
23
  type __VLS_Slots = {} & {
24
- label?: (props: typeof __VLS_18) => any;
24
+ label?: (props: typeof __VLS_21) => any;
25
25
  } & {
26
- options?: (props: typeof __VLS_70) => any;
26
+ options?: (props: typeof __VLS_81) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
29
29
  validate: () => Promise<any>;