eco-vue-js 0.10.4 → 0.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
- package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonDropdown.vue.js +1 -12
- package/dist/components/Button/WButtonSelection.vue.d.ts +6 -5
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +10 -24
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +0 -2
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +2 -8
- package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -14
- package/dist/components/Form/WForm.vue.d.ts +2 -2
- package/dist/components/Form/WFormValidator.vue.d.ts +2 -2
- package/dist/components/Form/WFormValidator.vue.js +1 -14
- package/dist/components/Form/models/utils.js +0 -14
- package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
- package/dist/components/FormAsync/use/useFormAsync.js +2 -14
- package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -2
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -18
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +25 -83
- package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -5
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +8 -27
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +1 -8
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +10 -21
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +0 -13
- package/dist/components/Input/WInputSuggest.vue.js +3 -3
- package/dist/components/List/WList.vue.d.ts +3 -0
- package/dist/components/List/WList.vue.d.ts.map +1 -1
- package/dist/components/List/WList.vue.js +230 -245
- package/dist/components/List/WListCard.vue.d.ts +15 -9
- package/dist/components/List/WListCard.vue.d.ts.map +1 -1
- package/dist/components/List/WListCard.vue.js +79 -84
- package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
- package/dist/components/List/WListHeaderItem.vue.js +1 -1
- package/dist/components/List/components/HeaderSettings.vue.d.ts +3 -2
- package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSettings.vue.js +21 -25
- package/dist/components/List/components/HeaderSort.vue.d.ts +1 -1
- package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
- package/dist/components/List/components/HeaderSort.vue.js +0 -13
- package/dist/components/List/components/ListCardAction.vue.d.ts +23 -0
- package/dist/components/List/components/ListCardAction.vue.d.ts.map +1 -0
- package/dist/components/List/components/ListCardAction.vue.js +23 -0
- package/dist/components/List/components/ListCardAction.vue2.js +5 -0
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts +2 -0
- package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
- package/dist/components/List/components/ListCardFieldNested.vue.js +2 -1
- package/dist/components/List/types.d.ts +5 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/List/use/useListConfig.d.ts +3 -10
- package/dist/components/List/use/useListConfig.d.ts.map +1 -1
- package/dist/components/List/use/useListConfig.js +20 -16
- package/dist/components/List/use/useOrdering.js +3 -3
- package/dist/components/Modal/WModalStepper.vue.d.ts +26 -26
- package/dist/components/Nav/WNavItemExpand.vue.js +0 -13
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.js +2 -2
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +2 -2
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +0 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +15 -11
- package/dist/components/Tabs/WTabs.vue.d.ts +24 -24
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +4 -17
- package/dist/components/Tabs/WTabsColumns.vue.js +2 -2
- package/dist/components/Tabs/components/TabItem.vue.d.ts +12 -12
- package/dist/main.js +2 -2
- package/dist/types/global.d.ts +0 -11
- package/dist/utils/mobile.d.ts +3 -0
- package/dist/utils/mobile.d.ts.map +1 -1
- package/dist/utils/mobile.js +15 -2
- package/dist/utils/useSelected.d.ts +22 -10
- package/dist/utils/useSelected.d.ts.map +1 -1
- package/dist/utils/useSelected.js +172 -45
- package/dist/utils/utils.d.ts +5 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +9 -1
- package/eslint/plugin.js +4 -0
- package/package.json +1 -1
- package/tailwind-base/plugins/default.ts +5 -2
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +0 -31
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +0 -30
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +0 -5
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +0 -27
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +0 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +0 -66
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue2.js +0 -5
- package/dist/components/InfiniteList/models/injection.d.ts +0 -16
- package/dist/components/InfiniteList/models/injection.d.ts.map +0 -1
- package/dist/components/InfiniteList/models/injection.js +0 -4
- package/dist/components/InfiniteList/use/useSelected.d.ts +0 -14
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +0 -1
- package/dist/components/InfiniteList/use/useSelected.js +0 -151
@@ -1,14 +1,13 @@
|
|
1
1
|
import { defineComponent, useTemplateRef, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, unref, Fragment, createElementVNode, createBlock, createCommentVNode, normalizeClass, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
|
2
|
-
import _sfc_main$
|
2
|
+
import _sfc_main$2 from '../../EmptyComponent/WEmptyComponent.vue.js';
|
3
3
|
import { ApiError } from '../../../utils/api.js';
|
4
|
-
import _sfc_main$1 from './
|
5
|
-
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
4
|
+
import _sfc_main$1 from './InfiniteListPageTitle.vue.js';
|
6
5
|
|
7
6
|
const _hoisted_1 = {
|
8
7
|
ref: "element",
|
9
8
|
class: "relative"
|
10
9
|
};
|
11
|
-
const _hoisted_2 = { class: "mt-[--w-list-gap,
|
10
|
+
const _hoisted_2 = { class: "mt-[--w-list-gap,0] flex" };
|
12
11
|
const _hoisted_3 = { class: "py-1.25 sm-not:px-3 cursor-default select-none" };
|
13
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
13
|
__name: "InfiniteListPage",
|
@@ -29,12 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
28
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
30
29
|
scrollingElement: { default: void 0 },
|
31
30
|
queryOptions: { default: void 0 },
|
32
|
-
|
33
|
-
valueGetter: {},
|
34
|
-
selectOnly: { type: Boolean },
|
35
|
-
unselectOnly: { type: Boolean },
|
36
|
-
reverseSelection: { type: Boolean },
|
37
|
-
allowPageSelection: { type: Boolean }
|
31
|
+
valueGetter: {}
|
38
32
|
},
|
39
33
|
emits: ["update:count", "update:pages-count", "update:next-page", "update:previous-page", "update:scroll", "remove:page", "refetch", "update-from-header:scroll", "update:selected", "fetched", "update:error"],
|
40
34
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -169,21 +163,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
169
163
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
170
164
|
page.value && unref(data)?.results.length !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
171
165
|
createElementVNode("div", _hoisted_2, [
|
172
|
-
_ctx.
|
166
|
+
!_ctx.hidePageTitle ? (openBlock(), createBlock(_sfc_main$1, {
|
173
167
|
key: 0,
|
174
|
-
selected: _ctx.selected,
|
175
|
-
items: unref(data)?.results ?? [],
|
176
|
-
disabled: !unref(data)?.results,
|
177
|
-
"tooltip-text-persisted": _ctx.hidePageTitle,
|
178
|
-
"select-only": _ctx.selectOnly,
|
179
|
-
"unselect-only": _ctx.unselectOnly,
|
180
|
-
reverse: _ctx.reverseSelection,
|
181
|
-
"value-getter": _ctx.valueGetter,
|
182
|
-
class: "sm:w-list-row-item sm-not:px-[calc(var(--inner-margin)-2px)] pb-4 pt-6",
|
183
|
-
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:selected", $event))
|
184
|
-
}, null, 8, ["selected", "items", "disabled", "tooltip-text-persisted", "select-only", "unselect-only", "reverse", "value-getter"])) : createCommentVNode("", true),
|
185
|
-
!_ctx.hidePageTitle ? (openBlock(), createBlock(_sfc_main$2, {
|
186
|
-
key: 1,
|
187
168
|
"query-params": _ctx.queryParams,
|
188
169
|
class: "pb-4 pt-6"
|
189
170
|
}, null, 8, ["query-params"])) : createCommentVNode("", true)
|
@@ -191,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
191
172
|
createElementVNode("div", {
|
192
173
|
class: normalizeClass(_ctx.pageClass)
|
193
174
|
}, [
|
194
|
-
hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : _sfc_main$
|
175
|
+
hasData.value && unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : _sfc_main$2), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
|
195
176
|
"enter-active-class": "transition-[grid-template-rows] overflow-hidden grid",
|
196
177
|
"enter-from-class": "grid-rows-[0fr]",
|
197
178
|
"enter-to-class": "grid-rows-[1fr]",
|
@@ -202,12 +183,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
202
183
|
} : void 0)), {
|
203
184
|
default: withCtx(() => [
|
204
185
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data).results, (item, index) => {
|
205
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$
|
186
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$2), mergeProps({
|
206
187
|
key: _ctx.valueGetter(item),
|
207
188
|
ref_for: true
|
208
189
|
}, _ctx.transition ? { class: "w-full" } : void 0), {
|
209
190
|
default: withCtx(() => [
|
210
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$
|
191
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : _sfc_main$2), mergeProps({ ref_for: true }, _ctx.transition ? { class: "[overflow:inherit]" } : void 0), {
|
211
192
|
default: withCtx(() => [
|
212
193
|
renderSlot(_ctx.$slots, "default", {
|
213
194
|
item,
|
@@ -2,13 +2,12 @@ import { ApiError } from '../../../utils/api';
|
|
2
2
|
declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
4
|
readonly "onUpdate:count"?: ((value: number) => any) | undefined;
|
5
|
-
readonly "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
6
5
|
readonly "onUpdate:error"?: ((value: ApiError<{}, {
|
7
6
|
detail?: string | undefined;
|
8
7
|
non_field_errors?: string[] | undefined;
|
9
8
|
}>) => any) | undefined;
|
10
9
|
readonly "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onUpdate:
|
10
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onUpdate:error" | "onUpdate:page"> & {
|
12
11
|
useQueryFn: UseQueryPaginated<Data, QueryParams>;
|
13
12
|
queryParams: QueryParams;
|
14
13
|
skeletonLength?: number;
|
@@ -27,12 +26,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
27
26
|
maxPages?: number;
|
28
27
|
refetchInterval?: number | false;
|
29
28
|
queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
|
30
|
-
selected?: Model[];
|
31
29
|
valueGetter: (data: Data) => Model;
|
32
|
-
selectOnly?: boolean;
|
33
|
-
unselectOnly?: boolean;
|
34
|
-
reverseSelection?: boolean;
|
35
|
-
allowPageSelection?: boolean;
|
36
30
|
}> & import('vue').PublicProps;
|
37
31
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
38
32
|
resetPage: (page?: number) => Promise<void>;
|
@@ -73,7 +67,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
|
|
73
67
|
emit: {
|
74
68
|
(e: "update:page", value: number | undefined): void;
|
75
69
|
(e: "update:count", value: number): void;
|
76
|
-
(e: "update:selected", values: Model[]): void;
|
77
70
|
(e: "update:error", value: ApiError): void;
|
78
71
|
};
|
79
72
|
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAoTA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAcxB,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;WAwlBxD,mBAAmB,CAAC;;;;;;;;oBAplBd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;yBACP,MAAM;wBACP,OAAO;eAChB,OAAO;qBACD,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,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;qBAEhD,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK;KAikBiD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;0CAjcP,MAAM;MAicuB,GAAG,IAAI;WACpE,GAAG;;kBA5YD,CAAC,KAAK,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
@@ -27,14 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
maxPages: { default: 5 },
|
28
28
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
29
29
|
queryOptions: { default: void 0 },
|
30
|
-
|
31
|
-
valueGetter: {},
|
32
|
-
selectOnly: { type: Boolean },
|
33
|
-
unselectOnly: { type: Boolean },
|
34
|
-
reverseSelection: { type: Boolean },
|
35
|
-
allowPageSelection: { type: Boolean }
|
30
|
+
valueGetter: {}
|
36
31
|
},
|
37
|
-
emits: ["update:page", "update:count", "update:
|
32
|
+
emits: ["update:page", "update:count", "update:error"],
|
38
33
|
setup(__props, { expose: __expose, emit: __emit }) {
|
39
34
|
const props = __props;
|
40
35
|
const emit = __emit;
|
@@ -179,26 +174,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
179
174
|
"refetch-interval": _ctx.refetchInterval,
|
180
175
|
"scrolling-element": _ctx.scrollingElement,
|
181
176
|
"query-options": _ctx.queryOptions,
|
182
|
-
selected: _ctx.selected,
|
183
177
|
"value-getter": _ctx.valueGetter,
|
184
|
-
"
|
185
|
-
"unselect-only": _ctx.unselectOnly,
|
186
|
-
"reverse-selection": _ctx.reverseSelection,
|
187
|
-
"allow-page-selection": _ctx.allowPageSelection,
|
188
|
-
"onUpdate:selected": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:selected", $event)),
|
189
|
-
"onUpdate:count": _cache[3] || (_cache[3] = ($event) => {
|
178
|
+
"onUpdate:count": _cache[2] || (_cache[2] = ($event) => {
|
190
179
|
updateCount($event);
|
191
180
|
_ctx.$emit("update:count", $event);
|
192
181
|
}),
|
193
182
|
"onUpdate:pagesCount": updatePagesCount,
|
194
|
-
"onUpdate:nextPage": _cache[
|
195
|
-
"onUpdate:previousPage": _cache[
|
183
|
+
"onUpdate:nextPage": _cache[3] || (_cache[3] = ($event) => updateNextPage($event)),
|
184
|
+
"onUpdate:previousPage": _cache[4] || (_cache[4] = ($event) => updatePreviousPage($event)),
|
196
185
|
"onUpdate:scroll": updateScroll,
|
197
|
-
"onUpdateFromHeader:scroll": _cache[
|
186
|
+
"onUpdateFromHeader:scroll": _cache[5] || (_cache[5] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
198
187
|
"onRemove:page": removePage,
|
199
188
|
onRefetch: ($event) => unref(refetchNextPages)(index),
|
200
|
-
onFetched: _cache[
|
201
|
-
"onUpdate:error": _cache[
|
189
|
+
onFetched: _cache[6] || (_cache[6] = ($event) => isResettingPage.value = false),
|
190
|
+
"onUpdate:error": _cache[7] || (_cache[7] = ($event) => _ctx.$emit("update:error", $event))
|
202
191
|
}, {
|
203
192
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, page: itemPage, index: itemIndex }) => [
|
204
193
|
renderSlot(_ctx.$slots, "default", {
|
@@ -217,12 +206,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
206
|
})
|
218
207
|
]),
|
219
208
|
_: 2
|
220
|
-
}, 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "
|
209
|
+
}, 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "value-getter", "onRefetch"]);
|
221
210
|
}), 128)),
|
222
211
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
223
212
|
key: 1,
|
224
213
|
onClick: addNextPage,
|
225
|
-
onCheck: _cache[
|
214
|
+
onCheck: _cache[8] || (_cache[8] = ($event) => unref(infiniteScrollRef)?.checkIsScrollDown())
|
226
215
|
})) : createCommentVNode("", true)
|
227
216
|
]),
|
228
217
|
_: 3
|
@@ -1,18 +1,5 @@
|
|
1
1
|
import { ref, onMounted, onBeforeUnmount } from 'vue';
|
2
|
-
import '../../Button/WButtonAction.vue.js';
|
3
|
-
import '../../Button/WButton.vue.js';
|
4
2
|
import { isClientSide } from '../../../utils/utils.js';
|
5
|
-
import '../../Button/WButtonDropdown.vue.js';
|
6
|
-
import '../../../utils/supportsPassive.js';
|
7
|
-
import '../../Dropdown/utils/DropdownStyle.js';
|
8
|
-
import 'vue-router';
|
9
|
-
import '../../../utils/Modal.js';
|
10
|
-
import '../../Input/WInputSuggest.vue.js';
|
11
|
-
import '../../HeaderBar/use/useHeaderPadding.js';
|
12
|
-
import '../../Input/WInputDate.vue.js';
|
13
|
-
import '../../Link/WLink.vue.js';
|
14
|
-
import '@tanstack/vue-query';
|
15
|
-
import '../../List/use/useListConfig.js';
|
16
3
|
|
17
4
|
const headerElementHeight = 60;
|
18
5
|
const observerOptions = {
|
@@ -5,7 +5,7 @@ import _sfc_main$3 from './WInput.vue.js';
|
|
5
5
|
import WSkeleton from '../Skeleton/WSkeleton.vue.js';
|
6
6
|
import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
|
7
7
|
import { HorizontalAlign } from '../../utils/HorizontalAlign.js';
|
8
|
-
import {
|
8
|
+
import { useIsMobile } from '../../utils/mobile.js';
|
9
9
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
...{ inheritAttrs: false },
|
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
69
69
|
const dropdownMenuRef = useTemplateRef("dropdownMenu");
|
70
70
|
const inputRef = useTemplateRef("input");
|
71
71
|
const contentRef = useTemplateRef("content");
|
72
|
-
const isMobile =
|
72
|
+
const { isMobile } = useIsMobile();
|
73
73
|
const isDisabled = computed(() => props.readonly || props.disabled);
|
74
74
|
const open = () => {
|
75
75
|
if (isDisabled.value) return;
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
81
81
|
emit("close");
|
82
82
|
};
|
83
83
|
const focus = () => {
|
84
|
-
if (isMobile) open();
|
84
|
+
if (isMobile.value) open();
|
85
85
|
inputRef.value?.focus();
|
86
86
|
};
|
87
87
|
const blur = () => {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { BulkComponent, CardAreas, FieldComponent, FieldConfigMap, GridCol, ListFields, MenuComponent } from './types';
|
2
2
|
import { LinkProps } from '../../types/types';
|
3
3
|
import { ApiError } from '../../utils/api';
|
4
|
+
import { ListMode } from '../../utils/utils';
|
4
5
|
declare const _default: <Data extends DefaultData, QueryParams, Fields extends ListFields<Data, QueryParams>, CardColumns extends readonly GridCol[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
5
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
6
7
|
readonly "onUpdate:error"?: ((value: ApiError<{}, {
|
@@ -21,10 +22,12 @@ declare const _default: <Data extends DefaultData, QueryParams, Fields extends L
|
|
21
22
|
menu: MenuComponent<Data>[];
|
22
23
|
readonlyGetter?: (item: Data) => boolean;
|
23
24
|
cardClass?: string;
|
25
|
+
cardWrapperClass?: string;
|
24
26
|
selectAllTextGetter: (isUnselect: boolean, count: number) => string;
|
25
27
|
hasBorder?: boolean;
|
26
28
|
configKey: string;
|
27
29
|
defaultConfigMap: FieldConfigMap<Fields>;
|
30
|
+
defaultMode?: ListMode;
|
28
31
|
alignTop?: boolean;
|
29
32
|
disableMore?: boolean;
|
30
33
|
readonly?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AAiXA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE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