eco-vue-js 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/dist/components/Button/WButton.vue.d.ts +14 -26
  2. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButton.vue.js +0 -1
  4. package/dist/components/Button/WButtonAction.vue.d.ts +11 -21
  5. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonAction.vue.js +0 -1
  7. package/dist/components/Button/WButtonGroup.vue.d.ts +12 -6
  8. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  9. package/dist/components/Button/WButtonGroup.vue.js +6 -4
  10. package/dist/components/Button/WButtonMoreItem.vue.d.ts +7 -15
  11. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButtonMoreItem.vue.js +0 -1
  13. package/dist/components/Button/WButtonSelection.vue.d.ts +23 -3
  14. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonSelection.vue.js +8 -6
  16. package/dist/components/Checkbox/WCheckbox.vue.d.ts +4 -0
  17. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  18. package/dist/components/Checkbox/WCheckbox.vue.js +20 -18
  19. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +30 -6
  20. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  21. package/dist/components/InfiniteList/WInfiniteList.vue.js +13 -6
  22. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +18 -3
  23. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  24. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +27 -13
  25. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +39 -24
  26. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  27. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +44 -18
  28. package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
  29. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  30. package/dist/components/Link/WLink.vue.d.ts +10 -18
  31. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  32. package/dist/components/Link/WLink.vue.js +0 -1
  33. package/dist/components/ListCard/WListCard.vue.d.ts +12 -0
  34. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  35. package/dist/components/ListCard/WListCard.vue.js +17 -8
  36. package/dist/components/MenuItem/WMenuItem.vue.d.ts +6 -12
  37. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  38. package/dist/components/MenuItem/WMenuItem.vue.js +0 -1
  39. package/dist/components/Nav/WNavItem.vue.d.ts +10 -20
  40. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  41. package/dist/components/Nav/WNavItem.vue.js +0 -1
  42. package/dist/components/Nav/WNavItemExpand.vue.d.ts +7 -15
  43. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  44. package/dist/components/Nav/WNavItemExpand.vue.js +0 -1
  45. package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
  46. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  47. package/dist/components/Select/WSelectAsync.vue.js +1 -1
  48. package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
  49. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  50. package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
  51. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
  52. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  53. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
  54. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  55. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +3 -3
  56. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  57. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +3 -3
  58. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  59. package/dist/types/global.d.ts +11 -3
  60. package/dist/utils/useDefaultQuery.d.ts +1 -1
  61. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  62. package/package.json +2 -2
@@ -1,17 +1,16 @@
1
1
  import { SemanticType } from '../../utils/SemanticType';
2
- import { type RouteLocationRaw } from 'vue-router';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- semanticType?: SemanticType | undefined;
5
- disabled?: boolean | undefined;
6
- loading?: boolean | undefined;
7
- tag?: "a" | "button" | undefined;
8
- type?: string | undefined;
9
- to?: RouteLocationRaw | undefined;
10
- replace?: boolean | undefined;
11
- href?: string | undefined;
12
- target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
13
- minimize?: boolean | undefined;
14
- }>, {
2
+ interface Props extends /* @vue-ignore */ Partial<LinkProps> {
3
+ semanticType?: SemanticType;
4
+ disabled?: boolean;
5
+ loading?: boolean;
6
+ tag?: 'a' | 'button';
7
+ type?: string;
8
+ replace?: boolean;
9
+ href?: string;
10
+ target?: '_self' | '_blank' | '_parent' | '_top';
11
+ minimize?: boolean;
12
+ }
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
14
  semanticType: SemanticType;
16
15
  tag: string;
17
16
  to: undefined;
@@ -20,18 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
19
  target: undefined;
21
20
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
21
  click: (event: MouseEvent | KeyboardEvent) => void;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
- semanticType?: SemanticType | undefined;
25
- disabled?: boolean | undefined;
26
- loading?: boolean | undefined;
27
- tag?: "a" | "button" | undefined;
28
- type?: string | undefined;
29
- to?: RouteLocationRaw | undefined;
30
- replace?: boolean | undefined;
31
- href?: string | undefined;
32
- target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
33
- minimize?: boolean | undefined;
34
- }>, {
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
35
23
  semanticType: SemanticType;
36
24
  tag: string;
37
25
  to: undefined;
@@ -42,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
42
30
  onClick?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
43
31
  }, {
44
32
  type: string;
45
- to: RouteLocationRaw;
33
+ to: import("vue-router").RouteLocationRaw;
46
34
  target: "_self" | "_blank" | "_parent" | "_top";
47
35
  semanticType: SemanticType;
48
36
  tag: "a" | "button";
@@ -1 +1 @@
1
- {"version":3,"file":"WButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButton.vue"],"names":[],"mappings":"AA8CA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAC,KAAK,gBAAgB,EAAa,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkM5D,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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,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8JD,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,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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -12,7 +12,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  loading: { type: Boolean },
13
13
  tag: { default: "button" },
14
14
  type: { default: void 0 },
15
- to: { default: void 0 },
16
15
  replace: { type: Boolean },
17
16
  href: { default: void 0 },
18
17
  target: { default: void 0 },
@@ -1,15 +1,14 @@
1
- import { type RouteLocationRaw } from 'vue-router';
2
1
  import { SemanticType } from '../../main';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- icon?: SVGComponent | undefined;
2
+ interface Props extends /* @vue-ignore */ Partial<LinkProps> {
3
+ icon?: SVGComponent;
5
4
  title: string;
6
- active?: boolean | undefined;
7
- tag?: "a" | "button" | undefined;
8
- to?: RouteLocationRaw | undefined;
9
- count?: number | undefined;
10
- semanticType?: SemanticType | undefined;
11
- outline?: boolean | undefined;
12
- }>, {
5
+ active?: boolean;
6
+ tag?: 'button' | 'a';
7
+ count?: number;
8
+ semanticType?: SemanticType;
9
+ outline?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
12
  icon: undefined;
14
13
  tag: string;
15
14
  to: undefined;
@@ -17,16 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
16
  semanticType: SemanticType;
18
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
18
  click: (event: MouseEvent) => void;
20
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
21
- icon?: SVGComponent | undefined;
22
- title: string;
23
- active?: boolean | undefined;
24
- tag?: "a" | "button" | undefined;
25
- to?: RouteLocationRaw | undefined;
26
- count?: number | undefined;
27
- semanticType?: SemanticType | undefined;
28
- outline?: boolean | undefined;
29
- }>, {
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
30
20
  icon: undefined;
31
21
  tag: string;
32
22
  to: undefined;
@@ -36,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
36
26
  onClick?: ((event: MouseEvent) => any) | undefined;
37
27
  }, {
38
28
  count: number;
39
- to: RouteLocationRaw;
29
+ to: import("vue-router").RouteLocationRaw;
40
30
  semanticType: SemanticType;
41
31
  tag: "a" | "button";
42
32
  icon: SVGComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonAction.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonAction.vue"],"names":[],"mappings":"AAmCA;AAEA,OAAO,EAAC,KAAK,gBAAgB,EAAa,MAAM,YAAY,CAAA;AAE5D,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8LnC,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,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,CA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C,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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -17,7 +17,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  title: {},
18
18
  active: { type: Boolean },
19
19
  tag: { default: "button" },
20
- to: { default: void 0 },
21
20
  count: { default: void 0 },
22
21
  semanticType: { default: SemanticType.SECONDARY },
23
22
  outline: { type: Boolean }
@@ -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;;;;;;;;oBA3K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C,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,19 +1,11 @@
1
- import type { RouteLocationRaw } from 'vue-router';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- to?: RouteLocationRaw | undefined;
1
+ interface Props extends /* @vue-ignore */ Partial<LinkProps> {
4
2
  text: string;
5
- icon?: SVGComponent | undefined;
6
- disabled?: boolean | undefined;
7
- href?: string | undefined;
8
- download?: string | undefined;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
- to?: RouteLocationRaw | undefined;
11
- text: string;
12
- icon?: SVGComponent | undefined;
13
- disabled?: boolean | undefined;
14
- href?: string | undefined;
15
- download?: string | undefined;
16
- }>>>, {}, {}>, {
3
+ icon?: SVGComponent;
4
+ disabled?: boolean;
5
+ href?: string;
6
+ download?: string;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
17
9
  icon?(_: {}): any;
18
10
  }>;
19
11
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMoreItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonMoreItem.vue"],"names":[],"mappings":"AAkBA;AAEA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,YAAY,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,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"}
@@ -5,7 +5,6 @@ const _hoisted_1 = { class: "min-w-[5rem] flex-1 text-start" };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "WButtonMoreItem",
7
7
  props: {
8
- to: {},
9
8
  text: {},
10
9
  icon: {},
11
10
  disabled: { type: Boolean },
@@ -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,
@@ -42,8 +42,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
42
42
  first: boolean;
43
43
  last: boolean;
44
44
  resetting: boolean;
45
+ page: number;
46
+ index: number;
47
+ }) => void) | undefined;
48
+ header?: ((props: {
49
+ goto: (page: number, itemIndex?: number) => void;
45
50
  }) => void) | undefined;
46
- header?: ((props: Record<string, never>) => void) | undefined;
47
51
  }> & {
48
52
  default?: ((props: {
49
53
  item: Data;
@@ -55,8 +59,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
55
59
  first: boolean;
56
60
  last: boolean;
57
61
  resetting: boolean;
62
+ page: number;
63
+ index: number;
64
+ }) => void) | undefined;
65
+ header?: ((props: {
66
+ goto: (page: number, itemIndex?: number) => void;
58
67
  }) => void) | undefined;
59
- header?: ((props: Record<string, never>) => void) | undefined;
60
68
  };
61
69
  emit: {
62
70
  (e: 'update:page', value: number | undefined): void;
@@ -114,8 +122,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
114
122
  first: boolean;
115
123
  last: boolean;
116
124
  resetting: boolean;
125
+ page: number;
126
+ index: number;
127
+ }) => void) | undefined;
128
+ header?: ((props: {
129
+ goto: (page: number, itemIndex?: number) => void;
117
130
  }) => void) | undefined;
118
- header?: ((props: Record<string, never>) => void) | undefined;
119
131
  }> & {
120
132
  default?: ((props: {
121
133
  item: Data;
@@ -127,8 +139,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
127
139
  first: boolean;
128
140
  last: boolean;
129
141
  resetting: boolean;
142
+ page: number;
143
+ index: number;
144
+ }) => void) | undefined;
145
+ header?: ((props: {
146
+ goto: (page: number, itemIndex?: number) => void;
130
147
  }) => void) | undefined;
131
- header?: ((props: Record<string, never>) => void) | undefined;
132
148
  };
133
149
  emit: {
134
150
  (e: 'update:page', value: number | undefined): void;
@@ -187,8 +203,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
187
203
  first: boolean;
188
204
  last: boolean;
189
205
  resetting: boolean;
206
+ page: number;
207
+ index: number;
208
+ }) => void) | undefined;
209
+ header?: ((props: {
210
+ goto: (page: number, itemIndex?: number) => void;
190
211
  }) => void) | undefined;
191
- header?: ((props: Record<string, never>) => void) | undefined;
192
212
  }> & {
193
213
  default?: ((props: {
194
214
  item: Data;
@@ -200,8 +220,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
200
220
  first: boolean;
201
221
  last: boolean;
202
222
  resetting: boolean;
223
+ page: number;
224
+ index: number;
225
+ }) => void) | undefined;
226
+ header?: ((props: {
227
+ goto: (page: number, itemIndex?: number) => void;
203
228
  }) => void) | undefined;
204
- header?: ((props: Record<string, never>) => void) | undefined;
205
229
  };
206
230
  emit: {
207
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":"AAgEA;;;0BAsSyB,IAAI,KAAK,KAAK;;;;;iBAtBtB,WA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