@unsource/ui 2.0.6 → 2.0.8

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": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.0.6",
4
+ "version": "2.0.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -13,10 +13,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
13
  properties: Form;
14
14
  required: string[];
15
15
  }>;
16
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update:modelValue": (value: any) => any;
18
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
17
  declare const _default: typeof __VLS_export;
22
18
  export default _default;
@@ -9,6 +9,7 @@
9
9
  :required="inputIsRequire(item)"
10
10
  :options="Options(item.input?.options || [])"
11
11
  :is-error="errors?.includes(_camelCase(item.input?.key))"
12
+ @update:model-value="$emit(`update:key`, { key: _camelCase(item.input?.key), value: $event })"
12
13
  />
13
14
  </div>
14
15
  </template>
@@ -19,6 +20,7 @@ const { items } = defineProps({
19
20
  items: { type: Array, required: true },
20
21
  errors: { type: Array, required: false }
21
22
  });
23
+ defineEmits(["update:key"]);
22
24
  const form = defineModel({ type: null, ...{ default: {} } });
23
25
  const getter = (key) => (e) => _get(e, key);
24
26
  const inputIsRequire = (item) => item.requiredByValues?.length && item.requiredby ? item.requiredByValues.includes(`${form.value[_camelCase(item.requiredby)]}`) : item.activatedByValues?.length && item.requiredby ? item.activatedByValues.includes(`${form.value[_camelCase(item.requiredby)]}`) : item.requiredby ? form.value[_camelCase(item.requiredby)] : item.required;
@@ -13,10 +13,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
13
  properties: Form;
14
14
  required: string[];
15
15
  }>;
16
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- "update:modelValue": (value: any) => any;
18
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
17
  declare const _default: typeof __VLS_export;
22
18
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import * as Moment from 'jalali-moment';
2
- import Ajv from 'ajv';
3
2
  import type { CoinGateway, DiscountCode, Form, Transaction, Wallet } from '../types/models.js';
4
3
  import type { Address, MetaData, SocketJoinObject } from '../types/app.js';
5
4
  import type { RemovableRef } from '@vueuse/core';
@@ -10,7 +9,7 @@ export declare const moment: typeof Moment;
10
9
  export declare const s2n: (string: string | number) => string;
11
10
  export declare const sleep: (ms: any) => Promise<unknown>;
12
11
  export declare const geoLink: (location: Location, isIos?: boolean) => string;
13
- export declare const ajv: Ajv;
12
+ export declare const ajv: any;
14
13
  export declare const useComputedRoute: (route: any, key: any) => import("vue").WritableComputedRef<any, any>;
15
14
  export declare const useComputedLodash: (value: any, keys: (string | number)[] | string) => import("vue").WritableComputedRef<any, any>;
16
15
  export declare const KMapper: (num: any) => string;
@@ -18,11 +18,11 @@ import {
18
18
  useState
19
19
  } from "#imports";
20
20
  import * as Moment from "jalali-moment";
21
- import Ajv from "ajv";
21
+ import * as Ajv from "ajv";
22
22
  import { io } from "socket.io-client";
23
23
  import { digitsFaToEn, digitsArToEn } from "@persian-tools/persian-tools";
24
- import Big from "big.js";
25
- import Handlebars from "handlebars";
24
+ import * as Big from "big.js";
25
+ import * as Handlebars from "handlebars";
26
26
  import { useToken, useUserId } from "./reuseable.js";
27
27
  export const NESHAN_API_KEY = "service.23c2db7869bd44b986353729776b338c";
28
28
  export const NESHAN_WEB_KEY = "web.698da9dc73764b18a38a4c5cc4f92320";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",