@expcat/tigercat-vue 2.0.0-preview.6 → 2.0.0-rc.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/{chunk-N6GLO7U5.mjs → chunk-2LIIMWBR.mjs} +4 -6
- package/dist/{chunk-4JG6AG4W.mjs → chunk-IZRQ7LB3.mjs} +2 -6
- package/dist/{chunk-GIOEFFG6.mjs → chunk-KOG3HKOF.mjs} +2 -6
- package/dist/{chunk-2Y7W7IML.mjs → chunk-SUORTZUY.mjs} +1 -1
- package/dist/{chunk-JPKC5T4O.mjs → chunk-TK3QU367.mjs} +1 -1
- package/dist/components/DataTableWithToolbar.mjs +3 -3
- package/dist/components/List.mjs +2 -2
- package/dist/components/NotificationCenter.mjs +3 -3
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Table.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +0 -7
- package/package.json +2 -2
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
formatPaginationTotal,
|
|
24
24
|
getPaginationContainerClasses,
|
|
25
25
|
getPaginationButtonBaseClasses,
|
|
26
|
-
getPaginationButtonActiveClasses,
|
|
27
26
|
getPaginationEllipsisClasses,
|
|
28
27
|
getQuickJumperInputClasses,
|
|
29
28
|
getPageSizeSelectorClasses,
|
|
@@ -209,6 +208,9 @@ var Pagination = defineComponent({
|
|
|
209
208
|
default: void 0
|
|
210
209
|
}
|
|
211
210
|
},
|
|
211
|
+
// `change` fires on page navigation only; `page-size-change` fires on size
|
|
212
|
+
// changes and carries the resulting (clamped) page. A size change never also
|
|
213
|
+
// fires `change`, so consumers get exactly one event per interaction.
|
|
212
214
|
emits: ["update:current", "update:pageSize", "change", "page-size-change"],
|
|
213
215
|
setup(props, { emit, attrs }) {
|
|
214
216
|
const attrsRecord = attrs;
|
|
@@ -303,7 +305,6 @@ var Pagination = defineComponent({
|
|
|
303
305
|
emit("page-size-change", newPage, newPageSize);
|
|
304
306
|
if (newPage !== validatedCurrentPage.value) {
|
|
305
307
|
emit("update:current", newPage);
|
|
306
|
-
emit("change", newPage, newPageSize);
|
|
307
308
|
}
|
|
308
309
|
};
|
|
309
310
|
const handleQuickJumperSubmit = () => {
|
|
@@ -396,10 +397,7 @@ var Pagination = defineComponent({
|
|
|
396
397
|
"button",
|
|
397
398
|
{
|
|
398
399
|
type: "button",
|
|
399
|
-
class:
|
|
400
|
-
getPaginationButtonBaseClasses(size),
|
|
401
|
-
isActive && getPaginationButtonActiveClasses()
|
|
402
|
-
),
|
|
400
|
+
class: getPaginationButtonBaseClasses(size, isActive),
|
|
403
401
|
disabled: props.disabled,
|
|
404
402
|
onClick: () => handlePageChange(pageNum),
|
|
405
403
|
"aria-label": formatPageAriaLabel(
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-6BDDX2R4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Pagination
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2LIIMWBR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Empty
|
|
12
12
|
} from "./chunk-SJINC5NF.mjs";
|
|
@@ -1287,11 +1287,7 @@ function renderPagination(ctx, props, view) {
|
|
|
1287
1287
|
pageSizeOptions: normalizedPageSizeOptions,
|
|
1288
1288
|
locale,
|
|
1289
1289
|
labels: labelsOverride,
|
|
1290
|
-
onChange: (page
|
|
1291
|
-
if (pageSize === ctx.currentPageSize.value) {
|
|
1292
|
-
ctx.handlePageChange(page);
|
|
1293
|
-
}
|
|
1294
|
-
},
|
|
1290
|
+
onChange: (page) => ctx.handlePageChange(page),
|
|
1295
1291
|
onPageSizeChange: (_page, pageSize) => ctx.handlePageSizeChange(pageSize)
|
|
1296
1292
|
})
|
|
1297
1293
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Pagination
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2LIIMWBR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
VirtualList
|
|
6
6
|
} from "./chunk-HS4YQGZQ.mjs";
|
|
@@ -475,11 +475,7 @@ var List = defineComponent({
|
|
|
475
475
|
pageIndicatorText,
|
|
476
476
|
pageSizeOptions: paginationConfig.pageSizeOptions || [10, 20, 50, 100],
|
|
477
477
|
locale: mergedLocale.value,
|
|
478
|
-
onChange: (page
|
|
479
|
-
if (pageSize === currentPageSize.value) {
|
|
480
|
-
handlePageChange(page);
|
|
481
|
-
}
|
|
482
|
-
},
|
|
478
|
+
onChange: (page) => handlePageChange(page),
|
|
483
479
|
onPageSizeChange: (_page, pageSize) => handlePageSizeChange(pageSize)
|
|
484
480
|
})
|
|
485
481
|
]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataTableWithToolbar,
|
|
3
3
|
DataTableWithToolbar_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-TK3QU367.mjs";
|
|
5
|
+
import "../chunk-IZRQ7LB3.mjs";
|
|
6
6
|
import "../chunk-N7LWKAYS.mjs";
|
|
7
7
|
import "../chunk-SYRRMZT2.mjs";
|
|
8
8
|
import "../chunk-6BDDX2R4.mjs";
|
|
9
9
|
import "../chunk-6TTICJR4.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-2LIIMWBR.mjs";
|
|
11
11
|
import "../chunk-KE6RGD4Y.mjs";
|
|
12
12
|
import "../chunk-XLNK3Z2P.mjs";
|
|
13
13
|
import "../chunk-SJINC5NF.mjs";
|
package/dist/components/List.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
List,
|
|
3
3
|
List_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KOG3HKOF.mjs";
|
|
5
|
+
import "../chunk-2LIIMWBR.mjs";
|
|
6
6
|
import "../chunk-HS4YQGZQ.mjs";
|
|
7
7
|
import "../chunk-UOJOJBEU.mjs";
|
|
8
8
|
import "../chunk-TGXBCKOU.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NotificationCenter,
|
|
3
3
|
NotificationCenter_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SUORTZUY.mjs";
|
|
5
5
|
import "../chunk-U6OGGZBY.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-KOG3HKOF.mjs";
|
|
7
|
+
import "../chunk-2LIIMWBR.mjs";
|
|
8
8
|
import "../chunk-HS4YQGZQ.mjs";
|
|
9
9
|
import "../chunk-YZBQ6IR7.mjs";
|
|
10
10
|
import "../chunk-Z2ZECCGD.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Table,
|
|
3
3
|
Table_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IZRQ7LB3.mjs";
|
|
5
5
|
import "../chunk-N7LWKAYS.mjs";
|
|
6
6
|
import "../chunk-6BDDX2R4.mjs";
|
|
7
7
|
import "../chunk-6TTICJR4.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-2LIIMWBR.mjs";
|
|
9
9
|
import "../chunk-SJINC5NF.mjs";
|
|
10
10
|
import "../chunk-MYKKKVGK.mjs";
|
|
11
11
|
import "../chunk-P3VAY2IQ.mjs";
|
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1072,13 +1072,6 @@ export {
|
|
|
1072
1072
|
getSignatureCanvasDataUrl,
|
|
1073
1073
|
getSignatureCanvasWrapClasses,
|
|
1074
1074
|
getSignaturePoint,
|
|
1075
|
-
getSimplePaginationButtonClasses,
|
|
1076
|
-
getSimplePaginationButtonsWrapperClasses,
|
|
1077
|
-
getSimplePaginationContainerClasses,
|
|
1078
|
-
getSimplePaginationControlsClasses,
|
|
1079
|
-
getSimplePaginationPageIndicatorClasses,
|
|
1080
|
-
getSimplePaginationSelectClasses,
|
|
1081
|
-
getSimplePaginationTotalClasses,
|
|
1082
1075
|
getSizeTextClasses,
|
|
1083
1076
|
getSkeletonClasses,
|
|
1084
1077
|
getSkeletonDimensions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expcat/tigercat-vue",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "Vue 3 components for Tigercat UI library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yizhe Wang",
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
"access": "public"
|
|
784
784
|
},
|
|
785
785
|
"dependencies": {
|
|
786
|
-
"@expcat/tigercat-core": "2.0.0-
|
|
786
|
+
"@expcat/tigercat-core": "2.0.0-rc.1"
|
|
787
787
|
},
|
|
788
788
|
"devDependencies": {
|
|
789
789
|
"@types/node": "^22.20.0",
|