eco-vue-js 0.4.15 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/components/Button/WButtonAction.vue.js +1 -0
  2. package/dist/components/Button/WButtonGroup.vue.d.ts +12 -6
  3. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  4. package/dist/components/Button/WButtonGroup.vue.js +6 -4
  5. package/dist/components/Button/WButtonSelection.vue.d.ts +23 -3
  6. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  7. package/dist/components/Button/WButtonSelection.vue.js +8 -6
  8. package/dist/components/Checkbox/WCheckbox.vue.d.ts +4 -0
  9. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  10. package/dist/components/Checkbox/WCheckbox.vue.js +20 -18
  11. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +46 -19
  12. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  13. package/dist/components/InfiniteList/WInfiniteList.vue.js +16 -7
  14. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +34 -16
  15. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  16. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +29 -13
  17. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +49 -31
  18. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  19. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +47 -19
  20. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +29 -17
  21. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  22. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
  23. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +1 -0
  24. package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
  25. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  26. package/dist/components/ListCard/WListCard.vue.d.ts +12 -0
  27. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  28. package/dist/components/ListCard/WListCard.vue.js +17 -8
  29. package/dist/components/Select/WSelectAsync.vue.d.ts +10 -7
  30. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  31. package/dist/components/Select/WSelectAsync.vue.js +4 -2
  32. package/dist/components/Select/WSelectAsyncList.vue.d.ts +13 -10
  33. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  34. package/dist/components/Select/WSelectAsyncList.vue.js +4 -2
  35. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +10 -7
  36. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  37. package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -2
  38. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +13 -10
  39. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  40. package/dist/components/Select/components/SelectAsyncList.vue.js +4 -2
  41. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +10 -7
  42. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  43. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +4 -2
  44. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +10 -7
  45. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  46. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +3 -1
  47. package/dist/main.d.ts +1 -0
  48. package/dist/main.d.ts.map +1 -1
  49. package/dist/main.js +1 -0
  50. package/dist/types/global.d.ts +11 -9
  51. package/dist/utils/useDefaultQuery.d.ts +7 -0
  52. package/dist/utils/useDefaultQuery.d.ts.map +1 -0
  53. package/dist/utils/useDefaultQuery.js +12 -0
  54. package/package.json +4 -1
@@ -7,6 +7,7 @@ import '../../utils/supportsPassive.js';
7
7
  import '../Dropdown/utils/DropdownStyle.js';
8
8
  import '../../utils/Modal.js';
9
9
  import '../Link/WLink.vue.js';
10
+ import '@tanstack/vue-query';
10
11
 
11
12
  const _hoisted_1 = { class: "font-normal text-center md:text-base text-[0.625rem] whitespace-nowrap" };
12
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,27 +1,29 @@
1
1
  import { SemanticType } from '../../utils/SemanticType';
2
2
  declare const _default: <Model extends string | number | boolean | null, Entity extends Record<string, unknown>, ValueGetter extends ((value: Entity) => Model) | undefined = undefined>(__VLS_props: ({
3
+ col?: boolean | undefined;
3
4
  title?: string | undefined;
4
5
  semanticType?: SemanticType | undefined;
5
6
  disabled?: boolean | undefined;
6
7
  loading?: string | number | undefined;
7
8
  minimize?: boolean | undefined;
8
9
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
9
- modelValue: Model;
10
10
  list: Entity[];
11
11
  valueGetter: ValueGetter | ((value: Entity) => Model);
12
+ modelValue: Model;
12
13
  wrap?: boolean | undefined;
13
14
  stretch?: boolean | undefined;
14
15
  alwaysEmit?: boolean | undefined;
15
16
  } | {
17
+ col?: boolean | undefined;
16
18
  title?: string | undefined;
17
19
  semanticType?: SemanticType | undefined;
18
20
  disabled?: boolean | undefined;
19
21
  loading?: string | number | undefined;
20
22
  minimize?: boolean | undefined;
21
23
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
22
- modelValue: Model;
23
24
  list: Model[];
24
25
  valueGetter?: ValueGetter | undefined;
26
+ modelValue: Model;
25
27
  wrap?: boolean | undefined;
26
28
  stretch?: boolean | undefined;
27
29
  alwaysEmit?: boolean | undefined;
@@ -36,28 +38,30 @@ declare const _default: <Model extends string | number | boolean | null, Entity
36
38
  emit: (e: 'update:modelValue', value: Model) => void;
37
39
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
38
40
  props: ({
41
+ col?: boolean | undefined;
39
42
  title?: string | undefined;
40
43
  semanticType?: SemanticType | undefined;
41
44
  disabled?: boolean | undefined;
42
45
  loading?: string | number | undefined;
43
46
  minimize?: boolean | undefined;
44
47
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
45
- modelValue: Model;
46
48
  list: Entity[];
47
49
  valueGetter: ValueGetter | ((value: Entity) => Model);
50
+ modelValue: Model;
48
51
  wrap?: boolean | undefined;
49
52
  stretch?: boolean | undefined;
50
53
  alwaysEmit?: boolean | undefined;
51
54
  } | {
55
+ col?: boolean | undefined;
52
56
  title?: string | undefined;
53
57
  semanticType?: SemanticType | undefined;
54
58
  disabled?: boolean | undefined;
55
59
  loading?: string | number | undefined;
56
60
  minimize?: boolean | undefined;
57
61
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
58
- modelValue: Model;
59
62
  list: Model[];
60
63
  valueGetter?: ValueGetter | undefined;
64
+ modelValue: Model;
61
65
  wrap?: boolean | undefined;
62
66
  stretch?: boolean | undefined;
63
67
  alwaysEmit?: boolean | undefined;
@@ -76,28 +80,30 @@ declare const _default: <Model extends string | number | boolean | null, Entity
76
80
  }> & {
77
81
  __ctx?: {
78
82
  props: ({
83
+ col?: boolean | undefined;
79
84
  title?: string | undefined;
80
85
  semanticType?: SemanticType | undefined;
81
86
  disabled?: boolean | undefined;
82
87
  loading?: string | number | undefined;
83
88
  minimize?: boolean | undefined;
84
89
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
85
- modelValue: Model;
86
90
  list: Entity[];
87
91
  valueGetter: ValueGetter | ((value: Entity) => Model);
92
+ modelValue: Model;
88
93
  wrap?: boolean | undefined;
89
94
  stretch?: boolean | undefined;
90
95
  alwaysEmit?: boolean | undefined;
91
96
  } | {
97
+ col?: boolean | undefined;
92
98
  title?: string | undefined;
93
99
  semanticType?: SemanticType | undefined;
94
100
  disabled?: boolean | undefined;
95
101
  loading?: string | number | undefined;
96
102
  minimize?: boolean | undefined;
97
103
  "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
98
- modelValue: Model;
99
104
  list: Model[];
100
105
  valueGetter?: ValueGetter | undefined;
106
+ modelValue: Model;
101
107
  wrap?: boolean | undefined;
102
108
  stretch?: boolean | undefined;
103
109
  alwaysEmit?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAuCA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;gBAwBnC,KAAK;UAEX,MAAM,EAAE;wCACsB,MAAM,KAAK,KAAK;;;;;;;;;;;gBAjBxC,KAAK;UAEX,KAAK,EAAE;kBACC,WAAW,GAAG,SAAS;;;;;WAuLhC,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAnI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;yCA2J9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;oBA3K3C,KAAK;cAEX,MAAM,EAAE;4CACsB,MAAM,KAAK,KAAK;;;;;;;;;;;oBAjBxC,KAAK;cAEX,KAAK,EAAE;sBACC,WAAW,GAAG,SAAS;;;;;oBAsLvB,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAnI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;;;;;;;;;wBAhBhC,KAAK;kBAEX,MAAM,EAAE;gDACsB,MAAM,KAAK,KAAK;;;;;;;;;;;wBAjBxC,KAAK;kBAEX,KAAK,EAAE;0BACC,WAAW,GAAG,SAAS;;;;;wBAsLvB,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;2BA1BkB,GAAG;;;gBACD,GAAG;;kBAnI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;AArC9C,wBAsM2E"}
1
+ {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAwCA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;UA4BzC,MAAM,EAAE;wCACsB,MAAM,KAAK,KAAK;gBAnBxC,KAAK;;;;;;;;;;;;UAaX,KAAK,EAAE;kBACC,WAAW,GAAG,SAAS;gBAdzB,KAAK;;;;;WAsLZ,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cApI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;yCA4J9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;cAnKjD,MAAM,EAAE;4CACsB,MAAM,KAAK,KAAK;oBAnBxC,KAAK;;;;;;;;;;;;cAaX,KAAK,EAAE;sBACC,WAAW,GAAG,SAAS;oBAdzB,KAAK;;;;;oBAqLH,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cApI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;;;;;;;;;;kBAPtC,MAAM,EAAE;gDACsB,MAAM,KAAK,KAAK;wBAnBxC,KAAK;;;;;;;;;;;;kBAaX,KAAK,EAAE;0BACC,WAAW,GAAG,SAAS;wBAdzB,KAAK;;;;;wBAqLH,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;2BA1BkB,GAAG;;;gBACD,GAAG;;kBApI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;AAhC9C,wBAkM2E"}
@@ -5,14 +5,15 @@ import { SemanticType } from '../../utils/SemanticType.js';
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "WButtonGroup",
7
7
  props: {
8
- modelValue: {},
9
- title: {},
10
8
  list: {},
11
9
  valueGetter: { type: Function },
10
+ modelValue: {},
11
+ title: {},
12
12
  disabled: { type: Boolean },
13
13
  loading: {},
14
14
  minimize: { type: Boolean },
15
15
  wrap: { type: Boolean },
16
+ col: { type: Boolean },
16
17
  semanticType: {},
17
18
  stretch: { type: Boolean },
18
19
  alwaysEmit: { type: Boolean }
@@ -39,7 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  ], 2)) : createCommentVNode("", true),
40
41
  createElementVNode("div", {
41
42
  class: normalizeClass(["flex px-px", {
42
- "flex-wrap gap-2": _ctx.wrap
43
+ "flex-wrap gap-2": _ctx.wrap,
44
+ "flex-col gap-2 items-start": _ctx.col
43
45
  }])
44
46
  }, [
45
47
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
@@ -49,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
51
  loading: getValue(item) === _ctx.loading,
50
52
  disabled: _ctx.disabled || _ctx.loading !== void 0 && getValue(item) !== _ctx.loading,
51
53
  minimize: _ctx.minimize,
52
- class: normalizeClass(_ctx.wrap ? [
54
+ class: normalizeClass(_ctx.wrap || _ctx.col ? [
53
55
  getValue(item) !== _ctx.modelValue && "-mx-px"
54
56
  ] : [
55
57
  index !== _ctx.list.length - 1 ? "rounded-r-none border-r-0" : getValue(item) !== _ctx.modelValue && "-mr-px",
@@ -1,16 +1,28 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  title?: string | undefined;
3
3
  selectedLength?: number | undefined;
4
4
  disableMessageMore?: string | undefined;
5
+ }>, {
6
+ title: string;
7
+ selectedLength: undefined;
8
+ disableMessageMore: undefined;
5
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
10
  "clear:selected": () => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
12
  title?: string | undefined;
9
13
  selectedLength?: number | undefined;
10
14
  disableMessageMore?: string | undefined;
15
+ }>, {
16
+ title: string;
17
+ selectedLength: undefined;
18
+ disableMessageMore: undefined;
11
19
  }>>> & {
12
20
  "onClear:selected"?: (() => any) | undefined;
13
- }, {}, {}>;
21
+ }, {
22
+ title: string;
23
+ selectedLength: number;
24
+ disableMessageMore: string;
25
+ }, {}>;
14
26
  export default _default;
15
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
28
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -21,4 +33,12 @@ type __VLS_TypePropsToRuntimeProps<T> = {
21
33
  required: true;
22
34
  };
23
35
  };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
24
44
  //# sourceMappingURL=WButtonSelection.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAkEA;;;;;;;;;;;;;;AAiSA,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
1
+ {"version":3,"file":"WButtonSelection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonSelection.vue"],"names":[],"mappings":"AAoEA;;;;;;;;;;;;;;;;;;;;;;WAuTY,MAAM;oBACG,MAAM;wBACF,MAAM;;AAR/B,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -20,9 +20,9 @@ const _hoisted_7 = { class: "sm-not:text-xs" };
20
20
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  __name: "WButtonSelection",
22
22
  props: {
23
- title: {},
24
- selectedLength: {},
25
- disableMessageMore: {}
23
+ title: { default: "item" },
24
+ selectedLength: { default: void 0 },
25
+ disableMessageMore: { default: void 0 }
26
26
  },
27
27
  emits: ["clear:selected"],
28
28
  setup(__props) {
@@ -79,9 +79,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
79
  default: withCtx(() => [
80
80
  _ctx.selectedLength ? (openBlock(), createElementBlock("div", _hoisted_3, [
81
81
  createElementVNode("div", _hoisted_4, [
82
- _hoisted_5,
83
- createElementVNode("span", _hoisted_6, toDisplayString(unref(numberFormatter).format(_ctx.selectedLength)), 1),
84
- createElementVNode("span", _hoisted_7, " " + toDisplayString(_ctx.title ?? "item") + toDisplayString(_ctx.selectedLength === 1 ? "" : "s"), 1)
82
+ _ctx.selectedLength ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
83
+ _hoisted_5,
84
+ createElementVNode("span", _hoisted_6, toDisplayString(unref(numberFormatter).format(_ctx.selectedLength)), 1),
85
+ createElementVNode("span", _hoisted_7, " " + toDisplayString(_ctx.title) + toDisplayString(_ctx.selectedLength === 1 ? "" : "s"), 1)
86
+ ], 64)) : createCommentVNode("", true)
85
87
  ]),
86
88
  createElementVNode("div", {
87
89
  class: "relative text-description sm-not:-px--inner-margin px-[1.125rem] flex items-center cursor-pointer select-none w-ripple w-ripple-hover",
@@ -8,8 +8,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  loading?: boolean | undefined;
9
9
  intermediate?: boolean | undefined;
10
10
  tooltipText?: string | undefined;
11
+ allowShift?: boolean | undefined;
11
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
13
  "update:modelValue": (value: boolean) => void;
14
+ "update-shift:modelValue": (value: boolean) => void;
13
15
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
16
  modelValue: boolean | null;
15
17
  title?: string | undefined;
@@ -20,8 +22,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
22
  loading?: boolean | undefined;
21
23
  intermediate?: boolean | undefined;
22
24
  tooltipText?: string | undefined;
25
+ allowShift?: boolean | undefined;
23
26
  }>>> & {
24
27
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
+ "onUpdate-shift:modelValue"?: ((value: boolean) => any) | undefined;
25
29
  }, {}, {}>, {
26
30
  default?(_: {}): any;
27
31
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AAkFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0QA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"WCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/WCheckbox.vue"],"names":[],"mappings":"AAkFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6QA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, withKeys, withModifiers, createVNode, Transition, withCtx, withDirectives, vShow, createBlock, resolveDynamicComponent, unref, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withKeys, withModifiers, createVNode, Transition, withCtx, withDirectives, vShow, createBlock, resolveDynamicComponent, unref, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
2
  import IconCheck from '../../assets/icons/default/IconCheck.svg.js';
3
3
  import _sfc_main$1 from '../Tooltip/WTooltip.vue.js';
4
4
  import WSpinner from '../Spinner/WSpinner.vue.js';
@@ -19,21 +19,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  radio: { type: Boolean },
20
20
  loading: { type: Boolean },
21
21
  intermediate: { type: Boolean },
22
- tooltipText: {}
22
+ tooltipText: {},
23
+ allowShift: { type: Boolean }
23
24
  },
24
- emits: ["update:modelValue"],
25
+ emits: ["update:modelValue", "update-shift:modelValue"],
25
26
  setup(__props, { emit: __emit }) {
26
27
  const props = __props;
27
28
  const emit = __emit;
28
29
  const element = ref();
29
- const value = computed({
30
- get: () => props.modelValue,
31
- set: (value2) => emit("update:modelValue", value2 === true)
32
- });
33
- const toggle = () => {
30
+ const toggle = (e) => {
34
31
  if (props.disabled || props.readonly || props.loading)
35
32
  return;
36
- value.value = !value.value;
33
+ if (props.allowShift && e.shiftKey) {
34
+ emit("update-shift:modelValue", !props.modelValue);
35
+ return;
36
+ } else {
37
+ emit("update:modelValue", !props.modelValue);
38
+ }
37
39
  };
38
40
  return (_ctx, _cache) => {
39
41
  return openBlock(), createElementBlock("button", {
@@ -48,9 +50,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
50
  }, [
49
51
  createElementVNode("div", {
50
52
  class: normalizeClass(["relative flex justify-center items-center square-6 border border-solid isolate bg-default dark:bg-default-dark", {
51
- "text-default dark:text-default-dark": value.value && !_ctx.disabled,
52
- "text-primary-default dark:text-primary-dark": !value.value && !_ctx.disabled,
53
- "text-gray-300 dark:text-gray-700": !value.value && _ctx.disabled,
53
+ "text-default dark:text-default-dark": _ctx.modelValue && !_ctx.disabled,
54
+ "text-primary-default dark:text-primary-dark": !_ctx.modelValue && !_ctx.disabled,
55
+ "text-gray-300 dark:text-gray-700": !_ctx.modelValue && _ctx.disabled,
54
56
  "w-ripple w-hover-circle before:text-accent after:text-accent": !_ctx.disabled && !_ctx.readonly,
55
57
  "rounded-full": _ctx.radio,
56
58
  "rounded-md": !_ctx.radio,
@@ -68,15 +70,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
70
  default: withCtx(() => [
69
71
  withDirectives(createElementVNode("div", {
70
72
  class: normalizeClass(["absolute square-full -z-10 transition-[opacity,transform]", {
71
- "scale-[0.33] rounded-full": _ctx.radio && _ctx.intermediate && value.value === null,
72
- "scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && value.value === null,
73
- "scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && value.value === null),
74
- "rounded": !_ctx.radio && !(_ctx.intermediate && value.value === null),
73
+ "scale-[0.33] rounded-full": _ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
74
+ "scale-[0.66] rounded": !_ctx.radio && _ctx.intermediate && _ctx.modelValue === null,
75
+ "scale-[0.66] rounded-full": _ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
76
+ "rounded": !_ctx.radio && !(_ctx.intermediate && _ctx.modelValue === null),
75
77
  "bg-primary-default dark:bg-primary-dark": !_ctx.disabled,
76
78
  "bg-gray-300 dark:bg-gray-700": _ctx.disabled
77
79
  }])
78
80
  }, null, 2), [
79
- [vShow, value.value !== false]
81
+ [vShow, _ctx.modelValue !== false]
80
82
  ])
81
83
  ]),
82
84
  _: 1
@@ -91,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
93
  key: 2,
92
94
  class: "square-4"
93
95
  }, null, 512)), [
94
- [vShow, value.value]
96
+ [vShow, _ctx.modelValue]
95
97
  ]) : createCommentVNode("", true),
96
98
  _ctx.tooltipText ? (openBlock(), createBlock(_sfc_main$1, {
97
99
  key: 3,
@@ -1,15 +1,15 @@
1
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
2
2
  transition?: boolean | undefined;
3
3
  valueGetter?: ((data: Data) => Model) | undefined;
4
4
  wrap?: boolean | undefined;
5
5
  "onUpdate:count"?: ((value: number) => any) | undefined;
6
6
  scrollingElement?: Element | null | undefined;
7
- queryParams: QueryParams;
8
7
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
8
+ queryParams: QueryParams;
9
9
  selected?: Model[] | undefined;
10
10
  selectOnly?: boolean | undefined;
11
11
  unselectOnly?: boolean | undefined;
12
- useQueryFn: UsePaginatedQuery<Data>;
12
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
13
13
  isInvalidPage: (error: unknown) => boolean;
14
14
  skeletonLength?: number | undefined;
15
15
  hidePageTitle?: boolean | undefined;
@@ -20,11 +20,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
20
20
  minHeight?: boolean | undefined;
21
21
  pageClass?: string | undefined;
22
22
  refetchInterval?: number | false | undefined;
23
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
24
+ maxPages?: number | undefined;
23
25
  "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
24
26
  skipScrollTarget?: boolean | undefined;
25
27
  pageLength?: number | undefined;
26
- excludeParams?: string[] | undefined;
27
- maxPages?: number | undefined;
28
+ excludeParams?: (keyof QueryParams)[] | undefined;
28
29
  "onUpdate:header-padding"?: ((value: number) => any) | undefined;
29
30
  headerMargin?: number | undefined;
30
31
  headerTopIgnore?: boolean | undefined;
@@ -41,8 +42,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
41
42
  first: boolean;
42
43
  last: boolean;
43
44
  resetting: boolean;
45
+ page: number;
46
+ index: number;
47
+ }) => void) | undefined;
48
+ header?: ((props: {
49
+ goto: (page: number, itemIndex?: number) => void;
44
50
  }) => void) | undefined;
45
- header?: ((props: Record<string, never>) => void) | undefined;
46
51
  }> & {
47
52
  default?: ((props: {
48
53
  item: Data;
@@ -54,8 +59,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
54
59
  first: boolean;
55
60
  last: boolean;
56
61
  resetting: boolean;
62
+ page: number;
63
+ index: number;
64
+ }) => void) | undefined;
65
+ header?: ((props: {
66
+ goto: (page: number, itemIndex?: number) => void;
57
67
  }) => void) | undefined;
58
- header?: ((props: Record<string, never>) => void) | undefined;
59
68
  };
60
69
  emit: {
61
70
  (e: 'update:page', value: number | undefined): void;
@@ -72,12 +81,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
72
81
  wrap?: boolean | undefined;
73
82
  "onUpdate:count"?: ((value: number) => any) | undefined;
74
83
  scrollingElement?: Element | null | undefined;
75
- queryParams: QueryParams;
76
84
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
85
+ queryParams: QueryParams;
77
86
  selected?: Model[] | undefined;
78
87
  selectOnly?: boolean | undefined;
79
88
  unselectOnly?: boolean | undefined;
80
- useQueryFn: UsePaginatedQuery<Data>;
89
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
81
90
  isInvalidPage: (error: unknown) => boolean;
82
91
  skeletonLength?: number | undefined;
83
92
  hidePageTitle?: boolean | undefined;
@@ -88,11 +97,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
88
97
  minHeight?: boolean | undefined;
89
98
  pageClass?: string | undefined;
90
99
  refetchInterval?: number | false | undefined;
100
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
101
+ maxPages?: number | undefined;
91
102
  "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
92
103
  skipScrollTarget?: boolean | undefined;
93
104
  pageLength?: number | undefined;
94
- excludeParams?: string[] | undefined;
95
- maxPages?: number | undefined;
105
+ excludeParams?: (keyof QueryParams)[] | undefined;
96
106
  "onUpdate:header-padding"?: ((value: number) => any) | undefined;
97
107
  headerMargin?: number | undefined;
98
108
  headerTopIgnore?: boolean | undefined;
@@ -112,8 +122,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
112
122
  first: boolean;
113
123
  last: boolean;
114
124
  resetting: boolean;
125
+ page: number;
126
+ index: number;
127
+ }) => void) | undefined;
128
+ header?: ((props: {
129
+ goto: (page: number, itemIndex?: number) => void;
115
130
  }) => void) | undefined;
116
- header?: ((props: Record<string, never>) => void) | undefined;
117
131
  }> & {
118
132
  default?: ((props: {
119
133
  item: Data;
@@ -125,8 +139,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
125
139
  first: boolean;
126
140
  last: boolean;
127
141
  resetting: boolean;
142
+ page: number;
143
+ index: number;
144
+ }) => void) | undefined;
145
+ header?: ((props: {
146
+ goto: (page: number, itemIndex?: number) => void;
128
147
  }) => void) | undefined;
129
- header?: ((props: Record<string, never>) => void) | undefined;
130
148
  };
131
149
  emit: {
132
150
  (e: 'update:page', value: number | undefined): void;
@@ -144,12 +162,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
144
162
  wrap?: boolean | undefined;
145
163
  "onUpdate:count"?: ((value: number) => any) | undefined;
146
164
  scrollingElement?: Element | null | undefined;
147
- queryParams: QueryParams;
148
165
  "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
166
+ queryParams: QueryParams;
149
167
  selected?: Model[] | undefined;
150
168
  selectOnly?: boolean | undefined;
151
169
  unselectOnly?: boolean | undefined;
152
- useQueryFn: UsePaginatedQuery<Data>;
170
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
153
171
  isInvalidPage: (error: unknown) => boolean;
154
172
  skeletonLength?: number | undefined;
155
173
  hidePageTitle?: boolean | undefined;
@@ -160,11 +178,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
160
178
  minHeight?: boolean | undefined;
161
179
  pageClass?: string | undefined;
162
180
  refetchInterval?: number | false | undefined;
181
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
182
+ maxPages?: number | undefined;
163
183
  "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
164
184
  skipScrollTarget?: boolean | undefined;
165
185
  pageLength?: number | undefined;
166
- excludeParams?: string[] | undefined;
167
- maxPages?: number | undefined;
186
+ excludeParams?: (keyof QueryParams)[] | undefined;
168
187
  "onUpdate:header-padding"?: ((value: number) => any) | undefined;
169
188
  headerMargin?: number | undefined;
170
189
  headerTopIgnore?: boolean | undefined;
@@ -184,8 +203,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
184
203
  first: boolean;
185
204
  last: boolean;
186
205
  resetting: boolean;
206
+ page: number;
207
+ index: number;
208
+ }) => void) | undefined;
209
+ header?: ((props: {
210
+ goto: (page: number, itemIndex?: number) => void;
187
211
  }) => void) | undefined;
188
- header?: ((props: Record<string, never>) => void) | undefined;
189
212
  }> & {
190
213
  default?: ((props: {
191
214
  item: Data;
@@ -197,8 +220,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
197
220
  first: boolean;
198
221
  last: boolean;
199
222
  resetting: boolean;
223
+ page: number;
224
+ index: number;
225
+ }) => void) | undefined;
226
+ header?: ((props: {
227
+ goto: (page: number, itemIndex?: number) => void;
200
228
  }) => void) | undefined;
201
- header?: ((props: Record<string, never>) => void) | undefined;
202
229
  };
203
230
  emit: {
204
231
  (e: 'update:page', value: number | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AA+DA;;;0BAqSyB,IAAI,KAAK,KAAK;;;;iBAtBtB,WAAW;;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;WA+BvC,GAAG;;;kBAvMA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;kBAVvC,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;YAvD3C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;OAgPwB,IAAI;;;8BAPlD,I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,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;6BAhDQ,MAAM,cAAc,MAAM;kBAmDtC,IAAI;;;sBAdF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;sBACZ,MAAM;uBACL,MAAM;kBACT,IAAI;;6BAhDQ,MAAM,cAAc,MAAM;kBAmDtC,IAAI;;;gBA/DN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;gBAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AAvD/C,wBA8T2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -29,16 +29,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  pageClass: { default: void 0 },
30
30
  maxPages: { default: void 0 },
31
31
  refetchInterval: { type: [Number, Boolean], default: void 0 },
32
- valueGetter: { type: Function, default: (item) => item.id }
32
+ valueGetter: { type: Function, default: (item) => item.id },
33
+ queryOptions: { default: void 0 }
33
34
  },
34
35
  emits: ["update:page", "update:header-padding", "update:count", "update:selected"],
35
36
  setup(__props, { expose: __expose, emit: __emit }) {
36
37
  const props = __props;
37
38
  const emit = __emit;
38
- const infiniteList = ref();
39
+ const infiniteListPages = ref();
39
40
  const updateHeaderPadding = (value) => {
40
41
  emit("update:header-padding", value);
41
42
  };
43
+ const goto = (page, itemIndex) => {
44
+ infiniteListPages.value?.goto(page, itemIndex);
45
+ };
42
46
  const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
43
47
  watch(isIntersecting, (value) => {
44
48
  if (!value && headerHeight.value) {
@@ -57,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
61
  });
58
62
  __expose({
59
63
  resetPage() {
60
- infiniteList.value?.resetPage();
64
+ infiniteListPages.value?.resetPage();
61
65
  }
62
66
  });
63
67
  return (_ctx, _cache) => {
@@ -75,10 +79,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
79
  "z-20": !unref(isIntersecting)
76
80
  }])
77
81
  }, [
78
- renderSlot(_ctx.$slots, "header")
82
+ renderSlot(_ctx.$slots, "header", { goto })
79
83
  ], 2)
80
84
  ], 64)) : createCommentVNode("", true),
81
85
  createVNode(_sfc_main$1, {
86
+ ref_key: "infiniteListPages",
87
+ ref: infiniteListPages,
82
88
  "query-params": _ctx.queryParams,
83
89
  "use-query-fn": _ctx.useQueryFn,
84
90
  "is-invalid-page": _ctx.isInvalidPage,
@@ -104,11 +110,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
110
  "max-pages": _ctx.maxPages,
105
111
  "refetch-interval": _ctx.refetchInterval,
106
112
  "value-getter": _ctx.valueGetter,
113
+ "query-options": _ctx.queryOptions,
107
114
  "onUpdate:count": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:count", $event)),
108
115
  "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
109
116
  "onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
110
117
  }, {
111
- default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting }) => [
118
+ default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
112
119
  renderSlot(_ctx.$slots, "default", {
113
120
  item,
114
121
  setter,
@@ -118,11 +125,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
125
  next,
119
126
  first,
120
127
  last,
121
- resetting
128
+ resetting,
129
+ page,
130
+ index
122
131
  })
123
132
  ]),
124
133
  _: 3
125
- }, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval", "value-getter"])
134
+ }, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval", "value-getter", "query-options"])
126
135
  ], 64);
127
136
  };
128
137
  }