nuxt-hs-ui 2.12.6 → 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.
Files changed (131) hide show
  1. package/README.md +202 -14
  2. package/dist/module.d.mts +3 -4
  3. package/dist/module.json +9 -6
  4. package/dist/module.mjs +109 -99
  5. package/dist/runtime/assets/flatpickr-dark.css +1 -1
  6. package/dist/runtime/assets/main.css +1 -0
  7. package/dist/runtime/assets/tabulator-custom.css +1 -1
  8. package/dist/runtime/components/form/_select/hidden-item-toggle.vue +28 -0
  9. package/dist/runtime/components/form/_select/hidden-item-toggle.vue.d.ts +10 -0
  10. package/dist/runtime/components/form/_select/item-container.vue +63 -0
  11. package/dist/runtime/components/form/_select/item-container.vue.d.ts +19 -0
  12. package/dist/runtime/components/form/_select/item-label.vue +31 -0
  13. package/dist/runtime/components/form/_select/item-label.vue.d.ts +13 -0
  14. package/dist/runtime/components/form/_select/item-row.vue +62 -0
  15. package/dist/runtime/components/form/_select/item-row.vue.d.ts +34 -0
  16. package/dist/runtime/components/form/btn-line-loading.vue +62 -81
  17. package/dist/runtime/components/form/btn-line-loading.vue.d.ts +14 -0
  18. package/dist/runtime/components/form/btn.vue +411 -494
  19. package/dist/runtime/components/form/btn.vue.d.ts +0 -0
  20. package/dist/runtime/components/form/check-box.vue +200 -315
  21. package/dist/runtime/components/form/check-box.vue.d.ts +71 -0
  22. package/dist/runtime/components/form/check-list.vue +234 -364
  23. package/dist/runtime/components/form/check-list.vue.d.ts +99 -0
  24. package/dist/runtime/components/form/combo-box.vue +340 -0
  25. package/dist/runtime/components/form/combo-box.vue.d.ts +69 -0
  26. package/dist/runtime/components/form/datepicker.vue +717 -883
  27. package/dist/runtime/components/form/datepicker.vue.d.ts +122 -0
  28. package/dist/runtime/components/form/input-frame.vue +174 -258
  29. package/dist/runtime/components/form/input-frame.vue.d.ts +88 -0
  30. package/dist/runtime/components/form/radio.vue +451 -614
  31. package/dist/runtime/components/form/radio.vue.d.ts +62 -0
  32. package/dist/runtime/components/form/select-img-icon.vue +38 -53
  33. package/dist/runtime/components/form/select-img-icon.vue.d.ts +15 -0
  34. package/dist/runtime/components/form/select.vue +733 -579
  35. package/dist/runtime/components/form/select.vue.d.ts +63 -0
  36. package/dist/runtime/components/form/text-box.vue +266 -365
  37. package/dist/runtime/components/form/text-box.vue.d.ts +105 -0
  38. package/dist/runtime/components/form/textarea.vue +338 -421
  39. package/dist/runtime/components/form/textarea.vue.d.ts +98 -0
  40. package/dist/runtime/components/form/value-box.vue +512 -641
  41. package/dist/runtime/components/form/value-box.vue.d.ts +128 -0
  42. package/dist/runtime/components/interactive/alert.vue +49 -113
  43. package/dist/runtime/components/interactive/alert.vue.d.ts +30 -0
  44. package/dist/runtime/components/interactive/block-loading.vue +91 -119
  45. package/dist/runtime/components/interactive/block-loading.vue.d.ts +22 -0
  46. package/dist/runtime/components/interactive/dialog.vue +252 -407
  47. package/dist/runtime/components/interactive/dialog.vue.d.ts +3 -0
  48. package/dist/runtime/components/interactive/modal-bg.vue +72 -82
  49. package/dist/runtime/components/interactive/modal-bg.vue.d.ts +11 -0
  50. package/dist/runtime/components/interactive/modal.vue +121 -169
  51. package/dist/runtime/components/interactive/modal.vue.d.ts +38 -0
  52. package/dist/runtime/components/interactive/toast.vue +164 -206
  53. package/dist/runtime/components/interactive/toast.vue.d.ts +3 -0
  54. package/dist/runtime/components/interactive/window-loader.vue +61 -84
  55. package/dist/runtime/components/interactive/window-loader.vue.d.ts +3 -0
  56. package/dist/runtime/components/layout/accordion-down.vue +72 -0
  57. package/dist/runtime/components/layout/accordion-down.vue.d.ts +26 -0
  58. package/dist/runtime/components/layout/accordion.vue +47 -78
  59. package/dist/runtime/components/layout/accordion.vue.d.ts +22 -0
  60. package/dist/runtime/components/layout/aspect-box.vue +29 -58
  61. package/dist/runtime/components/layout/aspect-box.vue.d.ts +29 -0
  62. package/dist/runtime/components/layout/card-item.vue +148 -193
  63. package/dist/runtime/components/layout/card-item.vue.d.ts +0 -0
  64. package/dist/runtime/components/layout/card.vue +27 -42
  65. package/dist/runtime/components/layout/card.vue.d.ts +23 -0
  66. package/dist/runtime/components/layout/container.vue +25 -40
  67. package/dist/runtime/components/layout/container.vue.d.ts +35 -0
  68. package/dist/runtime/components/layout/divider-h.vue +30 -50
  69. package/dist/runtime/components/layout/divider-h.vue.d.ts +18 -0
  70. package/dist/runtime/components/misc/breadcrumb.vue +47 -95
  71. package/dist/runtime/components/misc/breadcrumb.vue.d.ts +22 -0
  72. package/dist/runtime/components/misc/tabulator.vue +122 -190
  73. package/dist/runtime/components/misc/tabulator.vue.d.ts +28 -0
  74. package/dist/runtime/components/misc/view-name-display.vue +53 -68
  75. package/dist/runtime/components/misc/view-name-display.vue.d.ts +14 -0
  76. package/dist/runtime/components/test.vue +13 -0
  77. package/dist/runtime/components/test.vue.d.ts +3 -0
  78. package/dist/runtime/composables/test.d.ts +8 -0
  79. package/dist/runtime/composables/test.js +12 -0
  80. package/dist/runtime/composables/use-hs-dialog.d.ts +3 -20
  81. package/dist/runtime/composables/use-hs-dialog.js +3 -9
  82. package/dist/runtime/composables/use-hs-is-mobile.d.ts +8 -2
  83. package/dist/runtime/composables/use-hs-is-mobile.js +43 -26
  84. package/dist/runtime/composables/use-hs-misc.d.ts +8 -38
  85. package/dist/runtime/composables/use-hs-misc.js +9 -61
  86. package/dist/runtime/composables/use-hs-modal.js +1 -3
  87. package/dist/runtime/composables/use-hs-multi-lang.d.ts +23 -40
  88. package/dist/runtime/composables/use-hs-multi-lang.js +30 -74
  89. package/dist/runtime/composables/use-hs-scroll-lock.d.ts +1 -1
  90. package/dist/runtime/composables/use-hs-scroll-lock.js +2 -1
  91. package/dist/runtime/composables/use-hs-toast.d.ts +2 -2
  92. package/dist/runtime/composables/use-hs-toast.js +12 -4
  93. package/dist/runtime/composables/use-pinia.d.ts +1 -0
  94. package/dist/runtime/composables/use-pinia.js +2 -0
  95. package/dist/runtime/plugin.d.ts +2 -0
  96. package/dist/runtime/plugin.js +4 -0
  97. package/dist/runtime/server/tsconfig.json +3 -3
  98. package/dist/runtime/types/dialog.d.ts +11 -20
  99. package/dist/runtime/types/dialog.js +2 -1
  100. package/dist/runtime/types/flatpickr/default.js +2 -23
  101. package/dist/runtime/types/flatpickr/ja.js +3 -37
  102. package/dist/runtime/types/toast.d.ts +1 -1
  103. package/dist/runtime/utils/dayjs.d.ts +8 -6
  104. package/dist/runtime/utils/dayjs.js +12 -5
  105. package/dist/runtime/utils/modal.d.ts +9 -28
  106. package/dist/runtime/utils/modal.js +7 -36
  107. package/dist/runtime/utils/multi-lang-object.d.ts +2 -2
  108. package/dist/runtime/utils/multi-lang-object.js +1 -5
  109. package/dist/runtime/utils/multi-lang.js +12 -22
  110. package/dist/runtime/utils/object.js +1 -1
  111. package/dist/runtime/utils/select-item.d.ts +3 -1
  112. package/dist/runtime/utils/stop-watch.js +6 -4
  113. package/dist/runtime/utils/string.js +4 -4
  114. package/dist/runtime/utils/tabulator.d.ts +1 -42
  115. package/dist/runtime/utils/tabulator.js +2 -99
  116. package/dist/runtime/utils/theme.d.ts +20 -20
  117. package/dist/runtime/utils/theme.js +180 -30
  118. package/dist/runtime/utils/tv.d.ts +1 -101
  119. package/dist/runtime/utils/tv.js +0 -22
  120. package/dist/types.d.mts +3 -1
  121. package/package.json +61 -119
  122. package/dist/module.cjs +0 -5
  123. package/dist/module.d.ts +0 -16
  124. package/dist/runtime/assets/vue-select.css +0 -1
  125. package/dist/runtime/components/misc/view-name-display-target.vue +0 -39
  126. package/dist/runtime/plugin/v-select.d.ts +0 -2
  127. package/dist/runtime/plugin/v-select.js +0 -5
  128. package/dist/runtime/style.css +0 -22
  129. package/dist/runtime/tailwind.css +0 -78
  130. package/dist/runtime/types/app.config.d.ts +0 -5
  131. 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 lang="ts">
2
- /* ----------------------------------------------------------------------------
3
- // src\runtime\components\form\select-img-icon.vue
4
- // ----------------------------------------------------------------------------
5
- // SelectImgIcon
6
- // SelectImgIconSelectImgIcon
7
- ----------------------------------------------------------------------------- */
8
-
9
- // [ tailwind ]
10
- import { twMerge } from "tailwind-merge";
11
- // [ NUXT ]
12
- import { computed } from "#imports";
13
- // [ utils ]
14
- import { type ClassType, ClassTypeToString } from "../../utils/class-style";
15
- // ----------------------------------------------------------------------------
16
- type Props = {
17
- imgUrl?: string | null;
18
- classImg?: ClassType;
19
- classImgTag?: ClassType;
20
- };
21
-
22
- const props = withDefaults(defineProps<Props>(), {
23
- imgUrl: null,
24
- classImg: "",
25
- classImgTag: "",
26
- });
27
-
28
- const imgClass = computed(() => {
29
- return twMerge(
30
- //
31
- "border border-gray-700",
32
- "h-[18px] w-[36px]",
33
- ClassTypeToString(props.classImg)
34
- );
35
- });
36
-
37
- const imgTagClass = computed(() => {
38
- return twMerge(
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;