@colletdev/vue 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,12 +27,18 @@ export declare const Pagination: import("vue").DefineComponent<import("vue").Ext
27
27
  showPrevNext: {
28
28
  type: BooleanConstructor;
29
29
  };
30
+ variant: {
31
+ type: StringConstructor;
32
+ };
30
33
  prevLabel: {
31
34
  type: StringConstructor;
32
35
  };
33
36
  nextLabel: {
34
37
  type: StringConstructor;
35
38
  };
39
+ loadMoreLabel: {
40
+ type: StringConstructor;
41
+ };
36
42
  pageSizeOptions: {
37
43
  type: StringConstructor;
38
44
  };
@@ -66,12 +72,18 @@ export declare const Pagination: import("vue").DefineComponent<import("vue").Ext
66
72
  showPrevNext: {
67
73
  type: BooleanConstructor;
68
74
  };
75
+ variant: {
76
+ type: StringConstructor;
77
+ };
69
78
  prevLabel: {
70
79
  type: StringConstructor;
71
80
  };
72
81
  nextLabel: {
73
82
  type: StringConstructor;
74
83
  };
84
+ loadMoreLabel: {
85
+ type: StringConstructor;
86
+ };
75
87
  pageSizeOptions: {
76
88
  type: StringConstructor;
77
89
  };
@@ -12,8 +12,10 @@ export const Pagination = defineComponent({
12
12
  size: { type: String },
13
13
  showInfo: { type: Boolean },
14
14
  showPrevNext: { type: Boolean },
15
+ variant: { type: String },
15
16
  prevLabel: { type: String },
16
17
  nextLabel: { type: String },
18
+ loadMoreLabel: { type: String },
17
19
  pageSizeOptions: { type: String },
18
20
  },
19
21
  emits: {},
@@ -47,10 +49,14 @@ export const Pagination = defineComponent({
47
49
  attrs['show-info'] = '';
48
50
  if (props.showPrevNext)
49
51
  attrs['show-prev-next'] = '';
52
+ if (props.variant != null)
53
+ attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
50
54
  if (props.prevLabel != null)
51
55
  attrs['prev-label'] = typeof props.prevLabel === 'object' ? JSON.stringify(props.prevLabel) : String(props.prevLabel);
52
56
  if (props.nextLabel != null)
53
57
  attrs['next-label'] = typeof props.nextLabel === 'object' ? JSON.stringify(props.nextLabel) : String(props.nextLabel);
58
+ if (props.loadMoreLabel != null)
59
+ attrs['load-more-label'] = typeof props.loadMoreLabel === 'object' ? JSON.stringify(props.loadMoreLabel) : String(props.loadMoreLabel);
54
60
  if (props.pageSizeOptions != null)
55
61
  attrs['page-size-options'] = typeof props.pageSizeOptions === 'object' ? JSON.stringify(props.pageSizeOptions) : String(props.pageSizeOptions);
56
62
  return h('cx-pagination', { ref: el, ...attrs });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colletdev/vue",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Vue 3 wrappers for Collet Rust/WASM UI components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",