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,4 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, normalizeClass, createSlots, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createVNode, createSlots, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
2
2
  import _sfc_main$2 from '../DropdownMenu/WDropdownMenu.vue.js';
3
3
  import _sfc_main$1 from '../BottomSheet/WBottomSheet.vue.js';
4
4
  import _sfc_main$3 from './WInput.vue.js';
@@ -8,35 +8,48 @@ import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
8
8
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
9
9
 
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...{ inheritAttrs: false },
11
12
  __name: "WInputSuggest",
12
13
  props: {
13
- modelValue: {},
14
- title: {},
15
14
  mobileTitle: {},
16
- description: {},
17
- loading: { type: Boolean },
15
+ persist: { type: Boolean },
16
+ modelValue: {},
17
+ type: {},
18
+ textarea: { type: Boolean },
19
+ resize: { type: Boolean },
20
+ placeholder: {},
21
+ icon: {},
22
+ size: {},
18
23
  maxLength: {},
24
+ name: {},
25
+ autocomplete: {},
26
+ autofocus: { type: Boolean },
27
+ readonly: { type: Boolean },
28
+ disabledActions: { type: Boolean },
29
+ loading: { type: Boolean },
30
+ spellcheck: { type: Boolean },
31
+ customBackspaceHandle: { type: Boolean },
32
+ textSecure: { type: Boolean },
33
+ placeholderSecure: { type: Boolean },
19
34
  allowClear: { type: Boolean },
35
+ allowPaste: { type: Boolean },
20
36
  hideInput: { type: Boolean },
21
- readonly: { type: Boolean },
22
- disabled: { type: Boolean },
23
- skeleton: { type: Boolean },
24
- persist: { type: Boolean },
25
- size: {},
37
+ title: {},
38
+ description: {},
26
39
  errorMessage: {},
27
- required: { type: Boolean },
40
+ tooltipText: {},
41
+ mono: { type: Boolean },
28
42
  hasChanges: { type: Boolean },
29
- icon: {},
30
- teleport: { type: Boolean },
31
- placeholder: {},
32
- type: {},
33
- horizontalAlign: {},
34
- contentMaxHeight: {},
35
- contentMaxWidth: {},
43
+ skeleton: { type: Boolean },
44
+ disabled: { type: Boolean },
45
+ required: { type: Boolean },
36
46
  noMargin: { type: Boolean },
37
- allowPaste: { type: Boolean },
38
- mono: { type: Boolean },
39
- autofocus: { type: Boolean }
47
+ allowCopy: { type: Boolean },
48
+ teleport: { type: Boolean },
49
+ noZIndex: { type: Boolean },
50
+ maxHeight: { default: 320 },
51
+ maxWidth: { default: 600 },
52
+ horizontalAlign: { default: HorizontalAlign.FILL }
40
53
  },
41
54
  emits: ["update:modelValue", "keypress:enter", "keypress:up", "keypress:down", "keypress:delete", "open", "close", "click:clear", "focus", "blur"],
42
55
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -49,8 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
62
  const content = ref();
50
63
  const isDisabled = computed(() => props.readonly || props.disabled);
51
64
  const open = () => {
52
- if (isDisabled.value)
53
- return;
65
+ if (isDisabled.value) return;
54
66
  isOpen.value = true;
55
67
  emit("open");
56
68
  };
@@ -59,8 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
71
  emit("close");
60
72
  };
61
73
  const focus = () => {
62
- if (isMobile)
63
- open();
74
+ if (isMobile) open();
64
75
  input.value?.focus();
65
76
  };
66
77
  const blur = () => {
@@ -76,7 +87,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
87
  updateDropdown
77
88
  });
78
89
  return (_ctx, _cache) => {
79
- return openBlock(), createElementBlock("div", null, [
90
+ return openBlock(), createElementBlock("div", {
91
+ class: normalizeClass(_ctx.$attrs.class)
92
+ }, [
80
93
  (openBlock(), createBlock(resolveDynamicComponent(unref(isMobile) ? _sfc_main$1 : _sfc_main$2), mergeProps({
81
94
  ref_key: "dropdownMenu",
82
95
  ref: dropdownMenu
@@ -85,40 +98,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
98
  onClose: close
86
99
  } : {
87
100
  isOpen: isOpen.value,
88
- maxHeight: _ctx.contentMaxHeight ?? 320,
89
- maxWidth: _ctx.contentMaxWidth ?? 600,
90
- horizontalAlign: _ctx.horizontalAlign ?? unref(HorizontalAlign).FILL,
101
+ maxHeight: _ctx.maxHeight,
102
+ maxWidth: _ctx.maxWidth,
103
+ horizontalAlign: _ctx.horizontalAlign,
91
104
  updateAlign: true,
92
105
  teleport: _ctx.teleport
93
106
  }), {
94
107
  toggle: withCtx(({ unclickable }) => [
95
- createVNode(_sfc_main$3, {
108
+ createVNode(_sfc_main$3, mergeProps({
96
109
  ref_key: "input",
97
- ref: input,
98
- title: _ctx.title ?? (unclickable ? _ctx.mobileTitle : void 0),
99
- "model-value": _ctx.modelValue,
100
- type: _ctx.type,
101
- "max-length": _ctx.maxLength,
102
- loading: _ctx.loading,
103
- "hide-input": _ctx.hideInput,
110
+ ref: input
111
+ }, {
112
+ ...props,
113
+ title: unclickable ? _ctx.mobileTitle ?? _ctx.title : _ctx.title,
104
114
  readonly: _ctx.readonly || unclickable,
105
- skeleton: _ctx.skeleton,
106
- size: _ctx.size,
107
- "error-message": _ctx.errorMessage,
108
- required: _ctx.required,
109
- disabled: _ctx.disabled,
110
- "has-changes": _ctx.hasChanges,
111
- "allow-clear": _ctx.allowClear,
112
- icon: _ctx.icon,
113
- placeholder: _ctx.placeholder,
114
- "no-margin": _ctx.noMargin,
115
- "allow-paste": _ctx.allowPaste,
116
- mono: _ctx.mono,
117
- autofocus: _ctx.autofocus,
118
- class: normalizeClass({
115
+ description: void 0
116
+ }, {
117
+ class: {
119
118
  "cursor-pointer": !_ctx.disabled,
120
- "cursor-not-allowed": _ctx.disabled
121
- }),
119
+ "cursor-not-allowed": _ctx.disabled,
120
+ "mb-3": unref(isMobile) && !unclickable
121
+ },
122
122
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => !_ctx.loading && _ctx.$emit("update:modelValue", $event)),
123
123
  "onKeypress:enter": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("keypress:enter", $event)),
124
124
  "onKeypress:up": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("keypress:up", $event)),
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
135
  onClick: ($event) => unref(isMobile) && unclickable && open(),
136
136
  "onClick:suffix": ($event) => unref(isMobile) && unclickable && open(),
137
137
  "onClick:clear": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click:clear"))
138
- }, createSlots({
138
+ }), createSlots({
139
139
  prefix: withCtx(() => [
140
140
  renderSlot(_ctx.$slots, "prefix", { unclickable })
141
141
  ]),
@@ -147,14 +147,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
147
  ]),
148
148
  _: 2
149
149
  }, [
150
+ _ctx.$slots.title ? {
151
+ name: "title",
152
+ fn: withCtx(() => [
153
+ renderSlot(_ctx.$slots, "title")
154
+ ]),
155
+ key: "0"
156
+ } : void 0,
157
+ _ctx.$slots.subtitle ? {
158
+ name: "subtitle",
159
+ fn: withCtx(() => [
160
+ renderSlot(_ctx.$slots, "subtitle")
161
+ ]),
162
+ key: "1"
163
+ } : void 0,
150
164
  _ctx.$slots.right?.()?.length ? {
151
165
  name: "right",
152
166
  fn: withCtx(() => [
153
167
  renderSlot(_ctx.$slots, "right")
154
168
  ]),
155
- key: "0"
169
+ key: "2"
156
170
  } : void 0
157
- ]), 1032, ["title", "model-value", "type", "max-length", "loading", "hide-input", "readonly", "skeleton", "size", "error-message", "required", "disabled", "has-changes", "allow-clear", "icon", "placeholder", "no-margin", "allow-paste", "mono", "autofocus", "class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
171
+ ]), 1040, ["class", "onFocus", "onBlur", "onClick", "onClick:suffix"])
158
172
  ]),
159
173
  content: withCtx((contentScope) => [
160
174
  createElementVNode("div", {
@@ -187,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
201
  createTextVNode(toDisplayString(_ctx.description), 1)
188
202
  ], 64))
189
203
  ], 2)) : createCommentVNode("", true)
190
- ]);
204
+ ], 2);
191
205
  };
192
206
  }
193
207
  });
@@ -1,39 +1,50 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- loading?: boolean | undefined;
3
- allowClear?: boolean | undefined;
4
- allowPaste?: boolean | undefined;
5
- disabled?: boolean | undefined;
6
- readonly?: boolean | undefined;
7
- textSecure?: boolean | undefined;
8
- isSecureVisible?: boolean | undefined;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
5
+ modelValue?: number | string;
6
+ loading?: boolean;
7
+ allowClear?: boolean;
8
+ allowPaste?: boolean;
9
+ allowCopy?: boolean;
10
+ disabled?: boolean;
11
+ readonly?: boolean;
12
+ textSecure?: boolean;
13
+ isSecureVisible?: boolean;
14
+ focused?: boolean;
15
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
16
  "click:paste": () => void;
11
17
  "show:secure": (value: MouseEvent) => void;
12
18
  "hide:secure": (value: MouseEvent) => void;
13
19
  "click:clear": () => void;
14
20
  "click:slot": (value: MouseEvent) => void;
15
- "update:width": (value: number) => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
- loading?: boolean | undefined;
18
- allowClear?: boolean | undefined;
19
- allowPaste?: boolean | undefined;
20
- disabled?: boolean | undefined;
21
- readonly?: boolean | undefined;
22
- textSecure?: boolean | undefined;
23
- isSecureVisible?: boolean | undefined;
21
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
22
+ modelValue?: number | string;
23
+ loading?: boolean;
24
+ allowClear?: boolean;
25
+ allowPaste?: boolean;
26
+ allowCopy?: boolean;
27
+ disabled?: boolean;
28
+ readonly?: boolean;
29
+ textSecure?: boolean;
30
+ isSecureVisible?: boolean;
31
+ focused?: boolean;
24
32
  }>>> & {
25
33
  "onClick:paste"?: (() => any) | undefined;
26
34
  "onShow:secure"?: ((value: MouseEvent) => any) | undefined;
27
35
  "onHide:secure"?: ((value: MouseEvent) => any) | undefined;
28
36
  "onClick:clear"?: (() => any) | undefined;
29
37
  "onClick:slot"?: ((value: MouseEvent) => any) | undefined;
30
- "onUpdate:width"?: ((value: number) => any) | undefined;
31
- }, {}, {}>, {
32
- default?(_: {}): any;
33
- }>;
38
+ }, {}, {}>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
34
40
  export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
35
46
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
47
+ type __VLS_TypePropsToOption<T> = {
37
48
  [K in keyof T]-?: {} extends Pick<T, K> ? {
38
49
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
50
  } : {
@@ -41,9 +52,4 @@ type __VLS_TypePropsToRuntimeProps<T> = {
41
52
  required: true;
42
53
  };
43
54
  };
44
- type __VLS_WithTemplateSlots<T, S> = T & {
45
- new (): {
46
- $slots: S;
47
- };
48
- };
49
55
  //# sourceMappingURL=InputActions.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"AA+EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqWA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"InputActions.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActions.vue"],"names":[],"mappings":"AAiIA,iBAAS,cAAc;qBA2LO,GAAG;EAwBhC;AACD,QAAA,MAAM,eAAe;iBAlPN,MAAM,GAAG,MAAM;cAClB,OAAO;iBACJ,OAAO;iBACP,OAAO;gBACR,OAAO;eACR,OAAO;eACP,OAAO;iBACL,OAAO;sBACF,OAAO;cACf,OAAO;;;;;;;;iBATJ,MAAM,GAAG,MAAM;cAClB,OAAO;iBACJ,OAAO;iBACP,OAAO;gBACR,OAAO;eACR,OAAO;eACP,OAAO;iBACL,OAAO;sBACF,OAAO;cACf,OAAO;;;;;;;UAgPjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,114 +1,79 @@
1
- import { defineComponent, ref, watch, toRef, onMounted, openBlock, createElementBlock, withModifiers, createVNode, unref, createCommentVNode, normalizeClass, createBlock, renderSlot } from 'vue';
2
- import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
1
+ import { defineComponent, toRef, openBlock, createElementBlock, createBlock, markRaw, unref, createCommentVNode, createVNode, withCtx, renderSlot } from 'vue';
2
+ import IconClose from '../../../assets/icons/sax/IconClose.svg.js';
3
3
  import IconEye from '../../../assets/icons/sax/IconEye.svg.js';
4
4
  import IconEyeSlash from '../../../assets/icons/sax/IconEyeSlash.svg.js';
5
5
  import IconPaste from '../../../assets/icons/sax/IconPaste.svg.js';
6
6
  import WSpinner from '../../Spinner/WSpinner.vue.js';
7
- import _sfc_main$1 from '../../Tooltip/WTooltip.vue.js';
8
- import { debounce } from '../../../utils/utils.js';
9
- import { useTabActiveListener } from '../../Tabs/use/useTabActiveListener.js';
7
+ import { useCopy } from '../../../utils/useCopy.js';
8
+ import _sfc_main$1 from './InputActionsButton.vue.js';
10
9
 
11
- const _hoisted_1 = ["disabled"];
10
+ const _hoisted_1 = {
11
+ key: 0,
12
+ class: "flex rounded-xl overflow-hidden bg-default dark:bg-default-dark"
13
+ };
12
14
  const _hoisted_2 = {
13
- key: 3,
15
+ key: 4,
14
16
  class: "h-full w-11 flex items-center justify-center text-description cursor-progress"
15
17
  };
16
- const _hoisted_3 = ["disabled"];
17
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  __name: "InputActions",
19
20
  props: {
21
+ modelValue: {},
20
22
  loading: { type: Boolean },
21
23
  allowClear: { type: Boolean },
22
24
  allowPaste: { type: Boolean },
25
+ allowCopy: { type: Boolean },
23
26
  disabled: { type: Boolean },
24
27
  readonly: { type: Boolean },
25
28
  textSecure: { type: Boolean },
26
- isSecureVisible: { type: Boolean }
29
+ isSecureVisible: { type: Boolean },
30
+ focused: { type: Boolean }
27
31
  },
28
- emits: ["click:paste", "show:secure", "hide:secure", "click:clear", "click:slot", "update:width"],
29
- setup(__props, { emit: __emit }) {
32
+ emits: ["click:paste", "show:secure", "hide:secure", "click:clear", "click:slot"],
33
+ setup(__props) {
30
34
  const props = __props;
31
- const emit = __emit;
32
- const element = ref();
33
- const emitWidth = debounce(() => {
34
- emit("update:width", element.value?.offsetWidth ?? 0);
35
- }, 10);
36
- watch(toRef(props, "loading"), emitWidth);
37
- watch(toRef(props, "allowClear"), emitWidth);
38
- watch(toRef(props, "disabled"), emitWidth);
39
- watch(toRef(props, "textSecure"), emitWidth);
40
- watch(toRef(props, "allowPaste"), emitWidth);
41
- useTabActiveListener(emitWidth);
42
- onMounted(() => {
43
- emitWidth();
44
- });
35
+ const { doCopy, iconCopy } = useCopy(toRef(props, "modelValue"));
45
36
  return (_ctx, _cache) => {
46
- return openBlock(), createElementBlock("div", {
47
- ref_key: "element",
48
- ref: element,
49
- class: "flex rounded-xl overflow-hidden bg-default dark:bg-default-dark"
50
- }, [
51
- _ctx.allowClear && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
37
+ return _ctx.loading || _ctx.$slots.default || _ctx.textSecure || _ctx.allowCopy || (_ctx.allowPaste || _ctx.allowClear) && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", _hoisted_1, [
38
+ _ctx.allowClear && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createBlock(_sfc_main$1, {
52
39
  key: 0,
53
- class: "relative w-ripple w-ripple-hover h-full w-11 p-[0.6875rem] flex justify-center text-description select-none outline-none",
54
- onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
55
- }, ["prevent", "stop"])),
56
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:clear"))
57
- }, [
58
- createVNode(unref(IconCancel), { class: "w-5 h-5" }),
59
- createVNode(_sfc_main$1, {
60
- text: "Clear",
61
- "no-touch": ""
62
- })
63
- ], 32)) : createCommentVNode("", true),
64
- _ctx.allowPaste && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("button", {
40
+ icon: markRaw(unref(IconClose)),
41
+ "tooltip-text": "Clear",
42
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:clear"))
43
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
44
+ _ctx.allowCopy && !_ctx.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
65
45
  key: 1,
66
- class: "relative w-ripple w-ripple-hover h-full w-11 p-[0.6875rem] flex justify-center text-description select-none outline-none",
67
- onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
68
- }, ["prevent", "stop"])),
69
- onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click:paste"))
70
- }, [
71
- createVNode(unref(IconPaste), { class: "w-5 h-5" }),
72
- createVNode(_sfc_main$1, {
73
- text: "Paste",
74
- "no-touch": ""
75
- })
76
- ], 32)) : createCommentVNode("", true),
77
- _ctx.textSecure ? (openBlock(), createElementBlock("button", {
46
+ icon: markRaw(unref(iconCopy)),
47
+ "tooltip-text": "Copy",
48
+ onClick: unref(doCopy)
49
+ }, null, 8, ["icon", "onClick"])) : createCommentVNode("", true),
50
+ _ctx.allowPaste && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createBlock(_sfc_main$1, {
78
51
  key: 2,
52
+ icon: markRaw(unref(IconPaste)),
53
+ "tooltip-text": "Paste",
54
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click:paste"))
55
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
56
+ _ctx.textSecure ? (openBlock(), createBlock(_sfc_main$1, {
57
+ key: 3,
58
+ icon: _ctx.isSecureVisible ? markRaw(unref(IconEye)) : markRaw(unref(IconEyeSlash)),
59
+ "tooltip-text": _ctx.isSecureVisible ? "Hide" : "Show",
79
60
  disabled: _ctx.disabled || _ctx.readonly,
80
- class: normalizeClass(["relative h-full w-11 p-[0.6875rem] flex justify-center select-none outline-none", {
81
- "cursor-pointer w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.readonly,
82
- "cursor-not-allowed": _ctx.disabled || _ctx.readonly
83
- }]),
84
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
85
- }, [
86
- !_ctx.isSecureVisible ? (openBlock(), createBlock(unref(IconEyeSlash), {
87
- key: 0,
88
- class: "w-5 h-5 text-description"
89
- })) : (openBlock(), createBlock(unref(IconEye), {
90
- key: 1,
91
- class: "w-5 h-5 text-primary-default dark:text-primary-dark"
92
- })),
93
- createVNode(_sfc_main$1, {
94
- text: _ctx.isSecureVisible ? "Hide" : "Show",
95
- "no-touch": ""
96
- }, null, 8, ["text"])
97
- ], 10, _hoisted_1)) : createCommentVNode("", true),
61
+ top: !_ctx.focused,
62
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.isSecureVisible ? _ctx.$emit("hide:secure", $event) : _ctx.$emit("show:secure", $event))
63
+ }, null, 8, ["icon", "tooltip-text", "disabled", "top"])) : createCommentVNode("", true),
98
64
  _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
99
65
  createVNode(WSpinner, { class: "[--spinner-size:1.5rem]" })
100
- ])) : _ctx.$slots.default?.()?.length ? (openBlock(), createElementBlock("button", {
101
- key: 4,
66
+ ])) : _ctx.$slots.default ? (openBlock(), createBlock(_sfc_main$1, {
67
+ key: 5,
102
68
  disabled: _ctx.disabled,
103
- class: normalizeClass([{
104
- "cursor-pointer": !_ctx.disabled,
105
- "cursor-not-allowed": _ctx.disabled
106
- }, "h-full w-11 flex items-center justify-center outline-none"]),
107
- onClick: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("click:slot", $event), ["stop"]))
108
- }, [
109
- renderSlot(_ctx.$slots, "default")
110
- ], 10, _hoisted_3)) : createCommentVNode("", true)
111
- ], 512);
69
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click:slot", $event))
70
+ }, {
71
+ default: withCtx(() => [
72
+ renderSlot(_ctx.$slots, "default")
73
+ ]),
74
+ _: 3
75
+ }, 8, ["disabled"])) : createCommentVNode("", true)
76
+ ])) : createCommentVNode("", true);
112
77
  };
113
78
  }
114
79
  });
@@ -0,0 +1,35 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
5
+ tooltipText?: string;
6
+ disabled?: boolean;
7
+ icon?: SVGComponent;
8
+ top?: boolean;
9
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ click: (value: MouseEvent) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
12
+ tooltipText?: string;
13
+ disabled?: boolean;
14
+ icon?: SVGComponent;
15
+ top?: boolean;
16
+ }>>> & {
17
+ onClick?: ((value: MouseEvent) => any) | undefined;
18
+ }, {}, {}>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToOption<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ //# sourceMappingURL=InputActionsButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputActionsButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/components/InputActionsButton.vue"],"names":[],"mappings":"AAmEA,iBAAS,cAAc;qBA8DM,GAAG;EAgB/B;AACD,QAAA,MAAM,eAAe;kBAjGL,MAAM;eACT,OAAO;WACX,YAAY;UACb,OAAO;;;;kBAHC,MAAM;eACT,OAAO;WACX,YAAY;UACb,OAAO;;;UAqGb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
2
+ import _sfc_main$1 from '../../Tooltip/WTooltip.vue.js';
3
+
4
+ const _hoisted_1 = ["disabled"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "InputActionsButton",
7
+ props: {
8
+ tooltipText: {},
9
+ disabled: { type: Boolean },
10
+ icon: {},
11
+ top: { type: Boolean }
12
+ },
13
+ emits: ["click"],
14
+ setup(__props) {
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createElementBlock("button", {
17
+ disabled: _ctx.disabled,
18
+ class: normalizeClass([{
19
+ "cursor-pointer w-ripple w-ripple-hover": !_ctx.disabled,
20
+ "cursor-not-allowed": _ctx.disabled,
21
+ "items-center": !_ctx.top,
22
+ "items-start": _ctx.top
23
+ }, "h-full w-11 py-[0.6875rem] flex justify-center relative text-description select-none"]),
24
+ onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
25
+ }, ["prevent", "stop"])),
26
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("click", $event), ["stop"]))
27
+ }, [
28
+ renderSlot(_ctx.$slots, "default", {}, () => [
29
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" })),
30
+ _ctx.tooltipText && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$1, {
31
+ key: 0,
32
+ text: _ctx.tooltipText,
33
+ "no-touch": ""
34
+ }, null, 8, ["text"])) : createCommentVNode("", true)
35
+ ])
36
+ ], 42, _hoisted_1);
37
+ };
38
+ }
39
+ });
40
+
41
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './InputActionsButton.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,45 @@
1
+ import { FieldWrapperProps } from '../FieldWrapper/types';
2
+ import { Component } from 'vue';
3
+ import { DropdownMenuProps } from '../DropdownMenu/types';
4
+
5
+ export interface InputProps<Type extends InputType> extends Omit<FieldWrapperProps, 'modelValue'> {
6
+ modelValue?: (Type extends 'number' ? number : string) | undefined;
7
+ type?: Type;
8
+ textarea?: boolean;
9
+ resize?: boolean;
10
+ placeholder?: string;
11
+ icon?: SVGComponent;
12
+ size?: number;
13
+ maxLength?: number;
14
+ name?: string;
15
+ autocomplete?: 'off' | string;
16
+ autofocus?: boolean;
17
+ readonly?: boolean;
18
+ disabledActions?: boolean;
19
+ loading?: boolean;
20
+ spellcheck?: boolean;
21
+ customBackspaceHandle?: boolean;
22
+ textSecure?: boolean;
23
+ placeholderSecure?: boolean;
24
+ allowClear?: boolean;
25
+ allowPaste?: boolean;
26
+ hideInput?: boolean;
27
+ }
28
+ export interface InputAsyncProps<Type extends InputType> extends InputProps<Type> {
29
+ validate?: ValidateFn | ValidateFn[];
30
+ }
31
+ export interface InputSuggestProps<Type extends InputType> extends InputProps<Type>, Partial<Omit<DropdownMenuProps, 'isOpen' | 'updateAlign' | 'emitUpdate'>> {
32
+ mobileTitle?: string;
33
+ persist?: boolean;
34
+ }
35
+ export interface InputOptionsProps<Type extends InputType, Option> extends InputSuggestProps<Type> {
36
+ options: Option[];
37
+ valueGetter: (option: Option) => Required<InputSuggestProps<Type>>['modelValue'];
38
+ emptyStub?: string;
39
+ optionComponent?: Component<{
40
+ option: Option;
41
+ selected?: boolean;
42
+ model?: boolean;
43
+ }>;
44
+ }
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAClC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAA;IAClE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,UAAU,CAAC,IAAI,CAAC;IAC/E,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,iBAAiB,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC,CAAC;IAC5J,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB,CAAC,IAAI,SAAS,SAAS,EAAE,MAAM,CAAE,SAAQ,iBAAiB,CAAC,IAAI,CAAC;IAChG,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;CACnF"}