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.
- package/dist/assets/icons/IconCheckSecret.svg.js +44 -0
- package/dist/assets/icons/IconUpload.svg.js +38 -0
- package/dist/components/BorderSvg/WBorderSvg.vue.d.ts +26 -0
- package/dist/components/BorderSvg/WBorderSvg.vue.d.ts.map +1 -0
- package/dist/components/BorderSvg/WBorderSvg.vue.js +36 -0
- package/dist/components/BorderSvg/WBorderSvg.vue2.js +5 -0
- package/dist/components/Button/WButtonGroup.vue.js +1 -0
- package/dist/components/Checkbox/WCheckboxGroup.vue.js +1 -0
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue.js +1 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts +6 -0
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +39 -15
- package/dist/components/FieldWrapper/types.d.ts +1 -0
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.d.ts +0 -2
- package/dist/components/FilePicker/WFilePicker.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/WFilePicker.vue.js +17 -44
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts +2 -7
- package/dist/components/FilePicker/components/FilePickerSvg.vue.d.ts.map +1 -1
- package/dist/components/FilePicker/components/FilePickerSvg.vue.js +21 -71
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncCheckboxGroup.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelect.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +1 -0
- package/dist/components/Input/WInput.vue.d.ts +2 -0
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +93 -17
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +4 -2
- package/dist/components/Input/WInputDate.vue.js +1 -0
- package/dist/components/Input/WInputOptions.vue.js +1 -0
- package/dist/components/Input/WInputSuggest.vue.js +1 -0
- package/dist/components/Input/components/InputActions.vue.d.ts +4 -0
- package/dist/components/Input/components/InputActions.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActions.vue.js +36 -17
- package/dist/components/Input/components/InputActionsButton.vue.d.ts +1 -0
- package/dist/components/Input/components/InputActionsButton.vue.d.ts.map +1 -1
- package/dist/components/Input/components/InputActionsButton.vue.js +5 -5
- package/dist/components/Select/WSelect.vue.js +1 -0
- package/dist/components/Select/WSelectAsync.vue.js +1 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -0
- package/dist/components/Select/WSelectSingle.vue.js +1 -0
- package/dist/components/Select/WSelectStringified.vue.js +1 -0
- package/dist/main.d.ts +5 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +214 -209
- package/dist/utils/preventDragFile.d.ts +3 -0
- package/dist/utils/preventDragFile.d.ts.map +1 -0
- package/dist/utils/preventDragFile.js +20 -0
- package/package.json +7 -1
- 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.
|
|
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}),
|