@onereach/ui-components 2.69.2-beta.2133.0 → 2.69.2-beta.2142.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/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
- package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-66d37aff.js} +14 -1
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-e1ca1422.js} +1 -1
- package/dist/bundled/v2/OrPagination-734cb415.js +297 -0
- package/dist/bundled/v2/{OrSelect-b20a9be0.js → OrSelect-ff9e4fbd.js} +3 -3
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +5 -4
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
- package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v2/index.js +6 -5
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
- package/dist/bundled/v3/OrButton-9640286b.js +34 -0
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-06d8ead1.js} +13 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-861158b5.js → OrCardCollection.vue_vue_type_script_lang-3993a015.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f1b81f00.js} +6 -36
- package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
- package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-d852d8af.js +180 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-05b03858.js} +3 -3
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +17 -14
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
- package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
- package/dist/bundled/v3/index.js +254 -177
- package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
- package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
- package/dist/esm/v2/{OrButton-357a5756.js → OrButton-3d4fc9da.js} +14 -1
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ba3f8c45.js} +1 -1
- package/dist/esm/v2/OrPagination-07246e59.js +297 -0
- package/dist/esm/v2/{OrSelect-f0ff5a85.js → OrSelect-651bb83e.js} +3 -3
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +5 -4
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
- package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v2/index.js +5 -4
- package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
- package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-970ae320.js} +15 -2
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-7cb2f36b.js} +1 -1
- package/dist/esm/v3/OrPagination-e1122a8e.js +258 -0
- package/dist/esm/v3/{OrSelect-7e813982.js → OrSelect-28a175dc.js} +3 -3
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +5 -4
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
- package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
- package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +3 -0
- package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
- package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
- package/dist/esm/v3/index.js +5 -4
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
- package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
- package/src/components/or-avatar-v3/props.ts +0 -1
- package/src/components/or-avatar-v3/styles.ts +11 -49
- package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
- package/src/components/or-button-v3/OrButton.vue +6 -0
- package/src/components/or-button-v3/styles.ts +15 -1
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
- package/src/components/or-pagination-v3/OrPagination.vue +261 -0
- package/src/components/or-pagination-v3/index.ts +2 -0
- package/src/components/or-pagination-v3/styles.ts +30 -0
- package/src/components/or-pagination-v3/types.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +3 -3
- package/src/components/or-select-v3/index.ts +1 -0
- package/src/components/or-select-v3/types.ts +1 -1
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { s as script$1 } from './OrButton-970ae320.js';
|
|
5
|
+
import { s as script$2 } from './OrIcon-b195169c.js';
|
|
6
|
+
import { s as script$4 } from './OrMenuItem-9da279f6.js';
|
|
7
|
+
import { s as script$3 } from './OrMenu-840038cd.js';
|
|
8
|
+
import './OrPopover-1075dd38.js';
|
|
9
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, createVNode, withModifiers, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from 'vue';
|
|
10
|
+
|
|
11
|
+
const PaginationRoot = [
|
|
12
|
+
// Layout
|
|
13
|
+
'layout-row',
|
|
14
|
+
// Spacing
|
|
15
|
+
'gap-xl',
|
|
16
|
+
// Typography
|
|
17
|
+
'typography-caption-regular',
|
|
18
|
+
// Theme
|
|
19
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
20
|
+
const PaginationOffsetControl = [
|
|
21
|
+
// Layout
|
|
22
|
+
'layout-row',
|
|
23
|
+
// Spacing
|
|
24
|
+
'gap-md'];
|
|
25
|
+
const PaginationLimitControl = [
|
|
26
|
+
// Layout
|
|
27
|
+
'layout-row',
|
|
28
|
+
// Spacing
|
|
29
|
+
'gap-sm'];
|
|
30
|
+
|
|
31
|
+
var script = defineComponent({
|
|
32
|
+
name: 'OrPagination',
|
|
33
|
+
components: {
|
|
34
|
+
OrButton: script$1,
|
|
35
|
+
OrIcon: script$2,
|
|
36
|
+
OrMenu: script$3,
|
|
37
|
+
OrMenuItem: script$4
|
|
38
|
+
},
|
|
39
|
+
inheritAttrs: false,
|
|
40
|
+
props: {
|
|
41
|
+
modelValue: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default: undefined
|
|
44
|
+
},
|
|
45
|
+
value: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: undefined
|
|
48
|
+
},
|
|
49
|
+
length: {
|
|
50
|
+
type: Number,
|
|
51
|
+
required: true
|
|
52
|
+
},
|
|
53
|
+
pageSizeOptions: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: () => [50, 20, 10, 5]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
emits: ['update:modelValue', 'input'],
|
|
59
|
+
expose: ['root'],
|
|
60
|
+
setup(props, context) {
|
|
61
|
+
// Refs
|
|
62
|
+
const root = ref();
|
|
63
|
+
const limitButton = ref();
|
|
64
|
+
const limitButtonRoot = computed(() => {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
67
|
+
});
|
|
68
|
+
const limitMenu = ref();
|
|
69
|
+
const limitMenuRoot = computed(() => {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
72
|
+
});
|
|
73
|
+
// Styles
|
|
74
|
+
const classAttribute = useClassAttribute();
|
|
75
|
+
const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
|
|
76
|
+
const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
|
|
77
|
+
const limitControlStyles = computed(() => [...PaginationLimitControl]);
|
|
78
|
+
// State
|
|
79
|
+
const proxyModelValue = computed({
|
|
80
|
+
get: () => {
|
|
81
|
+
var _a;
|
|
82
|
+
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
set: value => {
|
|
86
|
+
context.emit('input', value);
|
|
87
|
+
context.emit('update:modelValue', value);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
const currentLimit = computed({
|
|
91
|
+
get: () => {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
|
|
94
|
+
},
|
|
95
|
+
set: value => {
|
|
96
|
+
proxyModelValue.value = {
|
|
97
|
+
limit: value,
|
|
98
|
+
offset: 0
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const currentOffset = computed({
|
|
103
|
+
get: () => {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
|
|
106
|
+
},
|
|
107
|
+
set: value => {
|
|
108
|
+
proxyModelValue.value = {
|
|
109
|
+
limit: currentLimit.value,
|
|
110
|
+
offset: value
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
const currentPage = computed({
|
|
115
|
+
get: () => {
|
|
116
|
+
return Math.floor(currentOffset.value / currentLimit.value) + 1;
|
|
117
|
+
},
|
|
118
|
+
set: value => {
|
|
119
|
+
currentOffset.value = (value - 1) * currentLimit.value;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
const firstPage = computed(() => {
|
|
123
|
+
return 1;
|
|
124
|
+
});
|
|
125
|
+
const lastPage = computed(() => {
|
|
126
|
+
return Math.ceil(props.length / currentLimit.value);
|
|
127
|
+
});
|
|
128
|
+
const buttonGroup = computed(() => {
|
|
129
|
+
return Array.from({
|
|
130
|
+
length: lastPage.value
|
|
131
|
+
}, (_, index) => index + 1).map(page => {
|
|
132
|
+
switch (true) {
|
|
133
|
+
case page > firstPage.value && page < currentPage.value - 1:
|
|
134
|
+
case page > currentPage.value + 1 && page < lastPage.value:
|
|
135
|
+
return '…';
|
|
136
|
+
default:
|
|
137
|
+
return page;
|
|
138
|
+
}
|
|
139
|
+
}).reduce((accumulator, page) => {
|
|
140
|
+
if (accumulator[accumulator.length - 1] === page) {
|
|
141
|
+
return accumulator;
|
|
142
|
+
}
|
|
143
|
+
return [...accumulator, page];
|
|
144
|
+
}, []);
|
|
145
|
+
});
|
|
146
|
+
// Functions
|
|
147
|
+
function toPreviousPage() {
|
|
148
|
+
currentPage.value = currentPage.value - 1;
|
|
149
|
+
}
|
|
150
|
+
function toNextPage() {
|
|
151
|
+
currentPage.value = currentPage.value + 1;
|
|
152
|
+
}
|
|
153
|
+
function toPage(page) {
|
|
154
|
+
currentPage.value = page;
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
root,
|
|
158
|
+
limitButton,
|
|
159
|
+
limitButtonRoot,
|
|
160
|
+
limitMenu,
|
|
161
|
+
limitMenuRoot,
|
|
162
|
+
rootStyles,
|
|
163
|
+
offsetControlStyles,
|
|
164
|
+
limitControlStyles,
|
|
165
|
+
proxyModelValue,
|
|
166
|
+
currentLimit,
|
|
167
|
+
currentOffset,
|
|
168
|
+
currentPage,
|
|
169
|
+
firstPage,
|
|
170
|
+
lastPage,
|
|
171
|
+
buttonGroup,
|
|
172
|
+
toPreviousPage,
|
|
173
|
+
toNextPage,
|
|
174
|
+
toPage
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
180
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
181
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
182
|
+
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
183
|
+
const _component_OrMenu = resolveComponent("OrMenu");
|
|
184
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
185
|
+
ref: "root"
|
|
186
|
+
}, _ctx.$attrs, {
|
|
187
|
+
class: _ctx.rootStyles
|
|
188
|
+
}), [createElementVNode("div", {
|
|
189
|
+
class: normalizeClass(_ctx.offsetControlStyles)
|
|
190
|
+
}, [createVNode(_component_OrButton, {
|
|
191
|
+
variant: 'link',
|
|
192
|
+
color: 'inherit',
|
|
193
|
+
disabled: _ctx.currentPage === _ctx.firstPage,
|
|
194
|
+
onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toPreviousPage(), ["stop"]))
|
|
195
|
+
}, {
|
|
196
|
+
default: withCtx(() => [createVNode(_component_OrIcon, {
|
|
197
|
+
icon: 'keyboard_arrow_left'
|
|
198
|
+
})]),
|
|
199
|
+
_: 1 /* STABLE */
|
|
200
|
+
}, 8 /* PROPS */, ["disabled"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonGroup, (page, index) => {
|
|
201
|
+
return openBlock(), createBlock(_component_OrButton, {
|
|
202
|
+
key: index,
|
|
203
|
+
variant: 'link',
|
|
204
|
+
color: 'inherit',
|
|
205
|
+
activated: _ctx.currentPage === page,
|
|
206
|
+
onClick: withModifiers($event => typeof page === 'number' && _ctx.toPage(page), ["stop"])
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [createTextVNode(toDisplayString(page), 1 /* TEXT */)]),
|
|
209
|
+
|
|
210
|
+
_: 2 /* DYNAMIC */
|
|
211
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["activated", "onClick"]);
|
|
212
|
+
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_OrButton, {
|
|
213
|
+
variant: 'link',
|
|
214
|
+
color: 'inherit',
|
|
215
|
+
disabled: _ctx.currentPage === _ctx.lastPage,
|
|
216
|
+
onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.toNextPage(), ["stop"]))
|
|
217
|
+
}, {
|
|
218
|
+
default: withCtx(() => [createVNode(_component_OrIcon, {
|
|
219
|
+
icon: 'keyboard_arrow_right'
|
|
220
|
+
})]),
|
|
221
|
+
_: 1 /* STABLE */
|
|
222
|
+
}, 8 /* PROPS */, ["disabled"])], 2 /* CLASS */), createElementVNode("div", {
|
|
223
|
+
class: normalizeClass(_ctx.limitControlStyles)
|
|
224
|
+
}, [createTextVNode(" Per page: "), createVNode(_component_OrButton, {
|
|
225
|
+
ref: "limitButton",
|
|
226
|
+
variant: 'link',
|
|
227
|
+
color: 'inherit',
|
|
228
|
+
activated: true,
|
|
229
|
+
onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.limitMenu.open(), ["stop"]))
|
|
230
|
+
}, {
|
|
231
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
|
|
232
|
+
icon: 'arrow_drop_down'
|
|
233
|
+
})]),
|
|
234
|
+
_: 1 /* STABLE */
|
|
235
|
+
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
236
|
+
ref: "limitMenu",
|
|
237
|
+
trigger: _ctx.limitButtonRoot,
|
|
238
|
+
placement: 'top'
|
|
239
|
+
}, {
|
|
240
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pageSizeOptions, pageSize => {
|
|
241
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
242
|
+
key: pageSize,
|
|
243
|
+
onClick: withModifiers($event => _ctx.currentLimit = pageSize, ["stop"])
|
|
244
|
+
}, {
|
|
245
|
+
default: withCtx(() => [createTextVNode(toDisplayString(pageSize), 1 /* TEXT */)]),
|
|
246
|
+
|
|
247
|
+
_: 2 /* DYNAMIC */
|
|
248
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
249
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
250
|
+
|
|
251
|
+
_: 1 /* STABLE */
|
|
252
|
+
}, 8 /* PROPS */, ["trigger"])], 2 /* CLASS */)], 16 /* FULL_PROPS */);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
script.render = render;
|
|
256
|
+
script.__file = "src/components/or-pagination-v3/OrPagination.vue";
|
|
257
|
+
|
|
258
|
+
export { script as s };
|
|
@@ -82,11 +82,11 @@ var script = defineComponent({
|
|
|
82
82
|
default: []
|
|
83
83
|
},
|
|
84
84
|
modelValue: {
|
|
85
|
-
type: [String, Array],
|
|
85
|
+
type: [String, Number, Array],
|
|
86
86
|
default: undefined
|
|
87
87
|
},
|
|
88
88
|
value: {
|
|
89
|
-
type: [String, Array],
|
|
89
|
+
type: [String, Number, Array],
|
|
90
90
|
default: undefined
|
|
91
91
|
},
|
|
92
92
|
multiple: {
|
|
@@ -335,7 +335,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
335
335
|
disabled: _ctx.disabled,
|
|
336
336
|
onFocus: _cache[0] || (_cache[0] = $event => _ctx.$emit('focus', $event)),
|
|
337
337
|
onBlur: _cache[1] || (_cache[1] = $event => _ctx.$emit('blur', $event))
|
|
338
|
-
}, [_ctx.proxyModelValue
|
|
338
|
+
}, [_ctx.proxyModelValue !== undefined ? (openBlock(), createElementBlock(Fragment, {
|
|
339
339
|
key: 0
|
|
340
340
|
}, [_ctx.multiple ? renderSlot(_ctx.$slots, "valueTemplate", {
|
|
341
341
|
key: 0,
|
|
@@ -52,6 +52,7 @@ export * from './or-notification-v3';
|
|
|
52
52
|
export * from './or-overflow-menu';
|
|
53
53
|
export * from './or-overlay';
|
|
54
54
|
export * from './or-overlay-v3';
|
|
55
|
+
export * from './or-pagination-v3';
|
|
55
56
|
export * from './or-popover-v3';
|
|
56
57
|
export * from './or-progress';
|
|
57
58
|
export * from './or-progress-v3';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from '../OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-ef88d31c.js';
|
|
3
3
|
export { s as OrBottomSheetV3 } from '../OrBottomSheet-62817aec.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from '../OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-970ae320.js';
|
|
7
7
|
export { s as OrCard } from '../OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-a5e326ef.js';
|
|
9
9
|
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection-5a0febaf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-ee19a5e6.js';
|
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-7cb2f36b.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-98252eef.js';
|
|
@@ -53,6 +53,7 @@ export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotificati
|
|
|
53
53
|
export { s as OrOverflowMenu } from '../OrOverflowMenu-e82cbcbe.js';
|
|
54
54
|
export { s as OrOverlay } from '../OrOverlay-451dce49.js';
|
|
55
55
|
export { s as OrOverlayV3 } from '../OrOverlay-738a44d5.js';
|
|
56
|
+
export { s as OrPaginationV3 } from '../OrPagination-e1122a8e.js';
|
|
56
57
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress-d0d52c86.js';
|
|
57
58
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-407002e0.js';
|
|
58
59
|
export { s as OrRadio } from '../OrRadio-c3ab11f2.js';
|
|
@@ -61,7 +62,7 @@ export { s as OrRadioV3 } from '../OrRadio-54b6d0de.js';
|
|
|
61
62
|
export { s as OrSearchV3 } from '../OrSearch-cdde55ce.js';
|
|
62
63
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
|
|
63
64
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
65
|
+
export { s as OrSelectV3 } from '../OrSelect-28a175dc.js';
|
|
65
66
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
66
67
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
67
68
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -20,7 +20,7 @@ export declare const WithTextInSlot: StoryFn<import("vue").ComponentOptions<impo
|
|
|
20
20
|
} | string[], {} & {}, {
|
|
21
21
|
[x: number]: string;
|
|
22
22
|
} | {}, true>)>;
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const WithIconInSlot: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
24
|
[x: string]: ((...args: any[]) => any) | null;
|
|
25
25
|
} | string[], {} & {}, {
|
|
26
26
|
[x: number]: string;
|
|
@@ -13,10 +13,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
13
13
|
type: PropType<AvatarSize>;
|
|
14
14
|
default: AvatarSize;
|
|
15
15
|
};
|
|
16
|
-
icon: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: undefined;
|
|
19
|
-
};
|
|
20
16
|
color: {
|
|
21
17
|
type: PropType<AvatarColor>;
|
|
22
18
|
default: AvatarColor;
|
|
@@ -36,10 +32,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
36
32
|
type: PropType<AvatarSize>;
|
|
37
33
|
default: AvatarSize;
|
|
38
34
|
};
|
|
39
|
-
icon: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: undefined;
|
|
42
|
-
};
|
|
43
35
|
color: {
|
|
44
36
|
type: PropType<AvatarColor>;
|
|
45
37
|
default: AvatarColor;
|
|
@@ -53,7 +45,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
53
45
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
54
46
|
src: string;
|
|
55
47
|
size: AvatarSize;
|
|
56
|
-
icon: string;
|
|
57
48
|
color: AvatarColor;
|
|
58
49
|
colorSalt: string;
|
|
59
50
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -63,13 +54,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
63
54
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
64
55
|
src: string;
|
|
65
56
|
size: AvatarSize;
|
|
66
|
-
icon: string;
|
|
67
57
|
color: AvatarColor;
|
|
68
58
|
colorSalt: string;
|
|
69
59
|
} & {}, {
|
|
70
60
|
src: string;
|
|
71
61
|
size: AvatarSize;
|
|
72
|
-
icon: string;
|
|
73
62
|
color: AvatarColor;
|
|
74
63
|
colorSalt: string;
|
|
75
64
|
}, true>);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-ef88d31c.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../color-1f348774.js';
|
|
6
|
-
import '../../OrIcon-b195169c.js';
|
|
7
6
|
import 'vue';
|
|
@@ -3,5 +3,3 @@ export declare const AvatarRoot: string[];
|
|
|
3
3
|
export declare const AvatarImage: string[];
|
|
4
4
|
export declare const AvatarRootSizes: Record<AvatarSize, string[]>;
|
|
5
5
|
export declare const AvatarRootColors: Record<AvatarColor, string[]>;
|
|
6
|
-
export declare const AvatarRootAbbreviationSizes: Record<AvatarSize, string[]>;
|
|
7
|
-
export declare const AvatarRootIconSizes: Record<AvatarSize, string[]>;
|
|
@@ -16,6 +16,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
16
16
|
type: PropType<ButtonColor>;
|
|
17
17
|
default: ButtonColor;
|
|
18
18
|
};
|
|
19
|
+
activated: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
19
23
|
disabled: {
|
|
20
24
|
type: BooleanConstructor;
|
|
21
25
|
default: boolean;
|
|
@@ -41,6 +45,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
41
45
|
type: PropType<ButtonColor>;
|
|
42
46
|
default: ButtonColor;
|
|
43
47
|
};
|
|
48
|
+
activated: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
44
52
|
disabled: {
|
|
45
53
|
type: BooleanConstructor;
|
|
46
54
|
default: boolean;
|
|
@@ -54,6 +62,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
54
62
|
default: string;
|
|
55
63
|
};
|
|
56
64
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
65
|
+
activated: boolean;
|
|
57
66
|
type: ButtonType;
|
|
58
67
|
variant: ButtonVariant;
|
|
59
68
|
color: ButtonColor;
|
|
@@ -66,6 +75,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
66
75
|
root: import("@vue/composition-api").Ref<HTMLButtonElement | undefined>;
|
|
67
76
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | false | undefined)[]>;
|
|
68
77
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
78
|
+
activated: boolean;
|
|
69
79
|
type: ButtonType;
|
|
70
80
|
variant: ButtonVariant;
|
|
71
81
|
color: ButtonColor;
|
|
@@ -75,6 +85,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
75
85
|
} & {} & {
|
|
76
86
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
77
87
|
}, {
|
|
88
|
+
activated: boolean;
|
|
78
89
|
type: ButtonType;
|
|
79
90
|
variant: ButtonVariant;
|
|
80
91
|
color: ButtonColor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton-
|
|
1
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton-970ae320.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-7cb2f36b.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '../../OrButton-
|
|
3
|
+
import '../../OrButton-970ae320.js';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '../../OrLoader-b3cf4231.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
+
} | string[], {} & {}, {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
} | {}, true>)>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
+
} | string[], {} & {}, {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { PaginationModel } from './types';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
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
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
+
} | string[], {} & {}, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}, true> | undefined>;
|
|
10
|
+
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
11
|
+
limitMenu: 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, {
|
|
12
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
13
|
+
} | string[], {} & {}, {
|
|
14
|
+
[x: number]: string;
|
|
15
|
+
} | {}, true> | undefined>;
|
|
16
|
+
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
17
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
18
|
+
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
|
+
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
21
|
+
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
22
|
+
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
23
|
+
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
24
|
+
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
25
|
+
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
26
|
+
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
27
|
+
toPreviousPage: () => void;
|
|
28
|
+
toNextPage: () => void;
|
|
29
|
+
toPage: (page: number) => void;
|
|
30
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: PropType<PaginationModel>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
type: PropType<PaginationModel>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
length: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
pageSizeOptions: {
|
|
44
|
+
type: PropType<number[]>;
|
|
45
|
+
default: () => number[];
|
|
46
|
+
};
|
|
47
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: PropType<PaginationModel>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
value: {
|
|
53
|
+
type: PropType<PaginationModel>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
length: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
pageSizeOptions: {
|
|
61
|
+
type: PropType<number[]>;
|
|
62
|
+
default: () => number[];
|
|
63
|
+
};
|
|
64
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
65
|
+
length: number;
|
|
66
|
+
modelValue: PaginationModel;
|
|
67
|
+
value: PaginationModel;
|
|
68
|
+
pageSizeOptions: number[];
|
|
69
|
+
} & {} & {
|
|
70
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
72
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
73
|
+
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, {
|
|
74
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
75
|
+
} | string[], {} & {}, {
|
|
76
|
+
[x: number]: string;
|
|
77
|
+
} | {}, true> | undefined>;
|
|
78
|
+
limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
79
|
+
limitMenu: 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, {
|
|
80
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
81
|
+
} | string[], {} & {}, {
|
|
82
|
+
[x: number]: string;
|
|
83
|
+
} | {}, true> | undefined>;
|
|
84
|
+
limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
85
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
86
|
+
offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
87
|
+
limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
88
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
|
|
89
|
+
currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
|
|
90
|
+
currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
|
|
91
|
+
currentPage: import("@vue/composition-api").WritableComputedRef<number>;
|
|
92
|
+
firstPage: import("@vue/composition-api").ComputedRef<number>;
|
|
93
|
+
lastPage: import("@vue/composition-api").ComputedRef<number>;
|
|
94
|
+
buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
|
|
95
|
+
toPreviousPage: () => void;
|
|
96
|
+
toNextPage: () => void;
|
|
97
|
+
toPage: (page: number) => void;
|
|
98
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
99
|
+
length: number;
|
|
100
|
+
modelValue: PaginationModel;
|
|
101
|
+
value: PaginationModel;
|
|
102
|
+
pageSizeOptions: number[];
|
|
103
|
+
} & {} & {
|
|
104
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
modelValue: PaginationModel;
|
|
107
|
+
value: PaginationModel;
|
|
108
|
+
pageSizeOptions: number[];
|
|
109
|
+
}, true>);
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { s as OrPaginationV3 } from '../../OrPagination-e1122a8e.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '../../useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import '../../OrButton-970ae320.js';
|
|
6
|
+
import '../../OrLoader-b3cf4231.js';
|
|
7
|
+
import 'vue';
|
|
8
|
+
import '../../OrIcon-b195169c.js';
|
|
9
|
+
import '../../OrMenuItem-9da279f6.js';
|
|
10
|
+
import '../../OrMenu-840038cd.js';
|
|
11
|
+
import '../../OrPopover-1075dd38.js';
|
|
12
|
+
import '@floating-ui/dom';
|
|
13
|
+
import '../../useElevation-31bfe1f6.js';
|
|
14
|
+
import '../../useResponsive-a02e95b7.js';
|
|
15
|
+
import '../../OrBottomSheet-62817aec.js';
|
|
16
|
+
import '../../OrOverlay-738a44d5.js';
|
|
17
|
+
import '../../OrTeleport.vue3-8099178c.js';
|