@teselagen/ove 0.5.31-beta.2 → 0.5.31-beta.3

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/index.es.js CHANGED
@@ -34279,18 +34279,14 @@ const viewColumn = {
34279
34279
  return /* @__PURE__ */ React__default$1.createElement(Icon, { className: "dt-eyeIcon", icon: "eye-open" });
34280
34280
  }
34281
34281
  };
34282
- const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
34283
- render: (val2, record, rowInfo, props) => {
34282
+ const openColumn = /* @__PURE__ */ __name(({ onDoubleClick, history }) => __spreadProps(__spreadValues({}, viewColumn), {
34283
+ render: (val2, record, rowInfo) => {
34284
34284
  return /* @__PURE__ */ React__default$1.createElement(Tooltip, { content: "Open" }, /* @__PURE__ */ React__default$1.createElement(
34285
34285
  Button,
34286
34286
  {
34287
34287
  onClick: (e2) => {
34288
34288
  e2.stopPropagation();
34289
- props.onDoubleClick && props.onDoubleClick(
34290
- rowInfo.original,
34291
- rowInfo.index,
34292
- props.history
34293
- );
34289
+ onDoubleClick && onDoubleClick(rowInfo.original, rowInfo.index, history);
34294
34290
  },
34295
34291
  minimal: true,
34296
34292
  small: true,
@@ -34299,7 +34295,7 @@ const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
34299
34295
  }
34300
34296
  ));
34301
34297
  }
34302
- });
34298
+ }), "openColumn");
34303
34299
  function convertSchema(schema2) {
34304
34300
  let schemaToUse = schema2;
34305
34301
  if (!schemaToUse.fields && Array.isArray(schema2)) {
@@ -46732,9 +46728,7 @@ const ColumnFilterMenu = /* @__PURE__ */ __name(({
46732
46728
  Popover,
46733
46729
  {
46734
46730
  position: "bottom",
46735
- onClose: () => {
46736
- setColumnFilterMenuOpen(false);
46737
- },
46731
+ onClose: () => setColumnFilterMenuOpen(false),
46738
46732
  isOpen: columnFilterMenuOpen,
46739
46733
  modifiers: {
46740
46734
  preventOverflow: { enabled: true },
@@ -47401,61 +47395,60 @@ const RenderCell = /* @__PURE__ */ __name(({
47401
47395
  }
47402
47396
  ));
47403
47397
  }, "RenderCell");
47404
- const RenderColumns = /* @__PURE__ */ __name((props) => {
47405
- const {
47406
- addFilters,
47407
- cellRenderer,
47408
- change: change2,
47409
- columns,
47410
- currentParams,
47411
- compact: compact3,
47412
- editableCellValue,
47413
- editingCell,
47414
- editingCellSelectAll,
47415
- entities,
47416
- expandedEntityIdMap,
47417
- extraCompact,
47418
- filters,
47419
- getCellHoverText,
47420
- isCellEditable,
47421
- isEntityDisabled,
47422
- isLocalCall,
47423
- isSimple,
47424
- isSingleSelect,
47425
- isSelectionARectangle,
47426
- noDeselectAll,
47427
- noSelect,
47428
- noUserSelect,
47429
- onDeselect,
47430
- onMultiRowSelect,
47431
- onRowClick,
47432
- onRowSelect,
47433
- onSingleRowSelect,
47434
- order: order2,
47435
- primarySelectedCellId,
47436
- reduxFormCellValidation,
47437
- reduxFormSelectedEntityIdMap,
47438
- refocusTable,
47439
- removeSingleFilter = noop$6,
47440
- schema: schema2,
47441
- selectedCells,
47442
- setEditableCellValue,
47443
- setEditingCell,
47444
- setExpandedEntityIdMap,
47445
- setNewParams,
47446
- setOrder = noop$6,
47447
- setSelectedCells,
47448
- shouldShowSubComponent,
47449
- startCellEdit,
47450
- SubComponent,
47451
- tableRef,
47452
- updateEntitiesHelper,
47453
- updateValidation,
47454
- withCheckboxes,
47455
- withExpandAndCollapseAllButton,
47456
- withFilter: _withFilter,
47457
- withSort = true
47458
- } = props;
47398
+ const RenderColumns = /* @__PURE__ */ __name(({
47399
+ addFilters,
47400
+ cellRenderer,
47401
+ change: change2,
47402
+ columns,
47403
+ currentParams,
47404
+ compact: compact3,
47405
+ editableCellValue,
47406
+ editingCell,
47407
+ editingCellSelectAll,
47408
+ entities,
47409
+ expandedEntityIdMap,
47410
+ extraCompact,
47411
+ filters,
47412
+ getCellHoverText,
47413
+ isCellEditable,
47414
+ isEntityDisabled,
47415
+ isLocalCall,
47416
+ isSimple,
47417
+ isSingleSelect,
47418
+ isSelectionARectangle,
47419
+ noDeselectAll,
47420
+ noSelect,
47421
+ noUserSelect,
47422
+ onDeselect,
47423
+ onMultiRowSelect,
47424
+ onRowClick,
47425
+ onRowSelect,
47426
+ onSingleRowSelect,
47427
+ order: order2,
47428
+ primarySelectedCellId,
47429
+ reduxFormCellValidation,
47430
+ reduxFormSelectedEntityIdMap,
47431
+ refocusTable,
47432
+ removeSingleFilter = noop$6,
47433
+ schema: schema2,
47434
+ selectedCells,
47435
+ setEditableCellValue,
47436
+ setEditingCell,
47437
+ setExpandedEntityIdMap,
47438
+ setNewParams,
47439
+ setOrder = noop$6,
47440
+ setSelectedCells,
47441
+ shouldShowSubComponent,
47442
+ startCellEdit,
47443
+ SubComponent,
47444
+ tableRef,
47445
+ updateEntitiesHelper,
47446
+ updateValidation,
47447
+ withCheckboxes,
47448
+ withExpandAndCollapseAllButton,
47449
+ withFilter: _withFilter,
47450
+ withSort = true
47451
+ }) => {
47459
47452
  const withFilter = _withFilter === void 0 ? !isSimple : _withFilter;
47460
47453
  const onDragEnd2 = /* @__PURE__ */ __name((cellsToSelect) => {
47461
47454
  const [primaryRowId, primaryCellPath] = primarySelectedCellId.split(":");
@@ -47627,13 +47620,19 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
47627
47620
  let text2 = typeof val2 !== "string" ? row.value : val2;
47628
47621
  const record = row.original;
47629
47622
  if (column.getClipboardData) {
47630
- text2 = column.getClipboardData(row.value, record, row, props);
47623
+ text2 = column.getClipboardData(row.value, record, row);
47631
47624
  } else if (column.getValueToFilterOn) {
47632
- text2 = column.getValueToFilterOn(record, props);
47625
+ text2 = column.getValueToFilterOn(record);
47633
47626
  } else if (column.render) {
47634
- text2 = column.render(row.value, record, row, props);
47627
+ text2 = column.render(row.value, record, row, {
47628
+ currentParams,
47629
+ setNewParams
47630
+ });
47635
47631
  } else if (cellRenderer && cellRenderer[column.path]) {
47636
- text2 = cellRenderer[column.path](row.value, row.original, row, props);
47632
+ text2 = cellRenderer[column.path](row.value, row.original, row, {
47633
+ currentParams,
47634
+ setNewParams
47635
+ });
47637
47636
  } else if (text2) {
47638
47637
  text2 = isValidElement(text2) ? text2 : String(text2);
47639
47638
  }
@@ -47851,17 +47850,18 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
47851
47850
  }
47852
47851
  if (cellRenderer && cellRenderer[column.path]) {
47853
47852
  tableColumn.Cell = (row) => {
47854
- const val2 = cellRenderer[column.path](
47855
- row.value,
47856
- row.original,
47857
- row,
47858
- props
47859
- );
47853
+ const val2 = cellRenderer[column.path](row.value, row.original, row, {
47854
+ currentParams,
47855
+ setNewParams
47856
+ });
47860
47857
  return val2;
47861
47858
  };
47862
47859
  } else if (column.render) {
47863
47860
  tableColumn.Cell = (row) => {
47864
- const val2 = column.render(row.value, row.original, row, props);
47861
+ const val2 = column.render(row.value, row.original, row, {
47862
+ currentParams,
47863
+ setNewParams
47864
+ });
47865
47865
  return val2;
47866
47866
  };
47867
47867
  } else if (column.type === "timestamp") {
@@ -48049,12 +48049,13 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48049
48049
  // }
48050
48050
  ]
48051
48051
  }, props.defaults || {}));
48052
- let _schema;
48053
- if (isFunction$6(__schema))
48054
- _schema = __schema(props);
48055
- else
48056
- _schema = __schema;
48057
- const convertedSchema = convertSchema(_schema);
48052
+ const _schema = useMemo$1(() => {
48053
+ if (isFunction$6(__schema))
48054
+ return __schema(props);
48055
+ else
48056
+ return __schema;
48057
+ }, [__schema, props]);
48058
+ const convertedSchema = useMemo$1(() => convertSchema(_schema), [_schema]);
48058
48059
  if (isLocalCall) {
48059
48060
  if (!noForm && (!formName || formName === "tgDataTable")) {
48060
48061
  throw new Error(
@@ -48162,6 +48163,9 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48162
48163
  }
48163
48164
  return {};
48164
48165
  }, [
48166
+ props.entities,
48167
+ props.noOrderError,
48168
+ props.isCodeModel,
48165
48169
  convertedSchema,
48166
48170
  currentParams,
48167
48171
  doNotCoercePageSize,
@@ -48196,7 +48200,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48196
48200
  doNotShowEmptyRows,
48197
48201
  doNotValidateUntouchedRows,
48198
48202
  editingCellSelectAll,
48199
- entities: __origEntities = [],
48203
+ entities: _origEntities = [],
48200
48204
  entitiesAcrossPages: _entitiesAcrossPages,
48201
48205
  entityCount,
48202
48206
  errorParsingUrlString,
@@ -48277,10 +48281,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48277
48281
  withSort,
48278
48282
  withTitle = !isSimple
48279
48283
  } = props;
48280
- const _origEntities = useDeepEqualMemo(__origEntities);
48281
- const entities = useDeepEqualMemo(
48282
- ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || []
48284
+ const _entities = useMemo$1(
48285
+ () => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
48286
+ [_origEntities, reduxFormEntities]
48283
48287
  );
48288
+ const entities = useDeepEqualMemo(_entities);
48284
48289
  const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
48285
48290
  useEffect(() => {
48286
48291
  if (change2) {
@@ -48317,12 +48322,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48317
48322
  withDisplayOptions
48318
48323
  ]);
48319
48324
  const schema2 = useMemo$1(() => {
48320
- const schema22 = convertSchema(_schema);
48325
+ const schema22 = convertedSchema;
48321
48326
  if (isViewable) {
48322
48327
  schema22.fields = [viewColumn, ...schema22.fields];
48323
48328
  }
48324
48329
  if (isOpenable) {
48325
- schema22.fields = [openColumn, ...schema22.fields];
48330
+ schema22.fields = [
48331
+ openColumn({ onDoubleClick, history }),
48332
+ ...schema22.fields
48333
+ ];
48326
48334
  }
48327
48335
  schema22.fields = schema22.fields.map((field) => {
48328
48336
  if (field.placementPath) {
@@ -48384,13 +48392,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48384
48392
  }
48385
48393
  return schema22;
48386
48394
  }, [
48387
- _schema,
48388
48395
  cellRenderer,
48396
+ convertedSchema,
48389
48397
  entities,
48398
+ history,
48390
48399
  isInfinite,
48391
48400
  isOpenable,
48392
48401
  isSimple,
48393
48402
  isViewable,
48403
+ onDoubleClick,
48394
48404
  showForcedHiddenColumns,
48395
48405
  tableConfig.columnOrderings,
48396
48406
  tableConfig.fieldOptions,
@@ -50215,7 +50225,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50215
50225
  return entities;
50216
50226
  }, [entities, onlyShowRowsWErrors, reduxFormCellValidation]);
50217
50227
  const renderColumns = useMemo$1(
50218
- () => RenderColumns(__spreadProps(__spreadValues({}, props), {
50228
+ () => RenderColumns({
50219
50229
  addFilters,
50220
50230
  cellRenderer,
50221
50231
  change: change2,
@@ -50268,7 +50278,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50268
50278
  withExpandAndCollapseAllButton,
50269
50279
  withFilter,
50270
50280
  withSort
50271
- })),
50281
+ }),
50272
50282
  // eslint-disable-next-line react-hooks/exhaustive-deps
50273
50283
  [
50274
50284
  SubComponent,
@@ -117727,7 +117737,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117727
117737
  }
117728
117738
  __name(showFileDialog, "showFileDialog");
117729
117739
  const name = "@teselagen/ove";
117730
- const version = "0.5.31-beta.1";
117740
+ const version = "0.5.31-beta.2";
117731
117741
  const main = "./src/index.js";
117732
117742
  const type = "module";
117733
117743
  const exports$1 = {
@@ -129862,42 +129872,19 @@ const _ComponentToPrint = class _ComponentToPrint extends React__default$1.Compo
129862
129872
  };
129863
129873
  __name(_ComponentToPrint, "ComponentToPrint");
129864
129874
  let ComponentToPrint = _ComponentToPrint;
129865
- const sizeSchema = {
129875
+ const sizeSchema = /* @__PURE__ */ __name((isProtein2) => ({
129866
129876
  path: "size",
129867
129877
  type: "number",
129868
- render: (val2, _record, i, props) => {
129869
- const record = props.isProtein ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129878
+ render: (val2, _record) => {
129879
+ const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129870
129880
  const base1Range = convertRangeTo1Based(record);
129871
129881
  const hasJoinedLocations = record.locations && record.locations.length > 1;
129872
- return /* @__PURE__ */ React__default$1.createElement("span", null, props.isProtein ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React__default$1.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i2) => {
129882
+ return /* @__PURE__ */ React__default$1.createElement("span", null, isProtein2 ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React__default$1.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i) => {
129873
129883
  const base1Range2 = convertRangeTo1Based(loc);
129874
- return /* @__PURE__ */ React__default$1.createElement("span", { key: i2 }, "(", base1Range2.start, "-", base1Range2.end, ")");
129884
+ return /* @__PURE__ */ React__default$1.createElement("span", { key: i }, "(", base1Range2.start, "-", base1Range2.end, ")");
129875
129885
  }) : /* @__PURE__ */ React__default$1.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
129876
129886
  }
129877
- };
129878
- const schema$2 = {
129879
- fields: [
129880
- // ...(noColor
129881
- // ? []
129882
- // : [
129883
- // {
129884
- // path: "color",
129885
- // type: "string",
129886
- // render: color => {
129887
- // return (
129888
- // <ColorPickerPopover>
129889
- // <div style={{ height: 20, width: 20, background: color }} />
129890
- // </ColorPickerPopover>
129891
- // );
129892
- // }
129893
- // }
129894
- // ]),
129895
- { path: "name", type: "string" },
129896
- // ...(noType ? [] : [{ path: "type", type: "string" }]),
129897
- sizeSchema,
129898
- { path: "strand", type: "string" }
129899
- ]
129900
- };
129887
+ }), "sizeSchema");
129901
129888
  const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__default$1.Component {
129902
129889
  constructor() {
129903
129890
  super(...arguments);
@@ -129943,6 +129930,29 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__def
129943
129930
  render() {
129944
129931
  const { duplicatesToRemoveSelectedEntities, hideModal, type: type2 } = this.props;
129945
129932
  const selectedIds = this.state.dups.map((d2) => d2.id);
129933
+ const schema2 = {
129934
+ fields: [
129935
+ // ...(noColor
129936
+ // ? []
129937
+ // : [
129938
+ // {
129939
+ // path: "color",
129940
+ // type: "string",
129941
+ // render: color => {
129942
+ // return (
129943
+ // <ColorPickerPopover>
129944
+ // <div style={{ height: 20, width: 20, background: color }} />
129945
+ // </ColorPickerPopover>
129946
+ // );
129947
+ // }
129948
+ // }
129949
+ // ]),
129950
+ { path: "name", type: "string" },
129951
+ // ...(noType ? [] : [{ path: "type", type: "string" }]),
129952
+ sizeSchema(this.props.isProtein),
129953
+ { path: "strand", type: "string" }
129954
+ ]
129955
+ };
129946
129956
  return /* @__PURE__ */ React__default$1.createElement("div", { className: classNames(Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React__default$1.createElement(
129947
129957
  WrappedDT,
129948
129958
  {
@@ -129960,7 +129970,7 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__def
129960
129970
  withSearch: false,
129961
129971
  hideSelectedCount: true,
129962
129972
  isInfinite: true,
129963
- schema: schema$2,
129973
+ schema: schema2,
129964
129974
  entities: this.state.dups
129965
129975
  }
129966
129976
  ), /* @__PURE__ */ React__default$1.createElement(
@@ -139690,13 +139700,38 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139690
139700
  });
139691
139701
  }, "onRowSelect"));
139692
139702
  this.commands = getCommands(this);
139703
+ }
139704
+ render() {
139705
+ var _a2;
139706
+ const {
139707
+ readOnly: readOnly2,
139708
+ annotations = {},
139709
+ annotationVisibility: annotationVisibility2,
139710
+ sequenceLength,
139711
+ selectionLayer: selectionLayer2,
139712
+ sequence: sequence2,
139713
+ isProtein: isProtein2,
139714
+ allPartTags,
139715
+ annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
139716
+ selectedAnnotationId
139717
+ } = this.props;
139718
+ const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
139719
+ const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
139720
+ const annotationsToUse = map$3(annotations, (annotation) => {
139721
+ return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
139722
+ strand: annotation.forward ? 1 : -1
139723
+ }), {
139724
+ size: getRangeLength(annotation, sequenceLength)
139725
+ });
139726
+ });
139727
+ const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
139693
139728
  this.schema = {
139694
139729
  fields: [
139695
139730
  {
139696
139731
  path: "name",
139697
139732
  type: "string",
139698
- render: (name2, ann, row, props2) => {
139699
- const checked = !props2.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139733
+ render: (name2, ann) => {
139734
+ const checked = !this.props.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139700
139735
  return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, /* @__PURE__ */ React__default$1.createElement(
139701
139736
  Icon,
139702
139737
  {
@@ -139705,9 +139740,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139705
139740
  e2.stopPropagation();
139706
139741
  const upperType = startCase(annotationType);
139707
139742
  if (checked) {
139708
- props2[`hide${upperType}Individual`]([ann.id]);
139743
+ this.props[`hide${upperType}Individual`]([ann.id]);
139709
139744
  } else {
139710
- props2[`show${upperType}Individual`]([ann.id]);
139745
+ this.props[`show${upperType}Individual`]([ann.id]);
139711
139746
  }
139712
139747
  },
139713
139748
  style: {
@@ -139725,10 +139760,10 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139725
139760
  {
139726
139761
  path: "bases",
139727
139762
  type: "string",
139728
- render: (bases, primer, row, props2) => {
139763
+ render: (bases, primer) => {
139729
139764
  let bps = bases;
139730
139765
  if (!bases) {
139731
- bps = getSequenceWithinRange(primer, props2.sequence);
139766
+ bps = getSequenceWithinRange(primer, this.props.sequence);
139732
139767
  if (!primer.forward) {
139733
139768
  bps = getReverseComplementSequenceString(bps);
139734
139769
  }
@@ -139753,12 +139788,12 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139753
139788
  }
139754
139789
  }
139755
139790
  ],
139756
- sizeSchema,
139791
+ sizeSchema(this.props.isProtein),
139757
139792
  ...withTags && this.props.allPartTags ? [
139758
139793
  {
139759
139794
  path: "tags",
139760
139795
  type: "string",
139761
- getValueToFilterOn: (o2, { keyedPartTags }) => {
139796
+ getValueToFilterOn: (o2) => {
139762
139797
  const toRet = (o2.tags || []).map((tagId) => {
139763
139798
  const tag = keyedPartTags[tagId];
139764
139799
  if (!tag)
@@ -139767,7 +139802,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139767
139802
  }).join(" ");
139768
139803
  return toRet;
139769
139804
  },
139770
- render: (tags, b3, c2, { keyedPartTags = {} }) => {
139805
+ render: (tags) => {
139771
139806
  return /* @__PURE__ */ React__default$1.createElement("div", { style: { display: "flex" } }, (tags || []).map((tagId, i) => {
139772
139807
  const tag = keyedPartTags[tagId];
139773
139808
  if (!tag)
@@ -139780,29 +139815,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139780
139815
  { path: "strand", type: "number" }
139781
139816
  ]
139782
139817
  };
139783
- }
139784
- render() {
139785
- const {
139786
- readOnly: readOnly2,
139787
- annotations = {},
139788
- annotationVisibility: annotationVisibility2,
139789
- sequenceLength,
139790
- selectionLayer: selectionLayer2,
139791
- sequence: sequence2,
139792
- isProtein: isProtein2,
139793
- allPartTags,
139794
- annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
139795
- selectedAnnotationId
139796
- } = this.props;
139797
- const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
139798
- const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
139799
- const annotationsToUse = map$3(annotations, (annotation) => {
139800
- return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
139801
- strand: annotation.forward ? 1 : -1
139802
- }), {
139803
- size: getRangeLength(annotation, sequenceLength)
139804
- });
139805
- });
139806
139818
  return /* @__PURE__ */ React__default$1.createElement(
139807
139819
  WrappedDT,
139808
139820
  {
@@ -139923,7 +139935,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139923
139935
  formName: "annotationProperties",
139924
139936
  noRouter: true,
139925
139937
  isProtein: isProtein2,
139926
- keyedPartTags: getKeyedTagsAndTagOptions(allPartTags),
139927
139938
  compact: true,
139928
139939
  isInfinite: true,
139929
139940
  schema: this.schema,
@@ -140286,7 +140297,7 @@ const _OrfProperties = class _OrfProperties extends React__default$1.Component {
140286
140297
  displayName: "Size (aa)",
140287
140298
  type: "number"
140288
140299
  },
140289
- sizeSchema,
140300
+ sizeSchema(this.props.isProtein),
140290
140301
  { path: "frame", type: "number" },
140291
140302
  { path: "strand", type: "number" }
140292
140303
  ]