nuxt-hs-ui 4.0.0 → 4.0.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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -0
- package/dist/runtime/components/form/btn.vue.d.ts +69 -0
- package/dist/runtime/components/form/check-box.vue.d.ts +1 -1
- package/dist/runtime/components/form/check-list.vue.d.ts +1 -1
- package/dist/runtime/components/form/datepicker.vue.d.ts +2 -2
- package/dist/runtime/components/form/input-frame.vue.d.ts +1 -1
- package/dist/runtime/components/form/select.vue +3 -3
- package/dist/runtime/components/form/text-box.vue.d.ts +3 -3
- package/dist/runtime/components/form/textarea.vue.d.ts +1 -1
- package/dist/runtime/components/form/value-box.vue.d.ts +1 -1
- package/dist/runtime/components/layout/card-item.vue.d.ts +41 -0
- package/dist/runtime/components/layout/divider-h.vue.d.ts +1 -1
- package/dist/runtime/composables/use-hs-scroll-lock.d.ts +1 -1
- package/dist/runtime/utils/number.js +1 -1
- package/package.json +21 -18
package/README.md
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -134,6 +134,22 @@ const module$1 = defineNuxtModule({
|
|
|
134
134
|
});
|
|
135
135
|
addImportsDir(resolve("runtime/composables"));
|
|
136
136
|
AddCss(nuxt, resolve, { mode: "bundle" });
|
|
137
|
+
nuxt.options.vite ||= {};
|
|
138
|
+
nuxt.options.vite.optimizeDeps ||= {};
|
|
139
|
+
nuxt.options.vite.optimizeDeps.include ||= [];
|
|
140
|
+
nuxt.options.vite.optimizeDeps.include.push(
|
|
141
|
+
"@vueuse/integrations/useFocusTrap",
|
|
142
|
+
"body-scroll-lock",
|
|
143
|
+
"tailwind-merge",
|
|
144
|
+
"tailwind-variants",
|
|
145
|
+
"@internationalized/date",
|
|
146
|
+
"dayjs/esm/index",
|
|
147
|
+
"dayjs/esm/locale/en.js",
|
|
148
|
+
"dayjs/esm/locale/ja.js",
|
|
149
|
+
"dayjs/esm/plugin/advancedFormat",
|
|
150
|
+
"dayjs/esm/plugin/timezone",
|
|
151
|
+
"dayjs/esm/plugin/utc"
|
|
152
|
+
);
|
|
137
153
|
}
|
|
138
154
|
});
|
|
139
155
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type ClassType } from '../../utils/class-style.js';
|
|
2
|
+
import { type ThemeColor } from '../../utils/theme.js';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: ClassType;
|
|
5
|
+
classInner?: ClassType;
|
|
6
|
+
classOverlay?: ClassType;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
to?: string;
|
|
9
|
+
theme?: ThemeColor;
|
|
10
|
+
variant?: 'outlined' | 'flat' | 'text';
|
|
11
|
+
textWrap?: boolean;
|
|
12
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
noneFocusLine?: boolean;
|
|
15
|
+
wrap?: boolean;
|
|
16
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
17
|
+
}
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
21
|
+
el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
blur: (e: {
|
|
24
|
+
elm: HTMLElement;
|
|
25
|
+
id: string;
|
|
26
|
+
}) => any;
|
|
27
|
+
click: (e: Event) => any;
|
|
28
|
+
focus: (e: {
|
|
29
|
+
elm: HTMLElement;
|
|
30
|
+
id: string;
|
|
31
|
+
}) => any;
|
|
32
|
+
id: (id: string) => any;
|
|
33
|
+
ref: (element: HTMLElement) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
35
|
+
onBlur?: ((e: {
|
|
36
|
+
elm: HTMLElement;
|
|
37
|
+
id: string;
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
onClick?: ((e: Event) => any) | undefined;
|
|
40
|
+
onFocus?: ((e: {
|
|
41
|
+
elm: HTMLElement;
|
|
42
|
+
id: string;
|
|
43
|
+
}) => any) | undefined;
|
|
44
|
+
onId?: ((id: string) => any) | undefined;
|
|
45
|
+
onRef?: ((element: HTMLElement) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
theme: ThemeColor;
|
|
48
|
+
size: "xs" | "s" | "m" | "l" | "xl";
|
|
49
|
+
variant: "outlined" | "flat" | "text";
|
|
50
|
+
to: string;
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
loading: boolean;
|
|
53
|
+
class: ClassType;
|
|
54
|
+
textAlign: "left" | "center" | "right";
|
|
55
|
+
wrap: boolean;
|
|
56
|
+
classInner: ClassType;
|
|
57
|
+
classOverlay: ClassType;
|
|
58
|
+
textWrap: boolean;
|
|
59
|
+
noneFocusLine: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
61
|
+
default?: (props: {}) => any;
|
|
62
|
+
} & {
|
|
63
|
+
default?: (props: {}) => any;
|
|
64
|
+
}>;
|
|
65
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -43,10 +43,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
43
43
|
"onUpdate:data"?: ((value: boolean) => any) | undefined;
|
|
44
44
|
"onValue-change"?: ((after: boolean, before: boolean | null) => any) | undefined;
|
|
45
45
|
}>, {
|
|
46
|
+
warn: string;
|
|
46
47
|
size: "s" | "m" | "l";
|
|
47
48
|
image: boolean;
|
|
48
49
|
disabled: boolean;
|
|
49
|
-
warn: string;
|
|
50
50
|
imgUrl: string | null;
|
|
51
51
|
classImg: ClassType;
|
|
52
52
|
classImgTag: ClassType;
|
|
@@ -63,10 +63,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
63
63
|
"onValue-change"?: ((after: number[], before: number[], id: number) => any) | undefined;
|
|
64
64
|
}>, {
|
|
65
65
|
error: boolean;
|
|
66
|
+
warn: string;
|
|
66
67
|
size: "s" | "m" | "l";
|
|
67
68
|
image: boolean;
|
|
68
69
|
disabled: boolean;
|
|
69
|
-
warn: string;
|
|
70
70
|
class: ClassType;
|
|
71
71
|
classImg: ClassType;
|
|
72
72
|
classImgTag: ClassType;
|
|
@@ -75,10 +75,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
75
75
|
"onReset-piceker-func"?: ((func: any) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
77
|
error: boolean;
|
|
78
|
-
size: "s" | "m" | "l";
|
|
79
|
-
disabled: boolean;
|
|
80
78
|
warn: string;
|
|
81
79
|
theme: ThemeColor;
|
|
80
|
+
size: "s" | "m" | "l";
|
|
81
|
+
disabled: boolean;
|
|
82
82
|
class: ClassType;
|
|
83
83
|
textAlign: "left" | "center" | "right";
|
|
84
84
|
diff: string | null;
|
|
@@ -61,9 +61,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
61
61
|
change: boolean;
|
|
62
62
|
error: boolean;
|
|
63
63
|
focus: boolean;
|
|
64
|
+
warn: string;
|
|
64
65
|
size: "s" | "m" | "l";
|
|
65
66
|
disabled: boolean;
|
|
66
|
-
warn: string;
|
|
67
67
|
class: ClassType;
|
|
68
68
|
label: MultiLang;
|
|
69
69
|
warnTimeOut: number;
|
|
@@ -241,7 +241,7 @@ const content = {
|
|
|
241
241
|
bodyLock: false
|
|
242
242
|
};
|
|
243
243
|
const uiBase = [
|
|
244
|
-
"bg-transparent",
|
|
244
|
+
"bg-transparent hover:bg-transparent",
|
|
245
245
|
"max-w-full text-left",
|
|
246
246
|
"focus-visible:outline-none focus:outline-none ring-0 focus:ring-0",
|
|
247
247
|
"py-0 pr-[10px]",
|
|
@@ -420,7 +420,7 @@ watch(computedActivate, (value) => {
|
|
|
420
420
|
trailing-icon=""
|
|
421
421
|
:ui="{
|
|
422
422
|
base: uiBase,
|
|
423
|
-
item: ['!bg-white focus:bg-white active:bg-white p-0']
|
|
423
|
+
item: ['!bg-white hover:!bg-white focus:bg-white active:bg-white p-0']
|
|
424
424
|
}"
|
|
425
425
|
:content="{
|
|
426
426
|
reference: inputFrameElm,
|
|
@@ -507,7 +507,7 @@ watch(computedActivate, (value) => {
|
|
|
507
507
|
trailing-icon=""
|
|
508
508
|
:ui="{
|
|
509
509
|
base: uiBase,
|
|
510
|
-
item: ['!bg-white focus:bg-white active:bg-white p-0']
|
|
510
|
+
item: ['!bg-white hover:!bg-white focus:bg-white active:bg-white p-0']
|
|
511
511
|
}"
|
|
512
512
|
:content="{
|
|
513
513
|
reference: inputFrameElm,
|
|
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
65
65
|
"onValue-change"?: ((after: string, before: string | null) => any) | undefined;
|
|
66
66
|
}>, {
|
|
67
67
|
error: boolean;
|
|
68
|
-
size: "s" | "m" | "l";
|
|
69
|
-
disabled: boolean;
|
|
70
68
|
warn: string;
|
|
69
|
+
size: "s" | "m" | "l";
|
|
71
70
|
lang: string;
|
|
71
|
+
disabled: boolean;
|
|
72
72
|
class: ClassType;
|
|
73
73
|
type: "email" | "number" | "password" | "tel" | "text" | "url";
|
|
74
74
|
textAlign: "left" | "center" | "right";
|
|
@@ -90,7 +90,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
90
90
|
autocomplete: string;
|
|
91
91
|
datalist: string[];
|
|
92
92
|
enterkeyhint: Enterkeyhint;
|
|
93
|
-
inputmode: "
|
|
93
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal";
|
|
94
94
|
inputSize: string | number;
|
|
95
95
|
placeholder: MultiLang;
|
|
96
96
|
pattern: string;
|
|
@@ -61,9 +61,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
61
61
|
"onValue-change"?: ((after: string, before: string | null) => any) | undefined;
|
|
62
62
|
}>, {
|
|
63
63
|
error: boolean;
|
|
64
|
+
warn: string;
|
|
64
65
|
size: "s" | "m" | "l";
|
|
65
66
|
disabled: boolean;
|
|
66
|
-
warn: string;
|
|
67
67
|
class: ClassType;
|
|
68
68
|
diff: string | null;
|
|
69
69
|
tabindex: string;
|
|
@@ -77,10 +77,10 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
77
77
|
"onValue-change"?: ((after: number | null, before: number | null) => any) | undefined;
|
|
78
78
|
}>, {
|
|
79
79
|
error: boolean;
|
|
80
|
+
warn: string;
|
|
80
81
|
size: "s" | "m" | "l";
|
|
81
82
|
disabled: boolean;
|
|
82
83
|
step: number;
|
|
83
|
-
warn: string;
|
|
84
84
|
class: ClassType;
|
|
85
85
|
textAlign: "left" | "center" | "right";
|
|
86
86
|
diff: number | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ClassType } from '../../utils/class-style.js';
|
|
2
|
+
import { type ThemeColor } from '../../utils/theme.js';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: ClassType;
|
|
5
|
+
variant?: 'header' | 'body' | 'footer';
|
|
6
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
7
|
+
accordion?: boolean | undefined;
|
|
8
|
+
theme?: ThemeColor | undefined;
|
|
9
|
+
scroll?: boolean;
|
|
10
|
+
open?: boolean | undefined;
|
|
11
|
+
cross?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
toggle: () => any;
|
|
17
|
+
ref: (e: HTMLElement) => any;
|
|
18
|
+
"update:open": (value: boolean) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
+
onToggle?: (() => any) | undefined;
|
|
21
|
+
onRef?: ((e: HTMLElement) => any) | undefined;
|
|
22
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
scroll: boolean;
|
|
25
|
+
theme: ThemeColor;
|
|
26
|
+
size: "xs" | "s" | "m" | "l" | "xl";
|
|
27
|
+
variant: "header" | "body" | "footer";
|
|
28
|
+
class: ClassType;
|
|
29
|
+
open: boolean;
|
|
30
|
+
accordion: boolean;
|
|
31
|
+
cross: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
33
|
+
default?: (props: {}) => any;
|
|
34
|
+
} & {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -8,8 +8,8 @@ interface Props {
|
|
|
8
8
|
class?: ClassType;
|
|
9
9
|
}
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
-
size: number;
|
|
12
11
|
theme: ThemeColor;
|
|
12
|
+
size: number;
|
|
13
13
|
class: ClassType;
|
|
14
14
|
span1: number;
|
|
15
15
|
span2: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useHsScrollLockPinia: import("pinia").StoreDefinition<"HsScrollLockPinia", Pick<{
|
|
2
2
|
active: import("vue").Ref<boolean, boolean>;
|
|
3
3
|
key: import("vue").Ref<string, string>;
|
|
4
|
-
}, "
|
|
4
|
+
}, "key" | "active">, Pick<{
|
|
5
5
|
active: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
key: import("vue").Ref<string, string>;
|
|
7
7
|
}, never>, Pick<{
|
|
@@ -36,7 +36,7 @@ export const InsertComma = (num, digits = 0, nullText = "0", comma = ",") => {
|
|
|
36
36
|
const numString = String(num).replace(/,/g, "");
|
|
37
37
|
const delimitExp = /(\d)(?=(\d{3})+$)/g;
|
|
38
38
|
const decimalDelimitExp = /(\d)(?=(\d{3})+(\.\d+))/g;
|
|
39
|
-
let ret
|
|
39
|
+
let ret;
|
|
40
40
|
if (numString.includes(".")) {
|
|
41
41
|
ret = numString.replace(decimalDelimitExp, "$1" + comma);
|
|
42
42
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-hs-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "This repository is dedicated to the ongoing migration of **nuxt-hs-ui** to **Nuxt 4**",
|
|
5
5
|
"repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui-next",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"volta": {
|
|
40
|
-
"node": "22.
|
|
41
|
-
"npm": "10.9.
|
|
40
|
+
"node": "22.22.2",
|
|
41
|
+
"npm": "10.9.7"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prepack": "nuxt-module-build build --failOnWarn=false",
|
|
@@ -46,50 +46,53 @@
|
|
|
46
46
|
"dev:build": "nuxi build playground",
|
|
47
47
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
48
48
|
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
49
|
+
"release-nologen": "npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
|
|
50
|
+
"release-beta": "npm run lint && npm run test && npm run prepack && npm publish --tag beta && git push --follow-tags",
|
|
49
51
|
"lint": "eslint .",
|
|
50
52
|
"test": "vitest run",
|
|
51
53
|
"test:watch": "vitest watch",
|
|
52
54
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
53
55
|
},
|
|
54
56
|
"peerDependencies": {
|
|
55
|
-
"@vueuse/nuxt": "^
|
|
57
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
56
58
|
"sass-embedded": "^1.89.2"
|
|
57
59
|
},
|
|
58
60
|
"dependencies": {
|
|
59
|
-
"@nuxt/kit": "^4.
|
|
61
|
+
"@nuxt/kit": "^4.4.8",
|
|
60
62
|
"@pinia/nuxt": "^0.11.3",
|
|
61
|
-
"@vueuse/core": "^14.
|
|
62
|
-
"@vueuse/integrations": "^14.
|
|
63
|
+
"@vueuse/core": "^14.3.0",
|
|
64
|
+
"@vueuse/integrations": "^14.3.0",
|
|
65
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
63
66
|
"bignumber.js": "^9.3.1",
|
|
64
67
|
"body-scroll-lock": "^4.0.0-beta.0",
|
|
65
|
-
"dayjs": "^1.11.
|
|
68
|
+
"dayjs": "^1.11.21",
|
|
66
69
|
"flatpickr": "^4.6.13",
|
|
67
70
|
"focus-trap": "^7.6.6",
|
|
68
71
|
"pinia": "^3.0.4",
|
|
69
72
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
70
|
-
"tabulator-tables": "^6.
|
|
73
|
+
"tabulator-tables": "^6.4.0",
|
|
71
74
|
"tailwind-merge": "^3.4.0",
|
|
72
75
|
"tailwind-variants": "^3.2.2",
|
|
73
76
|
"tailwindcss": "^4.1.18",
|
|
74
77
|
"vue-select": "^4.0.0-beta.6"
|
|
75
78
|
},
|
|
76
79
|
"devDependencies": {
|
|
77
|
-
"@nuxt/devtools": "^3.
|
|
78
|
-
"@nuxt/eslint": "^1.
|
|
79
|
-
"@nuxt/eslint-config": "^1.
|
|
80
|
+
"@nuxt/devtools": "^3.2.4",
|
|
81
|
+
"@nuxt/eslint": "^1.16.0",
|
|
82
|
+
"@nuxt/eslint-config": "^1.16.0",
|
|
80
83
|
"@nuxt/image": "^2.0.0",
|
|
81
84
|
"@nuxt/module-builder": "^1.0.2",
|
|
82
|
-
"@nuxt/schema": "^4.
|
|
85
|
+
"@nuxt/schema": "^4.4.8",
|
|
83
86
|
"@nuxt/test-utils": "^3.21.0",
|
|
84
|
-
"@nuxt/ui": "^4.2
|
|
87
|
+
"@nuxt/ui": "^4.8.2",
|
|
85
88
|
"@types/body-scroll-lock": "^3.1.2",
|
|
86
89
|
"@types/node": "latest",
|
|
87
|
-
"@types/tabulator-tables": "^6.3.
|
|
90
|
+
"@types/tabulator-tables": "^6.3.4",
|
|
88
91
|
"@types/vue-select": "^3.16.8",
|
|
89
92
|
"changelogen": "^0.6.2",
|
|
90
|
-
"eslint": "^
|
|
91
|
-
"npm": "^11.
|
|
92
|
-
"nuxt": "^4.
|
|
93
|
+
"eslint": "^10.5.0",
|
|
94
|
+
"npm": "^11.17.0",
|
|
95
|
+
"nuxt": "^4.4.8",
|
|
93
96
|
"sass": "^1.97.0",
|
|
94
97
|
"typescript": "~5.9.3",
|
|
95
98
|
"vitest": "^3.2.4",
|