pukaad-ui-lib 1.354.0 → 1.355.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.354.0",
4
+ "version": "1.355.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -48,10 +48,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  id: string;
49
49
  name: string;
50
50
  required: boolean;
51
- options: AutocompleteOption[] | string[] | number[];
52
- description: string;
53
51
  labelKey: string;
54
52
  placeholder: string;
53
+ options: AutocompleteOption[] | string[] | number[];
54
+ description: string;
55
55
  limit: number;
56
56
  disabledErrorMessage: boolean;
57
57
  disabledBorder: boolean;
@@ -48,10 +48,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  id: string;
49
49
  name: string;
50
50
  required: boolean;
51
- options: AutocompleteOption[] | string[] | number[];
52
- description: string;
53
51
  labelKey: string;
54
52
  placeholder: string;
53
+ options: AutocompleteOption[] | string[] | number[];
54
+ description: string;
55
55
  limit: number;
56
56
  disabledErrorMessage: boolean;
57
57
  disabledBorder: boolean;
@@ -3,14 +3,14 @@
3
3
  <div
4
4
  :class="[
5
5
  'flex gap-[8px]',
6
- props.column ? 'flex-col' : 'flex-wrap flex-row'
6
+ props.previewFullSize ? 'flex-col w-full' : props.column ? 'flex-col' : 'flex-wrap flex-row'
7
7
  ]"
8
8
  >
9
9
  <Draggable
10
10
  v-model="arrFiles"
11
11
  :class="[
12
12
  'flex gap-[8px]',
13
- props.column ? 'flex-col' : 'flex-wrap flex-row'
13
+ props.previewFullSize ? 'flex-col w-full' : props.column ? 'flex-col' : 'flex-wrap flex-row'
14
14
  ]"
15
15
  >
16
16
  <template #item="{ item, index }">
@@ -45,7 +45,17 @@
45
45
  v-else-if="!item.file || item.file?.type?.startsWith('image')"
46
46
  >
47
47
  <div :class="['relative', props.previewFullSize ? 'w-full' : 'shrink-0']">
48
+ <div
49
+ v-if="props.previewFullSize"
50
+ class="rounded-[4px] relative z-10 bg-cover bg-center"
51
+ :style="{
52
+ width: props.fullWidth ? '100%' : String(props.width).match(/^[0-9]+$/) ? `${props.width}px` : props.width,
53
+ height: props.fullHeight ? '100%' : String(props.height).match(/^[0-9]+$/) ? `${props.height}px` : props.height,
54
+ backgroundImage: `url(${item.url})`
55
+ }"
56
+ />
48
57
  <Image
58
+ v-else
49
59
  :width="previewWidth"
50
60
  :height="previewHeight"
51
61
  :src="item.url"
@@ -11,8 +11,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
11
  label: string;
12
12
  name: string;
13
13
  modelValue: LocalizedNameItem[];
14
- options: InputSelectItem[];
15
14
  placeholder: string;
15
+ options: InputSelectItem[];
16
16
  limit: number;
17
17
  showCounter: boolean;
18
18
  addLabel: string;
@@ -11,8 +11,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
11
  label: string;
12
12
  name: string;
13
13
  modelValue: LocalizedNameItem[];
14
- options: InputSelectItem[];
15
14
  placeholder: string;
15
+ options: InputSelectItem[];
16
16
  limit: number;
17
17
  showCounter: boolean;
18
18
  addLabel: string;
@@ -19,9 +19,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
19
19
  id: string;
20
20
  name: string;
21
21
  required: boolean;
22
- description: string;
23
22
  labelKey: string;
24
23
  placeholder: string;
24
+ description: string;
25
25
  limit: number;
26
26
  disabledErrorMessage: boolean;
27
27
  disabledBorder: boolean;
@@ -19,9 +19,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
19
19
  id: string;
20
20
  name: string;
21
21
  required: boolean;
22
- description: string;
23
22
  labelKey: string;
24
23
  placeholder: string;
24
+ description: string;
25
25
  limit: number;
26
26
  disabledErrorMessage: boolean;
27
27
  disabledBorder: boolean;
@@ -25,8 +25,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
25
25
  "onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
26
26
  }>, {
27
27
  name: string;
28
- state: "user" | "admin";
29
28
  placeholder: string;
29
+ state: "user" | "admin";
30
30
  limit: number;
31
31
  ignore: string[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -25,8 +25,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
25
25
  "onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
26
26
  }>, {
27
27
  name: string;
28
- state: "user" | "admin";
29
28
  placeholder: string;
29
+ state: "user" | "admin";
30
30
  limit: number;
31
31
  ignore: string[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.354.0",
3
+ "version": "1.355.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",