nuxt-hs-ui 4.0.6 → 4.0.8

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.6",
10
+ "version": "4.0.8",
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;
@@ -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>
@@ -419,6 +419,7 @@ watch(computedActivate, (value) => {
419
419
  :trailing="false"
420
420
  trailing-icon=""
421
421
  :ui="{
422
+ content: 'max-h-100',
422
423
  base: uiBase,
423
424
  item: ['!bg-white hover:!bg-white focus:bg-white active:bg-white p-0']
424
425
  }"
@@ -454,6 +455,7 @@ watch(computedActivate, (value) => {
454
455
  :img-mode="props.imgMode"
455
456
  :disabled="props.disabled"
456
457
  :readonly="props.readonly"
458
+ :overflow="false"
457
459
  type="display"
458
460
  />
459
461
  </template>
@@ -506,6 +508,7 @@ watch(computedActivate, (value) => {
506
508
  :trailing="false"
507
509
  trailing-icon=""
508
510
  :ui="{
511
+ content: 'max-h-100',
509
512
  base: uiBase,
510
513
  item: ['!bg-white hover:!bg-white focus:bg-white active:bg-white p-0']
511
514
  }"
@@ -542,6 +545,7 @@ watch(computedActivate, (value) => {
542
545
  :img-mode="props.imgMode"
543
546
  :disabled="props.disabled"
544
547
  :readonly="props.readonly"
548
+ :overflow="false"
545
549
  type="display"
546
550
  />
547
551
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
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",