@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.
@@ -1,5 +1,5 @@
1
- export namespace sizeSchema {
2
- let path: string;
3
- let type: string;
4
- function render(val: any, _record: any, i: any, props: any): import("react/jsx-runtime").JSX.Element;
5
- }
1
+ export function sizeSchema(isProtein: any): {
2
+ path: string;
3
+ type: string;
4
+ render: (val: any, _record: any) => import("react/jsx-runtime").JSX.Element;
5
+ };
package/index.cjs.js CHANGED
@@ -34297,18 +34297,14 @@ const viewColumn = {
34297
34297
  return /* @__PURE__ */ React$2.createElement(core.Icon, { className: "dt-eyeIcon", icon: "eye-open" });
34298
34298
  }
34299
34299
  };
34300
- const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
34301
- render: (val2, record, rowInfo, props) => {
34300
+ const openColumn = /* @__PURE__ */ __name(({ onDoubleClick, history }) => __spreadProps(__spreadValues({}, viewColumn), {
34301
+ render: (val2, record, rowInfo) => {
34302
34302
  return /* @__PURE__ */ React$2.createElement(core.Tooltip, { content: "Open" }, /* @__PURE__ */ React$2.createElement(
34303
34303
  core.Button,
34304
34304
  {
34305
34305
  onClick: (e2) => {
34306
34306
  e2.stopPropagation();
34307
- props.onDoubleClick && props.onDoubleClick(
34308
- rowInfo.original,
34309
- rowInfo.index,
34310
- props.history
34311
- );
34307
+ onDoubleClick && onDoubleClick(rowInfo.original, rowInfo.index, history);
34312
34308
  },
34313
34309
  minimal: true,
34314
34310
  small: true,
@@ -34317,7 +34313,7 @@ const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
34317
34313
  }
34318
34314
  ));
34319
34315
  }
34320
- });
34316
+ }), "openColumn");
34321
34317
  function convertSchema(schema2) {
34322
34318
  let schemaToUse = schema2;
34323
34319
  if (!schemaToUse.fields && Array.isArray(schema2)) {
@@ -46750,9 +46746,7 @@ const ColumnFilterMenu = /* @__PURE__ */ __name(({
46750
46746
  core.Popover,
46751
46747
  {
46752
46748
  position: "bottom",
46753
- onClose: () => {
46754
- setColumnFilterMenuOpen(false);
46755
- },
46749
+ onClose: () => setColumnFilterMenuOpen(false),
46756
46750
  isOpen: columnFilterMenuOpen,
46757
46751
  modifiers: {
46758
46752
  preventOverflow: { enabled: true },
@@ -47419,61 +47413,60 @@ const RenderCell = /* @__PURE__ */ __name(({
47419
47413
  }
47420
47414
  ));
47421
47415
  }, "RenderCell");
47422
- const RenderColumns = /* @__PURE__ */ __name((props) => {
47423
- const {
47424
- addFilters,
47425
- cellRenderer,
47426
- change,
47427
- columns,
47428
- currentParams,
47429
- compact: compact3,
47430
- editableCellValue,
47431
- editingCell,
47432
- editingCellSelectAll,
47433
- entities,
47434
- expandedEntityIdMap,
47435
- extraCompact,
47436
- filters,
47437
- getCellHoverText,
47438
- isCellEditable,
47439
- isEntityDisabled,
47440
- isLocalCall,
47441
- isSimple,
47442
- isSingleSelect,
47443
- isSelectionARectangle,
47444
- noDeselectAll,
47445
- noSelect,
47446
- noUserSelect,
47447
- onDeselect,
47448
- onMultiRowSelect,
47449
- onRowClick,
47450
- onRowSelect,
47451
- onSingleRowSelect,
47452
- order: order2,
47453
- primarySelectedCellId,
47454
- reduxFormCellValidation,
47455
- reduxFormSelectedEntityIdMap,
47456
- refocusTable,
47457
- removeSingleFilter = noop$6,
47458
- schema: schema2,
47459
- selectedCells,
47460
- setEditableCellValue,
47461
- setEditingCell,
47462
- setExpandedEntityIdMap,
47463
- setNewParams,
47464
- setOrder = noop$6,
47465
- setSelectedCells,
47466
- shouldShowSubComponent,
47467
- startCellEdit,
47468
- SubComponent,
47469
- tableRef,
47470
- updateEntitiesHelper,
47471
- updateValidation,
47472
- withCheckboxes,
47473
- withExpandAndCollapseAllButton,
47474
- withFilter: _withFilter,
47475
- withSort = true
47476
- } = props;
47416
+ const RenderColumns = /* @__PURE__ */ __name(({
47417
+ addFilters,
47418
+ cellRenderer,
47419
+ change,
47420
+ columns,
47421
+ currentParams,
47422
+ compact: compact3,
47423
+ editableCellValue,
47424
+ editingCell,
47425
+ editingCellSelectAll,
47426
+ entities,
47427
+ expandedEntityIdMap,
47428
+ extraCompact,
47429
+ filters,
47430
+ getCellHoverText,
47431
+ isCellEditable,
47432
+ isEntityDisabled,
47433
+ isLocalCall,
47434
+ isSimple,
47435
+ isSingleSelect,
47436
+ isSelectionARectangle,
47437
+ noDeselectAll,
47438
+ noSelect,
47439
+ noUserSelect,
47440
+ onDeselect,
47441
+ onMultiRowSelect,
47442
+ onRowClick,
47443
+ onRowSelect,
47444
+ onSingleRowSelect,
47445
+ order: order2,
47446
+ primarySelectedCellId,
47447
+ reduxFormCellValidation,
47448
+ reduxFormSelectedEntityIdMap,
47449
+ refocusTable,
47450
+ removeSingleFilter = noop$6,
47451
+ schema: schema2,
47452
+ selectedCells,
47453
+ setEditableCellValue,
47454
+ setEditingCell,
47455
+ setExpandedEntityIdMap,
47456
+ setNewParams,
47457
+ setOrder = noop$6,
47458
+ setSelectedCells,
47459
+ shouldShowSubComponent,
47460
+ startCellEdit,
47461
+ SubComponent,
47462
+ tableRef,
47463
+ updateEntitiesHelper,
47464
+ updateValidation,
47465
+ withCheckboxes,
47466
+ withExpandAndCollapseAllButton,
47467
+ withFilter: _withFilter,
47468
+ withSort = true
47469
+ }) => {
47477
47470
  const withFilter = _withFilter === void 0 ? !isSimple : _withFilter;
47478
47471
  const onDragEnd2 = /* @__PURE__ */ __name((cellsToSelect) => {
47479
47472
  const [primaryRowId, primaryCellPath] = primarySelectedCellId.split(":");
@@ -47645,13 +47638,19 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
47645
47638
  let text2 = typeof val2 !== "string" ? row.value : val2;
47646
47639
  const record = row.original;
47647
47640
  if (column.getClipboardData) {
47648
- text2 = column.getClipboardData(row.value, record, row, props);
47641
+ text2 = column.getClipboardData(row.value, record, row);
47649
47642
  } else if (column.getValueToFilterOn) {
47650
- text2 = column.getValueToFilterOn(record, props);
47643
+ text2 = column.getValueToFilterOn(record);
47651
47644
  } else if (column.render) {
47652
- text2 = column.render(row.value, record, row, props);
47645
+ text2 = column.render(row.value, record, row, {
47646
+ currentParams,
47647
+ setNewParams
47648
+ });
47653
47649
  } else if (cellRenderer && cellRenderer[column.path]) {
47654
- text2 = cellRenderer[column.path](row.value, row.original, row, props);
47650
+ text2 = cellRenderer[column.path](row.value, row.original, row, {
47651
+ currentParams,
47652
+ setNewParams
47653
+ });
47655
47654
  } else if (text2) {
47656
47655
  text2 = React$2.isValidElement(text2) ? text2 : String(text2);
47657
47656
  }
@@ -47869,17 +47868,18 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
47869
47868
  }
47870
47869
  if (cellRenderer && cellRenderer[column.path]) {
47871
47870
  tableColumn.Cell = (row) => {
47872
- const val2 = cellRenderer[column.path](
47873
- row.value,
47874
- row.original,
47875
- row,
47876
- props
47877
- );
47871
+ const val2 = cellRenderer[column.path](row.value, row.original, row, {
47872
+ currentParams,
47873
+ setNewParams
47874
+ });
47878
47875
  return val2;
47879
47876
  };
47880
47877
  } else if (column.render) {
47881
47878
  tableColumn.Cell = (row) => {
47882
- const val2 = column.render(row.value, row.original, row, props);
47879
+ const val2 = column.render(row.value, row.original, row, {
47880
+ currentParams,
47881
+ setNewParams
47882
+ });
47883
47883
  return val2;
47884
47884
  };
47885
47885
  } else if (column.type === "timestamp") {
@@ -48067,12 +48067,13 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48067
48067
  // }
48068
48068
  ]
48069
48069
  }, props.defaults || {}));
48070
- let _schema;
48071
- if (isFunction$6(__schema))
48072
- _schema = __schema(props);
48073
- else
48074
- _schema = __schema;
48075
- const convertedSchema = convertSchema(_schema);
48070
+ const _schema = React$2.useMemo(() => {
48071
+ if (isFunction$6(__schema))
48072
+ return __schema(props);
48073
+ else
48074
+ return __schema;
48075
+ }, [__schema, props]);
48076
+ const convertedSchema = React$2.useMemo(() => convertSchema(_schema), [_schema]);
48076
48077
  if (isLocalCall) {
48077
48078
  if (!noForm && (!formName || formName === "tgDataTable")) {
48078
48079
  throw new Error(
@@ -48180,6 +48181,9 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48180
48181
  }
48181
48182
  return {};
48182
48183
  }, [
48184
+ props.entities,
48185
+ props.noOrderError,
48186
+ props.isCodeModel,
48183
48187
  convertedSchema,
48184
48188
  currentParams,
48185
48189
  doNotCoercePageSize,
@@ -48214,7 +48218,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48214
48218
  doNotShowEmptyRows,
48215
48219
  doNotValidateUntouchedRows,
48216
48220
  editingCellSelectAll,
48217
- entities: __origEntities = [],
48221
+ entities: _origEntities = [],
48218
48222
  entitiesAcrossPages: _entitiesAcrossPages,
48219
48223
  entityCount,
48220
48224
  errorParsingUrlString,
@@ -48295,10 +48299,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48295
48299
  withSort,
48296
48300
  withTitle = !isSimple
48297
48301
  } = props;
48298
- const _origEntities = useDeepEqualMemo(__origEntities);
48299
- const entities = useDeepEqualMemo(
48300
- ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || []
48302
+ const _entities = React$2.useMemo(
48303
+ () => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
48304
+ [_origEntities, reduxFormEntities]
48301
48305
  );
48306
+ const entities = useDeepEqualMemo(_entities);
48302
48307
  const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
48303
48308
  React$2.useEffect(() => {
48304
48309
  if (change) {
@@ -48335,12 +48340,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48335
48340
  withDisplayOptions
48336
48341
  ]);
48337
48342
  const schema2 = React$2.useMemo(() => {
48338
- const schema22 = convertSchema(_schema);
48343
+ const schema22 = convertedSchema;
48339
48344
  if (isViewable) {
48340
48345
  schema22.fields = [viewColumn, ...schema22.fields];
48341
48346
  }
48342
48347
  if (isOpenable) {
48343
- schema22.fields = [openColumn, ...schema22.fields];
48348
+ schema22.fields = [
48349
+ openColumn({ onDoubleClick, history }),
48350
+ ...schema22.fields
48351
+ ];
48344
48352
  }
48345
48353
  schema22.fields = schema22.fields.map((field) => {
48346
48354
  if (field.placementPath) {
@@ -48402,13 +48410,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48402
48410
  }
48403
48411
  return schema22;
48404
48412
  }, [
48405
- _schema,
48406
48413
  cellRenderer,
48414
+ convertedSchema,
48407
48415
  entities,
48416
+ history,
48408
48417
  isInfinite,
48409
48418
  isOpenable,
48410
48419
  isSimple,
48411
48420
  isViewable,
48421
+ onDoubleClick,
48412
48422
  showForcedHiddenColumns,
48413
48423
  tableConfig.columnOrderings,
48414
48424
  tableConfig.fieldOptions,
@@ -50233,7 +50243,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50233
50243
  return entities;
50234
50244
  }, [entities, onlyShowRowsWErrors, reduxFormCellValidation]);
50235
50245
  const renderColumns = React$2.useMemo(
50236
- () => RenderColumns(__spreadProps(__spreadValues({}, props), {
50246
+ () => RenderColumns({
50237
50247
  addFilters,
50238
50248
  cellRenderer,
50239
50249
  change,
@@ -50286,7 +50296,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50286
50296
  withExpandAndCollapseAllButton,
50287
50297
  withFilter,
50288
50298
  withSort
50289
- })),
50299
+ }),
50290
50300
  // eslint-disable-next-line react-hooks/exhaustive-deps
50291
50301
  [
50292
50302
  SubComponent,
@@ -117745,7 +117755,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117745
117755
  }
117746
117756
  __name(showFileDialog, "showFileDialog");
117747
117757
  const name = "@teselagen/ove";
117748
- const version = "0.5.31-beta.1";
117758
+ const version = "0.5.31-beta.2";
117749
117759
  const main = "./src/index.js";
117750
117760
  const type = "module";
117751
117761
  const exports$1 = {
@@ -129880,42 +129890,19 @@ const _ComponentToPrint = class _ComponentToPrint extends React$2.Component {
129880
129890
  };
129881
129891
  __name(_ComponentToPrint, "ComponentToPrint");
129882
129892
  let ComponentToPrint = _ComponentToPrint;
129883
- const sizeSchema = {
129893
+ const sizeSchema = /* @__PURE__ */ __name((isProtein2) => ({
129884
129894
  path: "size",
129885
129895
  type: "number",
129886
- render: (val2, _record, i, props) => {
129887
- const record = props.isProtein ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129896
+ render: (val2, _record) => {
129897
+ const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129888
129898
  const base1Range = convertRangeTo1Based(record);
129889
129899
  const hasJoinedLocations = record.locations && record.locations.length > 1;
129890
- return /* @__PURE__ */ React$2.createElement("span", null, props.isProtein ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React$2.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i2) => {
129900
+ return /* @__PURE__ */ React$2.createElement("span", null, isProtein2 ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React$2.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i) => {
129891
129901
  const base1Range2 = convertRangeTo1Based(loc);
129892
- return /* @__PURE__ */ React$2.createElement("span", { key: i2 }, "(", base1Range2.start, "-", base1Range2.end, ")");
129902
+ return /* @__PURE__ */ React$2.createElement("span", { key: i }, "(", base1Range2.start, "-", base1Range2.end, ")");
129893
129903
  }) : /* @__PURE__ */ React$2.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
129894
129904
  }
129895
- };
129896
- const schema$2 = {
129897
- fields: [
129898
- // ...(noColor
129899
- // ? []
129900
- // : [
129901
- // {
129902
- // path: "color",
129903
- // type: "string",
129904
- // render: color => {
129905
- // return (
129906
- // <ColorPickerPopover>
129907
- // <div style={{ height: 20, width: 20, background: color }} />
129908
- // </ColorPickerPopover>
129909
- // );
129910
- // }
129911
- // }
129912
- // ]),
129913
- { path: "name", type: "string" },
129914
- // ...(noType ? [] : [{ path: "type", type: "string" }]),
129915
- sizeSchema,
129916
- { path: "strand", type: "string" }
129917
- ]
129918
- };
129905
+ }), "sizeSchema");
129919
129906
  const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Component {
129920
129907
  constructor() {
129921
129908
  super(...arguments);
@@ -129961,6 +129948,29 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Co
129961
129948
  render() {
129962
129949
  const { duplicatesToRemoveSelectedEntities, hideModal, type: type2 } = this.props;
129963
129950
  const selectedIds = this.state.dups.map((d2) => d2.id);
129951
+ const schema2 = {
129952
+ fields: [
129953
+ // ...(noColor
129954
+ // ? []
129955
+ // : [
129956
+ // {
129957
+ // path: "color",
129958
+ // type: "string",
129959
+ // render: color => {
129960
+ // return (
129961
+ // <ColorPickerPopover>
129962
+ // <div style={{ height: 20, width: 20, background: color }} />
129963
+ // </ColorPickerPopover>
129964
+ // );
129965
+ // }
129966
+ // }
129967
+ // ]),
129968
+ { path: "name", type: "string" },
129969
+ // ...(noType ? [] : [{ path: "type", type: "string" }]),
129970
+ sizeSchema(this.props.isProtein),
129971
+ { path: "strand", type: "string" }
129972
+ ]
129973
+ };
129964
129974
  return /* @__PURE__ */ React$2.createElement("div", { className: classNames(core.Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React$2.createElement(
129965
129975
  WrappedDT,
129966
129976
  {
@@ -129978,7 +129988,7 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Co
129978
129988
  withSearch: false,
129979
129989
  hideSelectedCount: true,
129980
129990
  isInfinite: true,
129981
- schema: schema$2,
129991
+ schema: schema2,
129982
129992
  entities: this.state.dups
129983
129993
  }
129984
129994
  ), /* @__PURE__ */ React$2.createElement(
@@ -139708,13 +139718,38 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139708
139718
  });
139709
139719
  }, "onRowSelect"));
139710
139720
  this.commands = getCommands(this);
139721
+ }
139722
+ render() {
139723
+ var _a2;
139724
+ const {
139725
+ readOnly: readOnly2,
139726
+ annotations = {},
139727
+ annotationVisibility: annotationVisibility2,
139728
+ sequenceLength,
139729
+ selectionLayer: selectionLayer2,
139730
+ sequence: sequence2,
139731
+ isProtein: isProtein2,
139732
+ allPartTags,
139733
+ annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
139734
+ selectedAnnotationId
139735
+ } = this.props;
139736
+ const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
139737
+ const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
139738
+ const annotationsToUse = map$3(annotations, (annotation) => {
139739
+ return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
139740
+ strand: annotation.forward ? 1 : -1
139741
+ }), {
139742
+ size: getRangeLength(annotation, sequenceLength)
139743
+ });
139744
+ });
139745
+ const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
139711
139746
  this.schema = {
139712
139747
  fields: [
139713
139748
  {
139714
139749
  path: "name",
139715
139750
  type: "string",
139716
- render: (name2, ann, row, props2) => {
139717
- const checked = !props2.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139751
+ render: (name2, ann) => {
139752
+ const checked = !this.props.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139718
139753
  return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(
139719
139754
  core.Icon,
139720
139755
  {
@@ -139723,9 +139758,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139723
139758
  e2.stopPropagation();
139724
139759
  const upperType = startCase(annotationType);
139725
139760
  if (checked) {
139726
- props2[`hide${upperType}Individual`]([ann.id]);
139761
+ this.props[`hide${upperType}Individual`]([ann.id]);
139727
139762
  } else {
139728
- props2[`show${upperType}Individual`]([ann.id]);
139763
+ this.props[`show${upperType}Individual`]([ann.id]);
139729
139764
  }
139730
139765
  },
139731
139766
  style: {
@@ -139743,10 +139778,10 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139743
139778
  {
139744
139779
  path: "bases",
139745
139780
  type: "string",
139746
- render: (bases, primer, row, props2) => {
139781
+ render: (bases, primer) => {
139747
139782
  let bps = bases;
139748
139783
  if (!bases) {
139749
- bps = getSequenceWithinRange(primer, props2.sequence);
139784
+ bps = getSequenceWithinRange(primer, this.props.sequence);
139750
139785
  if (!primer.forward) {
139751
139786
  bps = getReverseComplementSequenceString(bps);
139752
139787
  }
@@ -139771,12 +139806,12 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139771
139806
  }
139772
139807
  }
139773
139808
  ],
139774
- sizeSchema,
139809
+ sizeSchema(this.props.isProtein),
139775
139810
  ...withTags && this.props.allPartTags ? [
139776
139811
  {
139777
139812
  path: "tags",
139778
139813
  type: "string",
139779
- getValueToFilterOn: (o2, { keyedPartTags }) => {
139814
+ getValueToFilterOn: (o2) => {
139780
139815
  const toRet = (o2.tags || []).map((tagId) => {
139781
139816
  const tag = keyedPartTags[tagId];
139782
139817
  if (!tag)
@@ -139785,7 +139820,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139785
139820
  }).join(" ");
139786
139821
  return toRet;
139787
139822
  },
139788
- render: (tags, b3, c2, { keyedPartTags = {} }) => {
139823
+ render: (tags) => {
139789
139824
  return /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, (tags || []).map((tagId, i) => {
139790
139825
  const tag = keyedPartTags[tagId];
139791
139826
  if (!tag)
@@ -139798,29 +139833,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139798
139833
  { path: "strand", type: "number" }
139799
139834
  ]
139800
139835
  };
139801
- }
139802
- render() {
139803
- const {
139804
- readOnly: readOnly2,
139805
- annotations = {},
139806
- annotationVisibility: annotationVisibility2,
139807
- sequenceLength,
139808
- selectionLayer: selectionLayer2,
139809
- sequence: sequence2,
139810
- isProtein: isProtein2,
139811
- allPartTags,
139812
- annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
139813
- selectedAnnotationId
139814
- } = this.props;
139815
- const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
139816
- const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
139817
- const annotationsToUse = map$3(annotations, (annotation) => {
139818
- return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
139819
- strand: annotation.forward ? 1 : -1
139820
- }), {
139821
- size: getRangeLength(annotation, sequenceLength)
139822
- });
139823
- });
139824
139836
  return /* @__PURE__ */ React$2.createElement(
139825
139837
  WrappedDT,
139826
139838
  {
@@ -139941,7 +139953,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139941
139953
  formName: "annotationProperties",
139942
139954
  noRouter: true,
139943
139955
  isProtein: isProtein2,
139944
- keyedPartTags: getKeyedTagsAndTagOptions(allPartTags),
139945
139956
  compact: true,
139946
139957
  isInfinite: true,
139947
139958
  schema: this.schema,
@@ -140304,7 +140315,7 @@ const _OrfProperties = class _OrfProperties extends React$2.Component {
140304
140315
  displayName: "Size (aa)",
140305
140316
  type: "number"
140306
140317
  },
140307
- sizeSchema,
140318
+ sizeSchema(this.props.isProtein),
140308
140319
  { path: "frame", type: "number" },
140309
140320
  { path: "strand", type: "number" }
140310
140321
  ]