@unsource/ui 2.8.7 → 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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +24 -9
- package/dist/runtime/assets/main.css +1 -1
- package/dist/runtime/components/UnAuth.d.vue.ts +2 -2
- package/dist/runtime/components/UnAuth.vue +2 -2
- package/dist/runtime/components/UnAuth.vue.d.ts +2 -2
- package/dist/runtime/components/UnCard.d.vue.ts +16 -14
- package/dist/runtime/components/UnCard.vue +26 -2
- package/dist/runtime/components/UnCard.vue.d.ts +16 -14
- package/dist/runtime/components/UnCheckboxItem.d.vue.ts +1 -5
- package/dist/runtime/components/UnCheckboxItem.vue +4 -5
- package/dist/runtime/components/UnCheckboxItem.vue.d.ts +1 -5
- package/dist/runtime/components/UnCollapsible.d.vue.ts +2 -2
- package/dist/runtime/components/UnCollapsible.vue.d.ts +2 -2
- package/dist/runtime/components/UnFormItem.vue +1 -1
- package/dist/runtime/components/UnIRDatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/UnIRDatePicker.vue +1 -2
- package/dist/runtime/components/UnIRDatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/UnLabel.d.vue.ts +13 -13
- package/dist/runtime/components/UnLabel.vue +5 -5
- package/dist/runtime/components/UnLabel.vue.d.ts +13 -13
- package/dist/runtime/components/UnMap.vue +1 -1
- package/dist/runtime/components/UnMobileHeader.vue +0 -1
- package/dist/runtime/components/UnModal.vue +1 -1
- package/dist/runtime/components/UnMultiUploader.vue +0 -1
- package/dist/runtime/components/UnNavbar.vue +1 -1
- package/dist/runtime/components/UnNormalInput.d.vue.ts +1 -21
- package/dist/runtime/components/UnNormalInput.vue.d.ts +1 -21
- package/dist/runtime/components/UnNumberInput.vue +0 -1
- package/dist/runtime/components/UnNuxtIcon.d.vue.ts +0 -1
- package/dist/runtime/components/UnNuxtIcon.vue +1 -3
- package/dist/runtime/components/UnNuxtIcon.vue.d.ts +0 -1
- package/dist/runtime/components/UnProfile.d.vue.ts +2 -2
- package/dist/runtime/components/UnProfile.vue.d.ts +2 -2
- package/dist/runtime/components/UnRadioItem.d.vue.ts +1 -0
- package/dist/runtime/components/UnRadioItem.vue +8 -7
- package/dist/runtime/components/UnRadioItem.vue.d.ts +1 -0
- package/dist/runtime/components/UnSelect.d.vue.ts +0 -2
- package/dist/runtime/components/UnSelect.vue +2 -4
- package/dist/runtime/components/UnSelect.vue.d.ts +0 -2
- package/dist/runtime/components/UnSwiperControl.vue +0 -4
- package/dist/runtime/components/UnSwiperSlider.d.vue.ts +2 -2
- package/dist/runtime/components/UnSwiperSlider.vue.d.ts +2 -2
- package/dist/runtime/components/UnTransaction.vue +1 -0
- package/dist/runtime/components/UnUploadFile.d.vue.ts +2 -2
- package/dist/runtime/components/UnUploadFile.vue +1 -1
- package/dist/runtime/components/UnUploadFile.vue.d.ts +2 -2
- package/dist/runtime/components/UnWallet.vue +1 -0
- package/dist/runtime/composables/fetch.d.ts +38 -17
- package/dist/runtime/composables/fetch.js +20 -11
- package/dist/runtime/composables/global.d.ts +26 -24
- package/dist/runtime/composables/global.js +15 -33
- package/dist/runtime/composables/reuseable.d.ts +3 -16
- package/dist/runtime/composables/reuseable.js +7 -24
- package/dist/runtime/composables/services.js +3 -2
- package/dist/runtime/plugins/floating.client.d.ts +3 -0
- package/dist/runtime/plugins/floating.client.js +6 -0
- package/dist/runtime/plugins/toast.client.d.ts +14 -14
- package/dist/runtime/types/models.d.ts +476 -402
- package/package.json +8 -7
- package/dist/runtime/uno.config.d.ts +0 -2
- package/dist/runtime/uno.config.js +0 -60
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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(
|
|
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
|
|
91
|
+
const resolver = createResolver(import.meta.url);
|
|
78
92
|
addComponentsDir({
|
|
79
|
-
path:
|
|
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(
|
|
89
|
-
addPlugin(
|
|
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
|
|
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
|
|
24
|
+
declare var __VLS_33: {};
|
|
25
25
|
type __VLS_Slots = {} & {
|
|
26
|
-
default?: (props: typeof
|
|
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>;
|
|
@@ -21,9 +21,9 @@ type Props = {
|
|
|
21
21
|
click?: Record<string, unknown>;
|
|
22
22
|
shortHand?: boolean;
|
|
23
23
|
};
|
|
24
|
-
declare var
|
|
24
|
+
declare var __VLS_33: {};
|
|
25
25
|
type __VLS_Slots = {} & {
|
|
26
|
-
default?: (props: typeof
|
|
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
|
|
26
|
+
declare var __VLS_39: {
|
|
25
27
|
item: any;
|
|
26
|
-
},
|
|
28
|
+
}, __VLS_41: {
|
|
27
29
|
item: any;
|
|
28
|
-
},
|
|
30
|
+
}, __VLS_49: {
|
|
29
31
|
item: any;
|
|
30
|
-
},
|
|
32
|
+
}, __VLS_51: {
|
|
31
33
|
item: any;
|
|
32
|
-
},
|
|
34
|
+
}, __VLS_75: {
|
|
33
35
|
item: any;
|
|
34
|
-
},
|
|
36
|
+
}, __VLS_77: {
|
|
35
37
|
item: any;
|
|
36
38
|
};
|
|
37
39
|
type __VLS_Slots = {} & {
|
|
38
|
-
bodyStart?: (props: typeof
|
|
40
|
+
bodyStart?: (props: typeof __VLS_39) => any;
|
|
39
41
|
} & {
|
|
40
|
-
title?: (props: typeof
|
|
42
|
+
title?: (props: typeof __VLS_41) => any;
|
|
41
43
|
} & {
|
|
42
|
-
bodyEnd?: (props: typeof
|
|
44
|
+
bodyEnd?: (props: typeof __VLS_49) => any;
|
|
43
45
|
} & {
|
|
44
|
-
header?: (props: typeof
|
|
46
|
+
header?: (props: typeof __VLS_51) => any;
|
|
45
47
|
} & {
|
|
46
|
-
footerStart?: (props: typeof
|
|
48
|
+
footerStart?: (props: typeof __VLS_75) => any;
|
|
47
49
|
} & {
|
|
48
|
-
footerEnd?: (props: typeof
|
|
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
|
-
|
|
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
|
|
26
|
+
declare var __VLS_39: {
|
|
25
27
|
item: any;
|
|
26
|
-
},
|
|
28
|
+
}, __VLS_41: {
|
|
27
29
|
item: any;
|
|
28
|
-
},
|
|
30
|
+
}, __VLS_49: {
|
|
29
31
|
item: any;
|
|
30
|
-
},
|
|
32
|
+
}, __VLS_51: {
|
|
31
33
|
item: any;
|
|
32
|
-
},
|
|
34
|
+
}, __VLS_75: {
|
|
33
35
|
item: any;
|
|
34
|
-
},
|
|
36
|
+
}, __VLS_77: {
|
|
35
37
|
item: any;
|
|
36
38
|
};
|
|
37
39
|
type __VLS_Slots = {} & {
|
|
38
|
-
bodyStart?: (props: typeof
|
|
40
|
+
bodyStart?: (props: typeof __VLS_39) => any;
|
|
39
41
|
} & {
|
|
40
|
-
title?: (props: typeof
|
|
42
|
+
title?: (props: typeof __VLS_41) => any;
|
|
41
43
|
} & {
|
|
42
|
-
bodyEnd?: (props: typeof
|
|
44
|
+
bodyEnd?: (props: typeof __VLS_49) => any;
|
|
43
45
|
} & {
|
|
44
|
-
header?: (props: typeof
|
|
46
|
+
header?: (props: typeof __VLS_51) => any;
|
|
45
47
|
} & {
|
|
46
|
-
footerStart?: (props: typeof
|
|
48
|
+
footerStart?: (props: typeof __VLS_75) => any;
|
|
47
49
|
} & {
|
|
48
|
-
footerEnd?: (props: typeof
|
|
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
|
|
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="
|
|
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,
|
|
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="
|
|
21
|
-
:custom-class="
|
|
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
|
|
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
|
|
18
|
+
declare var __VLS_13: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
|
-
default?: (props: typeof
|
|
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
|
|
18
|
+
declare var __VLS_13: {};
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
|
-
default?: (props: typeof
|
|
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,7 +114,7 @@
|
|
|
114
114
|
import PN from "persian-number";
|
|
115
115
|
import { computed } from "#imports";
|
|
116
116
|
import UnLocationInput from "./UnLocationInput.vue";
|
|
117
|
-
|
|
117
|
+
defineEmits(["update:modelValue"]);
|
|
118
118
|
const { item, options, required, isError } = defineProps({
|
|
119
119
|
item: { type: Object, required: true },
|
|
120
120
|
options: { type: Array, required: true },
|
|
@@ -7,7 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
head?: string;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_ModelProps = {
|
|
10
|
-
modelValue?:
|
|
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?:
|
|
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>;
|
|
@@ -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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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 },
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@click.self="emit('close')"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="flex flex-col gap-6 bg-
|
|
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
|
|
@@ -26,26 +26,6 @@ type __VLS_ModelProps = {
|
|
|
26
26
|
modelValue?: any;
|
|
27
27
|
};
|
|
28
28
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
30
|
-
date: boolean;
|
|
31
|
-
password: boolean;
|
|
32
|
-
appendIcon: string;
|
|
33
|
-
label: string;
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
inputType: string;
|
|
36
|
-
placeholder: string;
|
|
37
|
-
focusable: boolean;
|
|
38
|
-
className: string;
|
|
39
|
-
valueClassName: string;
|
|
40
|
-
focusClassName: string;
|
|
41
|
-
labelClass: string;
|
|
42
|
-
prependIcon: string;
|
|
43
|
-
appendIconType: string;
|
|
44
|
-
appendIconClass: string;
|
|
45
|
-
appendText: string;
|
|
46
|
-
inputMode: string;
|
|
47
|
-
iconColor: string;
|
|
48
|
-
bgStyle: string;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
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>;
|
|
50
30
|
declare const _default: typeof __VLS_export;
|
|
51
31
|
export default _default;
|
|
@@ -26,26 +26,6 @@ type __VLS_ModelProps = {
|
|
|
26
26
|
modelValue?: any;
|
|
27
27
|
};
|
|
28
28
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
30
|
-
date: boolean;
|
|
31
|
-
password: boolean;
|
|
32
|
-
appendIcon: string;
|
|
33
|
-
label: string;
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
inputType: string;
|
|
36
|
-
placeholder: string;
|
|
37
|
-
focusable: boolean;
|
|
38
|
-
className: string;
|
|
39
|
-
valueClassName: string;
|
|
40
|
-
focusClassName: string;
|
|
41
|
-
labelClass: string;
|
|
42
|
-
prependIcon: string;
|
|
43
|
-
appendIconType: string;
|
|
44
|
-
appendIconClass: string;
|
|
45
|
-
appendText: string;
|
|
46
|
-
inputMode: string;
|
|
47
|
-
iconColor: string;
|
|
48
|
-
bgStyle: string;
|
|
49
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
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>;
|
|
50
30
|
declare const _default: typeof __VLS_export;
|
|
51
31
|
export default _default;
|
|
@@ -36,7 +36,6 @@ const { max = 999999999, min = 0, step = 1e3 } = defineProps({
|
|
|
36
36
|
const amount = defineModel({ type: [String, Number] });
|
|
37
37
|
const remain = computed(() => max - Number(s2n(amount.value)));
|
|
38
38
|
const increment = (e) => {
|
|
39
|
-
console.log(e);
|
|
40
39
|
if (e < 0 && Number(s2n(amount.value)) <= Math.abs(e)) {
|
|
41
40
|
amount.value = "0";
|
|
42
41
|
} else {
|