@superblocksteam/library 2.0.0-next.39 → 2.0.0-next.40
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/{allPaths-C47LrTbh.js → allPaths-Bj6thg9f.js} +2 -2
- package/dist/{allPaths-C47LrTbh.js.map → allPaths-Bj6thg9f.js.map} +1 -1
- package/dist/{allPaths-DYy0fkDX.js → allPaths-Cv0KigTj.js} +2 -2
- package/dist/{allPaths-DYy0fkDX.js.map → allPaths-Cv0KigTj.js.map} +1 -1
- package/dist/{allPathsLoader-BTLo3hEI.js → allPathsLoader-AuVCeQbD.js} +3 -3
- package/dist/{allPathsLoader-BTLo3hEI.js.map → allPathsLoader-AuVCeQbD.js.map} +1 -1
- package/dist/{allPathsLoader-ECeH1kwp.js → allPathsLoader-DzJ5WE4I.js} +3 -3
- package/dist/{allPathsLoader-ECeH1kwp.js.map → allPathsLoader-DzJ5WE4I.js.map} +1 -1
- package/dist/{index-DAxw-Mz5.js → index-sY8OAGZZ.js} +208 -195
- package/dist/{index-DAxw-Mz5.js.map → index-sY8OAGZZ.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-BaVxbR-T.js → splitPathsBySizeLoader-B9VbwPK4.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BaVxbR-T.js.map → splitPathsBySizeLoader-B9VbwPK4.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-ClT0eYSZ.js → splitPathsBySizeLoader-CFT4USmT.js} +2 -2
- package/dist/{splitPathsBySizeLoader-ClT0eYSZ.js.map → splitPathsBySizeLoader-CFT4USmT.js.map} +1 -1
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +3 -4
- package/dist-types/lib/user-facing/components/table/props.d.ts +4 -6
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/types.d.ts +2 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as clientExports } from "./index-
|
|
2
|
-
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-
|
|
1
|
+
import { V as clientExports } from "./index-sY8OAGZZ.js";
|
|
2
|
+
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-sY8OAGZZ.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
W as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-sY8OAGZZ.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-B9VbwPK4.js.map
|
package/dist/{splitPathsBySizeLoader-BaVxbR-T.js.map → splitPathsBySizeLoader-B9VbwPK4.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-B9VbwPK4.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-sY8OAGZZ.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-CFT4USmT.js.map
|
package/dist/{splitPathsBySizeLoader-ClT0eYSZ.js.map → splitPathsBySizeLoader-CFT4USmT.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-CFT4USmT.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InsertRowOptions, TableSizes } from "../constants.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PaginationType, ReactTableColumnProps } from "../types.js";
|
|
4
4
|
import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TableFooterProps {
|
|
6
6
|
columns: ReactTableColumnProps[];
|
|
@@ -10,7 +10,7 @@ interface TableFooterProps {
|
|
|
10
10
|
prevPageClick: () => void;
|
|
11
11
|
pageNo: number;
|
|
12
12
|
pageCount: number;
|
|
13
|
-
|
|
13
|
+
paginationType: PaginationType;
|
|
14
14
|
tableColumns: ReactTableColumnProps[];
|
|
15
15
|
tableData: Array<Record<string, unknown>>;
|
|
16
16
|
filteredOrderMap: number[] | undefined;
|
|
@@ -36,5 +36,5 @@ interface TableFooterProps {
|
|
|
36
36
|
borderColor: string;
|
|
37
37
|
theme: UserAccessibleTheme;
|
|
38
38
|
}
|
|
39
|
-
declare const TableFooter: ({ count, currentPageIndex, nextPageClick, prevPageClick, pageNo, pageCount,
|
|
39
|
+
declare const TableFooter: ({ count, currentPageIndex, nextPageClick, prevPageClick, pageNo, pageCount, paginationType, tableColumns, tableData, filteredOrderMap, header, tableSizes, borderColor, updatePageNo, isDownloadable, multiRowSelection, selectedRowIndices, widgetName, numEdits, numEditErrors, validationMessages, onEditSave, onEditCancel, onRowInsertion, onRowDeletion, isInsertionEnabled, isDeletionEnabled, isSaving, selectedRowIndex, tableCellTextStyle, theme, }: TableFooterProps) => React.JSX.Element;
|
|
40
40
|
export default TableFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableSizes } from "../constants.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PaginationType } from "../types.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TablePaginationProps {
|
|
6
6
|
updatePageNo: (pageNo: number) => void;
|
|
@@ -9,10 +9,10 @@ interface TablePaginationProps {
|
|
|
9
9
|
count: number;
|
|
10
10
|
pageNo: number;
|
|
11
11
|
pageCount: number;
|
|
12
|
-
|
|
12
|
+
paginationType: PaginationType;
|
|
13
13
|
currentPageIndex: number;
|
|
14
14
|
tableSizes: TableSizes;
|
|
15
15
|
theme: UserAccessibleTheme;
|
|
16
16
|
}
|
|
17
|
-
declare const TablePagination: ({ currentPageIndex, nextPageClick, prevPageClick, pageCount, pageNo,
|
|
17
|
+
declare const TablePagination: ({ currentPageIndex, nextPageClick, prevPageClick, pageCount, pageNo, paginationType, updatePageNo, tableSizes, theme, }: TablePaginationProps) => React.JSX.Element | null;
|
|
18
18
|
export default TablePagination;
|
|
@@ -10,7 +10,6 @@ export declare function getEditedRows(props: any): {
|
|
|
10
10
|
originalRows: any[];
|
|
11
11
|
};
|
|
12
12
|
export declare function getAllEdits(props: any): any;
|
|
13
|
-
export declare function getPageSize(props: any): any;
|
|
14
13
|
export declare function getFilteredTableData(props: any): any[];
|
|
15
14
|
export declare function getEditedRowIndices(props: any): {
|
|
16
15
|
deletedRows: {
|
|
@@ -199,8 +199,8 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
199
199
|
multiRowSelection: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
200
200
|
isSearchable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
201
201
|
isDownloadable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
202
|
-
|
|
203
|
-
configuredPageSize: import("../../properties-panel/props-builder.js").Prop<
|
|
202
|
+
paginationType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").PaginationType, true>;
|
|
203
|
+
configuredPageSize: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
204
204
|
defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
205
205
|
column: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
206
206
|
asc: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -241,19 +241,18 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
241
241
|
selectedRow: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
242
242
|
selectedRowSchema: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
243
243
|
selectedRows: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
244
|
-
pageSize: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
245
244
|
filteredTableData: import("../../properties-panel/props-builder.js").Prop<any[], true>;
|
|
246
245
|
filteredOrderMap: import("../../properties-panel/props-builder.js").Prop<number[], true>;
|
|
247
246
|
}>;
|
|
248
247
|
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
249
248
|
selectedRowIndex: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
250
249
|
selectedRowIndices: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
251
|
-
pageNo: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
252
250
|
sortedColumn: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
253
251
|
searchText: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
254
252
|
filters: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
255
253
|
hiddenColumns: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
256
254
|
columnFreezes: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
257
255
|
tagsColorAssignment: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
256
|
+
pageNo: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
258
257
|
}>;
|
|
259
258
|
}>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
|
-
import { PaginationTypes } from "./types.js";
|
|
3
2
|
import { CompactMode } from "./types.js";
|
|
4
|
-
import type { UnknownRow } from "./types.js";
|
|
3
|
+
import type { UnknownRow, PaginationType } from "./types.js";
|
|
5
4
|
export declare const propertiesDefinition: {
|
|
6
5
|
general: Section<Record<string, Prop<any, any>> & {
|
|
7
6
|
header: Prop<string, true>;
|
|
@@ -203,8 +202,8 @@ export declare const propertiesDefinition: {
|
|
|
203
202
|
multiRowSelection: Prop<boolean, true>;
|
|
204
203
|
isSearchable: Prop<boolean, true>;
|
|
205
204
|
isDownloadable: Prop<boolean, true>;
|
|
206
|
-
|
|
207
|
-
configuredPageSize: Prop<
|
|
205
|
+
paginationType: Prop<PaginationType, true>;
|
|
206
|
+
configuredPageSize: Prop<any, false>;
|
|
208
207
|
defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
209
208
|
column: Prop<string, false>;
|
|
210
209
|
asc: Prop<boolean, true>;
|
|
@@ -245,19 +244,18 @@ export declare const propertiesDefinition: {
|
|
|
245
244
|
selectedRow: Prop<any, true>;
|
|
246
245
|
selectedRowSchema: Prop<any, true>;
|
|
247
246
|
selectedRows: Prop<any, true>;
|
|
248
|
-
pageSize: Prop<number, true>;
|
|
249
247
|
filteredTableData: Prop<any[], true>;
|
|
250
248
|
filteredOrderMap: Prop<number[], true>;
|
|
251
249
|
}>;
|
|
252
250
|
meta: Section<Record<string, Prop<any, any>> & {
|
|
253
251
|
selectedRowIndex: Prop<number, true>;
|
|
254
252
|
selectedRowIndices: Prop<any, false>;
|
|
255
|
-
pageNo: Prop<number, true>;
|
|
256
253
|
sortedColumn: Prop<any, true>;
|
|
257
254
|
searchText: Prop<string, true>;
|
|
258
255
|
filters: Prop<any, true>;
|
|
259
256
|
hiddenColumns: Prop<any, false>;
|
|
260
257
|
columnFreezes: Prop<any, false>;
|
|
261
258
|
tagsColorAssignment: Prop<any, false>;
|
|
259
|
+
pageNo: Prop<number, true>;
|
|
262
260
|
}>;
|
|
263
261
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InsertRowOptions } from "./constants.js";
|
|
3
|
-
import type { ColumnFilter, CompactMode,
|
|
3
|
+
import type { ColumnFilter, CompactMode, PaginationType, ReactTableColumnProps, TableFilters } from "./types.js";
|
|
4
4
|
import type { Dim, DimModes } from "@superblocksteam/library-shared";
|
|
5
5
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export interface TableProps {
|
|
@@ -40,7 +40,7 @@ export interface TableProps {
|
|
|
40
40
|
prevPageClick: () => void;
|
|
41
41
|
pageNo: number;
|
|
42
42
|
pageSize: number;
|
|
43
|
-
|
|
43
|
+
paginationType: PaginationType;
|
|
44
44
|
selectedRowIndex: number;
|
|
45
45
|
selectedRowIndices: number[];
|
|
46
46
|
multiRowSelection?: boolean;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { IconPosition } from "../../icons/constants";
|
|
2
2
|
import type { Dim, DimModes } from "@superblocksteam/library-shared";
|
|
3
3
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
4
|
-
export
|
|
5
|
-
NONE = "NONE",
|
|
6
|
-
CLIENT_SIDE = "CLIENT_SIDE",
|
|
7
|
-
SERVER_SIDE = "SERVER_SIDE"
|
|
8
|
-
}
|
|
4
|
+
export type PaginationType = "none" | "client_side" | "server_side";
|
|
9
5
|
export interface TableFilters {
|
|
10
6
|
byColumn?: {
|
|
11
7
|
[column: string]: ColumnFilter;
|
|
@@ -184,7 +180,6 @@ export interface TableStyles {
|
|
|
184
180
|
horizontalAlign?: CellAlignment;
|
|
185
181
|
verticalAlign?: VerticalAlignment;
|
|
186
182
|
}
|
|
187
|
-
export type Pagination = keyof typeof PaginationTypes;
|
|
188
183
|
type CellAlignment = keyof typeof CellAlignmentTypes;
|
|
189
184
|
type VerticalAlignment = keyof typeof VerticalAlignmentTypes;
|
|
190
185
|
type TextSize = keyof typeof TextSizes;
|
|
@@ -380,7 +375,7 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
380
375
|
searchPlaceholder: string;
|
|
381
376
|
pageSize: number;
|
|
382
377
|
configuredPageSize?: number;
|
|
383
|
-
|
|
378
|
+
paginationType: PaginationType;
|
|
384
379
|
multiRowSelection?: boolean;
|
|
385
380
|
columnOrder?: string[];
|
|
386
381
|
columnSizeMap?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.0-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.0-next.40",
|
|
37
37
|
"@superblocksteam/shared": "0.9137.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|