mdt-client 31.3.26 → 31.3.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdt-client",
3
- "version": "31.3.26",
3
+ "version": "31.3.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,10 +3,11 @@ import { PredefinedValues } from "mdtServices/customModules/facades/internalModu
3
3
  import { Field } from "mdtScripts/common/Field";
4
4
  import { Table } from "mdtScripts/common/Table";
5
5
  import { FieldPath } from "mdtScripts/helpers/types";
6
+ export declare type ImportMappingColumns = {
7
+ [fieldPath: string]: string;
8
+ };
6
9
  interface ImportMapping {
7
- columns?: {
8
- [fieldPath: string]: string;
9
- };
10
+ columns?: ImportMappingColumns;
10
11
  keys?: string[];
11
12
  }
12
13
  export interface ImportUploadData {
@@ -1,4 +1,5 @@
1
1
  import { IZone } from "../../helpers/zone/IZone";
2
2
  export interface FormZones {
3
3
  beforeLayout: IZone;
4
+ beforeForm: IZone;
4
5
  }
@@ -421,6 +421,7 @@ export interface ValueLabelsChartOptions {
421
421
  handleElement?: (options: {
422
422
  element: SVGElement;
423
423
  value: number;
424
+ dataRow: MdtChartsDataRow;
424
425
  }) => void;
425
426
  format?: (options: {
426
427
  value: number;
@@ -16,10 +16,14 @@ export interface ChartEvents {
16
16
  records: MdtRecord[];
17
17
  };
18
18
  }
19
+ export interface ChartClearSelectionOptions {
20
+ /** @default true */
21
+ fireEvent?: boolean;
22
+ }
19
23
  export interface IChartControlFacade extends ViewControl {
20
24
  readonly on: EventEmitterSubscribeController<ChartEvents>["subscribe"];
21
25
  refreshData(): void;
22
26
  reCreate(newOptionsCreator?: () => ChartFormControlFacadeOptions): void;
23
27
  init(): void;
24
- clearSelection(): void;
28
+ clearSelection(options?: ChartClearSelectionOptions): void;
25
29
  }
@@ -5,6 +5,8 @@ import { DashboardFiltersPublicConfig, ReportDashboardFetchFilter } from "./filt
5
5
  import { DynamicChartCtrlPublicOptions } from "../controls/dynamicChart/dynamicChartControlPublicOptions";
6
6
  import { IChartControlFacade } from "../../facade/IChartControlFacade";
7
7
  import { DashboardListConfig } from "./listConfig";
8
+ import { ButtonFacade } from "mdtServices/customModules/facades/Form/IFormFacade";
9
+ import { Icon } from "mdtScripts/components/icon/iconOptions";
8
10
  export interface ReportDashboardConfig<ChartId extends string, DynamicChartId extends string, ListId extends string> {
9
11
  filters: DashboardFiltersPublicConfig;
10
12
  defaultCharts?: Record<ChartId, DashboardChartConfig>;
@@ -18,6 +20,14 @@ export interface ReportDashboardConfig<ChartId extends string, DynamicChartId ex
18
20
  defaultChart: (id: ChartId, width: number) => AnyObject;
19
21
  dynamicChart: (id: DynamicChartId, width: number, options?: DynamicChartCtrlPublicOptions) => AnyObject;
20
22
  list: (id: ListId, width: number, options?: AnyObject) => AnyObject;
23
+ filterPanel: (width: number, options: {
24
+ items: AnyObject[];
25
+ header?: {
26
+ title?: string;
27
+ icon?: Icon;
28
+ clearButton?: Partial<ButtonFacade>;
29
+ };
30
+ }) => AnyObject;
21
31
  };
22
32
  }) => AnyObject;
23
33
  events?: {