eco-vue-js 0.11.53 → 0.11.55

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.
Files changed (34) hide show
  1. package/dist/components/Button/WButtonSelectionAction.vue.js +1 -1
  2. package/dist/components/FormAsync/types.d.ts +1 -1
  3. package/dist/components/FormAsync/types.d.ts.map +1 -1
  4. package/dist/components/FormAsync/use/useFormAsync.d.ts +1 -1
  5. package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
  6. package/dist/components/FormAsync/use/useFormAsync.js +7 -2
  7. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +1 -0
  8. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  9. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +2 -1
  10. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  11. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +7 -17
  12. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts +11 -2
  13. package/dist/components/InfiniteList/use/useRefetchNextPages.d.ts.map +1 -1
  14. package/dist/components/InfiniteList/use/useRefetchNextPages.js +19 -13
  15. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  16. package/dist/components/Input/WInput.vue.js +5 -0
  17. package/dist/components/Input/components/ContentEditable.vue.d.ts.map +1 -1
  18. package/dist/components/Input/components/ContentEditable.vue2.js +1 -2
  19. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue.d.ts.map +1 -1
  20. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +5 -4
  21. package/dist/components/Modal/types.d.ts +1 -0
  22. package/dist/components/Modal/types.d.ts.map +1 -1
  23. package/dist/components/VirtualScroll/WVirtualScroll.vue.d.ts +45 -0
  24. package/dist/components/VirtualScroll/WVirtualScroll.vue.d.ts.map +1 -0
  25. package/dist/components/VirtualScroll/WVirtualScroll.vue.js +289 -0
  26. package/dist/components/VirtualScroll/WVirtualScroll.vue2.js +5 -0
  27. package/dist/components/VirtualScroll/components/VirtualScrollPage.vue.d.ts +59 -0
  28. package/dist/components/VirtualScroll/components/VirtualScrollPage.vue.d.ts.map +1 -0
  29. package/dist/components/VirtualScroll/components/VirtualScrollPage.vue.js +74 -0
  30. package/dist/components/VirtualScroll/components/VirtualScrollPage.vue2.js +5 -0
  31. package/dist/main.d.ts +2 -1
  32. package/dist/main.d.ts.map +1 -1
  33. package/dist/main.js +3 -1
  34. package/package.json +4 -1
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  return (_ctx, _cache) => {
25
25
  return openBlock(), createElementBlock("button", {
26
26
  disabled: _ctx.disabled || _ctx.disableMessage !== void 0,
27
- class: normalizeClass(["disabled:text-description relative isolate flex select-none items-center bg-none no-underline outline-none disabled:cursor-not-allowed", {
27
+ class: normalizeClass(["disabled:text-description relative isolate flex select-none items-center justify-center bg-none no-underline outline-none disabled:cursor-not-allowed", {
28
28
  "w-ripple w-ripple-hover before:text-primary dark:before:text-primary-dark hover:text-primary dark:hover:text-primary-dark cursor-pointer": !_ctx.disabled && !_ctx.disableMessage && !_ctx.loading,
29
29
  "text-primary dark:text-primary-dark w-ripple-active": _ctx.active,
30
30
  "text-accent": !_ctx.active,
@@ -7,7 +7,7 @@ type FormAsyncPropsBase<Model, FieldType> = {
7
7
  queryEnabled?: boolean;
8
8
  field: keyof ObjectPaths<Model, FieldType, true>;
9
9
  apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
10
- confimGetter?: (payload: FieldType) => ConfirmProps | undefined;
10
+ confimGetter?: (payload: FieldType, data: Model) => ConfirmProps | Promise<ConfirmProps | undefined> | undefined;
11
11
  };
12
12
  interface FormAsyncPropsWithParams<Model, FieldType, QueryParams> extends FormAsyncPropsBase<Model, FieldType> {
13
13
  useQueryFn: UseQueryWithParams<Model, QueryParams>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["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AAC,EAAE,YAAY,CAAC,GACtE,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,CAAA"}
@@ -4,6 +4,6 @@ export declare const useFormAsync: <Model, FieldType, QueryParams>(props: FormAs
4
4
  data: import('vue').Ref<Model, Model> | import('vue').Ref<undefined, undefined>;
5
5
  modelValue: import('vue').ComputedRef<FieldType | undefined>;
6
6
  submitting: import('vue').Ref<boolean, boolean>;
7
- showModal: (value: FieldType) => void;
7
+ showModal: (value: FieldType) => Promise<void>;
8
8
  };
9
9
  //# sourceMappingURL=useFormAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;;;uBAkCvH,SAAS;CA8BpC,CAAA"}
1
+ {"version":3,"file":"useFormAsync.d.ts","sourceRoot":"","sources":["../../../../../src/components/FormAsync/use/useFormAsync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAS5C,eAAO,MAAM,YAAY,GAAI,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;;;;uBAkCjH,SAAS;CAoC1C,CAAA"}
@@ -22,9 +22,14 @@ const useFormAsync = (props, onSuccess) => {
22
22
  });
23
23
  };
24
24
  let closeModal = null;
25
- const showModal = (value) => {
25
+ const showModal = async (value) => {
26
26
  closeModal?.();
27
- const confirmProps = props.confimGetter?.(value);
27
+ let confirmProps = props.confimGetter?.(value, data.value);
28
+ if (confirmProps instanceof Promise) {
29
+ submitting.value = true;
30
+ confirmProps = await confirmProps;
31
+ submitting.value = false;
32
+ }
28
33
  if (!confirmProps) {
29
34
  save(value);
30
35
  return;
@@ -23,6 +23,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
23
23
  refetch: () => Promise<void>;
24
24
  scrollTo: (index?: number) => void;
25
25
  isFetching: import('vue').Ref<boolean, boolean>;
26
+ pageNumber: import('vue').ComputedRef<number | null>;
26
27
  }>): void;
27
28
  attrs: any;
28
29
  slots: Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AA8FA;AAoVA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAMnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA4ZO,mBAAmB,CAAC;qBA1ZX,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;qBACV,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CA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rC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAuXxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAvazE,wBAua4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AA8FA;AAqVA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAMnB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA8ZO,mBAAmB,CAAC;qBA5ZX,WAAW;oBACZ,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;wBAChC,MAAM;mBACX,OAAO;kBACR,OAAO;wBACD,OAAO;qBACV,OAAO;oBACR,OAAO;oBACP,MAAM;oBACN,OAAO;oBACP,OAAO;oBACP,MAAM;0BACA,MAAM,GAAG,KAAK;uBACjB,OAAO,CAAC,YA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,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAyXxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzazE,wBAya4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -157,7 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
157
157
  getLast,
158
158
  refetch: refetchPage,
159
159
  scrollTo,
160
- isFetching
160
+ isFetching,
161
+ pageNumber: page
161
162
  });
162
163
  return (_ctx, _cache) => {
163
164
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAiFA;AAoTA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAaxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ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AAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;gBACF,MAAM,IAAI;;;YAnLd,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;EA8dxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA3gBzE,wBA2gB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListPages.vue"],"names":[],"mappings":"AAiFA;AAsSA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAaxB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EACpF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAkfO,mBAAmB,CAAC;;;;;;;;oBAhfZ,iB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KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,KAAK,CAAA;SACb,KAAK,IAAI;gBACF,MAAM,IAAI;;;YArKd,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAgdxC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA7fzE,wBA6f4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -50,13 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  if (previousPage.value) return true;
51
51
  return false;
52
52
  });
53
- const { pageComponent, refetchNextPages } = useRefetchNextPages();
54
- const isRefetchingAll = ref(false);
55
- const isFetching = computed(() => pageComponent.value.some((item) => item.isFetching));
56
- watch(isFetching, (value) => {
57
- if (value) return;
58
- isRefetchingAll.value = false;
59
- }, { immediate: true });
53
+ const pageComponentRef = useTemplateRef("pageComponent");
54
+ const { isFetching, isRefetchingAll, refetchNextPages, refetchAll } = useRefetchNextPages(pageComponentRef);
60
55
  const updateCount = (value) => {
61
56
  count.value = value;
62
57
  };
@@ -95,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
90
  const goto = async (page = 1, itemIndex) => {
96
91
  const index = pages.value.indexOf(page);
97
92
  if (index !== -1) {
98
- pageComponent.value[index].scrollTo(itemIndex);
93
+ pageComponentRef.value?.[index].scrollTo(itemIndex);
99
94
  return;
100
95
  }
101
96
  resetPage(page);
@@ -110,10 +105,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
105
  await nextTick();
111
106
  pages.value = [page];
112
107
  };
113
- const refetchAll = () => {
114
- isRefetchingAll.value = true;
115
- refetchNextPages(0);
116
- };
117
108
  watch(toRef(props, "queryParams"), (newValue, oldValue) => {
118
109
  if (isEqualObj(newValue, oldValue, ["page", ...props.excludeParams ?? []])) return;
119
110
  resetPage();
@@ -151,8 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
151
142
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page, index) => {
152
143
  return openBlock(), createBlock(_sfc_main$3, {
153
144
  ref_for: true,
154
- ref_key: "pageComponent",
155
- ref: pageComponent,
145
+ ref: "pageComponent",
156
146
  key: page,
157
147
  "query-params": { ..._ctx.queryParams, page },
158
148
  "use-query-fn": _ctx.useQueryFn,
@@ -187,10 +177,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
177
  renderSlot(_ctx.$slots, "default", {
188
178
  item,
189
179
  setter,
190
- skeleton: skeleton || isRefetchingAll.value,
180
+ skeleton: skeleton || unref(isRefetchingAll),
191
181
  refetch,
192
- previous: previous ?? unref(pageComponent)[index - 1]?.getLast() ?? unref(pageComponent)[unref(pageComponent).length - 1]?.getLast(),
193
- next: next ?? unref(pageComponent)[index + 1]?.getFirst() ?? unref(pageComponent)[0]?.getFirst(),
182
+ previous: previous ?? unref(pageComponentRef)?.[index - 1]?.getLast() ?? unref(pageComponentRef)?.[unref(pageComponentRef).length - 1]?.getLast(),
183
+ next: next ?? unref(pageComponentRef)?.[index + 1]?.getFirst() ?? unref(pageComponentRef)?.[0]?.getFirst(),
194
184
  first,
195
185
  last,
196
186
  resetting: isResettingPage.value,
@@ -1,5 +1,14 @@
1
- export declare const useRefetchNextPages: () => {
2
- pageComponent: import('vue').Ref<any[], any[]>;
1
+ import { Ref } from 'vue';
2
+ type PageComponent = {
3
+ isFetching: boolean;
4
+ pageNumber: number | null;
5
+ refetch: () => void;
6
+ };
7
+ export declare const useRefetchNextPages: <C extends PageComponent>(pageComponent: Ref<C[] | null>) => {
8
+ isFetching: import('vue').ComputedRef<boolean>;
9
+ isRefetchingAll: Ref<boolean, boolean>;
3
10
  refetchNextPages: (index: number) => void;
11
+ refetchAll: () => void;
4
12
  };
13
+ export {};
5
14
  //# sourceMappingURL=useRefetchNextPages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRefetchNextPages.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/use/useRefetchNextPages.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;8BAoBG,MAAM,KAAG,IAAI;CAY/C,CAAA"}
1
+ {"version":3,"file":"useRefetchNextPages.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/use/useRefetchNextPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,GAAG,EAAuB,MAAM,KAAK,CAAA;AAIlD,KAAK,aAAa,GAAG;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAC,CAAA;AAE1F,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,aAAa,EAAE,eAAe,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC;;;8BAcxD,MAAM,KAAG,IAAI;;CA0B/C,CAAA"}
@@ -1,29 +1,35 @@
1
- import { ref } from 'vue';
1
+ import { ref, computed, watch } from 'vue';
2
2
  import { debounce } from '../../../utils/utils.js';
3
3
 
4
- const useRefetchNextPages = () => {
5
- const pageComponent = ref([]);
4
+ const useRefetchNextPages = (pageComponent) => {
5
+ const isRefetchingAll = ref(false);
6
+ const isFetching = computed(() => pageComponent.value?.some((item) => item.isFetching) ?? false);
6
7
  let refetchLastPage = null;
7
8
  const refetchNextPagesDebounced = debounce((index) => {
8
9
  refetchLastPage = null;
9
- let pageList;
10
- if (index === 0) {
11
- pageList = pageComponent.value;
12
- } else {
13
- pageList = pageComponent.value?.slice(index - 1).reverse();
14
- }
15
- pageList?.forEach((item) => {
10
+ for (const item of pageComponent.value ?? []) {
11
+ if (item.pageNumber === null || item.pageNumber < index) continue;
16
12
  item.refetch();
17
- });
13
+ }
18
14
  }, 50);
19
15
  const refetchNextPages = (index) => {
20
16
  if (refetchLastPage !== null && index >= refetchLastPage) return;
21
17
  refetchLastPage = index;
22
18
  refetchNextPagesDebounced(index);
23
19
  };
20
+ const refetchAll = () => {
21
+ isRefetchingAll.value = true;
22
+ refetchNextPages(0);
23
+ };
24
+ watch(isFetching, (value) => {
25
+ if (value) return;
26
+ isRefetchingAll.value = false;
27
+ }, { immediate: true });
24
28
  return {
25
- pageComponent,
26
- refetchNextPages
29
+ isFetching,
30
+ isRefetchingAll,
31
+ refetchNextPages,
32
+ refetchAll
27
33
  };
28
34
  };
29
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AA6PA;AAulBA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAatD,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,gBAAgB,CAAA;yBAE9B,IAAI,SAAS,SAAS,GAAG,MAAM,EAC/C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAs1BO,mBAAmB,CAAC,oCAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;qBA/oB7B,IAAI;oBAOL,IAAI;+BAyES,aAAa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Ac,SAAS,KAAK,GAAG,IAAI;YACnC,OAAO,GAAG,IAAI;;EA2zBhB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAv2BzE,wBAu2B4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -8,6 +8,10 @@ import { debounce } from '../../utils/utils.js';
8
8
  import _sfc_main$2 from './components/InputActions.vue.js';
9
9
 
10
10
  const _hoisted_1 = { class: "relative flex min-h-full flex-1" };
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: "text-description pointer-events-none absolute"
14
+ };
11
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
16
  ...{ inheritAttrs: false },
13
17
  __name: "WInput",
@@ -412,6 +416,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
412
416
  }, [
413
417
  createElementVNode("div", _hoisted_1, [
414
418
  renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps({ modelValue: _ctx.modelValue }))),
419
+ _ctx.placeholder && _ctx.textarea && !_ctx.modelValue && !_ctx.textParts?.length ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.placeholder), 1)) : createCommentVNode("", true),
415
420
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? unref(ContentEditable) : "input"), {
416
421
  id,
417
422
  ref: "input",
@@ -1 +1 @@
1
- {"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAgBA;AAyUA,OAAO,KAAK,EAAC,QAAQ,EAAG,aAAa,EAAC,MAAM,UAAU,CAAA;AAStD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAC;;;;2BAmJ4B,aAAa,KAAG,IAAI;2BATpB,MAAM,aAAa,MAAM;;wBAhB5B,MAAM;;;;;;;;;;;;;;;AAuPjC,wBAUG"}
1
+ {"version":3,"file":"ContentEditable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Input/components/ContentEditable.vue"],"names":[],"mappings":"AAeA;AAwUA,OAAO,KAAK,EAAC,QAAQ,EAAG,aAAa,EAAC,MAAM,UAAU,CAAA;AAStD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAC;;;;2BAmJ4B,aAAa,KAAG,IAAI;2BATpB,MAAM,aAAa,MAAM;;wBAhB5B,MAAM;;;;;;;;;;;;;;;AAsPjC,wBAUG"}
@@ -3,7 +3,7 @@ import { WrapSelectionType } from '../../../utils/utils.js';
3
3
  import { preserveIndentation } from '../models/toolbarActions.js';
4
4
  import { getCaretOffset, setCaretOffset } from '../models/utils.js';
5
5
 
6
- const _hoisted_1 = ["contenteditable", "placeholder"];
6
+ const _hoisted_1 = ["contenteditable"];
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "ContentEditable",
9
9
  props: {
@@ -249,7 +249,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
249
249
  role: "textbox",
250
250
  "aria-multiline": "true",
251
251
  spellcheck: "false",
252
- placeholder: _ctx.placeholder,
253
252
  class: "relative [white-space:var(--w-input-whitespace,pre)]",
254
253
  onInput,
255
254
  onBeforeinput: _cache[0] || (_cache[0] = ($event) => insertParagraph($event)),
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmModal.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/modals/Confirm/ConfirmModal.vue"],"names":[],"mappings":"AAmFA;AA+JA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAA;AAOlD,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;AAkRjD,wBASG"}
1
+ {"version":3,"file":"ConfirmModal.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Modal/modals/Confirm/ConfirmModal.vue"],"names":[],"mappings":"AAoFA;AAgKA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAA;AAOlD,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;AAoRjD,wBASG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, withCtx, createElementVNode, createElementBlock, Fragment, createTextVNode, toDisplayString, resolveDynamicComponent, createVNode, createCommentVNode, withModifiers, unref } from 'vue';
1
+ import { defineComponent, ref, createBlock, openBlock, normalizeClass, withCtx, createElementVNode, createElementBlock, Fragment, createTextVNode, toDisplayString, resolveDynamicComponent, createVNode, createCommentVNode, withModifiers, unref } from 'vue';
2
2
  import _sfc_main$2 from '../../../Button/WButton.vue.js';
3
3
  import _sfc_main$1 from '../../WModalWrapper.vue.js';
4
4
  import { SemanticType } from '../../../../utils/SemanticType.js';
@@ -19,7 +19,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  onCancel: {},
20
20
  acceptTo: {},
21
21
  intermediateTo: {},
22
- actionsCol: { type: Boolean }
22
+ actionsCol: { type: Boolean },
23
+ wrapperClass: {}
23
24
  },
24
25
  emits: ["close:modal"],
25
26
  setup(__props, { emit: __emit }) {
@@ -62,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
63
  return (_ctx, _cache) => {
63
64
  return openBlock(), createBlock(_sfc_main$1, {
64
65
  "actions-col": _ctx.actionsCol,
65
- class: "w-modal-wrapper-w-[--w-modal-confirm-width,40rem]"
66
+ class: normalizeClass(["w-modal-wrapper-w-[--w-modal-confirm-width,40rem]", _ctx.wrapperClass])
66
67
  }, {
67
68
  title: withCtx(() => [
68
69
  typeof _ctx.title === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
124
  ])
124
125
  ]),
125
126
  _: 1
126
- }, 8, ["actions-col"]);
127
+ }, 8, ["actions-col", "class"]);
127
128
  };
128
129
  }
129
130
  });
@@ -15,5 +15,6 @@ export interface ConfirmModalProps {
15
15
  acceptTo?: LinkProps['to'];
16
16
  intermediateTo?: LinkProps['to'];
17
17
  actionsCol?: boolean;
18
+ wrapperClass?: string;
18
19
  }
19
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,KAAK,CAAA;AAEzC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACjC,WAAW,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IAEvC,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACvC,kBAAkB,CAAC,EAAE,YAAY,CAAA;IAEjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IAC7C,wBAAwB,CAAC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C3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEhC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
@@ -0,0 +1,45 @@
1
+ import { ApiError } from '../../utils/api';
2
+ declare const _default: <Data extends {
3
+ id: string | number;
4
+ }, 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<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:count"?: ((value: number) => any) | undefined;
7
+ readonly "onUpdate:error"?: ((value: ApiError<{}, {
8
+ detail?: string | undefined;
9
+ non_field_errors?: string[] | undefined;
10
+ }>) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onUpdate:error"> & {
12
+ useQueryFn: UseQueryWithParams<PaginatedResponse<Data>, QueryParams>;
13
+ queryParams: QueryParams;
14
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
15
+ count: number;
16
+ noHeaderUpdate?: boolean;
17
+ minHeight?: boolean;
18
+ emptyStub?: string;
19
+ pageClass?: string;
20
+ } & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {
24
+ header?(_: any): any;
25
+ default?(_: {
26
+ item: Data;
27
+ updatePageHeight: () => void;
28
+ index: number;
29
+ page: number | null;
30
+ refetch: () => void;
31
+ }): any;
32
+ empty?(_: {}): any;
33
+ };
34
+ emit: {
35
+ (e: "update:count", value: number): void;
36
+ (e: "update:error", value: ApiError): void;
37
+ };
38
+ }>) => import('vue').VNode & {
39
+ __ctx?: Awaited<typeof __VLS_setup>;
40
+ };
41
+ export default _default;
42
+ type __VLS_PrettifyLocal<T> = {
43
+ [K in keyof T]: T[K];
44
+ } & {};
45
+ //# sourceMappingURL=WVirtualScroll.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WVirtualScroll.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/VirtualScroll/WVirtualScroll.vue"],"names":[],"mappings":"AAkHA;AAgXA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAaxB,IAAI,SAAS;IAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,EAAE,WAAW,EAC/D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAgfO,mBAAmB,CAAC;;;;;;;oBA5ed,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;qBACvD,WAAW;uBACT,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;eACtD,MAAM;yBACI,OAAO;oBACZ,OAAO;oBACP,MAAM;oBACN,MAAM;mBAqe0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAvDiB,GAAG;;;;;;;YACD,GAAG;uBACL,GAAG;;;YA7azB,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,cAAc,SAAS,QAAQ,GAAG,IAAI;;EAqexC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA3fzE,wBA2f4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,289 @@
1
+ import { defineComponent, inject, ref, useTemplateRef, computed, watch, onUnmounted, createElementBlock, openBlock, Fragment, createElementVNode, createBlock, toDisplayString, resolveDynamicComponent, withCtx, mergeProps, renderList, unref, normalizeClass, normalizeStyle, createSlots, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
+ import { debounce } from '../../utils/utils.js';
3
+ import _sfc_main$3 from './components/VirtualScrollPage.vue.js';
4
+ import _sfc_main$1 from '../EmptyComponent/WEmptyComponent.vue.js';
5
+ import _sfc_main$2 from '../InfiniteList/WInfiniteListWrapper.vue.js';
6
+ import { wScrollingElement } from '../InfiniteList/models/injection.js';
7
+ import { useRefetchNextPages } from '../InfiniteList/use/useRefetchNextPages.js';
8
+
9
+ const _hoisted_1 = { class: "bg-default dark:bg-default-dark -w--width-inner -top--header-height fixed z-[100] flex flex-wrap gap-1 py-2 text-xs opacity-10 hover:opacity-100" };
10
+ const _hoisted_2 = { class: "code-inline" };
11
+ const _hoisted_3 = { class: "code-inline" };
12
+ const _hoisted_4 = { class: "code-inline" };
13
+ const _hoisted_5 = { class: "code-inline" };
14
+ const _hoisted_6 = { class: "code-inline" };
15
+ const _hoisted_7 = { class: "code-inline" };
16
+ const _hoisted_8 = { class: "code-inline" };
17
+ const _hoisted_9 = { class: "code-inline" };
18
+ const _hoisted_10 = { class: "code-inline" };
19
+ const _hoisted_11 = { class: "code-inline" };
20
+ const _hoisted_12 = { class: "code-inline" };
21
+ const PAGE_LENGTH_DEFAULT = 24;
22
+ const SCAN_LIMIT = 5;
23
+ const _sfc_main = /* @__PURE__ */ defineComponent({
24
+ __name: "WVirtualScroll",
25
+ props: {
26
+ useQueryFn: {},
27
+ queryParams: {},
28
+ queryOptions: {},
29
+ count: {},
30
+ noHeaderUpdate: { type: Boolean },
31
+ minHeight: { type: Boolean },
32
+ emptyStub: {},
33
+ pageClass: {}
34
+ },
35
+ emits: ["update:count", "update:error"],
36
+ setup(__props) {
37
+ const props = __props;
38
+ const scrollingElement = inject(wScrollingElement, null);
39
+ const getScrollingElement = () => scrollingElement?.value ?? document.scrollingElement;
40
+ const virtualPageCount = ref(5);
41
+ const virtualPageMap = ref({ 1: 1 });
42
+ const virtualPageMapReverse = ref({ 1: 1 });
43
+ const pageRef = useTemplateRef("page");
44
+ const pageCount = ref(Math.ceil(props.count / PAGE_LENGTH_DEFAULT));
45
+ const countValue = ref(props.count);
46
+ const { isFetching, isRefetchingAll, refetchNextPages, refetchAll } = useRefetchNextPages(pageRef);
47
+ const getSkeletonLength = (page) => {
48
+ if (page !== pageCount.value) return PAGE_LENGTH_DEFAULT;
49
+ return countValue.value % PAGE_LENGTH_DEFAULT || PAGE_LENGTH_DEFAULT;
50
+ };
51
+ const pageItemsHeight = computed(() => Math.ceil((pageRef.value?.reduce((sum, page) => sum + (page?.pageHeight ?? 0), 0) ?? 0) / 100) * 100);
52
+ const containerRef = useTemplateRef("container");
53
+ const averagePageHeight = ref(containerRef.value?.offsetHeight ?? 0);
54
+ const scrollTop = ref(0);
55
+ let lastLess = 0;
56
+ let timeout = null;
57
+ const updateAveragePageHeight = () => {
58
+ if (timeout) clearTimeout(timeout);
59
+ if (!pageItemsHeight.value || !pageRef.value?.length) {
60
+ averagePageHeight.value = containerRef.value?.offsetHeight ?? 0;
61
+ return;
62
+ }
63
+ if (!averagePageHeight.value) {
64
+ averagePageHeight.value = Math.ceil((pageItemsHeight.value + averagePageHeight.value) / (pageRef.value.length + 1) / 100) * 100;
65
+ return;
66
+ }
67
+ timeout = setTimeout(() => {
68
+ timeout = null;
69
+ const newValue = Math.ceil((pageItemsHeight.value + averagePageHeight.value) / ((pageRef.value?.length ?? 0) + 1) / 100) * 100;
70
+ if (newValue < averagePageHeight.value && lastLess < 3) {
71
+ lastLess++;
72
+ return;
73
+ }
74
+ averagePageHeight.value = newValue;
75
+ lastLess = 0;
76
+ }, 1e3);
77
+ };
78
+ watch(pageItemsHeight, updateAveragePageHeight, { immediate: true });
79
+ const pagesTop = ref([0]);
80
+ const updatePagesTop = (start) => {
81
+ if (start === null) return;
82
+ const tops = [];
83
+ let currentTop = pagesTop.value[start - 1] ?? 0;
84
+ for (let page2 = start; page2 <= pageCount.value; page2++) {
85
+ const index = virtualPageMapReverse.value[page2];
86
+ const pageInstance = index !== void 0 ? pageRef.value?.[index - 1] : void 0;
87
+ const pageHeight = pageInstance?.pageHeight ?? (pagesTop.value[page2] ? pagesTop.value[page2] - pagesTop.value[page2 - 1] : averagePageHeight.value);
88
+ tops.push(currentTop);
89
+ currentTop += pageHeight;
90
+ }
91
+ tops.push(currentTop);
92
+ let page = visiblePage.value + 1;
93
+ if (scrollTop.value - pagesTop.value[page + 1] < scrollTop.value - pagesTop.value[page]) page += 1;
94
+ const scrollElement = getScrollingElement();
95
+ if (scrollElement && page > 3 && page >= start) {
96
+ const oldValue = pagesTop.value[page];
97
+ const newValue = tops[page - start - 1];
98
+ if (oldValue !== void 0 && newValue !== void 0) {
99
+ const diff = pagesTop.value[page - 2] - tops[page - start - 1];
100
+ if (diff !== 0) {
101
+ requestAnimationFrame(() => {
102
+ scrollElement.scrollTop -= diff;
103
+ });
104
+ }
105
+ }
106
+ }
107
+ pagesTop.value.splice(start - 1, tops.length, ...tops);
108
+ };
109
+ let lastPage = 1;
110
+ const visiblePage = ref(1);
111
+ const getVisiblePage = () => {
112
+ const tops = pagesTop.value;
113
+ const scroll = scrollTop.value;
114
+ let page = lastPage;
115
+ for (let i = 0; i < SCAN_LIMIT; i++) {
116
+ if (page < pageCount.value && scroll >= tops[page]) page++;
117
+ else if (page > 1 && scroll < tops[page - 1]) page--;
118
+ else {
119
+ lastPage = page;
120
+ return page;
121
+ }
122
+ }
123
+ let left = 1;
124
+ let right = pageCount.value;
125
+ while (left < right) {
126
+ const mid = left + right >> 1;
127
+ if (scroll < tops[mid]) right = mid;
128
+ else left = mid + 1;
129
+ }
130
+ lastPage = left;
131
+ return left;
132
+ };
133
+ const pagesOnScreen = computed(() => {
134
+ if (averagePageHeight.value === 0) return 1;
135
+ return Math.min(Math.ceil(window.innerHeight / averagePageHeight.value) + 1, 10);
136
+ });
137
+ const startPage = computed(() => Math.max(1, visiblePage.value - Math.ceil(pagesOnScreen.value / 2)));
138
+ const endPage = computed(() => Math.min(pageCount.value, visiblePage.value + Math.ceil(pagesOnScreen.value * 1.5)));
139
+ const updateVirtualPageMap = debounce(() => {
140
+ const newMap = {};
141
+ const newMapReverse = {};
142
+ const availableVirtualPages = Array.from({ length: virtualPageCount.value }, (_, i) => i + 1);
143
+ for (const virtualPage in virtualPageMap.value) {
144
+ const page = virtualPageMap.value[virtualPage];
145
+ if (page >= startPage.value && page <= endPage.value) {
146
+ newMap[Number(virtualPage)] = page;
147
+ newMapReverse[page] = Number(virtualPage);
148
+ const index = availableVirtualPages.indexOf(Number(virtualPage));
149
+ if (index !== -1) availableVirtualPages.splice(index, 1);
150
+ }
151
+ }
152
+ const newPages = [];
153
+ for (let page = startPage.value; page <= endPage.value; page++) {
154
+ if (!(page in newMapReverse)) newPages.push(page);
155
+ }
156
+ let virtualIndex = virtualPageCount.value;
157
+ for (const page of newPages) {
158
+ const virtualPage = availableVirtualPages.shift() ?? ++virtualIndex;
159
+ newMap[virtualPage] = page;
160
+ newMapReverse[page] = virtualPage;
161
+ }
162
+ if (virtualIndex > virtualPageCount.value) virtualPageCount.value = virtualIndex;
163
+ virtualPageMap.value = newMap;
164
+ virtualPageMapReverse.value = newMapReverse;
165
+ }, 500);
166
+ const height = computed(() => pagesTop.value[pageCount.value] ?? 0);
167
+ watch([startPage, endPage], updateVirtualPageMap, { immediate: true });
168
+ const handleScroll = () => {
169
+ const scrollElement = getScrollingElement();
170
+ if (!containerRef.value || !scrollElement) return;
171
+ const newValue = scrollElement.scrollTop - containerRef.value.offsetTop;
172
+ scrollTop.value = newValue;
173
+ visiblePage.value = getVisiblePage();
174
+ };
175
+ const resetScroll = () => {
176
+ const scrollElement = getScrollingElement();
177
+ if (!containerRef.value || !scrollElement) return;
178
+ scrollElement.scrollTop = containerRef.value.offsetTop;
179
+ scrollTop.value = 0;
180
+ visiblePage.value = 1;
181
+ virtualPageMap.value = { 1: 1 };
182
+ virtualPageMapReverse.value = { 1: 1 };
183
+ pagesTop.value = [0];
184
+ };
185
+ watch(() => props.queryParams, resetScroll);
186
+ watch(() => props.count, (newValue) => {
187
+ if (newValue === countValue.value) return;
188
+ countValue.value = newValue;
189
+ pageCount.value = Math.ceil(newValue / PAGE_LENGTH_DEFAULT);
190
+ });
191
+ watch(containerRef, (newValue, oldValue) => {
192
+ oldValue?.removeEventListener("scroll", handleScroll);
193
+ newValue?.addEventListener("scroll", handleScroll, { passive: true });
194
+ if (oldValue) resetScroll();
195
+ });
196
+ onUnmounted(() => {
197
+ containerRef.value?.removeEventListener("scroll", handleScroll);
198
+ });
199
+ return (_ctx, _cache) => {
200
+ return openBlock(), createElementBlock(Fragment, null, [
201
+ createElementVNode("div", _hoisted_1, [
202
+ createElementVNode("div", _hoisted_2, " pageCount: " + toDisplayString(pageCount.value), 1),
203
+ createElementVNode("div", _hoisted_3, " pageItemsHeight: " + toDisplayString(pageItemsHeight.value), 1),
204
+ createElementVNode("div", _hoisted_4, " averagePageHeight: " + toDisplayString(averagePageHeight.value), 1),
205
+ createElementVNode("div", _hoisted_5, " height: " + toDisplayString(height.value), 1),
206
+ createElementVNode("div", _hoisted_6, " virtualPageCount: " + toDisplayString(virtualPageCount.value), 1),
207
+ createElementVNode("div", _hoisted_7, " pageCount: " + toDisplayString(pageCount.value), 1),
208
+ createElementVNode("div", _hoisted_8, " pagesTop: " + toDisplayString(pagesTop.value.length), 1),
209
+ createElementVNode("div", _hoisted_9, " scrollTop: " + toDisplayString(scrollTop.value), 1),
210
+ createElementVNode("div", _hoisted_10, " visiblePage: " + toDisplayString(startPage.value) + " - " + toDisplayString(visiblePage.value) + " - " + toDisplayString(endPage.value), 1),
211
+ createElementVNode("div", _hoisted_11, " pagesOnScreen: " + toDisplayString(pagesOnScreen.value), 1),
212
+ createElementVNode("div", _hoisted_12, " virtualPageMap: " + toDisplayString(Array(virtualPageCount.value).fill(null).map((_, index) => virtualPageMap.value[index + 1])), 1)
213
+ ]),
214
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.minHeight ? _sfc_main$1 : _sfc_main$2), {
215
+ "init-is-intersecting": visiblePage.value !== 1 ? false : void 0,
216
+ "no-header-update": _ctx.noHeaderUpdate
217
+ }, {
218
+ header: withCtx((headerScope) => [
219
+ renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ isFetching: unref(isFetching), isRefetchingAll: unref(isRefetchingAll), refetchAll: unref(refetchAll), ...headerScope })))
220
+ ]),
221
+ default: withCtx((defaultScope) => [
222
+ createElementVNode("div", mergeProps({ ref: "container" }, _ctx.$attrs, {
223
+ style: {
224
+ height: `${height.value}px`,
225
+ "--infinite-list-header-height": defaultScope && "headerHeight" in defaultScope ? defaultScope.headerHeight + "px" : void 0
226
+ },
227
+ class: [{
228
+ "-min-h--height-inner list:pt-[--w-list-gap,1rem] pb-16": !_ctx.minHeight,
229
+ "min-h-full": _ctx.minHeight
230
+ }, "relative"]
231
+ }), [
232
+ (openBlock(true), createElementBlock(Fragment, null, renderList(virtualPageCount.value, (index) => {
233
+ return openBlock(), createBlock(_sfc_main$3, {
234
+ key: index,
235
+ ref_for: true,
236
+ ref: "page",
237
+ "virtual-index": index,
238
+ "use-query-fn": _ctx.useQueryFn,
239
+ "query-params": _ctx.queryParams,
240
+ "query-options": _ctx.queryOptions,
241
+ page: virtualPageMap.value[index] ?? null,
242
+ "initial-page-height": averagePageHeight.value,
243
+ "skeleton-length": getSkeletonLength(virtualPageMap.value[index] ?? 0),
244
+ "empty-stub": _ctx.emptyStub,
245
+ style: normalizeStyle({
246
+ transform: `translateY(${!virtualPageMap.value[index] ? "-9999" : pagesTop.value[virtualPageMap.value[index] - 1]}px)`
247
+ }),
248
+ class: normalizeClass([_ctx.pageClass, "absolute left-0 top-0"]),
249
+ "onUpdate:pageCount": _cache[0] || (_cache[0] = ($event) => pageCount.value = $event),
250
+ "onUpdate:count": _cache[1] || (_cache[1] = ($event) => {
251
+ countValue.value = $event;
252
+ _ctx.$emit("update:count", $event);
253
+ }),
254
+ "onUpdate:pageHeight": ($event) => updatePagesTop(virtualPageMap.value[index] ?? null),
255
+ onRefetch: ($event) => unref(refetchNextPages)(virtualPageMap.value[index] ?? 0)
256
+ }, createSlots({
257
+ default: withCtx((scope) => [
258
+ renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, scope))
259
+ ]),
260
+ _: 2
261
+ }, [
262
+ _ctx.$slots.empty ? {
263
+ name: "empty",
264
+ fn: withCtx(() => [
265
+ renderSlot(_ctx.$slots, "empty")
266
+ ]),
267
+ key: "0"
268
+ } : void 0
269
+ ]), 1032, ["virtual-index", "use-query-fn", "query-params", "query-options", "page", "initial-page-height", "skeleton-length", "empty-stub", "style", "class", "onUpdate:pageHeight", "onRefetch"]);
270
+ }), 128)),
271
+ (openBlock(true), createElementBlock(Fragment, null, renderList(pageCount.value, (page) => {
272
+ return openBlock(), createElementBlock("div", {
273
+ key: page,
274
+ class: "-w--width-inner absolute left-0 top-0 z-[1] border-t border-gray-300 bg-gray-200/20 py-1 text-center text-xs text-gray-500",
275
+ style: normalizeStyle({
276
+ transform: `translateY(${pagesTop.value[page - 1]}px)`
277
+ })
278
+ }, toDisplayString(page) + ": " + toDisplayString(pagesTop.value[page - 1] ?? 0), 5);
279
+ }), 128))
280
+ ], 16)
281
+ ]),
282
+ _: 3
283
+ }, 8, ["init-is-intersecting", "no-header-update"]))
284
+ ], 64);
285
+ };
286
+ }
287
+ });
288
+
289
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WVirtualScroll.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,59 @@
1
+ import { ApiError } from '../../../utils/api';
2
+ declare const _default: <Data extends {
3
+ id: string | number;
4
+ }, 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<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:count"?: ((value: number) => any) | undefined;
7
+ readonly onRefetch?: (() => any) | undefined;
8
+ readonly "onUpdate:error"?: ((value: ApiError<{}, {
9
+ detail?: string | undefined;
10
+ non_field_errors?: string[] | undefined;
11
+ }>) => any) | undefined;
12
+ readonly "onUpdate:page-count"?: ((value: number) => any) | undefined;
13
+ readonly "onUpdate:page-height"?: (() => any) | undefined;
14
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onUpdate:error" | "onRefetch" | "onUpdate:page-count" | "onUpdate:page-height"> & {
15
+ virtualIndex: number;
16
+ useQueryFn: UseQueryWithParams<PaginatedResponse<Data>, QueryParams>;
17
+ queryOptions?: Partial<QueryOptions<PaginatedResponse<Data>>>;
18
+ queryParams: QueryParams;
19
+ page: number | null;
20
+ initialPageHeight: number;
21
+ skeletonLength: number;
22
+ emptyStub: string | undefined;
23
+ } & Partial<{}>> & import('vue').PublicProps;
24
+ expose(exposed: import('vue').ShallowUnwrapRef<{
25
+ pageHeight: import('vue').Ref<number, number>;
26
+ pageCount: import('vue').ComputedRef<number | undefined>;
27
+ pageNumber: import('vue').ComputedRef<number | null>;
28
+ refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<PaginatedResponse<Data>, ApiError<{}, {
29
+ detail?: string | undefined;
30
+ non_field_errors?: string[] | undefined;
31
+ }>>>;
32
+ isFetching: import('vue').Ref<boolean, boolean>;
33
+ }>): void;
34
+ attrs: any;
35
+ slots: {
36
+ default?(_: {
37
+ item: Data;
38
+ updatePageHeight: () => void;
39
+ index: number;
40
+ page: number | null;
41
+ refetch: () => void;
42
+ }): any;
43
+ empty?(_: {}): any;
44
+ };
45
+ emit: {
46
+ (e: "update:page-count", value: number): void;
47
+ (e: "update:count", value: number): void;
48
+ (e: "update:page-height"): void;
49
+ (e: "update:error", value: ApiError): void;
50
+ (e: "refetch"): void;
51
+ };
52
+ }>) => import('vue').VNode & {
53
+ __ctx?: Awaited<typeof __VLS_setup>;
54
+ };
55
+ export default _default;
56
+ type __VLS_PrettifyLocal<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ //# sourceMappingURL=VirtualScrollPage.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualScrollPage.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/VirtualScroll/components/VirtualScrollPage.vue"],"names":[],"mappings":"AAsBA;AAqGA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAA;yBAIxB,IAAI,SAAS;IAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,EAAE,WAAW,EAC/D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuJO,mBAAmB,CAAC;;;;;;;;;;sBArJZ,MAAM;oBACR,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;uBACrD,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;qBAChD,WAAW;cAClB,MAAM,GAAG,IAAI;2BACA,MAAM;wBACT,MAAM;mBACX,MAAM,GAAG,SAAS;mBA8I+D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;;;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;;;;;;;YAlCkB,GAAG;uBACL,GAAG;;;YA1GxB,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,GAAG,IAAI;YAC3B,cAAc,SAAS,QAAQ,GAAG,IAAI;YACtC,SAAS,GAAG,IAAI;;EA2IlB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlKzE,wBAkK4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { defineComponent, computed, useTemplateRef, ref, watch, nextTick, onMounted, createElementBlock, openBlock, createElementVNode, renderSlot, createCommentVNode, toDisplayString, Fragment, renderList, unref, mergeProps } from 'vue';
2
+
3
+ const _hoisted_1 = { ref: "page" };
4
+ const _hoisted_2 = { class: "text-accent sm:-left--left-inner sm:-max-w--width-inner flex justify-center px-8 py-16 text-center font-normal sm:sticky" };
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "VirtualScrollPage",
7
+ props: {
8
+ virtualIndex: {},
9
+ useQueryFn: {},
10
+ queryOptions: {},
11
+ queryParams: {},
12
+ page: {},
13
+ initialPageHeight: {},
14
+ skeletonLength: {},
15
+ emptyStub: {}
16
+ },
17
+ emits: ["update:page-count", "update:count", "update:page-height", "update:error", "refetch"],
18
+ setup(__props, { expose: __expose, emit: __emit }) {
19
+ const props = __props;
20
+ const emit = __emit;
21
+ const skeletonItems = computed(() => Array(props.skeletonLength).fill(null).map((_, id) => ({ id })));
22
+ const queryParams = computed(() => ({ ...props.queryParams, page: props.page }));
23
+ const { data, error, refetch, isFetching } = props.useQueryFn(queryParams, { ...props.queryOptions ?? {}, enabled: computed(() => props.page !== null) });
24
+ const pageRef = useTemplateRef("page");
25
+ const pageHeight = ref(props.initialPageHeight);
26
+ const pageCount = computed(() => data.value?.pages_count);
27
+ const count = computed(() => data.value?.count);
28
+ const pageNumber = computed(() => props.page);
29
+ const updatePageHeight = () => {
30
+ pageHeight.value = pageRef.value?.offsetHeight ?? props.initialPageHeight;
31
+ emit("update:page-height");
32
+ };
33
+ const emitRefetch = () => emit("refetch");
34
+ watch(data, async () => {
35
+ await nextTick();
36
+ updatePageHeight();
37
+ });
38
+ watch(pageCount, (value) => {
39
+ if (value !== void 0) emit("update:page-count", value);
40
+ }, { immediate: true });
41
+ watch(count, (value) => {
42
+ if (value !== void 0) emit("update:count", value);
43
+ }, { immediate: true });
44
+ watch(error, (error2) => {
45
+ if (error2) emit("update:error", error2);
46
+ }, { immediate: true });
47
+ onMounted(() => {
48
+ updatePageHeight();
49
+ });
50
+ __expose({
51
+ pageHeight,
52
+ pageCount,
53
+ pageNumber,
54
+ refetch,
55
+ isFetching
56
+ });
57
+ return (_ctx, _cache) => {
58
+ return openBlock(), createElementBlock("div", _hoisted_1, [
59
+ createElementVNode("div", null, " virtualIndex: " + toDisplayString(_ctx.virtualIndex), 1),
60
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(data)?.results ?? skeletonItems.value, (item, index) => {
61
+ return renderSlot(_ctx.$slots, "default", mergeProps({
62
+ key: item.id,
63
+ ref_for: true
64
+ }, { item, updatePageHeight, index, page: _ctx.page, refetch: emitRefetch }));
65
+ }), 128)),
66
+ unref(data)?.results.length === 0 ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
67
+ createElementVNode("div", _hoisted_2, toDisplayString(_ctx.emptyStub ?? "Nothing to show"), 1)
68
+ ]) : createCommentVNode("", true)
69
+ ], 512);
70
+ };
71
+ }
72
+ });
73
+
74
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './VirtualScrollPage.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
package/dist/main.d.ts CHANGED
@@ -107,6 +107,7 @@ import { default as WToggle } from './components/Toggle/WToggle.vue';
107
107
  import { default as WToggleTheme } from './components/Toggle/WToggleTheme.vue';
108
108
  import { default as WTooltip } from './components/Tooltip/WTooltip.vue';
109
109
  import { default as WTooltipContainer } from './components/Tooltip/WTooltipContainer.vue';
110
+ import { default as WVirtualScroll } from './components/VirtualScroll/WVirtualScroll.vue';
110
111
  export * from './utils/ApiClient.ts';
111
112
  export * from './utils/DOMListenerContainer.ts';
112
113
  export * from './utils/HorizontalAlign.ts';
@@ -224,5 +225,5 @@ declare const _default: {
224
225
  install: (app: App | any) => void;
225
226
  };
226
227
  export default _default;
227
- export { WActionsBar, WActionsBarFilter, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonTab, WButtonUnselect, WChartLine, WChartLinear, WCheckbox, WCheckboxGroup, WCheckboxGroupMultiple, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDismissable, WDragContainer, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WHeaderBarSearch, WImageViewer, WInfiniteList, WInfiniteListScrollingElement, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WInputToolbarButton, WLink, WLinkArrow, WList, WListCard, WListCardField, WListFilter, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalExport, WModalExportSimple, WModalImport, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WProgressStriped, WRouterLink, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WShine, WShineEffect, WSkeleton, WSlider, WSliderRange, WSpinner, WStatusIcon, WTabs, WTabsColumns, WTabsItem, WToggle, WToggleTheme, WTooltip, WTooltipContainer, };
228
+ export { WActionsBar, WActionsBarFilter, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonTab, WButtonUnselect, WChartLine, WChartLinear, WCheckbox, WCheckboxGroup, WCheckboxGroupMultiple, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDismissable, WDragContainer, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncCheckboxGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WHeaderBarSearch, WImageViewer, WInfiniteList, WInfiniteListScrollingElement, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WInputToolbarButton, WLink, WLinkArrow, WList, WListCard, WListCardField, WListFilter, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalExport, WModalExportSimple, WModalImport, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageBreadcrumbs, WPageNumerator, WPageTitle, WProgress, WProgressStriped, WRouterLink, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WShine, WShineEffect, WSkeleton, WSlider, WSliderRange, WSpinner, WStatusIcon, WTabs, WTabsColumns, WTabsItem, WToggle, WToggleTheme, WTooltip, WTooltipContainer, WVirtualScroll, };
228
229
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,iBAAiB,MAAM,+CAA+C,CAAA;AAC7E,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,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,UAAU,MAAM,oCAAoC,CAAA;AAC3D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,UAAU,MAAM,mCAAmC,CAAA;AAC1D,OAAO,YAAY,MA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EACL,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,SAAS,EACT,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,cAAc,GACf,CAAA"}
package/dist/main.js CHANGED
@@ -106,6 +106,7 @@ import _sfc_main$1B from './components/Toggle/WToggle.vue.js';
106
106
  import _sfc_main$1C from './components/Toggle/WToggleTheme.vue.js';
107
107
  import _sfc_main$1D from './components/Tooltip/WTooltip.vue.js';
108
108
  import _sfc_main$1E from './components/Tooltip/WTooltipContainer.vue.js';
109
+ import _sfc_main$1F from './components/VirtualScroll/WVirtualScroll.vue.js';
109
110
  export { ApiClientInstance, getURLParams } from './utils/ApiClient.js';
110
111
  export { DOMListenerContainer } from './utils/DOMListenerContainer.js';
111
112
  export { HorizontalAlign } from './utils/HorizontalAlign.js';
@@ -332,7 +333,8 @@ const main = {
332
333
  app.component("WToggleTheme", _sfc_main$1C);
333
334
  app.component("WTooltip", _sfc_main$1D);
334
335
  app.component("WTooltipContainer", _sfc_main$1E);
336
+ app.component("WVirtualScroll", _sfc_main$1F);
335
337
  }
336
338
  };
337
339
 
338
- export { _sfc_main as WActionsBar, _sfc_main$1 as WActionsBarFilter, _sfc_main$2 as WBottomSheet, _sfc_main$3 as WButton, _sfc_main$4 as WButtonAction, _sfc_main$5 as WButtonCopy, _sfc_main$6 as WButtonDropdown, _sfc_main$7 as WButtonGroup, _sfc_main$8 as WButtonInput, _sfc_main$9 as WButtonMore, _sfc_main$a as WButtonMoreItem, _sfc_main$b as WButtonSelection, _sfc_main$c as WButtonSelectionAction, _sfc_main$d as WButtonSelectionState, _sfc_main$e as WButtonTab, _sfc_main$f as WButtonUnselect, _sfc_main$g as WChartLine, _sfc_main$h as WChartLinear, _sfc_main$i as WCheckbox, _sfc_main$j as WCheckboxGroup, _sfc_main$k as WCheckboxGroupMultiple, _sfc_main$l as WChip, _sfc_main$m as WClickOutside, _sfc_main$n as WCounter, _sfc_main$o as WDatePicker, _sfc_main$p as WDatePickerSingle, _sfc_main$q as WDismissable, _sfc_main$r as WDragContainer, _sfc_main$s as WDropdown, _sfc_main$t as WDropdownMenu, _sfc_main$u as WEmptyComponent, _sfc_main$v as WExpansion, _sfc_main$w as WExpansionItem, _sfc_main$x as WFieldWrapper, _sfc_main$y as WFilePicker, _sfc_main$z as WFilterWrapper, _sfc_main$A as WForm, _sfc_main$C as WFormAsyncButtonGroup, _sfc_main$D as WFormAsyncCheckboxGroup, _sfc_main$E as WFormAsyncInput, _sfc_main$F as WFormAsyncSelect, _sfc_main$G as WFormAsyncSelectInfiniteSingle, _sfc_main$H as WFormAsyncSelectSingle, _sfc_main$I as WFormAsyncSelectStringified, _sfc_main$J as WFormAsyncToggle, _sfc_main$B as WFormValidator, _sfc_main$K as WHeaderBar, _sfc_main$L as WHeaderBarSearch, _sfc_main$M as WImageViewer, _sfc_main$N as WInfiniteList, _sfc_main$O as WInfiniteListScrollingElement, _sfc_main$P as WInfiniteListWrapper, _sfc_main$Q as WInfoCard, _sfc_main$R as WInfoCardNegative, _sfc_main$S as WInput, _sfc_main$T as WInputAsync, _sfc_main$U as WInputDate, _sfc_main$V as WInputOptions, _sfc_main$W as WInputSuggest, _sfc_main$X as WInputToolbarButton, _sfc_main$Y as WLink, _sfc_main$Z as WLinkArrow, _sfc_main$_ as WList, _sfc_main$$ as WListCard, _sfc_main$10 as WListCardField, _sfc_main$11 as WListFilter, _sfc_main$12 as WListHeader, _sfc_main$13 as WListHeaderItem, _sfc_main$14 as WMenuItem, _sfc_main$15 as WModal, _sfc_main$16 as WModalExport, _sfc_main$17 as WModalExportSimple, _sfc_main$18 as WModalImport, _sfc_main$19 as WModalStepper, _sfc_main$1a as WModalWrapper, _sfc_main$1b as WNavBar, _sfc_main$1c as WNavItem, _sfc_main$1d as WNavItemExpand, WNavItemTransition, _sfc_main$1e as WNotify, _sfc_main$1f as WNumberFormatter, _sfc_main$1g as WPage, _sfc_main$1h as WPageBreadcrumbs, WPageNumerator, _sfc_main$1i as WPageTitle, _sfc_main$1j as WProgress, _sfc_main$1k as WProgressStriped, _sfc_main$1l as WRouterLink, _sfc_main$1m as WSelect, _sfc_main$1n as WSelectAsync, _sfc_main$1o as WSelectAsyncList, _sfc_main$1p as WSelectAsyncSingle, _sfc_main$1q as WSelectSingle, _sfc_main$1r as WSelectStringified, _sfc_main$1s as WShine, _sfc_main$1t as WShineEffect, _sfc_main$1u as WSkeleton, _sfc_main$1v as WSlider, _sfc_main$1w as WSliderRange, WSpinner, _sfc_main$1x as WStatusIcon, _sfc_main$1y as WTabs, _sfc_main$1z as WTabsColumns, _sfc_main$1A as WTabsItem, _sfc_main$1B as WToggle, _sfc_main$1C as WToggleTheme, _sfc_main$1D as WTooltip, _sfc_main$1E as WTooltipContainer, main as default };
340
+ export { _sfc_main as WActionsBar, _sfc_main$1 as WActionsBarFilter, _sfc_main$2 as WBottomSheet, _sfc_main$3 as WButton, _sfc_main$4 as WButtonAction, _sfc_main$5 as WButtonCopy, _sfc_main$6 as WButtonDropdown, _sfc_main$7 as WButtonGroup, _sfc_main$8 as WButtonInput, _sfc_main$9 as WButtonMore, _sfc_main$a as WButtonMoreItem, _sfc_main$b as WButtonSelection, _sfc_main$c as WButtonSelectionAction, _sfc_main$d as WButtonSelectionState, _sfc_main$e as WButtonTab, _sfc_main$f as WButtonUnselect, _sfc_main$g as WChartLine, _sfc_main$h as WChartLinear, _sfc_main$i as WCheckbox, _sfc_main$j as WCheckboxGroup, _sfc_main$k as WCheckboxGroupMultiple, _sfc_main$l as WChip, _sfc_main$m as WClickOutside, _sfc_main$n as WCounter, _sfc_main$o as WDatePicker, _sfc_main$p as WDatePickerSingle, _sfc_main$q as WDismissable, _sfc_main$r as WDragContainer, _sfc_main$s as WDropdown, _sfc_main$t as WDropdownMenu, _sfc_main$u as WEmptyComponent, _sfc_main$v as WExpansion, _sfc_main$w as WExpansionItem, _sfc_main$x as WFieldWrapper, _sfc_main$y as WFilePicker, _sfc_main$z as WFilterWrapper, _sfc_main$A as WForm, _sfc_main$C as WFormAsyncButtonGroup, _sfc_main$D as WFormAsyncCheckboxGroup, _sfc_main$E as WFormAsyncInput, _sfc_main$F as WFormAsyncSelect, _sfc_main$G as WFormAsyncSelectInfiniteSingle, _sfc_main$H as WFormAsyncSelectSingle, _sfc_main$I as WFormAsyncSelectStringified, _sfc_main$J as WFormAsyncToggle, _sfc_main$B as WFormValidator, _sfc_main$K as WHeaderBar, _sfc_main$L as WHeaderBarSearch, _sfc_main$M as WImageViewer, _sfc_main$N as WInfiniteList, _sfc_main$O as WInfiniteListScrollingElement, _sfc_main$P as WInfiniteListWrapper, _sfc_main$Q as WInfoCard, _sfc_main$R as WInfoCardNegative, _sfc_main$S as WInput, _sfc_main$T as WInputAsync, _sfc_main$U as WInputDate, _sfc_main$V as WInputOptions, _sfc_main$W as WInputSuggest, _sfc_main$X as WInputToolbarButton, _sfc_main$Y as WLink, _sfc_main$Z as WLinkArrow, _sfc_main$_ as WList, _sfc_main$$ as WListCard, _sfc_main$10 as WListCardField, _sfc_main$11 as WListFilter, _sfc_main$12 as WListHeader, _sfc_main$13 as WListHeaderItem, _sfc_main$14 as WMenuItem, _sfc_main$15 as WModal, _sfc_main$16 as WModalExport, _sfc_main$17 as WModalExportSimple, _sfc_main$18 as WModalImport, _sfc_main$19 as WModalStepper, _sfc_main$1a as WModalWrapper, _sfc_main$1b as WNavBar, _sfc_main$1c as WNavItem, _sfc_main$1d as WNavItemExpand, WNavItemTransition, _sfc_main$1e as WNotify, _sfc_main$1f as WNumberFormatter, _sfc_main$1g as WPage, _sfc_main$1h as WPageBreadcrumbs, WPageNumerator, _sfc_main$1i as WPageTitle, _sfc_main$1j as WProgress, _sfc_main$1k as WProgressStriped, _sfc_main$1l as WRouterLink, _sfc_main$1m as WSelect, _sfc_main$1n as WSelectAsync, _sfc_main$1o as WSelectAsyncList, _sfc_main$1p as WSelectAsyncSingle, _sfc_main$1q as WSelectSingle, _sfc_main$1r as WSelectStringified, _sfc_main$1s as WShine, _sfc_main$1t as WShineEffect, _sfc_main$1u as WSkeleton, _sfc_main$1v as WSlider, _sfc_main$1w as WSliderRange, WSpinner, _sfc_main$1x as WStatusIcon, _sfc_main$1y as WTabs, _sfc_main$1z as WTabsColumns, _sfc_main$1A as WTabsItem, _sfc_main$1B as WToggle, _sfc_main$1C as WToggleTheme, _sfc_main$1D as WTooltip, _sfc_main$1E as WTooltipContainer, _sfc_main$1F as WVirtualScroll, main as default };
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.11.53",
7
+ "version": "0.11.55",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.2.3",
10
10
  "@tanstack/eslint-plugin-query": "5.83.1",
@@ -482,6 +482,9 @@
482
482
  },
483
483
  "./dist/components/Tooltip/WTooltipContainer.vue": {
484
484
  "import": "./dist/components/Tooltip/WTooltipContainer.vue.js"
485
+ },
486
+ "./dist/components/VirtualScroll/WVirtualScroll.vue": {
487
+ "import": "./dist/components/VirtualScroll/WVirtualScroll.vue.js"
485
488
  }
486
489
  }
487
490
  }