@rivet-health/design-system 40.41.0 → 40.42.0
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/esm2020/lib/table/table/state.mjs +8 -5
- package/fesm2015/rivet-health-design-system.mjs +5 -4
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +7 -4
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/table/table/state.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9650,10 +9650,11 @@ var RivTable;
|
|
|
9650
9650
|
const defaultedInitialState = defaultsDeep({}, options === null || options === void 0 ? void 0 : options.initialState, defaultState);
|
|
9651
9651
|
const columnNameMap = new Map(Array.from(columns.entries()).map(([key, metadata]) => {
|
|
9652
9652
|
var _a;
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9653
|
+
const columnDisplayName = (_a = metadata.displayName) !== null && _a !== void 0 ? _a : key;
|
|
9654
|
+
const formattedColumnName = (options === null || options === void 0 ? void 0 : options.columnsUseOriginalCasing)
|
|
9655
|
+
? columnDisplayName
|
|
9656
|
+
: toSentenceCase(columnDisplayName);
|
|
9657
|
+
return [key, formattedColumnName];
|
|
9657
9658
|
}));
|
|
9658
9659
|
const defaultColumnState = (_a = options === null || options === void 0 ? void 0 : options.defaultColumnState) !== null && _a !== void 0 ? _a : defaultedInitialState.display.columnSettings;
|
|
9659
9660
|
// Wire up reduced state from actions and initial state.
|