profinansy-ui-lib 4.0.52 → 4.0.54

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.
@@ -6,6 +6,8 @@ export interface FavoriteInstrumentsGroup {
6
6
  name?: string;
7
7
  /** Айдишники инструментов, которые есть в этой группе **/
8
8
  instruments?: number[] | null;
9
+ /** Инструменты, которые есть в этой группе */
10
+ instruments_info?: FavoriteInstrument[];
9
11
  /** Приоритет сортировки группы **/
10
12
  sort_num: number;
11
13
  /** Id пользователя, к которому принадлежит группы **/
@@ -13,3 +15,22 @@ export interface FavoriteInstrumentsGroup {
13
15
  /** true - дропдаун списка открыт. false - закрыт **/
14
16
  is_collapsed?: boolean;
15
17
  }
18
+ export interface FavoriteInstrument {
19
+ instrument_id: number;
20
+ tiker: string;
21
+ code: string;
22
+ company_id: number;
23
+ market_id: number;
24
+ currency: string;
25
+ price: number;
26
+ asset_type_id: number;
27
+ precision: number;
28
+ on_spb: boolean;
29
+ is_main: boolean;
30
+ is_simple: boolean;
31
+ name: string;
32
+ logo: string;
33
+ prev_price: number;
34
+ delta: number;
35
+ delta_proc: number;
36
+ }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { ICompanyExtended } from '../../../../../../../../../api/instruments/instruments.typed';
3
3
  interface IProps {
4
4
  listOfInstruments: ICompanyExtended[];
5
+ getPriceDiff: (instrumentId: string, currentDiff: number) => number;
5
6
  }
6
- export declare const FavTable: ({ listOfInstruments }: IProps) => React.ReactElement;
7
+ export declare const FavTable: ({ listOfInstruments, getPriceDiff }: IProps) => React.ReactElement;
7
8
  export {};
@@ -1,6 +1,8 @@
1
1
  import { FavoriteInstrumentsGroup } from '../../../../../../../../../../api/favorites/favorites.typed';
2
2
  interface IProps {
3
3
  selectedGroup: FavoriteInstrumentsGroup;
4
+ selectedPeriod: string;
5
+ group: FavoriteInstrumentsGroup;
4
6
  }
5
- export declare const GroupContent: ({ selectedGroup }: IProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const GroupContent: ({ selectedGroup, selectedPeriod, group }: IProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export {};
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { ICompanyExtended } from '../../../../../../../../../../../api/instruments/instruments.typed';
3
3
  interface IProps {
4
4
  companyItem: Pick<ICompanyExtended, 'instrumentId' | 'currency_code'>;
5
+ getPriceDiff: (instrumentId: string, currentDiff: number) => number;
5
6
  }
6
- export declare const TCellPrice: ({ companyItem }: IProps) => React.ReactElement;
7
+ export declare const TCellPrice: ({ companyItem, getPriceDiff }: IProps) => React.ReactElement;
7
8
  export {};