nuxt-hs-ui 4.0.5 → 4.0.7

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 CHANGED
@@ -7,7 +7,7 @@
7
7
  "compatibility": {
8
8
  "nuxt": ">=4.0.0"
9
9
  },
10
- "version": "4.0.5",
10
+ "version": "4.0.7",
11
11
  "builder": {
12
12
  "@nuxt/module-builder": "1.0.2",
13
13
  "unbuild": "3.6.1"
@@ -6,12 +6,13 @@ import { useHsPinia } from "../../../composables/use-pinia";
6
6
  import { useHsMultiLang } from "../../../composables/use-hs-multi-lang";
7
7
  const props = defineProps({
8
8
  item: { type: Object, required: true },
9
- value: { type: [String, Number, null], required: false },
9
+ value: { type: [String, Number, null], required: false, default: null },
10
+ overflow: { type: Boolean, required: false, default: true },
10
11
  img: { type: Boolean, required: false },
11
12
  activated: { type: Boolean, required: true },
12
- classImg: { type: [String, Object, Array], required: false },
13
- classImgTag: { type: [String, Object, Array], required: false },
14
- imgMode: { type: String, required: false },
13
+ classImg: { type: [String, Object, Array], required: false, default: "" },
14
+ classImgTag: { type: [String, Object, Array], required: false, default: "" },
15
+ imgMode: { type: String, required: false, default: "contain" },
15
16
  disabled: { type: Boolean, required: false },
16
17
  readonly: { type: Boolean, required: false },
17
18
  type: { type: String, required: true }
@@ -41,7 +42,7 @@ const labels = computed(() => {
41
42
  v-if="props.type === 'display'"
42
43
  :key="item._key + 'label'"
43
44
  :item="item"
44
- overflow
45
+ :overflow="overflow"
45
46
  :disabled="props.disabled"
46
47
  :readonly="props.readonly"
47
48
  />
@@ -5,6 +5,7 @@ type Props = {
5
5
  _key: string;
6
6
  };
7
7
  value?: string | number | null;
8
+ overflow?: boolean;
8
9
  img?: boolean;
9
10
  activated: boolean;
10
11
  classImg?: ClassType;
@@ -14,6 +15,12 @@ type Props = {
14
15
  readonly?: boolean;
15
16
  type: 'display' | 'item';
16
17
  };
17
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ value: string | number | null;
20
+ classImg: ClassType;
21
+ classImgTag: ClassType;
22
+ imgMode: "cover" | "contain";
23
+ overflow: boolean;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
25
  declare const _default: typeof __VLS_export;
19
26
  export default _default;
@@ -241,7 +241,7 @@ const content = {
241
241
  bodyLock: false
242
242
  };
243
243
  const uiBase = [
244
- "bg-transparent hover: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]",
@@ -349,10 +349,10 @@ watch(computedActivate, (value) => {
349
349
  <template #overlay="{ focus, change }">
350
350
  <div
351
351
  v-if="props.diff !== void 0 && change"
352
- class="absolute inset-0 bg-red/30 transition-opacity flex items-center p-1 bg-dark/20"
352
+ class="absolute inset-0 bg-red/30 transition-opacity flex items-center p-1 bg-dark/20 overflow-hidden"
353
353
  :class="!focus && hsMisc.capsLockState ? 'opacity-100' : 'opacity-0 pointer-events-none select-none'"
354
354
  >
355
- <div class="flex" @mousedown.prevent @click.prevent>
355
+ <div class="flex items-center w-full h-full py-1" @mousedown.prevent @click.prevent>
356
356
  <Btn
357
357
  variant="outlined"
358
358
  theme="error"
@@ -363,7 +363,7 @@ watch(computedActivate, (value) => {
363
363
  >
364
364
  <i class="fa-solid fa-rotate-right"></i>
365
365
  </Btn>
366
- <div v-if="props.diff" class="px-1 truncate bg-white mx-1 flex items-center select-none" @click.stop>
366
+ <div v-if="props.diff" class="px-1 mx-1 flex-1 select-none truncate bg-white" @click.stop>
367
367
  {{ diffDisplayText }}
368
368
  </div>
369
369
  </div>
@@ -454,6 +454,7 @@ watch(computedActivate, (value) => {
454
454
  :img-mode="props.imgMode"
455
455
  :disabled="props.disabled"
456
456
  :readonly="props.readonly"
457
+ :overflow="false"
457
458
  type="display"
458
459
  />
459
460
  </template>
@@ -542,6 +543,7 @@ watch(computedActivate, (value) => {
542
543
  :img-mode="props.imgMode"
543
544
  :disabled="props.disabled"
544
545
  :readonly="props.readonly"
546
+ :overflow="false"
545
547
  type="display"
546
548
  />
547
549
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
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",
6
6
  "license": "MIT",