eco-vue-js 0.5.3 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButton.vue.d.ts +4 -3
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +2 -1
- package/dist/components/Button/WButtonAction.vue.d.ts +6 -5
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +2 -7
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +2 -1
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +26 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +4 -3
- package/dist/components/Button/WButtonSelection.vue.d.ts +10 -13
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +31 -15
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +2 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +6 -3
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +4 -3
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +2 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +48 -15
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +81 -32
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +9 -9
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +17 -17
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +10 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.js +11 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +9 -9
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +49 -64
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +33 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +27 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +5 -0
- package/dist/components/InfiniteList/models/injection.d.ts +16 -0
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/injection.js +4 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts +14 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useSelected.js +159 -0
- package/dist/components/Input/WInput.vue.d.ts +3 -3
- package/dist/components/Input/WInputAsync.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.d.ts +3 -3
- package/dist/components/Link/WLink.vue.d.ts +3 -2
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.js +2 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +10 -18
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.js +50 -25
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +23 -2
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +3 -2
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +2 -1
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +25 -4
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +4 -3
- package/dist/components/Notify/models/types.d.ts +1 -0
- package/dist/components/Notify/models/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +3 -3
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- 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/SelectOption.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/types/global.d.ts +13 -10
- package/dist/types/types.d.ts +9 -0
- package/dist/utils/Modal.d.ts +8 -5
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/package.json +4 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import { SemanticType } from '../../utils/SemanticType';
|
2
|
-
|
2
|
+
import type { LinkProps } from '../../types/types';
|
3
|
+
interface Props extends LinkProps {
|
3
4
|
semanticType?: SemanticType;
|
4
5
|
disabled?: boolean;
|
5
6
|
loading?: boolean;
|
@@ -30,10 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
30
31
|
onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
31
32
|
}, {
|
32
33
|
type: string;
|
34
|
+
tag: "a" | "button";
|
35
|
+
semanticType: SemanticType;
|
33
36
|
to: import("vue-router").RouteLocationRaw;
|
34
37
|
target: "_self" | "_blank" | "_parent" | "_top";
|
35
|
-
semanticType: SemanticType;
|
36
|
-
tag: "a" | "button";
|
37
38
|
href: string;
|
38
39
|
}, {}>, {
|
39
40
|
default?(_: {}): any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AA8CA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AA8CA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAGjD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,SAAS;IAC/B,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,GAAG,CAAC,EAAE,GAAG,GAAG,QAAQ,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACj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,7 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
replace: { type: Boolean },
|
16
16
|
href: { default: void 0 },
|
17
17
|
target: { default: void 0 },
|
18
|
-
minimize: { type: Boolean }
|
18
|
+
minimize: { type: Boolean },
|
19
|
+
to: { default: void 0 }
|
19
20
|
},
|
20
21
|
emits: ["click"],
|
21
22
|
setup(__props, { emit: __emit }) {
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { SemanticType } from '../../
|
2
|
-
|
1
|
+
import { SemanticType } from '../../utils/SemanticType';
|
2
|
+
import type { LinkProps } from '../../types/types';
|
3
|
+
interface Props extends LinkProps {
|
3
4
|
icon?: SVGComponent;
|
4
5
|
title: string;
|
5
6
|
active?: boolean;
|
@@ -26,10 +27,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
26
27
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
27
28
|
}, {
|
28
29
|
count: number;
|
29
|
-
to: import("vue-router").RouteLocationRaw;
|
30
|
-
semanticType: SemanticType;
|
31
|
-
tag: "a" | "button";
|
32
30
|
icon: SVGComponent;
|
31
|
+
tag: "a" | "button";
|
32
|
+
semanticType: SemanticType;
|
33
|
+
to: import("vue-router").RouteLocationRaw;
|
33
34
|
}, {}>, {
|
34
35
|
icon?(_: {}): any;
|
35
36
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAmCA;AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,
|
1
|
+
{"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAmCA;AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAsB5C,UAAU,KAAM,SAAQ,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B,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,13 +1,7 @@
|
|
1
1
|
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, withDirectives, vShow, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
|
2
2
|
import { RouterLink } from 'vue-router';
|
3
3
|
import _sfc_main$1 from '../Counter/WCounter.vue.js';
|
4
|
-
import './WButton.vue.js';
|
5
4
|
import { SemanticType } from '../../utils/SemanticType.js';
|
6
|
-
import '../../utils/supportsPassive.js';
|
7
|
-
import '../Dropdown/utils/DropdownStyle.js';
|
8
|
-
import '../../utils/Modal.js';
|
9
|
-
import '../Link/WLink.vue.js';
|
10
|
-
import '@tanstack/vue-query';
|
11
5
|
|
12
6
|
const _hoisted_1 = { class: "font-normal text-center md:text-base text-[0.625rem] whitespace-nowrap" };
|
13
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -19,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
13
|
tag: { default: "button" },
|
20
14
|
count: { default: void 0 },
|
21
15
|
semanticType: { default: SemanticType.SECONDARY },
|
22
|
-
outline: { type: Boolean }
|
16
|
+
outline: { type: Boolean },
|
17
|
+
to: { default: void 0 }
|
23
18
|
},
|
24
19
|
emits: ["click"],
|
25
20
|
setup(__props) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WButtonMore.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMore.vue"],"names":[],"mappings":"AA2CA;;;;;;;;AAyLA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -36,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
"max-width": 320,
|
37
37
|
"horizontal-align": unref(HorizontalAlign).LEFT_INNER,
|
38
38
|
"update-align": false,
|
39
|
-
teleport: ""
|
39
|
+
teleport: "",
|
40
|
+
"no-z-index": ""
|
40
41
|
}, {
|
41
42
|
toggle: withCtx(() => [
|
42
43
|
createElementVNode("div", {
|
@@ -1,11 +1,27 @@
|
|
1
|
-
|
1
|
+
import type { LinkProps } from '../../types/types';
|
2
|
+
interface Props extends LinkProps {
|
2
3
|
text: string;
|
3
4
|
icon?: SVGComponent;
|
4
5
|
disabled?: boolean;
|
5
6
|
href?: string;
|
6
7
|
download?: string;
|
7
8
|
}
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
10
|
+
icon: undefined;
|
11
|
+
href: undefined;
|
12
|
+
download: undefined;
|
13
|
+
to: undefined;
|
14
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
15
|
+
icon: undefined;
|
16
|
+
href: undefined;
|
17
|
+
download: undefined;
|
18
|
+
to: undefined;
|
19
|
+
}>>>, {
|
20
|
+
icon: SVGComponent;
|
21
|
+
to: import("vue-router").RouteLocationRaw;
|
22
|
+
href: string;
|
23
|
+
download: string;
|
24
|
+
}, {}>, {
|
9
25
|
icon?(_: {}): any;
|
10
26
|
}>;
|
11
27
|
export default _default;
|
@@ -18,6 +34,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
34
|
required: true;
|
19
35
|
};
|
20
36
|
};
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
39
|
+
default: D[K];
|
40
|
+
}> : P[K];
|
41
|
+
};
|
42
|
+
type __VLS_Prettify<T> = {
|
43
|
+
[K in keyof T]: T[K];
|
44
|
+
} & {};
|
21
45
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
22
46
|
new (): {
|
23
47
|
$slots: S;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonMoreItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMoreItem.vue"],"names":[],"mappings":"AAkBA;
|
1
|
+
{"version":3,"file":"WButtonMoreItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMoreItem.vue"],"names":[],"mappings":"AAkBA;AAGA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,SAAS;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,C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
icon: {},
|
9
|
+
icon: { default: void 0 },
|
10
10
|
disabled: { type: Boolean },
|
11
|
-
href: {},
|
12
|
-
download: {}
|
11
|
+
href: { default: void 0 },
|
12
|
+
download: { default: void 0 },
|
13
|
+
to: { default: void 0 }
|
13
14
|
},
|
14
15
|
setup(__props) {
|
15
16
|
return (_ctx, _cache) => {
|
@@ -1,27 +1,24 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
2
2
|
title?: string | undefined;
|
3
|
-
|
4
|
-
disableMessageMore?: string | undefined;
|
3
|
+
disableMessage?: string | undefined;
|
5
4
|
}>, {
|
6
5
|
title: string;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
disableMessage: string;
|
7
|
+
}>, {
|
8
|
+
clearSelected: (() => void) | undefined;
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
10
|
+
"update:selectionCount": (value: number) => void;
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
12
12
|
title?: string | undefined;
|
13
|
-
|
14
|
-
disableMessageMore?: string | undefined;
|
13
|
+
disableMessage?: string | undefined;
|
15
14
|
}>, {
|
16
15
|
title: string;
|
17
|
-
|
18
|
-
disableMessageMore: undefined;
|
16
|
+
disableMessage: string;
|
19
17
|
}>>> & {
|
20
|
-
"
|
18
|
+
"onUpdate:selectionCount"?: ((value: number) => any) | undefined;
|
21
19
|
}, {
|
22
20
|
title: string;
|
23
|
-
|
24
|
-
disableMessageMore: string;
|
21
|
+
disableMessage: string;
|
25
22
|
}, {}>;
|
26
23
|
export default _default;
|
27
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAoEA
|
1
|
+
{"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAoEA;;;;;;;;;;;;;;;;;;;;WAoUY,MAAM;oBACG,MAAM;;AAR3B,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, unref, withCtx, createVNode, markRaw, createCommentVNode, Transition, toDisplayString } from 'vue';
|
1
|
+
import { defineComponent, ref, inject, computed, watch, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, unref, withCtx, createVNode, markRaw, createCommentVNode, Transition, toDisplayString } from 'vue';
|
2
2
|
import { numberFormatter } from '../../utils/utils.js';
|
3
3
|
import IconCancel from '../../assets/icons/default/IconCancel.svg.js';
|
4
4
|
import IconMore from '../../assets/icons/default/IconMore.svg.js';
|
@@ -6,6 +6,7 @@ import _sfc_main$1 from '../DropdownMenu/WDropdownMenu.vue.js';
|
|
6
6
|
import _sfc_main$2 from './WButtonSelectionAction.vue.js';
|
7
7
|
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
8
8
|
import _sfc_main$3 from '../ClickOutside/WClickOutside.vue.js';
|
9
|
+
import { wInfiniteListSelection } from '../InfiniteList/models/injection.js';
|
9
10
|
|
10
11
|
const _hoisted_1 = { class: "grid grid-cols-[1fr,auto] h-12 pb-3 w-full" };
|
11
12
|
const _hoisted_2 = { class: "flex" };
|
@@ -21,20 +22,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
22
|
__name: "WButtonSelection",
|
22
23
|
props: {
|
23
24
|
title: { default: "item" },
|
24
|
-
|
25
|
-
disableMessageMore: { default: void 0 }
|
25
|
+
disableMessage: { default: "No selected items" }
|
26
26
|
},
|
27
|
-
emits: ["
|
28
|
-
setup(__props) {
|
27
|
+
emits: ["update:selectionCount"],
|
28
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
29
|
+
const props = __props;
|
30
|
+
const emit = __emit;
|
29
31
|
const isOpen = ref(false);
|
32
|
+
const {
|
33
|
+
selectedCount,
|
34
|
+
clearSelected
|
35
|
+
} = inject(wInfiniteListSelection, {});
|
36
|
+
const disableMessageValue = computed(() => selectedCount?.value === 0 ? props.disableMessage : void 0);
|
37
|
+
if (selectedCount) {
|
38
|
+
watch(selectedCount, (value) => {
|
39
|
+
emit("update:selectionCount", value);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
__expose({
|
43
|
+
clearSelected
|
44
|
+
});
|
30
45
|
return (_ctx, _cache) => {
|
31
46
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
32
47
|
createElementVNode("div", _hoisted_2, [
|
33
48
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
|
34
49
|
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
35
50
|
key: index,
|
51
|
+
"disable-message": disableMessageValue.value,
|
36
52
|
class: "border-r border-solid border-gray-300 dark:border-gray-700 last:border-r-0"
|
37
|
-
});
|
53
|
+
}, null, 8, ["disable-message"]);
|
38
54
|
}), 128)),
|
39
55
|
_ctx.$slots.more?.()?.length ? (openBlock(), createBlock(_sfc_main$1, {
|
40
56
|
key: 0,
|
@@ -47,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
63
|
createVNode(_sfc_main$2, {
|
48
64
|
title: "More",
|
49
65
|
icon: markRaw(unref(IconMore)),
|
50
|
-
"disable-message":
|
66
|
+
"disable-message": disableMessageValue.value,
|
51
67
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
|
52
68
|
}, null, 8, ["icon", "disable-message"])
|
53
69
|
]),
|
@@ -60,8 +76,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
76
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.more?.(), (slot, index) => {
|
61
77
|
return openBlock(), createBlock(resolveDynamicComponent(slot), {
|
62
78
|
key: index,
|
79
|
+
"disable-message": disableMessageValue.value,
|
63
80
|
class: "first:pt-2 last:pb-2"
|
64
|
-
});
|
81
|
+
}, null, 8, ["disable-message"]);
|
65
82
|
}), 128))
|
66
83
|
]),
|
67
84
|
_: 1
|
@@ -77,17 +94,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
94
|
"leave-to-class": "opacity-0"
|
78
95
|
}, {
|
79
96
|
default: withCtx(() => [
|
80
|
-
|
97
|
+
unref(selectedCount) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
81
98
|
createElementVNode("div", _hoisted_4, [
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
createElementVNode("span", _hoisted_7, " " + toDisplayString(_ctx.title) + toDisplayString(_ctx.selectedLength === 1 ? "" : "s"), 1)
|
86
|
-
], 64)) : createCommentVNode("", true)
|
99
|
+
_hoisted_5,
|
100
|
+
createElementVNode("span", _hoisted_6, toDisplayString(unref(numberFormatter).format(unref(selectedCount))), 1),
|
101
|
+
createElementVNode("span", _hoisted_7, " " + toDisplayString(_ctx.title) + toDisplayString(unref(selectedCount) === 1 ? "" : "s"), 1)
|
87
102
|
]),
|
88
103
|
createElementVNode("div", {
|
89
104
|
class: "relative text-description sm-not:-px--inner-margin px-[1.125rem] flex items-center cursor-pointer select-none w-ripple w-ripple-hover",
|
90
|
-
onClick: _cache[2] || (_cache[2] =
|
105
|
+
onClick: _cache[2] || (_cache[2] = //@ts-ignore
|
106
|
+
(...args) => unref(clearSelected) && unref(clearSelected)(...args))
|
91
107
|
}, [
|
92
108
|
createVNode(unref(IconCancel))
|
93
109
|
])
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
9
9
|
intermediate?: boolean | undefined;
|
10
10
|
tooltipText?: string | undefined;
|
11
11
|
allowShift?: boolean | undefined;
|
12
|
+
alignTop?: boolean | undefined;
|
12
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
14
|
"update:modelValue": (value: boolean) => void;
|
14
15
|
"update-shift:modelValue": (value: boolean) => void;
|
@@ -23,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
23
24
|
intermediate?: boolean | undefined;
|
24
25
|
tooltipText?: string | undefined;
|
25
26
|
allowShift?: boolean | undefined;
|
27
|
+
alignTop?: boolean | undefined;
|
26
28
|
}>>> & {
|
27
29
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
28
30
|
"onUpdate-shift:modelValue"?: ((value: boolean) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AAoFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkRA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
loading: { type: Boolean },
|
21
21
|
intermediate: { type: Boolean },
|
22
22
|
tooltipText: {},
|
23
|
-
allowShift: { type: Boolean }
|
23
|
+
allowShift: { type: Boolean },
|
24
|
+
alignTop: { type: Boolean }
|
24
25
|
},
|
25
26
|
emits: ["update:modelValue", "update-shift:modelValue"],
|
26
27
|
setup(__props, { emit: __emit }) {
|
@@ -41,10 +42,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
42
|
return openBlock(), createElementBlock("button", {
|
42
43
|
ref_key: "element",
|
43
44
|
ref: element,
|
44
|
-
class: normalizeClass(["flex gap-2 cursor-pointer select-none outline-none w-ripple-trigger w-hover-circle-trigger
|
45
|
+
class: normalizeClass(["flex gap-2 cursor-pointer select-none outline-none w-ripple-trigger w-hover-circle-trigger w-hover-circle-opacity-[0.08]", {
|
45
46
|
"cursor-progress": _ctx.loading,
|
46
47
|
"cursor-not-allowed opacity-70": _ctx.disabled,
|
47
|
-
"pt-1 pb-4": _ctx.title
|
48
|
+
"pt-1 pb-4": _ctx.title,
|
49
|
+
"items-start pt-2": _ctx.alignTop,
|
50
|
+
"items-center": !_ctx.alignTop
|
48
51
|
}]),
|
49
52
|
onClick: toggle
|
50
53
|
}, [
|
@@ -7,6 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
7
7
|
updateAlign?: boolean | undefined;
|
8
8
|
emitUpdate?: boolean | undefined;
|
9
9
|
teleport?: boolean | undefined;
|
10
|
+
noZIndex?: boolean | undefined;
|
10
11
|
}>, {
|
11
12
|
updateDropdown: () => void;
|
12
13
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -19,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
19
20
|
updateAlign?: boolean | undefined;
|
20
21
|
emitUpdate?: boolean | undefined;
|
21
22
|
teleport?: boolean | undefined;
|
23
|
+
noZIndex?: boolean | undefined;
|
22
24
|
}>>> & {
|
23
25
|
"onUpdate:rect"?: (() => any) | undefined;
|
24
26
|
}, {}, {}>, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAuCA;AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA
|
1
|
+
{"version":3,"file":"WDropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/WDropdownMenu.vue"],"names":[],"mappings":"AAuCA;AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgM5D,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
horizontalAlign: {},
|
11
11
|
updateAlign: { type: Boolean },
|
12
12
|
emitUpdate: { type: Boolean },
|
13
|
-
teleport: { type: Boolean }
|
13
|
+
teleport: { type: Boolean },
|
14
|
+
noZIndex: { type: Boolean }
|
14
15
|
},
|
15
16
|
emits: ["update:rect"],
|
16
17
|
setup(__props, { expose: __expose }) {
|
@@ -49,8 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
50
|
"max-width": _ctx.maxWidth,
|
50
51
|
"emit-update": _ctx.emitUpdate,
|
51
52
|
class: normalizeClass([{
|
52
|
-
"z-[2]": !_ctx.teleport,
|
53
|
-
"z-30": _ctx.teleport
|
53
|
+
"z-[2]": !_ctx.teleport && !_ctx.noZIndex,
|
54
|
+
"z-30": _ctx.teleport && !_ctx.noZIndex
|
54
55
|
}, "will-change-[top,bottom]"]),
|
55
56
|
"onUpdate:rect": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:rect"))
|
56
57
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":"AA6CA;;;;;;;;;;
|
1
|
+
{"version":3,"file":"WImageViewer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer/WImageViewer.vue"],"names":[],"mappings":"AA6CA;;;;;;;;;;AAsKA,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|