@dxos/react-ui-table 0.7.5-main.499c70c → 0.7.5-main.9cb18ac

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.
@@ -164,7 +164,9 @@ var CreateRefPanel = ({ model, modals, __gridScope }) => {
164
164
  if (!space || state?.type !== "createRefPanel") {
165
165
  return;
166
166
  }
167
- const schema2 = space.db.schemaRegistry.getSchema(state.typename)?.schema;
167
+ const [schema2] = space.db.schemaRegistry.query({
168
+ typename: state.typename
169
+ }).runSync();
168
170
  if (schema2) {
169
171
  const omit = S.omit("id");
170
172
  return omit(schema2);
@@ -177,7 +179,9 @@ var CreateRefPanel = ({ model, modals, __gridScope }) => {
177
179
  if (!model || !space || state?.type !== "createRefPanel") {
178
180
  return;
179
181
  }
180
- const schema2 = space.db.schemaRegistry.getSchema(state.typename)?.schema;
182
+ const [schema2] = space.db.schemaRegistry.query({
183
+ typename: state.typename
184
+ }).runSync();
181
185
  if (schema2) {
182
186
  const obj = space.db.add(create(schema2, values));
183
187
  state.onCreate?.(obj);
@@ -1138,7 +1142,8 @@ var TablePresentation = class {
1138
1142
  resizeHandle: "col",
1139
1143
  accessoryHtml: tableButtons.columnSettings.render({
1140
1144
  fieldId: field.id
1141
- })
1145
+ }),
1146
+ className: "!bg-gridHeader"
1142
1147
  };
1143
1148
  }
1144
1149
  return cells;
@@ -1188,13 +1193,14 @@ var TablePresentation = class {
1188
1193
  col: 0,
1189
1194
  row: 0
1190
1195
  })]: {
1191
- value: "",
1192
1196
  accessoryHtml: tableControls.checkbox.render({
1193
1197
  rowIndex: 0,
1194
1198
  header: true,
1195
1199
  checked: this.model.selection.allRowsSeleted.value
1196
1200
  }),
1197
- readonly: true
1201
+ className: "!bg-gridHeader",
1202
+ readonly: true,
1203
+ value: ""
1198
1204
  }
1199
1205
  };
1200
1206
  }
@@ -1204,11 +1210,12 @@ var TablePresentation = class {
1204
1210
  col: 0,
1205
1211
  row: 0
1206
1212
  })]: {
1207
- value: "",
1208
1213
  accessoryHtml: tableButtons.addColumn.render({
1209
1214
  disabled: (this.model.table.view?.target?.fields?.length ?? 0) >= VIEW_FIELD_LIMIT
1210
1215
  }),
1211
- readonly: true
1216
+ className: "!bg-gridHeader",
1217
+ readonly: true,
1218
+ value: ""
1212
1219
  }
1213
1220
  };
1214
1221
  }