@teselagen/ove 0.5.31-beta.1 → 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(
@@ -48109,20 +48110,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48109
48110
  props = __spreadValues(__spreadValues({}, props), withSelectedEntities2 && typeof withSelectedEntities2 === "string" && {
48110
48111
  [withSelectedEntities2]: selectedEntities
48111
48112
  });
48112
- console.log("history.location", history);
48113
48113
  const currentParams = React$2.useMemo(() => {
48114
- const tmp = (urlConnected ? getCurrentParamsFromUrl(
48115
- history ? history.location : ownProps.location
48116
- ) : reduxFormQueryParams) || {};
48114
+ const tmp = (urlConnected ? getCurrentParamsFromUrl(history.location) : reduxFormQueryParams) || {};
48117
48115
  tmp.searchTerm = reduxFormSearchInput;
48118
48116
  return tmp;
48119
- }, [
48120
- history,
48121
- ownProps.location,
48122
- reduxFormQueryParams,
48123
- reduxFormSearchInput,
48124
- urlConnected
48125
- ]);
48117
+ }, [history, reduxFormQueryParams, reduxFormSearchInput, urlConnected]);
48126
48118
  const tableParams = React$2.useMemo(() => {
48127
48119
  if (!isTableParamsConnected) {
48128
48120
  const updateSearch = /* @__PURE__ */ __name((val2) => {
@@ -48159,7 +48151,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48159
48151
  _tableParams,
48160
48152
  change,
48161
48153
  currentParams,
48162
- history.replace,
48154
+ history,
48163
48155
  isTableParamsConnected,
48164
48156
  props,
48165
48157
  selectedEntities,
@@ -48189,6 +48181,9 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48189
48181
  }
48190
48182
  return {};
48191
48183
  }, [
48184
+ props.entities,
48185
+ props.noOrderError,
48186
+ props.isCodeModel,
48192
48187
  convertedSchema,
48193
48188
  currentParams,
48194
48189
  doNotCoercePageSize,
@@ -48223,7 +48218,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48223
48218
  doNotShowEmptyRows,
48224
48219
  doNotValidateUntouchedRows,
48225
48220
  editingCellSelectAll,
48226
- entities: __origEntities = [],
48221
+ entities: _origEntities = [],
48227
48222
  entitiesAcrossPages: _entitiesAcrossPages,
48228
48223
  entityCount,
48229
48224
  errorParsingUrlString,
@@ -48304,10 +48299,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48304
48299
  withSort,
48305
48300
  withTitle = !isSimple
48306
48301
  } = props;
48307
- const _origEntities = useDeepEqualMemo(__origEntities);
48308
- const entities = useDeepEqualMemo(
48309
- ((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]
48310
48305
  );
48306
+ const entities = useDeepEqualMemo(_entities);
48311
48307
  const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
48312
48308
  React$2.useEffect(() => {
48313
48309
  if (change) {
@@ -48344,12 +48340,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48344
48340
  withDisplayOptions
48345
48341
  ]);
48346
48342
  const schema2 = React$2.useMemo(() => {
48347
- const schema22 = convertSchema(_schema);
48343
+ const schema22 = convertedSchema;
48348
48344
  if (isViewable) {
48349
48345
  schema22.fields = [viewColumn, ...schema22.fields];
48350
48346
  }
48351
48347
  if (isOpenable) {
48352
- schema22.fields = [openColumn, ...schema22.fields];
48348
+ schema22.fields = [
48349
+ openColumn({ onDoubleClick, history }),
48350
+ ...schema22.fields
48351
+ ];
48353
48352
  }
48354
48353
  schema22.fields = schema22.fields.map((field) => {
48355
48354
  if (field.placementPath) {
@@ -48411,13 +48410,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
48411
48410
  }
48412
48411
  return schema22;
48413
48412
  }, [
48414
- _schema,
48415
48413
  cellRenderer,
48414
+ convertedSchema,
48416
48415
  entities,
48416
+ history,
48417
48417
  isInfinite,
48418
48418
  isOpenable,
48419
48419
  isSimple,
48420
48420
  isViewable,
48421
+ onDoubleClick,
48421
48422
  showForcedHiddenColumns,
48422
48423
  tableConfig.columnOrderings,
48423
48424
  tableConfig.fieldOptions,
@@ -50242,7 +50243,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50242
50243
  return entities;
50243
50244
  }, [entities, onlyShowRowsWErrors, reduxFormCellValidation]);
50244
50245
  const renderColumns = React$2.useMemo(
50245
- () => RenderColumns(__spreadProps(__spreadValues({}, props), {
50246
+ () => RenderColumns({
50246
50247
  addFilters,
50247
50248
  cellRenderer,
50248
50249
  change,
@@ -50295,7 +50296,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
50295
50296
  withExpandAndCollapseAllButton,
50296
50297
  withFilter,
50297
50298
  withSort
50298
- })),
50299
+ }),
50299
50300
  // eslint-disable-next-line react-hooks/exhaustive-deps
50300
50301
  [
50301
50302
  SubComponent,
@@ -117754,7 +117755,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117754
117755
  }
117755
117756
  __name(showFileDialog, "showFileDialog");
117756
117757
  const name = "@teselagen/ove";
117757
- const version = "0.5.30";
117758
+ const version = "0.5.31-beta.2";
117758
117759
  const main = "./src/index.js";
117759
117760
  const type = "module";
117760
117761
  const exports$1 = {
@@ -129889,42 +129890,19 @@ const _ComponentToPrint = class _ComponentToPrint extends React$2.Component {
129889
129890
  };
129890
129891
  __name(_ComponentToPrint, "ComponentToPrint");
129891
129892
  let ComponentToPrint = _ComponentToPrint;
129892
- const sizeSchema = {
129893
+ const sizeSchema = /* @__PURE__ */ __name((isProtein2) => ({
129893
129894
  path: "size",
129894
129895
  type: "number",
129895
- render: (val2, _record, i, props) => {
129896
- const record = props.isProtein ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129896
+ render: (val2, _record) => {
129897
+ const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
129897
129898
  const base1Range = convertRangeTo1Based(record);
129898
129899
  const hasJoinedLocations = record.locations && record.locations.length > 1;
129899
- 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) => {
129900
129901
  const base1Range2 = convertRangeTo1Based(loc);
129901
- 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, ")");
129902
129903
  }) : /* @__PURE__ */ React$2.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
129903
129904
  }
129904
- };
129905
- const schema$2 = {
129906
- fields: [
129907
- // ...(noColor
129908
- // ? []
129909
- // : [
129910
- // {
129911
- // path: "color",
129912
- // type: "string",
129913
- // render: color => {
129914
- // return (
129915
- // <ColorPickerPopover>
129916
- // <div style={{ height: 20, width: 20, background: color }} />
129917
- // </ColorPickerPopover>
129918
- // );
129919
- // }
129920
- // }
129921
- // ]),
129922
- { path: "name", type: "string" },
129923
- // ...(noType ? [] : [{ path: "type", type: "string" }]),
129924
- sizeSchema,
129925
- { path: "strand", type: "string" }
129926
- ]
129927
- };
129905
+ }), "sizeSchema");
129928
129906
  const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Component {
129929
129907
  constructor() {
129930
129908
  super(...arguments);
@@ -129970,6 +129948,29 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Co
129970
129948
  render() {
129971
129949
  const { duplicatesToRemoveSelectedEntities, hideModal, type: type2 } = this.props;
129972
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
+ };
129973
129974
  return /* @__PURE__ */ React$2.createElement("div", { className: classNames(core.Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React$2.createElement(
129974
129975
  WrappedDT,
129975
129976
  {
@@ -129987,7 +129988,7 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Co
129987
129988
  withSearch: false,
129988
129989
  hideSelectedCount: true,
129989
129990
  isInfinite: true,
129990
- schema: schema$2,
129991
+ schema: schema2,
129991
129992
  entities: this.state.dups
129992
129993
  }
129993
129994
  ), /* @__PURE__ */ React$2.createElement(
@@ -133611,7 +133612,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
133611
133612
  RenderBases2,
133612
133613
  __spreadValues({}, {
133613
133614
  // ...this.props,
133614
- // bases,
133615
+ bases,
133615
133616
  defaultLinkedOligoMessage,
133616
133617
  getLinkedOligoLink,
133617
133618
  readOnly: this.props.readOnly,
@@ -134200,9 +134201,9 @@ const CustomContentEditable = generateField(/* @__PURE__ */ __name(function Cust
134200
134201
  start: start2,
134201
134202
  end: end2,
134202
134203
  primerBindsOn,
134203
- bases,
134204
134204
  forward
134205
134205
  }) {
134206
+ const bases = input.value;
134206
134207
  const [hasTempError, setTempError] = React$2.useState(false);
134207
134208
  const inputRef = React$2.useRef(null);
134208
134209
  const [caretPosition2, setCaretPosition] = React$2.useState({ start: 0, end: 0 });
@@ -134331,7 +134332,6 @@ const RenderBases = /* @__PURE__ */ __name((props) => {
134331
134332
  normalizedSelection,
134332
134333
  sequenceData2.sequence
134333
134334
  );
134334
- console.log("bps", bps);
134335
134335
  if (!forward) {
134336
134336
  bps = getReverseComplementSequenceString(bps);
134337
134337
  }
@@ -139718,13 +139718,38 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139718
139718
  });
139719
139719
  }, "onRowSelect"));
139720
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 : {};
139721
139746
  this.schema = {
139722
139747
  fields: [
139723
139748
  {
139724
139749
  path: "name",
139725
139750
  type: "string",
139726
- render: (name2, ann, row, props2) => {
139727
- const checked = !props2.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139751
+ render: (name2, ann) => {
139752
+ const checked = !this.props.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
139728
139753
  return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(
139729
139754
  core.Icon,
139730
139755
  {
@@ -139733,9 +139758,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139733
139758
  e2.stopPropagation();
139734
139759
  const upperType = startCase(annotationType);
139735
139760
  if (checked) {
139736
- props2[`hide${upperType}Individual`]([ann.id]);
139761
+ this.props[`hide${upperType}Individual`]([ann.id]);
139737
139762
  } else {
139738
- props2[`show${upperType}Individual`]([ann.id]);
139763
+ this.props[`show${upperType}Individual`]([ann.id]);
139739
139764
  }
139740
139765
  },
139741
139766
  style: {
@@ -139753,10 +139778,10 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139753
139778
  {
139754
139779
  path: "bases",
139755
139780
  type: "string",
139756
- render: (bases, primer, row, props2) => {
139781
+ render: (bases, primer) => {
139757
139782
  let bps = bases;
139758
139783
  if (!bases) {
139759
- bps = getSequenceWithinRange(primer, props2.sequence);
139784
+ bps = getSequenceWithinRange(primer, this.props.sequence);
139760
139785
  if (!primer.forward) {
139761
139786
  bps = getReverseComplementSequenceString(bps);
139762
139787
  }
@@ -139781,12 +139806,12 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139781
139806
  }
139782
139807
  }
139783
139808
  ],
139784
- sizeSchema,
139809
+ sizeSchema(this.props.isProtein),
139785
139810
  ...withTags && this.props.allPartTags ? [
139786
139811
  {
139787
139812
  path: "tags",
139788
139813
  type: "string",
139789
- getValueToFilterOn: (o2, { keyedPartTags }) => {
139814
+ getValueToFilterOn: (o2) => {
139790
139815
  const toRet = (o2.tags || []).map((tagId) => {
139791
139816
  const tag = keyedPartTags[tagId];
139792
139817
  if (!tag)
@@ -139795,7 +139820,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139795
139820
  }).join(" ");
139796
139821
  return toRet;
139797
139822
  },
139798
- render: (tags, b3, c2, { keyedPartTags = {} }) => {
139823
+ render: (tags) => {
139799
139824
  return /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, (tags || []).map((tagId, i) => {
139800
139825
  const tag = keyedPartTags[tagId];
139801
139826
  if (!tag)
@@ -139808,29 +139833,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139808
139833
  { path: "strand", type: "number" }
139809
139834
  ]
139810
139835
  };
139811
- }
139812
- render() {
139813
- const {
139814
- readOnly: readOnly2,
139815
- annotations = {},
139816
- annotationVisibility: annotationVisibility2,
139817
- sequenceLength,
139818
- selectionLayer: selectionLayer2,
139819
- sequence: sequence2,
139820
- isProtein: isProtein2,
139821
- allPartTags,
139822
- annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
139823
- selectedAnnotationId
139824
- } = this.props;
139825
- const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
139826
- const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
139827
- const annotationsToUse = map$3(annotations, (annotation) => {
139828
- return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
139829
- strand: annotation.forward ? 1 : -1
139830
- }), {
139831
- size: getRangeLength(annotation, sequenceLength)
139832
- });
139833
- });
139834
139836
  return /* @__PURE__ */ React$2.createElement(
139835
139837
  WrappedDT,
139836
139838
  {
@@ -139951,7 +139953,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
139951
139953
  formName: "annotationProperties",
139952
139954
  noRouter: true,
139953
139955
  isProtein: isProtein2,
139954
- keyedPartTags: getKeyedTagsAndTagOptions(allPartTags),
139955
139956
  compact: true,
139956
139957
  isInfinite: true,
139957
139958
  schema: this.schema,
@@ -140314,7 +140315,7 @@ const _OrfProperties = class _OrfProperties extends React$2.Component {
140314
140315
  displayName: "Size (aa)",
140315
140316
  type: "number"
140316
140317
  },
140317
- sizeSchema,
140318
+ sizeSchema(this.props.isProtein),
140318
140319
  { path: "frame", type: "number" },
140319
140320
  { path: "strand", type: "number" }
140320
140321
  ]