@rcsb/rcsb-saguaro-app 4.0.6-groups.31 → 4.0.6-groups.32

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,6 +1,6 @@
1
- import { BarData } from "../RcsbChartTools/EventBarComponent";
2
1
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartView/ChartViewInterface";
3
2
  import { ChartDataInterface } from "./ChartDataInterface";
3
+ import { BarData } from "../RcsbChartView/RcsbChartComponents/BarComponent";
4
4
  export declare class BarChartData implements ChartDataInterface {
5
5
  readonly data: ChartObjectInterface[];
6
6
  readonly subData: ChartObjectInterface[];
@@ -1,5 +1,5 @@
1
1
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartView/ChartViewInterface";
2
- import { BarData } from "../RcsbChartTools/EventBarComponent";
2
+ import { BarData } from "../RcsbChartView/RcsbChartComponents/BarComponent";
3
3
  export interface ChartDataInterface {
4
4
  readonly data: ChartObjectInterface[];
5
5
  readonly subData: ChartObjectInterface[];
@@ -1,6 +1,6 @@
1
1
  import { ChartDataInterface } from "./ChartDataInterface";
2
2
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartView/ChartViewInterface";
3
- import { BarData } from "../RcsbChartTools/EventBarComponent";
3
+ import { BarData } from "../RcsbChartView/RcsbChartComponents/BarComponent";
4
4
  export declare class HistogramChartData implements ChartDataInterface {
5
5
  readonly config: ChartConfigInterface;
6
6
  readonly data: ChartObjectInterface[];
@@ -1,8 +1,8 @@
1
1
  import { ChartObjectInterface } from "../RcsbChartView/ChartViewInterface";
2
- import { BarData } from "./EventBarComponent";
2
+ import { BarData } from "../RcsbChartView/RcsbChartComponents/BarComponent";
3
3
  export declare class ChartTools {
4
4
  static readonly paddingLeft: number;
5
- static readonly paddingBottom: number;
5
+ static readonly paddingTopLarge: number;
6
6
  static readonly paddingTop: number;
7
7
  static readonly paddingRight: number;
8
8
  static readonly constWidth: number;
@@ -1,10 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { ReactNode } from "react";
3
3
  import { ChartViewInterface } from "./ChartViewInterface";
4
- import { ChartDataInterface } from "../RcsbChartData/ChartDataInterface";
5
- export declare class BarChartView extends React.Component<ChartViewInterface, ChartViewInterface> {
6
- readonly state: ChartViewInterface;
7
- readonly dataProvider: ChartDataInterface;
4
+ export declare class BarChartView extends React.Component<ChartViewInterface, {}> {
5
+ private dataProvider;
8
6
  constructor(props: ChartViewInterface);
9
7
  render(): ReactNode;
10
8
  }
@@ -1,4 +1,4 @@
1
- import { BarClickCallbackType } from "../RcsbChartTools/EventBarComponent";
1
+ import { BarClickCallbackType } from "./RcsbChartComponents/BarComponent";
2
2
  export interface ChartObjectInterface {
3
3
  label: string | number;
4
4
  population: number;
@@ -1,10 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { ReactNode } from "react";
3
3
  import { ChartViewInterface } from "./ChartViewInterface";
4
- import { ChartDataInterface } from "../RcsbChartData/ChartDataInterface";
5
- export declare class HistogramChartView extends React.Component<ChartViewInterface, ChartViewInterface> {
6
- readonly state: ChartViewInterface;
7
- readonly dataProvider: ChartDataInterface;
4
+ export declare class HistogramChartView extends React.Component<ChartViewInterface, {}> {
5
+ private dataProvider;
8
6
  constructor(props: ChartViewInterface);
9
7
  render(): ReactNode;
10
8
  }
@@ -7,14 +7,14 @@ export interface BarData {
7
7
  label?: string;
8
8
  isLabel: boolean;
9
9
  }
10
- export interface EventBarComponentInterface extends BarProps {
10
+ export interface BarComponentInterface extends BarProps {
11
11
  barClick?: BarClickCallbackType;
12
12
  barHover?: BarClickCallbackType;
13
13
  barLeave?: BarClickCallbackType;
14
14
  x0?: number;
15
15
  }
16
16
  export declare type BarClickCallbackType = (datum: BarData, data: BarData[], e: React.MouseEvent<any>) => void;
17
- export declare class EventBarComponent extends React.Component<EventBarComponentInterface, {
17
+ export declare class BarComponent extends React.Component<BarComponentInterface, {
18
18
  fillColor: string;
19
19
  }> {
20
20
  private readonly MIN_THR;
@@ -8,9 +8,17 @@ export interface RcsbChartLayoutInterface {
8
8
  layout: [string, string?][];
9
9
  chartMap: ChartMapType;
10
10
  }
11
- export declare class RcsbChartLayout extends React.Component<RcsbChartLayoutInterface, {}> {
11
+ export declare class RcsbChartLayout extends React.Component<RcsbChartLayoutInterface, {
12
+ chartMap: ChartMapType;
13
+ }> {
14
+ readonly state: {
15
+ chartMap: ChartMapType;
16
+ };
12
17
  constructor(props: RcsbChartLayoutInterface);
13
18
  render(): JSX.Element;
19
+ componentDidMount(): void;
14
20
  private renderRow;
15
21
  private renderCell;
22
+ private subscribe;
23
+ private updateChartMap;
16
24
  }
@@ -0,0 +1,4 @@
1
+ import { SearchQueryType } from "../../../RcsbSeacrh/SearchRequestProperty";
2
+ import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
3
+ import { ChartMapType } from "../../../RcsbChartWeb/RcsbChartView/RcsbChartLayout";
4
+ export declare function groupDisplayChartMap(groupProvenanceId: GroupProvenanceId, groupId: string, searchQuery?: SearchQueryType): Promise<ChartMapType>;
@@ -0,0 +1,6 @@
1
+ import { Subject } from "rxjs";
2
+ import { ChartMapType } from "../../../RcsbChartWeb/RcsbChartView/RcsbChartLayout";
3
+ export interface SearchQueryContextManagerSubjectInterface {
4
+ chartMap: ChartMapType;
5
+ }
6
+ export declare const searchQueryContextManager: Subject<SearchQueryContextManagerSubjectInterface>;