aefis-core-ui 4.0.0-rc67 → 4.0.0-rc69

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.
@@ -5248,7 +5248,7 @@ const Drawer$1 = ({
5248
5248
  appBarStyle,
5249
5249
  drawerStyle,
5250
5250
  headerDivider: _headerDivider = true,
5251
- titleComponent: _titleComponent = "h2",
5251
+ titleComponent: _titleComponent = "h1",
5252
5252
  drawerContentStyle,
5253
5253
  enableScrollShadow: _enableScrollShadow = false,
5254
5254
  focusOnMount: _focusOnMount = false,
@@ -11923,7 +11923,8 @@ const DataTable$1 = ({
11923
11923
  rowSelectionModel,
11924
11924
  multiple: _multiple = true,
11925
11925
  isFilterPanelStateChanged,
11926
- disableColumnResize
11926
+ disableColumnResize,
11927
+ hideActionsColumnTitle: _hideActionsColumnTitle = true
11927
11928
  }) => {
11928
11929
  const datagridApiRef = useGridApiRef();
11929
11930
  const [headerBoxShadow, setHeaderBoxShadow] = useState(false);
@@ -11959,16 +11960,18 @@ const DataTable$1 = ({
11959
11960
  const actionsColumn = useMemo(() => {
11960
11961
  return {
11961
11962
  id: "_actions",
11962
- minWidth: 75,
11963
- width: 75,
11964
- maxWidth: 75,
11963
+ minWidth: 85,
11964
+ width: 85,
11965
+ maxWidth: 85,
11965
11966
  field: "actions",
11966
11967
  headerName: "Actions",
11968
+ headerAlign: "center",
11969
+ align: "center",
11967
11970
  disableColumnMenu: true,
11968
11971
  sortable: false,
11969
11972
  disableExport: true,
11970
11973
  resizable: false,
11971
- headerClassName: "hidden-actions-column--header",
11974
+ headerClassName: _hideActionsColumnTitle ? "hidden-actions-column--header" : undefined,
11972
11975
  renderCell: data => {
11973
11976
  const rowData = data.row || undefined;
11974
11977
  const rowMenuObj = [{
@@ -12209,7 +12212,9 @@ DataTable$1.propTypes = {
12209
12212
  // used for sorting mode. It is used for sorting.
12210
12213
  sortingMode: PropTypes.oneOf(["server", "client"]),
12211
12214
  // disable column resize
12212
- disableColumnResize: PropTypes.bool
12215
+ disableColumnResize: PropTypes.bool,
12216
+ // hide actions column title
12217
+ hideActionsColumnTitle: PropTypes.bool
12213
12218
  };
12214
12219
 
12215
12220
  const _excluded$v = ["hasTimerOnChange", "placeholder", "minimumLength", "clearOnChange"];
@@ -15798,6 +15803,7 @@ const RichDataTable$1 = /*#__PURE__*/forwardRef(function RichDatatable(props, re
15798
15803
  })]
15799
15804
  }), /*#__PURE__*/jsx(DataTable$1, _extends({}, props, {
15800
15805
  tableRef: DataTableRef,
15806
+ hideActionsColumnTitle: props.hideActionsColumnTitle,
15801
15807
  name: props.name,
15802
15808
  columns: updateColumnDefaults$1(props.columns),
15803
15809
  data: (_props$data = props.data) != null ? _props$data : mappedData
@@ -15883,7 +15889,8 @@ RichDataTable$1.defaultProps = {
15883
15889
  enableInfiniteScrolling: true,
15884
15890
  showTextSearch: false,
15885
15891
  disableColumnResize: true,
15886
- containerSx: {}
15892
+ containerSx: {},
15893
+ hideActionsColumnTitle: true
15887
15894
  };
15888
15895
  RichDataTable$1.propTypes = _extends({
15889
15896
  /** The title of the table */
@@ -16007,7 +16014,9 @@ RichDataTable$1.propTypes = _extends({
16007
16014
  }, DataTable$1.propTypes, {
16008
16015
  /** disable column resize */
16009
16016
  disableColumnResize: PropTypes.bool,
16010
- containerSx: PropTypes.object
16017
+ containerSx: PropTypes.object,
16018
+ /** hide actions column title */
16019
+ hideActionsColumnTitle: PropTypes.bool
16011
16020
  });
16012
16021
 
16013
16022
  const createEvent = () => {