@onereach/ui-components 11.3.1 → 11.3.2-beta.4417.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 +91 -51
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.vue.d.ts +40 -9
- package/dist/bundled/v2/components/OrPaginationV3/styles.d.ts +1 -3
- package/dist/bundled/v2/components/OrPaginationV3/styles.js +2 -12
- 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 +1 -1
- 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-53537045.js} +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +16 -5
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/styles.d.ts +1 -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-4576ee90.js} +101 -66
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrDataGrid-1bdd2499.js → OrDataGrid-9e29b831.js} +1 -1
- package/dist/esm/v2/{OrPagination-1b153a54.js → OrPagination-2d6fbd4b.js} +91 -61
- 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 +40 -9
- package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +1 -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-c68a7070.js} +1 -1
- package/dist/esm/v3/{OrPagination-6bb85ce5.js → OrPagination-42ad7478.js} +100 -65
- 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 +16 -5
- package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +1 -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 +109 -68
- package/src/components/or-pagination-v3/styles.ts +1 -17
- package/src/components/or-pagination-v3/types.ts +5 -0
- /package/dist/bundled/v2/{OrDataGrid-13e9299a.js → OrDataGrid-0f6770b0.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { _ as default } from '../../OrDataGrid-
|
|
1
|
+
export { _ as default } from '../../OrDataGrid-0f6770b0.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-0f6770b0.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { Pagination, 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,26 @@ 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
|
-
|
|
55
|
-
|
|
60
|
+
const offsetButton = ref();
|
|
61
|
+
const offsetButtonRoot = computed(() => {
|
|
62
|
+
var _a;
|
|
63
|
+
return (_a = offsetButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
64
|
+
});
|
|
65
|
+
const offsetMenu = ref();
|
|
66
|
+
const offsetMenuRoot = computed(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
return (_a = offsetMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
69
|
+
});
|
|
56
70
|
const itemStyles = computed(() => [...PaginationItem]);
|
|
57
71
|
// State
|
|
58
|
-
const
|
|
72
|
+
const model = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
|
|
59
73
|
const currentLimit = computed({
|
|
60
74
|
get: () => {
|
|
61
75
|
var _a, _b;
|
|
62
|
-
return (_b = (_a =
|
|
76
|
+
return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.options[0];
|
|
63
77
|
},
|
|
64
78
|
set: value => {
|
|
65
|
-
|
|
79
|
+
model.value = {
|
|
66
80
|
limit: value,
|
|
67
81
|
offset: 0
|
|
68
82
|
};
|
|
@@ -71,10 +85,10 @@ var script = defineComponent({
|
|
|
71
85
|
const currentOffset = computed({
|
|
72
86
|
get: () => {
|
|
73
87
|
var _a, _b;
|
|
74
|
-
return (_b = (_a =
|
|
88
|
+
return (_b = (_a = model.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
|
|
75
89
|
},
|
|
76
90
|
set: value => {
|
|
77
|
-
|
|
91
|
+
model.value = {
|
|
78
92
|
limit: currentLimit.value,
|
|
79
93
|
offset: value
|
|
80
94
|
};
|
|
@@ -137,15 +151,17 @@ var script = defineComponent({
|
|
|
137
151
|
} = useResponsive();
|
|
138
152
|
return {
|
|
139
153
|
root,
|
|
154
|
+
rootStyles,
|
|
140
155
|
limitButton,
|
|
141
156
|
limitButtonRoot,
|
|
142
157
|
limitMenu,
|
|
143
158
|
limitMenuRoot,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
159
|
+
offsetButton,
|
|
160
|
+
offsetButtonRoot,
|
|
161
|
+
offsetMenu,
|
|
162
|
+
offsetMenuRoot,
|
|
147
163
|
itemStyles,
|
|
148
|
-
|
|
164
|
+
model,
|
|
149
165
|
currentLimit,
|
|
150
166
|
currentOffset,
|
|
151
167
|
currentPage,
|
|
@@ -173,7 +189,48 @@ var __vue_render__ = function () {
|
|
|
173
189
|
ref: 'root',
|
|
174
190
|
class: _vm.rootStyles
|
|
175
191
|
}, [_c('div', {
|
|
176
|
-
class:
|
|
192
|
+
class: ['layout-row', 'gap-md', 'shrink-0']
|
|
193
|
+
}, [_vm.features.limit ? [_c('div', {
|
|
194
|
+
class: ['layout-row', 'gap-sm']
|
|
195
|
+
}, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
|
|
196
|
+
ref: 'limitButton',
|
|
197
|
+
class: _vm.itemStyles,
|
|
198
|
+
attrs: {
|
|
199
|
+
"variant": 'link',
|
|
200
|
+
"color": 'inherit',
|
|
201
|
+
"activated": true
|
|
202
|
+
},
|
|
203
|
+
on: {
|
|
204
|
+
"click": function ($event) {
|
|
205
|
+
_vm.limitMenu && _vm.limitMenu.open();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
|
|
209
|
+
attrs: {
|
|
210
|
+
"icon": _vm.limitMenu && _vm.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
211
|
+
}
|
|
212
|
+
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
213
|
+
ref: 'limitMenu',
|
|
214
|
+
attrs: {
|
|
215
|
+
"additional-styles": ['min-w-[60px]'],
|
|
216
|
+
"trigger": _vm.limitButtonRoot,
|
|
217
|
+
"placement": 'top'
|
|
218
|
+
}
|
|
219
|
+
}, _vm._l(_vm.options, function (limit) {
|
|
220
|
+
return _c('OrMenuItem', {
|
|
221
|
+
key: limit,
|
|
222
|
+
attrs: {
|
|
223
|
+
"selected": _vm.currentLimit === limit
|
|
224
|
+
},
|
|
225
|
+
on: {
|
|
226
|
+
"click": function ($event) {
|
|
227
|
+
_vm.currentLimit = limit;
|
|
228
|
+
_vm.limitMenu && _vm.limitMenu.close();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}, [_vm._v("\n " + _vm._s(limit) + "\n ")]);
|
|
232
|
+
}), 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', {
|
|
233
|
+
class: ['layout-row', 'gap-md', 'shrink-0']
|
|
177
234
|
}, [_c('OrButton', {
|
|
178
235
|
class: _vm.itemStyles,
|
|
179
236
|
attrs: {
|
|
@@ -190,7 +247,7 @@ var __vue_render__ = function () {
|
|
|
190
247
|
attrs: {
|
|
191
248
|
"icon": 'keyboard_arrow_left'
|
|
192
249
|
}
|
|
193
|
-
})], 1), _vm._v(" "), _vm.isDesktop ?
|
|
250
|
+
})], 1), _vm._v(" "), _vm.isDesktop ? _vm._l(_vm.buttonGroup, function (page, index) {
|
|
194
251
|
return _c('OrButton', {
|
|
195
252
|
key: index,
|
|
196
253
|
class: _vm.itemStyles,
|
|
@@ -205,26 +262,8 @@ var __vue_render__ = function () {
|
|
|
205
262
|
}
|
|
206
263
|
}
|
|
207
264
|
}, [_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',
|
|
265
|
+
}) : _vm._e(), _vm._v(" "), _vm.isMobile ? [_c('OrButton', {
|
|
266
|
+
ref: 'offsetButton',
|
|
228
267
|
class: _vm.itemStyles,
|
|
229
268
|
attrs: {
|
|
230
269
|
"variant": 'link',
|
|
@@ -233,33 +272,34 @@ var __vue_render__ = function () {
|
|
|
233
272
|
},
|
|
234
273
|
on: {
|
|
235
274
|
"click": function ($event) {
|
|
236
|
-
_vm.
|
|
275
|
+
_vm.offsetMenu && _vm.offsetMenu.open();
|
|
237
276
|
}
|
|
238
277
|
}
|
|
239
|
-
}, [_vm._v("\n
|
|
278
|
+
}, [_vm._v("\n " + _vm._s(_vm.currentPage) + " "), _c('OrIcon', {
|
|
240
279
|
attrs: {
|
|
241
|
-
"icon": _vm.
|
|
280
|
+
"icon": _vm.offsetMenu && _vm.offsetMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
242
281
|
}
|
|
243
282
|
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
244
|
-
ref: '
|
|
283
|
+
ref: 'offsetMenu',
|
|
245
284
|
attrs: {
|
|
246
285
|
"additional-styles": ['min-w-[60px]'],
|
|
247
|
-
"trigger": _vm.
|
|
286
|
+
"trigger": _vm.offsetButtonRoot,
|
|
248
287
|
"placement": 'top'
|
|
249
288
|
}
|
|
250
|
-
}, _vm._l(_vm.
|
|
289
|
+
}, _vm._l(_vm.lastPage, function (page) {
|
|
251
290
|
return _c('OrMenuItem', {
|
|
252
|
-
key:
|
|
291
|
+
key: page,
|
|
292
|
+
attrs: {
|
|
293
|
+
"selected": _vm.currentPage === page
|
|
294
|
+
},
|
|
253
295
|
on: {
|
|
254
296
|
"click": function ($event) {
|
|
255
|
-
_vm.
|
|
256
|
-
_vm.
|
|
297
|
+
_vm.currentPage = page;
|
|
298
|
+
_vm.offsetMenu && _vm.offsetMenu.close();
|
|
257
299
|
}
|
|
258
300
|
}
|
|
259
|
-
}, [_vm._v("\n
|
|
260
|
-
}), 1)]
|
|
261
|
-
class: _vm.offsetControlStyles
|
|
262
|
-
}, [_c('OrButton', {
|
|
301
|
+
}, [_vm._v("\n " + _vm._s(page) + "\n ")]);
|
|
302
|
+
}), 1)] : _vm._e(), _vm._v(" "), _c('OrButton', {
|
|
263
303
|
class: _vm.itemStyles,
|
|
264
304
|
attrs: {
|
|
265
305
|
"variant": 'link',
|
|
@@ -275,7 +315,7 @@ var __vue_render__ = function () {
|
|
|
275
315
|
attrs: {
|
|
276
316
|
"icon": 'keyboard_arrow_right'
|
|
277
317
|
}
|
|
278
|
-
})], 1)],
|
|
318
|
+
})], 1)], 2)]);
|
|
279
319
|
};
|
|
280
320
|
var __vue_staticRenderFns__ = [];
|
|
281
321
|
|
|
@@ -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,20 @@ 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
|
+
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, {
|
|
19
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
+
} | string[], {} & {}, {
|
|
21
|
+
[x: number]: string;
|
|
22
|
+
} | {}, true> | undefined>;
|
|
23
|
+
offsetButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
24
|
+
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, {
|
|
25
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
26
|
+
} | string[], {} & {}, {
|
|
27
|
+
[x: number]: string;
|
|
28
|
+
} | {}, true> | undefined>;
|
|
29
|
+
offsetMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
20
30
|
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
21
|
-
|
|
31
|
+
model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
|
|
22
32
|
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
23
33
|
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
24
34
|
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
@@ -43,6 +53,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
43
53
|
type: PropType<number[]>;
|
|
44
54
|
default: () => number[];
|
|
45
55
|
};
|
|
56
|
+
features: {
|
|
57
|
+
type: PropType<PaginationFeatures>;
|
|
58
|
+
default: () => PaginationFeatures;
|
|
59
|
+
};
|
|
46
60
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
47
61
|
modelValue: {
|
|
48
62
|
type: PropType<PaginationModelValue>;
|
|
@@ -56,14 +70,20 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
56
70
|
type: PropType<number[]>;
|
|
57
71
|
default: () => number[];
|
|
58
72
|
};
|
|
73
|
+
features: {
|
|
74
|
+
type: PropType<PaginationFeatures>;
|
|
75
|
+
default: () => PaginationFeatures;
|
|
76
|
+
};
|
|
59
77
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
60
78
|
length: number;
|
|
61
79
|
modelValue: PaginationModelValue;
|
|
62
80
|
options: number[];
|
|
81
|
+
features: PaginationFeatures;
|
|
63
82
|
} & {} & {
|
|
64
83
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
84
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
66
85
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
86
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
67
87
|
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
88
|
[x: string]: ((...args: any[]) => any) | null;
|
|
69
89
|
} | string[], {} & {}, {
|
|
@@ -76,11 +96,20 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
76
96
|
[x: number]: string;
|
|
77
97
|
} | {}, true> | undefined>;
|
|
78
98
|
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
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, {
|
|
100
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
101
|
+
} | string[], {} & {}, {
|
|
102
|
+
[x: number]: string;
|
|
103
|
+
} | {}, true> | undefined>;
|
|
104
|
+
offsetButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
105
|
+
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, {
|
|
106
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
107
|
+
} | string[], {} & {}, {
|
|
108
|
+
[x: number]: string;
|
|
109
|
+
} | {}, true> | undefined>;
|
|
110
|
+
offsetMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
82
111
|
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
83
|
-
|
|
112
|
+
model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
|
|
84
113
|
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
85
114
|
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
86
115
|
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
@@ -96,10 +125,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
96
125
|
length: number;
|
|
97
126
|
modelValue: PaginationModelValue;
|
|
98
127
|
options: number[];
|
|
128
|
+
features: PaginationFeatures;
|
|
99
129
|
} & {} & {
|
|
100
130
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
101
131
|
}, {
|
|
102
132
|
modelValue: PaginationModelValue;
|
|
103
133
|
options: number[];
|
|
134
|
+
features: PaginationFeatures;
|
|
104
135
|
}, true>);
|
|
105
136
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Pagination = [
|
|
2
2
|
// Layout
|
|
3
3
|
'layout-row',
|
|
4
4
|
// Spacing
|
|
@@ -7,20 +7,10 @@ const PaginationRoot = [
|
|
|
7
7
|
'typography-caption-regular',
|
|
8
8
|
// Theme
|
|
9
9
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
10
|
-
const PaginationOffsetControl = [
|
|
11
|
-
// Layout
|
|
12
|
-
'layout-row',
|
|
13
|
-
// Spacing
|
|
14
|
-
'gap-md'];
|
|
15
|
-
const PaginationLimitControl = [
|
|
16
|
-
// Layout
|
|
17
|
-
'layout-row',
|
|
18
|
-
// Spacing
|
|
19
|
-
'gap-sm'];
|
|
20
10
|
const PaginationItem = [
|
|
21
11
|
// Typography
|
|
22
12
|
'typography-caption-regular',
|
|
23
13
|
// Typography (activated)
|
|
24
14
|
'activated:typography-caption-bold'];
|
|
25
15
|
|
|
26
|
-
export {
|
|
16
|
+
export { Pagination, PaginationItem };
|
|
@@ -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-0f6770b0.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';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { default as OrCombinedInputV3 } from './components/OrCombinedInputV3/OrC
|
|
|
18
18
|
export { default as OrConfirm } from './components/OrConfirm/OrConfirm.js';
|
|
19
19
|
export { default as OrConfirmV3 } from './components/OrConfirmV3/OrConfirm.js';
|
|
20
20
|
export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
|
|
21
|
-
export { D as DataGridVariant, _ as OrDataGridV3 } from './OrDataGrid-
|
|
21
|
+
export { D as DataGridVariant, _ as OrDataGridV3 } from './OrDataGrid-0f6770b0.js';
|
|
22
22
|
export { default as OrDateFormatV3 } from './components/OrDateFormatV3/OrDateFormat.js';
|
|
23
23
|
export { default as OrDatePickerV3 } from './components/OrDatePickerV3/OrDatePicker.js';
|
|
24
24
|
export { default as OrDateRangePickerV3 } from './components/OrDateRangePickerV3/OrDateRangePicker.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrDataGridV3-
|
|
1
|
+
export { s as default } from '../OrDataGridV3-53537045.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-
|
|
1
|
+
export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-53537045.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataGrid } from '../OrDataGridV3-
|
|
1
|
+
export { a as DataGrid } from '../OrDataGridV3-53537045.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-
|
|
5
|
+
import { s as script$g } from './OrPaginationV3-4576ee90.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-
|
|
1
|
+
export { s as default } from '../OrPaginationV3-4576ee90.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,23 @@ 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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
offsetButton: import("vue-demi").Ref<any>;
|
|
28
|
+
offsetButtonRoot: import("vue-demi").ComputedRef<any>;
|
|
29
|
+
offsetMenu: import("vue-demi").Ref<any>;
|
|
30
|
+
offsetMenuRoot: import("vue-demi").ComputedRef<any>;
|
|
25
31
|
itemStyles: import("vue-demi").ComputedRef<string[]>;
|
|
26
|
-
|
|
32
|
+
model: import("../../hooks").UseProxyModelValueReturn<PaginationModelValue>;
|
|
27
33
|
currentLimit: import("vue-demi").WritableComputedRef<number>;
|
|
28
34
|
currentOffset: import("vue-demi").WritableComputedRef<number>;
|
|
29
35
|
currentPage: import("vue-demi").WritableComputedRef<number>;
|
|
@@ -48,10 +54,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
48
54
|
type: PropType<number[]>;
|
|
49
55
|
default: () => number[];
|
|
50
56
|
};
|
|
57
|
+
features: {
|
|
58
|
+
type: PropType<PaginationFeatures>;
|
|
59
|
+
default: () => PaginationFeatures;
|
|
60
|
+
};
|
|
51
61
|
}>> & {
|
|
52
62
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
53
63
|
}, {
|
|
54
64
|
modelValue: PaginationModelValue;
|
|
55
65
|
options: number[];
|
|
66
|
+
features: PaginationFeatures;
|
|
56
67
|
}>;
|
|
57
68
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrPaginationV3 } from '../OrPaginationV3-
|
|
1
|
+
export { s as OrPaginationV3 } from '../OrPaginationV3-4576ee90.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { P as Pagination, a as PaginationItem } from '../OrPaginationV3-4576ee90.js';
|