@nuxt/ui 2.15.0 → 2.15.1
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/Table.vue +2 -2
- package/dist/runtime/components/data/Table.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Avatar.vue +7 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +9 -0
- package/dist/runtime/components/elements/Dropdown.vue +1 -1
- package/dist/runtime/components/forms/Checkbox.vue +1 -1
- package/dist/runtime/components/forms/Input.vue +12 -7
- package/dist/runtime/components/forms/SelectMenu.vue +7 -7
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Popover.vue +1 -1
- package/dist/runtime/ui.config/layout/divider.mjs +2 -2
- package/package.json +5 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -14,7 +14,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
14
14
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
15
15
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
16
16
|
const name = "@nuxt/ui";
|
|
17
|
-
const version = "2.15.
|
|
17
|
+
const version = "2.15.1";
|
|
18
18
|
|
|
19
19
|
function createTemplates(nuxt = useNuxt()) {
|
|
20
20
|
const template = addTemplate({
|
|
@@ -249,8 +249,8 @@ export default defineComponent({
|
|
|
249
249
|
selected.value.push(row);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
function onChange(
|
|
253
|
-
if (
|
|
252
|
+
function onChange(checked) {
|
|
253
|
+
if (checked) {
|
|
254
254
|
selectAllRows();
|
|
255
255
|
} else {
|
|
256
256
|
selected.value = [];
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
117
|
direction?: 'asc' | 'desc';
|
|
118
118
|
}) => void;
|
|
119
119
|
onSelect: (row: any) => void;
|
|
120
|
-
onChange: (
|
|
120
|
+
onChange: (checked: boolean) => void;
|
|
121
121
|
getRowData: (row: Object, rowKey: string | string[], defaultValue?: any) => any;
|
|
122
122
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:sort")[], "update:modelValue" | "update:sort", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
123
|
modelValue: {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span :class="wrapperClass">
|
|
3
|
-
<
|
|
3
|
+
<component
|
|
4
|
+
:is="as"
|
|
4
5
|
v-if="url && !error"
|
|
5
6
|
:class="imgClass"
|
|
6
7
|
:alt="alt"
|
|
7
8
|
:src="url"
|
|
8
9
|
v-bind="attrs"
|
|
9
10
|
@error="onError"
|
|
10
|
-
|
|
11
|
+
/>
|
|
11
12
|
<span v-else-if="text" :class="ui.text">{{ text }}</span>
|
|
12
13
|
<UIcon v-else-if="icon" :name="icon" :class="iconClass" />
|
|
13
14
|
<span v-else-if="placeholder" :class="ui.placeholder">{{ placeholder }}</span>
|
|
@@ -34,6 +35,10 @@ export default defineComponent({
|
|
|
34
35
|
},
|
|
35
36
|
inheritAttrs: false,
|
|
36
37
|
props: {
|
|
38
|
+
as: {
|
|
39
|
+
type: [String, Object],
|
|
40
|
+
default: "img"
|
|
41
|
+
},
|
|
37
42
|
src: {
|
|
38
43
|
type: [String, Boolean],
|
|
39
44
|
default: null
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { AvatarSize } from '../../types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
as: {
|
|
5
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
4
8
|
src: {
|
|
5
9
|
type: (BooleanConstructor | StringConstructor)[];
|
|
6
10
|
default: null;
|
|
@@ -62,6 +66,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
66
|
error: import("vue").Ref<boolean>;
|
|
63
67
|
onError: () => void;
|
|
64
68
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
as: {
|
|
70
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
65
73
|
src: {
|
|
66
74
|
type: (BooleanConstructor | StringConstructor)[];
|
|
67
75
|
default: null;
|
|
@@ -115,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
123
|
ui: any;
|
|
116
124
|
icon: string;
|
|
117
125
|
class: any;
|
|
126
|
+
as: string | Record<string, any>;
|
|
118
127
|
src: string | boolean;
|
|
119
128
|
text: string;
|
|
120
129
|
chipColor: any;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</slot>
|
|
18
18
|
</HMenuButton>
|
|
19
19
|
|
|
20
|
-
<div v-if="open && items.length" ref="container" :class="[ui.container, ui.width]" :style="containerStyle">
|
|
20
|
+
<div v-if="open && items.length" ref="container" :class="[ui.container, ui.width]" :style="containerStyle" @mouseenter="onMouseEnter">
|
|
21
21
|
<Transition appear v-bind="ui.transition">
|
|
22
22
|
<div>
|
|
23
23
|
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
|
@@ -187,13 +187,18 @@ export default defineComponent({
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
const onChange = (event) => {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
190
|
+
if (props.type === "file") {
|
|
191
|
+
const value = event.target.files;
|
|
192
|
+
emit("change", value);
|
|
193
|
+
} else {
|
|
194
|
+
const value = event.target.value;
|
|
195
|
+
emit("change", value);
|
|
196
|
+
if (modelModifiers.value.lazy) {
|
|
197
|
+
updateInput(value);
|
|
198
|
+
}
|
|
199
|
+
if (modelModifiers.value.trim) {
|
|
200
|
+
event.target.value = value.trim();
|
|
201
|
+
}
|
|
197
202
|
}
|
|
198
203
|
};
|
|
199
204
|
const onBlur = (event) => {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
autofocus
|
|
64
64
|
autocomplete="off"
|
|
65
65
|
:class="uiMenu.input"
|
|
66
|
-
@change="
|
|
66
|
+
@change="onQueryChange"
|
|
67
67
|
/>
|
|
68
68
|
<component
|
|
69
69
|
:is="searchable ? 'HComboboxOption' : 'HListboxOption'"
|
|
@@ -469,12 +469,12 @@ export default defineComponent({
|
|
|
469
469
|
emitFormBlur();
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
|
-
function onUpdate(
|
|
473
|
-
emit("update:modelValue",
|
|
474
|
-
|
|
475
|
-
function onChange(event) {
|
|
476
|
-
emit("change", event.target.value);
|
|
472
|
+
function onUpdate(value) {
|
|
473
|
+
emit("update:modelValue", value);
|
|
474
|
+
emit("change", value);
|
|
477
475
|
emitFormChange();
|
|
476
|
+
}
|
|
477
|
+
function onQueryChange(event) {
|
|
478
478
|
query.value = event.target.value;
|
|
479
479
|
}
|
|
480
480
|
provideUseId(() => useId());
|
|
@@ -507,7 +507,7 @@ export default defineComponent({
|
|
|
507
507
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
508
508
|
query,
|
|
509
509
|
onUpdate,
|
|
510
|
-
|
|
510
|
+
onQueryChange
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
});
|
|
@@ -177,8 +177,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
177
|
[x: string]: string;
|
|
178
178
|
} | null>;
|
|
179
179
|
query: import("vue").WritableComputedRef<string>;
|
|
180
|
-
onUpdate: (
|
|
181
|
-
|
|
180
|
+
onUpdate: (value: any) => void;
|
|
181
|
+
onQueryChange: (event: any) => void;
|
|
182
182
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:modelValue" | "open" | "update:query")[], "change" | "close" | "update:modelValue" | "open" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
183
183
|
modelValue: {
|
|
184
184
|
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<div v-if="open" :class="[ui.overlay.base, ui.overlay.background]" />
|
|
22
22
|
</Transition>
|
|
23
23
|
|
|
24
|
-
<div v-if="open" ref="container" :class="[ui.container, ui.width]" :style="containerStyle">
|
|
24
|
+
<div v-if="open" ref="container" :class="[ui.container, ui.width]" :style="containerStyle" @mouseenter="onMouseEnter">
|
|
25
25
|
<Transition appear v-bind="ui.transition">
|
|
26
26
|
<div>
|
|
27
27
|
<div v-if="popper.arrow" data-popper-arrow :class="Object.values(ui.arrow)" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"repository": "nuxt/ui",
|
|
5
5
|
"homepage": "https://ui.nuxt.com",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
45
45
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
46
46
|
"@tailwindcss/forms": "^0.5.7",
|
|
47
|
-
"@tailwindcss/typography": "^0.5.
|
|
47
|
+
"@tailwindcss/typography": "^0.5.12",
|
|
48
48
|
"@vueuse/core": "^10.9.0",
|
|
49
49
|
"@vueuse/integrations": "^10.9.0",
|
|
50
50
|
"@vueuse/math": "^10.9.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"pathe": "^1.1.2",
|
|
56
56
|
"scule": "^1.3.0",
|
|
57
57
|
"tailwind-merge": "^2.2.2",
|
|
58
|
-
"tailwindcss": "^3.4.
|
|
58
|
+
"tailwindcss": "^3.4.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@nuxt/eslint-config": "^0.2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
65
65
|
"@vue/test-utils": "^2.4.5",
|
|
66
66
|
"eslint": "^8.57.0",
|
|
67
|
-
"happy-dom": "^14.3.
|
|
67
|
+
"happy-dom": "^14.3.10",
|
|
68
68
|
"joi": "^17.12.2",
|
|
69
69
|
"nuxt": "^3.11.1",
|
|
70
70
|
"release-it": "^17.1.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"resolutions": {
|
|
81
81
|
"@nuxt/kit": "^3.11.1",
|
|
82
82
|
"@nuxt/schema": "3.11.1",
|
|
83
|
-
"tailwindcss": "3.4.
|
|
83
|
+
"tailwindcss": "^3.4.3",
|
|
84
84
|
"@headlessui/vue": "1.7.19",
|
|
85
85
|
"vue": "3.4.21"
|
|
86
86
|
}
|