@uzum-tech/ui 2.2.0 → 2.2.1
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/index.js +9 -1
- package/dist/index.mjs +9 -1
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/components.d.ts +4 -0
- package/es/pagination/src/Pagination.d.ts +4 -0
- package/es/pagination/src/Pagination.mjs +8 -0
- package/es/pagination/src/interface.d.ts +2 -0
- package/es/pagination/src/interface.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/components.d.ts +4 -0
- package/lib/pagination/src/Pagination.d.ts +4 -0
- package/lib/pagination/src/Pagination.js +6 -0
- package/lib/pagination/src/interface.d.ts +2 -0
- package/lib/pagination/src/interface.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/web-types.json +15 -1
package/dist/index.js
CHANGED
|
@@ -65390,6 +65390,8 @@
|
|
|
65390
65390
|
onUpdatePage: [Function, Array],
|
|
65391
65391
|
"onUpdate:pageSize": [Function, Array],
|
|
65392
65392
|
onUpdatePageSize: [Function, Array],
|
|
65393
|
+
onPrev: [Function, Array],
|
|
65394
|
+
onNext: [Function, Array],
|
|
65393
65395
|
/** @deprecated */
|
|
65394
65396
|
onPageSizeChange: [Function, Array],
|
|
65395
65397
|
/** @deprecated */
|
|
@@ -66185,12 +66187,18 @@
|
|
|
66185
66187
|
if (props.disabled || !mergedHasNextRef.value)
|
|
66186
66188
|
return;
|
|
66187
66189
|
const page = props.hasNext === void 0 ? Math.min(mergedPageRef.value + 1, mergedPageCountRef.value) : mergedPageRef.value + 1;
|
|
66190
|
+
const { onNext } = props;
|
|
66191
|
+
if (onNext)
|
|
66192
|
+
call(onNext, page);
|
|
66188
66193
|
doUpdatePage(page);
|
|
66189
66194
|
}
|
|
66190
66195
|
function backward() {
|
|
66191
66196
|
if (props.disabled || !mergedHasPrevRef.value)
|
|
66192
66197
|
return;
|
|
66193
66198
|
const page = Math.max(mergedPageRef.value - 1, 1);
|
|
66199
|
+
const { onPrev } = props;
|
|
66200
|
+
if (onPrev)
|
|
66201
|
+
call(onPrev, page);
|
|
66194
66202
|
doUpdatePage(page);
|
|
66195
66203
|
}
|
|
66196
66204
|
function fastForward() {
|
|
@@ -116365,7 +116373,7 @@ ${icon.label}`.toLowerCase()
|
|
|
116365
116373
|
});
|
|
116366
116374
|
}
|
|
116367
116375
|
|
|
116368
|
-
var version = "2.2.
|
|
116376
|
+
var version = "2.2.1";
|
|
116369
116377
|
|
|
116370
116378
|
function create({
|
|
116371
116379
|
componentPrefix = "U",
|
package/dist/index.mjs
CHANGED
|
@@ -65386,6 +65386,8 @@ const paginationProps = {
|
|
|
65386
65386
|
onUpdatePage: [Function, Array],
|
|
65387
65387
|
"onUpdate:pageSize": [Function, Array],
|
|
65388
65388
|
onUpdatePageSize: [Function, Array],
|
|
65389
|
+
onPrev: [Function, Array],
|
|
65390
|
+
onNext: [Function, Array],
|
|
65389
65391
|
/** @deprecated */
|
|
65390
65392
|
onPageSizeChange: [Function, Array],
|
|
65391
65393
|
/** @deprecated */
|
|
@@ -66181,12 +66183,18 @@ var _UPagination = defineComponent({
|
|
|
66181
66183
|
if (props.disabled || !mergedHasNextRef.value)
|
|
66182
66184
|
return;
|
|
66183
66185
|
const page = props.hasNext === void 0 ? Math.min(mergedPageRef.value + 1, mergedPageCountRef.value) : mergedPageRef.value + 1;
|
|
66186
|
+
const { onNext } = props;
|
|
66187
|
+
if (onNext)
|
|
66188
|
+
call(onNext, page);
|
|
66184
66189
|
doUpdatePage(page);
|
|
66185
66190
|
}
|
|
66186
66191
|
function backward() {
|
|
66187
66192
|
if (props.disabled || !mergedHasPrevRef.value)
|
|
66188
66193
|
return;
|
|
66189
66194
|
const page = Math.max(mergedPageRef.value - 1, 1);
|
|
66195
|
+
const { onPrev } = props;
|
|
66196
|
+
if (onPrev)
|
|
66197
|
+
call(onPrev, page);
|
|
66190
66198
|
doUpdatePage(page);
|
|
66191
66199
|
}
|
|
66192
66200
|
function fastForward() {
|
|
@@ -116361,7 +116369,7 @@ function useThemeVars() {
|
|
|
116361
116369
|
});
|
|
116362
116370
|
}
|
|
116363
116371
|
|
|
116364
|
-
var version = "2.2.
|
|
116372
|
+
var version = "2.2.1";
|
|
116365
116373
|
|
|
116366
116374
|
function create({
|
|
116367
116375
|
componentPrefix = "U",
|