eco-vue-js 0.5.25 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. package/dist/assets/icons/sax/IconClose.svg.js +26 -0
  2. package/dist/assets/icons/sax/IconEdit.svg.js +24 -0
  3. package/dist/assets/icons/sax/IconSlash.svg.js +27 -0
  4. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +129 -2
  5. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  6. package/dist/components/ActionsBar/WActionsBar.vue.js +1 -2
  7. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts +20 -15
  8. package/dist/components/BottomSheet/WBottomSheet.vue.d.ts.map +1 -1
  9. package/dist/components/BottomSheet/WBottomSheet.vue.js +2 -4
  10. package/dist/components/Button/WButton.vue.d.ts +20 -17
  11. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButton.vue.js +1 -2
  13. package/dist/components/Button/WButtonAction.vue.d.ts +21 -18
  14. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonCopy.vue.d.ts +3 -3
  16. package/dist/components/Button/WButtonCopy.vue.d.ts.map +1 -1
  17. package/dist/components/Button/WButtonCopy.vue.js +9 -43
  18. package/dist/components/Button/WButtonDropdown.vue.d.ts +33 -25
  19. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  20. package/dist/components/Button/WButtonDropdown.vue.js +12 -9
  21. package/dist/components/Button/WButtonGroup.vue.d.ts +17 -110
  22. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  23. package/dist/components/Button/WButtonGroup.vue.js +68 -44
  24. package/dist/components/Button/WButtonMore.vue.d.ts +14 -12
  25. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  26. package/dist/components/Button/WButtonMore.vue.js +1 -2
  27. package/dist/components/Button/WButtonMoreItem.vue.d.ts +19 -16
  28. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  29. package/dist/components/Button/WButtonSelection.vue.d.ts +16 -16
  30. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  31. package/dist/components/Button/WButtonSelectionAction.vue.d.ts +8 -8
  32. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  33. package/dist/components/Button/models/semanticTypeStylesMap.d.ts +1 -0
  34. package/dist/components/Button/types.d.ts +36 -0
  35. package/dist/components/Button/types.d.ts.map +1 -0
  36. package/dist/components/Checkbox/WCheckbox.vue.d.ts +34 -32
  37. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  38. package/dist/components/Checkbox/WCheckbox.vue.js +1 -2
  39. package/dist/components/Chip/WChip.vue.d.ts +19 -16
  40. package/dist/components/Chip/WChip.vue.d.ts.map +1 -1
  41. package/dist/components/ClickOutside/WClickOutside.vue.d.ts +7 -5
  42. package/dist/components/ClickOutside/WClickOutside.vue.d.ts.map +1 -1
  43. package/dist/components/ClickOutside/WClickOutside.vue.js +3 -6
  44. package/dist/components/Counter/WCounter.vue.d.ts +15 -15
  45. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  46. package/dist/components/Counter/WCounter.vue.js +1 -2
  47. package/dist/components/DatePicker/WDatePicker.vue.d.ts +6 -5
  48. package/dist/components/DatePicker/WDatePicker.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/WDatePicker.vue.js +1 -2
  50. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts +6 -6
  51. package/dist/components/DatePicker/WDatePickerSingle.vue.d.ts.map +1 -1
  52. package/dist/components/DatePicker/WDatePickerSingle.vue.js +1 -2
  53. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts +10 -9
  54. package/dist/components/DatePicker/components/CalendarDay.vue.d.ts.map +1 -1
  55. package/dist/components/DatePicker/components/CalendarDay.vue.js +10 -20
  56. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts +12 -11
  57. package/dist/components/DatePicker/components/CalendarMonth.vue.d.ts.map +1 -1
  58. package/dist/components/DatePicker/components/CalendarMonth.vue.js +7 -14
  59. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts +4 -4
  60. package/dist/components/DatePicker/components/CalendarToggle.vue.d.ts.map +1 -1
  61. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts +8 -8
  62. package/dist/components/DatePicker/components/CalendarValue.vue.d.ts.map +1 -1
  63. package/dist/components/DatePicker/components/CalendarValue.vue.js +1 -2
  64. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts +8 -7
  65. package/dist/components/DatePicker/components/CalendarWeek.vue.d.ts.map +1 -1
  66. package/dist/components/DatePicker/components/CalendarWeek.vue.js +7 -14
  67. package/dist/components/Dropdown/WDropdown.vue.d.ts +18 -29
  68. package/dist/components/Dropdown/WDropdown.vue.d.ts.map +1 -1
  69. package/dist/components/Dropdown/WDropdown.vue.js +7 -14
  70. package/dist/components/Dropdown/types.d.ts +11 -0
  71. package/dist/components/Dropdown/types.d.ts.map +1 -0
  72. package/dist/components/Dropdown/utils/DropdownStyle.d.ts +1 -0
  73. package/dist/components/Dropdown/utils/DropdownStyle.js +2 -4
  74. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +18 -33
  75. package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
  76. package/dist/components/DropdownMenu/WDropdownMenu.vue.js +3 -3
  77. package/dist/components/DropdownMenu/types.d.ts +8 -0
  78. package/dist/components/DropdownMenu/types.d.ts.map +1 -0
  79. package/dist/components/Expansion/WExpansion.vue.d.ts +20 -18
  80. package/dist/components/Expansion/WExpansion.vue.d.ts.map +1 -1
  81. package/dist/components/Expansion/WExpansionItem.vue.d.ts +24 -22
  82. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  83. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +29 -21
  84. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  85. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +148 -18
  86. package/dist/components/FieldWrapper/types.d.ts +16 -0
  87. package/dist/components/FieldWrapper/types.d.ts.map +1 -0
  88. package/dist/components/FilePicker/WFilePicker.vue.d.ts +36 -32
  89. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  90. package/dist/components/FilePicker/WFilePicker.vue.js +3 -6
  91. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts +19 -17
  92. package/dist/components/FilePicker/components/FilePickerItem.vue.d.ts.map +1 -1
  93. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +7 -7
  94. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
  95. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts +16 -14
  96. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  97. package/dist/components/Form/WForm.vue.d.ts +21 -19
  98. package/dist/components/Form/WForm.vue.d.ts.map +1 -1
  99. package/dist/components/Form/WFormValidator.vue.d.ts +28 -26
  100. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  101. package/dist/components/Form/WFormValidator.vue.js +12 -24
  102. package/dist/components/Form/models/injection.d.ts +2 -1
  103. package/dist/components/Form/models/injection.d.ts.map +1 -1
  104. package/dist/components/Form/models/utils.d.ts.map +1 -1
  105. package/dist/components/Form/models/utils.js +5 -4
  106. package/dist/components/Form/use/useFormErrorMessageMap.d.ts +4 -3
  107. package/dist/components/Form/use/useFormErrorMessageMap.d.ts.map +1 -1
  108. package/dist/components/Form/use/useFormHasChangesMap.d.ts +3 -2
  109. package/dist/components/Form/use/useFormHasChangesMap.d.ts.map +1 -1
  110. package/dist/components/Form/use/useFormInitModelMap.d.ts +2 -1
  111. package/dist/components/Form/use/useFormInitModelMap.d.ts.map +1 -1
  112. package/dist/components/Form/use/useFormInvalidateMap.d.ts +2 -1
  113. package/dist/components/Form/use/useFormInvalidateMap.d.ts.map +1 -1
  114. package/dist/components/Form/use/useFormTitleMap.d.ts +2 -1
  115. package/dist/components/Form/use/useFormTitleMap.d.ts.map +1 -1
  116. package/dist/components/Form/use/useFormValidateMap.d.ts +2 -1
  117. package/dist/components/Form/use/useFormValidateMap.d.ts.map +1 -1
  118. package/dist/components/Form/use/useFormValidateMap.js +1 -2
  119. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +27 -24
  120. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  121. package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -4
  122. package/dist/components/ImageViewer/WImageViewer.vue.d.ts +9 -9
  123. package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
  124. package/dist/components/ImageViewer/WImageViewer.vue.js +1 -2
  125. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts +6 -6
  126. package/dist/components/ImageViewer/components/ImageModal.vue.d.ts.map +1 -1
  127. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +67 -237
  128. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  129. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +50 -187
  130. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  131. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +20 -40
  132. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +4 -2
  133. package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -1
  134. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts +2 -2
  135. package/dist/components/InfiniteList/components/InfiniteListButton.vue.d.ts.map +1 -1
  136. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +57 -209
  137. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  138. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +21 -42
  139. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +18 -16
  140. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -1
  141. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +19 -43
  142. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
  143. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +2 -4
  144. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +13 -23
  145. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  146. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts +14 -12
  147. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
  148. package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +1 -2
  149. package/dist/components/InfiniteList/models/injection.d.ts +8 -7
  150. package/dist/components/InfiniteList/models/injection.d.ts.map +1 -1
  151. package/dist/components/InfiniteList/models/utils.js +2 -4
  152. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +5 -5
  153. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +4 -2
  154. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +1 -1
  155. package/dist/components/InfiniteList/use/useRefetchNextPages.js +1 -2
  156. package/dist/components/InfiniteList/use/useSelected.d.ts +6 -5
  157. package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -1
  158. package/dist/components/InfiniteList/use/useSelected.js +13 -26
  159. package/dist/components/InfoCard/WInfoCard.vue.d.ts +16 -14
  160. package/dist/components/InfoCard/WInfoCard.vue.d.ts.map +1 -1
  161. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts +16 -13
  162. package/dist/components/InfoCard/WInfoCardNegative.vue.d.ts.map +1 -1
  163. package/dist/components/Input/WInput.vue.d.ts +41 -199
  164. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  165. package/dist/components/Input/WInput.vue.js +137 -227
  166. package/dist/components/Input/WInputAsync.vue.d.ts +16 -94
  167. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  168. package/dist/components/Input/WInputAsync.vue.js +118 -104
  169. package/dist/components/Input/WInputDate.vue.d.ts +41 -8
  170. package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
  171. package/dist/components/Input/WInputDate.vue.js +66 -14
  172. package/dist/components/Input/WInputOptions.vue.d.ts +18 -125
  173. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  174. package/dist/components/Input/WInputOptions.vue.js +64 -53
  175. package/dist/components/Input/WInputSuggest.vue.d.ts +49 -207
  176. package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
  177. package/dist/components/Input/WInputSuggest.vue.js +71 -57
  178. package/dist/components/Input/components/InputActions.vue.d.ts +34 -28
  179. package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
  180. package/dist/components/Input/components/InputActions.vue.js +49 -84
  181. package/dist/components/Input/components/InputActionsButton.vue.d.ts +35 -0
  182. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -0
  183. package/dist/components/Input/components/InputActionsButton.vue.js +41 -0
  184. package/dist/components/Input/components/InputActionsButton.vue2.js +5 -0
  185. package/dist/components/Input/types.d.ts +45 -0
  186. package/dist/components/Input/types.d.ts.map +1 -0
  187. package/dist/components/Link/WLink.vue.d.ts +19 -16
  188. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  189. package/dist/components/Link/WLinkArrow.vue.d.ts +12 -9
  190. package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
  191. package/dist/components/ListCard/WListCard.vue.d.ts +27 -25
  192. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  193. package/dist/components/ListCard/WListCardField.vue.d.ts +17 -14
  194. package/dist/components/ListCard/WListCardField.vue.d.ts.map +1 -1
  195. package/dist/components/MenuItem/WMenuItem.vue.d.ts +19 -16
  196. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  197. package/dist/components/Modal/WModal.vue.d.ts +1 -1
  198. package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
  199. package/dist/components/Modal/WModal.vue.js +2 -4
  200. package/dist/components/Modal/WModalStepper.vue.d.ts +18 -16
  201. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  202. package/dist/components/Modal/WModalWrapper.vue.d.ts +14 -12
  203. package/dist/components/Modal/WModalWrapper.vue.d.ts.map +1 -1
  204. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts +2 -2
  205. package/dist/components/Modal/components/ModalCloseButton.vue.d.ts.map +1 -1
  206. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts +19 -18
  207. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  208. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +2 -4
  209. package/dist/components/Modal/modals/Confirm/types.d.ts +2 -1
  210. package/dist/components/Nav/WNavBar.vue.d.ts +7 -5
  211. package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
  212. package/dist/components/Nav/WNavItem.vue.d.ts +16 -13
  213. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  214. package/dist/components/Nav/WNavItem.vue.js +1 -2
  215. package/dist/components/Nav/WNavItemExpand.vue.d.ts +15 -12
  216. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  217. package/dist/components/Nav/WNavItemExpand.vue.js +3 -0
  218. package/dist/components/Nav/WNavItemTransition.vue.d.ts +4 -2
  219. package/dist/components/Nav/WNavItemTransition.vue.d.ts.map +1 -1
  220. package/dist/components/Notify/WNotify.vue.d.ts +1 -1
  221. package/dist/components/Notify/WNotify.vue.d.ts.map +1 -1
  222. package/dist/components/Notify/WNotify.vue.js +1 -2
  223. package/dist/components/Notify/components/NotifyCard.vue.d.ts +15 -14
  224. package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
  225. package/dist/components/Notify/components/NotifyCard.vue.js +2 -4
  226. package/dist/components/Notify/models/types.d.ts +3 -2
  227. package/dist/components/Select/WSelect.vue.d.ts +41 -188
  228. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  229. package/dist/components/Select/WSelect.vue.js +74 -66
  230. package/dist/components/Select/WSelectAsync.vue.d.ts +32 -207
  231. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  232. package/dist/components/Select/WSelectAsync.vue.js +78 -60
  233. package/dist/components/Select/WSelectAsyncList.vue.d.ts +33 -111
  234. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  235. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +24 -166
  236. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  237. package/dist/components/Select/WSelectAsyncSingle.vue.js +93 -82
  238. package/dist/components/Select/WSelectSingle.vue.d.ts +25 -149
  239. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  240. package/dist/components/Select/WSelectSingle.vue.js +84 -70
  241. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +43 -133
  242. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  243. package/dist/components/Select/components/SelectAsyncList.vue.js +7 -14
  244. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +37 -104
  245. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  246. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +37 -102
  247. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  248. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +1 -2
  249. package/dist/components/Select/components/SelectOption.vue.d.ts +45 -132
  250. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  251. package/dist/components/Select/components/SelectOption.vue.js +12 -24
  252. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +23 -52
  253. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  254. package/dist/components/Select/types.d.ts +47 -0
  255. package/dist/components/Select/types.d.ts.map +1 -0
  256. package/dist/components/Skeleton/WSkeleton.vue.d.ts +1 -1
  257. package/dist/components/Skeleton/WSkeleton.vue.d.ts.map +1 -1
  258. package/dist/components/Spinner/WSpinner.vue.d.ts +1 -1
  259. package/dist/components/Spinner/WSpinner.vue.d.ts.map +1 -1
  260. package/dist/components/Tabs/WTabs.vue.d.ts +22 -24
  261. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  262. package/dist/components/Tabs/WTabs.vue.js +6 -12
  263. package/dist/components/Tabs/WTabsColumns.vue.d.ts +3 -3
  264. package/dist/components/Tabs/WTabsColumns.vue.d.ts.map +1 -1
  265. package/dist/components/Tabs/components/TabItem.vue.d.ts +14 -12
  266. package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
  267. package/dist/components/Tabs/components/TabItem.vue.js +3 -6
  268. package/dist/components/Tabs/models/injection.d.ts +2 -1
  269. package/dist/components/Tabs/models/injection.d.ts.map +1 -1
  270. package/dist/components/Tabs/use/useTabItemActiveListener.js +1 -2
  271. package/dist/components/Toggle/WToggle.vue.d.ts +19 -50
  272. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  273. package/dist/components/Toggle/WToggle.vue.js +1 -2
  274. package/dist/components/Tooltip/WTooltip.vue.d.ts +15 -15
  275. package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
  276. package/dist/components/Tooltip/WTooltip.vue.js +4 -8
  277. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts +1 -1
  278. package/dist/components/Tooltip/WTooltipContainer.vue.d.ts.map +1 -1
  279. package/dist/components/Tooltip/WTooltipContainer.vue.js +1 -2
  280. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts +22 -19
  281. package/dist/components/Tooltip/components/TooltipContainer.vue.d.ts.map +1 -1
  282. package/dist/components/Tooltip/components/TooltipContainer.vue.js +5 -10
  283. package/dist/imports/componentsPlugin.d.ts +64 -63
  284. package/dist/imports/iconsSax.d.ts +3 -0
  285. package/dist/imports/iconsSax.d.ts.map +1 -1
  286. package/dist/imports/iconsSax.js +3 -0
  287. package/dist/main.d.ts +1 -0
  288. package/dist/main.d.ts.map +1 -1
  289. package/dist/main.js +1 -0
  290. package/dist/utils/DOMListenerContainer.js +2 -4
  291. package/dist/utils/Modal.d.ts +4 -3
  292. package/dist/utils/Modal.d.ts.map +1 -1
  293. package/dist/utils/Notify.d.ts +5 -4
  294. package/dist/utils/Notify.d.ts.map +1 -1
  295. package/dist/utils/Tooltip.d.ts +2 -1
  296. package/dist/utils/dateTime.d.ts.map +1 -1
  297. package/dist/utils/dateTime.js +28 -56
  298. package/dist/utils/useCopy.d.ts +8 -0
  299. package/dist/utils/useCopy.d.ts.map +1 -0
  300. package/dist/utils/useCopy.js +56 -0
  301. package/dist/utils/useDefaultQuery.d.ts +4 -3
  302. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  303. package/dist/utils/utils.d.ts.map +1 -1
  304. package/dist/utils/utils.js +10 -20
  305. package/package.json +40 -19
  306. package/tailwind-base/plugins/default.cjs +6 -0
  307. package/tailwind-base/theme/sizes.cjs +2 -0
@@ -1,82 +1,59 @@
1
- import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderSlot, createTextVNode, toDisplayString, createVNode, Transition, withCtx, createCommentVNode, createBlock, normalizeStyle, withModifiers, resolveDynamicComponent, withKeys, createSlots, unref, nextTick } from 'vue';
2
- import WSkeleton from '../Skeleton/WSkeleton.vue.js';
3
- import _sfc_main$1 from './components/InputActions.vue.js';
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, withKeys, createVNode, nextTick } from 'vue';
2
+ import _sfc_main$2 from './components/InputActions.vue.js';
4
3
  import { Notify } from '../../utils/Notify.js';
5
- import { numberFormatter, genId } from '../../utils/utils.js';
6
4
  import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
5
+ import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
7
6
 
8
7
  const _hoisted_1 = {
9
8
  key: 0,
10
- class: "text-negative dark:text-negative-dark"
11
- };
12
- const _hoisted_2 = { class: "grid grid-cols-[1fr,auto]" };
13
- const _hoisted_3 = {
14
- key: 0,
15
- class: "relative isolate grid grid-cols-1"
16
- };
17
- const _hoisted_4 = {
18
- key: 0,
19
- class: "absolute top-0 left-0 h-full flex items-center justify-center px-3 text-description select-none"
20
- };
21
- const _hoisted_5 = {
22
- key: 0,
23
- class: "text-xs font-normal text-negative dark:text-negative-dark absolute right-0 top-full pt-0.5 text-end"
24
- };
25
- const _hoisted_6 = {
26
- key: 1,
27
- class: "text-xs font-normal text-description absolute right-0 top-full pt-0.5 whitespace-nowrap"
28
- };
29
- const _hoisted_7 = {
30
- key: 2,
31
- ref: "rightContainer",
32
- class: "pl-4 flex gap-4 sm-not:flex-col"
9
+ class: "flex items-center w-11 h-full justify-center text-description select-none"
33
10
  };
11
+ const _hoisted_2 = { class: "col-start-2 grid grid-cols-1 group/input" };
34
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...{ inheritAttrs: false },
35
14
  __name: "WInput",
36
15
  props: {
37
- modelValue: { default: void 0 },
38
- title: { default: void 0 },
39
- description: { default: void 0 },
40
- placeholder: { default: void 0 },
41
- type: { default: void 0 },
42
- name: { default: void 0 },
16
+ modelValue: {},
17
+ type: {},
18
+ textarea: { type: Boolean },
19
+ resize: { type: Boolean },
20
+ placeholder: {},
21
+ icon: {},
22
+ size: { default: 10 },
23
+ maxLength: {},
24
+ name: {},
43
25
  autocomplete: { default: "off" },
44
26
  autofocus: { type: Boolean },
45
- textarea: { type: Boolean },
46
- disabled: { type: Boolean },
47
- allowClear: { type: Boolean },
48
- errorMessage: { default: void 0 },
49
27
  readonly: { type: Boolean },
50
- icon: { default: void 0 },
51
- maxLength: { default: void 0 },
28
+ disabledActions: { type: Boolean },
52
29
  loading: { type: Boolean },
53
- required: { type: Boolean },
54
- hideInput: { type: Boolean },
55
- skeleton: { type: Boolean },
56
- size: { default: 10 },
57
- mono: { type: Boolean },
58
- textSecure: { type: Boolean },
59
30
  spellcheck: { type: Boolean },
60
- placeholderSecure: { type: Boolean },
61
31
  customBackspaceHandle: { type: Boolean },
32
+ textSecure: { type: Boolean },
33
+ placeholderSecure: { type: Boolean },
34
+ allowClear: { type: Boolean },
35
+ allowPaste: { type: Boolean },
36
+ hideInput: { type: Boolean },
37
+ title: {},
38
+ description: {},
39
+ errorMessage: {},
40
+ tooltipText: {},
41
+ mono: { type: Boolean },
62
42
  hasChanges: { type: Boolean },
63
- disabledActions: { type: Boolean },
43
+ skeleton: { type: Boolean },
44
+ disabled: { type: Boolean },
45
+ required: { type: Boolean },
64
46
  noMargin: { type: Boolean },
65
- resize: { type: Boolean },
66
- allowPaste: { type: Boolean }
47
+ allowCopy: { type: Boolean }
67
48
  },
68
49
  emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "keypress:backspace", "click:clear", "focus", "blur", "click", "mousedown", "click:suffix", "select:input", "paste"],
69
50
  setup(__props, { expose: __expose, emit: __emit }) {
70
51
  const props = __props;
71
52
  const emit = __emit;
72
- const inputId = `w-input-${genId()}`;
73
53
  const input = ref();
74
- const isFocused = ref(false);
75
54
  const isSecureVisible = ref(false);
76
- const paddingRight = ref(0);
77
55
  const updateModelValue = (value) => {
78
- if (props.loading || props.disabled || props.readonly)
79
- return;
56
+ if (props.loading || props.disabled || props.readonly) return;
80
57
  if (props.type === "number") {
81
58
  emit("update:modelValue", typeof value === "string" && value.length ? Number.parseFloat(value) : void 0);
82
59
  } else {
@@ -84,19 +61,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
61
  }
85
62
  };
86
63
  const handleBackspace = (event) => {
87
- if (!props.customBackspaceHandle)
88
- return;
64
+ if (!props.customBackspaceHandle) return;
89
65
  event.preventDefault();
90
66
  event.stopPropagation();
91
67
  const target = event.target;
92
68
  const value = target?.value;
93
- if (!value || target.selectionStart === null || target.selectionEnd === null)
94
- return;
69
+ if (!value || target.selectionStart === null || target.selectionEnd === null) return;
95
70
  let substring;
96
71
  let selectionStart;
97
72
  if (target.selectionStart === target.selectionEnd) {
98
- if (target.selectionStart === 0)
99
- return;
73
+ if (target.selectionStart === 0) return;
100
74
  selectionStart = target.selectionStart - 1;
101
75
  substring = value.substring(0, selectionStart) + value.substring(target.selectionEnd);
102
76
  } else {
@@ -113,33 +87,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
87
  if (props.maxLength && typeof value === "string" && value.length > props.maxLength) {
114
88
  event.preventDefault();
115
89
  const substring = value.substring(0, props.maxLength);
116
- if (target)
117
- target.value = substring;
90
+ if (target) target.value = substring;
118
91
  updateModelValue(substring);
119
92
  return;
120
93
  }
121
94
  updateModelValue(value);
122
95
  };
123
96
  const clearValue = () => {
124
- if (props.disabled || props.readonly)
125
- return;
126
- updateModelValue(void 0);
97
+ if (props.disabled || props.readonly) return;
98
+ if (typeof props.modelValue === "string") updateModelValue("");
99
+ else updateModelValue(void 0);
127
100
  input.value?.focus();
128
101
  emit("click:clear");
129
102
  };
130
103
  const focus = () => {
131
- if (props.disabled || props.readonly)
132
- return;
133
- if (isFocused.value)
134
- return;
104
+ if (props.disabled || props.readonly) return;
135
105
  input.value?.focus();
136
106
  };
137
107
  const blur = () => {
138
108
  input.value?.blur();
139
109
  };
140
- const setIsFocused = (value) => {
141
- isFocused.value = value;
142
- };
143
110
  const checkPermission = async () => {
144
111
  const result = await navigator.permissions.query({ name: "clipboard-read" });
145
112
  return result.state === "granted" || result.state === "prompt";
@@ -179,11 +146,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
146
  };
180
147
  let timeout;
181
148
  const autofocusDebounced = () => {
182
- if (timeout)
183
- clearTimeout(timeout);
149
+ if (timeout) clearTimeout(timeout);
184
150
  timeout = setTimeout(() => {
185
- if (props.autofocus)
186
- focus();
151
+ if (props.autofocus) focus();
187
152
  timeout = void 0;
188
153
  }, 250);
189
154
  };
@@ -191,8 +156,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
191
156
  useTabActiveListener(autofocusDebounced);
192
157
  }
193
158
  onMounted(() => {
194
- if (props.autofocus)
195
- autofocusDebounced();
159
+ if (props.autofocus) autofocusDebounced();
196
160
  });
197
161
  onBeforeUnmount(() => {
198
162
  if (timeout) {
@@ -205,80 +169,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
169
  blur
206
170
  });
207
171
  return (_ctx, _cache) => {
208
- return openBlock(), createElementBlock("div", {
209
- class: normalizeClass(["relative", {
210
- "cursor-not-allowed": _ctx.disabled && !_ctx.skeleton,
211
- "mt-1 mb-[1.125rem]": !_ctx.noMargin
212
- }]),
213
- onClick: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("click:suffix", $event))
214
- }, [
215
- createElementVNode("label", { for: inputId }, [
216
- _ctx.title || _ctx.$slots.title?.()?.length ? (openBlock(), createElementBlock("div", {
217
- key: 0,
218
- class: normalizeClass(["text-xs font-semibold text-accent mb-2 duration-500", {
219
- "opacity-50": _ctx.disabled && !_ctx.skeleton
220
- }])
172
+ return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
173
+ class: _ctx.$attrs.class,
174
+ onClick: _cache[10] || (_cache[10] = ($event) => _ctx.$emit("click:suffix", $event))
175
+ }), createSlots({
176
+ field: withCtx(({ id, setFocused, focused }) => [
177
+ createElementVNode("div", {
178
+ class: normalizeClass(["relative border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 grid grid-cols-[auto,1fr,auto]", {
179
+ "focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
180
+ "cursor-text": !_ctx.disabled,
181
+ "border-negative dark:border-negative-dark": _ctx.errorMessage,
182
+ "border-gray-300 dark:border-gray-700": !_ctx.disabled,
183
+ "border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
184
+ }]),
185
+ onClick: focus,
186
+ onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
187
+ }, ["prevent"]))
221
188
  }, [
222
- !_ctx.skeleton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
223
- renderSlot(_ctx.$slots, "title", {}, () => [
224
- createTextVNode(toDisplayString(_ctx.title), 1)
225
- ]),
226
- createVNode(Transition, {
227
- "enter-active-class": "transition-opacity",
228
- "leave-active-class": "transition-opacity",
229
- "enter-from-class": "opacity-0",
230
- "leave-to-class": "opacity-0"
231
- }, {
232
- default: withCtx(() => [
233
- _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_1, " * ")) : createCommentVNode("", true)
234
- ]),
235
- _: 1
236
- })
237
- ], 64)) : (openBlock(), createBlock(WSkeleton, {
238
- key: 1,
239
- class: "h-4 w-16"
240
- }))
241
- ], 2)) : createCommentVNode("", true),
242
- createElementVNode("div", _hoisted_2, [
243
- !_ctx.skeleton ? (openBlock(), createElementBlock("div", _hoisted_3, [
189
+ _ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_1, [
190
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
191
+ ])) : createCommentVNode("", true),
192
+ createElementVNode("div", _hoisted_2, [
244
193
  createElementVNode("div", {
245
- class: normalizeClass(["relative flex flex-wrap border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 w-full", {
246
- "focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
247
- "cursor-text": !_ctx.disabled,
248
- "pl-1 py-1 gap-1": _ctx.$slots.suffix?.()?.length,
249
- "pl-11": _ctx.icon,
250
- "border-negative dark:border-negative-dark": _ctx.errorMessage,
251
- "border-gray-300 dark:border-gray-700": !_ctx.disabled,
252
- "border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
253
- }]),
254
- style: normalizeStyle({ paddingRight: paddingRight.value + "px" }),
255
- onClick: focus,
256
- onMousedown: _cache[13] || (_cache[13] = withModifiers(() => {
257
- }, ["prevent"]))
194
+ class: normalizeClass(["flex flex-wrap", {
195
+ "py-1 gap-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
196
+ }])
258
197
  }, [
259
- _ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_4, [
260
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "w-5 h-5" }))
261
- ])) : createCommentVNode("", true),
262
198
  renderSlot(_ctx.$slots, "prefix"),
263
199
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
264
- id: inputId,
200
+ id,
265
201
  ref_key: "input",
266
202
  ref: input,
267
203
  class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full w-input disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
268
- "min-h-[var(--textarea-height,160px)] w-full p-3": _ctx.textarea,
204
+ "min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
269
205
  "resize-y": _ctx.resize && _ctx.textarea,
270
206
  "resize-none": !_ctx.resize && _ctx.textarea,
271
- "h-[var(--input-height,42px)]": !_ctx.textarea && !_ctx.$slots.suffix?.()?.length,
272
- "h-[var(--input-height,34px)]": !_ctx.textarea && _ctx.$slots.suffix?.()?.length,
273
- "py-0 pr-1": !_ctx.hideInput && !_ctx.textarea,
274
- "pl-3": !_ctx.hideInput && !_ctx.textarea && !_ctx.icon,
207
+ "h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
208
+ "h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
209
+ "group-first/input:pl-3 first:pl-0 [&:not(:first-child)]:pl-3 group-last/input:pr-3": !_ctx.hideInput,
275
210
  "w-0 max-w-0 p-0 absolute": _ctx.hideInput,
276
211
  "font-mono": _ctx.mono,
277
212
  "text-secure": _ctx.textSecure && !isSecureVisible.value,
278
213
  "text-black-default dark:text-gray-200": !_ctx.disabled,
279
214
  "text-black-default/50 dark:text-gray-200/50": _ctx.disabled
280
215
  }]),
281
- value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !isFocused.value ? "******" : _ctx.modelValue,
216
+ value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
282
217
  placeholder: _ctx.placeholder,
283
218
  type: _ctx.type ?? "text",
284
219
  name: _ctx.name,
@@ -297,103 +232,78 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
297
232
  handleBackspace($event);
298
233
  }, ["exact", "stop"]), ["delete"]))
299
234
  ],
300
- onFocus: _cache[4] || (_cache[4] = ($event) => {
235
+ onFocus: ($event) => {
301
236
  _ctx.$emit("focus", $event);
302
- setIsFocused(true);
303
- }),
304
- onBlur: _cache[5] || (_cache[5] = ($event) => {
237
+ setFocused(true);
238
+ },
239
+ onBlur: ($event) => {
305
240
  _ctx.$emit("blur", $event);
306
- setIsFocused(false);
241
+ setFocused(false);
307
242
  isSecureVisible.value = false;
308
- }),
309
- onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("click", $event)),
310
- onMousedown: _cache[7] || (_cache[7] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
311
- onSelect: _cache[8] || (_cache[8] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
312
- }, null, 40, ["class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck"])),
313
- createVNode(_sfc_main$1, {
314
- loading: _ctx.loading,
315
- "allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
316
- disabled: _ctx.disabled || _ctx.disabledActions,
317
- readonly: _ctx.readonly,
318
- "text-secure": _ctx.textSecure,
319
- "is-secure-visible": isSecureVisible.value,
320
- "allow-paste": _ctx.allowPaste,
321
- class: "absolute top-0 right-0 bottom-0",
322
- "onClick:clear": clearValue,
323
- "onClick:slot": _cache[9] || (_cache[9] = ($event) => {
324
- isFocused.value ? blur() : focus();
325
- _ctx.$emit("click:suffix", $event);
326
- }),
327
- "onShow:secure": _cache[10] || (_cache[10] = ($event) => {
328
- isSecureVisible.value = true;
329
- _ctx.$emit("click", $event);
330
- }),
331
- "onHide:secure": _cache[11] || (_cache[11] = ($event) => isSecureVisible.value = false),
332
- "onUpdate:width": _cache[12] || (_cache[12] = ($event) => paddingRight.value = $event),
333
- "onClick:paste": paste
334
- }, createSlots({ _: 2 }, [
335
- _ctx.$slots.suffix?.()?.length ? {
336
- name: "default",
337
- fn: withCtx(() => [
338
- renderSlot(_ctx.$slots, "suffix")
339
- ]),
340
- key: "0"
341
- } : void 0
342
- ]), 1032, ["loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste"])
343
- ], 38),
344
- createVNode(Transition, {
345
- "enter-active-class": "transition-opacity",
346
- "leave-active-class": "transition-opacity",
347
- "enter-from-class": "opacity-0",
348
- "leave-to-class": "opacity-0"
349
- }, {
350
- default: withCtx(() => [
351
- _ctx.hasChanges ? (openBlock(), createElementBlock("span", {
352
- key: 0,
353
- class: normalizeClass(["square-2 rounded-full transition-colors absolute top-0 right-0 z-10", {
354
- "bg-info dark:bg-info-dark": isFocused.value || !_ctx.errorMessage,
355
- "bg-negative dark:bg-negative-dark": !isFocused.value && _ctx.errorMessage
356
- }])
357
- }, null, 2)) : createCommentVNode("", true)
358
- ]),
359
- _: 1
243
+ },
244
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
245
+ onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
246
+ onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
247
+ }, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
248
+ ], 2)
249
+ ]),
250
+ createVNode(_sfc_main$2, {
251
+ "model-value": _ctx.modelValue,
252
+ loading: _ctx.loading,
253
+ "allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
254
+ disabled: _ctx.disabled || _ctx.disabledActions,
255
+ readonly: _ctx.readonly,
256
+ "text-secure": _ctx.textSecure,
257
+ "is-secure-visible": isSecureVisible.value,
258
+ "allow-paste": _ctx.allowPaste,
259
+ "allow-copy": _ctx.allowCopy,
260
+ focused,
261
+ "onClick:clear": clearValue,
262
+ "onClick:slot": ($event) => {
263
+ focused ? blur() : focus();
264
+ _ctx.$emit("click:suffix", $event);
265
+ },
266
+ "onShow:secure": _cache[7] || (_cache[7] = ($event) => {
267
+ isSecureVisible.value = true;
268
+ _ctx.$emit("click", $event);
360
269
  }),
361
- createVNode(Transition, {
362
- "enter-active-class": "transition-opacity",
363
- "leave-active-class": "transition-opacity",
364
- "enter-from-class": "opacity-0",
365
- "leave-to-class": "opacity-0"
366
- }, {
367
- default: withCtx(() => [
368
- _ctx.errorMessage ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(_ctx.errorMessage), 1)) : _ctx.maxLength !== void 0 && isFocused.value ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(unref(numberFormatter).format(String(_ctx.modelValue || "").length)) + " / " + toDisplayString(unref(numberFormatter).format(_ctx.maxLength)), 1)) : createCommentVNode("", true)
270
+ "onHide:secure": _cache[8] || (_cache[8] = ($event) => isSecureVisible.value = false),
271
+ "onClick:paste": paste
272
+ }, createSlots({ _: 2 }, [
273
+ _ctx.$slots.suffix ? {
274
+ name: "default",
275
+ fn: withCtx(() => [
276
+ renderSlot(_ctx.$slots, "suffix")
369
277
  ]),
370
- _: 1
371
- })
372
- ])) : (openBlock(), createBlock(WSkeleton, {
373
- key: 1,
374
- class: normalizeClass(["w-full w-skeleton-rounded-xl", {
375
- "h-[calc(var(--textarea-height,160px)+2px)]": _ctx.textarea,
376
- "h-[calc(var(--input-height,42px)+2px)]": !_ctx.textarea && !_ctx.$slots.suffix?.()?.length,
377
- "h-[calc(var(--input-height,34px)+10px)]": !_ctx.textarea && _ctx.$slots.suffix?.()?.length
378
- }]),
379
- style: { "--skeleton-width": "100%" }
380
- }, null, 8, ["class"])),
381
- _ctx.$slots.right?.()?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
382
- renderSlot(_ctx.$slots, "right")
383
- ], 512)) : createCommentVNode("", true)
278
+ key: "0"
279
+ } : void 0
280
+ ]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])
281
+ ], 34)
282
+ ]),
283
+ _: 2
284
+ }, [
285
+ _ctx.$slots.title ? {
286
+ name: "title",
287
+ fn: withCtx(() => [
288
+ renderSlot(_ctx.$slots, "title")
384
289
  ]),
385
- _ctx.description ? (openBlock(), createElementBlock("div", {
386
- key: 1,
387
- class: normalizeClass(["text-xs font-normal text-description pt-4 whitespace-pre-wrap break-words text-pretty", {
388
- "opacity-50": _ctx.disabled && !_ctx.skeleton
389
- }])
390
- }, [
391
- _ctx.skeleton ? (openBlock(), createBlock(WSkeleton, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
392
- createTextVNode(toDisplayString(_ctx.description), 1)
393
- ], 64))
394
- ], 2)) : createCommentVNode("", true)
395
- ])
396
- ], 2);
290
+ key: "0"
291
+ } : void 0,
292
+ _ctx.$slots.subtitle ? {
293
+ name: "subtitle",
294
+ fn: withCtx(() => [
295
+ renderSlot(_ctx.$slots, "subtitle")
296
+ ]),
297
+ key: "1"
298
+ } : void 0,
299
+ _ctx.$slots.right ? {
300
+ name: "right",
301
+ fn: withCtx(() => [
302
+ renderSlot(_ctx.$slots, "right")
303
+ ]),
304
+ key: "2"
305
+ } : void 0
306
+ ]), 1040, ["class"]);
397
307
  };
398
308
  }
399
309
  });
@@ -1,104 +1,26 @@
1
- declare const _default: <Type extends InputType = "text">(__VLS_props: {
2
- type?: Type | undefined;
3
- required?: boolean | undefined;
4
- textarea?: boolean | undefined;
5
- title?: string | undefined;
6
- icon?: SVGComponent | undefined;
7
- disabled?: boolean | undefined;
8
- loading?: boolean | undefined;
9
- "onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
10
- modelValue?: (Type extends "number" ? number : string) | undefined;
11
- resize?: boolean | undefined;
12
- skeleton?: boolean | undefined;
13
- description?: string | undefined;
14
- name?: string | undefined;
15
- placeholder?: string | undefined;
16
- errorMessage?: string | undefined;
17
- hasChanges?: boolean | undefined;
18
- validate?: ValidateFn | ValidateFn[] | undefined;
19
- allowPaste?: boolean | undefined;
20
- textSecure?: boolean | undefined;
21
- maxLength?: number | undefined;
22
- mono?: boolean | undefined;
23
- placeholderSecure?: boolean | undefined;
24
- noMargin?: boolean | undefined;
25
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
26
- attrs: any;
27
- slots: {
28
- title?(_: {}): any;
29
- right?(_: {}): any;
30
- };
31
- emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
32
- } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
33
- props: {
34
- type?: Type | undefined;
35
- required?: boolean | undefined;
36
- textarea?: boolean | undefined;
37
- title?: string | undefined;
38
- icon?: SVGComponent | undefined;
39
- disabled?: boolean | undefined;
40
- loading?: boolean | undefined;
1
+ import { InputAsyncProps } from './types';
2
+
3
+ declare const _default: <Type extends InputType = "text">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
+ "onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
41
7
  "onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
42
- modelValue?: (Type extends "number" ? number : string) | undefined;
43
- resize?: boolean | undefined;
44
- skeleton?: boolean | undefined;
45
- description?: string | undefined;
46
- name?: string | undefined;
47
- placeholder?: string | undefined;
48
- errorMessage?: string | undefined;
49
- hasChanges?: boolean | undefined;
50
- validate?: ValidateFn | ValidateFn[] | undefined;
51
- allowPaste?: boolean | undefined;
52
- textSecure?: boolean | undefined;
53
- maxLength?: number | undefined;
54
- mono?: boolean | undefined;
55
- placeholderSecure?: boolean | undefined;
56
- noMargin?: boolean | undefined;
57
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
8
+ }, never>, "onUpdate:modelValue"> & InputAsyncProps<Type>> & import('vue').PublicProps;
58
9
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
59
10
  attrs: any;
60
- slots: {
11
+ slots: ReturnType<() => {
61
12
  title?(_: {}): any;
13
+ subtitle?(_: {}): any;
62
14
  right?(_: {}): any;
63
- };
64
- emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
65
- }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ }>;
16
+ emit: ((e: "update:modelValue", value: (Type extends "number" ? number : string) | undefined) => void) & {};
17
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
66
18
  [key: string]: any;
67
19
  }> & {
68
- __ctx?: {
69
- props: {
70
- type?: Type | undefined;
71
- required?: boolean | undefined;
72
- textarea?: boolean | undefined;
73
- title?: string | undefined;
74
- icon?: SVGComponent | undefined;
75
- disabled?: boolean | undefined;
76
- loading?: boolean | undefined;
77
- "onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
78
- modelValue?: (Type extends "number" ? number : string) | undefined;
79
- resize?: boolean | undefined;
80
- skeleton?: boolean | undefined;
81
- description?: string | undefined;
82
- name?: string | undefined;
83
- placeholder?: string | undefined;
84
- errorMessage?: string | undefined;
85
- hasChanges?: boolean | undefined;
86
- validate?: ValidateFn | ValidateFn[] | undefined;
87
- allowPaste?: boolean | undefined;
88
- textSecure?: boolean | undefined;
89
- maxLength?: number | undefined;
90
- mono?: boolean | undefined;
91
- placeholderSecure?: boolean | undefined;
92
- noMargin?: boolean | undefined;
93
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
94
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
95
- attrs: any;
96
- slots: {
97
- title?(_: {}): any;
98
- right?(_: {}): any;
99
- };
100
- emit: (e: 'update:modelValue', value: (Type extends "number" ? number : string) | undefined) => void;
101
- } | undefined;
20
+ __ctx?: Awaited<typeof __VLS_setup>;
102
21
  };
103
22
  export default _default;
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
104
26
  //# sourceMappingURL=WInputAsync.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;WAkZO,GAAG;;uBA7DkB,GAAG;uBACH,GAAG;;cAxSzB,mBAAmB,mEAAkC,IAAI;yCAmW/C,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAzC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA7DkB,GAAG;uBACH,GAAG;;cAxSzB,mBAAmB,mEAAkC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmW/C,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;2BA7DkB,GAAG;2BACH,GAAG;;kBAxSzB,mBAAmB,mEAAkC,IAAI;;;AAlC/D,wBA2Y2E"}
1
+ {"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAI3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA4bxD,cAAc,CAAC;;;;6DAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;uBAxCQ,GAAG;0BACA,GAAG;uBACN,GAAG;MAsCY;UAClC,KArbH,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI,MAqbpB;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtcvE,wBAsc4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}