eco-vue-js 0.11.65 → 0.11.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/assets/icons/IconCheckSecret.svg.js +44 -0
  2. package/dist/assets/icons/IconUpload.svg.js +38 -0
  3. package/dist/components/BorderSvg/WBorderSvg.vue.d.ts +26 -0
  4. package/dist/components/BorderSvg/WBorderSvg.vue.d.ts.map +1 -0
  5. package/dist/components/BorderSvg/WBorderSvg.vue.js +36 -0
  6. package/dist/components/BorderSvg/WBorderSvg.vue2.js +5 -0
  7. package/dist/components/Button/WButtonGroup.vue.js +1 -0
  8. package/dist/components/Checkbox/WCheckboxGroup.vue.js +1 -0
  9. package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +1 -0
  10. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +6 -0
  11. package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
  12. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +39 -15
  13. package/dist/components/FieldWrapper/types.d.ts +1 -0
  14. package/dist/components/FieldWrapper/types.d.ts.map +1 -1
  15. package/dist/components/FilePicker/WFilePicker.vue.d.ts +0 -2
  16. package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
  17. package/dist/components/FilePicker/WFilePicker.vue.js +17 -44
  18. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +2 -7
  19. package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
  20. package/dist/components/FilePicker/components/FilePickerSvg.vue.js +21 -71
  21. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -0
  22. package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -0
  23. package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -0
  24. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -0
  25. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -0
  26. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -0
  27. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -0
  28. package/dist/components/Input/WInput.vue.d.ts +2 -0
  29. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  30. package/dist/components/Input/WInput.vue.js +93 -17
  31. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  32. package/dist/components/Input/WInputAsync.vue.js +4 -2
  33. package/dist/components/Input/WInputDate.vue.js +1 -0
  34. package/dist/components/Input/WInputOptions.vue.js +1 -0
  35. package/dist/components/Input/WInputSuggest.vue.js +1 -0
  36. package/dist/components/Input/components/InputActions.vue.d.ts +4 -0
  37. package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
  38. package/dist/components/Input/components/InputActions.vue.js +36 -17
  39. package/dist/components/Input/components/InputActionsButton.vue.d.ts +1 -0
  40. package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
  41. package/dist/components/Input/components/InputActionsButton.vue.js +5 -5
  42. package/dist/components/Select/WSelect.vue.js +1 -0
  43. package/dist/components/Select/WSelectAsync.vue.js +1 -0
  44. package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -0
  45. package/dist/components/Select/WSelectSingle.vue.js +1 -0
  46. package/dist/components/Select/WSelectStringified.vue.js +1 -0
  47. package/dist/main.d.ts +5 -1
  48. package/dist/main.d.ts.map +1 -1
  49. package/dist/main.js +214 -209
  50. package/dist/utils/preventDragFile.d.ts +3 -0
  51. package/dist/utils/preventDragFile.d.ts.map +1 -0
  52. package/dist/utils/preventDragFile.js +20 -0
  53. package/package.json +7 -1
  54. package/tailwind-base/plugins/internal-variables.ts +15 -0
@@ -0,0 +1,20 @@
1
+ import { ref } from 'vue';
2
+ import { getIsClientSide } from './utils.js';
3
+
4
+ const events = ["dragenter", "dragover", "dragleave", "drop"];
5
+ const isDragging = ref(false);
6
+ const preventDefaults = (e) => {
7
+ if (!(e instanceof DragEvent) || !e.dataTransfer || !e.dataTransfer.types.includes("Files")) return;
8
+ e.preventDefault();
9
+ isDragging.value = e.type === "dragenter" || e.type === "dragover";
10
+ };
11
+ let isPrevented = false;
12
+ const preventDragFile = () => {
13
+ if (!getIsClientSide() || isPrevented) return;
14
+ isPrevented = true;
15
+ events.forEach((eventName) => {
16
+ document.body.addEventListener(eventName, preventDefaults);
17
+ });
18
+ };
19
+
20
+ export { isDragging, preventDragFile };
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.11.65",
7
+ "version": "0.11.67",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.6.1",
10
10
  "@tanstack/eslint-plugin-query": "5.91.2",
@@ -90,6 +90,9 @@
90
90
  "./dist/utils/order": {
91
91
  "import": "./dist/utils/order.js"
92
92
  },
93
+ "./dist/utils/preventDragFile": {
94
+ "import": "./dist/utils/preventDragFile.js"
95
+ },
93
96
  "./dist/utils/provide": {
94
97
  "import": "./dist/utils/provide.js"
95
98
  },
@@ -123,6 +126,9 @@
123
126
  "./dist/components/ActionsBar/WActionsBarFilter.vue": {
124
127
  "import": "./dist/components/ActionsBar/WActionsBarFilter.vue.js"
125
128
  },
129
+ "./dist/components/BorderSvg/WBorderSvg.vue": {
130
+ "import": "./dist/components/BorderSvg/WBorderSvg.vue.js"
131
+ },
126
132
  "./dist/components/BottomSheet/WBottomSheet.vue": {
127
133
  "import": "./dist/components/BottomSheet/WBottomSheet.vue.js"
128
134
  },
@@ -78,10 +78,25 @@ const pluginDefault = plugin(function ({matchUtilities, theme, addBase}) {
78
78
  'w-modal-wrapper-rounded': value => ({'--w-modal-wrapper-rounded': value}),
79
79
  'w-list-header-rounded': value => ({'--w-list-header-rounded': value}),
80
80
  'w-button-action-rounded': value => ({'--w-button-action-rounded': value}),
81
+ 'w-border-svg-rounded': value => ({'--w-border-svg-rounded': value}),
81
82
  },
82
83
  {values: theme('borderRadius')},
83
84
  )
84
85
 
86
+ matchUtilities(
87
+ {
88
+ 'w-border-svg-stroke': value => ({'--w-border-svg-stroke-width': value}),
89
+ },
90
+ {values: theme('strokeWidth')},
91
+ )
92
+
93
+ matchUtilities(
94
+ {
95
+ 'w-border-svg-padding': value => ({'--w-border-svg-padding': value}),
96
+ },
97
+ {values: theme('padding')},
98
+ )
99
+
85
100
  matchUtilities(
86
101
  {
87
102
  'w-button-border': value => ({'--w-button-border': value}),