@agilemotion/oui-react-js 1.8.57 → 1.8.58

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.
@@ -77,7 +77,7 @@ table.responsive-table thead {
77
77
  }
78
78
 
79
79
  .ouiTable td {
80
- padding: 16px 0 12px 8px;
80
+ padding: 16px 0 12px 0;
81
81
  height: 54px;
82
82
  border-top: none;
83
83
  display: table-cell;
@@ -160,7 +160,7 @@ table.responsive-table thead {
160
160
  font-size: 0.75rem;
161
161
  font-weight: 500;
162
162
  line-height: 1.3125rem;
163
- padding: 12px 0 12px 8px;
163
+ padding: 12px 0 12px 0;
164
164
  }
165
165
 
166
166
  .ouiTable {
@@ -157,8 +157,18 @@ const DataGridColumn = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defa
157
157
  // keep the sort icon from squashing the text
158
158
  ,
159
159
  sx: {
160
+ width: '100%',
161
+ // 🔽 shrink the icon hard
160
162
  '& .MuiTableSortLabel-icon': {
161
- flexShrink: 0
163
+ fontSize: '0.7rem',
164
+ marginLeft: '2px',
165
+ marginRight: 0
166
+ },
167
+ // keep text from being affected
168
+ '& .MuiTableSortLabel-label': {
169
+ overflow: 'hidden',
170
+ textOverflow: 'ellipsis',
171
+ whiteSpace: 'nowrap'
162
172
  }
163
173
  }
164
174
  }, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
@@ -169,11 +179,18 @@ const DataGridColumn = /*#__PURE__*/_react.default.memo(/*#__PURE__*/_react.defa
169
179
  display: 'inline-block',
170
180
  maxWidth: '100%',
171
181
  overflow: 'hidden',
182
+ width: '100%'
183
+ }
184
+ }, /*#__PURE__*/_react.default.createElement("div", {
185
+ style: {
186
+ width: '100%',
187
+ maxWidth: '100%',
172
188
  textOverflow: 'ellipsis',
173
189
  whiteSpace: 'nowrap',
174
- verticalAlign: 'bottom'
190
+ verticalAlign: 'bottom',
191
+ overflow: 'hidden'
175
192
  }
176
- }, label + postfix)), 'id' === config.id ? /*#__PURE__*/_react.default.createElement("span", {
193
+ }, label + postfix))), 'id' === config.id ? /*#__PURE__*/_react.default.createElement("span", {
177
194
  className: classes.visuallyHidden
178
195
  }, "sorted descending") : null));
179
196
  }));
@@ -11,7 +11,6 @@ require("./DocumentTemplateDesigner.css");
11
11
  var _DocumentTemplateDesignerComponent = _interopRequireDefault(require("./DocumentTemplateDesignerComponent"));
12
12
  var _Event = _interopRequireDefault(require("../event/Event"));
13
13
  var _EventType = _interopRequireDefault(require("../event/EventType"));
14
- var _WordDocumentViewer = _interopRequireDefault(require("./WordDocumentViewer"));
15
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
15
  const DocumentTemplateDesigner = props => {
17
16
  const [visible, setVisible] = _react.default.useState(false);
@@ -55,7 +54,11 @@ const DocumentTemplateDesigner = props => {
55
54
  }
56
55
  },
57
56
  getChildren: () => {
58
- return [templateDesignerHandle];
57
+ let children = [templateDesignerHandle];
58
+ for (const child of templateDesignerHandle.api.getChildren()) {
59
+ children.push(child);
60
+ }
61
+ return children;
59
62
  },
60
63
  set visible(visible) {
61
64
  setVisible(visible);
@@ -79,7 +82,7 @@ const DocumentTemplateDesigner = props => {
79
82
  },
80
83
  getDocumentValue: async () => {
81
84
  if (templateDesignerHandle.api) {
82
- return await templateDesignerHandle.api.getValue();
85
+ return await templateDesignerHandle.api.getDocumentValue();
83
86
  }
84
87
  return null;
85
88
  }
@@ -97,13 +100,14 @@ const DocumentTemplateDesigner = props => {
97
100
  borderRadius: '4px',
98
101
  border: hasError === true && markInvalid ? '1px solid red' : null
99
102
  }, props.config)
100
- }, loading ? /*#__PURE__*/_react.default.createElement("div", null, "Loading...") : /*#__PURE__*/_react.default.createElement(_DocumentTemplateDesignerComponent.default, {
103
+ }, /*#__PURE__*/_react.default.createElement(_DocumentTemplateDesignerComponent.default, {
101
104
  id: props.config.id,
102
105
  viewId: props.viewId,
103
106
  visible: visible,
104
107
  documentName: documentName,
105
108
  handle: templateDesignerHandle,
106
- propertiesFormConfig: props.config.propertiesForm,
109
+ propertiesForm: props.config.propertiesForm,
110
+ templateViewer: props.config.templateViewer,
107
111
  value: value,
108
112
  valueChangeHandler: onValueChange
109
113
  }));