eco-vue-js 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/components/Button/WButtonGroup.vue.d.ts +12 -6
  2. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonGroup.vue.js +6 -4
  4. package/dist/components/Button/WButtonSelection.vue.d.ts +23 -3
  5. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonSelection.vue.js +8 -6
  7. package/dist/components/Checkbox/WCheckbox.vue.d.ts +4 -0
  8. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  9. package/dist/components/Checkbox/WCheckbox.vue.js +20 -18
  10. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +30 -6
  11. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  12. package/dist/components/InfiniteList/WInfiniteList.vue.js +13 -6
  13. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +18 -3
  14. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  15. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +27 -13
  16. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +39 -24
  17. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  18. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +44 -18
  19. package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
  20. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  21. package/dist/components/ListCard/WListCard.vue.d.ts +12 -0
  22. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  23. package/dist/components/ListCard/WListCard.vue.js +17 -8
  24. package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
  25. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  26. package/dist/components/Select/WSelectAsync.vue.js +1 -1
  27. package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
  28. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  29. package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
  30. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
  31. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  32. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
  33. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  34. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +3 -3
  35. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  36. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +3 -3
  37. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -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,MAA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;;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,KA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c,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,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;;mBAwB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;WAQlF,GAAG;;;kBAxMA,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;YAC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;;;;;kCAyPtB,IAAI,KAAK,KAAK;;;;;yBAtBtB,WAAW;;;;wBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;mCACnC,OAAO,KAAK,OAAO;;;;;;;;;;2BAwB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;aAOlB,IAAI;eACpE,GAAG;;;sBApNA,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;;;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"}
@@ -30,16 +30,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  maxPages: { default: void 0 },
31
31
  refetchInterval: { type: [Number, Boolean], default: void 0 },
32
32
  valueGetter: { type: Function, default: (item) => item.id },
33
- queryOptions: {}
33
+ queryOptions: { default: void 0 }
34
34
  },
35
35
  emits: ["update:page", "update:header-padding", "update:count", "update:selected"],
36
36
  setup(__props, { expose: __expose, emit: __emit }) {
37
37
  const props = __props;
38
38
  const emit = __emit;
39
- const infiniteList = ref();
39
+ const infiniteListPages = ref();
40
40
  const updateHeaderPadding = (value) => {
41
41
  emit("update:header-padding", value);
42
42
  };
43
+ const goto = (page, itemIndex) => {
44
+ infiniteListPages.value?.goto(page, itemIndex);
45
+ };
43
46
  const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
44
47
  watch(isIntersecting, (value) => {
45
48
  if (!value && headerHeight.value) {
@@ -58,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
61
  });
59
62
  __expose({
60
63
  resetPage() {
61
- infiniteList.value?.resetPage();
64
+ infiniteListPages.value?.resetPage();
62
65
  }
63
66
  });
64
67
  return (_ctx, _cache) => {
@@ -76,10 +79,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
79
  "z-20": !unref(isIntersecting)
77
80
  }])
78
81
  }, [
79
- renderSlot(_ctx.$slots, "header")
82
+ renderSlot(_ctx.$slots, "header", { goto })
80
83
  ], 2)
81
84
  ], 64)) : createCommentVNode("", true),
82
85
  createVNode(_sfc_main$1, {
86
+ ref_key: "infiniteListPages",
87
+ ref: infiniteListPages,
83
88
  "query-params": _ctx.queryParams,
84
89
  "use-query-fn": _ctx.useQueryFn,
85
90
  "is-invalid-page": _ctx.isInvalidPage,
@@ -110,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
115
  "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
111
116
  "onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
112
117
  }, {
113
- 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 }) => [
114
119
  renderSlot(_ctx.$slots, "default", {
115
120
  item,
116
121
  setter,
@@ -120,7 +125,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
125
  next,
121
126
  first,
122
127
  last,
123
- resetting
128
+ resetting,
129
+ page,
130
+ index
124
131
  })
125
132
  ]),
126
133
  _: 3
@@ -41,6 +41,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
41
41
  first: boolean;
42
42
  last: boolean;
43
43
  resetting: boolean;
44
+ page: number;
45
+ index: number;
44
46
  }) => void) | undefined;
45
47
  }> & {
46
48
  default?: ((props: {
@@ -53,6 +55,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
53
55
  first: boolean;
54
56
  last: boolean;
55
57
  resetting: boolean;
58
+ page: number;
59
+ index: number;
56
60
  }) => void) | undefined;
57
61
  };
58
62
  emit: {
@@ -61,7 +65,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
61
65
  (e: 'update:selected', values: Model[]): void;
62
66
  };
63
67
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
64
- resetPage: () => void;
68
+ resetPage: (page?: number) => Promise<void>;
69
+ goto: (page?: number, itemIndex?: number) => Promise<void>;
65
70
  }>) => void) | undefined, __VLS_setup?: Promise<{
66
71
  props: {
67
72
  transition?: boolean | undefined;
@@ -95,7 +100,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
95
100
  excludeParams?: (keyof QueryParams)[] | undefined;
96
101
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
97
102
  expose(exposed: import("vue").ShallowUnwrapRef<{
98
- resetPage: () => void;
103
+ resetPage: (page?: number) => Promise<void>;
104
+ goto: (page?: number, itemIndex?: number) => Promise<void>;
99
105
  }>): void;
100
106
  attrs: any;
101
107
  slots: Readonly<{
@@ -109,6 +115,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
109
115
  first: boolean;
110
116
  last: boolean;
111
117
  resetting: boolean;
118
+ page: number;
119
+ index: number;
112
120
  }) => void) | undefined;
113
121
  }> & {
114
122
  default?: ((props: {
@@ -121,6 +129,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
121
129
  first: boolean;
122
130
  last: boolean;
123
131
  resetting: boolean;
132
+ page: number;
133
+ index: number;
124
134
  }) => void) | undefined;
125
135
  };
126
136
  emit: {
@@ -164,7 +174,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
164
174
  excludeParams?: (keyof QueryParams)[] | undefined;
165
175
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
166
176
  expose(exposed: import("vue").ShallowUnwrapRef<{
167
- resetPage: () => void;
177
+ resetPage: (page?: number) => Promise<void>;
178
+ goto: (page?: number, itemIndex?: number) => Promise<void>;
168
179
  }>): void;
169
180
  attrs: any;
170
181
  slots: Readonly<{
@@ -178,6 +189,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
178
189
  first: boolean;
179
190
  last: boolean;
180
191
  resetting: boolean;
192
+ page: number;
193
+ index: number;
181
194
  }) => void) | undefined;
182
195
  }> & {
183
196
  default?: ((props: {
@@ -190,6 +203,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
190
203
  first: boolean;
191
204
  last: boolean;
192
205
  resetting: boolean;
206
+ page: number;
207
+ index: number;
193
208
  }) => void) | undefined;
194
209
  };
195
210
  emit: {
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA6EA;;;wBA+cwB,IAAI,KAAK,KAAK;;;;;iBAtBrB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;;mBAwB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;WAQlF,GAAG;;;kBApRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAA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