nuxt-hs-ui 2.12.7 → 4.0.0
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 +202 -14
- package/dist/module.d.mts +3 -4
- package/dist/module.json +9 -6
- package/dist/module.mjs +109 -99
- package/dist/runtime/assets/flatpickr-dark.css +1 -1
- package/dist/runtime/assets/main.css +1 -0
- package/dist/runtime/assets/tabulator-custom.css +1 -1
- package/dist/runtime/components/form/_select/hidden-item-toggle.vue +28 -0
- package/dist/runtime/components/form/_select/hidden-item-toggle.vue.d.ts +10 -0
- package/dist/runtime/components/form/_select/item-container.vue +63 -0
- package/dist/runtime/components/form/_select/item-container.vue.d.ts +19 -0
- package/dist/runtime/components/form/_select/item-label.vue +31 -0
- package/dist/runtime/components/form/_select/item-label.vue.d.ts +13 -0
- package/dist/runtime/components/form/_select/item-row.vue +62 -0
- package/dist/runtime/components/form/_select/item-row.vue.d.ts +34 -0
- package/dist/runtime/components/form/btn-line-loading.vue +62 -81
- package/dist/runtime/components/form/btn-line-loading.vue.d.ts +14 -0
- package/dist/runtime/components/form/btn.vue +411 -494
- package/dist/runtime/components/form/btn.vue.d.ts +0 -0
- package/dist/runtime/components/form/check-box.vue +200 -315
- package/dist/runtime/components/form/check-box.vue.d.ts +71 -0
- package/dist/runtime/components/form/check-list.vue +234 -364
- package/dist/runtime/components/form/check-list.vue.d.ts +99 -0
- package/dist/runtime/components/form/combo-box.vue +340 -0
- package/dist/runtime/components/form/combo-box.vue.d.ts +69 -0
- package/dist/runtime/components/form/datepicker.vue +717 -883
- package/dist/runtime/components/form/datepicker.vue.d.ts +122 -0
- package/dist/runtime/components/form/input-frame.vue +174 -258
- package/dist/runtime/components/form/input-frame.vue.d.ts +88 -0
- package/dist/runtime/components/form/radio.vue +451 -614
- package/dist/runtime/components/form/radio.vue.d.ts +62 -0
- package/dist/runtime/components/form/select-img-icon.vue +38 -53
- package/dist/runtime/components/form/select-img-icon.vue.d.ts +15 -0
- package/dist/runtime/components/form/select.vue +733 -579
- package/dist/runtime/components/form/select.vue.d.ts +63 -0
- package/dist/runtime/components/form/text-box.vue +266 -365
- package/dist/runtime/components/form/text-box.vue.d.ts +105 -0
- package/dist/runtime/components/form/textarea.vue +338 -421
- package/dist/runtime/components/form/textarea.vue.d.ts +98 -0
- package/dist/runtime/components/form/value-box.vue +512 -641
- package/dist/runtime/components/form/value-box.vue.d.ts +128 -0
- package/dist/runtime/components/interactive/alert.vue +49 -113
- package/dist/runtime/components/interactive/alert.vue.d.ts +30 -0
- package/dist/runtime/components/interactive/block-loading.vue +91 -119
- package/dist/runtime/components/interactive/block-loading.vue.d.ts +22 -0
- package/dist/runtime/components/interactive/dialog.vue +252 -407
- package/dist/runtime/components/interactive/dialog.vue.d.ts +3 -0
- package/dist/runtime/components/interactive/modal-bg.vue +72 -82
- package/dist/runtime/components/interactive/modal-bg.vue.d.ts +11 -0
- package/dist/runtime/components/interactive/modal.vue +121 -169
- package/dist/runtime/components/interactive/modal.vue.d.ts +38 -0
- package/dist/runtime/components/interactive/toast.vue +164 -206
- package/dist/runtime/components/interactive/toast.vue.d.ts +3 -0
- package/dist/runtime/components/interactive/window-loader.vue +61 -84
- package/dist/runtime/components/interactive/window-loader.vue.d.ts +3 -0
- package/dist/runtime/components/layout/accordion-down.vue +72 -0
- package/dist/runtime/components/layout/accordion-down.vue.d.ts +26 -0
- package/dist/runtime/components/layout/accordion.vue +47 -78
- package/dist/runtime/components/layout/accordion.vue.d.ts +22 -0
- package/dist/runtime/components/layout/aspect-box.vue +29 -58
- package/dist/runtime/components/layout/aspect-box.vue.d.ts +29 -0
- package/dist/runtime/components/layout/card-item.vue +148 -193
- package/dist/runtime/components/layout/card-item.vue.d.ts +0 -0
- package/dist/runtime/components/layout/card.vue +27 -42
- package/dist/runtime/components/layout/card.vue.d.ts +23 -0
- package/dist/runtime/components/layout/container.vue +25 -40
- package/dist/runtime/components/layout/container.vue.d.ts +35 -0
- package/dist/runtime/components/layout/divider-h.vue +30 -50
- package/dist/runtime/components/layout/divider-h.vue.d.ts +18 -0
- package/dist/runtime/components/misc/breadcrumb.vue +47 -95
- package/dist/runtime/components/misc/breadcrumb.vue.d.ts +22 -0
- package/dist/runtime/components/misc/tabulator.vue +122 -190
- package/dist/runtime/components/misc/tabulator.vue.d.ts +28 -0
- package/dist/runtime/components/misc/view-name-display.vue +53 -68
- package/dist/runtime/components/misc/view-name-display.vue.d.ts +14 -0
- package/dist/runtime/components/test.vue +13 -0
- package/dist/runtime/components/test.vue.d.ts +3 -0
- package/dist/runtime/composables/test.d.ts +8 -0
- package/dist/runtime/composables/test.js +12 -0
- package/dist/runtime/composables/use-hs-dialog.d.ts +3 -20
- package/dist/runtime/composables/use-hs-dialog.js +3 -9
- package/dist/runtime/composables/use-hs-is-mobile.d.ts +8 -2
- package/dist/runtime/composables/use-hs-is-mobile.js +43 -25
- package/dist/runtime/composables/use-hs-misc.d.ts +8 -38
- package/dist/runtime/composables/use-hs-misc.js +9 -61
- package/dist/runtime/composables/use-hs-modal.js +1 -3
- package/dist/runtime/composables/use-hs-multi-lang.d.ts +23 -40
- package/dist/runtime/composables/use-hs-multi-lang.js +30 -74
- package/dist/runtime/composables/use-hs-scroll-lock.d.ts +1 -1
- package/dist/runtime/composables/use-hs-scroll-lock.js +2 -1
- package/dist/runtime/composables/use-hs-toast.d.ts +2 -2
- package/dist/runtime/composables/use-hs-toast.js +12 -4
- package/dist/runtime/composables/use-pinia.d.ts +1 -0
- package/dist/runtime/composables/use-pinia.js +2 -0
- package/dist/runtime/plugin.d.ts +2 -0
- package/dist/runtime/plugin.js +4 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/types/dialog.d.ts +11 -20
- package/dist/runtime/types/dialog.js +2 -1
- package/dist/runtime/types/flatpickr/default.js +2 -23
- package/dist/runtime/types/flatpickr/ja.js +3 -37
- package/dist/runtime/types/toast.d.ts +1 -1
- package/dist/runtime/utils/dayjs.d.ts +8 -6
- package/dist/runtime/utils/dayjs.js +12 -5
- package/dist/runtime/utils/modal.d.ts +9 -28
- package/dist/runtime/utils/modal.js +7 -36
- package/dist/runtime/utils/multi-lang-object.d.ts +2 -2
- package/dist/runtime/utils/multi-lang-object.js +1 -5
- package/dist/runtime/utils/multi-lang.js +12 -22
- package/dist/runtime/utils/object.js +1 -1
- package/dist/runtime/utils/select-item.d.ts +3 -1
- package/dist/runtime/utils/stop-watch.js +6 -4
- package/dist/runtime/utils/string.js +4 -4
- package/dist/runtime/utils/tabulator.d.ts +1 -42
- package/dist/runtime/utils/tabulator.js +2 -99
- package/dist/runtime/utils/theme.d.ts +20 -20
- package/dist/runtime/utils/theme.js +180 -30
- package/dist/runtime/utils/tv.d.ts +1 -101
- package/dist/runtime/utils/tv.js +0 -22
- package/dist/types.d.mts +3 -1
- package/package.json +61 -119
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -16
- package/dist/runtime/assets/vue-select.css +0 -1
- package/dist/runtime/components/misc/view-name-display-target.vue +0 -39
- package/dist/runtime/plugin/v-select.d.ts +0 -2
- package/dist/runtime/plugin/v-select.js +0 -5
- package/dist/runtime/style.css +0 -22
- package/dist/runtime/tailwind.css +0 -78
- package/dist/runtime/types/app.config.d.ts +0 -5
- package/dist/types.d.ts +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type ClassType } from '../../utils/class-style.js';
|
|
2
|
+
import type { SelectItem } from '../../utils/select-item.js';
|
|
3
|
+
import type { MultiLang } from '../../utils/multi-lang.js';
|
|
4
|
+
declare const __VLS_export: <IdType extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<{
|
|
6
|
+
list: SelectItem<IdType>[];
|
|
7
|
+
order?: boolean;
|
|
8
|
+
image?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
nullText?: MultiLang;
|
|
11
|
+
classCol?: ClassType;
|
|
12
|
+
classRow?: ClassType;
|
|
13
|
+
classImg?: ClassType;
|
|
14
|
+
classImgTag?: ClassType;
|
|
15
|
+
nullable?: boolean;
|
|
16
|
+
data: IdType | null;
|
|
17
|
+
diff?: IdType | null | undefined;
|
|
18
|
+
tabindex?: string | undefined;
|
|
19
|
+
class?: ClassType;
|
|
20
|
+
classHeader?: ClassType;
|
|
21
|
+
classInput?: ClassType;
|
|
22
|
+
focusColor?: string;
|
|
23
|
+
changeColor?: string;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
errorColor?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
disabledColor?: string;
|
|
28
|
+
readonly?: boolean;
|
|
29
|
+
headerless?: boolean;
|
|
30
|
+
label?: MultiLang;
|
|
31
|
+
require?: boolean;
|
|
32
|
+
requireText?: MultiLang;
|
|
33
|
+
warn?: string;
|
|
34
|
+
warnTimeOut?: number;
|
|
35
|
+
size?: "s" | "m" | "l";
|
|
36
|
+
} & __VLS_EmitsToProps<__VLS_NormalizeEmits<((evt: "blur", elm: HTMLElement) => void) & ((evt: "focus", elm: HTMLElement) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "keyup", event: KeyboardEvent) => void) & ((evt: "ref", element: HTMLElement) => void) & ((evt: "update:data", value: (IdType extends string ? string : number) | null) => void) & ((evt: "value-change", after: (IdType extends string ? string : number) | null, before: (IdType extends string ? string : number) | null) => void)>>> & import("vue").PublicProps & (typeof globalThis extends {
|
|
37
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
38
|
+
} ? P : {});
|
|
39
|
+
expose: (exposed: {}) => void;
|
|
40
|
+
attrs: any;
|
|
41
|
+
slots: {
|
|
42
|
+
default(props: {
|
|
43
|
+
msg: string;
|
|
44
|
+
}): any;
|
|
45
|
+
overlay?(): any;
|
|
46
|
+
'right-icons'?(): any;
|
|
47
|
+
'left-icons'?(): any;
|
|
48
|
+
'label-prepend'?(): any;
|
|
49
|
+
'label-append'?(): any;
|
|
50
|
+
'header-right'?(): any;
|
|
51
|
+
};
|
|
52
|
+
emit: ((evt: "blur", elm: HTMLElement) => void) & ((evt: "focus", elm: HTMLElement) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "keyup", event: KeyboardEvent) => void) & ((evt: "ref", element: HTMLElement) => void) & ((evt: "update:data", value: (IdType extends string ? string : number) | null) => void) & ((evt: "value-change", after: (IdType extends string ? string : number) | null, before: (IdType extends string ? string : number) | null) => void);
|
|
53
|
+
}>) => import("vue").VNode & {
|
|
54
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
|
+
};
|
|
56
|
+
declare const _default: typeof __VLS_export;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} : {
|
|
61
|
+
[K in keyof T as K]: T[K];
|
|
62
|
+
}) & {};
|
|
@@ -1,53 +1,38 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"object-contain w-full h-full",
|
|
40
|
-
ClassTypeToString(props.classImgTag)
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<template>
|
|
46
|
-
<div class="flex-cc border border-gray-300 me-[4px]" :class="imgClass">
|
|
47
|
-
<img v-if="props.imgUrl" :src="props.imgUrl" alt="" :class="imgTagClass" />
|
|
48
|
-
<div v-else class="text-center leading-[1em]" style="transform: scale(0.5)">
|
|
49
|
-
<div>NO</div>
|
|
50
|
-
<div>IMG</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
import { computed } from "#imports";
|
|
4
|
+
import { ClassTypeToString } from "../../utils/class-style";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
imgUrl: { type: [String, null], required: false, default: null },
|
|
7
|
+
classImg: { type: [String, Object, Array], required: false, default: "" },
|
|
8
|
+
classImgTag: { type: [String, Object, Array], required: false, default: "" },
|
|
9
|
+
imgMode: { type: String, required: false, default: "contain" }
|
|
10
|
+
});
|
|
11
|
+
const imgClass = computed(() => {
|
|
12
|
+
return twMerge(
|
|
13
|
+
//
|
|
14
|
+
"border border-gray-700",
|
|
15
|
+
"h-[18px] w-[36px]",
|
|
16
|
+
ClassTypeToString(props.classImg)
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
const imgTagClass = computed(() => {
|
|
20
|
+
return twMerge(
|
|
21
|
+
"object-contain w-full h-full",
|
|
22
|
+
//
|
|
23
|
+
props.imgMode === "contain" ? "object-contain" : "",
|
|
24
|
+
props.imgMode === "cover" ? "object-cover" : "",
|
|
25
|
+
ClassTypeToString(props.classImgTag)
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div class="flex items-center justify-center border border-gray-300 me-1" :class="imgClass">
|
|
32
|
+
<img v-if="props.imgUrl" :src="props.imgUrl" alt="" :class="imgTagClass" />
|
|
33
|
+
<div v-else class="text-center leading-[1em]" style="transform: scale(0.5)">
|
|
34
|
+
<div>NO</div>
|
|
35
|
+
<div>IMG</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ClassType } from '../../utils/class-style.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
imgUrl?: string | null;
|
|
4
|
+
classImg?: ClassType;
|
|
5
|
+
classImgTag?: ClassType;
|
|
6
|
+
imgMode?: 'cover' | 'contain';
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
imgUrl: string | null;
|
|
10
|
+
classImg: ClassType;
|
|
11
|
+
classImgTag: ClassType;
|
|
12
|
+
imgMode: "cover" | "contain";
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|