@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,6 +1,6 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { _ as __vue_component__$1 } from './OrCheckbox-2536a62d.js';
3
- import { _ as __vue_component__$f } from './OrPagination-1b153a54.js';
3
+ import { _ as __vue_component__$f } from './OrPagination-5c65a29b.js';
4
4
  import { _ as __vue_component__$g } from './OrSearch-5e325974.js';
5
5
  import { _ as __vue_component__$2, a as __vue_component__$3, b as __vue_component__$4, c as __vue_component__$5, d as __vue_component__$6, e as __vue_component__$7, f as __vue_component__$8, g as __vue_component__$9, h as __vue_component__$a, i as __vue_component__$b, j as __vue_component__$c, k as __vue_component__$d, l as __vue_component__$e, D as DataGridVariant } from './OrDataGridToolbar-4611a09b.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -12,25 +12,25 @@ import { _ as __vue_component__$4 } from './OrMenuItem-fd2b15dc.js';
12
12
  import { _ as __vue_component__$3 } from './OrMenu-c44856c5.js';
13
13
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
14
14
 
15
- const PaginationRoot = [
15
+ const Pagination = [
16
16
  // Layout
17
- 'layout-row',
17
+ 'layout-row justify-between md:justify-end',
18
18
  // Spacing
19
- 'gap-lg md:gap-xl',
19
+ 'gap-xl',
20
20
  // Typography
21
21
  'typography-caption-regular',
22
22
  // Theme
23
23
  'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
24
- const PaginationOffsetControl = [
24
+ const PaginationLimitGroup = [
25
25
  // Layout
26
- 'layout-row',
26
+ 'layout-row shrink-0',
27
27
  // Spacing
28
- 'gap-md'];
29
- const PaginationLimitControl = [
28
+ 'gap-lg md:gap-md'];
29
+ const PaginationOffsetGroup = [
30
30
  // Layout
31
- 'layout-row',
31
+ 'layout-row shrink-0',
32
32
  // Spacing
33
- 'gap-sm'];
33
+ 'gap-md'];
34
34
  const PaginationItem = [
35
35
  // Typography
36
36
  'typography-caption-regular',
@@ -61,13 +61,21 @@ var script = defineComponent({
61
61
  options: {
62
62
  type: Array,
63
63
  default: () => [50, 20, 10, 5]
64
+ },
65
+ features: {
66
+ type: Object,
67
+ default: () => ({
68
+ limit: true,
69
+ range: true
70
+ })
64
71
  }
65
72
  },
66
73
  emits: ['update:modelValue'],
67
74
  expose: ['root'],
68
75
  setup(props, context) {
69
- // Refs
76
+ // Refs & Styles
70
77
  const root = ref();
78
+ const rootStyles = computed(() => ['or-pagination-v3', ...Pagination]);
71
79
  const limitButton = ref();
72
80
  const limitButtonRoot = computed(() => {
73
81
  var _a;
@@ -78,20 +86,28 @@ var script = defineComponent({
78
86
  var _a;
79
87
  return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
80
88
  });
81
- // Styles
82
- const rootStyles = computed(() => ['or-pagination-v3', ...PaginationRoot]);
83
- const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
84
- const limitControlStyles = computed(() => [...PaginationLimitControl]);
89
+ const limitGroupStyles = computed(() => [...PaginationLimitGroup]);
90
+ const offsetButton = ref();
91
+ const offsetButtonRoot = computed(() => {
92
+ var _a;
93
+ return (_a = offsetButton.value) === null || _a === void 0 ? void 0 : _a.root;
94
+ });
95
+ const offsetMenu = ref();
96
+ const offsetMenuRoot = computed(() => {
97
+ var _a;
98
+ return (_a = offsetMenu.value) === null || _a === void 0 ? void 0 : _a.root;
99
+ });
100
+ const offsetGroupStyles = computed(() => [...PaginationOffsetGroup]);
85
101
  const itemStyles = computed(() => [...PaginationItem]);
86
102
  // State
87
- const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
103
+ const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
88
104
  const currentLimit = computed({
89
105
  get: () => {
90
106
  var _a, _b;
91
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
107
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
92
108
  },
93
109
  set: value => {
94
- proxyModelValue.value = {
110
+ model.value = {
95
111
  limit: value,
96
112
  offset: 0
97
113
  };
@@ -100,10 +116,10 @@ var script = defineComponent({
100
116
  const currentOffset = computed({
101
117
  get: () => {
102
118
  var _a, _b;
103
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
119
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
104
120
  },
105
121
  set: value => {
106
- proxyModelValue.value = {
122
+ model.value = {
107
123
  limit: currentLimit.value,
108
124
  offset: value
109
125
  };
@@ -166,15 +182,19 @@ var script = defineComponent({
166
182
  } = useResponsive();
167
183
  return {
168
184
  root,
185
+ rootStyles,
169
186
  limitButton,
170
187
  limitButtonRoot,
171
188
  limitMenu,
172
189
  limitMenuRoot,
173
- rootStyles,
174
- offsetControlStyles,
175
- limitControlStyles,
190
+ limitGroupStyles,
191
+ offsetButton,
192
+ offsetButtonRoot,
193
+ offsetMenu,
194
+ offsetMenuRoot,
195
+ offsetGroupStyles,
176
196
  itemStyles,
177
- proxyModelValue,
197
+ model,
178
198
  currentLimit,
179
199
  currentOffset,
180
200
  currentPage,
@@ -202,7 +222,48 @@ var __vue_render__ = function () {
202
222
  ref: 'root',
203
223
  class: _vm.rootStyles
204
224
  }, [_c('div', {
205
- class: _vm.offsetControlStyles
225
+ class: _vm.limitGroupStyles
226
+ }, [_vm.features.limit ? [_c('div', {
227
+ class: ['layout-row', 'gap-sm']
228
+ }, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
229
+ ref: 'limitButton',
230
+ class: _vm.itemStyles,
231
+ attrs: {
232
+ "variant": 'link',
233
+ "color": 'inherit',
234
+ "activated": true
235
+ },
236
+ on: {
237
+ "click": function ($event) {
238
+ _vm.limitMenu && _vm.limitMenu.open();
239
+ }
240
+ }
241
+ }, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
242
+ attrs: {
243
+ "icon": _vm.limitMenu && _vm.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
244
+ }
245
+ })], 1), _vm._v(" "), _c('OrMenu', {
246
+ ref: 'limitMenu',
247
+ attrs: {
248
+ "additional-styles": ['min-w-[60px]'],
249
+ "trigger": _vm.limitButtonRoot,
250
+ "placement": 'top'
251
+ }
252
+ }, _vm._l(_vm.options, function (limit) {
253
+ return _c('OrMenuItem', {
254
+ key: limit,
255
+ attrs: {
256
+ "selected": _vm.currentLimit === limit
257
+ },
258
+ on: {
259
+ "click": function ($event) {
260
+ _vm.currentLimit = limit;
261
+ _vm.limitMenu && _vm.limitMenu.close();
262
+ }
263
+ }
264
+ }, [_vm._v("\n " + _vm._s(limit) + "\n ")]);
265
+ }), 1)], 1)] : _vm._e(), _vm._v(" "), _vm.features.range ? [_vm._v("\n " + _vm._s(_vm.currentOffset + 1) + "-" + _vm._s(Math.min(_vm.currentOffset + _vm.currentLimit, _vm.length)) + " of " + _vm._s(_vm.length) + "\n ")] : _vm._e()], 2), _vm._v(" "), _c('div', {
266
+ class: _vm.offsetGroupStyles
206
267
  }, [_c('OrButton', {
207
268
  class: _vm.itemStyles,
208
269
  attrs: {
@@ -219,7 +280,7 @@ var __vue_render__ = function () {
219
280
  attrs: {
220
281
  "icon": 'keyboard_arrow_left'
221
282
  }
222
- })], 1), _vm._v(" "), _vm.isDesktop ? [_vm._l(_vm.buttonGroup, function (page, index) {
283
+ })], 1), _vm._v(" "), _vm.isDesktop ? _vm._l(_vm.buttonGroup, function (page, index) {
223
284
  return _c('OrButton', {
224
285
  key: index,
225
286
  class: _vm.itemStyles,
@@ -234,26 +295,8 @@ var __vue_render__ = function () {
234
295
  }
235
296
  }
236
297
  }, [_vm._v("\n " + _vm._s(page) + "\n ")]);
237
- }), _vm._v(" "), _c('OrButton', {
238
- class: _vm.itemStyles,
239
- attrs: {
240
- "variant": 'link',
241
- "color": 'inherit',
242
- "disabled": _vm.currentPage === _vm.lastPage
243
- },
244
- on: {
245
- "click": function ($event) {
246
- return _vm.toNextPage();
247
- }
248
- }
249
- }, [_c('OrIcon', {
250
- attrs: {
251
- "icon": 'keyboard_arrow_right'
252
- }
253
- })], 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
254
- class: _vm.limitControlStyles
255
- }, [_vm.isDesktop ? [_vm._v("\n Per page:\n ")] : _vm._e(), _vm._v(" "), _c('OrButton', {
256
- ref: 'limitButton',
298
+ }) : _vm._e(), _vm._v(" "), _vm.isMobile ? [_c('OrButton', {
299
+ ref: 'offsetButton',
257
300
  class: _vm.itemStyles,
258
301
  attrs: {
259
302
  "variant": 'link',
@@ -262,33 +305,34 @@ var __vue_render__ = function () {
262
305
  },
263
306
  on: {
264
307
  "click": function ($event) {
265
- _vm.limitMenu && _vm.limitMenu.open();
308
+ _vm.offsetMenu && _vm.offsetMenu.open();
266
309
  }
267
310
  }
268
- }, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
311
+ }, [_vm._v("\n " + _vm._s(_vm.currentPage) + " "), _c('OrIcon', {
269
312
  attrs: {
270
- "icon": _vm.limitMenu && _vm.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
313
+ "icon": _vm.offsetMenu && _vm.offsetMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
271
314
  }
272
315
  })], 1), _vm._v(" "), _c('OrMenu', {
273
- ref: 'limitMenu',
316
+ ref: 'offsetMenu',
274
317
  attrs: {
275
318
  "additional-styles": ['min-w-[60px]'],
276
- "trigger": _vm.limitButtonRoot,
319
+ "trigger": _vm.offsetButtonRoot,
277
320
  "placement": 'top'
278
321
  }
279
- }, _vm._l(_vm.options, function (pageSize) {
322
+ }, _vm._l(_vm.lastPage, function (page) {
280
323
  return _c('OrMenuItem', {
281
- key: pageSize,
324
+ key: page,
325
+ attrs: {
326
+ "selected": _vm.currentPage === page
327
+ },
282
328
  on: {
283
329
  "click": function ($event) {
284
- _vm.currentLimit = pageSize;
285
- _vm.limitMenu && _vm.limitMenu.close();
330
+ _vm.currentPage = page;
331
+ _vm.offsetMenu && _vm.offsetMenu.close();
286
332
  }
287
333
  }
288
- }, [_vm._v("\n " + _vm._s(pageSize) + "\n ")]);
289
- }), 1)], 2), _vm._v(" "), _vm.isMobile ? [_c('div', {
290
- class: _vm.offsetControlStyles
291
- }, [_c('OrButton', {
334
+ }, [_vm._v("\n " + _vm._s(page) + "\n ")]);
335
+ }), 1)] : _vm._e(), _vm._v(" "), _c('OrButton', {
292
336
  class: _vm.itemStyles,
293
337
  attrs: {
294
338
  "variant": 'link',
@@ -304,7 +348,7 @@ var __vue_render__ = function () {
304
348
  attrs: {
305
349
  "icon": 'keyboard_arrow_right'
306
350
  }
307
- })], 1)], 1)] : _vm._e()], 2);
351
+ })], 1)], 2)]);
308
352
  };
309
353
  var __vue_staticRenderFns__ = [];
310
354
 
@@ -34,7 +34,7 @@ export { _ as OrCombinedInputV3 } from '../OrCombinedInput-4b19d4b3.js';
34
34
  export { _ as OrConfirm } from '../OrConfirm-4b5fdad4.js';
35
35
  export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-b97c00de.js';
36
36
  export { _ as OrContextMenuV3 } from '../OrContextMenu-180a83f8.js';
37
- export { _ as OrDataGridV3 } from '../OrDataGrid-1bdd2499.js';
37
+ export { _ as OrDataGridV3 } from '../OrDataGrid-c3fac62c.js';
38
38
  export { D as DataGridVariant } from '../OrDataGridToolbar-4611a09b.js';
39
39
  export { _ as OrDateFormatV3 } from '../OrDateFormat-5122f872.js';
40
40
  export { _ as OrDatePickerV3 } from '../OrDatePicker-83367e4e.js';
@@ -89,7 +89,7 @@ export { _ as OrNumberInput } from '../OrNumberInput-b00163b4.js';
89
89
  export { _ as OrOverflowMenu } from '../OrOverflowMenu-7be5525a.js';
90
90
  export { _ as OrOverlay } from '../OrOverlay-ccec2218.js';
91
91
  export { _ as OrOverlayV3 } from '../OrOverlay-23008721.js';
92
- export { _ as OrPaginationV3 } from '../OrPagination-1b153a54.js';
92
+ export { _ as OrPaginationV3 } from '../OrPagination-5c65a29b.js';
93
93
  export { _ as OrPassword } from '../OrPassword-d530c522.js';
94
94
  export { _ as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from '../OrPopover-8c1fdbe0.js';
95
95
  export { i as isPrevented } from '../isPrevented-b151a948.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrDataGridV3 } from '../../OrDataGrid-1bdd2499.js';
1
+ export { _ as OrDataGridV3 } from '../../OrDataGrid-c3fac62c.js';
2
2
  export { D as DataGridVariant } from '../../OrDataGridToolbar-4611a09b.js';
3
3
  import 'vue-demi';
4
4
  import '../../OrCheckbox-2536a62d.js';
@@ -17,7 +17,7 @@ import '@onereach/styles/tailwind.config.json';
17
17
  import '../../OrLabel-bf7e2ea2.js';
18
18
  import '../../normalize-component-6e8e3d80.js';
19
19
  import '../../style-inject.es-4c6f2515.js';
20
- import '../../OrPagination-1b153a54.js';
20
+ import '../../OrPagination-5c65a29b.js';
21
21
  import '../../useResponsive-1baf3485.js';
22
22
  import '../../OrButton-3a743a90.js';
23
23
  import '../../OrButton.vue_rollup-plugin-vue_script-e8900483.js';
@@ -1,7 +1,8 @@
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").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
5
6
  limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
6
7
  [x: string]: ((...args: any[]) => any) | null;
7
8
  } | string[], {} & {}, {
@@ -14,11 +15,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
14
15
  [x: number]: string;
15
16
  } | {}, true> | undefined>;
16
17
  limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
17
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
- offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
- limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
+ limitGroupStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
+ offsetButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
20
+ [x: string]: ((...args: any[]) => any) | null;
21
+ } | string[], {} & {}, {
22
+ [x: number]: string;
23
+ } | {}, true> | undefined>;
24
+ offsetButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
25
+ offsetMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
26
+ [x: string]: ((...args: any[]) => any) | null;
27
+ } | string[], {} & {}, {
28
+ [x: number]: string;
29
+ } | {}, true> | undefined>;
30
+ offsetMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
31
+ offsetGroupStyles: import("@vue/composition-api").ComputedRef<string[]>;
20
32
  itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
21
- proxyModelValue: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
33
+ model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
22
34
  currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
23
35
  currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
24
36
  currentPage: import("@vue/composition-api").WritableComputedRef<number>;
@@ -43,6 +55,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
43
55
  type: PropType<number[]>;
44
56
  default: () => number[];
45
57
  };
58
+ features: {
59
+ type: PropType<PaginationFeatures>;
60
+ default: () => PaginationFeatures;
61
+ };
46
62
  }, import("@vue/composition-api").ExtractPropTypes<{
47
63
  modelValue: {
48
64
  type: PropType<PaginationModelValue>;
@@ -56,14 +72,20 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
56
72
  type: PropType<number[]>;
57
73
  default: () => number[];
58
74
  };
75
+ features: {
76
+ type: PropType<PaginationFeatures>;
77
+ default: () => PaginationFeatures;
78
+ };
59
79
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
60
80
  length: number;
61
81
  modelValue: PaginationModelValue;
62
82
  options: number[];
83
+ features: PaginationFeatures;
63
84
  } & {} & {
64
85
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
65
86
  }, import("@vue/composition-api").ShallowUnwrapRef<{
66
87
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
88
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
67
89
  limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
68
90
  [x: string]: ((...args: any[]) => any) | null;
69
91
  } | string[], {} & {}, {
@@ -76,11 +98,22 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
76
98
  [x: number]: string;
77
99
  } | {}, true> | undefined>;
78
100
  limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
79
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
80
- offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
81
- limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
101
+ limitGroupStyles: import("@vue/composition-api").ComputedRef<string[]>;
102
+ offsetButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
103
+ [x: string]: ((...args: any[]) => any) | null;
104
+ } | string[], {} & {}, {
105
+ [x: number]: string;
106
+ } | {}, true> | undefined>;
107
+ offsetButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
108
+ offsetMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
109
+ [x: string]: ((...args: any[]) => any) | null;
110
+ } | string[], {} & {}, {
111
+ [x: number]: string;
112
+ } | {}, true> | undefined>;
113
+ offsetMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
114
+ offsetGroupStyles: import("@vue/composition-api").ComputedRef<string[]>;
82
115
  itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
83
- proxyModelValue: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
116
+ model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
84
117
  currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
85
118
  currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
86
119
  currentPage: import("@vue/composition-api").WritableComputedRef<number>;
@@ -96,10 +129,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
96
129
  length: number;
97
130
  modelValue: PaginationModelValue;
98
131
  options: number[];
132
+ features: PaginationFeatures;
99
133
  } & {} & {
100
134
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
101
135
  }, {
102
136
  modelValue: PaginationModelValue;
103
137
  options: number[];
138
+ features: PaginationFeatures;
104
139
  }, true>);
105
140
  export default _default;
@@ -1,4 +1,4 @@
1
- export { _ as OrPaginationV3 } from '../../OrPagination-1b153a54.js';
1
+ export { _ as OrPaginationV3 } from '../../OrPagination-5c65a29b.js';
2
2
  import 'vue-demi';
3
3
  import '../../TimeFormat-a7f5565b.js';
4
4
  import '../../dom-53c9635b.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[];
@@ -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
+ };
@@ -34,7 +34,7 @@ export { _ as OrCombinedInputV3 } from './OrCombinedInput-4b19d4b3.js';
34
34
  export { _ as OrConfirm } from './OrConfirm-4b5fdad4.js';
35
35
  export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-b97c00de.js';
36
36
  export { _ as OrContextMenuV3 } from './OrContextMenu-180a83f8.js';
37
- export { _ as OrDataGridV3 } from './OrDataGrid-1bdd2499.js';
37
+ export { _ as OrDataGridV3 } from './OrDataGrid-c3fac62c.js';
38
38
  export { D as DataGridVariant } from './OrDataGridToolbar-4611a09b.js';
39
39
  export { _ as OrDateFormatV3 } from './OrDateFormat-5122f872.js';
40
40
  export { _ as OrDatePickerV3 } from './OrDatePicker-83367e4e.js';
@@ -89,7 +89,7 @@ export { _ as OrNumberInput } from './OrNumberInput-b00163b4.js';
89
89
  export { _ as OrOverflowMenu } from './OrOverflowMenu-7be5525a.js';
90
90
  export { _ as OrOverlay } from './OrOverlay-ccec2218.js';
91
91
  export { _ as OrOverlayV3 } from './OrOverlay-23008721.js';
92
- export { _ as OrPaginationV3 } from './OrPagination-1b153a54.js';
92
+ export { _ as OrPaginationV3 } from './OrPagination-5c65a29b.js';
93
93
  export { _ as OrPassword } from './OrPassword-d530c522.js';
94
94
  export { _ as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from './OrPopover-8c1fdbe0.js';
95
95
  export { i as isPrevented } from './isPrevented-b151a948.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { s as script$1 } from './OrCheckbox-98127253.js';
3
- import { s as script$f } from './OrPagination-6bb85ce5.js';
3
+ import { s as script$f } from './OrPagination-d597d25f.js';
4
4
  import { s as script$g } from './OrSearch-db35b8bf.js';
5
5
  import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, D as DataGridVariant } from './OrDataGridToolbar-9c02f848.js';
6
6
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, withCtx, renderSlot, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';