eco-vue-js 0.4.14 → 0.4.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
4
  search: string;
5
5
  title?: string | undefined;
6
- onSelect?: ((item: string | number) => any) | undefined;
6
+ onSelect?: ((item: Item) => any) | undefined;
7
7
  disabled?: boolean | undefined;
8
8
  loading?: boolean | undefined;
9
9
  modelValue: Item[];
@@ -14,7 +14,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
14
14
  placeholder?: string | undefined;
15
15
  errorMessage?: string | undefined;
16
16
  hasChanges?: boolean | undefined;
17
- onUnselect?: ((item: string | number) => any) | undefined;
17
+ onUnselect?: ((item: Item) => any) | undefined;
18
18
  mono?: boolean | undefined;
19
19
  noMargin?: boolean | undefined;
20
20
  mobileTitle?: string | undefined;
@@ -44,8 +44,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
44
44
  right?(_: {}): any;
45
45
  };
46
46
  emit: {
47
- (e: 'select', item: string | number): void;
48
- (e: 'unselect', item: string | number): void;
47
+ (e: 'select', item: Item): void;
48
+ (e: 'unselect', item: Item): void;
49
49
  (e: 'update:search', value: string): void;
50
50
  (e: 'create:option', value: string): void;
51
51
  };
@@ -57,7 +57,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
57
57
  required?: boolean | undefined;
58
58
  search: string;
59
59
  title?: string | undefined;
60
- onSelect?: ((item: string | number) => any) | undefined;
60
+ onSelect?: ((item: Item) => any) | undefined;
61
61
  disabled?: boolean | undefined;
62
62
  loading?: boolean | undefined;
63
63
  modelValue: Item[];
@@ -68,7 +68,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
68
68
  placeholder?: string | undefined;
69
69
  errorMessage?: string | undefined;
70
70
  hasChanges?: boolean | undefined;
71
- onUnselect?: ((item: string | number) => any) | undefined;
71
+ onUnselect?: ((item: Item) => any) | undefined;
72
72
  mono?: boolean | undefined;
73
73
  noMargin?: boolean | undefined;
74
74
  mobileTitle?: string | undefined;
@@ -102,8 +102,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
102
102
  right?(_: {}): any;
103
103
  };
104
104
  emit: {
105
- (e: 'select', item: string | number): void;
106
- (e: 'unselect', item: string | number): void;
105
+ (e: 'select', item: Item): void;
106
+ (e: 'unselect', item: Item): void;
107
107
  (e: 'update:search', value: string): void;
108
108
  (e: 'create:option', value: string): void;
109
109
  };
@@ -115,7 +115,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
115
115
  required?: boolean | undefined;
116
116
  search: string;
117
117
  title?: string | undefined;
118
- onSelect?: ((item: string | number) => any) | undefined;
118
+ onSelect?: ((item: Item) => any) | undefined;
119
119
  disabled?: boolean | undefined;
120
120
  loading?: boolean | undefined;
121
121
  modelValue: Item[];
@@ -126,7 +126,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
126
126
  placeholder?: string | undefined;
127
127
  errorMessage?: string | undefined;
128
128
  hasChanges?: boolean | undefined;
129
- onUnselect?: ((item: string | number) => any) | undefined;
129
+ onUnselect?: ((item: Item) => any) | undefined;
130
130
  mono?: boolean | undefined;
131
131
  noMargin?: boolean | undefined;
132
132
  mobileTitle?: string | undefined;
@@ -160,8 +160,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
160
160
  right?(_: {}): any;
161
161
  };
162
162
  emit: {
163
- (e: 'select', item: string | number): void;
164
- (e: 'unselect', item: string | number): void;
163
+ (e: 'select', item: Item): void;
164
+ (e: 'unselect', item: Item): void;
165
165
  (e: 'update:search', value: string): void;
166
166
  (e: 'create:option', value: string): void;
167
167
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA0KA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAwnB/D,MAAM;;;;;gBADF,IAAI,EAAE;;;;;;;;;;;;;;;a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;;gBAOsB,IAAI;;;;;;;;;;WAuBpC,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,IAAI,GAAG,IAAI;YAC3B,UAAU,QAAQ,IAAI,GAAG,IAAI;YAC7B,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;OAwmB4B,IAAI;;;gBA9BjE,MAAM;;;;;oBADF,IAAI,EAAE;;;;;;;;;;;;;;;iBAET,IAAI,EAAE;;;oBAOsB,IAAI;;;;;;;;;;;;;SAsB4B,IAAI;WACpE,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,IAAI,GAAG,IAAI;YAC3B,UAAU,QAAQ,IAAI,GAAG,IAAI;YAC7B,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA0kBjC,MAAM;;;;;wBADF,IAAI,EAAE;;;;;;;;;;;;;;;qBAET,IAAI,EAAE;;;wBAOsB,IAAI;;;;;;;;;;;;;aAsB4B,IAAI;eACpE,GAAG;;;;;;gBArEoB,GAAG;2BACL,GAAG;;;gBAxiBzB,QAAQ,QAAQ,IAAI,GAAG,IAAI;gBAC3B,UAAU,QAAQ,IAAI,GAAG,IAAI;gBAC7B,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAtC3C,wBAopB2E"}
@@ -1,11 +1,11 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Item extends string | number = string>(__VLS_props: {
2
+ declare const _default: <Item extends string | number, AllowClear extends boolean = false>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
4
  search: string;
5
5
  title?: string | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  loading?: boolean | undefined;
8
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
9
9
  modelValue: Item | null;
10
10
  icon?: SVGComponent | undefined;
11
11
  readonly?: boolean | undefined;
@@ -14,7 +14,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
14
14
  placeholder?: string | undefined;
15
15
  errorMessage?: string | undefined;
16
16
  hasChanges?: boolean | undefined;
17
- allowClear?: boolean | undefined;
17
+ allowClear?: AllowClear | undefined;
18
18
  mono?: boolean | undefined;
19
19
  noMargin?: boolean | undefined;
20
20
  mobileTitle?: string | undefined;
@@ -42,7 +42,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
42
42
  right?(_: {}): any;
43
43
  };
44
44
  emit: {
45
- (e: 'update:modelValue', value: Item | null): void;
45
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
46
46
  (e: 'update:search', value: string): void;
47
47
  (e: 'create:option', value: string): void;
48
48
  };
@@ -55,7 +55,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
55
55
  title?: string | undefined;
56
56
  disabled?: boolean | undefined;
57
57
  loading?: boolean | undefined;
58
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
58
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
59
59
  modelValue: Item | null;
60
60
  icon?: SVGComponent | undefined;
61
61
  readonly?: boolean | undefined;
@@ -64,7 +64,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
64
64
  placeholder?: string | undefined;
65
65
  errorMessage?: string | undefined;
66
66
  hasChanges?: boolean | undefined;
67
- allowClear?: boolean | undefined;
67
+ allowClear?: AllowClear | undefined;
68
68
  mono?: boolean | undefined;
69
69
  noMargin?: boolean | undefined;
70
70
  mobileTitle?: string | undefined;
@@ -95,7 +95,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
95
95
  right?(_: {}): any;
96
96
  };
97
97
  emit: {
98
- (e: 'update:modelValue', value: Item | null): void;
98
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
99
99
  (e: 'update:search', value: string): void;
100
100
  (e: 'create:option', value: string): void;
101
101
  };
@@ -109,7 +109,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
109
109
  title?: string | undefined;
110
110
  disabled?: boolean | undefined;
111
111
  loading?: boolean | undefined;
112
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
112
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
113
113
  modelValue: Item | null;
114
114
  icon?: SVGComponent | undefined;
115
115
  readonly?: boolean | undefined;
@@ -118,7 +118,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
118
118
  placeholder?: string | undefined;
119
119
  errorMessage?: string | undefined;
120
120
  hasChanges?: boolean | undefined;
121
- allowClear?: boolean | undefined;
121
+ allowClear?: AllowClear | undefined;
122
122
  mono?: boolean | undefined;
123
123
  noMargin?: boolean | undefined;
124
124
  mobileTitle?: string | undefined;
@@ -149,7 +149,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
149
149
  right?(_: {}): any;
150
150
  };
151
151
  emit: {
152
- (e: 'update:modelValue', value: Item | null): void;
152
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
153
153
  (e: 'update:search', value: string): void;
154
154
  (e: 'create:option', value: string): void;
155
155
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAoDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAqNrD,MAAM;;;;;gBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;aAEd,IAAI,EAAE;;;gBAOsB,IAAI;;;;;;;;WAsBpC,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAxJzB,mBAAmB,SAAS,IAAI,GAAG,IAAI,GAAG,IAAI;YAC9C,eAAe,SAAS,MAAM,GAAG,IAAI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SAqB4B,IAAI;WACpE,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAxJzB,mBAAmB,wDAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA6KjC,MAAM;;;;;wBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;qBAEd,IAAI,EAAE;;;wBAOsB,IAAI;;;;;;;;;;aAqB4B,IAAI;eACpE,GAAG;;;;;;gBAtDmB,GAAG;2BACJ,GAAG;;;gBAxJzB,mBAAmB,wDAAoB,IAAI;gBAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAtC3C,wBAsP2E"}
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  noMargin: { type: Boolean },
27
27
  icon: {},
28
28
  mono: { type: Boolean },
29
- allowClear: { type: Boolean },
29
+ allowClear: {},
30
30
  hideOptionIcon: { type: Boolean }
31
31
  },
32
32
  emits: ["update:modelValue", "update:search", "create:option"],
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.4.14",
7
+ "version": "0.4.15",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
11
11
  "preview": "vite preview",
12
12
  "test:unit": "vitest --environment jsdom --root src/",
13
13
  "build-only": "vite build",
14
- "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
14
+ "type-check": "vue-tsc --noEmit -p tsconfig.vue.json --composite false",
15
15
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
16
16
  "lint:no-fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
17
17
  "write-imports": "node write-imports.js"