@vc-shell/framework 1.1.42 → 1.1.43
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/CHANGELOG.md +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +13 -13
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/molecules/vc-select/vc-select.vue +2 -2
|
@@ -4,14 +4,14 @@ export type MaybeArray<T> = T | T[];
|
|
|
4
4
|
declare const _default: <T, P extends {
|
|
5
5
|
results?: T[];
|
|
6
6
|
totalCount?: number;
|
|
7
|
-
} | undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
} | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
8
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
9
9
|
readonly onSearch?: ((inputValue: string) => any) | undefined;
|
|
10
10
|
readonly onClose?: (() => any) | undefined;
|
|
11
|
-
readonly "onUpdate:modelValue"?: ((inputValue: MaybeArray<string | (
|
|
11
|
+
readonly "onUpdate:modelValue"?: ((inputValue: MaybeArray<string | (P extends {
|
|
12
12
|
results?: T[];
|
|
13
13
|
totalCount?: number;
|
|
14
|
-
} ? Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer V)[] ? V : never : never : never :
|
|
14
|
+
} ? T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer V)[] ? V : never : never : never) : T)> | null) => any) | undefined;
|
|
15
15
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onClose" | "onUpdate:modelValue" | "onSearch"> & {
|
|
16
16
|
/**
|
|
17
17
|
* Name of select
|
|
@@ -78,20 +78,20 @@ declare const _default: <T, P extends {
|
|
|
78
78
|
* @param option The current option being processed
|
|
79
79
|
* @returns Value of the current option
|
|
80
80
|
*/
|
|
81
|
-
optionValue?: OptionProp<
|
|
81
|
+
optionValue?: OptionProp<P extends {
|
|
82
82
|
results?: T[];
|
|
83
83
|
totalCount?: number;
|
|
84
|
-
} ? Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer V)[] ? V : never : never : never :
|
|
84
|
+
} ? T & (Required<P>["results"] extends infer T_1 ? T_1 extends Required<P>["results"] ? T_1 extends (infer V)[] ? V : never : never : never) : T>;
|
|
85
85
|
/**
|
|
86
86
|
* Property of option which holds the 'label'
|
|
87
87
|
* @default title
|
|
88
88
|
* @param option The current option being processed
|
|
89
89
|
* @returns Label of the current option
|
|
90
90
|
*/
|
|
91
|
-
optionLabel?: OptionProp<
|
|
91
|
+
optionLabel?: OptionProp<P extends {
|
|
92
92
|
results?: T[];
|
|
93
93
|
totalCount?: number;
|
|
94
|
-
} ? Required<P>["results"] extends infer T_2 ? T_2 extends Required<P>["results"] ? T_2 extends (infer V)[] ? V : never : never : never :
|
|
94
|
+
} ? T & (Required<P>["results"] extends infer T_2 ? T_2 extends Required<P>["results"] ? T_2 extends (infer V)[] ? V : never : never : never) : T>;
|
|
95
95
|
/**
|
|
96
96
|
* Update model with the value of the selected option instead of the whole option
|
|
97
97
|
*/
|
|
@@ -174,10 +174,10 @@ declare const _default: <T, P extends {
|
|
|
174
174
|
/**
|
|
175
175
|
* Selected option -- its value is taken from model
|
|
176
176
|
*/
|
|
177
|
-
opt:
|
|
177
|
+
opt: P extends {
|
|
178
178
|
results?: T[];
|
|
179
179
|
totalCount?: number;
|
|
180
|
-
} ? Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never :
|
|
180
|
+
} ? T & (Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never) : T;
|
|
181
181
|
/**
|
|
182
182
|
* Always true -- passed as prop
|
|
183
183
|
*/
|
|
@@ -199,10 +199,10 @@ declare const _default: <T, P extends {
|
|
|
199
199
|
/**
|
|
200
200
|
* Option -- its value is taken from 'options' prop
|
|
201
201
|
*/
|
|
202
|
-
opt:
|
|
202
|
+
opt: P extends {
|
|
203
203
|
results?: T[];
|
|
204
204
|
totalCount?: number;
|
|
205
|
-
} ? Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never :
|
|
205
|
+
} ? T & (Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never) : T;
|
|
206
206
|
/**
|
|
207
207
|
* Is option selected
|
|
208
208
|
*/
|
|
@@ -215,10 +215,10 @@ declare const _default: <T, P extends {
|
|
|
215
215
|
}) => any;
|
|
216
216
|
"no-options": (props: any) => any;
|
|
217
217
|
};
|
|
218
|
-
emit: ((evt: "search", inputValue: string) => void) & ((evt: "close") => void) & ((evt: "update:modelValue", inputValue: MaybeArray<string | (
|
|
218
|
+
emit: ((evt: "search", inputValue: string) => void) & ((evt: "close") => void) & ((evt: "update:modelValue", inputValue: MaybeArray<string | (P extends {
|
|
219
219
|
results?: T[];
|
|
220
220
|
totalCount?: number;
|
|
221
|
-
} ? Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never :
|
|
221
|
+
} ? T & (Required<P>["results"] extends infer T_3 ? T_3 extends Required<P>["results"] ? T_3 extends (infer V)[] ? V : never : never : never) : T)> | null) => void);
|
|
222
222
|
}>) => import("vue").VNode & {
|
|
223
223
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
224
224
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-select.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-select/vc-select.vue"],"names":[],"mappings":"AA+5CA,OAAO,EAQL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAK1B,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;AACzE,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;yBACnB,CAAC,EAAE,CAAC,SAAS;IAAE,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"vc-select.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/molecules/vc-select/vc-select.vue"],"names":[],"mappings":"AA+5CA,OAAO,EAQL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAK1B,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;AACzE,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;yBACnB,CAAC,EAAE,CAAC,SAAS;IAAE,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,SAAS,EAC3F,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,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C;EA45C9C,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA56CzE,wBA46C4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@fullhuman/postcss-purgecss": "^7.0.2",
|
|
72
72
|
"@types/dompurify": "^3.0.5",
|
|
73
|
-
"@vc-shell/api-client-generator": "^1.1.
|
|
74
|
-
"@vc-shell/config-generator": "^1.1.
|
|
75
|
-
"@vc-shell/ts-config": "^1.1.
|
|
73
|
+
"@vc-shell/api-client-generator": "^1.1.43",
|
|
74
|
+
"@vc-shell/config-generator": "^1.1.43",
|
|
75
|
+
"@vc-shell/ts-config": "^1.1.43",
|
|
76
76
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
77
77
|
"@vue/test-utils": "^2.4.5",
|
|
78
78
|
"cypress-signalr-mock": "^1.5.0",
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
</template>
|
|
330
330
|
|
|
331
331
|
<!-- eslint-disable @typescript-eslint/no-explicit-any -->
|
|
332
|
-
<script lang="ts" setup generic="T, P extends { results?: T[]; totalCount?: number } | undefined">
|
|
332
|
+
<script lang="ts" setup generic="T, P extends { results?: T[]; totalCount?: number } | undefined = undefined">
|
|
333
333
|
import { ref, computed, watch, nextTick, Ref, toRefs, onMounted, onUnmounted } from "vue";
|
|
334
334
|
import { vOnClickOutside } from "@vueuse/components";
|
|
335
335
|
import * as _ from "lodash-es";
|
|
@@ -361,7 +361,7 @@ type FloatingInstanceType = UseFloatingReturn & {
|
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
363
|
type ArrayElementType<U> = U extends Array<infer V> ? V : never;
|
|
364
|
-
type Option =
|
|
364
|
+
type Option = P extends { results?: T[]; totalCount?: number } ? T & ArrayElementType<Required<P>["results"]> : T;
|
|
365
365
|
|
|
366
366
|
defineSlots<{
|
|
367
367
|
/**
|