@volverjs/ui-vue 0.0.5-beta.1 → 0.0.5-beta.2
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/components/VvAction/VvAction.es.js +10 -0
- package/dist/components/VvBadge/VvBadge.es.js +10 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +10 -0
- package/dist/components/VvButton/VvButton.es.js +10 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +10 -0
- package/dist/components/VvCheckbox/VvCheckbox.es.js +10 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +10 -0
- package/dist/components/VvCombobox/VvCombobox.es.js +17 -3
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +24 -11
- package/dist/components/VvCombobox/index.d.ts +6 -1
- package/dist/components/VvDialog/VvDialog.es.js +10 -0
- package/dist/components/VvDropdown/VvDropdown.es.js +14 -2
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +27 -11
- package/dist/components/VvDropdown/index.d.ts +6 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +10 -0
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +10 -0
- package/dist/components/VvInputText/VvInputText.es.js +14 -4
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
- package/dist/components/VvInputText/index.d.ts +2 -2
- package/dist/components/VvProgress/VvProgress.es.js +10 -0
- package/dist/components/VvRadio/VvRadio.es.js +10 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +10 -0
- package/dist/components/VvSelect/VvSelect.es.js +10 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +14 -4
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +10 -10
- package/dist/components/VvTextarea/index.d.ts +2 -2
- package/dist/components/VvTooltip/VvTooltip.es.js +10 -0
- package/dist/components/index.es.js +23 -9
- package/dist/components/index.umd.js +1 -1
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.es.js +51 -2
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-contextmenu.d.ts +3 -0
- package/dist/directives/v-contextmenu.es.js +42 -0
- package/dist/directives/v-contextmenu.umd.js +1 -0
- package/dist/directives/v-tooltip.es.js +10 -0
- package/dist/icons.d.ts +3 -1
- package/dist/icons.es.js +6 -4
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +11 -3
- package/dist/stories/Combobox/Combobox.settings.d.ts +12 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +12 -0
- package/dist/stories/argTypes.d.ts +12 -0
- package/package.json +50 -42
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +5 -3
- package/src/components/VvDropdown/VvDropdown.vue +3 -2
- package/src/components/VvInputText/VvInputText.vue +2 -2
- package/src/components/VvTextarea/VvTextarea.vue +2 -2
- package/src/directives/index.ts +2 -0
- package/src/directives/v-contextmenu.ts +40 -0
- package/src/icons.ts +1 -1
- package/src/props/index.ts +12 -2
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.mdx +41 -0
- package/src/stories/Tooltip/TooltipDirective.stories.mdx +1 -1
- package/src/stories/argTypes.ts +10 -0
package/dist/props/index.d.ts
CHANGED
|
@@ -213,6 +213,14 @@ export declare const DropdownProps: {
|
|
|
213
213
|
default: Side;
|
|
214
214
|
validator: (value: Side & Placement) => boolean;
|
|
215
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
* Dropdown strategy
|
|
218
|
+
*/
|
|
219
|
+
strategy: {
|
|
220
|
+
type: PropType<"fixed" | "absolute">;
|
|
221
|
+
default: string;
|
|
222
|
+
validator: (value: 'fixed' | 'absolute') => boolean;
|
|
223
|
+
};
|
|
216
224
|
/**
|
|
217
225
|
* Dropdown show / hide transition name
|
|
218
226
|
*/
|
|
@@ -265,8 +273,8 @@ export declare const DropdownProps: {
|
|
|
265
273
|
x: number;
|
|
266
274
|
y: number;
|
|
267
275
|
placement: import("@floating-ui/core").Placement;
|
|
268
|
-
initialPlacement: import("@floating-ui/core").Placement;
|
|
269
276
|
strategy: import("@floating-ui/core").Strategy;
|
|
277
|
+
initialPlacement: import("@floating-ui/core").Placement;
|
|
270
278
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
271
279
|
rects: import("@floating-ui/core").ElementRects;
|
|
272
280
|
platform: import("@floating-ui/core").Platform;
|
|
@@ -369,14 +377,14 @@ export declare const InputTextareaProps: {
|
|
|
369
377
|
* Available for input types: text, search, url, tel, email, password
|
|
370
378
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
371
379
|
*/
|
|
372
|
-
minlength: NumberConstructor;
|
|
380
|
+
minlength: (StringConstructor | NumberConstructor)[];
|
|
373
381
|
/**
|
|
374
382
|
* Input / Textarea maxlength
|
|
375
383
|
* Maximum length (number of characters) of value
|
|
376
384
|
* Available for input types: text, search, url, tel, email, password
|
|
377
385
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
378
386
|
*/
|
|
379
|
-
maxlength: NumberConstructor;
|
|
387
|
+
maxlength: (StringConstructor | NumberConstructor)[];
|
|
380
388
|
/**
|
|
381
389
|
* Input / Textarea placeholder
|
|
382
390
|
* Text that appears in the form control when it has no value set
|
|
@@ -255,6 +255,18 @@ export declare const argTypes: {
|
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
+
strategy: {
|
|
259
|
+
description: string;
|
|
260
|
+
options: string[];
|
|
261
|
+
control: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
table: {
|
|
265
|
+
defaultValue: {
|
|
266
|
+
summary: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
258
270
|
transitionName: {
|
|
259
271
|
description: string;
|
|
260
272
|
control: {
|
|
@@ -75,6 +75,18 @@ export declare const argTypes: {
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
+
strategy: {
|
|
79
|
+
description: string;
|
|
80
|
+
options: string[];
|
|
81
|
+
control: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
table: {
|
|
85
|
+
defaultValue: {
|
|
86
|
+
summary: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
78
90
|
transitionName: {
|
|
79
91
|
description: string;
|
|
80
92
|
control: {
|
|
@@ -285,6 +285,18 @@ export declare const DropdownArgTypes: {
|
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
|
+
strategy: {
|
|
289
|
+
description: string;
|
|
290
|
+
options: string[];
|
|
291
|
+
control: {
|
|
292
|
+
type: string;
|
|
293
|
+
};
|
|
294
|
+
table: {
|
|
295
|
+
defaultValue: {
|
|
296
|
+
summary: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
288
300
|
transitionName: {
|
|
289
301
|
description: string;
|
|
290
302
|
control: {
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/volverjs/ui-vue/issues"
|
|
21
21
|
},
|
|
22
|
-
"version": "0.0.5-beta.
|
|
22
|
+
"version": "0.0.5-beta.2",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">= 16.x"
|
|
25
25
|
},
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"@floating-ui/vue": "^0.2.1",
|
|
42
42
|
"@iconify/tools": "^2.2.6",
|
|
43
43
|
"@iconify/vue": "^4.1.0",
|
|
44
|
-
"@volverjs/style": "0.1.9-beta.
|
|
44
|
+
"@volverjs/style": "0.1.9-beta.4",
|
|
45
45
|
"@vueuse/core": "^9.13.0",
|
|
46
|
-
"jsdom": "^21.1.
|
|
46
|
+
"jsdom": "^21.1.1",
|
|
47
47
|
"maska": "^2.1.7",
|
|
48
48
|
"mitt": "^3.0.0",
|
|
49
49
|
"nanoid": "^4.0.1",
|
|
50
50
|
"vue": "^3.2.47"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.21.
|
|
53
|
+
"@babel/core": "^7.21.3",
|
|
54
54
|
"@babel/preset-env": "^7.20.2",
|
|
55
55
|
"@babel/preset-typescript": "^7.21.0",
|
|
56
56
|
"@iconify/types": "^2.0.0",
|
|
57
|
-
"@iconify/utils": "^2.1.
|
|
57
|
+
"@iconify/utils": "^2.1.5",
|
|
58
58
|
"@mdx-js/react": "^2.3.0",
|
|
59
59
|
"@rushstack/eslint-patch": "^1.2.0",
|
|
60
60
|
"@storybook/addon-a11y": "7.0.0-beta.40",
|
|
@@ -79,44 +79,44 @@
|
|
|
79
79
|
"@storybook/vue3-vite": "7.0.0-beta.40",
|
|
80
80
|
"@types/jest-axe": "^3.5.5",
|
|
81
81
|
"@types/jsdom": "^21.1.0",
|
|
82
|
-
"@types/node": "18.
|
|
82
|
+
"@types/node": "18.15.5",
|
|
83
83
|
"@types/react": "^18.0.28",
|
|
84
|
-
"@types/yargs": "^17.0.
|
|
85
|
-
"@vitejs/plugin-vue": "^4.
|
|
84
|
+
"@types/yargs": "^17.0.23",
|
|
85
|
+
"@vitejs/plugin-vue": "^4.1.0",
|
|
86
86
|
"@vue/compiler-sfc": "^3.2.47",
|
|
87
87
|
"@vue/eslint-config-prettier": "^7.1.0",
|
|
88
88
|
"@vue/eslint-config-typescript": "^11.0.2",
|
|
89
|
-
"@vue/test-utils": "^2.3.
|
|
89
|
+
"@vue/test-utils": "^2.3.2",
|
|
90
90
|
"@vue/tsconfig": "^0.1.3",
|
|
91
91
|
"change-case": "^4.1.2",
|
|
92
|
-
"eslint": "^8.
|
|
93
|
-
"eslint-config-prettier": "^8.
|
|
92
|
+
"eslint": "^8.36.0",
|
|
93
|
+
"eslint-config-prettier": "^8.8.0",
|
|
94
94
|
"eslint-mdx": "^2.0.5",
|
|
95
95
|
"eslint-plugin-mdx": "^2.0.5",
|
|
96
96
|
"eslint-plugin-storybook": "^0.6.11",
|
|
97
97
|
"eslint-plugin-vue": "^9.9.0",
|
|
98
|
-
"glob": "^7.
|
|
98
|
+
"glob": "^7.1.6",
|
|
99
99
|
"jest-axe": "^7.0.0",
|
|
100
100
|
"jest-diff": "^29.5.0",
|
|
101
101
|
"jest-get-type": "^29.4.3",
|
|
102
|
-
"jsdom": "^21.1.
|
|
102
|
+
"jsdom": "^21.1.1",
|
|
103
103
|
"npm-run-all": "^4.1.5",
|
|
104
|
-
"prettier": "^2.8.
|
|
104
|
+
"prettier": "^2.8.6",
|
|
105
105
|
"pretty-format": "^29.5.0",
|
|
106
106
|
"react": "^18.2.0",
|
|
107
107
|
"react-dom": "^18.2.0",
|
|
108
108
|
"remark": "^14.0.2",
|
|
109
|
-
"sass": "^1.
|
|
109
|
+
"sass": "^1.59.3",
|
|
110
110
|
"storybook": "7.0.0-beta.40",
|
|
111
111
|
"storybook-addon-markdown-docs": "^1.0.5",
|
|
112
112
|
"storybook-dark-mode": "^2.1.1",
|
|
113
113
|
"storybook-version": "^0.1.1",
|
|
114
|
-
"terser": "^5.16.
|
|
114
|
+
"terser": "^5.16.6",
|
|
115
115
|
"ts-node": "^10.9.1",
|
|
116
116
|
"typescript": "~4.9.5",
|
|
117
117
|
"unplugin-auto-import": "^0.15.1",
|
|
118
|
-
"unplugin-vue-components": "^0.24.
|
|
119
|
-
"vite": "^4.1
|
|
118
|
+
"unplugin-vue-components": "^0.24.1",
|
|
119
|
+
"vite": "^4.2.1",
|
|
120
120
|
"vite-plugin-eslint": "^1.8.1",
|
|
121
121
|
"vite-plugin-externalize-deps": "^0.5.0",
|
|
122
122
|
"vue-tsc": "^1.2.0",
|
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
"directives": [
|
|
137
137
|
"dist/directives/index.d.ts"
|
|
138
138
|
],
|
|
139
|
+
"v-contextmenu": [
|
|
140
|
+
"dist/directives/v-contextmenu.d.ts"
|
|
141
|
+
],
|
|
139
142
|
"v-tooltip": [
|
|
140
143
|
"dist/directives/v-tooltip.d.ts"
|
|
141
144
|
],
|
|
@@ -143,76 +146,76 @@
|
|
|
143
146
|
"dist/components/index.d.ts"
|
|
144
147
|
],
|
|
145
148
|
"vv-accordion": [
|
|
146
|
-
"
|
|
149
|
+
"dist/components/VvAccordion/VvAccordion.vue.d.ts"
|
|
147
150
|
],
|
|
148
151
|
"vv-accordion-group": [
|
|
149
|
-
"
|
|
152
|
+
"dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts"
|
|
150
153
|
],
|
|
151
154
|
"vv-action": [
|
|
152
|
-
"
|
|
155
|
+
"dist/components/VvAction/VvAction.vue.d.ts"
|
|
153
156
|
],
|
|
154
157
|
"vv-badge": [
|
|
155
|
-
"
|
|
158
|
+
"dist/components/VvBadge/VvBadge.vue.d.ts"
|
|
156
159
|
],
|
|
157
160
|
"vv-breadcrumb": [
|
|
158
|
-
"
|
|
161
|
+
"dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts"
|
|
159
162
|
],
|
|
160
163
|
"vv-button": [
|
|
161
|
-
"
|
|
164
|
+
"dist/components/VvButton/VvButton.vue.d.ts"
|
|
162
165
|
],
|
|
163
166
|
"vv-button-group": [
|
|
164
|
-
"
|
|
167
|
+
"dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts"
|
|
165
168
|
],
|
|
166
169
|
"vv-card": [
|
|
167
|
-
"
|
|
170
|
+
"dist/components/VvCard/VvCard.vue.d.ts"
|
|
168
171
|
],
|
|
169
172
|
"vv-checkbox": [
|
|
170
|
-
"
|
|
173
|
+
"dist/components/VvCheckbox/VvCheckbox.vue.d.ts"
|
|
171
174
|
],
|
|
172
175
|
"vv-checkbox-group": [
|
|
173
|
-
"
|
|
176
|
+
"dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts"
|
|
174
177
|
],
|
|
175
178
|
"vv-combobox": [
|
|
176
|
-
"
|
|
179
|
+
"dist/components/VvCombobox/VvCombobox.vue.d.ts"
|
|
177
180
|
],
|
|
178
181
|
"vv-dialog": [
|
|
179
|
-
"
|
|
182
|
+
"dist/components/VvDialog/VvDialog.vue.d.ts"
|
|
180
183
|
],
|
|
181
184
|
"vv-dropdown": [
|
|
182
|
-
"
|
|
185
|
+
"dist/components/VvDropdown/VvDropdown.vue.d.ts"
|
|
183
186
|
],
|
|
184
187
|
"vv-dropdown-action": [
|
|
185
|
-
"
|
|
188
|
+
"dist/components/VvDropdownAction/VvDropdownAction.vue.d.ts"
|
|
186
189
|
],
|
|
187
190
|
"vv-dropdown-item": [
|
|
188
|
-
"
|
|
191
|
+
"dist/components/VvDropdownItem/VvDropdownItem.vue.d.ts"
|
|
189
192
|
],
|
|
190
193
|
"vv-dropdown-option": [
|
|
191
|
-
"
|
|
194
|
+
"dist/components/VvDropdownOption/VvDropdownOption.vue.d.ts"
|
|
192
195
|
],
|
|
193
196
|
"vv-icon": [
|
|
194
|
-
"
|
|
197
|
+
"dist/components/VvIcon/VvIcon.vue.d.ts"
|
|
195
198
|
],
|
|
196
199
|
"vv-input-text": [
|
|
197
|
-
"
|
|
200
|
+
"dist/components/VvInputText/VvInputText.vue.d.ts"
|
|
198
201
|
],
|
|
199
202
|
"vv-progress": [
|
|
200
|
-
"
|
|
203
|
+
"dist/components/VvProgress/VvProgress.vue.d.ts"
|
|
201
204
|
],
|
|
202
205
|
"vv-radio": [
|
|
203
|
-
"
|
|
206
|
+
"dist/components/VvRadio/VvRadio.vue.d.ts"
|
|
204
207
|
],
|
|
205
208
|
"vv-radio-group": [
|
|
206
|
-
"
|
|
209
|
+
"dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts"
|
|
207
210
|
],
|
|
208
211
|
"vv-select": [
|
|
209
|
-
"
|
|
212
|
+
"dist/components/VvSelect/VvSelect.vue.d.ts"
|
|
210
213
|
],
|
|
211
214
|
"vv-textarea": [
|
|
212
|
-
"
|
|
215
|
+
"dist/components/VvTextarea/VvTextarea.vue.d.ts"
|
|
213
216
|
],
|
|
214
217
|
"vv-tooltip": [
|
|
215
|
-
"
|
|
218
|
+
"dist/components/VvTooltip/VvTooltip.vue.d.ts"
|
|
216
219
|
]
|
|
217
220
|
}
|
|
218
221
|
},
|
|
@@ -239,6 +242,11 @@
|
|
|
239
242
|
"import": "./dist/directives/index.es.js",
|
|
240
243
|
"default": "./dist/directives/index.umd.js"
|
|
241
244
|
},
|
|
245
|
+
"./v-contextmenu": {
|
|
246
|
+
"types": "./dist/directives/v-contextmenu.d.ts",
|
|
247
|
+
"import": "./dist/directives/v-contextmenu.es.js",
|
|
248
|
+
"default": "./dist/directives/v-contextmenu.umd.js"
|
|
249
|
+
},
|
|
242
250
|
"./v-tooltip": {
|
|
243
251
|
"types": "./dist/directives/v-tooltip.d.ts",
|
|
244
252
|
"import": "./dist/directives/v-tooltip.es.js",
|