eco-vue-js 0.5.4 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +2 -1
- 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 +45 -12
- 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 +6 -6
- 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 +6 -6
- 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/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/Modal/WModal.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 -0
- package/dist/utils/Modal.d.ts +8 -5
- package/dist/utils/Modal.d.ts.map +1 -1
- package/package.json +1 -1
@@ -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,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
|
+
}, { immediate: true });
|
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"}
|
@@ -1,10 +1,12 @@
|
|
1
1
|
declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
|
2
|
+
count?: number | undefined;
|
3
|
+
reverse?: boolean | undefined;
|
4
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
2
5
|
transition?: boolean | undefined;
|
3
6
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
4
7
|
valueGetter?: ((data: Data) => Model) | undefined;
|
5
8
|
wrap?: boolean | undefined;
|
6
9
|
scrollingElement?: Element | null | undefined;
|
7
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
10
|
queryParams: QueryParams;
|
9
11
|
selected?: Model[] | undefined;
|
10
12
|
selectOnly?: boolean | undefined;
|
@@ -15,20 +17,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
15
17
|
hidePageTitle?: boolean | undefined;
|
16
18
|
noGap?: boolean | undefined;
|
17
19
|
emptyStub?: string | undefined;
|
18
|
-
reverseSelection?: boolean | undefined;
|
19
|
-
allowPageSelection?: boolean | undefined;
|
20
20
|
minHeight?: boolean | undefined;
|
21
21
|
pageClass?: string | undefined;
|
22
22
|
refetchInterval?: number | false | undefined;
|
23
23
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
24
|
+
reverseSelection?: boolean | undefined;
|
25
|
+
allowPageSelection?: boolean | undefined;
|
24
26
|
maxPages?: number | undefined;
|
25
27
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
26
28
|
skipScrollTarget?: boolean | undefined;
|
27
29
|
pageLength?: number | undefined;
|
28
30
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
31
|
+
allowSelect?: boolean | undefined;
|
32
|
+
allowSelectRange?: boolean | undefined;
|
29
33
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
34
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
35
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
30
36
|
headerMargin?: number | undefined;
|
31
37
|
headerTopIgnore?: boolean | undefined;
|
38
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
32
39
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
33
40
|
attrs: any;
|
34
41
|
slots: Readonly<{
|
@@ -47,6 +54,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
47
54
|
}) => void) | undefined;
|
48
55
|
header?: ((props: {
|
49
56
|
goto: (page: number, itemIndex?: number) => void;
|
57
|
+
selectAllValue: boolean | null;
|
50
58
|
}) => void) | undefined;
|
51
59
|
}> & {
|
52
60
|
default?: ((props: {
|
@@ -64,24 +72,29 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
64
72
|
}) => void) | undefined;
|
65
73
|
header?: ((props: {
|
66
74
|
goto: (page: number, itemIndex?: number) => void;
|
75
|
+
selectAllValue: boolean | null;
|
67
76
|
}) => void) | undefined;
|
68
77
|
};
|
69
78
|
emit: {
|
70
79
|
(e: 'update:page', value: number | undefined): void;
|
71
80
|
(e: 'update:header-padding', value: number): void;
|
72
81
|
(e: 'update:count', value: number): void;
|
73
|
-
(e: '
|
82
|
+
(e: 'select', values: Model[]): void;
|
83
|
+
(e: 'select-reverse', values: Model[]): void;
|
84
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
74
85
|
};
|
75
86
|
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
76
87
|
resetPage(): void;
|
77
88
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
78
89
|
props: {
|
90
|
+
count?: number | undefined;
|
91
|
+
reverse?: boolean | undefined;
|
92
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
79
93
|
transition?: boolean | undefined;
|
80
94
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
81
95
|
valueGetter?: ((data: Data) => Model) | undefined;
|
82
96
|
wrap?: boolean | undefined;
|
83
97
|
scrollingElement?: Element | null | undefined;
|
84
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
85
98
|
queryParams: QueryParams;
|
86
99
|
selected?: Model[] | undefined;
|
87
100
|
selectOnly?: boolean | undefined;
|
@@ -92,20 +105,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
92
105
|
hidePageTitle?: boolean | undefined;
|
93
106
|
noGap?: boolean | undefined;
|
94
107
|
emptyStub?: string | undefined;
|
95
|
-
reverseSelection?: boolean | undefined;
|
96
|
-
allowPageSelection?: boolean | undefined;
|
97
108
|
minHeight?: boolean | undefined;
|
98
109
|
pageClass?: string | undefined;
|
99
110
|
refetchInterval?: number | false | undefined;
|
100
111
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
112
|
+
reverseSelection?: boolean | undefined;
|
113
|
+
allowPageSelection?: boolean | undefined;
|
101
114
|
maxPages?: number | undefined;
|
102
115
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
103
116
|
skipScrollTarget?: boolean | undefined;
|
104
117
|
pageLength?: number | undefined;
|
105
118
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
119
|
+
allowSelect?: boolean | undefined;
|
120
|
+
allowSelectRange?: boolean | undefined;
|
106
121
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
122
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
123
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
107
124
|
headerMargin?: number | undefined;
|
108
125
|
headerTopIgnore?: boolean | undefined;
|
126
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
109
127
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
110
128
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
111
129
|
resetPage(): void;
|
@@ -127,6 +145,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
127
145
|
}) => void) | undefined;
|
128
146
|
header?: ((props: {
|
129
147
|
goto: (page: number, itemIndex?: number) => void;
|
148
|
+
selectAllValue: boolean | null;
|
130
149
|
}) => void) | undefined;
|
131
150
|
}> & {
|
132
151
|
default?: ((props: {
|
@@ -144,25 +163,30 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
144
163
|
}) => void) | undefined;
|
145
164
|
header?: ((props: {
|
146
165
|
goto: (page: number, itemIndex?: number) => void;
|
166
|
+
selectAllValue: boolean | null;
|
147
167
|
}) => void) | undefined;
|
148
168
|
};
|
149
169
|
emit: {
|
150
170
|
(e: 'update:page', value: number | undefined): void;
|
151
171
|
(e: 'update:header-padding', value: number): void;
|
152
172
|
(e: 'update:count', value: number): void;
|
153
|
-
(e: '
|
173
|
+
(e: 'select', values: Model[]): void;
|
174
|
+
(e: 'select-reverse', values: Model[]): void;
|
175
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
154
176
|
};
|
155
177
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
156
178
|
[key: string]: any;
|
157
179
|
}> & {
|
158
180
|
__ctx?: {
|
159
181
|
props: {
|
182
|
+
count?: number | undefined;
|
183
|
+
reverse?: boolean | undefined;
|
184
|
+
onSelect?: ((values: Model[]) => any) | undefined;
|
160
185
|
transition?: boolean | undefined;
|
161
186
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
162
187
|
valueGetter?: ((data: Data) => Model) | undefined;
|
163
188
|
wrap?: boolean | undefined;
|
164
189
|
scrollingElement?: Element | null | undefined;
|
165
|
-
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
166
190
|
queryParams: QueryParams;
|
167
191
|
selected?: Model[] | undefined;
|
168
192
|
selectOnly?: boolean | undefined;
|
@@ -173,20 +197,25 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
173
197
|
hidePageTitle?: boolean | undefined;
|
174
198
|
noGap?: boolean | undefined;
|
175
199
|
emptyStub?: string | undefined;
|
176
|
-
reverseSelection?: boolean | undefined;
|
177
|
-
allowPageSelection?: boolean | undefined;
|
178
200
|
minHeight?: boolean | undefined;
|
179
201
|
pageClass?: string | undefined;
|
180
202
|
refetchInterval?: number | false | undefined;
|
181
203
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
204
|
+
reverseSelection?: boolean | undefined;
|
205
|
+
allowPageSelection?: boolean | undefined;
|
182
206
|
maxPages?: number | undefined;
|
183
207
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
184
208
|
skipScrollTarget?: boolean | undefined;
|
185
209
|
pageLength?: number | undefined;
|
186
210
|
excludeParams?: (keyof QueryParams)[] | undefined;
|
211
|
+
allowSelect?: boolean | undefined;
|
212
|
+
allowSelectRange?: boolean | undefined;
|
187
213
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
214
|
+
"onSelect-reverse"?: ((values: Model[]) => any) | undefined;
|
215
|
+
"onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
|
188
216
|
headerMargin?: number | undefined;
|
189
217
|
headerTopIgnore?: boolean | undefined;
|
218
|
+
selectedRange?: SelectedRange<Model> | undefined;
|
190
219
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
191
220
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
192
221
|
resetPage(): void;
|
@@ -208,6 +237,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
208
237
|
}) => void) | undefined;
|
209
238
|
header?: ((props: {
|
210
239
|
goto: (page: number, itemIndex?: number) => void;
|
240
|
+
selectAllValue: boolean | null;
|
211
241
|
}) => void) | undefined;
|
212
242
|
}> & {
|
213
243
|
default?: ((props: {
|
@@ -225,13 +255,16 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
225
255
|
}) => void) | undefined;
|
226
256
|
header?: ((props: {
|
227
257
|
goto: (page: number, itemIndex?: number) => void;
|
258
|
+
selectAllValue: boolean | null;
|
228
259
|
}) => void) | undefined;
|
229
260
|
};
|
230
261
|
emit: {
|
231
262
|
(e: 'update:page', value: number | undefined): void;
|
232
263
|
(e: 'update:header-padding', value: number): void;
|
233
264
|
(e: 'update:count', value: number): void;
|
234
|
-
(e: '
|
265
|
+
(e: 'select', values: Model[]): void;
|
266
|
+
(e: 'select-reverse', values: Model[]): void;
|
267
|
+
(e: 'select-range', value: SelectedRange<Model>): void;
|
235
268
|
};
|
236
269
|
} | undefined;
|
237
270
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAkFA;;;;;;;0BA4ZyB,IAAI,KAAK,KAAK;;;iBAxBtB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;mBAiB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;WAwBlF,GAAG;;;kBAhRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;kBACZ,MAAM;mBACL,MAAM;cACT,IAAI;;yBA9EQ,MAAM,cAAc,MAAM;;cAkFtC,IAAI;;;kBAfF,IAAI;+BACS,IA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