@true-engineering/true-react-common-ui-kit 4.0.0-alpha17 → 4.0.0-alpha19
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/components/FiltersPane/FiltersPane.d.ts +4 -1
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +4 -3
- package/dist/components/FlexibleTable/types.d.ts +7 -7
- package/dist/true-react-common-ui-kit.js +13 -10
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +13 -10
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FiltersPane/FiltersPane.tsx +5 -4
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +8 -5
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +5 -5
- package/src/components/FlexibleTable/types.ts +7 -7
|
@@ -20531,7 +20531,7 @@
|
|
|
20531
20531
|
return target;
|
|
20532
20532
|
}
|
|
20533
20533
|
function FiltersPane(param) {
|
|
20534
|
-
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, _param_shouldRenderDataId = param.shouldRenderDataId, shouldRenderDataId = _param_shouldRenderDataId === void 0 ? false : _param_shouldRenderDataId, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
20534
|
+
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, _param_shouldRenderDataId = param.shouldRenderDataId, shouldRenderDataId = _param_shouldRenderDataId === void 0 ? false : _param_shouldRenderDataId, _param_settingsIcon = param.settingsIcon, settingsIcon = _param_settingsIcon === void 0 ? "filter" : _param_settingsIcon, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
20535
20535
|
var classes = useStyles$u({
|
|
20536
20536
|
theme: tweakStyles
|
|
20537
20537
|
});
|
|
@@ -20590,9 +20590,7 @@
|
|
|
20590
20590
|
onClick: !isDisabled ? onSettingsButtonClick : void 0,
|
|
20591
20591
|
children: /* @__PURE__ */ jsx("div", {
|
|
20592
20592
|
className: classes.settingsIcon,
|
|
20593
|
-
children:
|
|
20594
|
-
type: "filter"
|
|
20595
|
-
})
|
|
20593
|
+
children: renderIcon(settingsIcon)
|
|
20596
20594
|
})
|
|
20597
20595
|
})),
|
|
20598
20596
|
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$n(_object_spread$o({}, search), {
|
|
@@ -27154,7 +27152,7 @@
|
|
|
27154
27152
|
return target;
|
|
27155
27153
|
}
|
|
27156
27154
|
function FlexibleTableCell(_param) {
|
|
27157
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
|
|
27155
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, updateNestedComponent = _param.updateNestedComponent, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
|
|
27158
27156
|
"row",
|
|
27159
27157
|
"columnName",
|
|
27160
27158
|
"config",
|
|
@@ -27162,6 +27160,7 @@
|
|
|
27162
27160
|
"isSecond",
|
|
27163
27161
|
"isSticky",
|
|
27164
27162
|
"isLoading",
|
|
27163
|
+
"updateNestedComponent",
|
|
27165
27164
|
"tweakStyles"
|
|
27166
27165
|
]);
|
|
27167
27166
|
var classes = useStyles$i({
|
|
@@ -27173,6 +27172,12 @@
|
|
|
27173
27172
|
var isSticky = isOldSticky || position === "sticky";
|
|
27174
27173
|
var isClickable = !isLoading && trueReactPlatformHelpers.isNotEmpty(onCellClick);
|
|
27175
27174
|
var cellComponentProps = _object_spread_props$l(_object_spread$m({}, valueComponentProps), {
|
|
27175
|
+
onSetNestedComponent: React.useCallback(function(node) {
|
|
27176
|
+
return updateNestedComponent(node, columnName);
|
|
27177
|
+
}, [
|
|
27178
|
+
columnName,
|
|
27179
|
+
updateNestedComponent
|
|
27180
|
+
]),
|
|
27176
27181
|
value,
|
|
27177
27182
|
row
|
|
27178
27183
|
});
|
|
@@ -27371,7 +27376,7 @@
|
|
|
27371
27376
|
isOpen: false
|
|
27372
27377
|
});
|
|
27373
27378
|
};
|
|
27374
|
-
var updateNestedComponent = function(component, cellKey) {
|
|
27379
|
+
var updateNestedComponent = React.useCallback(function(component, cellKey) {
|
|
27375
27380
|
if (trueReactPlatformHelpers.isEmpty(component)) {
|
|
27376
27381
|
closeNestedComponent();
|
|
27377
27382
|
} else {
|
|
@@ -27381,7 +27386,7 @@
|
|
|
27381
27386
|
cellKey
|
|
27382
27387
|
});
|
|
27383
27388
|
}
|
|
27384
|
-
};
|
|
27389
|
+
}, []);
|
|
27385
27390
|
var handleRowClick = function() {
|
|
27386
27391
|
if (trueReactPlatformHelpers.isNotEmpty(uniqueField)) {
|
|
27387
27392
|
onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(item[uniqueField]);
|
|
@@ -27428,9 +27433,7 @@
|
|
|
27428
27433
|
isActiveRow: isActive,
|
|
27429
27434
|
isNestedComponentExpanded: isNestedComponentExpanded && nestedComponentCellKey === key,
|
|
27430
27435
|
isRowNestedComponentExpanded: isNestedComponentExpanded && trueReactPlatformHelpers.isEmpty(nestedComponentCellKey),
|
|
27431
|
-
|
|
27432
|
-
return updateNestedComponent(component, key);
|
|
27433
|
-
}
|
|
27436
|
+
updateNestedComponent
|
|
27434
27437
|
}, key);
|
|
27435
27438
|
})
|
|
27436
27439
|
})),
|