@unsource/ui 2.8.8 → 2.8.10

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 (68) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +24 -9
  3. package/dist/runtime/assets/main.css +1 -1
  4. package/dist/runtime/components/UnAuth.d.vue.ts +2 -2
  5. package/dist/runtime/components/UnAuth.vue +2 -2
  6. package/dist/runtime/components/UnAuth.vue.d.ts +2 -2
  7. package/dist/runtime/components/UnCard.d.vue.ts +16 -14
  8. package/dist/runtime/components/UnCard.vue +26 -2
  9. package/dist/runtime/components/UnCard.vue.d.ts +16 -14
  10. package/dist/runtime/components/UnCheckboxItem.d.vue.ts +1 -5
  11. package/dist/runtime/components/UnCheckboxItem.vue +4 -5
  12. package/dist/runtime/components/UnCheckboxItem.vue.d.ts +1 -5
  13. package/dist/runtime/components/UnCollapsible.d.vue.ts +2 -2
  14. package/dist/runtime/components/UnCollapsible.vue.d.ts +2 -2
  15. package/dist/runtime/components/UnFormItem.vue +2 -2
  16. package/dist/runtime/components/UnFormList.d.vue.ts +1 -1
  17. package/dist/runtime/components/UnFormList.vue.d.ts +1 -1
  18. package/dist/runtime/components/UnIRDatePicker.d.vue.ts +1 -1
  19. package/dist/runtime/components/UnIRDatePicker.vue +1 -2
  20. package/dist/runtime/components/UnIRDatePicker.vue.d.ts +1 -1
  21. package/dist/runtime/components/UnInput.d.vue.ts +1 -1
  22. package/dist/runtime/components/UnInput.vue +1 -1
  23. package/dist/runtime/components/UnInput.vue.d.ts +1 -1
  24. package/dist/runtime/components/UnLabel.d.vue.ts +13 -13
  25. package/dist/runtime/components/UnLabel.vue +5 -5
  26. package/dist/runtime/components/UnLabel.vue.d.ts +13 -13
  27. package/dist/runtime/components/UnMap.vue +1 -1
  28. package/dist/runtime/components/UnMobileHeader.vue +0 -1
  29. package/dist/runtime/components/UnModal.vue +1 -1
  30. package/dist/runtime/components/UnMultiUploader.vue +0 -1
  31. package/dist/runtime/components/UnNavbar.vue +1 -1
  32. package/dist/runtime/components/UnNormalInput.d.vue.ts +1 -21
  33. package/dist/runtime/components/UnNormalInput.vue.d.ts +1 -21
  34. package/dist/runtime/components/UnNumberInput.vue +0 -1
  35. package/dist/runtime/components/UnNuxtIcon.d.vue.ts +0 -1
  36. package/dist/runtime/components/UnNuxtIcon.vue +1 -3
  37. package/dist/runtime/components/UnNuxtIcon.vue.d.ts +0 -1
  38. package/dist/runtime/components/UnProfile.d.vue.ts +2 -2
  39. package/dist/runtime/components/UnProfile.vue.d.ts +2 -2
  40. package/dist/runtime/components/UnRadioItem.d.vue.ts +1 -0
  41. package/dist/runtime/components/UnRadioItem.vue +8 -7
  42. package/dist/runtime/components/UnRadioItem.vue.d.ts +1 -0
  43. package/dist/runtime/components/UnSelect.d.vue.ts +0 -2
  44. package/dist/runtime/components/UnSelect.vue +2 -4
  45. package/dist/runtime/components/UnSelect.vue.d.ts +0 -2
  46. package/dist/runtime/components/UnSwiperControl.vue +0 -4
  47. package/dist/runtime/components/UnSwiperSlider.d.vue.ts +2 -2
  48. package/dist/runtime/components/UnSwiperSlider.vue.d.ts +2 -2
  49. package/dist/runtime/components/UnTransaction.vue +1 -0
  50. package/dist/runtime/components/UnUploadFile.d.vue.ts +4 -4
  51. package/dist/runtime/components/UnUploadFile.vue +1 -1
  52. package/dist/runtime/components/UnUploadFile.vue.d.ts +4 -4
  53. package/dist/runtime/components/UnWallet.vue +1 -0
  54. package/dist/runtime/composables/fetch.d.ts +38 -17
  55. package/dist/runtime/composables/fetch.js +20 -11
  56. package/dist/runtime/composables/global.d.ts +58 -15
  57. package/dist/runtime/composables/global.js +11 -30
  58. package/dist/runtime/composables/reuseable.d.ts +6 -19
  59. package/dist/runtime/composables/reuseable.js +7 -24
  60. package/dist/runtime/composables/services.d.ts +2 -2
  61. package/dist/runtime/composables/services.js +3 -2
  62. package/dist/runtime/plugins/floating.client.d.ts +3 -0
  63. package/dist/runtime/plugins/floating.client.js +6 -0
  64. package/dist/runtime/plugins/toast.client.d.ts +30 -30
  65. package/dist/runtime/types/models.d.ts +401 -110
  66. package/package.json +6 -5
  67. package/dist/runtime/uno.config.d.ts +0 -2
  68. package/dist/runtime/uno.config.js +0 -60
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.8",
4
+ "version": "2.8.10",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,8 +1,9 @@
1
- import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir, addPlugin } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir, addPlugin } from '@nuxt/kit';
2
2
  import defu from 'defu';
3
+ import { presetWind4, presetAttributify, transformerVariantGroup, transformerDirectives } from 'unocss';
4
+ import { presetScrollbar } from 'unocss-preset-scrollbar';
3
5
 
4
- const resolver = createResolver(import.meta.url);
5
- const module = defineNuxtModule({
6
+ const module$1 = defineNuxtModule({
6
7
  meta: {
7
8
  name: "unsource-ui",
8
9
  configKey: "unsourceUi"
@@ -11,7 +12,19 @@ const module = defineNuxtModule({
11
12
  "@nuxtjs/device": {},
12
13
  "@unocss/nuxt": {
13
14
  defaults: {
14
- configFile: resolver.resolve("runtime/uno.config.{mjs,js,ts}")
15
+ // configFile: resolver.resolve('runtime/uno.config.{mjs,js,ts}'),
16
+ // nuxtLayers: true,
17
+ transformers: [
18
+ transformerVariantGroup(),
19
+ transformerDirectives()
20
+ ],
21
+ presets: [
22
+ presetWind4(),
23
+ presetAttributify(),
24
+ presetScrollbar({
25
+ noCompatible: false
26
+ })
27
+ ]
15
28
  }
16
29
  },
17
30
  "@nuxt/icon": {
@@ -46,6 +59,7 @@ const module = defineNuxtModule({
46
59
  }
47
60
  },
48
61
  "nuxt-swiper": {},
62
+ // '@tailvue/nuxt': {},
49
63
  "@vueuse/nuxt": {},
50
64
  "@nuxtjs/i18n": {
51
65
  version: "^10.0.0",
@@ -74,9 +88,9 @@ const module = defineNuxtModule({
74
88
  }
75
89
  },
76
90
  async setup(_options, _nuxt) {
77
- const resolver2 = createResolver(import.meta.url);
91
+ const resolver = createResolver(import.meta.url);
78
92
  addComponentsDir({
79
- path: resolver2.resolve("runtime/components"),
93
+ path: resolver.resolve("runtime/components"),
80
94
  // path of components
81
95
  pathPrefix: false,
82
96
  // Prefix component name by its path.
@@ -85,10 +99,11 @@ const module = defineNuxtModule({
85
99
  global: true
86
100
  // Registers components to be globally available.
87
101
  });
88
- addImportsDir(resolver2.resolve("runtime/composables"));
89
- addPlugin(resolver2.resolve("runtime/plugins/toast.client"));
102
+ addImportsDir(resolver.resolve("runtime/composables"));
103
+ addPlugin(resolver.resolve("runtime/plugins/floating.client"));
104
+ addPlugin(resolver.resolve("runtime/plugins/toast.client"));
90
105
  _nuxt.options.runtimeConfig.public.unsourceUi = defu(_nuxt.options.runtimeConfig.public.unsourceUi, _options);
91
106
  }
92
107
  });
93
108
 
94
- export { module as default };
109
+ export { module$1 as default };
@@ -123,7 +123,7 @@ input[type=number] {
123
123
  @apply mt-0;
124
124
  }
125
125
  .vpd-main .vpd-content {
126
- @apply "!w-full";
126
+ @apply '!w-full';
127
127
  }
128
128
  .vpd-main .vpd-content .vpd-days .vpd-clearfix, .vpd-main .vpd-content .vpd-week.vpd-clearfix {
129
129
  @apply flex justify-between;
@@ -21,9 +21,9 @@ type Props = {
21
21
  click?: Record<string, unknown>;
22
22
  shortHand?: boolean;
23
23
  };
24
- declare var __VLS_29: {};
24
+ declare var __VLS_33: {};
25
25
  type __VLS_Slots = {} & {
26
- default?: (props: typeof __VLS_29) => any;
26
+ default?: (props: typeof __VLS_33) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -71,9 +71,9 @@
71
71
  </p>
72
72
  <UnTimer
73
73
  v-if="!isExpired"
74
- :key="expiredAt"
74
+ :key="expiredAt || ''"
75
75
  v-model="isExpired"
76
- :time="expiredAt"
76
+ :time="expiredAt || ''"
77
77
  />
78
78
  </div>
79
79
  </div>
@@ -21,9 +21,9 @@ type Props = {
21
21
  click?: Record<string, unknown>;
22
22
  shortHand?: boolean;
23
23
  };
24
- declare var __VLS_29: {};
24
+ declare var __VLS_33: {};
25
25
  type __VLS_Slots = {} & {
26
- default?: (props: typeof __VLS_29) => any;
26
+ default?: (props: typeof __VLS_33) => any;
27
27
  };
28
28
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc', string>>;
1
+ export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc' | 'infoIcon' | 'infoModal', string>>;
2
2
  export type TagItem = {
3
3
  value?: string;
4
4
  icon?: string;
@@ -10,6 +10,7 @@ export type CardItem = {
10
10
  logo?: string;
11
11
  name?: string;
12
12
  desc?: string;
13
+ info?: string;
13
14
  image?: string;
14
15
  avatar?: string;
15
16
  images?: string[];
@@ -19,33 +20,34 @@ type __VLS_Props = {
19
20
  direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
20
21
  customClass?: CardCustomClass;
21
22
  item: CardItem;
22
- to?: string;
23
+ to?: string | Record<string, unknown>;
24
+ infoIcon?: string;
23
25
  };
24
- declare var __VLS_33: {
26
+ declare var __VLS_39: {
25
27
  item: any;
26
- }, __VLS_35: {
28
+ }, __VLS_41: {
27
29
  item: any;
28
- }, __VLS_42: {
30
+ }, __VLS_49: {
29
31
  item: any;
30
- }, __VLS_44: {
32
+ }, __VLS_51: {
31
33
  item: any;
32
- }, __VLS_46: {
34
+ }, __VLS_75: {
33
35
  item: any;
34
- }, __VLS_48: {
36
+ }, __VLS_77: {
35
37
  item: any;
36
38
  };
37
39
  type __VLS_Slots = {} & {
38
- bodyStart?: (props: typeof __VLS_33) => any;
40
+ bodyStart?: (props: typeof __VLS_39) => any;
39
41
  } & {
40
- title?: (props: typeof __VLS_35) => any;
42
+ title?: (props: typeof __VLS_41) => any;
41
43
  } & {
42
- bodyEnd?: (props: typeof __VLS_42) => any;
44
+ bodyEnd?: (props: typeof __VLS_49) => any;
43
45
  } & {
44
- header?: (props: typeof __VLS_44) => any;
46
+ header?: (props: typeof __VLS_51) => any;
45
47
  } & {
46
- footerStart?: (props: typeof __VLS_46) => any;
48
+ footerStart?: (props: typeof __VLS_75) => any;
47
49
  } & {
48
- footerEnd?: (props: typeof __VLS_48) => any;
50
+ footerEnd?: (props: typeof __VLS_77) => any;
49
51
  };
50
52
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
53
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -156,6 +156,26 @@
156
156
  name="header"
157
157
  :item="item"
158
158
  />
159
+ <UnNuxtIcon
160
+ v-if="item.info"
161
+ v-tooltip="item.info"
162
+ class="self-center"
163
+ :class="customClass.infoIcon"
164
+ :name="infoIcon"
165
+ @click.prevent.stop="isMobile ? showInfo = true : ''"
166
+ />
167
+ <Teleport to="body">
168
+ <UnModal
169
+ v-if="showInfo"
170
+ class="z-2"
171
+ :class="customClass.infoModal"
172
+ @close="showInfo = false"
173
+ >
174
+ <p class="bg-white pb-12 rounded-2xl p-2">
175
+ {{ item.info }}
176
+ </p>
177
+ </UnModal>
178
+ </Teleport>
159
179
  </div>
160
180
  <div
161
181
  v-if="$slots.footerStart || $slots.footerEnd"
@@ -178,16 +198,20 @@
178
198
 
179
199
  <script setup>
180
200
  import { NuxtLink } from "#components";
181
- const { direction = "column", customClass = {}, to = "" } = defineProps({
201
+ import { useDevice } from "#imports";
202
+ const { direction = "column", customClass = {}, to = "", infoIcon = "solar:info-circle-bold-duotone" } = defineProps({
182
203
  direction: { type: String, required: false },
183
204
  customClass: { type: Object, required: false },
184
205
  item: { type: Object, required: true },
185
- to: { type: String, required: false }
206
+ to: { type: [String, Object], required: false },
207
+ infoIcon: { type: String, required: false }
186
208
  });
209
+ const { isMobile } = useDevice();
187
210
  const headerClass = {
188
211
  "column": "flex-col",
189
212
  "row": "flex-row",
190
213
  "row-reverse": "flex-row-reverse",
191
214
  "column-reverse": "flex-col-reverse"
192
215
  };
216
+ const showInfo = ref(false);
193
217
  </script>
@@ -1,4 +1,4 @@
1
- export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc', string>>;
1
+ export type CardCustomClass = Partial<Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'imagesItem' | 'image' | 'avatar' | 'nameDesc' | 'infoIcon' | 'infoModal', string>>;
2
2
  export type TagItem = {
3
3
  value?: string;
4
4
  icon?: string;
@@ -10,6 +10,7 @@ export type CardItem = {
10
10
  logo?: string;
11
11
  name?: string;
12
12
  desc?: string;
13
+ info?: string;
13
14
  image?: string;
14
15
  avatar?: string;
15
16
  images?: string[];
@@ -19,33 +20,34 @@ type __VLS_Props = {
19
20
  direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
20
21
  customClass?: CardCustomClass;
21
22
  item: CardItem;
22
- to?: string;
23
+ to?: string | Record<string, unknown>;
24
+ infoIcon?: string;
23
25
  };
24
- declare var __VLS_33: {
26
+ declare var __VLS_39: {
25
27
  item: any;
26
- }, __VLS_35: {
28
+ }, __VLS_41: {
27
29
  item: any;
28
- }, __VLS_42: {
30
+ }, __VLS_49: {
29
31
  item: any;
30
- }, __VLS_44: {
32
+ }, __VLS_51: {
31
33
  item: any;
32
- }, __VLS_46: {
34
+ }, __VLS_75: {
33
35
  item: any;
34
- }, __VLS_48: {
36
+ }, __VLS_77: {
35
37
  item: any;
36
38
  };
37
39
  type __VLS_Slots = {} & {
38
- bodyStart?: (props: typeof __VLS_33) => any;
40
+ bodyStart?: (props: typeof __VLS_39) => any;
39
41
  } & {
40
- title?: (props: typeof __VLS_35) => any;
42
+ title?: (props: typeof __VLS_41) => any;
41
43
  } & {
42
- bodyEnd?: (props: typeof __VLS_42) => any;
44
+ bodyEnd?: (props: typeof __VLS_49) => any;
43
45
  } & {
44
- header?: (props: typeof __VLS_44) => any;
46
+ header?: (props: typeof __VLS_51) => any;
45
47
  } & {
46
- footerStart?: (props: typeof __VLS_46) => any;
48
+ footerStart?: (props: typeof __VLS_75) => any;
47
49
  } & {
48
- footerEnd?: (props: typeof __VLS_48) => any;
50
+ footerEnd?: (props: typeof __VLS_77) => any;
49
51
  };
50
52
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
53
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,11 +1,7 @@
1
1
  import type { CardItem, CardCustomClass } from './UnCard.vue.js';
2
- export type CheckboxCustomInput = Partial<Record<'box' | 'innerBox' | 'card', string>> & {
2
+ export type CheckboxCustomClass = Partial<Record<'box' | 'innerBox' | 'card', string>> & {
3
3
  item?: CardCustomClass;
4
4
  };
5
- export type CheckboxCustomClass = CheckboxCustomInput & {
6
- selected?: CheckboxCustomInput;
7
- notSelected?: CheckboxCustomInput;
8
- };
9
5
  type __VLS_Props = {
10
6
  item: CardItem;
11
7
  selected?: boolean;
@@ -6,26 +6,25 @@
6
6
  >
7
7
  <div
8
8
  name="box"
9
- :class="[customClass.box, customClass[selected ? 'selected' : 'notSelected']?.box]"
9
+ :class="customClass.box"
10
10
  class="border-(1 solid primary) rounded w-4 h-4 flex justify-center items-center"
11
11
  >
12
12
  <div
13
13
  name="innerBox"
14
14
  class="bg-primary-500 rounded h-8px w-10px transition-height duration-200"
15
- :class="[customClass.innerBox, customClass[selected ? 'selected' : 'notSelected']?.innerBox, selected ? '!h-10px' : '!h-1px']"
15
+ :class="[customClass.innerBox, selected ? '!h-10px' : '!h-1px']"
16
16
  />
17
17
  </div>
18
18
  <UnCard
19
19
  class="!bg-transparent grow-1"
20
- :class="[customClass.card, customClass[selected ? 'selected' : 'notSelected']?.card]"
21
- :custom-class="_mergeWith(customClass.item, customClass[selected ? 'selected' : 'notSelected']?.item, merge)"
20
+ :class="customClass.card"
21
+ :custom-class="customClass.item"
22
22
  :item
23
23
  />
24
24
  </div>
25
25
  </template>
26
26
 
27
27
  <script setup>
28
- import { _mergeWith, merge } from "#imports";
29
28
  const emit = defineEmits(["input"]);
30
29
  const { customClass = {} } = defineProps({
31
30
  item: { type: Object, required: true },
@@ -1,11 +1,7 @@
1
1
  import type { CardItem, CardCustomClass } from './UnCard.vue.js';
2
- export type CheckboxCustomInput = Partial<Record<'box' | 'innerBox' | 'card', string>> & {
2
+ export type CheckboxCustomClass = Partial<Record<'box' | 'innerBox' | 'card', string>> & {
3
3
  item?: CardCustomClass;
4
4
  };
5
- export type CheckboxCustomClass = CheckboxCustomInput & {
6
- selected?: CheckboxCustomInput;
7
- notSelected?: CheckboxCustomInput;
8
- };
9
5
  type __VLS_Props = {
10
6
  item: CardItem;
11
7
  selected?: boolean;
@@ -15,9 +15,9 @@ type __VLS_ModelProps = {
15
15
  'show'?: boolean;
16
16
  };
17
17
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
- declare var __VLS_11: {};
18
+ declare var __VLS_13: {};
19
19
  type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_11) => any;
20
+ default?: (props: typeof __VLS_13) => any;
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:show": (value: boolean | undefined) => any;
@@ -15,9 +15,9 @@ type __VLS_ModelProps = {
15
15
  'show'?: boolean;
16
16
  };
17
17
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
- declare var __VLS_11: {};
18
+ declare var __VLS_13: {};
19
19
  type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_11) => any;
20
+ default?: (props: typeof __VLS_13) => any;
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:show": (value: boolean | undefined) => any;
@@ -114,9 +114,9 @@
114
114
  import PN from "persian-number";
115
115
  import { computed } from "#imports";
116
116
  import UnLocationInput from "./UnLocationInput.vue";
117
- const emit = defineEmits(["update:modelValue"]);
117
+ defineEmits(["update:modelValue"]);
118
118
  const { item, options, required, isError } = defineProps({
119
- item: { type: null, required: true },
119
+ item: { type: Object, required: true },
120
120
  options: { type: Array, required: true },
121
121
  required: { type: Boolean, required: false },
122
122
  isError: { type: Boolean, required: false }
@@ -10,7 +10,7 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
10
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
11
  schema: import("vue").ComputedRef<{
12
12
  type: string;
13
- properties: Form;
13
+ properties: Partial<Form>;
14
14
  required: string[];
15
15
  }>;
16
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,7 +10,7 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
10
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
11
  schema: import("vue").ComputedRef<{
12
12
  type: string;
13
- properties: Form;
13
+ properties: Partial<Form>;
14
14
  required: string[];
15
15
  }>;
16
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  head?: string;
8
8
  };
9
9
  type __VLS_ModelProps = {
10
- modelValue?: any;
10
+ modelValue?: string;
11
11
  };
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -74,7 +74,6 @@ const display = {
74
74
  };
75
75
  const {
76
76
  placeholder = "",
77
- disabled = false,
78
77
  focusable = true,
79
78
  locale = "fa",
80
79
  type = "datetime",
@@ -88,7 +87,7 @@ const {
88
87
  head: { type: String, required: false }
89
88
  });
90
89
  const emit = defineEmits(["append"]);
91
- const value = defineModel();
90
+ const value = defineModel({ type: String });
92
91
  const show = ref(false);
93
92
  const focused = ref(false);
94
93
  const click = () => {
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  head?: string;
8
8
  };
9
9
  type __VLS_ModelProps = {
10
- modelValue?: any;
10
+ modelValue?: string;
11
11
  };
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  isError?: boolean;
7
7
  index?: number;
8
8
  };
9
- declare const Input: any;
9
+ declare const Input: Partial<Input> | undefined;
10
10
  type __VLS_ModelProps = {
11
11
  modelValue?: any;
12
12
  };
@@ -30,7 +30,7 @@ import numeral from "numeral";
30
30
  const { Type, Input } = defineProps({
31
31
  disabled: { type: Boolean, required: false },
32
32
  Input: { type: Object, required: false },
33
- Type: { type: null, required: false },
33
+ Type: { type: String, required: false },
34
34
  isError: { type: Boolean, required: false },
35
35
  index: { type: Number, required: false }
36
36
  });
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  isError?: boolean;
7
7
  index?: number;
8
8
  };
9
- declare const Input: any;
9
+ declare const Input: Partial<Input> | undefined;
10
10
  type __VLS_ModelProps = {
11
11
  modelValue?: any;
12
12
  };
@@ -1,16 +1,16 @@
1
+ type __VLS_Props = {
2
+ header?: string;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1
10
  declare const _default: typeof __VLS_export;
2
11
  export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
9
- header: string;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
- type __VLS_Slots = {
12
- default?: ((props: {}) => any) | undefined;
13
- };
14
- declare const __VLS_props: {
15
- readonly header: string;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
16
  };
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div class="flex flex-col">
3
- <h2 v-if="header" class="text-base text-black-1">
3
+ <h2
4
+ v-if="header"
5
+ class="text-base text-black-1"
6
+ >
4
7
  {{ header }}
5
8
  </h2>
6
9
  <p class="text-sm text-black-2 whitespace-pre-line">
@@ -11,9 +14,6 @@
11
14
 
12
15
  <script setup>
13
16
  defineProps({
14
- header: {
15
- type: String,
16
- default: ""
17
- }
17
+ header: { type: String, required: false }
18
18
  });
19
19
  </script>
@@ -1,16 +1,16 @@
1
+ type __VLS_Props = {
2
+ header?: string;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1
10
  declare const _default: typeof __VLS_export;
2
11
  export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
8
- $props: Partial<typeof __VLS_props>;
9
- header: string;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
- type __VLS_Slots = {
12
- default?: ((props: {}) => any) | undefined;
13
- };
14
- declare const __VLS_props: {
15
- readonly header: string;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
16
  };
@@ -65,7 +65,7 @@ import { useModuleConfig } from "../composables/reuseable";
65
65
  const moduleConfig = useModuleConfig();
66
66
  const NESHAN_API_KEY = window.NESHAN_API_KEY || moduleConfig?.NESHAN_API_KEY;
67
67
  const NESHAN_WEB_KEY = window.NESHAN_WEB_KEY || moduleConfig?.NESHAN_WEB_KEY;
68
- const emit = defineEmits(["select-point"]);
68
+ defineEmits(["select-point"]);
69
69
  const { points = [], readonly, marker } = defineProps({
70
70
  points: { type: Array, required: false },
71
71
  readonly: { type: Boolean, required: false },
@@ -23,5 +23,4 @@
23
23
  import { navigateTo, useMeta, useRouter } from "#imports";
24
24
  const router = useRouter();
25
25
  const meta = useMeta();
26
- const route = useRouter();
27
26
  </script>
@@ -6,7 +6,7 @@
6
6
  @click.self="emit('close')"
7
7
  >
8
8
  <div
9
- class="flex flex-col gap-6 bg-primary-100 rounded-t-xl max-h-9.5/10 w-full px-3"
9
+ class="flex flex-col gap-6 bg-gray-100 rounded-t-xl max-h-9.5/10 w-full px-3"
10
10
  :class="[collapsable ? 'pt-2 pb-4' : 'py-4']"
11
11
  >
12
12
  <UnNuxtIcon
@@ -93,7 +93,6 @@ const props = defineProps({
93
93
  accept: { type: [String, null], required: false }
94
94
  });
95
95
  const hovered = ref(false);
96
- const loadedpicture = ref("");
97
96
  const files = defineModel({ default: () => [] });
98
97
  const drop = (e) => {
99
98
  hovered.value = false;
@@ -26,7 +26,7 @@
26
26
  <script setup>
27
27
  import { useRoute } from "#imports";
28
28
  const route = useRoute();
29
- const {} = defineProps({
29
+ defineProps({
30
30
  items: { type: Array, required: true }
31
31
  });
32
32
  </script>