@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.
- package/dist/bundled/v2/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/v2/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +95 -51
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.vue.d.ts +44 -9
- package/dist/bundled/v2/components/OrPaginationV3/styles.d.ts +3 -3
- package/dist/bundled/v2/components/OrPaginationV3/styles.js +10 -10
- package/dist/bundled/v2/components/OrPaginationV3/types.d.ts +4 -0
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/components/OrDataGridV3/OrDataGrid.js +1 -1
- package/dist/bundled/v3/components/OrDataGridV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDataGridV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrDataGridV3-ab1277d5.js → OrDataGridV3-45009eae.js} +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +18 -5
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/styles.d.ts +3 -3
- package/dist/bundled/v3/components/OrPaginationV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/types.d.ts +4 -0
- package/dist/bundled/v3/components/{OrPaginationV3-a460d1bb.js → OrPaginationV3-0fe573af.js} +109 -62
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrDataGrid-1bdd2499.js → OrDataGrid-c3fac62c.js} +1 -1
- package/dist/esm/v2/{OrPagination-1b153a54.js → OrPagination-5c65a29b.js} +103 -59
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-data-grid-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +44 -9
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +3 -3
- package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v3/{OrDataGrid-c7a65d77.js → OrDataGrid-1aa41c21.js} +1 -1
- package/dist/esm/v3/{OrPagination-6bb85ce5.js → OrPagination-d597d25f.js} +108 -61
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-data-grid-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +18 -5
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +3 -3
- package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v3/index.js +2 -2
- package/package.json +2 -3
- package/src/components/or-pagination-v3/OrPagination.vue +118 -65
- package/src/components/or-pagination-v3/styles.ts +9 -9
- package/src/components/or-pagination-v3/types.ts +5 -0
- /package/dist/bundled/v2/{OrDataGrid-13e9299a.js → OrDataGrid-5a42261a.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { _ as default } from '../../OrDataGrid-
|
|
1
|
+
export { _ as default } from '../../OrDataGrid-5a42261a.js';
|
|
2
2
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from '../../OrDataGrid-
|
|
1
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from '../../OrDataGrid-5a42261a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { Pagination, PaginationLimitGroup, PaginationOffsetGroup, PaginationItem } from './styles.js';
|
|
3
3
|
import __vue_component__$1 from '../OrButtonV3/OrButton.js';
|
|
4
4
|
import __vue_component__$2 from '../OrIconV3/OrIcon.js';
|
|
5
5
|
import __vue_component__$3 from '../OrMenuV3/OrMenu.js';
|
|
@@ -32,13 +32,21 @@ var script = defineComponent({
|
|
|
32
32
|
options: {
|
|
33
33
|
type: Array,
|
|
34
34
|
default: () => [50, 20, 10, 5]
|
|
35
|
+
},
|
|
36
|
+
features: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => ({
|
|
39
|
+
limit: true,
|
|
40
|
+
range: true
|
|
41
|
+
})
|
|
35
42
|
}
|
|
36
43
|
},
|
|
37
44
|
emits: ['update:modelValue'],
|
|
38
45
|
expose: ['root'],
|
|
39
46
|
setup(props, context) {
|
|
40
|
-
// Refs
|
|
47
|
+
// Refs & Styles
|
|
41
48
|
const root = ref();
|
|
49
|
+
const rootStyles = computed(() => ['or-pagination-v3', ...Pagination]);
|
|
42
50
|
const limitButton = ref();
|
|
43
51
|
const limitButtonRoot = computed(() => {
|
|
44
52
|
var _a;
|
|
@@ -49,20 +57,28 @@ var script = defineComponent({
|
|
|
49
57
|
var _a;
|
|
50
58
|
return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
51
59
|
});
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
|
|
60
|
+
const limitGroupStyles = computed(() => [...PaginationLimitGroup]);
|
|
61
|
+
const offsetButton = ref();
|
|
62
|
+
const offsetButtonRoot = computed(() => {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = offsetButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
65
|
+
});
|
|
66
|
+
const offsetMenu = ref();
|
|
67
|
+
const offsetMenuRoot = computed(() => {
|
|
68
|
+
var _a;
|
|
69
|
+
return (_a = offsetMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
70
|
+
});
|
|
71
|
+
const offsetGroupStyles = computed(() => [...PaginationOffsetGroup]);
|
|
56
72
|
const itemStyles = computed(() => [...PaginationItem]);
|
|
57
73
|
// State
|
|
58
|
-
const
|
|
74
|
+
const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
59
75
|
const currentLimit = computed({
|
|
60
76
|
get: () => {
|
|
61
77
|
var _a, _b;
|
|
62
|
-
return (_b = (_a =
|
|
78
|
+
return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
|
|
63
79
|
},
|
|
64
80
|
set: value => {
|
|
65
|
-
|
|
81
|
+
model.value = {
|
|
66
82
|
limit: value,
|
|
67
83
|
offset: 0
|
|
68
84
|
};
|
|
@@ -71,10 +87,10 @@ var script = defineComponent({
|
|
|
71
87
|
const currentOffset = computed({
|
|
72
88
|
get: () => {
|
|
73
89
|
var _a, _b;
|
|
74
|
-
return (_b = (_a =
|
|
90
|
+
return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
|
|
75
91
|
},
|
|
76
92
|
set: value => {
|
|
77
|
-
|
|
93
|
+
model.value = {
|
|
78
94
|
limit: currentLimit.value,
|
|
79
95
|
offset: value
|
|
80
96
|
};
|
|
@@ -137,15 +153,19 @@ var script = defineComponent({
|
|
|
137
153
|
} = useResponsive();
|
|
138
154
|
return {
|
|
139
155
|
root,
|
|
156
|
+
rootStyles,
|
|
140
157
|
limitButton,
|
|
141
158
|
limitButtonRoot,
|
|
142
159
|
limitMenu,
|
|
143
160
|
limitMenuRoot,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
161
|
+
limitGroupStyles,
|
|
162
|
+
offsetButton,
|
|
163
|
+
offsetButtonRoot,
|
|
164
|
+
offsetMenu,
|
|
165
|
+
offsetMenuRoot,
|
|
166
|
+
offsetGroupStyles,
|
|
147
167
|
itemStyles,
|
|
148
|
-
|
|
168
|
+
model,
|
|
149
169
|
currentLimit,
|
|
150
170
|
currentOffset,
|
|
151
171
|
currentPage,
|
|
@@ -173,7 +193,48 @@ var __vue_render__ = function () {
|
|
|
173
193
|
ref: 'root',
|
|
174
194
|
class: _vm.rootStyles
|
|
175
195
|
}, [_c('div', {
|
|
176
|
-
class: _vm.
|
|
196
|
+
class: _vm.limitGroupStyles
|
|
197
|
+
}, [_vm.features.limit ? [_c('div', {
|
|
198
|
+
class: ['layout-row', 'gap-sm']
|
|
199
|
+
}, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
|
|
200
|
+
ref: 'limitButton',
|
|
201
|
+
class: _vm.itemStyles,
|
|
202
|
+
attrs: {
|
|
203
|
+
"variant": 'link',
|
|
204
|
+
"color": 'inherit',
|
|
205
|
+
"activated": true
|
|
206
|
+
},
|
|
207
|
+
on: {
|
|
208
|
+
"click": function ($event) {
|
|
209
|
+
_vm.limitMenu && _vm.limitMenu.open();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
|
|
213
|
+
attrs: {
|
|
214
|
+
"icon": _vm.limitMenu && _vm.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
215
|
+
}
|
|
216
|
+
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
217
|
+
ref: 'limitMenu',
|
|
218
|
+
attrs: {
|
|
219
|
+
"additional-styles": ['min-w-[60px]'],
|
|
220
|
+
"trigger": _vm.limitButtonRoot,
|
|
221
|
+
"placement": 'top'
|
|
222
|
+
}
|
|
223
|
+
}, _vm._l(_vm.options, function (limit) {
|
|
224
|
+
return _c('OrMenuItem', {
|
|
225
|
+
key: limit,
|
|
226
|
+
attrs: {
|
|
227
|
+
"selected": _vm.currentLimit === limit
|
|
228
|
+
},
|
|
229
|
+
on: {
|
|
230
|
+
"click": function ($event) {
|
|
231
|
+
_vm.currentLimit = limit;
|
|
232
|
+
_vm.limitMenu && _vm.limitMenu.close();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}, [_vm._v("\n " + _vm._s(limit) + "\n ")]);
|
|
236
|
+
}), 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', {
|
|
237
|
+
class: _vm.offsetGroupStyles
|
|
177
238
|
}, [_c('OrButton', {
|
|
178
239
|
class: _vm.itemStyles,
|
|
179
240
|
attrs: {
|
|
@@ -190,7 +251,7 @@ var __vue_render__ = function () {
|
|
|
190
251
|
attrs: {
|
|
191
252
|
"icon": 'keyboard_arrow_left'
|
|
192
253
|
}
|
|
193
|
-
})], 1), _vm._v(" "), _vm.isDesktop ?
|
|
254
|
+
})], 1), _vm._v(" "), _vm.isDesktop ? _vm._l(_vm.buttonGroup, function (page, index) {
|
|
194
255
|
return _c('OrButton', {
|
|
195
256
|
key: index,
|
|
196
257
|
class: _vm.itemStyles,
|
|
@@ -205,26 +266,8 @@ var __vue_render__ = function () {
|
|
|
205
266
|
}
|
|
206
267
|
}
|
|
207
268
|
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
208
|
-
}), _vm._v(" "), _c('OrButton', {
|
|
209
|
-
|
|
210
|
-
attrs: {
|
|
211
|
-
"variant": 'link',
|
|
212
|
-
"color": 'inherit',
|
|
213
|
-
"disabled": _vm.currentPage === _vm.lastPage
|
|
214
|
-
},
|
|
215
|
-
on: {
|
|
216
|
-
"click": function ($event) {
|
|
217
|
-
return _vm.toNextPage();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}, [_c('OrIcon', {
|
|
221
|
-
attrs: {
|
|
222
|
-
"icon": 'keyboard_arrow_right'
|
|
223
|
-
}
|
|
224
|
-
})], 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
225
|
-
class: _vm.limitControlStyles
|
|
226
|
-
}, [_vm.isDesktop ? [_vm._v("\n Per page:\n ")] : _vm._e(), _vm._v(" "), _c('OrButton', {
|
|
227
|
-
ref: 'limitButton',
|
|
269
|
+
}) : _vm._e(), _vm._v(" "), _vm.isMobile ? [_c('OrButton', {
|
|
270
|
+
ref: 'offsetButton',
|
|
228
271
|
class: _vm.itemStyles,
|
|
229
272
|
attrs: {
|
|
230
273
|
"variant": 'link',
|
|
@@ -233,33 +276,34 @@ var __vue_render__ = function () {
|
|
|
233
276
|
},
|
|
234
277
|
on: {
|
|
235
278
|
"click": function ($event) {
|
|
236
|
-
_vm.
|
|
279
|
+
_vm.offsetMenu && _vm.offsetMenu.open();
|
|
237
280
|
}
|
|
238
281
|
}
|
|
239
|
-
}, [_vm._v("\n
|
|
282
|
+
}, [_vm._v("\n " + _vm._s(_vm.currentPage) + " "), _c('OrIcon', {
|
|
240
283
|
attrs: {
|
|
241
|
-
"icon": _vm.
|
|
284
|
+
"icon": _vm.offsetMenu && _vm.offsetMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
242
285
|
}
|
|
243
286
|
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
244
|
-
ref: '
|
|
287
|
+
ref: 'offsetMenu',
|
|
245
288
|
attrs: {
|
|
246
289
|
"additional-styles": ['min-w-[60px]'],
|
|
247
|
-
"trigger": _vm.
|
|
290
|
+
"trigger": _vm.offsetButtonRoot,
|
|
248
291
|
"placement": 'top'
|
|
249
292
|
}
|
|
250
|
-
}, _vm._l(_vm.
|
|
293
|
+
}, _vm._l(_vm.lastPage, function (page) {
|
|
251
294
|
return _c('OrMenuItem', {
|
|
252
|
-
key:
|
|
295
|
+
key: page,
|
|
296
|
+
attrs: {
|
|
297
|
+
"selected": _vm.currentPage === page
|
|
298
|
+
},
|
|
253
299
|
on: {
|
|
254
300
|
"click": function ($event) {
|
|
255
|
-
_vm.
|
|
256
|
-
_vm.
|
|
301
|
+
_vm.currentPage = page;
|
|
302
|
+
_vm.offsetMenu && _vm.offsetMenu.close();
|
|
257
303
|
}
|
|
258
304
|
}
|
|
259
|
-
}, [_vm._v("\n
|
|
260
|
-
}), 1)]
|
|
261
|
-
class: _vm.offsetControlStyles
|
|
262
|
-
}, [_c('OrButton', {
|
|
305
|
+
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
306
|
+
}), 1)] : _vm._e(), _vm._v(" "), _c('OrButton', {
|
|
263
307
|
class: _vm.itemStyles,
|
|
264
308
|
attrs: {
|
|
265
309
|
"variant": 'link',
|
|
@@ -275,7 +319,7 @@ var __vue_render__ = function () {
|
|
|
275
319
|
attrs: {
|
|
276
320
|
"icon": 'keyboard_arrow_right'
|
|
277
321
|
}
|
|
278
|
-
})], 1)],
|
|
322
|
+
})], 1)], 2)]);
|
|
279
323
|
};
|
|
280
324
|
var __vue_staticRenderFns__ = [];
|
|
281
325
|
|
|
@@ -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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
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 declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
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,26 +1,26 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Pagination = [
|
|
2
2
|
// Layout
|
|
3
|
-
'layout-row',
|
|
3
|
+
'layout-row justify-between md:justify-end',
|
|
4
4
|
// Spacing
|
|
5
|
-
'gap-
|
|
5
|
+
'gap-xl',
|
|
6
6
|
// Typography
|
|
7
7
|
'typography-caption-regular',
|
|
8
8
|
// Theme
|
|
9
9
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
10
|
-
const
|
|
10
|
+
const PaginationLimitGroup = [
|
|
11
11
|
// Layout
|
|
12
|
-
'layout-row',
|
|
12
|
+
'layout-row shrink-0',
|
|
13
13
|
// Spacing
|
|
14
|
-
'gap-md'];
|
|
15
|
-
const
|
|
14
|
+
'gap-lg md:gap-md'];
|
|
15
|
+
const PaginationOffsetGroup = [
|
|
16
16
|
// Layout
|
|
17
|
-
'layout-row',
|
|
17
|
+
'layout-row shrink-0',
|
|
18
18
|
// Spacing
|
|
19
|
-
'gap-
|
|
19
|
+
'gap-md'];
|
|
20
20
|
const PaginationItem = [
|
|
21
21
|
// Typography
|
|
22
22
|
'typography-caption-regular',
|
|
23
23
|
// Typography (activated)
|
|
24
24
|
'activated:typography-caption-bold'];
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { Pagination, PaginationItem, PaginationLimitGroup, PaginationOffsetGroup };
|
|
@@ -44,7 +44,7 @@ export { default as OrConfirm } from './OrConfirm/OrConfirm.js';
|
|
|
44
44
|
export { default as OrConfirmV3 } from './OrConfirmV3/OrConfirm.js';
|
|
45
45
|
export { ConfirmType } from './OrConfirmV3/props.js';
|
|
46
46
|
export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
|
|
47
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from '../OrDataGrid-
|
|
47
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from '../OrDataGrid-5a42261a.js';
|
|
48
48
|
export { default as OrDateFormatV3 } from './OrDateFormatV3/OrDateFormat.js';
|
|
49
49
|
export { default as OrDatePickerV3 } from './OrDatePickerV3/OrDatePicker.js';
|
|
50
50
|
export { default as OrDateRangePickerV3 } from './OrDateRangePickerV3/OrDateRangePicker.js';
|