@onehat/ui 0.3.94 → 0.3.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.94",
3
+ "version": "0.3.95",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -597,6 +597,8 @@ export function ComboComponent(props) {
597
597
  'disableCopy',
598
598
  'disableDuplicate',
599
599
  'disablePrint',
600
+ 'selectorId',
601
+ 'selectorSelected',
600
602
  ]);
601
603
  const WhichGrid = isEditor ? WindowedGridEditor : Grid;
602
604
  grid = <WhichGrid
@@ -164,6 +164,11 @@ function TagComponent(props) {
164
164
  }
165
165
  }
166
166
 
167
+ if (isEditor && propsToPass.selectorId) {
168
+ _combo.selectorId = propsToPass.selectorId;
169
+ _combo.selectorSelected = propsToPass.selectorSelected;
170
+ }
171
+
167
172
  return <>
168
173
  <Column
169
174
  {...props}
@@ -453,9 +453,11 @@ function Form(props) {
453
453
  throw new Error('Should not yet be valid React element. Did you use <Element> instead of () => <Element> when defining it?')
454
454
  }
455
455
 
456
- if (useSelectorId) {
456
+ if (useSelectorId) { // This causes the whole form to use selectorId
457
457
  editorTypeProps.selectorId = selectorId;
458
- editorTypeProps.selectorSelected = editorProps;
458
+ }
459
+ if (propsToPass.selectorId || editorTypeProps.selectorId) { // editorTypeProps.selectorId causes just this one field to use selectorId
460
+ editorTypeProps.selectorSelected = record;
459
461
  }
460
462
  let element = <Element
461
463
  name={name}
@@ -187,6 +187,7 @@ function Viewer(props) {
187
187
  uniqueRepository={true}
188
188
  parent={self}
189
189
  {...propsToPass}
190
+ canRowsReorder={false}
190
191
  />;
191
192
  if (title) {
192
193
  title = <Text