eco-vue-js 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonGroup.vue.d.ts +5 -4
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +12 -4
- package/dist/components/Button/types.d.ts +17 -6
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +3 -4
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts +25 -0
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +101 -0
- package/dist/components/FormAsync/WFormAsyncButtonGroup.vue2.js +5 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts +26 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.d.ts.map +1 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue.js +131 -0
- package/dist/components/FormAsync/WFormAsyncInput.vue2.js +5 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts +27 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +139 -0
- package/dist/components/FormAsync/WFormAsyncSelectSingle.vue2.js +5 -0
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts +22 -0
- package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -0
- package/dist/components/FormAsync/WFormAsyncToggle.vue.js +89 -0
- package/dist/components/FormAsync/WFormAsyncToggle.vue2.js +5 -0
- package/dist/components/FormAsync/types.d.ts +85 -0
- package/dist/components/FormAsync/types.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -3
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +3 -3
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +6 -6
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.d.ts +2 -2
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +12 -13
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +44 -33
- package/dist/components/Select/WSelectAsync.vue.d.ts +4 -5
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +20 -15
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +2 -5
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -7
- package/dist/components/Select/WSelectSingle.vue.d.ts +8 -8
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +3 -2
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +4 -2
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +2 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +4 -2
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +4 -2
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +2 -2
- package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOptionPrefix.vue.js +3 -1
- package/dist/components/Select/types.d.ts +22 -20
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.d.ts +2 -2
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +3 -3
- package/dist/components/Toggle/WToggle.vue.d.ts +3 -12
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.js +3 -1
- package/dist/components/Toggle/types.d.ts +13 -0
- package/dist/components/Toggle/types.d.ts.map +1 -0
- package/dist/imports/componentsPlugin.d.ts +5 -1
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +8 -1
- package/dist/types/global.d.ts +98 -10
- package/dist/utils/api.d.ts +16 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api.js +28 -0
- package/dist/utils/useDefaultQuery.d.ts +2 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/dist/utils/useQueryUpdater.d.ts +12 -0
- package/dist/utils/useQueryUpdater.d.ts.map +1 -0
- package/dist/utils/useQueryUpdater.js +56 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +13 -1
- package/dist/utils/validate.d.ts +2 -0
- package/dist/utils/validate.d.ts.map +1 -0
- package/dist/utils/validate.js +3 -0
- package/package.json +28 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SelectAsyncPrefixProps, SelectOptionComponent } from '../types';
|
2
2
|
|
3
|
-
declare const _default: <Model extends number | string, Data extends DefaultData,
|
3
|
+
declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
4
4
|
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
5
5
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
6
6
|
onUnselect?: ((value: Model) => any) | undefined;
|
@@ -9,18 +9,20 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
9
9
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
10
10
|
onUnselect?: ((value: Model) => any) | undefined;
|
11
11
|
"onUpdate:fetching"?: ((value: boolean) => any) | undefined;
|
12
|
-
}, never>, "onUpdate:modelValue" | "onUnselect" | "onUpdate:fetching"> & SelectAsyncPrefixProps<Model, Data,
|
12
|
+
}, never>, "onUpdate:modelValue" | "onUnselect" | "onUpdate:fetching"> & SelectAsyncPrefixProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
|
13
13
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
14
14
|
attrs: any;
|
15
15
|
slots: ReturnType<() => Readonly<{
|
16
16
|
default?: (props: {
|
17
17
|
option: Data;
|
18
18
|
skeleton: boolean;
|
19
|
+
index: number;
|
19
20
|
}) => void;
|
20
21
|
}> & {
|
21
22
|
default?: (props: {
|
22
23
|
option: Data;
|
23
24
|
skeleton: boolean;
|
25
|
+
index: number;
|
24
26
|
}) => void;
|
25
27
|
}>;
|
26
28
|
emit: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;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x.$emit("unselect", $event)),
|
54
54
|
"onUpdate:fetching": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fetching", $event))
|
55
55
|
}, {
|
56
|
-
default: withCtx(({ option, skeleton }) => [
|
56
|
+
default: withCtx(({ option, skeleton, index }) => [
|
57
57
|
renderSlot(_ctx.$slots, "default", {
|
58
58
|
option,
|
59
|
+
index,
|
59
60
|
skeleton
|
60
61
|
})
|
61
62
|
]),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SelectAsyncPrefixPageProps, SelectOptionComponent } from '../types';
|
2
2
|
|
3
|
-
declare const _default: <Model extends string | number, Data extends DefaultData,
|
3
|
+
declare const _default: <Model extends string | number, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
4
4
|
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
5
5
|
onUnselect?: ((value: Model) => any) | undefined;
|
6
6
|
"onUpdate:pages-count"?: ((value: number) => any) | undefined;
|
@@ -9,18 +9,20 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
9
9
|
onUnselect?: ((value: Model) => any) | undefined;
|
10
10
|
"onUpdate:pages-count"?: ((value: number) => any) | undefined;
|
11
11
|
"onUpdate:fetching"?: ((value: boolean) => any) | undefined;
|
12
|
-
}, never>, "onUnselect" | "onUpdate:pages-count" | "onUpdate:fetching"> & SelectAsyncPrefixPageProps<Model, Data,
|
12
|
+
}, never>, "onUnselect" | "onUpdate:pages-count" | "onUpdate:fetching"> & SelectAsyncPrefixPageProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
|
13
13
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
14
14
|
attrs: any;
|
15
15
|
slots: ReturnType<() => Readonly<{
|
16
16
|
default?: (props: {
|
17
17
|
option: Data;
|
18
18
|
skeleton: boolean;
|
19
|
+
index: number;
|
19
20
|
}) => void;
|
20
21
|
}> & {
|
21
22
|
default?: (props: {
|
22
23
|
option: Data;
|
23
24
|
skeleton: boolean;
|
25
|
+
index: number;
|
24
26
|
}) => void;
|
25
27
|
}>;
|
26
28
|
emit: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAC,0BAA0B,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;yBAG1F,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyMxD,cAAc,CAAC;;;;;;;;mJAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;kBAnKR,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;kBAAjE,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;MAmKlC;UAClC;YAtMH,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;UAoMH;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnNvE,wBAmN4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
44
|
emit("update:fetching", false);
|
45
45
|
});
|
46
46
|
return (_ctx, _cache) => {
|
47
|
-
return openBlock(true), createElementBlock(Fragment, null, renderList([..._ctx.createdData ?? [], ..._ctx.previewData ?? unref(data)?.results ?? []], (option) => {
|
47
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList([..._ctx.createdData ?? [], ..._ctx.previewData ?? unref(data)?.results ?? []], (option, index) => {
|
48
48
|
return openBlock(), createElementBlock("div", {
|
49
49
|
key: _ctx.valueGetter(option),
|
50
50
|
class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
|
@@ -54,10 +54,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
54
54
|
}, [
|
55
55
|
renderSlot(_ctx.$slots, "default", {
|
56
56
|
option,
|
57
|
+
index,
|
57
58
|
skeleton: false
|
58
59
|
}, () => [
|
59
60
|
_ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
|
60
61
|
option,
|
62
|
+
index,
|
61
63
|
selected: true,
|
62
64
|
model: true,
|
63
65
|
skeleton: false
|
@@ -79,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
81
|
]),
|
80
82
|
key: "0"
|
81
83
|
} : void 0
|
82
|
-
]), 1040, ["option"])) : createCommentVNode("", true)
|
84
|
+
]), 1040, ["option", "index"])) : createCommentVNode("", true)
|
83
85
|
]),
|
84
86
|
!_ctx.optionComponent && !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
|
85
87
|
key: 0,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { SelectPrefixProps, SelectOptionComponent } from '../types';
|
2
2
|
|
3
|
-
declare const _default: <
|
3
|
+
declare const _default: <Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
4
4
|
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
5
5
|
onUnselect?: (() => any) | undefined;
|
6
6
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
7
7
|
onUnselect?: (() => any) | undefined;
|
8
|
-
}, never>, "onUnselect"> & SelectPrefixProps<
|
8
|
+
}, never>, "onUnselect"> & SelectPrefixProps<Data, OptionComponent>> & import('vue').PublicProps;
|
9
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
10
10
|
attrs: any;
|
11
11
|
slots: ReturnType<() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAA;yBAGrD,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAChF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyKxD,cAAc,CAAC;;;;uEAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;wBArBQ,GAAG;MAqBY;UAClC,KAtKH,UAAU,KAAG,IAAI,MAsK0B;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnLvE,wBAmL4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -5,6 +5,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "SelectOptionPrefix",
|
6
6
|
props: {
|
7
7
|
option: {},
|
8
|
+
index: {},
|
8
9
|
disabled: { type: Boolean },
|
9
10
|
loading: { type: Boolean },
|
10
11
|
disableClear: { type: Boolean },
|
@@ -23,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
24
|
renderSlot(_ctx.$slots, "option", {}, () => [
|
24
25
|
_ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
|
25
26
|
option: _ctx.option,
|
27
|
+
index: _ctx.index,
|
26
28
|
selected: true,
|
27
29
|
model: true
|
28
30
|
}), {
|
@@ -42,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
44
|
], 34)) : createCommentVNode("", true)
|
43
45
|
]),
|
44
46
|
_: 1
|
45
|
-
}, 16, ["option"])) : createCommentVNode("", true)
|
47
|
+
}, 16, ["option", "index"])) : createCommentVNode("", true)
|
46
48
|
]),
|
47
49
|
!_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createElementBlock("button", {
|
48
50
|
key: 0,
|
@@ -5,46 +5,48 @@ export type SelectOptionProps<Option> = {
|
|
5
5
|
option: Option;
|
6
6
|
selected?: boolean;
|
7
7
|
model?: boolean;
|
8
|
+
index?: number;
|
8
9
|
};
|
9
10
|
export type SelectOptionComponent<Option> = Component<SelectOptionProps<Option>>;
|
10
11
|
export interface SelectOptionComponentProps<Option, OptionComponent extends SelectOptionComponent<Option>> {
|
11
12
|
optionComponent?: OptionComponent;
|
12
13
|
optionComponentProps?: OptionComponent extends Component<infer Props> ? Partial<Omit<Props, keyof SelectOptionProps<Option>>> : never;
|
13
14
|
}
|
14
|
-
export interface SelectProps<
|
15
|
-
modelValue:
|
16
|
-
|
17
|
-
|
15
|
+
export interface SelectProps<Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'>, SelectOptionComponentProps<Data, OptionComponent> {
|
16
|
+
modelValue: Model[];
|
17
|
+
useQueryFnOptions: UseQueryEmpty<Data[]>;
|
18
|
+
valueGetter: (value: Data) => Model;
|
19
|
+
searchFn: (option: Data, search: string) => boolean;
|
18
20
|
emptyStub?: string;
|
19
21
|
disableClear?: boolean;
|
20
22
|
hidePrefix?: boolean;
|
21
23
|
allowCreate?: boolean;
|
22
24
|
hideOptionIcon?: boolean;
|
23
25
|
}
|
24
|
-
export interface SelectPrefixProps<
|
25
|
-
option:
|
26
|
+
export interface SelectPrefixProps<Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
|
27
|
+
option: Data;
|
28
|
+
index?: number;
|
26
29
|
disabled?: boolean;
|
27
30
|
loading?: boolean;
|
28
31
|
disableClear?: boolean;
|
29
32
|
}
|
30
|
-
export interface SelectSingleProps<
|
31
|
-
modelValue:
|
33
|
+
export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, OptionComponent>, 'modelValue' | 'disableClear'> {
|
34
|
+
modelValue: Model | null;
|
32
35
|
allowClear?: boolean & AllowClear;
|
33
36
|
searchModel?: boolean;
|
34
37
|
}
|
35
|
-
export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData,
|
36
|
-
|
37
|
-
useQueryFnPrefix?: UseQueryPaginated<Data,
|
38
|
+
export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
|
39
|
+
useQueryFnOptions: UseQueryPaginated<Data, QueryParams>;
|
40
|
+
useQueryFnPrefix?: UseQueryPaginated<Data, QueryParams>;
|
38
41
|
isInvalidPage: (error: unknown) => boolean;
|
39
42
|
queryParams: QueryParams;
|
40
43
|
previewData?: Data[];
|
41
44
|
createdData?: Data[];
|
42
|
-
valueGetter?: (data: Data) => Model;
|
43
45
|
valueQueryKey?: string;
|
44
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data,
|
46
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
|
45
47
|
}
|
46
|
-
export interface SelectAsyncPrefixProps<Model extends number | string, Data extends DefaultData,
|
47
|
-
useQueryFn: UseQueryPaginated<Data,
|
48
|
+
export interface SelectAsyncPrefixProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
|
49
|
+
useQueryFn: UseQueryPaginated<Data, QueryParams>;
|
48
50
|
modelValue: Model[];
|
49
51
|
disabled?: boolean;
|
50
52
|
loading?: boolean;
|
@@ -53,10 +55,10 @@ export interface SelectAsyncPrefixProps<Model extends number | string, Data exte
|
|
53
55
|
createdData?: Data[];
|
54
56
|
valueGetter: (value: Data) => Model;
|
55
57
|
valueQueryKey: string;
|
56
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data,
|
58
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
|
57
59
|
}
|
58
|
-
export interface SelectAsyncPrefixPageProps<Model extends number | string, Data extends DefaultData,
|
59
|
-
useQueryFn: UseQueryPaginated<Data,
|
60
|
+
export interface SelectAsyncPrefixPageProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
|
61
|
+
useQueryFn: UseQueryPaginated<Data, QueryParams>;
|
60
62
|
queryParams: QueryParams;
|
61
63
|
disabled?: boolean;
|
62
64
|
loading?: boolean;
|
@@ -64,9 +66,9 @@ export interface SelectAsyncPrefixPageProps<Model extends number | string, Data
|
|
64
66
|
previewData?: Data[];
|
65
67
|
createdData?: Data[];
|
66
68
|
valueGetter: (value: Data) => Model;
|
67
|
-
queryOptions?: Partial<Parameters<UseQueryPaginated<Data,
|
69
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, QueryParams>>[1]>;
|
68
70
|
}
|
69
|
-
export interface SelectAsyncSingleProps<Model extends number | string, Data extends DefaultData,
|
71
|
+
export interface SelectAsyncSingleProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectAsyncProps<Model, Data, QueryParams, OptionComponent>, 'modelValue' | 'disableClear' | 'previewData' | 'createdData'> {
|
70
72
|
modelValue: Model | null;
|
71
73
|
allowClear?: boolean & AllowClear;
|
72
74
|
searchModel?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAC,CAAA;
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAE7G,MAAM,MAAM,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhF,MAAM,WAAW,0BAA0B,CAAC,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC;IACvG,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,eAAe,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,iBAAiB,CAAC,MA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AG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,CAC3L,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;IACxI,UAAU,EAAE,KAAK,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,IAAI,CAAA;CACnB"}
|
@@ -3,7 +3,7 @@ import { default as WForm } from '../Form/WForm.vue';
|
|
3
3
|
|
4
4
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
5
5
|
names?: string[] | Record<number, string>;
|
6
|
-
|
6
|
+
namesForm?: string[] | Record<number, string>;
|
7
7
|
icons?: SVGComponent[] | Record<number, SVGComponent>;
|
8
8
|
slots?: VNode[];
|
9
9
|
lessTransitions?: boolean;
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
22
22
|
"update:has-changes": (value: boolean) => void;
|
23
23
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
24
24
|
names?: string[] | Record<number, string>;
|
25
|
-
|
25
|
+
namesForm?: string[] | Record<number, string>;
|
26
26
|
icons?: SVGComponent[] | Record<number, SVGComponent>;
|
27
27
|
slots?: VNode[];
|
28
28
|
lessTransitions?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AA4OA,OAAO,EAAkC,KAAK,KAAK,EAAoD,MAAM,KAAK,CAAA;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relative flex mb-4 overflow-x-auto overscroll-x-contain no-scrollbar snap-x snap-always snap-mandatory"
|
11
11
|
};
|
12
12
|
const _hoisted_3 = ["onClick"];
|
13
13
|
const _hoisted_4 = { class: "relative whitespace-nowrap px-4" };
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
__name: "WTabs",
|
16
16
|
props: {
|
17
17
|
names: {},
|
18
|
-
|
18
|
+
namesForm: {},
|
19
19
|
icons: {},
|
20
20
|
slots: {},
|
21
21
|
lessTransitions: { type: Boolean },
|
@@ -187,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
187
187
|
ref_for: true,
|
188
188
|
ref_key: "form",
|
189
189
|
ref: form,
|
190
|
-
name: _ctx.
|
190
|
+
name: _ctx.namesForm?.[index] ?? index.toString(),
|
191
191
|
title: _ctx.names?.[index],
|
192
192
|
"onUpdate:isValid": ($event) => updateIsValidMap(index, $event),
|
193
193
|
"onUpdate:hasChanges": ($event) => hasChangesMap[index] = $event
|
@@ -1,20 +1,11 @@
|
|
1
|
+
import { ToggleProps } from './types';
|
2
|
+
|
1
3
|
declare const _default: <Value extends boolean | null = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
2
4
|
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
3
5
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
4
6
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
|
5
7
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
6
|
-
}, never>, "onUpdate:modelValue"> &
|
7
|
-
modelValue: Value;
|
8
|
-
title?: string;
|
9
|
-
small?: boolean;
|
10
|
-
disabled?: boolean;
|
11
|
-
loading?: boolean;
|
12
|
-
readonly?: boolean;
|
13
|
-
rightLabel?: boolean;
|
14
|
-
noMargin?: boolean;
|
15
|
-
description?: string;
|
16
|
-
intermediate?: boolean;
|
17
|
-
}> & import('vue').PublicProps;
|
8
|
+
}, never>, "onUpdate:modelValue"> & ToggleProps<Value>> & import('vue').PublicProps;
|
18
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
19
10
|
attrs: any;
|
20
11
|
slots: ReturnType<() => {}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAGvB,KAAK,SAAS,OAAO,GAAG,IAAI,yBAC/B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAkMxD,cAAc,CAAC;;;;0DAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU,UAAuB;UAClC,KAtLH,mBAAmB,SAAS,KAAK,KAAG,IAAI,MAsLH;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5MvE,wBA4M4E;AAY5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -7,6 +7,7 @@ const _hoisted_2 = {
|
|
7
7
|
class: "text-xs font-normal text-description whitespace-pre-wrap break-words"
|
8
8
|
};
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
+
...{ inheritAttrs: false },
|
10
11
|
__name: "WToggle",
|
11
12
|
props: {
|
12
13
|
modelValue: {},
|
@@ -35,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
36
|
return (_ctx, _cache) => {
|
36
37
|
return openBlock(), createElementBlock("div", {
|
37
38
|
class: normalizeClass({
|
38
|
-
"mt-1 mb-4": !_ctx.noMargin
|
39
|
+
"mt-1 mb-4": !_ctx.noMargin,
|
40
|
+
[typeof _ctx.$attrs.class === "string" ? _ctx.$attrs.class : ""]: true
|
39
41
|
})
|
40
42
|
}, [
|
41
43
|
createElementVNode("button", {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface ToggleProps<Value extends boolean | null> {
|
2
|
+
modelValue: Value;
|
3
|
+
title?: string;
|
4
|
+
small?: boolean;
|
5
|
+
disabled?: boolean;
|
6
|
+
loading?: boolean;
|
7
|
+
readonly?: boolean;
|
8
|
+
rightLabel?: boolean;
|
9
|
+
noMargin?: boolean;
|
10
|
+
description?: string;
|
11
|
+
intermediate?: boolean;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,OAAO,GAAG,IAAI;IACvD,UAAU,EAAE,KAAK,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
|
@@ -25,6 +25,10 @@ import { default as WFilePicker } from '../components/FilePicker/WFilePicker.vue
|
|
25
25
|
import { default as WFilterWrapper } from '../components/FilterWrapper/WFilterWrapper.vue';
|
26
26
|
import { default as WForm } from '../components/Form/WForm.vue';
|
27
27
|
import { default as WFormValidator } from '../components/Form/WFormValidator.vue';
|
28
|
+
import { default as WFormAsyncButtonGroup } from '../components/FormAsync/WFormAsyncButtonGroup.vue';
|
29
|
+
import { default as WFormAsyncInput } from '../components/FormAsync/WFormAsyncInput.vue';
|
30
|
+
import { default as WFormAsyncSelectSingle } from '../components/FormAsync/WFormAsyncSelectSingle.vue';
|
31
|
+
import { default as WFormAsyncToggle } from '../components/FormAsync/WFormAsyncToggle.vue';
|
28
32
|
import { default as WHeaderBar } from '../components/HeaderBar/WHeaderBar.vue';
|
29
33
|
import { default as WImageViewer } from '../components/ImageViewer/WImageViewer.vue';
|
30
34
|
import { default as WInfiniteList } from '../components/InfiniteList/WInfiniteList.vue';
|
@@ -69,5 +73,5 @@ declare const _default: {
|
|
69
73
|
install: (app: App | any) => void;
|
70
74
|
};
|
71
75
|
export default _default;
|
72
|
-
export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
|
76
|
+
export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelectSingle, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
|
73
77
|
//# sourceMappingURL=componentsPlugin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;A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GAClB,CAAA"}
|
package/dist/main.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * as iconsDefault from './imports/iconsDefault';
|
2
2
|
export * as iconsSax from './imports/iconsSax';
|
3
3
|
export * from './imports/componentsPlugin';
|
4
|
+
export * from './utils/api';
|
4
5
|
export * from './utils/Notify';
|
5
6
|
export * from './utils/Modal';
|
6
7
|
export * from './utils/DOMListenerContainer';
|
@@ -9,6 +10,8 @@ export * from './utils/HorizontalAlign';
|
|
9
10
|
export * from './utils/dateTime';
|
10
11
|
export * from './utils/mobile';
|
11
12
|
export * from './utils/useDefaultQuery';
|
13
|
+
export * from './utils/useQueryUpdater';
|
12
14
|
export * from './utils/useCopy';
|
13
15
|
export * from './utils/utils';
|
16
|
+
export * from './utils/validate';
|
14
17
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
|
package/dist/main.js
CHANGED
@@ -28,6 +28,10 @@ export { default as WFilePicker } from './components/FilePicker/WFilePicker.vue.
|
|
28
28
|
export { default as WFilterWrapper } from './components/FilterWrapper/WFilterWrapper.vue.js';
|
29
29
|
export { default as WForm } from './components/Form/WForm.vue.js';
|
30
30
|
export { default as WFormValidator } from './components/Form/WFormValidator.vue.js';
|
31
|
+
export { default as WFormAsyncButtonGroup } from './components/FormAsync/WFormAsyncButtonGroup.vue.js';
|
32
|
+
export { default as WFormAsyncInput } from './components/FormAsync/WFormAsyncInput.vue.js';
|
33
|
+
export { default as WFormAsyncSelectSingle } from './components/FormAsync/WFormAsyncSelectSingle.vue.js';
|
34
|
+
export { default as WFormAsyncToggle } from './components/FormAsync/WFormAsyncToggle.vue.js';
|
31
35
|
export { default as WHeaderBar } from './components/HeaderBar/WHeaderBar.vue.js';
|
32
36
|
export { default as WImageViewer } from './components/ImageViewer/WImageViewer.vue.js';
|
33
37
|
export { default as WInfiniteList } from './components/InfiniteList/WInfiniteList.vue.js';
|
@@ -67,6 +71,7 @@ export { default as WTabsColumns } from './components/Tabs/WTabsColumns.vue.js';
|
|
67
71
|
export { default as WToggle } from './components/Toggle/WToggle.vue.js';
|
68
72
|
export { default as WTooltip } from './components/Tooltip/WTooltip.vue.js';
|
69
73
|
export { default as WTooltipContainer } from './components/Tooltip/WTooltipContainer.vue.js';
|
74
|
+
export { ApiError, ApiErrorCancel, handleApiError } from './utils/api.js';
|
70
75
|
export { Notify, initNotify } from './utils/Notify.js';
|
71
76
|
export { Modal, initModal } from './utils/Modal.js';
|
72
77
|
import './utils/supportsPassive.js';
|
@@ -75,5 +80,7 @@ export { HorizontalAlign } from './utils/HorizontalAlign.js';
|
|
75
80
|
export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfNextDay, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
|
76
81
|
export { getIsMobile, getIsTouchDevice } from './utils/mobile.js';
|
77
82
|
export { useDefaultQuery } from './utils/useDefaultQuery.js';
|
83
|
+
export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
|
78
84
|
export { useCopy } from './utils/useCopy.js';
|
79
|
-
export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, throttle } from './utils/utils.js';
|
85
|
+
export { debounce, genId, get, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, isId, isIndex, isPage, numberCompactFormatter, numberFormatter, parseId, parseIndex, percentCompactFormatter, set, throttle } from './utils/utils.js';
|
86
|
+
export { validateRequired } from './utils/validate.js';
|