@onereach/ui-components 11.3.1 → 11.3.2-beta.4418.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/bundled/v2/components/OrDataGridV3/OrDataGrid.js +1 -1
  2. package/dist/bundled/v2/components/OrDataGridV3/index.js +1 -1
  3. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +95 -51
  4. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.vue.d.ts +44 -9
  5. package/dist/bundled/v2/components/OrPaginationV3/styles.d.ts +3 -3
  6. package/dist/bundled/v2/components/OrPaginationV3/styles.js +10 -10
  7. package/dist/bundled/v2/components/OrPaginationV3/types.d.ts +4 -0
  8. package/dist/bundled/v2/components/index.js +1 -1
  9. package/dist/bundled/v2/index.js +2 -2
  10. package/dist/bundled/v3/components/OrDataGridV3/OrDataGrid.js +1 -1
  11. package/dist/bundled/v3/components/OrDataGridV3/index.js +1 -1
  12. package/dist/bundled/v3/components/OrDataGridV3/styles.js +1 -1
  13. package/dist/bundled/v3/components/{OrDataGridV3-ab1277d5.js → OrDataGridV3-45009eae.js} +1 -1
  14. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +1 -1
  15. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +18 -5
  16. package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
  17. package/dist/bundled/v3/components/OrPaginationV3/styles.d.ts +3 -3
  18. package/dist/bundled/v3/components/OrPaginationV3/styles.js +1 -1
  19. package/dist/bundled/v3/components/OrPaginationV3/types.d.ts +4 -0
  20. package/dist/bundled/v3/components/{OrPaginationV3-a460d1bb.js → OrPaginationV3-0fe573af.js} +109 -62
  21. package/dist/bundled/v3/components/index.js +2 -2
  22. package/dist/bundled/v3/index.js +3 -3
  23. package/dist/esm/v2/{OrDataGrid-1bdd2499.js → OrDataGrid-c3fac62c.js} +1 -1
  24. package/dist/esm/v2/{OrPagination-1b153a54.js → OrPagination-5c65a29b.js} +103 -59
  25. package/dist/esm/v2/components/index.js +2 -2
  26. package/dist/esm/v2/components/or-data-grid-v3/index.js +2 -2
  27. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +44 -9
  28. package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
  29. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +3 -3
  30. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
  31. package/dist/esm/v2/index.js +2 -2
  32. package/dist/esm/v3/{OrDataGrid-c7a65d77.js → OrDataGrid-1aa41c21.js} +1 -1
  33. package/dist/esm/v3/{OrPagination-6bb85ce5.js → OrPagination-d597d25f.js} +108 -61
  34. package/dist/esm/v3/components/index.js +2 -2
  35. package/dist/esm/v3/components/or-data-grid-v3/index.js +2 -2
  36. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +18 -5
  37. package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
  38. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +3 -3
  39. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
  40. package/dist/esm/v3/index.js +2 -2
  41. package/package.json +2 -3
  42. package/src/components/or-pagination-v3/OrPagination.vue +118 -65
  43. package/src/components/or-pagination-v3/styles.ts +9 -9
  44. package/src/components/or-pagination-v3/types.ts +5 -0
  45. /package/dist/bundled/v2/{OrDataGrid-13e9299a.js → OrDataGrid-5a42261a.js} +0 -0
@@ -1 +1 @@
1
- export { s as default } from '../OrDataGridV3-ab1277d5.js';
1
+ export { s as default } from '../OrDataGridV3-45009eae.js';
@@ -1 +1 @@
1
- export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-ab1277d5.js';
1
+ export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-45009eae.js';
@@ -1 +1 @@
1
- export { a as DataGrid } from '../OrDataGridV3-ab1277d5.js';
1
+ export { a as DataGrid } from '../OrDataGridV3-45009eae.js';
@@ -2,7 +2,7 @@ import { openBlock, createElementBlock, normalizeClass, renderSlot, createCommen
2
2
  import { defineComponent, ref, computed } from 'vue-demi';
3
3
  import { s as script$e } from './OrIconV3-b5c97ea7.js';
4
4
  import { s as script$f } from './OrCheckboxV3-814da0b0.js';
5
- import { s as script$g } from './OrPaginationV3-a460d1bb.js';
5
+ import { s as script$g } from './OrPaginationV3-0fe573af.js';
6
6
  import script$h from './OrSearchV3/OrSearch.js';
7
7
 
8
8
  const DataGridFooter = [
@@ -1 +1 @@
1
- export { s as default } from '../OrPaginationV3-a460d1bb.js';
1
+ export { s as default } from '../OrPaginationV3-0fe573af.js';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { PaginationModelValue } from './types';
2
+ import { PaginationFeatures, PaginationModelValue } from './types';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  modelValue: {
5
5
  type: PropType<PaginationModelValue>;
@@ -13,17 +13,25 @@ declare const _default: import("vue-demi").DefineComponent<{
13
13
  type: PropType<number[]>;
14
14
  default: () => number[];
15
15
  };
16
+ features: {
17
+ type: PropType<PaginationFeatures>;
18
+ default: () => PaginationFeatures;
19
+ };
16
20
  }, {
17
21
  root: import("vue-demi").Ref<HTMLElement | undefined>;
22
+ rootStyles: import("vue-demi").ComputedRef<string[]>;
18
23
  limitButton: import("vue-demi").Ref<any>;
19
24
  limitButtonRoot: import("vue-demi").ComputedRef<any>;
20
25
  limitMenu: import("vue-demi").Ref<any>;
21
26
  limitMenuRoot: import("vue-demi").ComputedRef<any>;
22
- rootStyles: import("vue-demi").ComputedRef<string[]>;
23
- offsetControlStyles: import("vue-demi").ComputedRef<string[]>;
24
- limitControlStyles: import("vue-demi").ComputedRef<string[]>;
27
+ limitGroupStyles: import("vue-demi").ComputedRef<string[]>;
28
+ offsetButton: import("vue-demi").Ref<any>;
29
+ offsetButtonRoot: import("vue-demi").ComputedRef<any>;
30
+ offsetMenu: import("vue-demi").Ref<any>;
31
+ offsetMenuRoot: import("vue-demi").ComputedRef<any>;
32
+ offsetGroupStyles: import("vue-demi").ComputedRef<string[]>;
25
33
  itemStyles: import("vue-demi").ComputedRef<string[]>;
26
- proxyModelValue: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
34
+ model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
27
35
  currentLimit: import("vue-demi").WritableComputedRef<number>;
28
36
  currentOffset: import("vue-demi").WritableComputedRef<number>;
29
37
  currentPage: import("vue-demi").WritableComputedRef<number>;
@@ -48,10 +56,15 @@ declare const _default: import("vue-demi").DefineComponent<{
48
56
  type: PropType<number[]>;
49
57
  default: () => number[];
50
58
  };
59
+ features: {
60
+ type: PropType<PaginationFeatures>;
61
+ default: () => PaginationFeatures;
62
+ };
51
63
  }>> & {
52
64
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
65
  }, {
54
66
  modelValue: PaginationModelValue;
55
67
  options: number[];
68
+ features: PaginationFeatures;
56
69
  }>;
57
70
  export default _default;
@@ -1 +1 @@
1
- export { s as OrPaginationV3 } from '../OrPaginationV3-a460d1bb.js';
1
+ export { s as OrPaginationV3 } from '../OrPaginationV3-0fe573af.js';
@@ -1,4 +1,4 @@
1
- export declare const PaginationRoot: string[];
2
- export declare const PaginationOffsetControl: string[];
3
- export declare const PaginationLimitControl: string[];
1
+ export declare const Pagination: string[];
2
+ export declare const PaginationLimitGroup: string[];
3
+ export declare const PaginationOffsetGroup: string[];
4
4
  export declare const PaginationItem: string[];
@@ -1 +1 @@
1
- export { c as PaginationItem, b as PaginationLimitControl, a as PaginationOffsetControl, P as PaginationRoot } from '../OrPaginationV3-a460d1bb.js';
1
+ export { P as Pagination, c as PaginationItem, a as PaginationLimitGroup, b as PaginationOffsetGroup } from '../OrPaginationV3-0fe573af.js';
@@ -3,3 +3,7 @@ export type PaginationModelValue = ModelValue<{
3
3
  limit: number;
4
4
  offset: number;
5
5
  }>;
6
+ export type PaginationFeatures = {
7
+ limit?: boolean;
8
+ range?: boolean;
9
+ };
@@ -1,4 +1,4 @@
1
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createTextVNode, createVNode, withCtx, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
2
2
  import { defineComponent, ref, computed, toRef } from 'vue-demi';
3
3
  import { s as script$1 } from './OrButtonV3-c8e5a5de.js';
4
4
  import { s as script$2 } from './OrIconV3-b5c97ea7.js';
@@ -7,25 +7,25 @@ import { s as script$4 } from './OrMenuItemV3-83001ba3.js';
7
7
  import { useProxyModelValue } from '../hooks/useProxyModelValue.js';
8
8
  import useResponsive from '../hooks/useResponsive/useResponsive.js';
9
9
 
10
- const PaginationRoot = [
10
+ const Pagination = [
11
11
  // Layout
12
- 'layout-row',
12
+ 'layout-row justify-between md:justify-end',
13
13
  // Spacing
14
- 'gap-lg md:gap-xl',
14
+ 'gap-xl',
15
15
  // Typography
16
16
  'typography-caption-regular',
17
17
  // Theme
18
18
  'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
19
- const PaginationOffsetControl = [
19
+ const PaginationLimitGroup = [
20
20
  // Layout
21
- 'layout-row',
21
+ 'layout-row shrink-0',
22
22
  // Spacing
23
- 'gap-md'];
24
- const PaginationLimitControl = [
23
+ 'gap-lg md:gap-md'];
24
+ const PaginationOffsetGroup = [
25
25
  // Layout
26
- 'layout-row',
26
+ 'layout-row shrink-0',
27
27
  // Spacing
28
- 'gap-sm'];
28
+ 'gap-md'];
29
29
  const PaginationItem = [
30
30
  // Typography
31
31
  'typography-caption-regular',
@@ -56,13 +56,21 @@ var script = defineComponent({
56
56
  options: {
57
57
  type: Array,
58
58
  default: () => [50, 20, 10, 5]
59
+ },
60
+ features: {
61
+ type: Object,
62
+ default: () => ({
63
+ limit: true,
64
+ range: true
65
+ })
59
66
  }
60
67
  },
61
68
  emits: ['update:modelValue'],
62
69
  expose: ['root'],
63
70
  setup(props, context) {
64
- // Refs
71
+ // Refs & Styles
65
72
  const root = ref();
73
+ const rootStyles = computed(() => ['or-pagination-v3', ...Pagination]);
66
74
  const limitButton = ref();
67
75
  const limitButtonRoot = computed(() => {
68
76
  var _a;
@@ -73,20 +81,28 @@ var script = defineComponent({
73
81
  var _a;
74
82
  return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
75
83
  });
76
- // Styles
77
- const rootStyles = computed(() => ['or-pagination-v3', ...PaginationRoot]);
78
- const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
79
- const limitControlStyles = computed(() => [...PaginationLimitControl]);
84
+ const limitGroupStyles = computed(() => [...PaginationLimitGroup]);
85
+ const offsetButton = ref();
86
+ const offsetButtonRoot = computed(() => {
87
+ var _a;
88
+ return (_a = offsetButton.value) === null || _a === void 0 ? void 0 : _a.root;
89
+ });
90
+ const offsetMenu = ref();
91
+ const offsetMenuRoot = computed(() => {
92
+ var _a;
93
+ return (_a = offsetMenu.value) === null || _a === void 0 ? void 0 : _a.root;
94
+ });
95
+ const offsetGroupStyles = computed(() => [...PaginationOffsetGroup]);
80
96
  const itemStyles = computed(() => [...PaginationItem]);
81
97
  // State
82
- const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
98
+ const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
83
99
  const currentLimit = computed({
84
100
  get: () => {
85
101
  var _a, _b;
86
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
102
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
87
103
  },
88
104
  set: value => {
89
- proxyModelValue.value = {
105
+ model.value = {
90
106
  limit: value,
91
107
  offset: 0
92
108
  };
@@ -95,10 +111,10 @@ var script = defineComponent({
95
111
  const currentOffset = computed({
96
112
  get: () => {
97
113
  var _a, _b;
98
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
114
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
99
115
  },
100
116
  set: value => {
101
- proxyModelValue.value = {
117
+ model.value = {
102
118
  limit: currentLimit.value,
103
119
  offset: value
104
120
  };
@@ -161,15 +177,19 @@ var script = defineComponent({
161
177
  } = useResponsive();
162
178
  return {
163
179
  root,
180
+ rootStyles,
164
181
  limitButton,
165
182
  limitButtonRoot,
166
183
  limitMenu,
167
184
  limitMenuRoot,
168
- rootStyles,
169
- offsetControlStyles,
170
- limitControlStyles,
185
+ limitGroupStyles,
186
+ offsetButton,
187
+ offsetButtonRoot,
188
+ offsetMenu,
189
+ offsetMenuRoot,
190
+ offsetGroupStyles,
171
191
  itemStyles,
172
- proxyModelValue,
192
+ model,
173
193
  currentLimit,
174
194
  currentOffset,
175
195
  currentPage,
@@ -185,6 +205,10 @@ var script = defineComponent({
185
205
  }
186
206
  });
187
207
 
208
+ const _hoisted_1 = {
209
+ key: 0,
210
+ class: /*#__PURE__*/normalizeClass(['layout-row', 'gap-sm'])
211
+ };
188
212
  function render(_ctx, _cache, $props, $setup, $data, $options) {
189
213
  const _component_OrIcon = resolveComponent("OrIcon");
190
214
  const _component_OrButton = resolveComponent("OrButton");
@@ -194,21 +218,59 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
194
218
  ref: 'root',
195
219
  class: normalizeClass(_ctx.rootStyles)
196
220
  }, [createElementVNode("div", {
197
- class: normalizeClass(_ctx.offsetControlStyles)
221
+ class: normalizeClass(_ctx.limitGroupStyles)
222
+ }, [_ctx.features.limit ? (openBlock(), createElementBlock("div", _hoisted_1, [createTextVNode(" Per page: "), createVNode(_component_OrButton, {
223
+ ref: 'limitButton',
224
+ class: normalizeClass(_ctx.itemStyles),
225
+ variant: 'link',
226
+ color: 'inherit',
227
+ activated: true,
228
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.limitMenu && _ctx.limitMenu.open())
229
+ }, {
230
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
231
+ icon: _ctx.limitMenu && _ctx.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
232
+ }, null, 8 /* PROPS */, ["icon"])]),
233
+ _: 1 /* STABLE */
234
+ }, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
235
+ ref: 'limitMenu',
236
+ "additional-styles": ['min-w-[60px]'],
237
+ trigger: _ctx.limitButtonRoot,
238
+ placement: 'top'
239
+ }, {
240
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, limit => {
241
+ return openBlock(), createBlock(_component_OrMenuItem, {
242
+ key: limit,
243
+ selected: _ctx.currentLimit === limit,
244
+ onClick: $event => {
245
+ _ctx.currentLimit = limit;
246
+ _ctx.limitMenu && _ctx.limitMenu.close();
247
+ }
248
+ }, {
249
+ default: withCtx(() => [createTextVNode(toDisplayString(limit), 1 /* TEXT */)]),
250
+
251
+ _: 2 /* DYNAMIC */
252
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
253
+ }), 128 /* KEYED_FRAGMENT */))]),
254
+
255
+ _: 1 /* STABLE */
256
+ }, 8 /* PROPS */, ["trigger"])])) : createCommentVNode("v-if", true), _ctx.features.range ? (openBlock(), createElementBlock(Fragment, {
257
+ key: 1
258
+ }, [createTextVNode(toDisplayString(_ctx.currentOffset + 1) + "-" + toDisplayString(Math.min(_ctx.currentOffset + _ctx.currentLimit, _ctx.length)) + " of " + toDisplayString(_ctx.length), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
259
+ class: normalizeClass(_ctx.offsetGroupStyles)
198
260
  }, [createVNode(_component_OrButton, {
199
261
  class: normalizeClass(_ctx.itemStyles),
200
262
  variant: 'link',
201
263
  color: 'inherit',
202
264
  disabled: _ctx.currentPage === _ctx.firstPage,
203
- onClick: _cache[0] || (_cache[0] = $event => _ctx.toPreviousPage())
265
+ onClick: _cache[1] || (_cache[1] = $event => _ctx.toPreviousPage())
204
266
  }, {
205
267
  default: withCtx(() => [createVNode(_component_OrIcon, {
206
268
  icon: 'keyboard_arrow_left'
207
269
  })]),
208
270
  _: 1 /* STABLE */
209
- }, 8 /* PROPS */, ["class", "disabled"]), _ctx.isDesktop ? (openBlock(), createElementBlock(Fragment, {
271
+ }, 8 /* PROPS */, ["class", "disabled"]), _ctx.isDesktop ? (openBlock(true), createElementBlock(Fragment, {
210
272
  key: 0
211
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonGroup, (page, index) => {
273
+ }, renderList(_ctx.buttonGroup, (page, index) => {
212
274
  return openBlock(), createBlock(_component_OrButton, {
213
275
  key: index,
214
276
  class: normalizeClass(_ctx.itemStyles),
@@ -221,58 +283,43 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
221
283
 
222
284
  _: 2 /* DYNAMIC */
223
285
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "activated", "onClick"]);
224
- }), 128 /* KEYED_FRAGMENT */)), createVNode(_component_OrButton, {
225
- class: normalizeClass(_ctx.itemStyles),
226
- variant: 'link',
227
- color: 'inherit',
228
- disabled: _ctx.currentPage === _ctx.lastPage,
229
- onClick: _cache[1] || (_cache[1] = $event => _ctx.toNextPage())
230
- }, {
231
- default: withCtx(() => [createVNode(_component_OrIcon, {
232
- icon: 'keyboard_arrow_right'
233
- })]),
234
- _: 1 /* STABLE */
235
- }, 8 /* PROPS */, ["class", "disabled"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
236
- class: normalizeClass(_ctx.limitControlStyles)
237
- }, [_ctx.isDesktop ? (openBlock(), createElementBlock(Fragment, {
238
- key: 0
239
- }, [createTextVNode(" Per page: ")], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), createVNode(_component_OrButton, {
240
- ref: 'limitButton',
286
+ }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.isMobile ? (openBlock(), createElementBlock(Fragment, {
287
+ key: 1
288
+ }, [createVNode(_component_OrButton, {
289
+ ref: 'offsetButton',
241
290
  class: normalizeClass(_ctx.itemStyles),
242
291
  variant: 'link',
243
292
  color: 'inherit',
244
293
  activated: true,
245
- onClick: _cache[2] || (_cache[2] = $event => _ctx.limitMenu && _ctx.limitMenu.open())
294
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.offsetMenu && _ctx.offsetMenu.open())
246
295
  }, {
247
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
248
- icon: _ctx.limitMenu && _ctx.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
296
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentPage) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
297
+ icon: _ctx.offsetMenu && _ctx.offsetMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
249
298
  }, null, 8 /* PROPS */, ["icon"])]),
250
299
  _: 1 /* STABLE */
251
300
  }, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
252
- ref: 'limitMenu',
301
+ ref: 'offsetMenu',
253
302
  "additional-styles": ['min-w-[60px]'],
254
- trigger: _ctx.limitButtonRoot,
303
+ trigger: _ctx.offsetButtonRoot,
255
304
  placement: 'top'
256
305
  }, {
257
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, pageSize => {
306
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lastPage, page => {
258
307
  return openBlock(), createBlock(_component_OrMenuItem, {
259
- key: pageSize,
308
+ key: page,
309
+ selected: _ctx.currentPage === page,
260
310
  onClick: $event => {
261
- _ctx.currentLimit = pageSize;
262
- _ctx.limitMenu && _ctx.limitMenu.close();
311
+ _ctx.currentPage = page;
312
+ _ctx.offsetMenu && _ctx.offsetMenu.close();
263
313
  }
264
314
  }, {
265
- default: withCtx(() => [createTextVNode(toDisplayString(pageSize), 1 /* TEXT */)]),
315
+ default: withCtx(() => [createTextVNode(toDisplayString(page), 1 /* TEXT */)]),
266
316
 
267
317
  _: 2 /* DYNAMIC */
268
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
318
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
269
319
  }), 128 /* KEYED_FRAGMENT */))]),
270
320
 
271
321
  _: 1 /* STABLE */
272
- }, 8 /* PROPS */, ["trigger"])], 2 /* CLASS */), _ctx.isMobile ? (openBlock(), createElementBlock("div", {
273
- key: 0,
274
- class: normalizeClass(_ctx.offsetControlStyles)
275
- }, [createVNode(_component_OrButton, {
322
+ }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), createVNode(_component_OrButton, {
276
323
  class: normalizeClass(_ctx.itemStyles),
277
324
  variant: 'link',
278
325
  color: 'inherit',
@@ -283,10 +330,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
283
330
  icon: 'keyboard_arrow_right'
284
331
  })]),
285
332
  _: 1 /* STABLE */
286
- }, 8 /* PROPS */, ["class", "disabled"])], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
333
+ }, 8 /* PROPS */, ["class", "disabled"])], 2 /* CLASS */)], 2 /* CLASS */);
287
334
  }
288
335
 
289
336
  script.render = render;
290
337
  script.__file = "src/components/or-pagination-v3/OrPagination.vue";
291
338
 
292
- export { PaginationRoot as P, PaginationOffsetControl as a, PaginationLimitControl as b, PaginationItem as c, script as s };
339
+ export { Pagination as P, PaginationLimitGroup as a, PaginationOffsetGroup as b, PaginationItem as c, script as s };
@@ -24,7 +24,7 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-d40e62b4.js';
24
24
  export { s as OrConfirm } from './OrConfirm-bd123cb5.js';
25
25
  export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-eec76b11.js';
26
26
  export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
27
- export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-ab1277d5.js';
27
+ export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-45009eae.js';
28
28
  export { s as OrDateFormatV3 } from './OrDateFormatV3-658550ce.js';
29
29
  export { s as OrDatePickerV3 } from './OrDatePickerV3-066be001.js';
30
30
  export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-6811c529.js';
@@ -71,7 +71,7 @@ export { default as OrNumberInput } from './OrNumberInput/OrNumberInput.js';
71
71
  export { default as OrOverflowMenu } from './OrOverflowMenu/OrOverflowMenu.js';
72
72
  export { default as OrOverlay } from './OrOverlay/OrOverlay.js';
73
73
  export { s as OrOverlayV3 } from './OrOverlayV3-275d0680.js';
74
- export { s as OrPaginationV3 } from './OrPaginationV3-a460d1bb.js';
74
+ export { s as OrPaginationV3 } from './OrPaginationV3-0fe573af.js';
75
75
  export { default as OrPassword } from './OrPassword/OrPassword.js';
76
76
  export { s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, i as isPrevented } from './OrPopoverV3-7ef8c72d.js';
77
77
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-e6b79b1d.js';