@unsource/ui 2.1.4 → 2.2.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 +1 -1
- package/dist/module.mjs +6 -2
- package/dist/runtime/components/UnAuth.d.vue.ts +34 -0
- package/dist/runtime/components/UnAuth.vue +326 -0
- package/dist/runtime/components/UnAuth.vue.d.ts +34 -0
- package/dist/runtime/components/UnAuthInputs.d.vue.ts +23 -0
- package/dist/runtime/components/UnAuthInputs.vue +86 -0
- package/dist/runtime/components/UnAuthInputs.vue.d.ts +23 -0
- package/dist/runtime/components/UnAuthShortHand.d.vue.ts +8 -0
- package/dist/runtime/components/UnAuthShortHand.vue +19 -0
- package/dist/runtime/components/UnAuthShortHand.vue.d.ts +8 -0
- package/dist/runtime/components/UnCodeInput.d.vue.ts +6 -0
- package/dist/runtime/components/UnCodeInput.vue +31 -0
- package/dist/runtime/components/UnCodeInput.vue.d.ts +6 -0
- package/dist/runtime/components/UnFormItem.vue +2 -3
- package/dist/runtime/components/UnIRDatePicker.vue +1 -1
- package/dist/runtime/components/UnInput.d.vue.ts +2 -2
- package/dist/runtime/components/UnInput.vue.d.ts +2 -2
- package/dist/runtime/components/UnLog.vue +2 -0
- package/dist/runtime/components/UnMap.vue +42 -24
- package/dist/runtime/components/UnMultiUploader.vue +47 -44
- package/dist/runtime/components/UnNormalInput.d.vue.ts +51 -0
- package/dist/runtime/components/UnNormalInput.vue +110 -0
- package/dist/runtime/components/UnNormalInput.vue.d.ts +51 -0
- package/dist/runtime/components/UnSelect.vue +17 -5
- package/dist/runtime/components/UnTimer.d.vue.ts +16 -0
- package/dist/runtime/components/UnTimer.vue +31 -0
- package/dist/runtime/components/UnTimer.vue.d.ts +16 -0
- package/dist/runtime/components/UnUploadFile.vue +38 -25
- package/dist/runtime/composables/reuseable.d.ts +3 -3
- package/package.json +7 -7
|
@@ -1,39 +1,52 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<form
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
class="flex flex-col relative"
|
|
4
|
+
@dragenter="hovered=true"
|
|
5
|
+
@dragleave="hovered=false"
|
|
6
|
+
@submit.prevent="upload"
|
|
7
|
+
@dragover.prevent
|
|
8
|
+
@drop.stop.prevent="drop"
|
|
9
|
+
>
|
|
9
10
|
<label
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
class="flex justify-center items-stretch bg-transparent rounded-2xl relative overflow-hidden cursor-pointer h-full"
|
|
12
|
+
:class="{ 'p-2': !value }"
|
|
13
|
+
>
|
|
12
14
|
<slot name="icon">
|
|
13
|
-
<div
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
<div
|
|
16
|
+
v-if="!value || loading"
|
|
17
|
+
class="flex flex-col justify-center items-center gap-3 p-2 border-(2 dashed) rounded-2xl grow"
|
|
18
|
+
:class="label ? 'border-(primary-500)' : 'border-transparent' "
|
|
19
|
+
>
|
|
20
|
+
<UnNuxtIcon
|
|
21
|
+
v-if="!loading"
|
|
22
|
+
class="flex justify-center items-center text-primary-500 rounded-lg"
|
|
23
|
+
:class="label ? 'text-3xl' : 'text-8xl'"
|
|
24
|
+
:name="icon"
|
|
25
|
+
/>
|
|
26
|
+
<UnNuxtIcon
|
|
27
|
+
v-else
|
|
28
|
+
name="loading"
|
|
29
|
+
icon-type="svg"
|
|
30
|
+
/>
|
|
22
31
|
<p class="text-(xs gray-400) font-extrabold text-center">
|
|
23
32
|
{{ label }}
|
|
24
33
|
</p>
|
|
25
34
|
</div>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
<UnNuxtIcon
|
|
36
|
+
v-else
|
|
37
|
+
:name="value"
|
|
38
|
+
class="object-contain bg-gray-100 rounded-lg !w-full !h-full"
|
|
39
|
+
/>
|
|
30
40
|
</slot>
|
|
31
41
|
<input
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
:disabled="!disabled"
|
|
43
|
+
:accept="accept"
|
|
44
|
+
alt="uploadImage"
|
|
45
|
+
hidden
|
|
46
|
+
type="file"
|
|
47
|
+
@change="upload($event.target)"
|
|
48
|
+
>
|
|
35
49
|
</label>
|
|
36
|
-
|
|
37
50
|
</form>
|
|
38
51
|
</template>
|
|
39
52
|
|
|
@@ -24,9 +24,9 @@ export declare const useMeta: (v?: {
|
|
|
24
24
|
handler?: () => any;
|
|
25
25
|
}>;
|
|
26
26
|
export declare const useReload: () => import("vue").Ref<number, number>;
|
|
27
|
-
export declare const useUserId: () => import("
|
|
28
|
-
export declare const useToken: () => import("
|
|
29
|
-
export declare const useProviderId: () => import("
|
|
27
|
+
export declare const useUserId: () => import("#app").CookieRef<string | null | undefined>;
|
|
28
|
+
export declare const useToken: () => import("#app").CookieRef<string | null | undefined>;
|
|
29
|
+
export declare const useProviderId: () => import("#app").CookieRef<string | null | undefined>;
|
|
30
30
|
export declare const useCurrentProductIndex: (products: ServiceSetting[], p: Partial<ServiceSetting>) => number;
|
|
31
31
|
export declare const SettingToType: (setting: ServiceSetting) => ServiceSettingType;
|
|
32
32
|
export declare const NotInProcessBooking: (e: Booking["status"]) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsource/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "nuxt ui kit for unsource env",
|
|
6
6
|
"repository": "https://github.com/alisa2142/unsource-ui",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"prepack": "nuxt-module-build build",
|
|
28
28
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
29
29
|
"dev:build": "nuxi build playground",
|
|
30
|
-
"dev:prepare
|
|
31
|
-
"dev:prepare": "nuxt-module-build build && nuxi prepare playground",
|
|
30
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
32
31
|
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
33
32
|
"lint": "eslint .",
|
|
34
33
|
"test": "vitest run",
|
|
@@ -37,9 +36,9 @@
|
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"@neshan-maps-platform/vue3-openlayers": "^2.0.1",
|
|
40
|
-
"@nuxt/kit": "^
|
|
39
|
+
"@nuxt/kit": "^3.20.0",
|
|
41
40
|
"@nuxtjs/device": "^3.2.4",
|
|
42
|
-
"@nuxtjs/i18n": "^
|
|
41
|
+
"@nuxtjs/i18n": "^10.1.2",
|
|
43
42
|
"@persian-tools/persian-tools": "^4.0.4",
|
|
44
43
|
"@types/big.js": "^6.2.2",
|
|
45
44
|
"@types/numeral": "^2.0.5",
|
|
@@ -58,6 +57,8 @@
|
|
|
58
57
|
"socket.io-client": "^4.8.1",
|
|
59
58
|
"swiper": "^11.2.10",
|
|
60
59
|
"unocss-preset-scrollbar": "^3.2.0",
|
|
60
|
+
"vue-json-pretty": "^2.6.0",
|
|
61
|
+
"vue3-otp-input": "^0.5.40",
|
|
61
62
|
"vue3-persian-datetime-picker": "^1.2.2",
|
|
62
63
|
"vue3-toastify": "^0.2.8"
|
|
63
64
|
},
|
|
@@ -82,13 +83,12 @@
|
|
|
82
83
|
"@nuxt/module-builder": "^1.0.2",
|
|
83
84
|
"@nuxt/schema": "^3.19.3",
|
|
84
85
|
"@nuxt/test-utils": "^3.19.2",
|
|
85
|
-
"@nuxt/vite-builder": "~3.15.4",
|
|
86
86
|
"@types/node": "latest",
|
|
87
87
|
"@unhead/vue": "^1.11.20",
|
|
88
88
|
"@unocss/nuxt": "^66.5.3",
|
|
89
89
|
"changelogen": "^0.6.2",
|
|
90
90
|
"eslint": "^9.37.0",
|
|
91
|
-
"nuxt": "^3.
|
|
91
|
+
"nuxt": "^3.20.0",
|
|
92
92
|
"sass": "^1.93.2",
|
|
93
93
|
"sass-embedded": "^1.93.2",
|
|
94
94
|
"typescript": "~5.9.3",
|