@unsource/ui 2.0.9 → 2.0.12
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/.vscode/settings.json +3 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/components/UnFormItem.vue +1 -1
- package/dist/runtime/components/UnMap.d.vue.ts +1 -1
- package/dist/runtime/components/UnMap.vue.d.ts +1 -1
- package/dist/runtime/composables/fetch.js +1 -1
- package/package.json +4 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const module = defineNuxtModule({
|
|
|
7
7
|
configKey: "unsourceUi"
|
|
8
8
|
},
|
|
9
9
|
moduleDependencies: {
|
|
10
|
+
"@nuxtjs/device": {},
|
|
10
11
|
"@unocss/nuxt": {
|
|
11
12
|
defaults: {
|
|
12
13
|
configFile: resolver.resolve("runtime/uno.config.{mjs,js,ts}")
|
|
@@ -66,7 +67,7 @@ const module = defineNuxtModule({
|
|
|
66
67
|
addImportsDir(resolver2.resolve("runtime/composables"));
|
|
67
68
|
addPlugin(resolver2.resolve("runtime/plugins/toast.client"));
|
|
68
69
|
_nuxt.options.build.transpile.push(
|
|
69
|
-
"
|
|
70
|
+
"jalali-moment",
|
|
70
71
|
"ajv",
|
|
71
72
|
"big.js",
|
|
72
73
|
"handlebars"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<script setup>
|
|
115
115
|
import PN from "persian-number";
|
|
116
116
|
import { computed } from "#imports";
|
|
117
|
-
import UnLocationInput from "
|
|
117
|
+
import UnLocationInput from "./UnLocationInput.vue";
|
|
118
118
|
const emit = defineEmits(["update:modelValue"]);
|
|
119
119
|
const { item, options, required, isError } = defineProps({
|
|
120
120
|
item: { type: null, required: true },
|
|
@@ -10,7 +10,7 @@ type __VLS_ModelProps = {
|
|
|
10
10
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
12
12
|
Map: any;
|
|
13
|
-
getCenter: () =>
|
|
13
|
+
getCenter: () => import("ol/coordinate").Coordinate;
|
|
14
14
|
setCenter: (coords: Address) => void;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,7 @@ type __VLS_ModelProps = {
|
|
|
10
10
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
12
12
|
Map: any;
|
|
13
|
-
getCenter: () =>
|
|
13
|
+
getCenter: () => import("ol/coordinate").Coordinate;
|
|
14
14
|
setCenter: (coords: Address) => void;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,7 +2,7 @@ import { useToken } from "./reuseable.js";
|
|
|
2
2
|
import { _get, _set, useNuxtApp, _takeRight } from "#imports";
|
|
3
3
|
const domain = location.hostname.split(".");
|
|
4
4
|
const tld = _takeRight(domain, 2).join(".");
|
|
5
|
-
export const BASE_URL = eval(process.env.BASE_URL);
|
|
5
|
+
export const BASE_URL = eval(process.env.BASE_URL) || "https://api.book.parand.app";
|
|
6
6
|
const setHeaders = (config) => {
|
|
7
7
|
const token = useToken();
|
|
8
8
|
_set(config, ["headers", "Authorization"], _get(config, ["headers", "Authorization"], token.value || ""));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsource/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "nuxt ui kit for unsource env",
|
|
6
6
|
"repository": "https://github.com/alisa2142/unsource-ui",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@neshan-maps-platform/vue3-openlayers": "^2.0.1",
|
|
40
40
|
"@nuxt/kit": "^3.19.3",
|
|
41
|
+
"@nuxtjs/device": "^3.2.4",
|
|
41
42
|
"@nuxtjs/i18n": "^8.5.6",
|
|
42
43
|
"@persian-tools/persian-tools": "^4.0.4",
|
|
43
44
|
"@types/big.js": "^6.2.2",
|
|
@@ -51,10 +52,12 @@
|
|
|
51
52
|
"numeral": "^2.0.6",
|
|
52
53
|
"nuxt-lodash": "^2.5.3",
|
|
53
54
|
"nuxt-swiper": "^1.2.2",
|
|
55
|
+
"ol": "^8.2.0",
|
|
54
56
|
"persian-number": "^1.6.0",
|
|
55
57
|
"socket.io-client": "^4.8.1",
|
|
56
58
|
"swiper": "^11.2.10",
|
|
57
59
|
"unocss-preset-scrollbar": "^3.2.0",
|
|
60
|
+
"vue3-persian-datetime-picker": "^1.2.2",
|
|
58
61
|
"vue3-toastify": "^0.2.8"
|
|
59
62
|
},
|
|
60
63
|
"peerDependencies": {
|