@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
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-DzJ5WE4I.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-CFT4USmT.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -134551,12 +134551,6 @@ const SbModal = registerSbComponent(
|
|
|
134551
134551
|
);
|
|
134552
134552
|
}
|
|
134553
134553
|
);
|
|
134554
|
-
var PaginationTypes = /* @__PURE__ */ ((PaginationTypes2) => {
|
|
134555
|
-
PaginationTypes2["NONE"] = "NONE";
|
|
134556
|
-
PaginationTypes2["CLIENT_SIDE"] = "CLIENT_SIDE";
|
|
134557
|
-
PaginationTypes2["SERVER_SIDE"] = "SERVER_SIDE";
|
|
134558
|
-
return PaginationTypes2;
|
|
134559
|
-
})(PaginationTypes || {});
|
|
134560
134554
|
const CompactMode = {
|
|
134561
134555
|
SHORT: "SHORT",
|
|
134562
134556
|
DEFAULT: "DEFAULT",
|
|
@@ -134631,6 +134625,142 @@ const ColumnType = {
|
|
|
134631
134625
|
EMAIL: "email",
|
|
134632
134626
|
LINK: "link"
|
|
134633
134627
|
};
|
|
134628
|
+
const JUSTIFY_CONTENT = {
|
|
134629
|
+
LEFT: "flex-start",
|
|
134630
|
+
CENTER: "center",
|
|
134631
|
+
RIGHT: "flex-end"
|
|
134632
|
+
};
|
|
134633
|
+
const ALIGN_ITEMS = {
|
|
134634
|
+
TOP: "flex-start",
|
|
134635
|
+
CENTER: "center",
|
|
134636
|
+
BOTTOM: "flex-end"
|
|
134637
|
+
};
|
|
134638
|
+
const TEXT_ALIGN = {
|
|
134639
|
+
LEFT: "left",
|
|
134640
|
+
CENTER: "center",
|
|
134641
|
+
RIGHT: "right"
|
|
134642
|
+
};
|
|
134643
|
+
const TEXT_SIZES = {
|
|
134644
|
+
HEADING1: "24px",
|
|
134645
|
+
HEADING2: "18px",
|
|
134646
|
+
HEADING3: "16px",
|
|
134647
|
+
PARAGRAPH: "14px",
|
|
134648
|
+
PARAGRAPH2: "12px"
|
|
134649
|
+
};
|
|
134650
|
+
var FontStyleTypes = /* @__PURE__ */ ((FontStyleTypes2) => {
|
|
134651
|
+
FontStyleTypes2["BOLD"] = "BOLD";
|
|
134652
|
+
FontStyleTypes2["ITALIC"] = "ITALIC";
|
|
134653
|
+
FontStyleTypes2["REGULAR"] = "REGULAR";
|
|
134654
|
+
FontStyleTypes2["UNDERLINE"] = "UNDERLINE";
|
|
134655
|
+
return FontStyleTypes2;
|
|
134656
|
+
})(FontStyleTypes || {});
|
|
134657
|
+
const TABLE_SIZES = {
|
|
134658
|
+
[CompactMode.VERY_SHORT]: {
|
|
134659
|
+
COLUMN_HEADER_HEIGHT: 48,
|
|
134660
|
+
TABLE_HEADER_HEIGHT: 60,
|
|
134661
|
+
TABLE_FOOTER_HEIGHT: 48,
|
|
134662
|
+
ROW_HEIGHT: 28,
|
|
134663
|
+
ROW_FONT_SIZE: 14,
|
|
134664
|
+
PAGINATION_CONTROLS_HEIGHT: 24,
|
|
134665
|
+
IMAGE_SIZE: 22,
|
|
134666
|
+
LINK_MENU_HEIGHT: 28,
|
|
134667
|
+
LINK_MENU_ICON_SIZE: IconSize$1.LARGE,
|
|
134668
|
+
ROW_PADDING: 0
|
|
134669
|
+
},
|
|
134670
|
+
[CompactMode.SHORT]: {
|
|
134671
|
+
COLUMN_HEADER_HEIGHT: 48,
|
|
134672
|
+
TABLE_HEADER_HEIGHT: 60,
|
|
134673
|
+
TABLE_FOOTER_HEIGHT: 48,
|
|
134674
|
+
ROW_HEIGHT: 36,
|
|
134675
|
+
ROW_FONT_SIZE: 14,
|
|
134676
|
+
PAGINATION_CONTROLS_HEIGHT: 24,
|
|
134677
|
+
IMAGE_SIZE: 28,
|
|
134678
|
+
LINK_MENU_HEIGHT: 32,
|
|
134679
|
+
LINK_MENU_ICON_SIZE: IconSize$1.LARGE,
|
|
134680
|
+
ROW_PADDING: 2
|
|
134681
|
+
},
|
|
134682
|
+
[CompactMode.DEFAULT]: {
|
|
134683
|
+
COLUMN_HEADER_HEIGHT: 48,
|
|
134684
|
+
TABLE_HEADER_HEIGHT: 60,
|
|
134685
|
+
TABLE_FOOTER_HEIGHT: 48,
|
|
134686
|
+
ROW_HEIGHT: 48,
|
|
134687
|
+
ROW_FONT_SIZE: 14,
|
|
134688
|
+
PAGINATION_CONTROLS_HEIGHT: 32,
|
|
134689
|
+
IMAGE_SIZE: 32,
|
|
134690
|
+
LINK_MENU_HEIGHT: 36,
|
|
134691
|
+
LINK_MENU_ICON_SIZE: IconSize$1.XL,
|
|
134692
|
+
ROW_PADDING: 5
|
|
134693
|
+
},
|
|
134694
|
+
[CompactMode.TALL]: {
|
|
134695
|
+
COLUMN_HEADER_HEIGHT: 36,
|
|
134696
|
+
TABLE_HEADER_HEIGHT: 60,
|
|
134697
|
+
TABLE_FOOTER_HEIGHT: 60,
|
|
134698
|
+
ROW_HEIGHT: 58,
|
|
134699
|
+
ROW_FONT_SIZE: 14,
|
|
134700
|
+
PAGINATION_CONTROLS_HEIGHT: 36,
|
|
134701
|
+
IMAGE_SIZE: 36,
|
|
134702
|
+
LINK_MENU_HEIGHT: 36,
|
|
134703
|
+
LINK_MENU_ICON_SIZE: IconSize$1.XL,
|
|
134704
|
+
ROW_PADDING: 10
|
|
134705
|
+
}
|
|
134706
|
+
};
|
|
134707
|
+
const DEFAULT_TABLE_COLUMN_WIDTH = 150;
|
|
134708
|
+
const TABLE_COLUMN_MIN_WIDTH = 20;
|
|
134709
|
+
const PARSED_INPUT_TYPES = [
|
|
134710
|
+
EditInputType.Number,
|
|
134711
|
+
EditInputType.Checkbox
|
|
134712
|
+
];
|
|
134713
|
+
const TextBoxEditTypes = [
|
|
134714
|
+
EditInputType.Text,
|
|
134715
|
+
EditInputType.Number,
|
|
134716
|
+
EditInputType.Email
|
|
134717
|
+
];
|
|
134718
|
+
const DEFAULT_CELL_TEXT_STYLE_VARIANT = "body2";
|
|
134719
|
+
const DEFAULT_CELL_CLASS_NAME = getTextCssClassFromVariant(
|
|
134720
|
+
DEFAULT_CELL_TEXT_STYLE_VARIANT
|
|
134721
|
+
);
|
|
134722
|
+
const DEFAULT_HEADING_TEXT_STYLE_VARIANT = "heading3";
|
|
134723
|
+
const TABLE_COLUMN_HEADER_DEFAULT_TYPOGRAPHY = "heading6";
|
|
134724
|
+
var Condition0Type = /* @__PURE__ */ ((Condition0Type2) => {
|
|
134725
|
+
Condition0Type2["all"] = "all";
|
|
134726
|
+
Condition0Type2["isEmpty"] = "isEmpty";
|
|
134727
|
+
Condition0Type2["isNotEmpty"] = "isNotEmpty";
|
|
134728
|
+
Condition0Type2["isTrue"] = "isTrue";
|
|
134729
|
+
Condition0Type2["isFalse"] = "isFalse";
|
|
134730
|
+
return Condition0Type2;
|
|
134731
|
+
})(Condition0Type || {});
|
|
134732
|
+
var Condition1Type = /* @__PURE__ */ ((Condition1Type2) => {
|
|
134733
|
+
Condition1Type2["textIs"] = "textIs";
|
|
134734
|
+
Condition1Type2["textContains"] = "textContains";
|
|
134735
|
+
Condition1Type2["textDoesNotContain"] = "textDoesNotContain";
|
|
134736
|
+
Condition1Type2["textStartsWith"] = "textStartsWith";
|
|
134737
|
+
Condition1Type2["textEndsWith"] = "textEndsWith";
|
|
134738
|
+
Condition1Type2["isEqualTo"] = "isEqualTo";
|
|
134739
|
+
Condition1Type2["isNotEqualTo"] = "isNotEqualTo";
|
|
134740
|
+
Condition1Type2["isLessThan"] = "isLessThan";
|
|
134741
|
+
Condition1Type2["isLessThanOrEqualTo"] = "isLessThanOrEqualTo";
|
|
134742
|
+
Condition1Type2["isGreaterThan"] = "isGreaterThan";
|
|
134743
|
+
Condition1Type2["isGreaterThanOrEqualTo"] = "isGreaterThanOrEqualTo";
|
|
134744
|
+
Condition1Type2["dateIs"] = "dateIs";
|
|
134745
|
+
Condition1Type2["dateIsBefore"] = "dateIsBefore";
|
|
134746
|
+
Condition1Type2["dateIsAfter"] = "dateIsAfter";
|
|
134747
|
+
return Condition1Type2;
|
|
134748
|
+
})(Condition1Type || {});
|
|
134749
|
+
var Condition2Type = /* @__PURE__ */ ((Condition2Type2) => {
|
|
134750
|
+
Condition2Type2["isBetween"] = "isBetween";
|
|
134751
|
+
Condition2Type2["dateIsBetween"] = "dateIsBetween";
|
|
134752
|
+
return Condition2Type2;
|
|
134753
|
+
})(Condition2Type || {});
|
|
134754
|
+
const TABLE_MULTISELECT_COLID$1 = "SB_$$_MULTISELECT";
|
|
134755
|
+
const tagColorPalette = [
|
|
134756
|
+
"#27BBFF33",
|
|
134757
|
+
"#FF9F3533",
|
|
134758
|
+
"#14CDB733",
|
|
134759
|
+
"#7C4FF833",
|
|
134760
|
+
"#FF62A433",
|
|
134761
|
+
"#9D585833",
|
|
134762
|
+
"#FF484833"
|
|
134763
|
+
];
|
|
134634
134764
|
const CurrencyList = CC.getCodes();
|
|
134635
134765
|
const tableColumnTypes = [
|
|
134636
134766
|
{
|
|
@@ -135241,142 +135371,6 @@ const columnPanelConfig = {
|
|
|
135241
135371
|
// }),
|
|
135242
135372
|
// ),
|
|
135243
135373
|
};
|
|
135244
|
-
const JUSTIFY_CONTENT = {
|
|
135245
|
-
LEFT: "flex-start",
|
|
135246
|
-
CENTER: "center",
|
|
135247
|
-
RIGHT: "flex-end"
|
|
135248
|
-
};
|
|
135249
|
-
const ALIGN_ITEMS = {
|
|
135250
|
-
TOP: "flex-start",
|
|
135251
|
-
CENTER: "center",
|
|
135252
|
-
BOTTOM: "flex-end"
|
|
135253
|
-
};
|
|
135254
|
-
const TEXT_ALIGN = {
|
|
135255
|
-
LEFT: "left",
|
|
135256
|
-
CENTER: "center",
|
|
135257
|
-
RIGHT: "right"
|
|
135258
|
-
};
|
|
135259
|
-
const TEXT_SIZES = {
|
|
135260
|
-
HEADING1: "24px",
|
|
135261
|
-
HEADING2: "18px",
|
|
135262
|
-
HEADING3: "16px",
|
|
135263
|
-
PARAGRAPH: "14px",
|
|
135264
|
-
PARAGRAPH2: "12px"
|
|
135265
|
-
};
|
|
135266
|
-
var FontStyleTypes = /* @__PURE__ */ ((FontStyleTypes2) => {
|
|
135267
|
-
FontStyleTypes2["BOLD"] = "BOLD";
|
|
135268
|
-
FontStyleTypes2["ITALIC"] = "ITALIC";
|
|
135269
|
-
FontStyleTypes2["REGULAR"] = "REGULAR";
|
|
135270
|
-
FontStyleTypes2["UNDERLINE"] = "UNDERLINE";
|
|
135271
|
-
return FontStyleTypes2;
|
|
135272
|
-
})(FontStyleTypes || {});
|
|
135273
|
-
const TABLE_SIZES = {
|
|
135274
|
-
[CompactMode.VERY_SHORT]: {
|
|
135275
|
-
COLUMN_HEADER_HEIGHT: 48,
|
|
135276
|
-
TABLE_HEADER_HEIGHT: 60,
|
|
135277
|
-
TABLE_FOOTER_HEIGHT: 48,
|
|
135278
|
-
ROW_HEIGHT: 28,
|
|
135279
|
-
ROW_FONT_SIZE: 14,
|
|
135280
|
-
PAGINATION_CONTROLS_HEIGHT: 24,
|
|
135281
|
-
IMAGE_SIZE: 22,
|
|
135282
|
-
LINK_MENU_HEIGHT: 28,
|
|
135283
|
-
LINK_MENU_ICON_SIZE: IconSize$1.LARGE,
|
|
135284
|
-
ROW_PADDING: 0
|
|
135285
|
-
},
|
|
135286
|
-
[CompactMode.SHORT]: {
|
|
135287
|
-
COLUMN_HEADER_HEIGHT: 48,
|
|
135288
|
-
TABLE_HEADER_HEIGHT: 60,
|
|
135289
|
-
TABLE_FOOTER_HEIGHT: 48,
|
|
135290
|
-
ROW_HEIGHT: 36,
|
|
135291
|
-
ROW_FONT_SIZE: 14,
|
|
135292
|
-
PAGINATION_CONTROLS_HEIGHT: 24,
|
|
135293
|
-
IMAGE_SIZE: 28,
|
|
135294
|
-
LINK_MENU_HEIGHT: 32,
|
|
135295
|
-
LINK_MENU_ICON_SIZE: IconSize$1.LARGE,
|
|
135296
|
-
ROW_PADDING: 2
|
|
135297
|
-
},
|
|
135298
|
-
[CompactMode.DEFAULT]: {
|
|
135299
|
-
COLUMN_HEADER_HEIGHT: 48,
|
|
135300
|
-
TABLE_HEADER_HEIGHT: 60,
|
|
135301
|
-
TABLE_FOOTER_HEIGHT: 48,
|
|
135302
|
-
ROW_HEIGHT: 48,
|
|
135303
|
-
ROW_FONT_SIZE: 14,
|
|
135304
|
-
PAGINATION_CONTROLS_HEIGHT: 32,
|
|
135305
|
-
IMAGE_SIZE: 32,
|
|
135306
|
-
LINK_MENU_HEIGHT: 36,
|
|
135307
|
-
LINK_MENU_ICON_SIZE: IconSize$1.XL,
|
|
135308
|
-
ROW_PADDING: 5
|
|
135309
|
-
},
|
|
135310
|
-
[CompactMode.TALL]: {
|
|
135311
|
-
COLUMN_HEADER_HEIGHT: 36,
|
|
135312
|
-
TABLE_HEADER_HEIGHT: 60,
|
|
135313
|
-
TABLE_FOOTER_HEIGHT: 60,
|
|
135314
|
-
ROW_HEIGHT: 58,
|
|
135315
|
-
ROW_FONT_SIZE: 14,
|
|
135316
|
-
PAGINATION_CONTROLS_HEIGHT: 36,
|
|
135317
|
-
IMAGE_SIZE: 36,
|
|
135318
|
-
LINK_MENU_HEIGHT: 36,
|
|
135319
|
-
LINK_MENU_ICON_SIZE: IconSize$1.XL,
|
|
135320
|
-
ROW_PADDING: 10
|
|
135321
|
-
}
|
|
135322
|
-
};
|
|
135323
|
-
const DEFAULT_TABLE_COLUMN_WIDTH = 150;
|
|
135324
|
-
const TABLE_COLUMN_MIN_WIDTH = 20;
|
|
135325
|
-
const PARSED_INPUT_TYPES = [
|
|
135326
|
-
EditInputType.Number,
|
|
135327
|
-
EditInputType.Checkbox
|
|
135328
|
-
];
|
|
135329
|
-
const TextBoxEditTypes = [
|
|
135330
|
-
EditInputType.Text,
|
|
135331
|
-
EditInputType.Number,
|
|
135332
|
-
EditInputType.Email
|
|
135333
|
-
];
|
|
135334
|
-
const DEFAULT_CELL_TEXT_STYLE_VARIANT = "body2";
|
|
135335
|
-
const DEFAULT_CELL_CLASS_NAME = getTextCssClassFromVariant(
|
|
135336
|
-
DEFAULT_CELL_TEXT_STYLE_VARIANT
|
|
135337
|
-
);
|
|
135338
|
-
const DEFAULT_HEADING_TEXT_STYLE_VARIANT = "heading3";
|
|
135339
|
-
const TABLE_COLUMN_HEADER_DEFAULT_TYPOGRAPHY = "heading6";
|
|
135340
|
-
var Condition0Type = /* @__PURE__ */ ((Condition0Type2) => {
|
|
135341
|
-
Condition0Type2["all"] = "all";
|
|
135342
|
-
Condition0Type2["isEmpty"] = "isEmpty";
|
|
135343
|
-
Condition0Type2["isNotEmpty"] = "isNotEmpty";
|
|
135344
|
-
Condition0Type2["isTrue"] = "isTrue";
|
|
135345
|
-
Condition0Type2["isFalse"] = "isFalse";
|
|
135346
|
-
return Condition0Type2;
|
|
135347
|
-
})(Condition0Type || {});
|
|
135348
|
-
var Condition1Type = /* @__PURE__ */ ((Condition1Type2) => {
|
|
135349
|
-
Condition1Type2["textIs"] = "textIs";
|
|
135350
|
-
Condition1Type2["textContains"] = "textContains";
|
|
135351
|
-
Condition1Type2["textDoesNotContain"] = "textDoesNotContain";
|
|
135352
|
-
Condition1Type2["textStartsWith"] = "textStartsWith";
|
|
135353
|
-
Condition1Type2["textEndsWith"] = "textEndsWith";
|
|
135354
|
-
Condition1Type2["isEqualTo"] = "isEqualTo";
|
|
135355
|
-
Condition1Type2["isNotEqualTo"] = "isNotEqualTo";
|
|
135356
|
-
Condition1Type2["isLessThan"] = "isLessThan";
|
|
135357
|
-
Condition1Type2["isLessThanOrEqualTo"] = "isLessThanOrEqualTo";
|
|
135358
|
-
Condition1Type2["isGreaterThan"] = "isGreaterThan";
|
|
135359
|
-
Condition1Type2["isGreaterThanOrEqualTo"] = "isGreaterThanOrEqualTo";
|
|
135360
|
-
Condition1Type2["dateIs"] = "dateIs";
|
|
135361
|
-
Condition1Type2["dateIsBefore"] = "dateIsBefore";
|
|
135362
|
-
Condition1Type2["dateIsAfter"] = "dateIsAfter";
|
|
135363
|
-
return Condition1Type2;
|
|
135364
|
-
})(Condition1Type || {});
|
|
135365
|
-
var Condition2Type = /* @__PURE__ */ ((Condition2Type2) => {
|
|
135366
|
-
Condition2Type2["isBetween"] = "isBetween";
|
|
135367
|
-
Condition2Type2["dateIsBetween"] = "dateIsBetween";
|
|
135368
|
-
return Condition2Type2;
|
|
135369
|
-
})(Condition2Type || {});
|
|
135370
|
-
const TABLE_MULTISELECT_COLID$1 = "SB_$$_MULTISELECT";
|
|
135371
|
-
const tagColorPalette = [
|
|
135372
|
-
"#27BBFF33",
|
|
135373
|
-
"#FF9F3533",
|
|
135374
|
-
"#14CDB733",
|
|
135375
|
-
"#7C4FF833",
|
|
135376
|
-
"#FF62A433",
|
|
135377
|
-
"#9D585833",
|
|
135378
|
-
"#FF484833"
|
|
135379
|
-
];
|
|
135380
135374
|
function useCachedValue(value, isEqualFn = lodashExports.isEqual) {
|
|
135381
135375
|
const cached = useRef(value);
|
|
135382
135376
|
if (cached.current !== value && !isEqualFn(cached.current, value)) {
|
|
@@ -144431,14 +144425,14 @@ function getLoaderFn(options) {
|
|
|
144431
144425
|
if (!(loader === "all")) return [3, 3];
|
|
144432
144426
|
return [4, import(
|
|
144433
144427
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
144434
|
-
"./allPathsLoader-
|
|
144428
|
+
"./allPathsLoader-AuVCeQbD.js"
|
|
144435
144429
|
)];
|
|
144436
144430
|
case 2:
|
|
144437
144431
|
return [2, _b2.sent().allPathsLoader];
|
|
144438
144432
|
case 3:
|
|
144439
144433
|
return [4, import(
|
|
144440
144434
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
144441
|
-
"./splitPathsBySizeLoader-
|
|
144435
|
+
"./splitPathsBySizeLoader-B9VbwPK4.js"
|
|
144442
144436
|
)];
|
|
144443
144437
|
case 4:
|
|
144444
144438
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -155403,20 +155397,6 @@ function getSelectedRows(props) {
|
|
|
155403
155397
|
const selectedRows = selectedRowIndices.map((ind) => filteredTableData[ind]).filter(Boolean);
|
|
155404
155398
|
return selectedRows;
|
|
155405
155399
|
}
|
|
155406
|
-
function getPageSize(props) {
|
|
155407
|
-
var _a2, _b2, _c2, _d2;
|
|
155408
|
-
if (props.configuredPageSize && typeof props.configuredPageSize === "number" && props.configuredPageSize > 0) {
|
|
155409
|
-
return props.configuredPageSize;
|
|
155410
|
-
}
|
|
155411
|
-
const compactMode = getCompactMode(props.compactMode);
|
|
155412
|
-
const componentHeight = ((_a2 = props == null ? void 0 : props.height) == null ? void 0 : _a2.mode) === "px" ? (_b2 = props == null ? void 0 : props.height) == null ? void 0 : _b2.value : (((_c2 = props == null ? void 0 : props.height) == null ? void 0 : _c2.value) ?? 0) * 12;
|
|
155413
|
-
const tableSizes = TABLE_SIZES[compactMode];
|
|
155414
|
-
const headerHeight = props.isSearchable || props.header || ((_d2 = props.hiddenColumns) == null ? void 0 : _d2.length) > 0 ? tableSizes.TABLE_HEADER_HEIGHT : 0;
|
|
155415
|
-
const scrollbarSize = 8;
|
|
155416
|
-
const mainHeight = (componentHeight ?? 100) - headerHeight - scrollbarSize - tableSizes.TABLE_FOOTER_HEIGHT - tableSizes.COLUMN_HEADER_HEIGHT;
|
|
155417
|
-
const pageSize = Math.floor(mainHeight / (tableSizes.ROW_HEIGHT + 1));
|
|
155418
|
-
return Math.max(pageSize, 1);
|
|
155419
|
-
}
|
|
155420
155400
|
function getFilteredTableData(props) {
|
|
155421
155401
|
var _a2;
|
|
155422
155402
|
if (!props.tableData) {
|
|
@@ -155822,7 +155802,7 @@ const propertiesDefinition$9 = {
|
|
|
155822
155802
|
isRemovable: true,
|
|
155823
155803
|
helpText: "Allows specifying the filters that will be used on page load",
|
|
155824
155804
|
isVisible: function() {
|
|
155825
|
-
return this.isFilterable && this.pageType !==
|
|
155805
|
+
return this.isFilterable && this.pageType !== "server_side";
|
|
155826
155806
|
}
|
|
155827
155807
|
}),
|
|
155828
155808
|
// enableRowInsertion: Prop.boolean()
|
|
@@ -155851,27 +155831,33 @@ const propertiesDefinition$9 = {
|
|
|
155851
155831
|
label: "CSV download",
|
|
155852
155832
|
helpText: "Enable CSV download"
|
|
155853
155833
|
}),
|
|
155854
|
-
|
|
155834
|
+
paginationType: Prop.string().default("none").readAndWrite().propertiesPanel({
|
|
155855
155835
|
label: "Pagination type",
|
|
155856
155836
|
controlType: "DROP_DOWN",
|
|
155857
155837
|
helpText: "For server side pagination bind the Table.pageNo property in your API and call it onPageChange",
|
|
155858
155838
|
options: [
|
|
155859
|
-
{ label: "None", value:
|
|
155860
|
-
{ label: "Client side", value:
|
|
155861
|
-
{ label: "Server side", value:
|
|
155839
|
+
{ label: "None", value: "none" },
|
|
155840
|
+
{ label: "Client side", value: "client_side" },
|
|
155841
|
+
{ label: "Server side", value: "server_side" }
|
|
155862
155842
|
]
|
|
155863
155843
|
}),
|
|
155864
|
-
configuredPageSize: Prop.
|
|
155844
|
+
configuredPageSize: Prop.any().readAndWrite().propertiesPanel({
|
|
155865
155845
|
label: "Page size",
|
|
155866
155846
|
helpText: "Sets the number of items per page. If set to 'Auto', this value will be calculated based on the height of the table.",
|
|
155867
155847
|
controlType: "DROP_DOWN",
|
|
155868
155848
|
options: [
|
|
155869
|
-
{
|
|
155849
|
+
{
|
|
155850
|
+
label: "Auto",
|
|
155851
|
+
value: "auto"
|
|
155852
|
+
},
|
|
155870
155853
|
{ label: "5", value: 5 },
|
|
155871
155854
|
{ label: "10", value: 10 },
|
|
155872
155855
|
{ label: "20", value: 20 },
|
|
155873
155856
|
{ label: "50", value: 50 }
|
|
155874
|
-
]
|
|
155857
|
+
],
|
|
155858
|
+
isVisible: function() {
|
|
155859
|
+
return this.paginationType === "client_side";
|
|
155860
|
+
}
|
|
155875
155861
|
}),
|
|
155876
155862
|
defaultSort: Prop.composite({
|
|
155877
155863
|
column: Prop.string().propertiesPanel({
|
|
@@ -156040,7 +156026,6 @@ const propertiesDefinition$9 = {
|
|
|
156040
156026
|
selectedRow: Prop.any().readable().default(getSelectedRow),
|
|
156041
156027
|
selectedRowSchema: Prop.any().readable().default(getSelectedRowSchema),
|
|
156042
156028
|
selectedRows: Prop.any().readable().default(getSelectedRows),
|
|
156043
|
-
pageSize: Prop.number().readable().default(getPageSize),
|
|
156044
156029
|
filteredTableData: Prop.any().readable().default(function() {
|
|
156045
156030
|
if (!this) return [];
|
|
156046
156031
|
return getFilteredTableData(this)[0];
|
|
@@ -156059,7 +156044,6 @@ const propertiesDefinition$9 = {
|
|
|
156059
156044
|
return this.defaultSelectedRow;
|
|
156060
156045
|
}),
|
|
156061
156046
|
selectedRowIndices: Prop.any().readable(),
|
|
156062
|
-
pageNo: Prop.number().readable().default(() => 1),
|
|
156063
156047
|
sortedColumn: Prop.any().readable().default(function() {
|
|
156064
156048
|
return this.defaultSort;
|
|
156065
156049
|
}),
|
|
@@ -156071,7 +156055,8 @@ const propertiesDefinition$9 = {
|
|
|
156071
156055
|
}),
|
|
156072
156056
|
hiddenColumns: Prop.any().readable(),
|
|
156073
156057
|
columnFreezes: Prop.any().readable(),
|
|
156074
|
-
tagsColorAssignment: Prop.any().readable()
|
|
156058
|
+
tagsColorAssignment: Prop.any().readable(),
|
|
156059
|
+
pageNo: Prop.number().readable().default(() => 0)
|
|
156075
156060
|
// editOverrides: Prop.any().readable(),
|
|
156076
156061
|
// currentEditFocus: Prop.any().readable(),
|
|
156077
156062
|
// currentEditDropdownSearchText: Prop.string().default("").readable(),
|
|
@@ -165776,13 +165761,13 @@ const TablePagination = ({
|
|
|
165776
165761
|
prevPageClick,
|
|
165777
165762
|
pageCount,
|
|
165778
165763
|
pageNo,
|
|
165779
|
-
|
|
165764
|
+
paginationType,
|
|
165780
165765
|
updatePageNo,
|
|
165781
165766
|
tableSizes,
|
|
165782
165767
|
theme
|
|
165783
165768
|
}) => {
|
|
165784
|
-
switch (
|
|
165785
|
-
case
|
|
165769
|
+
switch (paginationType) {
|
|
165770
|
+
case "server_side":
|
|
165786
165771
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
165787
165772
|
TableServerPagination,
|
|
165788
165773
|
{
|
|
@@ -165793,7 +165778,7 @@ const TablePagination = ({
|
|
|
165793
165778
|
themeColors: theme.colors
|
|
165794
165779
|
}
|
|
165795
165780
|
);
|
|
165796
|
-
case
|
|
165781
|
+
case "client_side":
|
|
165797
165782
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
165798
165783
|
TableClientPagination,
|
|
165799
165784
|
{
|
|
@@ -165877,7 +165862,7 @@ const TableFooter = ({
|
|
|
165877
165862
|
prevPageClick,
|
|
165878
165863
|
pageNo,
|
|
165879
165864
|
pageCount,
|
|
165880
|
-
|
|
165865
|
+
paginationType,
|
|
165881
165866
|
tableColumns,
|
|
165882
165867
|
tableData,
|
|
165883
165868
|
filteredOrderMap,
|
|
@@ -166049,7 +166034,7 @@ const TableFooter = ({
|
|
|
166049
166034
|
tableCellTextStyle
|
|
166050
166035
|
}
|
|
166051
166036
|
),
|
|
166052
|
-
|
|
166037
|
+
paginationType !== "server_side" && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
166053
166038
|
RowWrapper,
|
|
166054
166039
|
{
|
|
166055
166040
|
className: `${CLASS_NAMES.BUILTIN_BODY} show-page-items`,
|
|
@@ -166071,7 +166056,7 @@ const TableFooter = ({
|
|
|
166071
166056
|
prevPageClick,
|
|
166072
166057
|
pageNo,
|
|
166073
166058
|
pageCount,
|
|
166074
|
-
|
|
166059
|
+
paginationType,
|
|
166075
166060
|
currentPageIndex,
|
|
166076
166061
|
tableSizes,
|
|
166077
166062
|
theme
|
|
@@ -168942,9 +168927,9 @@ const Table = (props) => {
|
|
|
168942
168927
|
const selectedRowIndex = props.selectedRowIndex;
|
|
168943
168928
|
const selectedRowIndices = props.selectedRowIndices || [];
|
|
168944
168929
|
const canDelete = props.isDeletionEnabled && (selectedRowIndices.length > 0 || selectedRowIndex != null && selectedRowIndex >= 0);
|
|
168945
|
-
const hasFooter = props.
|
|
168930
|
+
const hasFooter = props.paginationType !== "none" || props.isDownloadable || props.numEdits != null && props.numEdits > 0 || props.isInsertionEnabled || canDelete;
|
|
168946
168931
|
const hasHeader = props.isSearchable || !lodashExports.isEmpty(props.header) || props.hiddenColumns && ((_a2 = props.hiddenColumns) == null ? void 0 : _a2.length) > 0;
|
|
168947
|
-
const pageSize = props.
|
|
168932
|
+
const pageSize = props.paginationType === "none" ? props.tableData.length : props.pageSize;
|
|
168948
168933
|
const pageCount = Math.ceil(props.tableData.length / pageSize) || 1;
|
|
168949
168934
|
const currentPageIndex = props.pageNo < pageCount ? props.pageNo : 0;
|
|
168950
168935
|
const {
|
|
@@ -168975,7 +168960,7 @@ const Table = (props) => {
|
|
|
168975
168960
|
);
|
|
168976
168961
|
let startIndex = currentPageIndex * pageSize;
|
|
168977
168962
|
let endIndex = startIndex + pageSize;
|
|
168978
|
-
if (props.
|
|
168963
|
+
if (props.paginationType === "server_side") {
|
|
168979
168964
|
startIndex = 0;
|
|
168980
168965
|
endIndex = props.tableData.length;
|
|
168981
168966
|
}
|
|
@@ -169526,7 +169511,7 @@ const Table = (props) => {
|
|
|
169526
169511
|
showFrozenColShadow,
|
|
169527
169512
|
tabIndex: 0,
|
|
169528
169513
|
className: CLASS_NAMES.DEFAULT_CONTAINER,
|
|
169529
|
-
showColumnBorders: props.showColumnBorders && (props.
|
|
169514
|
+
showColumnBorders: props.showColumnBorders && (props.paginationType !== "none" || subPage.length > 0),
|
|
169530
169515
|
colors: theme.colors,
|
|
169531
169516
|
onKeyDown: handleKeyDown,
|
|
169532
169517
|
"data-selecting-cells": tableManager.focusedCellIndices.length > 0,
|
|
@@ -169614,7 +169599,7 @@ const Table = (props) => {
|
|
|
169614
169599
|
columnProperties: column2.columnProperties,
|
|
169615
169600
|
rawTableData: props.rawTableData,
|
|
169616
169601
|
transformedTableData: props.tableData,
|
|
169617
|
-
isFilterable: props.isFilterable && props.
|
|
169602
|
+
isFilterable: props.isFilterable && props.paginationType !== "server_side",
|
|
169618
169603
|
filter: (_b3 = (_a3 = props.filters) == null ? void 0 : _a3.byColumn) == null ? void 0 : _b3[column2.id],
|
|
169619
169604
|
setColumnFilter: props.setColumnFilter,
|
|
169620
169605
|
isHidden: column2.isHidden,
|
|
@@ -169690,7 +169675,7 @@ const Table = (props) => {
|
|
|
169690
169675
|
prevPageClick: props.prevPageClick,
|
|
169691
169676
|
pageNo: props.pageNo,
|
|
169692
169677
|
pageCount,
|
|
169693
|
-
|
|
169678
|
+
paginationType: props.paginationType,
|
|
169694
169679
|
tableColumns: props.columns,
|
|
169695
169680
|
tableData: props.tableData,
|
|
169696
169681
|
filteredOrderMap: props.filteredOrderMap,
|
|
@@ -170319,14 +170304,14 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
170319
170304
|
__publicField(this, "getTopVisibleIndex", () => {
|
|
170320
170305
|
const page = this.props.pageNo || 1;
|
|
170321
170306
|
const pageSize = this.props.pageSize || 1;
|
|
170322
|
-
const isPaginated = this.props.
|
|
170307
|
+
const isPaginated = this.props.paginationType !== "none";
|
|
170323
170308
|
return isPaginated ? (page - 1) * pageSize : 0;
|
|
170324
170309
|
});
|
|
170325
170310
|
__publicField(this, "getBottomVisibleIndex", () => {
|
|
170326
170311
|
const allEdits = this.props.allEdits ?? [];
|
|
170327
170312
|
const page = this.props.pageNo || 1;
|
|
170328
170313
|
const pageSize = this.props.pageSize || 1;
|
|
170329
|
-
const isPaginated = this.props.
|
|
170314
|
+
const isPaginated = this.props.paginationType !== "none";
|
|
170330
170315
|
return isPaginated ? Math.min(allEdits.length - 1, page * pageSize - 1) : allEdits.length - 1;
|
|
170331
170316
|
});
|
|
170332
170317
|
__publicField(this, "handlePaste", (event) => {
|
|
@@ -170386,7 +170371,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
170386
170371
|
);
|
|
170387
170372
|
const data2 = [];
|
|
170388
170373
|
let largestRow = 0;
|
|
170389
|
-
const isMultiPage = this.props.
|
|
170374
|
+
const isMultiPage = this.props.paginationType === "server_side" || this.props.paginationType === "client_side";
|
|
170390
170375
|
const page = this.props.pageNo || 1;
|
|
170391
170376
|
const pageSize = this.props.pageSize || 1;
|
|
170392
170377
|
for (const cell of this.currentCellFocus ?? []) {
|
|
@@ -170821,7 +170806,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
170821
170806
|
}
|
|
170822
170807
|
if (relativePosition === tableData.length) {
|
|
170823
170808
|
setTimeout(() => {
|
|
170824
|
-
if (this.props.
|
|
170809
|
+
if (this.props.paginationType === "none") {
|
|
170825
170810
|
const tableScroller = this.getTableScroller();
|
|
170826
170811
|
tableScroller == null ? void 0 : tableScroller.scrollTo({
|
|
170827
170812
|
top: (tableScroller == null ? void 0 : tableScroller.scrollHeight) + 40,
|
|
@@ -171296,7 +171281,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
171296
171281
|
columnSizeMap: this.props.columnSizeMap,
|
|
171297
171282
|
pageNo,
|
|
171298
171283
|
pageSize: Math.max(1, pageSize),
|
|
171299
|
-
|
|
171284
|
+
paginationType: this.props.paginationType || "none",
|
|
171300
171285
|
selectedRowIndex: this.props.multiRowSelection ? -1 : this.props.selectedRowIndex ?? -1,
|
|
171301
171286
|
multiRowSelection: this.props.multiRowSelection,
|
|
171302
171287
|
selectedRowIndices: this.getComputedSelectedRowIndices(),
|
|
@@ -171315,7 +171300,7 @@ const _TableWidget = class _TableWidget extends React__default.Component {
|
|
|
171315
171300
|
compactMode: getCompactMode(this.props.compactMode),
|
|
171316
171301
|
showColumnBorders: this.props.showColumnBorders,
|
|
171317
171302
|
sortTableColumn: this.handleColumnSorting,
|
|
171318
|
-
isSortable: this.props.
|
|
171303
|
+
isSortable: this.props.paginationType !== "server_side",
|
|
171319
171304
|
isSearchable: this.props.isSearchable,
|
|
171320
171305
|
isDownloadable: this.props.isDownloadable,
|
|
171321
171306
|
isFilterable: this.props.isFilterable,
|
|
@@ -171435,6 +171420,7 @@ const SbTable = registerSbComponent(
|
|
|
171435
171420
|
propertiesDefinition: propertiesDefinition$9
|
|
171436
171421
|
},
|
|
171437
171422
|
(props) => {
|
|
171423
|
+
var _a2;
|
|
171438
171424
|
const { update } = useActions();
|
|
171439
171425
|
const { features } = useEditor();
|
|
171440
171426
|
const { theme } = useTheme();
|
|
@@ -171471,7 +171457,8 @@ const SbTable = registerSbComponent(
|
|
|
171471
171457
|
);
|
|
171472
171458
|
const setPageNo = useCallback(
|
|
171473
171459
|
(value, rowContext, triggerEventHandlers = false) => {
|
|
171474
|
-
|
|
171460
|
+
const newPageNo = Math.max(value - 1, 0);
|
|
171461
|
+
update((e3) => e3.pageNo = newPageNo);
|
|
171475
171462
|
if (triggerEventHandlers) {
|
|
171476
171463
|
onPageChange == null ? void 0 : onPageChange(rowContext);
|
|
171477
171464
|
}
|
|
@@ -171587,9 +171574,9 @@ const SbTable = registerSbComponent(
|
|
|
171587
171574
|
return [
|
|
171588
171575
|
key22,
|
|
171589
171576
|
async (args) => {
|
|
171590
|
-
var
|
|
171577
|
+
var _a3;
|
|
171591
171578
|
await (value == null ? void 0 : value(args.context));
|
|
171592
|
-
(
|
|
171579
|
+
(_a3 = args.onComplete) == null ? void 0 : _a3.call(args);
|
|
171593
171580
|
}
|
|
171594
171581
|
];
|
|
171595
171582
|
}
|
|
@@ -171607,6 +171594,31 @@ const SbTable = registerSbComponent(
|
|
|
171607
171594
|
},
|
|
171608
171595
|
[features.nudging]
|
|
171609
171596
|
);
|
|
171597
|
+
const [pageSize, setPageSize] = useState(props.configuredPageSize);
|
|
171598
|
+
useEffect(() => {
|
|
171599
|
+
setPageSize(props.configuredPageSize);
|
|
171600
|
+
}, [props.configuredPageSize]);
|
|
171601
|
+
const autoPageSize = useMemo$2(() => {
|
|
171602
|
+
var _a3, _b2;
|
|
171603
|
+
if (typeof pageSize === "number" && pageSize > 0) return pageSize;
|
|
171604
|
+
if (((_a3 = props.height) == null ? void 0 : _a3.mode) === "px" && typeof props.height.value === "number") {
|
|
171605
|
+
const compactMode = getCompactMode(props.compactMode);
|
|
171606
|
+
const tableSizes = TABLE_SIZES[compactMode];
|
|
171607
|
+
const componentHeight = props.height.value;
|
|
171608
|
+
const headerHeight = props.isSearchable || props.tableHeader || ((_b2 = props.hiddenColumns) == null ? void 0 : _b2.length) > 0 ? tableSizes.TABLE_HEADER_HEIGHT : 0;
|
|
171609
|
+
const scrollbarSize = 8;
|
|
171610
|
+
const mainHeight = componentHeight - headerHeight - scrollbarSize - tableSizes.TABLE_FOOTER_HEIGHT - tableSizes.COLUMN_HEADER_HEIGHT;
|
|
171611
|
+
return Math.floor(mainHeight / (tableSizes.ROW_HEIGHT + 1));
|
|
171612
|
+
}
|
|
171613
|
+
return 10;
|
|
171614
|
+
}, [
|
|
171615
|
+
pageSize,
|
|
171616
|
+
props.height,
|
|
171617
|
+
props.compactMode,
|
|
171618
|
+
(_a2 = props.hiddenColumns) == null ? void 0 : _a2.length,
|
|
171619
|
+
props.isSearchable,
|
|
171620
|
+
props.tableHeader
|
|
171621
|
+
]);
|
|
171610
171622
|
const disableDrag = useCallback(
|
|
171611
171623
|
(disable) => {
|
|
171612
171624
|
features.dragAndDrop.set(!disable);
|
|
@@ -171617,11 +171629,12 @@ const SbTable = registerSbComponent(
|
|
|
171617
171629
|
TableWidget,
|
|
171618
171630
|
{
|
|
171619
171631
|
...props,
|
|
171632
|
+
pageSize: autoPageSize,
|
|
171620
171633
|
enableRowInsertion: false,
|
|
171621
171634
|
enableRowDeletion: false,
|
|
171622
171635
|
searchPlaceholder: props.searchPlaceholder ?? "",
|
|
171623
171636
|
searchText: props.searchText ?? "",
|
|
171624
|
-
|
|
171637
|
+
paginationType: props.paginationType,
|
|
171625
171638
|
columns: transformedColumns,
|
|
171626
171639
|
filters: props.filters ?? EMPTY_OBJ,
|
|
171627
171640
|
header: props.header ?? "",
|
|
@@ -190960,4 +190973,4 @@ export {
|
|
|
190960
190973
|
copyToClipboard as y,
|
|
190961
190974
|
navigateTo as z
|
|
190962
190975
|
};
|
|
190963
|
-
//# sourceMappingURL=index-
|
|
190976
|
+
//# sourceMappingURL=index-sY8OAGZZ.js.map
|