awing-library 2.1.2-dev.82 → 2.1.2-dev.84

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.
@@ -7,7 +7,7 @@ export type CellDefinition<T extends object> = FieldDefinitionProps<T> & {
7
7
  isTooltip?: boolean;
8
8
  row?: Partial<T>;
9
9
  getTitleTooltip?: (value: T[keyof T]) => NonNullable<ReactNode>;
10
- maxWidth?: string | number;
10
+ mdMaxWidth?: string | number;
11
11
  };
12
12
  export interface ColumnDefinition<T extends object> {
13
13
  headerName: ReactNode;
@@ -98,5 +98,5 @@ export interface TableCellEditableProps<T extends object> {
98
98
  isCollapsed?: boolean;
99
99
  numOfRowSpan?: number;
100
100
  onToggleCollapsible?: () => void;
101
- maxWidth?: string | number;
101
+ mdMaxWidth?: string | number;
102
102
  }
package/dist/esm/index.js CHANGED
@@ -177631,7 +177631,7 @@ function TableCellEditable(props) {
177631
177631
  isShowCollapsible,
177632
177632
  isCollapsed,
177633
177633
  onToggleCollapsible,
177634
- maxWidth
177634
+ mdMaxWidth
177635
177635
  } = props;
177636
177636
  const {
177637
177637
  TableCellProps,
@@ -177655,7 +177655,7 @@ function TableCellEditable(props) {
177655
177655
  });
177656
177656
  return jsxRuntimeExports.jsx(InputFactory, Object.assign({}, inputProps, {
177657
177657
  sx: {
177658
- maxWidth,
177658
+ maxWidth: document.body.clientWidth < 1400 ? mdMaxWidth : 'inherit',
177659
177659
  '& .MuiInput-input': {
177660
177660
  textAlign: isContainer ? 'left' : undefined
177661
177661
  }
@@ -177807,7 +177807,7 @@ function TableRowEditable(props) {
177807
177807
  if (colDef.editFieldDefinition) {
177808
177808
  const {
177809
177809
  fieldName,
177810
- maxWidth
177810
+ mdMaxWidth
177811
177811
  } = colDef.editFieldDefinition;
177812
177812
  const currentValue = (_b = row[fieldName]) !== null && _b !== void 0 ? _b : '';
177813
177813
  const isMergeColumn = fieldName === mergeRowsBy;
@@ -177815,7 +177815,7 @@ function TableRowEditable(props) {
177815
177815
  const numOfRowSpan = isMergeColumn ? convertItems.filter(c => c[fieldName] === row[fieldName]).length : 1;
177816
177816
  const error = ((_c = dataValidation === null || dataValidation === void 0 ? void 0 : dataValidation[rowIdx]) === null || _c === void 0 ? void 0 : _c[fieldName]) !== undefined && !((_d = dataValidation === null || dataValidation === void 0 ? void 0 : dataValidation[rowIdx]) === null || _d === void 0 ? void 0 : _d[fieldName]);
177817
177817
  return isDisplay && jsxRuntimeExports.jsx(TableCellEditable, {
177818
- maxWidth: maxWidth,
177818
+ mdMaxWidth: mdMaxWidth,
177819
177819
  isShowCollapsible: idx === 0,
177820
177820
  isCollapsed: open,
177821
177821
  onToggleCollapsible: () => setOpen(!open),
@@ -190340,7 +190340,7 @@ function SharingContainer() {
190340
190340
  useEffect(() => {
190341
190341
  getWorkspaces().then(workspaces => {
190342
190342
  if (workspaces) {
190343
- setWorkspaceOptions(workspaces.filter(workspace => workspace.id !== (currentWorkspace === null || currentWorkspace === void 0 ? void 0 : currentWorkspace.id)));
190343
+ setWorkspaceOptions(workspaces);
190344
190344
  }
190345
190345
  });
190346
190346
  getSchemas().then(async schemas => {
package/dist/index.d.ts CHANGED
@@ -1809,7 +1809,7 @@ type CellDefinition<T extends object> = FieldDefinitionProps$1<T> & {
1809
1809
  isTooltip?: boolean;
1810
1810
  row?: Partial<T>;
1811
1811
  getTitleTooltip?: (value: T[keyof T]) => NonNullable<ReactNode>;
1812
- maxWidth?: string | number;
1812
+ mdMaxWidth?: string | number;
1813
1813
  };
1814
1814
  interface ColumnDefinition<T extends object> {
1815
1815
  headerName: ReactNode;
@@ -1881,7 +1881,7 @@ interface TableCellEditableProps<T extends object> {
1881
1881
  isCollapsed?: boolean;
1882
1882
  numOfRowSpan?: number;
1883
1883
  onToggleCollapsible?: () => void;
1884
- maxWidth?: string | number;
1884
+ mdMaxWidth?: string | number;
1885
1885
  }
1886
1886
 
1887
1887
  declare function TableEditable<T>(props: TableEditableProps<T>): react_jsx_runtime.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.82",
3
+ "version": "2.1.2-dev.84",
4
4
  "main": "dist/esm/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/index.d.ts",