eco-vue-js 0.8.17 → 0.8.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/FieldWrapper/WFieldWrapper.vue.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +82 -100
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts +39 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +51 -0
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue2.js +5 -0
- package/dist/components/InfiniteList/{WInfiniteListPages.vue.d.ts → components/InfiniteListPages.vue.d.ts} +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/{WInfiniteListPages.vue.js → components/InfiniteListPages.vue.js} +7 -7
- package/dist/components/InfiniteList/components/InfiniteListPages.vue2.js +5 -0
- package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +2 -2
- package/dist/components/Input/WInput.vue.d.ts +1 -0
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.js +132 -114
- package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputAsync.vue.js +33 -29
- package/dist/components/Select/WSelect.vue.js +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/dist/imports/componentsPlugin.d.ts +2 -2
- package/dist/imports/componentsPlugin.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/package.json +3 -3
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +0 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue2.js +0 -5
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AA6B9C,iBAAS,cAAc;;
|
1
|
+
{"version":3,"file":"WFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FieldWrapper/WFieldWrapper.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;AA6B9C,iBAAS,cAAc;;uBA6NI,GAAG;0BACC,GAAG;;;gCA1OP,OAAO,KAAG,IAAI;;YA2Ob,GAAG;;;gCA3OJ,OAAO,KAAG,IAAI;;YA4OX,GAAG;uBACL,GAAG;;;;;WAUjB,OAAO,IAA6B;EAEjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -102,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
102
102
|
}, [
|
103
103
|
renderSlot(_ctx.$slots, "field", normalizeProps(guardReactiveProps({ id: unref(id), setFocused, focused: focused.value })), () => [
|
104
104
|
createElementVNode("div", {
|
105
|
-
class: normalizeClass(["text-base font-normal min-h-[2.75rem] flex items-center border-t
|
105
|
+
class: normalizeClass(["text-base font-normal min-h-[2.75rem] flex items-center border-t border-solid border-gray-300 dark:border-gray-700", {
|
106
106
|
"font-mono": _ctx.mono
|
107
107
|
}])
|
108
108
|
}, [
|
@@ -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":"yBAiPiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+YxD,mBAAmB,CAAC;;;;;;;;oBA3Yd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;2BACF,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;qBAE9D,MAAM;gBACX,MAAM;sBAEA,OAAO;2BACF,OAAO;sBAEZ,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;mBACxB,KAAK,EAAE;wBACF,aAAa,CAAC,KAAK,CAAC;kBAC1B,OAAO;qBAEJ,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAyWuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAA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IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;YAkVZ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzZvE,wBAyZ4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent, ref, toRef, provide,
|
2
|
-
import
|
3
|
-
import _sfc_main$
|
4
|
-
import _sfc_main$3 from './components/InfiniteListPageSelectItem.vue.js';
|
1
|
+
import { defineComponent, ref, toRef, provide, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeProps, guardReactiveProps, unref, createVNode } from 'vue';
|
2
|
+
import _sfc_main$3 from './components/InfiniteListPages.vue.js';
|
3
|
+
import _sfc_main$4 from './components/InfiniteListPageSelectItem.vue.js';
|
5
4
|
import { useSelected } from './use/useSelected.js';
|
6
5
|
import { wInfiniteListSelection } from './models/injection.js';
|
7
|
-
import _sfc_main$
|
6
|
+
import _sfc_main$1 from './components/EmptyComponent.vue.js';
|
7
|
+
import _sfc_main$2 from './WInfiniteListWrapper.vue.js';
|
8
8
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "WInfiniteList",
|
@@ -52,7 +52,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
const goto = (page, itemIndex) => {
|
53
53
|
infiniteListPages.value?.goto(page, itemIndex);
|
54
54
|
};
|
55
|
-
const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
|
56
55
|
const {
|
57
56
|
setSelectedRange,
|
58
57
|
getIsSelected,
|
@@ -80,18 +79,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
80
79
|
selectedCount,
|
81
80
|
clearSelected: () => emit("select", [])
|
82
81
|
});
|
83
|
-
watch(isIntersecting, (value) => {
|
84
|
-
if (!value && headerHeight.value) {
|
85
|
-
updateHeaderPadding(headerHeight.value - props.headerMargin);
|
86
|
-
} else {
|
87
|
-
updateHeaderPadding(0);
|
88
|
-
}
|
89
|
-
});
|
90
|
-
onMounted(() => {
|
91
|
-
if (props.queryParams.page && props.queryParams.page > 1) {
|
92
|
-
isIntersecting.value = false;
|
93
|
-
}
|
94
|
-
});
|
95
82
|
onBeforeUnmount(() => {
|
96
83
|
updateHeaderPadding(0);
|
97
84
|
});
|
@@ -101,88 +88,83 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
101
88
|
}
|
102
89
|
});
|
103
90
|
return (_ctx, _cache) => {
|
104
|
-
return openBlock(),
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
}, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
|
182
|
-
]),
|
183
|
-
_: 3
|
184
|
-
}, 8, ["query-params", "use-query-fn", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
185
|
-
], 64);
|
91
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
|
92
|
+
"scrolling-element": _ctx.scrollingElement,
|
93
|
+
"header-margin": _ctx.headerMargin,
|
94
|
+
"init-is-intersecting": props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) && props.queryParams.page > 1 ? false : void 0,
|
95
|
+
"onUpdate:headerPadding": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:header-padding", $event))
|
96
|
+
}, {
|
97
|
+
header: withCtx(() => [
|
98
|
+
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
|
99
|
+
]),
|
100
|
+
default: withCtx((defaultScope) => [
|
101
|
+
createVNode(_sfc_main$3, {
|
102
|
+
ref_key: "infiniteListPages",
|
103
|
+
ref: infiniteListPages,
|
104
|
+
"query-params": _ctx.queryParams,
|
105
|
+
"use-query-fn": _ctx.useQueryFn,
|
106
|
+
"scrolling-element": _ctx.scrollingElement,
|
107
|
+
"skip-scroll-target": _ctx.skipScrollTarget,
|
108
|
+
"skeleton-length": _ctx.skeletonLength,
|
109
|
+
"hide-page-title": _ctx.hidePageTitle,
|
110
|
+
wrap: _ctx.wrap,
|
111
|
+
"no-gap": _ctx.noGap,
|
112
|
+
transition: _ctx.transition,
|
113
|
+
"page-length": _ctx.pageLength,
|
114
|
+
"header-top": _ctx.headerTopIgnore ? 0 : "headerTop" in defaultScope ? defaultScope.headerTop : 0,
|
115
|
+
"header-height": "headerHeight" in defaultScope ? defaultScope.headerHeight : 0,
|
116
|
+
"min-height": _ctx.minHeight,
|
117
|
+
"last-child": _ctx.lastChild,
|
118
|
+
"exclude-params": _ctx.excludeParams,
|
119
|
+
"empty-stub": _ctx.emptyStub,
|
120
|
+
"page-class": _ctx.pageClass,
|
121
|
+
"max-pages": _ctx.maxPages,
|
122
|
+
"refetch-interval": _ctx.refetchInterval,
|
123
|
+
"query-options": _ctx.queryOptions,
|
124
|
+
selected: _ctx.selected,
|
125
|
+
"value-getter": _ctx.valueGetter,
|
126
|
+
"select-only": _ctx.selectOnly,
|
127
|
+
"unselect-only": _ctx.unselectOnly,
|
128
|
+
"reverse-selection": _ctx.reverseSelection,
|
129
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
130
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
|
131
|
+
"onUpdate:count": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:count", $event)),
|
132
|
+
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
133
|
+
}, {
|
134
|
+
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
|
135
|
+
(openBlock(), createBlock(resolveDynamicComponent(skeleton ? _sfc_main$1 : _sfc_main$4), {
|
136
|
+
selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
|
137
|
+
"selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
|
138
|
+
"onUpdate:selected": ($event) => {
|
139
|
+
unref(toggleSelected)(_ctx.valueGetter(item), _ctx.reverse && !_ctx.selectedRange ? !$event : $event);
|
140
|
+
unref(setSelectedCursor)($event ? { page, index, id: _ctx.valueGetter(item) } : null);
|
141
|
+
},
|
142
|
+
"onUpdate:selectedRange": ($event) => unref(setSelectedRange)({ page, index, id: _ctx.valueGetter(item) }),
|
143
|
+
"onUpdate:selectedRangeHover": ($event) => unref(setRangeHover)({ page, index, id: _ctx.valueGetter(item) })
|
144
|
+
}, {
|
145
|
+
default: withCtx(() => [
|
146
|
+
renderSlot(_ctx.$slots, "default", {
|
147
|
+
item,
|
148
|
+
setter,
|
149
|
+
skeleton,
|
150
|
+
refetch,
|
151
|
+
previous,
|
152
|
+
next,
|
153
|
+
first,
|
154
|
+
last,
|
155
|
+
resetting,
|
156
|
+
page,
|
157
|
+
index
|
158
|
+
})
|
159
|
+
]),
|
160
|
+
_: 2
|
161
|
+
}, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
|
162
|
+
]),
|
163
|
+
_: 2
|
164
|
+
}, 1032, ["query-params", "use-query-fn", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
165
|
+
]),
|
166
|
+
_: 3
|
167
|
+
}, 40, ["scrolling-element", "header-margin", "init-is-intersecting"]);
|
186
168
|
};
|
187
169
|
}
|
188
170
|
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
slots: {
|
3
|
+
header?(_: {}): any;
|
4
|
+
default?(_: {
|
5
|
+
headerTop: number;
|
6
|
+
headerHeight: number;
|
7
|
+
}): any;
|
8
|
+
};
|
9
|
+
refs: {
|
10
|
+
indicator: HTMLDivElement;
|
11
|
+
header: HTMLDivElement;
|
12
|
+
};
|
13
|
+
attrs: Partial<{}>;
|
14
|
+
};
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
17
|
+
headerMargin?: number;
|
18
|
+
scrollingElement?: Element | null;
|
19
|
+
initIsIntersecting?: boolean;
|
20
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
21
|
+
"update:header-padding": (value: number) => any;
|
22
|
+
}, string, import('vue').PublicProps, Readonly<{
|
23
|
+
headerMargin?: number;
|
24
|
+
scrollingElement?: Element | null;
|
25
|
+
initIsIntersecting?: boolean;
|
26
|
+
}> & Readonly<{
|
27
|
+
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
28
|
+
}>, {
|
29
|
+
scrollingElement: Element | null;
|
30
|
+
headerMargin: number;
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
33
|
+
export default _default;
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
35
|
+
new (): {
|
36
|
+
$slots: S;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=WInfiniteListWrapper.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WInfiniteListWrapper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListWrapper.vue"],"names":[],"mappings":"AA8GA,iBAAS,cAAc;;wBAwCK,GAAG;;;;YACF,GAAG;;;;;;WAWlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;mBAtHF,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;mBAFb,MAAM;uBACF,OAAO,GAAG,IAAI;yBACZ,OAAO;;;;sBADT,OAAO,GAAG,IAAI;kBADlB,MAAM;6EAgIvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { defineComponent, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
2
|
+
import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "WInfiniteListWrapper",
|
6
|
+
props: {
|
7
|
+
headerMargin: { default: 0 },
|
8
|
+
scrollingElement: { default: void 0 },
|
9
|
+
initIsIntersecting: { type: Boolean }
|
10
|
+
},
|
11
|
+
emits: ["update:header-padding"],
|
12
|
+
setup(__props, { emit: __emit }) {
|
13
|
+
const props = __props;
|
14
|
+
const emit = __emit;
|
15
|
+
const updateHeaderPadding = (value) => {
|
16
|
+
emit("update:header-padding", value);
|
17
|
+
};
|
18
|
+
const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement, props.initIsIntersecting);
|
19
|
+
watch(isIntersecting, (value) => {
|
20
|
+
if (!value && headerHeight.value) {
|
21
|
+
updateHeaderPadding(headerHeight.value - props.headerMargin);
|
22
|
+
} else {
|
23
|
+
updateHeaderPadding(0);
|
24
|
+
}
|
25
|
+
});
|
26
|
+
onBeforeUnmount(() => {
|
27
|
+
updateHeaderPadding(0);
|
28
|
+
});
|
29
|
+
return (_ctx, _cache) => {
|
30
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
31
|
+
createElementVNode("div", {
|
32
|
+
ref_key: "indicator",
|
33
|
+
ref: indicator
|
34
|
+
}, null, 512),
|
35
|
+
createElementVNode("div", {
|
36
|
+
ref_key: "header",
|
37
|
+
ref: header,
|
38
|
+
class: normalizeClass(["sticky top-[var(--header-height)]", {
|
39
|
+
"z-[1]": unref(isIntersecting),
|
40
|
+
"z-20": !unref(isIntersecting)
|
41
|
+
}])
|
42
|
+
}, [
|
43
|
+
renderSlot(_ctx.$slots, "header")
|
44
|
+
], 2),
|
45
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ headerTop: unref(headerTop), headerHeight: unref(headerHeight) })))
|
46
|
+
], 64);
|
47
|
+
};
|
48
|
+
}
|
49
|
+
});
|
50
|
+
|
51
|
+
export { _sfc_main as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"yBA8TiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8kBxD,mBAAmB,CAAC;;;;;oBA1kBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;2BACJ,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,C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,EAAE,GAAG,IAAI;;;;;YAgiBH,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxlBvE,wBAwlB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, normalizeStyle, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, nextTick, unref, renderSlot } from 'vue';
|
2
|
-
import _sfc_main$1 from './
|
3
|
-
import _sfc_main$3 from './
|
4
|
-
import { useRefetchNextPages } from '
|
5
|
-
import _sfc_main$2 from './
|
6
|
-
import { isEqualObj } from '
|
7
|
-
import { getIsScrollDown } from '
|
2
|
+
import _sfc_main$1 from './InfiniteListScroll.vue.js';
|
3
|
+
import _sfc_main$3 from './InfiniteListPage.vue.js';
|
4
|
+
import { useRefetchNextPages } from '../use/useRefetchNextPages.js';
|
5
|
+
import _sfc_main$2 from './InfiniteListButton.vue.js';
|
6
|
+
import { isEqualObj } from '../../../utils/utils.js';
|
7
|
+
import { getIsScrollDown } from '../models/utils.js';
|
8
8
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
-
__name: "
|
10
|
+
__name: "InfiniteListPages",
|
11
11
|
props: {
|
12
12
|
useQueryFn: {},
|
13
13
|
queryParams: {},
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const useInfiniteListHeader: (scrollingElement?: Element | null) => {
|
1
|
+
export declare const useInfiniteListHeader: (scrollingElement?: Element | null, initIsIntersecting?: boolean) => {
|
2
2
|
indicator: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
3
3
|
header: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
4
4
|
headerHeight: import('vue').Ref<number, number>;
|
@@ -18,12 +18,12 @@ const observerOptions = {
|
|
18
18
|
rootMargin: `-${headerElementHeight}px 100% 0px 0px`,
|
19
19
|
threshold: 1
|
20
20
|
};
|
21
|
-
const useInfiniteListHeader = (scrollingElement = document.scrollingElement) => {
|
21
|
+
const useInfiniteListHeader = (scrollingElement = document.scrollingElement, initIsIntersecting = true) => {
|
22
22
|
const indicator = ref();
|
23
23
|
const header = ref();
|
24
24
|
const headerHeight = ref(0);
|
25
25
|
const headerTop = ref(0);
|
26
|
-
const isIntersecting = ref(
|
26
|
+
const isIntersecting = ref(initIsIntersecting);
|
27
27
|
let observer = null;
|
28
28
|
let isFirst = true;
|
29
29
|
const observerCb = (entries) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA0WA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAA;yBAItB,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAssBxD,mBAAmB,CAAC,sBAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;qBA/lB/B,IAAI;oBAML,IAAI;MAylBkD,GAAG,IAAI;WACpE,GAAG;;uBAxDc,GAAG;0BACA,GAAG;wBACL,GAAG;wBACF,GAAG;wBACH,GAAG;uBACJ,GAAG;;;YApoBzB,mBAAmB,SAAS,4CAAa,SAAS,GAAG,IAAI;YACzD,gBAAgB,SAAS,aAAa,GAAG,IAAI;YAC7C,aAAa,SAAS,aAAa,GAAG,IAAI;YAC1C,eAAe,SAAS,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,oBAAoB,SAAS,aAAa,GAAG,IAAI;YACjD,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,WAAW,SAAS,UAAU,GAAG,IAAI;YACrC,cAAc,SAAS,UAAU,GAAG,IAAI;YACxC,cAAc,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;;;;YA+qBwB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhtBvE,wBAgtB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createBlock, mergeProps, createSlots, withCtx,
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, withModifiers, resolveDynamicComponent, withKeys, createVNode, nextTick } from 'vue';
|
2
2
|
import _sfc_main$2 from './components/InputActions.vue.js';
|
3
3
|
import { Notify } from '../../utils/Notify.js';
|
4
4
|
import { useTabActiveListener } from '../Tabs/use/useTabActiveListener.js';
|
5
5
|
import _sfc_main$1 from '../FieldWrapper/WFieldWrapper.vue.js';
|
6
6
|
|
7
|
-
const _hoisted_1 = {
|
7
|
+
const _hoisted_1 = { class: "flex flex-wrap gap-1" };
|
8
|
+
const _hoisted_2 = {
|
8
9
|
key: 0,
|
9
10
|
class: "flex items-center w-11 h-full justify-center text-description select-none"
|
10
11
|
};
|
11
|
-
const
|
12
|
+
const _hoisted_3 = { class: "flex flex-wrap gap-1" };
|
12
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
14
|
...{ inheritAttrs: false },
|
14
15
|
__name: "WInput",
|
@@ -172,116 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
172
173
|
return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
|
173
174
|
class: _ctx.$attrs.class,
|
174
175
|
onClick: _cache[10] || (_cache[10] = ($event) => _ctx.$emit("click:suffix", $event))
|
175
|
-
}), createSlots({
|
176
|
-
field: withCtx(({ id, setFocused, focused }) => [
|
177
|
-
createElementVNode("div", {
|
178
|
-
class: normalizeClass(["relative border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 grid grid-cols-[auto,1fr,auto]", {
|
179
|
-
"focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
|
180
|
-
"cursor-text": !_ctx.disabled,
|
181
|
-
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
182
|
-
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
183
|
-
"border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
|
184
|
-
}]),
|
185
|
-
onClick: focus,
|
186
|
-
onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
|
187
|
-
}, ["prevent"]))
|
188
|
-
}, [
|
189
|
-
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
190
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
|
191
|
-
])) : createCommentVNode("", true),
|
192
|
-
createElementVNode("div", {
|
193
|
-
class: normalizeClass(["col-start-2 grid grid-cols-1 group/input", {
|
194
|
-
"py-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
|
195
|
-
}])
|
196
|
-
}, [
|
197
|
-
createElementVNode("div", _hoisted_2, [
|
198
|
-
renderSlot(_ctx.$slots, "prefix"),
|
199
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
|
200
|
-
id,
|
201
|
-
ref_key: "input",
|
202
|
-
ref: input,
|
203
|
-
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full w-input disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
204
|
-
"min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
|
205
|
-
"resize-y": _ctx.resize && _ctx.textarea,
|
206
|
-
"resize-none": !_ctx.resize && _ctx.textarea,
|
207
|
-
"h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
|
208
|
-
"h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
|
209
|
-
"group-first/input:pl-3 first:pl-0 [&:not(:first-child)]:pl-3 group-last/input:pr-3": !_ctx.hideInput,
|
210
|
-
"w-0 max-w-0 p-0 absolute": _ctx.hideInput,
|
211
|
-
"font-mono": _ctx.mono,
|
212
|
-
"text-secure": _ctx.textSecure && !isSecureVisible.value,
|
213
|
-
"text-black-default dark:text-gray-200": !_ctx.disabled,
|
214
|
-
"text-black-default/50 dark:text-gray-200/50": _ctx.disabled
|
215
|
-
}]),
|
216
|
-
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
|
217
|
-
placeholder: _ctx.placeholder,
|
218
|
-
type: _ctx.type ?? "text",
|
219
|
-
name: _ctx.name,
|
220
|
-
disabled: _ctx.disabled,
|
221
|
-
readonly: _ctx.readonly,
|
222
|
-
autocomplete: _ctx.autocomplete,
|
223
|
-
size: _ctx.size || void 0,
|
224
|
-
spellcheck: _ctx.spellcheck ? "true" : "false",
|
225
|
-
onInput: handleInputEvent,
|
226
|
-
onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
|
227
|
-
onKeydown: [
|
228
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
|
229
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
|
230
|
-
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
|
231
|
-
!_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:delete", $event);
|
232
|
-
handleBackspace($event);
|
233
|
-
}, ["exact", "stop"]), ["delete"]))
|
234
|
-
],
|
235
|
-
onFocus: ($event) => {
|
236
|
-
_ctx.$emit("focus", $event);
|
237
|
-
setFocused(true);
|
238
|
-
},
|
239
|
-
onBlur: ($event) => {
|
240
|
-
_ctx.$emit("blur", $event);
|
241
|
-
setFocused(false);
|
242
|
-
isSecureVisible.value = false;
|
243
|
-
},
|
244
|
-
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
|
245
|
-
onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
|
246
|
-
onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
|
247
|
-
}, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
|
248
|
-
])
|
249
|
-
], 2),
|
250
|
-
createVNode(_sfc_main$2, {
|
251
|
-
"model-value": _ctx.modelValue,
|
252
|
-
loading: _ctx.loading,
|
253
|
-
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
254
|
-
disabled: _ctx.disabled || _ctx.disabledActions,
|
255
|
-
readonly: _ctx.readonly,
|
256
|
-
"text-secure": _ctx.textSecure,
|
257
|
-
"is-secure-visible": isSecureVisible.value,
|
258
|
-
"allow-paste": _ctx.allowPaste,
|
259
|
-
"allow-copy": _ctx.allowCopy,
|
260
|
-
focused,
|
261
|
-
"onClick:clear": clearValue,
|
262
|
-
"onClick:slot": ($event) => {
|
263
|
-
focused ? blur() : focus();
|
264
|
-
_ctx.$emit("click:suffix", $event);
|
265
|
-
},
|
266
|
-
"onShow:secure": _cache[7] || (_cache[7] = ($event) => {
|
267
|
-
isSecureVisible.value = true;
|
268
|
-
_ctx.$emit("click", $event);
|
269
|
-
}),
|
270
|
-
"onHide:secure": _cache[8] || (_cache[8] = ($event) => isSecureVisible.value = false),
|
271
|
-
"onClick:paste": paste
|
272
|
-
}, createSlots({ _: 2 }, [
|
273
|
-
_ctx.$slots.suffix ? {
|
274
|
-
name: "default",
|
275
|
-
fn: withCtx(() => [
|
276
|
-
renderSlot(_ctx.$slots, "suffix")
|
277
|
-
]),
|
278
|
-
key: "0"
|
279
|
-
} : void 0
|
280
|
-
]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])
|
281
|
-
], 34)
|
282
|
-
]),
|
283
|
-
_: 2
|
284
|
-
}, [
|
176
|
+
}), createSlots({ _: 2 }, [
|
285
177
|
_ctx.$slots.title ? {
|
286
178
|
name: "title",
|
287
179
|
fn: withCtx(() => [
|
@@ -296,12 +188,138 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
296
188
|
]),
|
297
189
|
key: "1"
|
298
190
|
} : void 0,
|
191
|
+
_ctx.readonly ? {
|
192
|
+
name: "default",
|
193
|
+
fn: withCtx(() => [
|
194
|
+
createElementVNode("div", _hoisted_1, [
|
195
|
+
renderSlot(_ctx.$slots, "prefix"),
|
196
|
+
!_ctx.hideInput ? (openBlock(), createElementBlock("div", {
|
197
|
+
key: 0,
|
198
|
+
class: normalizeClass({
|
199
|
+
"font-mono": _ctx.mono,
|
200
|
+
"text-secure": _ctx.textSecure && !isSecureVisible.value
|
201
|
+
})
|
202
|
+
}, toDisplayString(_ctx.modelValue), 3)) : createCommentVNode("", true)
|
203
|
+
])
|
204
|
+
]),
|
205
|
+
key: "2"
|
206
|
+
} : {
|
207
|
+
name: "field",
|
208
|
+
fn: withCtx(({ id, setFocused, focused }) => [
|
209
|
+
createElementVNode("div", {
|
210
|
+
class: normalizeClass(["relative border border-solid rounded-xl bg-default dark:bg-default-dark transition-colors duration-75 overflow-hidden min-h-11 grid grid-cols-[auto,1fr,auto]", {
|
211
|
+
"focus-within:border-primary-default dark:focus-within:border-primary-dark": !_ctx.disabled && !_ctx.readonly,
|
212
|
+
"cursor-text": !_ctx.disabled,
|
213
|
+
"border-negative dark:border-negative-dark": _ctx.errorMessage,
|
214
|
+
"border-gray-300 dark:border-gray-700": !_ctx.disabled,
|
215
|
+
"border-gray-300/50 dark:border-gray-700/50": _ctx.disabled
|
216
|
+
}]),
|
217
|
+
onClick: focus,
|
218
|
+
onMousedown: _cache[9] || (_cache[9] = withModifiers(() => {
|
219
|
+
}, ["prevent"]))
|
220
|
+
}, [
|
221
|
+
_ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
222
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
|
223
|
+
])) : createCommentVNode("", true),
|
224
|
+
createElementVNode("div", {
|
225
|
+
class: normalizeClass(["col-start-2 grid grid-cols-1 group/input", {
|
226
|
+
"py-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
|
227
|
+
}])
|
228
|
+
}, [
|
229
|
+
createElementVNode("div", _hoisted_3, [
|
230
|
+
renderSlot(_ctx.$slots, "prefix"),
|
231
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
|
232
|
+
id,
|
233
|
+
ref_key: "input",
|
234
|
+
ref: input,
|
235
|
+
class: normalizeClass(["text-base font-normal outline-0 border-none bg-[inherit] flex-1 max-w-full w-input disabled:opacity-80 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500 appearance-none", {
|
236
|
+
"min-h-[var(--textarea-height,10rem)] w-full py-3": _ctx.textarea,
|
237
|
+
"resize-y": _ctx.resize && _ctx.textarea,
|
238
|
+
"resize-none": !_ctx.resize && _ctx.textarea,
|
239
|
+
"h-[var(--input-height,2.625rem)]": !_ctx.textarea && !_ctx.$slots.suffix,
|
240
|
+
"h-[var(--input-height,2.125rem)]": !_ctx.textarea && _ctx.$slots.suffix,
|
241
|
+
"group-first/input:pl-3 first:pl-0 [&:not(:first-child)]:pl-3 group-last/input:pr-3": !_ctx.hideInput,
|
242
|
+
"w-0 max-w-0 p-0 absolute": _ctx.hideInput,
|
243
|
+
"font-mono": _ctx.mono,
|
244
|
+
"text-secure": _ctx.textSecure && !isSecureVisible.value,
|
245
|
+
"text-black-default dark:text-gray-200": !_ctx.disabled,
|
246
|
+
"text-black-default/50 dark:text-gray-200/50": _ctx.disabled
|
247
|
+
}]),
|
248
|
+
value: _ctx.placeholderSecure && _ctx.modelValue === void 0 && !focused ? "******" : _ctx.modelValue,
|
249
|
+
placeholder: _ctx.placeholder,
|
250
|
+
type: _ctx.type ?? "text",
|
251
|
+
name: _ctx.name,
|
252
|
+
disabled: _ctx.disabled,
|
253
|
+
readonly: _ctx.readonly,
|
254
|
+
autocomplete: _ctx.autocomplete,
|
255
|
+
size: _ctx.size || void 0,
|
256
|
+
spellcheck: _ctx.spellcheck ? "true" : "false",
|
257
|
+
onInput: handleInputEvent,
|
258
|
+
onKeypress: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:enter", $event), ["exact"]), ["enter"])),
|
259
|
+
onKeydown: [
|
260
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:up", $event), ["exact", "stop"]), ["up"])),
|
261
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:down", $event), ["exact", "stop"]), ["down"])),
|
262
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => {
|
263
|
+
!_ctx.disabled && !_ctx.readonly && _ctx.$emit("keypress:delete", $event);
|
264
|
+
handleBackspace($event);
|
265
|
+
}, ["exact", "stop"]), ["delete"]))
|
266
|
+
],
|
267
|
+
onFocus: ($event) => {
|
268
|
+
_ctx.$emit("focus", $event);
|
269
|
+
setFocused(true);
|
270
|
+
},
|
271
|
+
onBlur: ($event) => {
|
272
|
+
_ctx.$emit("blur", $event);
|
273
|
+
setFocused(false);
|
274
|
+
isSecureVisible.value = false;
|
275
|
+
},
|
276
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event)),
|
277
|
+
onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
|
278
|
+
onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
|
279
|
+
}, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
|
280
|
+
])
|
281
|
+
], 2),
|
282
|
+
createVNode(_sfc_main$2, {
|
283
|
+
"model-value": _ctx.modelValue,
|
284
|
+
loading: _ctx.loading,
|
285
|
+
"allow-clear": _ctx.allowClear && _ctx.modelValue !== "",
|
286
|
+
disabled: _ctx.disabled || _ctx.disabledActions,
|
287
|
+
readonly: _ctx.readonly,
|
288
|
+
"text-secure": _ctx.textSecure,
|
289
|
+
"is-secure-visible": isSecureVisible.value,
|
290
|
+
"allow-paste": _ctx.allowPaste,
|
291
|
+
"allow-copy": _ctx.allowCopy,
|
292
|
+
focused,
|
293
|
+
"onClick:clear": clearValue,
|
294
|
+
"onClick:slot": ($event) => {
|
295
|
+
focused ? blur() : focus();
|
296
|
+
_ctx.$emit("click:suffix", $event);
|
297
|
+
},
|
298
|
+
"onShow:secure": _cache[7] || (_cache[7] = ($event) => {
|
299
|
+
isSecureVisible.value = true;
|
300
|
+
_ctx.$emit("click", $event);
|
301
|
+
}),
|
302
|
+
"onHide:secure": _cache[8] || (_cache[8] = ($event) => isSecureVisible.value = false),
|
303
|
+
"onClick:paste": paste
|
304
|
+
}, createSlots({ _: 2 }, [
|
305
|
+
_ctx.$slots.suffix ? {
|
306
|
+
name: "default",
|
307
|
+
fn: withCtx(() => [
|
308
|
+
renderSlot(_ctx.$slots, "suffix")
|
309
|
+
]),
|
310
|
+
key: "0"
|
311
|
+
} : void 0
|
312
|
+
]), 1032, ["model-value", "loading", "allow-clear", "disabled", "readonly", "text-secure", "is-secure-visible", "allow-paste", "allow-copy", "focused", "onClick:slot"])
|
313
|
+
], 34)
|
314
|
+
]),
|
315
|
+
key: "3"
|
316
|
+
},
|
299
317
|
_ctx.$slots.right ? {
|
300
318
|
name: "right",
|
301
319
|
fn: withCtx(() => [
|
302
320
|
renderSlot(_ctx.$slots, "right")
|
303
321
|
]),
|
304
|
-
key: "
|
322
|
+
key: "4"
|
305
323
|
} : void 0
|
306
324
|
]), 1040, ["class"]);
|
307
325
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInputAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputAsync.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAA;yBAI3B,IAAI,SAAS,SAAS,wBACzB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgaxD,mBAAmB,CAAC;;mKAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA/Ce,GAAG;0BACA,GAAG;uBACN,GAAG;;cA1WzB,mBAAmB,SAAS,4CAAa,SAAS,KAAG,IAAI;;;;YA4ZnB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1avE,wBA0a4E;AAC5E,KAAK,mBAAmB,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, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, normalizeClass, withModifiers, unref, createCommentVNode, nextTick } from 'vue';
|
1
|
+
import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, normalizeClass, withModifiers, unref, createCommentVNode, nextTick } from 'vue';
|
2
2
|
import _sfc_main$1 from './WInput.vue.js';
|
3
3
|
import WSpinner from '../Spinner/WSpinner.vue.js';
|
4
4
|
import IconEdit from '../../assets/icons/sax/IconEdit.svg.js';
|
@@ -159,34 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
159
159
|
onFocus: _cache[1] || (_cache[1] = ($event) => focused.value = true),
|
160
160
|
onPaste: handlePaste,
|
161
161
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event)
|
162
|
-
}), createSlots({
|
163
|
-
right: withCtx(() => [
|
164
|
-
renderSlot(_ctx.$slots, "right"),
|
165
|
-
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
|
166
|
-
key: 0,
|
167
|
-
class: "square-11 w-skeleton-rounded-lg"
|
168
|
-
})) : (openBlock(), createElementBlock("button", {
|
169
|
-
key: 1,
|
170
|
-
class: normalizeClass(["relative square-11 rounded-lg flex items-center justify-center bg-default dark:bg-default-dark border border-solid border-gray-200 dark:border-gray-800", {
|
171
|
-
"cursor-not-allowed": _ctx.disabled,
|
172
|
-
"cursor-progress": _ctx.loading,
|
173
|
-
"w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.loading,
|
174
|
-
"bg-primary-default dark:bg-primary-dark text-default dark:text-default-dark": canSave.value,
|
175
|
-
"text-description": !canSave.value
|
176
|
-
}]),
|
177
|
-
onClick: withModifiers(toggle, ["stop", "prevent"]),
|
178
|
-
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
179
|
-
}, ["stop", "prevent"]))
|
180
|
-
}, [
|
181
|
-
_ctx.loading ? (openBlock(), createBlock(WSpinner, { key: 0 })) : canSave.value ? (openBlock(), createBlock(unref(IconCheck), { key: 1 })) : focused.value ? (openBlock(), createBlock(unref(IconSlash), { key: 2 })) : (openBlock(), createBlock(unref(IconEdit), { key: 3 })),
|
182
|
-
!_ctx.loading && focused.value ? (openBlock(), createBlock(_sfc_main$2, {
|
183
|
-
key: 4,
|
184
|
-
text: canSave.value ? "Save" : "Cancel"
|
185
|
-
}, null, 8, ["text"])) : createCommentVNode("", true)
|
186
|
-
], 34))
|
187
|
-
]),
|
188
|
-
_: 2
|
189
|
-
}, [
|
162
|
+
}), createSlots({ _: 2 }, [
|
190
163
|
_ctx.$slots.title ? {
|
191
164
|
name: "title",
|
192
165
|
fn: withCtx(() => [
|
@@ -200,6 +173,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
173
|
renderSlot(_ctx.$slots, "subtitle")
|
201
174
|
]),
|
202
175
|
key: "1"
|
176
|
+
} : void 0,
|
177
|
+
!_ctx.readonly || _ctx.$slots.right ? {
|
178
|
+
name: "right",
|
179
|
+
fn: withCtx(() => [
|
180
|
+
renderSlot(_ctx.$slots, "right"),
|
181
|
+
!_ctx.readonly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
182
|
+
_ctx.skeleton ? (openBlock(), createBlock(WSkeleton, {
|
183
|
+
key: 0,
|
184
|
+
class: "square-11 w-skeleton-rounded-lg"
|
185
|
+
})) : (openBlock(), createElementBlock("button", {
|
186
|
+
key: 1,
|
187
|
+
class: normalizeClass(["relative square-11 rounded-lg flex items-center justify-center bg-default dark:bg-default-dark border border-solid border-gray-200 dark:border-gray-800", {
|
188
|
+
"cursor-not-allowed": _ctx.disabled,
|
189
|
+
"cursor-progress": _ctx.loading,
|
190
|
+
"w-ripple w-ripple-hover": !_ctx.disabled && !_ctx.loading,
|
191
|
+
"bg-primary-default dark:bg-primary-dark text-default dark:text-default-dark": canSave.value,
|
192
|
+
"text-description": !canSave.value
|
193
|
+
}]),
|
194
|
+
onClick: withModifiers(toggle, ["stop", "prevent"]),
|
195
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
196
|
+
}, ["stop", "prevent"]))
|
197
|
+
}, [
|
198
|
+
_ctx.loading ? (openBlock(), createBlock(WSpinner, { key: 0 })) : canSave.value ? (openBlock(), createBlock(unref(IconCheck), { key: 1 })) : focused.value ? (openBlock(), createBlock(unref(IconSlash), { key: 2 })) : (openBlock(), createBlock(unref(IconEdit), { key: 3 })),
|
199
|
+
!_ctx.loading && focused.value ? (openBlock(), createBlock(_sfc_main$2, {
|
200
|
+
key: 4,
|
201
|
+
text: canSave.value ? "Save" : "Cancel"
|
202
|
+
}, null, 8, ["text"])) : createCommentVNode("", true)
|
203
|
+
], 34))
|
204
|
+
], 64)) : createCommentVNode("", true)
|
205
|
+
]),
|
206
|
+
key: "2"
|
203
207
|
} : void 0
|
204
208
|
]), 1040, ["class"]);
|
205
209
|
};
|
@@ -254,7 +254,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
254
254
|
index,
|
255
255
|
loading: _ctx.loading || unref(isLoading),
|
256
256
|
disabled: _ctx.disabled,
|
257
|
-
"disable-clear": _ctx.disableClear,
|
257
|
+
"disable-clear": _ctx.disableClear || _ctx.readonly,
|
258
258
|
onUnselect: ($event) => unselect(_ctx.valueGetter(option))
|
259
259
|
}, {
|
260
260
|
option: withCtx(() => [
|
@@ -179,7 +179,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
179
|
loading: _ctx.loading || isFetchingPrefix.value,
|
180
180
|
"option-component": _ctx.optionComponent,
|
181
181
|
"option-component-props": _ctx.optionComponentProps,
|
182
|
-
"disable-clear": _ctx.disableClear,
|
182
|
+
"disable-clear": _ctx.disableClear || _ctx.readonly,
|
183
183
|
"preview-data": _ctx.previewData,
|
184
184
|
"created-data": _ctx.createdData,
|
185
185
|
"value-getter": _ctx.valueGetter,
|
@@ -35,7 +35,7 @@ import { default as WFormAsyncToggle } from '../components/FormAsync/WFormAsyncT
|
|
35
35
|
import { default as WHeaderBar } from '../components/HeaderBar/WHeaderBar.vue';
|
36
36
|
import { default as WImageViewer } from '../components/ImageViewer/WImageViewer.vue';
|
37
37
|
import { default as WInfiniteList } from '../components/InfiniteList/WInfiniteList.vue';
|
38
|
-
import { default as
|
38
|
+
import { default as WInfiniteListWrapper } from '../components/InfiniteList/WInfiniteListWrapper.vue';
|
39
39
|
import { default as WInfoCard } from '../components/InfoCard/WInfoCard.vue';
|
40
40
|
import { default as WInfoCardNegative } from '../components/InfoCard/WInfoCardNegative.vue';
|
41
41
|
import { default as WInput } from '../components/Input/WInput.vue';
|
@@ -76,5 +76,5 @@ declare const _default: {
|
|
76
76
|
install: (app: App | any) => void;
|
77
77
|
};
|
78
78
|
export default _default;
|
79
|
-
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, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList,
|
79
|
+
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, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, 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, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
|
80
80
|
//# 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;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MA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M,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
|
package/dist/main.js
CHANGED
@@ -38,7 +38,7 @@ export { default as WFormAsyncToggle } from './components/FormAsync/WFormAsyncTo
|
|
38
38
|
export { default as WHeaderBar } from './components/HeaderBar/WHeaderBar.vue.js';
|
39
39
|
export { default as WImageViewer } from './components/ImageViewer/WImageViewer.vue.js';
|
40
40
|
export { default as WInfiniteList } from './components/InfiniteList/WInfiniteList.vue.js';
|
41
|
-
export { default as
|
41
|
+
export { default as WInfiniteListWrapper } from './components/InfiniteList/WInfiniteListWrapper.vue.js';
|
42
42
|
export { default as WInfoCard } from './components/InfoCard/WInfoCard.vue.js';
|
43
43
|
export { default as WInfoCardNegative } from './components/InfoCard/WInfoCardNegative.vue.js';
|
44
44
|
export { default as WInput } from './components/Input/WInput.vue.js';
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.8.
|
7
|
+
"version": "0.8.18",
|
8
8
|
"scripts": {
|
9
9
|
"dev": "vite",
|
10
10
|
"build": "run-p type-check build-only",
|
@@ -246,8 +246,8 @@
|
|
246
246
|
"./dist/components/InfiniteList/WInfiniteList.vue": {
|
247
247
|
"import": "./dist/components/InfiniteList/WInfiniteList.vue.js"
|
248
248
|
},
|
249
|
-
"./dist/components/InfiniteList/
|
250
|
-
"import": "./dist/components/InfiniteList/
|
249
|
+
"./dist/components/InfiniteList/WInfiniteListWrapper.vue": {
|
250
|
+
"import": "./dist/components/InfiniteList/WInfiniteListWrapper.vue.js"
|
251
251
|
},
|
252
252
|
"./dist/components/InfoCard/WInfoCard.vue": {
|
253
253
|
"import": "./dist/components/InfoCard/WInfoCard.vue.js"
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"yBA8TiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8kBxD,mBAAmB,CAAC;;;;;oBA1kBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;2BACJ,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;qBACP,MAAM;2BACA,OAAO,GAAG,IAAI;oBACrB,MAAM;uBACH,MAAM;oBACT,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;mBAEhE,KAAK,EAAE;qBACL,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;qBACrB,OAAO;uBACL,OAAO;2BACH,OAAO;6BACL,OAAO;KAgjBuD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;0CAlbP,MAAM;MAkbuB,GAAG,IAAI;WACpE,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