@ni/nimble-components 16.1.2 → 16.1.4
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/all-components-bundle.js +84 -48
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1272 -1248
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/cell/styles.js +6 -0
- package/dist/esm/table/components/cell/styles.js.map +1 -1
- package/dist/esm/table/components/header/styles.js +10 -0
- package/dist/esm/table/components/header/styles.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +11 -0
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +10 -1
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +10 -1
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +2 -0
- package/dist/esm/theme-provider/design-tokens.js +3 -1
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +54 -0
- package/dist/tokens.scss +27 -0
- package/package.json +2 -1
|
@@ -15442,6 +15442,8 @@
|
|
|
15442
15442
|
const Headline1Weight = "400";
|
|
15443
15443
|
const ErrorLightUiFamily = "Source Sans Pro";
|
|
15444
15444
|
const ErrorLightUiWeight = "400";
|
|
15445
|
+
const GridHeaderFamily = "Source Sans Pro";
|
|
15446
|
+
const GridHeaderWeight = "600";
|
|
15445
15447
|
const Title2Size = "22px";
|
|
15446
15448
|
const ControlLabel1Size = "11px";
|
|
15447
15449
|
const BodySize = "14px";
|
|
@@ -15458,6 +15460,7 @@
|
|
|
15458
15460
|
const LinkLightUiSize = "14px";
|
|
15459
15461
|
const Headline1Size = "25px";
|
|
15460
15462
|
const ErrorLightUiSize = "11px";
|
|
15463
|
+
const GridHeaderSize = "12.800000190734863px";
|
|
15461
15464
|
const BodyLineHeight = "18px";
|
|
15462
15465
|
const ControlLabel1LineHeight = "16px";
|
|
15463
15466
|
const GroupLabel1LineHeight = "16px";
|
|
@@ -15559,6 +15562,14 @@
|
|
|
15559
15562
|
headlineFontWeight: 'headline-font-weight',
|
|
15560
15563
|
headlineFontLineHeight: 'headline-font-line-height',
|
|
15561
15564
|
headlineFallbackFontFamily: 'headline-fallback-font-family',
|
|
15565
|
+
tableHeaderFont: 'table-header-font',
|
|
15566
|
+
tableHeaderFontColor: 'table-header-font-color',
|
|
15567
|
+
tableHeaderDisabledFontColor: 'table-header-disabled-font-color',
|
|
15568
|
+
tableHeaderFontFamily: 'table-header-font-family',
|
|
15569
|
+
tableHeaderFontSize: 'table-header-font-size',
|
|
15570
|
+
tableHeaderFontWeight: 'table-header-font-weight',
|
|
15571
|
+
tableHeaderFontLineHeight: 'table-header-font-line-height',
|
|
15572
|
+
tableHeaderFallbackFontFamily: 'table-header-fallback-font-family',
|
|
15562
15573
|
titlePlus2Font: 'title-plus-2-font',
|
|
15563
15574
|
titlePlus2FontColor: 'title-plus-2-font-color',
|
|
15564
15575
|
titlePlus2DisabledFontColor: 'title-plus-2-disabled-font-color',
|
|
@@ -15695,7 +15706,8 @@
|
|
|
15695
15706
|
errorTextFontSize: 'error-text-font-size',
|
|
15696
15707
|
errorTextFontWeight: 'error-text-font-weight',
|
|
15697
15708
|
errorTextFontLineHeight: 'error-text-font-line-height',
|
|
15698
|
-
errorTextFallbackFontFamily: 'error-text-fallback-font-family'
|
|
15709
|
+
errorTextFallbackFontFamily: 'error-text-fallback-font-family',
|
|
15710
|
+
tableRowBorderColor: 'table-row-border-color'
|
|
15699
15711
|
};
|
|
15700
15712
|
const prefix = 'ni-nimble';
|
|
15701
15713
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
@@ -15789,6 +15801,7 @@
|
|
|
15789
15801
|
const popupBoxShadowColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBoxShadowColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black75, Black85, Black85), 0.3));
|
|
15790
15802
|
const popupBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBorderColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White), 0.3));
|
|
15791
15803
|
DesignToken.create(styleNameFromTokenName(tokenNames.tooltipBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black85, ForestGreen));
|
|
15804
|
+
const tableRowBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.tableRowBorderColor)).withDefault((element) => getColorForTheme(element, Black15, Black88, ForestGreen));
|
|
15792
15805
|
// Component Sizing Tokens
|
|
15793
15806
|
const controlHeight = DesignToken.create(styleNameFromTokenName(tokenNames.controlHeight)).withDefault('32px');
|
|
15794
15807
|
const smallPadding = DesignToken.create(styleNameFromTokenName(tokenNames.smallPadding)).withDefault('4px');
|
|
@@ -15817,6 +15830,7 @@
|
|
|
15817
15830
|
const [buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor, buttonLabelFontFamily, buttonLabelFontWeight, buttonLabelFontSize, buttonLabelFontLineHeight, buttonLabelFallbackFontFamily] = createFontTokens(tokenNames.buttonLabelFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), ButtonLabel1Family, ButtonLabel1Weight, ButtonLabel1Size, ButtonLabel1LineHeight, 'sans-serif');
|
|
15818
15831
|
const [tooltipCaptionFont, tooltipCaptionFontColor, tooltipCaptionDisabledFontColor, tooltipCaptionFontFamily, tooltipCaptionFontWeight, tooltipCaptionFontSize, tooltipCaptionFontLineHeight, tooltipCaptionFallbackFontFamily] = createFontTokens(tokenNames.tooltipCaptionFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), TooltipCaptionFamily, TooltipCaptionWeight, TooltipCaptionSize, TooltipCaptionLineHeight, 'sans-serif');
|
|
15819
15832
|
const [errorTextFont, errorTextFontColor, errorTextDisabledFontColor, errorTextFontFamily, errorTextFontWeight, errorTextFontSize, errorTextFontLineHeight, errorTextFallbackFontFamily] = createFontTokens(tokenNames.errorTextFont, (element) => getFailColorForTheme(element), (element) => hexToRgbaCssColor(getFailColorForTheme(element), 0.3), ErrorLightUiFamily, ErrorLightUiWeight, ErrorLightUiSize, TooltipCaptionLineHeight, 'sans-serif');
|
|
15833
|
+
const [tableHeaderFont, tableHeaderFontColor, tableHeaderDisabledFontColor, tableHeaderFontFamily, tableHeaderFontWeight, tableHeaderFontSize, tableHeaderFontLineHeight, tableHeaderFallbackFontFamily] = createFontTokens(tokenNames.tableHeaderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), GridHeaderFamily, GridHeaderWeight, GridHeaderSize, TooltipCaptionLineHeight, 'sans-serif');
|
|
15820
15834
|
// Font Transform Tokens
|
|
15821
15835
|
const groupHeaderTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.groupHeaderTextTransform)).withDefault('uppercase');
|
|
15822
15836
|
// Animation Tokens
|
|
@@ -22220,7 +22234,7 @@
|
|
|
22220
22234
|
let result = originalRow;
|
|
22221
22235
|
for (const key of accessorKey.split('.')) {
|
|
22222
22236
|
result = result[key];
|
|
22223
|
-
if (
|
|
22237
|
+
if (result === undefined) {
|
|
22224
22238
|
throw new Error(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
|
|
22225
22239
|
}
|
|
22226
22240
|
}
|
|
@@ -22231,10 +22245,9 @@
|
|
|
22231
22245
|
}
|
|
22232
22246
|
}
|
|
22233
22247
|
if (!id) {
|
|
22234
|
-
|
|
22248
|
+
{
|
|
22235
22249
|
throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
|
|
22236
22250
|
}
|
|
22237
|
-
throw new Error();
|
|
22238
22251
|
}
|
|
22239
22252
|
let column = {
|
|
22240
22253
|
id: `${String(id)}`,
|
|
@@ -22247,7 +22260,7 @@
|
|
|
22247
22260
|
var _column$columns;
|
|
22248
22261
|
return [column, ...((_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap(d => d.getFlatColumns()))];
|
|
22249
22262
|
}, {
|
|
22250
|
-
key:
|
|
22263
|
+
key: "development" === 'production' ,
|
|
22251
22264
|
debug: () => {
|
|
22252
22265
|
var _table$options$debugA;
|
|
22253
22266
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugColumns;
|
|
@@ -22261,7 +22274,7 @@
|
|
|
22261
22274
|
}
|
|
22262
22275
|
return [column];
|
|
22263
22276
|
}, {
|
|
22264
|
-
key:
|
|
22277
|
+
key: "development" === 'production' ,
|
|
22265
22278
|
debug: () => {
|
|
22266
22279
|
var _table$options$debugA2;
|
|
22267
22280
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugColumns;
|
|
@@ -22327,7 +22340,7 @@
|
|
|
22327
22340
|
const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
|
|
22328
22341
|
return headerGroups;
|
|
22329
22342
|
}, {
|
|
22330
|
-
key:
|
|
22343
|
+
key: 'getHeaderGroups',
|
|
22331
22344
|
debug: () => {
|
|
22332
22345
|
var _table$options$debugA;
|
|
22333
22346
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugHeaders;
|
|
@@ -22337,7 +22350,7 @@
|
|
|
22337
22350
|
leafColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
|
|
22338
22351
|
return buildHeaderGroups(allColumns, leafColumns, table, 'center');
|
|
22339
22352
|
}, {
|
|
22340
|
-
key:
|
|
22353
|
+
key: 'getCenterHeaderGroups',
|
|
22341
22354
|
debug: () => {
|
|
22342
22355
|
var _table$options$debugA2;
|
|
22343
22356
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugHeaders;
|
|
@@ -22348,7 +22361,7 @@
|
|
|
22348
22361
|
const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
|
|
22349
22362
|
return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'left');
|
|
22350
22363
|
}, {
|
|
22351
|
-
key:
|
|
22364
|
+
key: 'getLeftHeaderGroups',
|
|
22352
22365
|
debug: () => {
|
|
22353
22366
|
var _table$options$debugA3;
|
|
22354
22367
|
return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugHeaders;
|
|
@@ -22359,7 +22372,7 @@
|
|
|
22359
22372
|
const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
|
|
22360
22373
|
return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'right');
|
|
22361
22374
|
}, {
|
|
22362
|
-
key:
|
|
22375
|
+
key: 'getRightHeaderGroups',
|
|
22363
22376
|
debug: () => {
|
|
22364
22377
|
var _table$options$debugA4;
|
|
22365
22378
|
return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugHeaders;
|
|
@@ -22370,7 +22383,7 @@
|
|
|
22370
22383
|
getFooterGroups: memo(() => [table.getHeaderGroups()], headerGroups => {
|
|
22371
22384
|
return [...headerGroups].reverse();
|
|
22372
22385
|
}, {
|
|
22373
|
-
key:
|
|
22386
|
+
key: 'getFooterGroups',
|
|
22374
22387
|
debug: () => {
|
|
22375
22388
|
var _table$options$debugA5;
|
|
22376
22389
|
return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugHeaders;
|
|
@@ -22379,7 +22392,7 @@
|
|
|
22379
22392
|
getLeftFooterGroups: memo(() => [table.getLeftHeaderGroups()], headerGroups => {
|
|
22380
22393
|
return [...headerGroups].reverse();
|
|
22381
22394
|
}, {
|
|
22382
|
-
key:
|
|
22395
|
+
key: 'getLeftFooterGroups',
|
|
22383
22396
|
debug: () => {
|
|
22384
22397
|
var _table$options$debugA6;
|
|
22385
22398
|
return (_table$options$debugA6 = table.options.debugAll) != null ? _table$options$debugA6 : table.options.debugHeaders;
|
|
@@ -22388,7 +22401,7 @@
|
|
|
22388
22401
|
getCenterFooterGroups: memo(() => [table.getCenterHeaderGroups()], headerGroups => {
|
|
22389
22402
|
return [...headerGroups].reverse();
|
|
22390
22403
|
}, {
|
|
22391
|
-
key:
|
|
22404
|
+
key: 'getCenterFooterGroups',
|
|
22392
22405
|
debug: () => {
|
|
22393
22406
|
var _table$options$debugA7;
|
|
22394
22407
|
return (_table$options$debugA7 = table.options.debugAll) != null ? _table$options$debugA7 : table.options.debugHeaders;
|
|
@@ -22397,7 +22410,7 @@
|
|
|
22397
22410
|
getRightFooterGroups: memo(() => [table.getRightHeaderGroups()], headerGroups => {
|
|
22398
22411
|
return [...headerGroups].reverse();
|
|
22399
22412
|
}, {
|
|
22400
|
-
key:
|
|
22413
|
+
key: 'getRightFooterGroups',
|
|
22401
22414
|
debug: () => {
|
|
22402
22415
|
var _table$options$debugA8;
|
|
22403
22416
|
return (_table$options$debugA8 = table.options.debugAll) != null ? _table$options$debugA8 : table.options.debugHeaders;
|
|
@@ -22410,7 +22423,7 @@
|
|
|
22410
22423
|
return headerGroup.headers;
|
|
22411
22424
|
}).flat();
|
|
22412
22425
|
}, {
|
|
22413
|
-
key:
|
|
22426
|
+
key: 'getFlatHeaders',
|
|
22414
22427
|
debug: () => {
|
|
22415
22428
|
var _table$options$debugA9;
|
|
22416
22429
|
return (_table$options$debugA9 = table.options.debugAll) != null ? _table$options$debugA9 : table.options.debugHeaders;
|
|
@@ -22421,7 +22434,7 @@
|
|
|
22421
22434
|
return headerGroup.headers;
|
|
22422
22435
|
}).flat();
|
|
22423
22436
|
}, {
|
|
22424
|
-
key:
|
|
22437
|
+
key: 'getLeftFlatHeaders',
|
|
22425
22438
|
debug: () => {
|
|
22426
22439
|
var _table$options$debugA10;
|
|
22427
22440
|
return (_table$options$debugA10 = table.options.debugAll) != null ? _table$options$debugA10 : table.options.debugHeaders;
|
|
@@ -22432,7 +22445,7 @@
|
|
|
22432
22445
|
return headerGroup.headers;
|
|
22433
22446
|
}).flat();
|
|
22434
22447
|
}, {
|
|
22435
|
-
key:
|
|
22448
|
+
key: 'getCenterFlatHeaders',
|
|
22436
22449
|
debug: () => {
|
|
22437
22450
|
var _table$options$debugA11;
|
|
22438
22451
|
return (_table$options$debugA11 = table.options.debugAll) != null ? _table$options$debugA11 : table.options.debugHeaders;
|
|
@@ -22443,7 +22456,7 @@
|
|
|
22443
22456
|
return headerGroup.headers;
|
|
22444
22457
|
}).flat();
|
|
22445
22458
|
}, {
|
|
22446
|
-
key:
|
|
22459
|
+
key: 'getRightFlatHeaders',
|
|
22447
22460
|
debug: () => {
|
|
22448
22461
|
var _table$options$debugA12;
|
|
22449
22462
|
return (_table$options$debugA12 = table.options.debugAll) != null ? _table$options$debugA12 : table.options.debugHeaders;
|
|
@@ -22457,7 +22470,7 @@
|
|
|
22457
22470
|
return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
|
|
22458
22471
|
});
|
|
22459
22472
|
}, {
|
|
22460
|
-
key:
|
|
22473
|
+
key: 'getCenterLeafHeaders',
|
|
22461
22474
|
debug: () => {
|
|
22462
22475
|
var _table$options$debugA13;
|
|
22463
22476
|
return (_table$options$debugA13 = table.options.debugAll) != null ? _table$options$debugA13 : table.options.debugHeaders;
|
|
@@ -22469,7 +22482,7 @@
|
|
|
22469
22482
|
return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
|
|
22470
22483
|
});
|
|
22471
22484
|
}, {
|
|
22472
|
-
key:
|
|
22485
|
+
key: 'getLeftLeafHeaders',
|
|
22473
22486
|
debug: () => {
|
|
22474
22487
|
var _table$options$debugA14;
|
|
22475
22488
|
return (_table$options$debugA14 = table.options.debugAll) != null ? _table$options$debugA14 : table.options.debugHeaders;
|
|
@@ -22481,7 +22494,7 @@
|
|
|
22481
22494
|
return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
|
|
22482
22495
|
});
|
|
22483
22496
|
}, {
|
|
22484
|
-
key:
|
|
22497
|
+
key: 'getRightLeafHeaders',
|
|
22485
22498
|
debug: () => {
|
|
22486
22499
|
var _table$options$debugA15;
|
|
22487
22500
|
return (_table$options$debugA15 = table.options.debugAll) != null ? _table$options$debugA15 : table.options.debugHeaders;
|
|
@@ -22493,7 +22506,7 @@
|
|
|
22493
22506
|
return header.getLeafHeaders();
|
|
22494
22507
|
}).flat();
|
|
22495
22508
|
}, {
|
|
22496
|
-
key:
|
|
22509
|
+
key: 'getLeafHeaders',
|
|
22497
22510
|
debug: () => {
|
|
22498
22511
|
var _table$options$debugA16;
|
|
22499
22512
|
return (_table$options$debugA16 = table.options.debugAll) != null ? _table$options$debugA16 : table.options.debugHeaders;
|
|
@@ -23597,7 +23610,7 @@
|
|
|
23597
23610
|
}
|
|
23598
23611
|
return orderColumns(orderedColumns, grouping, groupedColumnMode);
|
|
23599
23612
|
}, {
|
|
23600
|
-
key:
|
|
23613
|
+
key: 'getOrderColumnsFn'
|
|
23601
23614
|
// debug: () => table.options.debugAll ?? table.options.debugTable,
|
|
23602
23615
|
})
|
|
23603
23616
|
};
|
|
@@ -23708,7 +23721,7 @@
|
|
|
23708
23721
|
}
|
|
23709
23722
|
return pageOptions;
|
|
23710
23723
|
}, {
|
|
23711
|
-
key:
|
|
23724
|
+
key: 'getPageOptions',
|
|
23712
23725
|
debug: () => {
|
|
23713
23726
|
var _table$options$debugA;
|
|
23714
23727
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
|
|
@@ -23828,7 +23841,7 @@
|
|
|
23828
23841
|
const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
|
|
23829
23842
|
return allCells.filter(d => !leftAndRight.includes(d.column.id));
|
|
23830
23843
|
}, {
|
|
23831
|
-
key:
|
|
23844
|
+
key: "development" === 'production' ,
|
|
23832
23845
|
debug: () => {
|
|
23833
23846
|
var _table$options$debugA;
|
|
23834
23847
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
|
|
@@ -23841,7 +23854,7 @@
|
|
|
23841
23854
|
}));
|
|
23842
23855
|
return cells;
|
|
23843
23856
|
}, {
|
|
23844
|
-
key:
|
|
23857
|
+
key: "development" === 'production' ,
|
|
23845
23858
|
debug: () => {
|
|
23846
23859
|
var _table$options$debugA2;
|
|
23847
23860
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
|
|
@@ -23854,7 +23867,7 @@
|
|
|
23854
23867
|
}));
|
|
23855
23868
|
return cells;
|
|
23856
23869
|
}, {
|
|
23857
|
-
key:
|
|
23870
|
+
key: "development" === 'production' ,
|
|
23858
23871
|
debug: () => {
|
|
23859
23872
|
var _table$options$debugA3;
|
|
23860
23873
|
return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugRows;
|
|
@@ -23881,7 +23894,7 @@
|
|
|
23881
23894
|
getLeftLeafColumns: memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
|
|
23882
23895
|
return (left != null ? left : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
|
|
23883
23896
|
}, {
|
|
23884
|
-
key:
|
|
23897
|
+
key: 'getLeftLeafColumns',
|
|
23885
23898
|
debug: () => {
|
|
23886
23899
|
var _table$options$debugA4;
|
|
23887
23900
|
return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugColumns;
|
|
@@ -23890,7 +23903,7 @@
|
|
|
23890
23903
|
getRightLeafColumns: memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
|
|
23891
23904
|
return (right != null ? right : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
|
|
23892
23905
|
}, {
|
|
23893
|
-
key:
|
|
23906
|
+
key: 'getRightLeafColumns',
|
|
23894
23907
|
debug: () => {
|
|
23895
23908
|
var _table$options$debugA5;
|
|
23896
23909
|
return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugColumns;
|
|
@@ -23900,7 +23913,7 @@
|
|
|
23900
23913
|
const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
|
|
23901
23914
|
return allColumns.filter(d => !leftAndRight.includes(d.id));
|
|
23902
23915
|
}, {
|
|
23903
|
-
key:
|
|
23916
|
+
key: 'getCenterLeafColumns',
|
|
23904
23917
|
debug: () => {
|
|
23905
23918
|
var _table$options$debugA6;
|
|
23906
23919
|
return (_table$options$debugA6 = table.options.debugAll) != null ? _table$options$debugA6 : table.options.debugColumns;
|
|
@@ -24042,7 +24055,7 @@
|
|
|
24042
24055
|
}
|
|
24043
24056
|
return selectRowsFn(table, rowModel);
|
|
24044
24057
|
}, {
|
|
24045
|
-
key:
|
|
24058
|
+
key: 'getSelectedRowModel',
|
|
24046
24059
|
debug: () => {
|
|
24047
24060
|
var _table$options$debugA;
|
|
24048
24061
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
|
|
@@ -24058,7 +24071,7 @@
|
|
|
24058
24071
|
}
|
|
24059
24072
|
return selectRowsFn(table, rowModel);
|
|
24060
24073
|
}, {
|
|
24061
|
-
key:
|
|
24074
|
+
key: "development" === 'production' ,
|
|
24062
24075
|
debug: () => {
|
|
24063
24076
|
var _table$options$debugA2;
|
|
24064
24077
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugTable;
|
|
@@ -24074,7 +24087,7 @@
|
|
|
24074
24087
|
}
|
|
24075
24088
|
return selectRowsFn(table, rowModel);
|
|
24076
24089
|
}, {
|
|
24077
|
-
key:
|
|
24090
|
+
key: "development" === 'production' ,
|
|
24078
24091
|
debug: () => {
|
|
24079
24092
|
var _table$options$debugA3;
|
|
24080
24093
|
return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugTable;
|
|
@@ -24649,14 +24662,14 @@
|
|
|
24649
24662
|
_getAllVisibleCells: memo(() => [row.getAllCells(), table.getState().columnVisibility], cells => {
|
|
24650
24663
|
return cells.filter(cell => cell.column.getIsVisible());
|
|
24651
24664
|
}, {
|
|
24652
|
-
key:
|
|
24665
|
+
key: "development" === 'production' ,
|
|
24653
24666
|
debug: () => {
|
|
24654
24667
|
var _table$options$debugA;
|
|
24655
24668
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
|
|
24656
24669
|
}
|
|
24657
24670
|
}),
|
|
24658
24671
|
getVisibleCells: memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], {
|
|
24659
|
-
key:
|
|
24672
|
+
key: 'row.getVisibleCells',
|
|
24660
24673
|
debug: () => {
|
|
24661
24674
|
var _table$options$debugA2;
|
|
24662
24675
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
|
|
@@ -24798,10 +24811,9 @@
|
|
|
24798
24811
|
getRow: id => {
|
|
24799
24812
|
const row = table.getRowModel().rowsById[id];
|
|
24800
24813
|
if (!row) {
|
|
24801
|
-
|
|
24814
|
+
{
|
|
24802
24815
|
throw new Error(`getRow expected an ID, but got ${id}`);
|
|
24803
24816
|
}
|
|
24804
|
-
throw new Error();
|
|
24805
24817
|
}
|
|
24806
24818
|
return row;
|
|
24807
24819
|
},
|
|
@@ -24834,7 +24846,7 @@
|
|
|
24834
24846
|
var _table$options$debugA;
|
|
24835
24847
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugColumns;
|
|
24836
24848
|
},
|
|
24837
|
-
key:
|
|
24849
|
+
key: 'getDefaultColumnDef'
|
|
24838
24850
|
}),
|
|
24839
24851
|
_getColumnDefs: () => table.options.columns,
|
|
24840
24852
|
getAllColumns: memo(() => [table._getColumnDefs()], columnDefs => {
|
|
@@ -24851,7 +24863,7 @@
|
|
|
24851
24863
|
};
|
|
24852
24864
|
return recurseColumns(columnDefs);
|
|
24853
24865
|
}, {
|
|
24854
|
-
key:
|
|
24866
|
+
key: 'getAllColumns',
|
|
24855
24867
|
debug: () => {
|
|
24856
24868
|
var _table$options$debugA2;
|
|
24857
24869
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugColumns;
|
|
@@ -24862,7 +24874,7 @@
|
|
|
24862
24874
|
return column.getFlatColumns();
|
|
24863
24875
|
});
|
|
24864
24876
|
}, {
|
|
24865
|
-
key:
|
|
24877
|
+
key: 'getAllFlatColumns',
|
|
24866
24878
|
debug: () => {
|
|
24867
24879
|
var _table$options$debugA3;
|
|
24868
24880
|
return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugColumns;
|
|
@@ -24874,7 +24886,7 @@
|
|
|
24874
24886
|
return acc;
|
|
24875
24887
|
}, {});
|
|
24876
24888
|
}, {
|
|
24877
|
-
key:
|
|
24889
|
+
key: 'getAllFlatColumnsById',
|
|
24878
24890
|
debug: () => {
|
|
24879
24891
|
var _table$options$debugA4;
|
|
24880
24892
|
return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugColumns;
|
|
@@ -24884,7 +24896,7 @@
|
|
|
24884
24896
|
let leafColumns = allColumns.flatMap(column => column.getLeafColumns());
|
|
24885
24897
|
return orderColumns(leafColumns);
|
|
24886
24898
|
}, {
|
|
24887
|
-
key:
|
|
24899
|
+
key: 'getAllLeafColumns',
|
|
24888
24900
|
debug: () => {
|
|
24889
24901
|
var _table$options$debugA5;
|
|
24890
24902
|
return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugColumns;
|
|
@@ -24893,7 +24905,7 @@
|
|
|
24893
24905
|
getColumn: columnId => {
|
|
24894
24906
|
const column = table._getAllFlatColumnsById()[columnId];
|
|
24895
24907
|
if (!column) {
|
|
24896
|
-
|
|
24908
|
+
{
|
|
24897
24909
|
console.warn(`[Table] Column with id ${columnId} does not exist.`);
|
|
24898
24910
|
}
|
|
24899
24911
|
throw new Error();
|
|
@@ -24927,7 +24939,7 @@
|
|
|
24927
24939
|
getValue: cell.getValue,
|
|
24928
24940
|
renderValue: cell.renderValue
|
|
24929
24941
|
}), {
|
|
24930
|
-
key:
|
|
24942
|
+
key: 'cell.getContext',
|
|
24931
24943
|
debug: () => table.options.debugAll
|
|
24932
24944
|
})
|
|
24933
24945
|
};
|
|
@@ -24982,7 +24994,7 @@
|
|
|
24982
24994
|
return createCell(table, row, column, column.id);
|
|
24983
24995
|
});
|
|
24984
24996
|
}, {
|
|
24985
|
-
key:
|
|
24997
|
+
key: 'row.getAllCells',
|
|
24986
24998
|
debug: () => {
|
|
24987
24999
|
var _table$options$debugA;
|
|
24988
25000
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
|
|
@@ -24994,7 +25006,7 @@
|
|
|
24994
25006
|
return acc;
|
|
24995
25007
|
}, {});
|
|
24996
25008
|
}, {
|
|
24997
|
-
key:
|
|
25009
|
+
key: "development" === 'production' ,
|
|
24998
25010
|
debug: () => {
|
|
24999
25011
|
var _table$options$debugA2;
|
|
25000
25012
|
return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
|
|
@@ -25023,7 +25035,7 @@
|
|
|
25023
25035
|
for (let i = 0; i < originalRows.length; i++) {
|
|
25024
25036
|
// This could be an expensive check at scale, so we should move it somewhere else, but where?
|
|
25025
25037
|
// if (!id) {
|
|
25026
|
-
// if (
|
|
25038
|
+
// if ("development" !== 'production') {
|
|
25027
25039
|
// throw new Error(`getRowId expected an ID, but got ${id}`)
|
|
25028
25040
|
// }
|
|
25029
25041
|
// }
|
|
@@ -25054,7 +25066,7 @@
|
|
|
25054
25066
|
rowModel.rows = accessRows(data);
|
|
25055
25067
|
return rowModel;
|
|
25056
25068
|
}, {
|
|
25057
|
-
key:
|
|
25069
|
+
key: 'getRowModel',
|
|
25058
25070
|
debug: () => {
|
|
25059
25071
|
var _table$options$debugA;
|
|
25060
25072
|
return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
|
|
@@ -25087,6 +25099,15 @@
|
|
|
25087
25099
|
|
|
25088
25100
|
const styles$b = css `
|
|
25089
25101
|
${display('flex')}
|
|
25102
|
+
|
|
25103
|
+
:host {
|
|
25104
|
+
height: ${controlHeight};
|
|
25105
|
+
align-items: center;
|
|
25106
|
+
background: ${applicationBackgroundColor};
|
|
25107
|
+
padding: 0px calc(${standardPadding} / 2);
|
|
25108
|
+
font: ${tableHeaderFont};
|
|
25109
|
+
color: ${tableHeaderFontColor};
|
|
25110
|
+
}
|
|
25090
25111
|
`;
|
|
25091
25112
|
|
|
25092
25113
|
// prettier-ignore
|
|
@@ -25112,13 +25133,28 @@
|
|
|
25112
25133
|
const styles$a = css `
|
|
25113
25134
|
${display('flex')}
|
|
25114
25135
|
|
|
25136
|
+
:host {
|
|
25137
|
+
height: ${controlHeight};
|
|
25138
|
+
background: ${applicationBackgroundColor};
|
|
25139
|
+
border-top: calc(2 * ${borderWidth}) solid ${tableRowBorderColor};
|
|
25140
|
+
}
|
|
25141
|
+
|
|
25115
25142
|
.cell {
|
|
25116
25143
|
flex: 1;
|
|
25117
25144
|
}
|
|
25145
|
+
|
|
25146
|
+
:host(:hover) .cell {
|
|
25147
|
+
background: ${fillHoverColor};
|
|
25148
|
+
}
|
|
25118
25149
|
`;
|
|
25119
25150
|
|
|
25120
25151
|
const styles$9 = css `
|
|
25121
25152
|
${display('flex')}
|
|
25153
|
+
|
|
25154
|
+
:host {
|
|
25155
|
+
padding: 0px calc(${standardPadding} / 2);
|
|
25156
|
+
align-items: center;
|
|
25157
|
+
}
|
|
25122
25158
|
`;
|
|
25123
25159
|
|
|
25124
25160
|
// prettier-ignore
|