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
package/dist/main.js CHANGED
@@ -72,4 +72,5 @@ export { HorizontalAlign } from './utils/HorizontalAlign.js';
72
72
  export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
73
73
  export { getIsMobile, getIsTouchDevice } from './utils/mobile.js';
74
74
  export { useDefaultQuery } from './utils/useDefaultQuery.js';
75
+ export { useCopy } from './utils/useCopy.js';
75
76
  export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, numberCompactFormatter, numberFormatter, percentCompactFormatter, throttle } from './utils/utils.js';
@@ -11,13 +11,11 @@ const eventOptionsMap = {
11
11
  class DOMListenerContainer {
12
12
  unlisteners = [];
13
13
  constructor(elements, types, listener, options) {
14
- if (!elements || !types || !listener)
15
- return;
14
+ if (!elements || !types || !listener) return;
16
15
  this.addEventListeners(elements, types, listener, options);
17
16
  }
18
17
  addEventListener(element, type, listener, options) {
19
- if (!options)
20
- options = eventOptionsMap[type];
18
+ if (!options) options = eventOptionsMap[type];
21
19
  element.addEventListener(type, listener, options);
22
20
  this.unlisteners.push(() => {
23
21
  element.removeEventListener(type, listener, options);
@@ -1,5 +1,6 @@
1
- import { type Component, type ComponentOptions, type MethodOptions } from 'vue';
2
- import type { ConfirmModalProps } from '../components/Modal/modals/Confirm/types';
1
+ import { Component, ComponentOptions, MethodOptions } from 'vue';
2
+ import { ConfirmModalProps } from '../components/Modal/modals/Confirm/types';
3
+
3
4
  export type ModalComponent<Props> = Component<Props, any, any, ComponentOptions, MethodOptions, {
4
5
  'close:modal': () => void;
5
6
  }>;
@@ -7,7 +8,7 @@ export type AddModal<Props> = (component: ModalComponent<Props>, props?: Props,
7
8
  export declare const initModal: <Props>(value: AddModal<Props> | undefined) => void;
8
9
  export declare const Modal: {
9
10
  add<Props>(component: ModalComponent<Props>, props?: Props, cb?: () => void): (() => void) | null;
10
- addAutoclosable<Props_1>(component: ModalComponent<Props_1>, props?: Props_1 | undefined, cb?: () => void): (() => void) | null;
11
+ addAutoclosable<Props>(component: ModalComponent<Props>, props?: Props, cb?: () => void): (() => void) | null;
11
12
  addConfirm(props: ConfirmModalProps, cb?: () => void): (() => void) | null;
12
13
  };
13
14
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/utils/Modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAC,MAAM,KAAK,CAAA;AAC5G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAA;AAI9E,MAAM,MAAM,cAAc,CAAC,KAAK,IAAI,SAAS,CAC3C,KAAK,EAEL,GAAG,EAEH,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb;IACE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AAKrI,eAAO,MAAM,SAAS,GAAI,KAAK,SAAS,QAAQ,CAAC,KAAK,CAAC,GAAG,SAAS,SAElE,CAAA;AAED,eAAO,MAAM,KAAK;QACZ,KAAK,aAAa,cAAc,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;oBAIjF,KAAK,aAAa,cAAc,CAAC,KAAK,CAAC,UAAU,KAAK,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;sBAI3F,iBAAiB,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;CAQ3E,CAAA"}
@@ -1,8 +1,9 @@
1
- import type { AddNotify, NotifyConfig } from '../components/Notify/models/types';
1
+ import { AddNotify, NotifyConfig } from '../components/Notify/models/types';
2
+
2
3
  export declare const initNotify: (value: AddNotify | undefined) => void;
3
4
  export declare const Notify: {
4
- success(config: Omit<NotifyConfig, 'type'>): void;
5
- warn(config: Omit<NotifyConfig, 'type'>): void;
6
- error(config: Omit<NotifyConfig, 'type'>): void;
5
+ success(config: Omit<NotifyConfig, "type">): void;
6
+ warn(config: Omit<NotifyConfig, "type">): void;
7
+ error(config: Omit<NotifyConfig, "type">): void;
7
8
  };
8
9
  //# sourceMappingURL=Notify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../src/utils/Notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAK7E,eAAO,MAAM,UAAU,UAAW,SAAS,GAAG,SAAS,SAEtD,CAAA;AAED,eAAO,MAAM,MAAM;oBACD,KAAK,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;iBAGpC,KAAK,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;kBAGhC,KAAK,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;CAGhD,CAAA"}
1
+ {"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../src/utils/Notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,kCAAkC,CAAA;AAK7E,eAAO,MAAM,UAAU,UAAW,SAAS,GAAG,SAAS,SAEtD,CAAA;AAED,eAAO,MAAM,MAAM;oBACD,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;iBAGpC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;kBAGhC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAI;CAGhD,CAAA"}
@@ -1,4 +1,5 @@
1
- import type { VNode } from 'vue';
1
+ import { VNode } from 'vue';
2
+
2
3
  export type TooltipMeta = {
3
4
  parent: HTMLElement;
4
5
  slot?: VNode;
@@ -1 +1 @@
1
- {"version":3,"file":"dateTime.d.ts","sourceRoot":"","sources":["../../src/utils/dateTime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,qBAAgD,CAAA;AAClF,eAAO,MAAM,mBAAmB,qBAA8C,CAAA;AAC9E,eAAO,MAAM,aAAa,qBAAiF,CAAA;AAE3G,eAAO,MAAM,UAAU,QAA0B,CAAA;AAEjD,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,IAAI,GAAG,SAQhD,CAAA;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,KAAK;IACf,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,KAAK,IAAI;IACT,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,MAAM,IAAI;IACV,SAAS,IAAI;IACb,OAAO,IAAI;IACX,QAAQ,KAAK;IACb,QAAQ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AE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMrE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,YAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMpE;AAED,wBAAgB,cAAc,CAAC,IAAI,GAAE,IAAiB,EAAE,SAAS,GAAE,OAAwB,GAAG,IAAI,CAYjG;AAED,wBAAgB,aAAa,CAAC,IAAI,GAAE,IAAiB,GAAG,IAAI,CAM3D;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAErD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,OAAO,CAEpD"}
@@ -3,11 +3,9 @@ const monthShortFormatter = Intl.DateTimeFormat("en", { month: "short" });
3
3
  const dateFormatter = Intl.DateTimeFormat("en", { year: "numeric", month: "numeric", day: "numeric" });
4
4
  const dateRegexp = /\d\d\.\d\d\.\d\d\d\d/i;
5
5
  const parseDate = (value) => {
6
- if (!dateRegexp.test(value))
7
- return;
6
+ if (!dateRegexp.test(value)) return;
8
7
  const timestamp = Date.parse(value.split(".").reverse().join("."));
9
- if (isNaN(timestamp))
10
- return;
8
+ if (isNaN(timestamp)) return;
11
9
  return new Date(timestamp);
12
10
  };
13
11
  var WeekDay = /* @__PURE__ */ ((WeekDay2) => {
@@ -54,28 +52,23 @@ function datetimeFormat(date) {
54
52
  function durationHumanize(durationSeconds, full) {
55
53
  const cb = full ? getDurationStringFull : getDurationString;
56
54
  const seconds = durationSeconds % 60;
57
- if (durationSeconds === seconds)
58
- return cb(seconds);
55
+ if (durationSeconds === seconds) return cb(seconds);
59
56
  const durationMinutes = (durationSeconds - seconds) / 60;
60
57
  const minutes = durationMinutes % 60;
61
- if (durationMinutes === minutes)
62
- return cb(seconds, minutes);
58
+ if (durationMinutes === minutes) return cb(seconds, minutes);
63
59
  const durationHours = (durationMinutes - minutes) / 60;
64
60
  const hours = durationHours % 24;
65
- if (durationHours === hours)
66
- return cb(seconds, minutes, hours);
61
+ if (durationHours === hours) return cb(seconds, minutes, hours);
67
62
  const durationDays = (durationHours - hours) / 24;
68
63
  const days = durationDays % 365;
69
64
  if (durationDays === days) {
70
- if (days < 30)
71
- return cb(seconds, minutes, hours, days);
65
+ if (days < 30) return cb(seconds, minutes, hours, days);
72
66
  const newDays = days % 30;
73
67
  const months = (days - newDays) / 30;
74
68
  return cb(seconds, minutes, hours, newDays, months);
75
69
  } else {
76
70
  const durationYears = (durationDays - days) / 365;
77
- if (days < 30)
78
- return cb(seconds, minutes, hours, days, 0, durationYears);
71
+ if (days < 30) return cb(seconds, minutes, hours, days, 0, durationYears);
79
72
  const newDays = days % 30;
80
73
  const months = (days - newDays) / 30;
81
74
  return cb(seconds, minutes, hours, newDays, months, durationYears);
@@ -83,34 +76,22 @@ function durationHumanize(durationSeconds, full) {
83
76
  }
84
77
  function getDurationString(seconds, minutes, hours, days, months, years) {
85
78
  const parts = [];
86
- if (years)
87
- parts.push(`${years} Y`);
88
- if (months)
89
- parts.push(`${months} M`);
90
- if (days)
91
- parts.push(`${days} d`);
92
- if (hours)
93
- parts.push(`${hours} h`);
94
- if (minutes && !days)
95
- parts.push(`${minutes} m`);
96
- if (seconds && !days && !hours)
97
- parts.push(`${seconds} s`);
79
+ if (years) parts.push(`${years} Y`);
80
+ if (months) parts.push(`${months} M`);
81
+ if (days) parts.push(`${days} d`);
82
+ if (hours) parts.push(`${hours} h`);
83
+ if (minutes && !days) parts.push(`${minutes} m`);
84
+ if (seconds && !days && !hours) parts.push(`${seconds} s`);
98
85
  return parts.join(" ");
99
86
  }
100
87
  function getDurationStringFull(seconds, minutes, hours, days, months, years) {
101
88
  const parts = [];
102
- if (years)
103
- parts.push(`${years} year${years === 1 ? "" : "s"}`);
104
- if (months)
105
- parts.push(`${months} month${months === 1 ? "" : "s"}`);
106
- if (days)
107
- parts.push(`${days} day${days === 1 ? "" : "s"}`);
108
- if (hours)
109
- parts.push(`${hours} hour${hours === 1 ? "" : "s"}`);
110
- if (minutes && !days)
111
- parts.push(`${minutes} minute${minutes === 1 ? "" : "s"}`);
112
- if (seconds && !days && !hours)
113
- parts.push(`${seconds} second${seconds === 1 ? "" : "s"}`);
89
+ if (years) parts.push(`${years} year${years === 1 ? "" : "s"}`);
90
+ if (months) parts.push(`${months} month${months === 1 ? "" : "s"}`);
91
+ if (days) parts.push(`${days} day${days === 1 ? "" : "s"}`);
92
+ if (hours) parts.push(`${hours} hour${hours === 1 ? "" : "s"}`);
93
+ if (minutes && !days) parts.push(`${minutes} minute${minutes === 1 ? "" : "s"}`);
94
+ if (seconds && !days && !hours) parts.push(`${seconds} second${seconds === 1 ? "" : "s"}`);
114
95
  return parts.join(" ");
115
96
  }
116
97
  const minute = 60;
@@ -119,22 +100,14 @@ const day = 24 * hour;
119
100
  const month = 30 * day;
120
101
  const year = 365 * day;
121
102
  function getDurationRound(seconds) {
122
- if (seconds < 0)
123
- return 0;
124
- if (seconds <= 60)
125
- return Math.ceil(seconds / 10) * 10;
126
- if (seconds <= 10 * minute)
127
- return Math.ceil(seconds / minute) * minute;
128
- if (seconds <= 30 * minute)
129
- return Math.ceil(seconds / (minute * 10)) * minute * 10;
130
- if (seconds <= 12 * hour)
131
- return Math.ceil(seconds / hour) * hour;
132
- if (seconds <= 10 * day)
133
- return Math.ceil(seconds / day) * day;
134
- if (seconds <= 30 * day)
135
- return Math.ceil(seconds / (day * 10)) * day * 10;
136
- if (seconds <= 5.5 * month)
137
- return Math.ceil(seconds / month) * month;
103
+ if (seconds < 0) return 0;
104
+ if (seconds <= 60) return Math.ceil(seconds / 10) * 10;
105
+ if (seconds <= 10 * minute) return Math.ceil(seconds / minute) * minute;
106
+ if (seconds <= 30 * minute) return Math.ceil(seconds / (minute * 10)) * minute * 10;
107
+ if (seconds <= 12 * hour) return Math.ceil(seconds / hour) * hour;
108
+ if (seconds <= 10 * day) return Math.ceil(seconds / day) * day;
109
+ if (seconds <= 30 * day) return Math.ceil(seconds / (day * 10)) * day * 10;
110
+ if (seconds <= 5.5 * month) return Math.ceil(seconds / month) * month;
138
111
  return Math.ceil(seconds / year) * year;
139
112
  }
140
113
  function getStartOfMonth(date = /* @__PURE__ */ new Date()) {
@@ -163,8 +136,7 @@ function getStartOfWeek(date = /* @__PURE__ */ new Date(), startFrom = 1 /* MOND
163
136
  const startFromPrepared = startFrom || 7;
164
137
  const dayOfWeek = date.getDay() || 7;
165
138
  let diff = startFromPrepared - dayOfWeek;
166
- if (diff > 0)
167
- diff -= 7;
139
+ if (diff > 0) diff -= 7;
168
140
  const startOfWeek = new Date(date);
169
141
  startOfWeek.setDate(date.getDate() + diff);
170
142
  return getStartOfDay(startOfWeek);
@@ -0,0 +1,8 @@
1
+ import { MaybeRef } from 'vue';
2
+
3
+ export declare const useCopy: (value: MaybeRef<string | number | undefined>) => {
4
+ copied: import('vue').Ref<boolean>;
5
+ iconCopy: import('vue').ComputedRef<import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes, {}, any, {}>>>;
6
+ doCopy: () => void;
7
+ };
8
+ //# sourceMappingURL=useCopy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCopy.d.ts","sourceRoot":"","sources":["../../src/utils/useCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,QAAQ,EAAC,MAAM,KAAK,CAAA;AAKhE,eAAO,MAAM,OAAO,UAAW,QAAQ,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;;;;CAgEnE,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { ref, computed, markRaw, unref } from 'vue';
2
+ import { Notify } from './Notify.js';
3
+ import IconCopy from '../assets/icons/sax/IconCopy.svg.js';
4
+ import IconCopySuccess from '../assets/icons/sax/IconCopySuccess.svg.js';
5
+
6
+ const useCopy = (value) => {
7
+ const copied = ref(false);
8
+ let timeout;
9
+ const iconCopy = computed(() => copied.value ? markRaw(IconCopySuccess) : markRaw(IconCopy));
10
+ const checkPermission = async () => {
11
+ const result = await navigator.permissions.query({ name: "clipboard-write" });
12
+ return result.state === "granted" || result.state === "prompt";
13
+ };
14
+ const _doCopy = () => {
15
+ const text = unref(value);
16
+ if (!text) {
17
+ Notify.warn({
18
+ title: "Nothing to copy"
19
+ });
20
+ return Promise.resolve();
21
+ }
22
+ return navigator.clipboard.writeText(typeof text === "number" ? `${text}` : text).then(() => {
23
+ copied.value = true;
24
+ Notify.success({
25
+ title: "Copied"
26
+ });
27
+ if (timeout) clearTimeout(timeout);
28
+ timeout = setTimeout(() => {
29
+ timeout = void 0;
30
+ copied.value = false;
31
+ }, 1e3);
32
+ }).catch(() => {
33
+ Notify.error({
34
+ title: "Copy failed"
35
+ });
36
+ });
37
+ };
38
+ const doCopy = () => {
39
+ _doCopy().catch(async () => {
40
+ if (!await checkPermission()) {
41
+ Notify.error({
42
+ title: "Copy failed",
43
+ caption: "Writing to clipboard is not permitted"
44
+ });
45
+ }
46
+ _doCopy();
47
+ });
48
+ };
49
+ return {
50
+ copied,
51
+ iconCopy,
52
+ doCopy
53
+ };
54
+ };
55
+
56
+ export { useCopy };
@@ -1,7 +1,8 @@
1
- import { type QueryClient, type UseQueryReturnType, type QueryKey } from '@tanstack/vue-query';
1
+ import { QueryClient, UseQueryReturnType, QueryKey } from '@tanstack/vue-query';
2
+
2
3
  type Params = Parameters<QueryClient['setQueriesData']>;
3
- export declare const useDefaultQuery: <TQueryFnData = unknown, TError = import('../types/types').DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import("@tanstack/vue-query").UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, TError> & {
4
- setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient['setQueriesData']>;
4
+ export declare const useDefaultQuery: <TQueryFnData = unknown, TError = import('../types/types').DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import('@tanstack/vue-query').UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, TError> & {
5
+ setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient["setQueriesData"]>;
5
6
  };
6
7
  export {};
7
8
  //# sourceMappingURL=useDefaultQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe;uBAOL,YAAY,YAAY,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAUrG,CAAA"}
1
+ {"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe,GAC1B,YAAY,YACZ,MAAM,yCACN,KAAK,iBACL,SAAS,SAAS,QAAQ,qKAEsD,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAClH,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;CAUrG,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,MAAM,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,OAAO,WAAW,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,EAAE,QAAQ,OAAO,EAAE,KAAG,OAE7D,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,MAAM,EAAE,OAAO,CAAC,QAAQ,OAAO,MAAM,EAAE,OAAO,CAAC,YAAY,MAAM,EAAE,YAAY,MAAM,EAAE,KAAG,OAWjI,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAAA;AACpF,eAAO,MAAM,eAAe,mBAA0B,CAAA;AAEtD,eAAO,MAAM,YAAY,EAAE,OAAuC,CAAA;AAIlE,eAAO,MAAM,KAAK,cAEjB,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,SAAU,OAAO,KAAG,OAAO,GAAG,IAKhD,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAAW,OAAO,mBAAa,KAAK,CAAC,OAAO,CAa3E,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,OAAO,WAAW,OAAO,KAAG,OAI7D,CAAA;AAGD,KAAK,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAWpE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CAYpE;AAED,eAAO,MAAM,UAAU,SAAU,OAAO,EAAE,QAAQ,OAAO,EAAE,KAAG,OAE7D,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,MAAM,EAAE,YAAY,MAAM,EAAE,KAAG,OAWjI,CAAA;AAED,eAAO,MAAM,uBAAuB,mBAAmE,CAAA;AACvG,eAAO,MAAM,sBAAsB,mBAAiD,CAAA;AACpF,eAAO,MAAM,eAAe,mBAA0B,CAAA;AAEtD,eAAO,MAAM,YAAY,EAAE,OAAuC,CAAA;AAIlE,eAAO,MAAM,KAAK,cAEjB,CAAA"}
@@ -7,28 +7,22 @@ const getScrollParent = (node) => node.parentElement ? isScroll(node.parentEleme
7
7
  const getAllScrollParents = (node, max = 10) => {
8
8
  const arr = [];
9
9
  let parent = node && getScrollParent(node);
10
- if (parent)
11
- arr.push(parent);
10
+ if (parent) arr.push(parent);
12
11
  while (parent && arr.length < max) {
13
12
  parent = getScrollParent(parent);
14
- if (parent)
15
- arr.push(parent);
13
+ if (parent) arr.push(parent);
16
14
  }
17
15
  return arr;
18
16
  };
19
17
  const hasParent = (parent, current) => {
20
- if (current === parent)
21
- return true;
22
- else if (!current.parentElement)
23
- return false;
24
- else
25
- return hasParent(parent, current.parentElement);
18
+ if (current === parent) return true;
19
+ else if (!current.parentElement) return false;
20
+ else return hasParent(parent, current.parentElement);
26
21
  };
27
22
  function debounce(cb, delay = 200) {
28
23
  let timeout;
29
24
  return function(...args) {
30
- if (timeout)
31
- clearTimeout(timeout);
25
+ if (timeout) clearTimeout(timeout);
32
26
  timeout = setTimeout(() => {
33
27
  timeout = void 0;
34
28
  cb.apply(this, args);
@@ -38,8 +32,7 @@ function debounce(cb, delay = 200) {
38
32
  function throttle(cb, delay = 200) {
39
33
  let timeout;
40
34
  return function(...args) {
41
- if (timeout)
42
- return;
35
+ if (timeout) return;
43
36
  cb.apply(this, args);
44
37
  timeout = setTimeout(() => {
45
38
  timeout = void 0;
@@ -51,12 +44,9 @@ const isEqualArr = (arr1, arr2) => {
51
44
  };
52
45
  const isEqualObj = (obj1, obj2, exclude, include) => {
53
46
  return Object.keys({ ...obj1, ...obj2 }).every((key) => {
54
- if (include && !include.includes(key))
55
- return true;
56
- if (exclude?.includes(key) || obj1[key] === obj2[key])
57
- return true;
58
- if (Array.isArray(obj1[key]) && Array.isArray(obj2[key]))
59
- return isEqualArr(obj1[key], obj2[key]);
47
+ if (include && !include.includes(key)) return true;
48
+ if (exclude?.includes(key) || obj1[key] === obj2[key]) return true;
49
+ if (Array.isArray(obj1[key]) && Array.isArray(obj2[key])) return isEqualArr(obj1[key], obj2[key]);
60
50
  return false;
61
51
  });
62
52
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.5.25",
7
+ "version": "0.6.0",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -22,30 +22,30 @@
22
22
  "vue-router": ">=4.2.5"
23
23
  },
24
24
  "devDependencies": {
25
- "@rushstack/eslint-patch": "1.7.2",
26
- "@tsconfig/node18": "2.0.1",
27
- "@types/jsdom": "21.1.1",
28
- "@types/node": "18.16.17",
29
- "@types/postcss-import": "14.0.0",
30
- "@vitejs/plugin-vue": "5.0.4",
25
+ "@rushstack/eslint-patch": "1.10.4",
26
+ "@tsconfig/node18": "18.2.4",
27
+ "@types/jsdom": "21.1.7",
28
+ "@types/node": "22.1.0",
29
+ "@types/postcss-import": "14.0.3",
30
+ "@vitejs/plugin-vue": "5.1.2",
31
31
  "@vue/eslint-config-typescript": "13.0.0",
32
32
  "@vue/tsconfig": "0.5.1",
33
- "autoprefixer": "10.4.13",
33
+ "autoprefixer": "10.4.20",
34
34
  "eslint": "8.57.0",
35
35
  "eslint-plugin-unused-imports": "2.0.0",
36
- "eslint-plugin-vue": "9.23.0",
37
- "jsdom": "22.1.0",
36
+ "eslint-plugin-vue": "9.27.0",
37
+ "jsdom": "24.1.1",
38
38
  "npm-run-all": "4.1.5",
39
39
  "path": "0.12.7",
40
- "postcss": "8.4.31",
41
- "postcss-import": "15.1.0",
42
- "tailwindcss": "3.4.1",
43
- "typescript": "5.4.2",
44
- "vite": "5.2.13",
45
- "vite-plugin-dts": "3.7.3",
46
- "vite-svg-loader": "4.0.0",
47
- "vitest": "0.32.0",
48
- "vue-tsc": "2.0.6"
40
+ "postcss": "8.4.40",
41
+ "postcss-import": "16.1.0",
42
+ "tailwindcss": "3.4.7",
43
+ "typescript": "5.5.4",
44
+ "vite": "5.3.5",
45
+ "vite-plugin-dts": "4.0.0-beta.2",
46
+ "vite-svg-loader": "5.1.0",
47
+ "vitest": "2.0.5",
48
+ "vue-tsc": "2.0.29"
49
49
  },
50
50
  "type": "module",
51
51
  "files": [
@@ -105,6 +105,9 @@
105
105
  "./dist/utils/useDefaultQuery": {
106
106
  "import": "./dist/utils/useDefaultQuery.js"
107
107
  },
108
+ "./dist/utils/useCopy": {
109
+ "import": "./dist/utils/useCopy.js"
110
+ },
108
111
  "./dist/components/ActionsBar/WActionsBar.vue": {
109
112
  "import": "./dist/components/ActionsBar/WActionsBar.vue.js"
110
113
  },
@@ -138,6 +141,9 @@
138
141
  "./dist/components/Button/WButtonSelectionAction.vue": {
139
142
  "import": "./dist/components/Button/WButtonSelectionAction.vue.js"
140
143
  },
144
+ "./dist/components/Button/types": {
145
+ "import": "./dist/components/Button/types.d.ts"
146
+ },
141
147
  "./dist/components/Checkbox/WCheckbox.vue": {
142
148
  "import": "./dist/components/Checkbox/WCheckbox.vue.js"
143
149
  },
@@ -159,9 +165,15 @@
159
165
  "./dist/components/Dropdown/WDropdown.vue": {
160
166
  "import": "./dist/components/Dropdown/WDropdown.vue.js"
161
167
  },
168
+ "./dist/components/Dropdown/types": {
169
+ "import": "./dist/components/Dropdown/types.d.ts"
170
+ },
162
171
  "./dist/components/DropdownMenu/WDropdownMenu.vue": {
163
172
  "import": "./dist/components/DropdownMenu/WDropdownMenu.vue.js"
164
173
  },
174
+ "./dist/components/DropdownMenu/types": {
175
+ "import": "./dist/components/DropdownMenu/types.d.ts"
176
+ },
165
177
  "./dist/components/Expansion/WExpansion.vue": {
166
178
  "import": "./dist/components/Expansion/WExpansion.vue.js"
167
179
  },
@@ -171,6 +183,9 @@
171
183
  "./dist/components/FieldWrapper/WFieldWrapper.vue": {
172
184
  "import": "./dist/components/FieldWrapper/WFieldWrapper.vue.js"
173
185
  },
186
+ "./dist/components/FieldWrapper/types": {
187
+ "import": "./dist/components/FieldWrapper/types.d.ts"
188
+ },
174
189
  "./dist/components/FilePicker/WFilePicker.vue": {
175
190
  "import": "./dist/components/FilePicker/WFilePicker.vue.js"
176
191
  },
@@ -216,6 +231,9 @@
216
231
  "./dist/components/Input/WInputSuggest.vue": {
217
232
  "import": "./dist/components/Input/WInputSuggest.vue.js"
218
233
  },
234
+ "./dist/components/Input/types": {
235
+ "import": "./dist/components/Input/types.d.ts"
236
+ },
219
237
  "./dist/components/Link/WLink.vue": {
220
238
  "import": "./dist/components/Link/WLink.vue.js"
221
239
  },
@@ -270,6 +288,9 @@
270
288
  "./dist/components/Select/WSelectSingle.vue": {
271
289
  "import": "./dist/components/Select/WSelectSingle.vue.js"
272
290
  },
291
+ "./dist/components/Select/types": {
292
+ "import": "./dist/components/Select/types.d.ts"
293
+ },
273
294
  "./dist/components/Skeleton/WSkeleton.vue": {
274
295
  "import": "./dist/components/Skeleton/WSkeleton.vue.js"
275
296
  },
@@ -96,6 +96,7 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
96
96
  addVariant('supports-overlay-not', '@supports (not (overflow: overlay))')
97
97
  addVariant('touch', '.touch &')
98
98
  addVariant('touch-not', '.touch-not &')
99
+ addVariant('focus-within-not', '&:not(:focus-within)')
99
100
 
100
101
  addBase({
101
102
  '.w-input': {
@@ -206,6 +207,11 @@ module.exports = plugin(function ({matchUtilities, addVariant, addUtilities, add
206
207
  '--w-scroll-bar-color-hover': value,
207
208
  }
208
209
  },
210
+ 'w-has-changes-color': (value) => {
211
+ return {
212
+ '--has-changes-bg': value,
213
+ }
214
+ },
209
215
  },
210
216
  {
211
217
  values: theme('colors'),
@@ -13,9 +13,11 @@ const extend = {
13
13
 
14
14
  module.exports = {
15
15
  height: {
16
+ '8.5': '2.125rem',
16
17
  18: '4.5rem',
17
18
  },
18
19
  width: {
20
+ '8.5': '2.125rem',
19
21
  18: '4.5rem',
20
22
  },
21
23
  maxWidth: extend,