@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
@@ -9,27 +9,27 @@ import { s as script$1 } from './OrButton-31bcb511.js';
9
9
  import { s as script$2 } from './OrIcon-9aff520e.js';
10
10
  import { s as script$4 } from './OrMenuItem-511d42b6.js';
11
11
  import { s as script$3 } from './OrMenu-d63778a7.js';
12
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
12
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createTextVNode, createVNode, withCtx, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
13
13
 
14
- const PaginationRoot = [
14
+ const Pagination = [
15
15
  // Layout
16
- 'layout-row',
16
+ 'layout-row justify-between md:justify-end',
17
17
  // Spacing
18
- 'gap-lg md:gap-xl',
18
+ 'gap-xl',
19
19
  // Typography
20
20
  'typography-caption-regular',
21
21
  // Theme
22
22
  'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
23
- const PaginationOffsetControl = [
23
+ const PaginationLimitGroup = [
24
24
  // Layout
25
- 'layout-row',
25
+ 'layout-row shrink-0',
26
26
  // Spacing
27
- 'gap-md'];
28
- const PaginationLimitControl = [
27
+ 'gap-lg md:gap-md'];
28
+ const PaginationOffsetGroup = [
29
29
  // Layout
30
- 'layout-row',
30
+ 'layout-row shrink-0',
31
31
  // Spacing
32
- 'gap-sm'];
32
+ 'gap-md'];
33
33
  const PaginationItem = [
34
34
  // Typography
35
35
  'typography-caption-regular',
@@ -60,13 +60,21 @@ var script = defineComponent({
60
60
  options: {
61
61
  type: Array,
62
62
  default: () => [50, 20, 10, 5]
63
+ },
64
+ features: {
65
+ type: Object,
66
+ default: () => ({
67
+ limit: true,
68
+ range: true
69
+ })
63
70
  }
64
71
  },
65
72
  emits: ['update:modelValue'],
66
73
  expose: ['root'],
67
74
  setup(props, context) {
68
- // Refs
75
+ // Refs & Styles
69
76
  const root = ref();
77
+ const rootStyles = computed(() => ['or-pagination-v3', ...Pagination]);
70
78
  const limitButton = ref();
71
79
  const limitButtonRoot = computed(() => {
72
80
  var _a;
@@ -77,20 +85,28 @@ var script = defineComponent({
77
85
  var _a;
78
86
  return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
79
87
  });
80
- // Styles
81
- const rootStyles = computed(() => ['or-pagination-v3', ...PaginationRoot]);
82
- const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
83
- const limitControlStyles = computed(() => [...PaginationLimitControl]);
88
+ const limitGroupStyles = computed(() => [...PaginationLimitGroup]);
89
+ const offsetButton = ref();
90
+ const offsetButtonRoot = computed(() => {
91
+ var _a;
92
+ return (_a = offsetButton.value) === null || _a === void 0 ? void 0 : _a.root;
93
+ });
94
+ const offsetMenu = ref();
95
+ const offsetMenuRoot = computed(() => {
96
+ var _a;
97
+ return (_a = offsetMenu.value) === null || _a === void 0 ? void 0 : _a.root;
98
+ });
99
+ const offsetGroupStyles = computed(() => [...PaginationOffsetGroup]);
84
100
  const itemStyles = computed(() => [...PaginationItem]);
85
101
  // State
86
- const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
102
+ const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
87
103
  const currentLimit = computed({
88
104
  get: () => {
89
105
  var _a, _b;
90
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
106
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
91
107
  },
92
108
  set: value => {
93
- proxyModelValue.value = {
109
+ model.value = {
94
110
  limit: value,
95
111
  offset: 0
96
112
  };
@@ -99,10 +115,10 @@ var script = defineComponent({
99
115
  const currentOffset = computed({
100
116
  get: () => {
101
117
  var _a, _b;
102
- return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
118
+ return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
103
119
  },
104
120
  set: value => {
105
- proxyModelValue.value = {
121
+ model.value = {
106
122
  limit: currentLimit.value,
107
123
  offset: value
108
124
  };
@@ -165,15 +181,19 @@ var script = defineComponent({
165
181
  } = useResponsive();
166
182
  return {
167
183
  root,
184
+ rootStyles,
168
185
  limitButton,
169
186
  limitButtonRoot,
170
187
  limitMenu,
171
188
  limitMenuRoot,
172
- rootStyles,
173
- offsetControlStyles,
174
- limitControlStyles,
189
+ limitGroupStyles,
190
+ offsetButton,
191
+ offsetButtonRoot,
192
+ offsetMenu,
193
+ offsetMenuRoot,
194
+ offsetGroupStyles,
175
195
  itemStyles,
176
- proxyModelValue,
196
+ model,
177
197
  currentLimit,
178
198
  currentOffset,
179
199
  currentPage,
@@ -189,6 +209,10 @@ var script = defineComponent({
189
209
  }
190
210
  });
191
211
 
212
+ const _hoisted_1 = {
213
+ key: 0,
214
+ class: /*#__PURE__*/normalizeClass(['layout-row', 'gap-sm'])
215
+ };
192
216
  function render(_ctx, _cache, $props, $setup, $data, $options) {
193
217
  const _component_OrIcon = resolveComponent("OrIcon");
194
218
  const _component_OrButton = resolveComponent("OrButton");
@@ -198,21 +222,59 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
198
222
  ref: 'root',
199
223
  class: normalizeClass(_ctx.rootStyles)
200
224
  }, [createElementVNode("div", {
201
- class: normalizeClass(_ctx.offsetControlStyles)
225
+ class: normalizeClass(_ctx.limitGroupStyles)
226
+ }, [_ctx.features.limit ? (openBlock(), createElementBlock("div", _hoisted_1, [createTextVNode(" Per page: "), createVNode(_component_OrButton, {
227
+ ref: 'limitButton',
228
+ class: normalizeClass(_ctx.itemStyles),
229
+ variant: 'link',
230
+ color: 'inherit',
231
+ activated: true,
232
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.limitMenu && _ctx.limitMenu.open())
233
+ }, {
234
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
235
+ icon: _ctx.limitMenu && _ctx.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
236
+ }, null, 8 /* PROPS */, ["icon"])]),
237
+ _: 1 /* STABLE */
238
+ }, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
239
+ ref: 'limitMenu',
240
+ "additional-styles": ['min-w-[60px]'],
241
+ trigger: _ctx.limitButtonRoot,
242
+ placement: 'top'
243
+ }, {
244
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, limit => {
245
+ return openBlock(), createBlock(_component_OrMenuItem, {
246
+ key: limit,
247
+ selected: _ctx.currentLimit === limit,
248
+ onClick: $event => {
249
+ _ctx.currentLimit = limit;
250
+ _ctx.limitMenu && _ctx.limitMenu.close();
251
+ }
252
+ }, {
253
+ default: withCtx(() => [createTextVNode(toDisplayString(limit), 1 /* TEXT */)]),
254
+
255
+ _: 2 /* DYNAMIC */
256
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
257
+ }), 128 /* KEYED_FRAGMENT */))]),
258
+
259
+ _: 1 /* STABLE */
260
+ }, 8 /* PROPS */, ["trigger"])])) : createCommentVNode("v-if", true), _ctx.features.range ? (openBlock(), createElementBlock(Fragment, {
261
+ key: 1
262
+ }, [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", {
263
+ class: normalizeClass(_ctx.offsetGroupStyles)
202
264
  }, [createVNode(_component_OrButton, {
203
265
  class: normalizeClass(_ctx.itemStyles),
204
266
  variant: 'link',
205
267
  color: 'inherit',
206
268
  disabled: _ctx.currentPage === _ctx.firstPage,
207
- onClick: _cache[0] || (_cache[0] = $event => _ctx.toPreviousPage())
269
+ onClick: _cache[1] || (_cache[1] = $event => _ctx.toPreviousPage())
208
270
  }, {
209
271
  default: withCtx(() => [createVNode(_component_OrIcon, {
210
272
  icon: 'keyboard_arrow_left'
211
273
  })]),
212
274
  _: 1 /* STABLE */
213
- }, 8 /* PROPS */, ["class", "disabled"]), _ctx.isDesktop ? (openBlock(), createElementBlock(Fragment, {
275
+ }, 8 /* PROPS */, ["class", "disabled"]), _ctx.isDesktop ? (openBlock(true), createElementBlock(Fragment, {
214
276
  key: 0
215
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonGroup, (page, index) => {
277
+ }, renderList(_ctx.buttonGroup, (page, index) => {
216
278
  return openBlock(), createBlock(_component_OrButton, {
217
279
  key: index,
218
280
  class: normalizeClass(_ctx.itemStyles),
@@ -225,58 +287,43 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
225
287
 
226
288
  _: 2 /* DYNAMIC */
227
289
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "activated", "onClick"]);
228
- }), 128 /* KEYED_FRAGMENT */)), createVNode(_component_OrButton, {
229
- class: normalizeClass(_ctx.itemStyles),
230
- variant: 'link',
231
- color: 'inherit',
232
- disabled: _ctx.currentPage === _ctx.lastPage,
233
- onClick: _cache[1] || (_cache[1] = $event => _ctx.toNextPage())
234
- }, {
235
- default: withCtx(() => [createVNode(_component_OrIcon, {
236
- icon: 'keyboard_arrow_right'
237
- })]),
238
- _: 1 /* STABLE */
239
- }, 8 /* PROPS */, ["class", "disabled"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
240
- class: normalizeClass(_ctx.limitControlStyles)
241
- }, [_ctx.isDesktop ? (openBlock(), createElementBlock(Fragment, {
242
- key: 0
243
- }, [createTextVNode(" Per page: ")], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), createVNode(_component_OrButton, {
244
- ref: 'limitButton',
290
+ }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.isMobile ? (openBlock(), createElementBlock(Fragment, {
291
+ key: 1
292
+ }, [createVNode(_component_OrButton, {
293
+ ref: 'offsetButton',
245
294
  class: normalizeClass(_ctx.itemStyles),
246
295
  variant: 'link',
247
296
  color: 'inherit',
248
297
  activated: true,
249
- onClick: _cache[2] || (_cache[2] = $event => _ctx.limitMenu && _ctx.limitMenu.open())
298
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.offsetMenu && _ctx.offsetMenu.open())
250
299
  }, {
251
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
252
- icon: _ctx.limitMenu && _ctx.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
300
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentPage) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
301
+ icon: _ctx.offsetMenu && _ctx.offsetMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
253
302
  }, null, 8 /* PROPS */, ["icon"])]),
254
303
  _: 1 /* STABLE */
255
304
  }, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
256
- ref: 'limitMenu',
305
+ ref: 'offsetMenu',
257
306
  "additional-styles": ['min-w-[60px]'],
258
- trigger: _ctx.limitButtonRoot,
307
+ trigger: _ctx.offsetButtonRoot,
259
308
  placement: 'top'
260
309
  }, {
261
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, pageSize => {
310
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lastPage, page => {
262
311
  return openBlock(), createBlock(_component_OrMenuItem, {
263
- key: pageSize,
312
+ key: page,
313
+ selected: _ctx.currentPage === page,
264
314
  onClick: $event => {
265
- _ctx.currentLimit = pageSize;
266
- _ctx.limitMenu && _ctx.limitMenu.close();
315
+ _ctx.currentPage = page;
316
+ _ctx.offsetMenu && _ctx.offsetMenu.close();
267
317
  }
268
318
  }, {
269
- default: withCtx(() => [createTextVNode(toDisplayString(pageSize), 1 /* TEXT */)]),
319
+ default: withCtx(() => [createTextVNode(toDisplayString(page), 1 /* TEXT */)]),
270
320
 
271
321
  _: 2 /* DYNAMIC */
272
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
322
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
273
323
  }), 128 /* KEYED_FRAGMENT */))]),
274
324
 
275
325
  _: 1 /* STABLE */
276
- }, 8 /* PROPS */, ["trigger"])], 2 /* CLASS */), _ctx.isMobile ? (openBlock(), createElementBlock("div", {
277
- key: 0,
278
- class: normalizeClass(_ctx.offsetControlStyles)
279
- }, [createVNode(_component_OrButton, {
326
+ }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), createVNode(_component_OrButton, {
280
327
  class: normalizeClass(_ctx.itemStyles),
281
328
  variant: 'link',
282
329
  color: 'inherit',
@@ -287,7 +334,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
287
334
  icon: 'keyboard_arrow_right'
288
335
  })]),
289
336
  _: 1 /* STABLE */
290
- }, 8 /* PROPS */, ["class", "disabled"])], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
337
+ }, 8 /* PROPS */, ["class", "disabled"])], 2 /* CLASS */)], 2 /* CLASS */);
291
338
  }
292
339
 
293
340
  script.render = render;
@@ -32,7 +32,7 @@ export { s as OrCombinedInputV3 } from '../OrCombinedInput-4dc423a8.js';
32
32
  export { s as OrConfirm } from '../OrConfirm-7c132ea7.js';
33
33
  export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-780bd0e6.js';
34
34
  export { s as OrContextMenuV3 } from '../OrContextMenu-7fe5d0b5.js';
35
- export { s as OrDataGridV3 } from '../OrDataGrid-c7a65d77.js';
35
+ export { s as OrDataGridV3 } from '../OrDataGrid-1aa41c21.js';
36
36
  export { D as DataGridVariant } from '../OrDataGridToolbar-9c02f848.js';
37
37
  export { s as OrDateFormatV3 } from '../OrDateFormat-fe577aea.js';
38
38
  export { s as OrDatePickerV3 } from '../OrDatePicker-e672967a.js';
@@ -86,7 +86,7 @@ export { s as OrNumberInput } from '../OrNumberInput-2433b4b8.js';
86
86
  export { s as OrOverflowMenu } from '../OrOverflowMenu-8a0210ef.js';
87
87
  export { s as OrOverlay } from '../OrOverlay-451dce49.js';
88
88
  export { s as OrOverlayV3 } from '../OrOverlay-49a678a2.js';
89
- export { s as OrPaginationV3 } from '../OrPagination-6bb85ce5.js';
89
+ export { s as OrPaginationV3 } from '../OrPagination-d597d25f.js';
90
90
  export { s as OrPassword } from '../OrPassword-c8ed7759.js';
91
91
  export { s as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from '../OrPopover-d050ede2.js';
92
92
  export { i as isPrevented } from '../isPrevented-b151a948.js';
@@ -1,4 +1,4 @@
1
- export { s as OrDataGridV3 } from '../../OrDataGrid-c7a65d77.js';
1
+ export { s as OrDataGridV3 } from '../../OrDataGrid-1aa41c21.js';
2
2
  export { D as DataGridVariant } from '../../OrDataGridToolbar-9c02f848.js';
3
3
  import 'vue-demi';
4
4
  import '../../OrCheckbox-98127253.js';
@@ -17,7 +17,7 @@ import '@onereach/styles/tailwind.config.json';
17
17
  import '../../OrLabel-4abbce6e.js';
18
18
  import 'vue';
19
19
  import '../../style-inject.es-4c6f2515.js';
20
- import '../../OrPagination-6bb85ce5.js';
20
+ import '../../OrPagination-d597d25f.js';
21
21
  import '../../useResponsive-1baf3485.js';
22
22
  import '../../OrButton-31bcb511.js';
23
23
  import '../../OrLoader-5e2f359b.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,4 +1,4 @@
1
- export { s as OrPaginationV3 } from '../../OrPagination-6bb85ce5.js';
1
+ export { s as OrPaginationV3 } from '../../OrPagination-d597d25f.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
+ };
@@ -32,7 +32,7 @@ export { s as OrCombinedInputV3 } from './OrCombinedInput-4dc423a8.js';
32
32
  export { s as OrConfirm } from './OrConfirm-7c132ea7.js';
33
33
  export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-780bd0e6.js';
34
34
  export { s as OrContextMenuV3 } from './OrContextMenu-7fe5d0b5.js';
35
- export { s as OrDataGridV3 } from './OrDataGrid-c7a65d77.js';
35
+ export { s as OrDataGridV3 } from './OrDataGrid-1aa41c21.js';
36
36
  export { D as DataGridVariant } from './OrDataGridToolbar-9c02f848.js';
37
37
  export { s as OrDateFormatV3 } from './OrDateFormat-fe577aea.js';
38
38
  export { s as OrDatePickerV3 } from './OrDatePicker-e672967a.js';
@@ -86,7 +86,7 @@ export { s as OrNumberInput } from './OrNumberInput-2433b4b8.js';
86
86
  export { s as OrOverflowMenu } from './OrOverflowMenu-8a0210ef.js';
87
87
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
88
88
  export { s as OrOverlayV3 } from './OrOverlay-49a678a2.js';
89
- export { s as OrPaginationV3 } from './OrPagination-6bb85ce5.js';
89
+ export { s as OrPaginationV3 } from './OrPagination-d597d25f.js';
90
90
  export { s as OrPassword } from './OrPassword-c8ed7759.js';
91
91
  export { s as OrPopoverV3, a as PopoverPlacement, P as PopoverVariant } from './OrPopover-d050ede2.js';
92
92
  export { i as isPrevented } from './isPrevented-b151a948.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "11.3.1",
3
+ "version": "11.3.2-beta.4418.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -179,6 +179,5 @@
179
179
  "default": "./dist/bundled/v3/components/*/index.js"
180
180
  },
181
181
  "./package.json": "./package.json"
182
- },
183
- "gitHead": "84c91589eeb8f06ee12ece77eb8e53d7984a1815"
182
+ }
184
183
  }