mdt-client 31.3.17 → 31.3.18
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 +1 -1
- package/types/services/api/ApiAccessor/apiV2Types.d.ts +4 -4
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +1 -1
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +3 -3
- package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +3 -3
- package/types/services/customModules/facades/ILegacyFacade.d.ts +2 -0
- package/types/services/customModules/facades/utils/IApiFacade.d.ts +3 -3
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +31 -0
- package/types/helpers/ui/keyboardUtils/getCommandKey.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { HierarchicalRecord, MdtRecord, RecordId } from "
|
|
2
|
-
import { AnyObject, ColorStyle, FieldPath, LanguageId, Markdown, ModuleId, ObjectCode, ObjectId, ObjectTitle } from "
|
|
1
|
+
import { HierarchicalRecord, MdtRecord, RecordId } from "../../../../scripts/common/Record";
|
|
2
|
+
import { AnyObject, ColorStyle, FieldPath, LanguageId, Markdown, ModuleId, ObjectCode, ObjectId, ObjectTitle } from "../../../../scripts/helpers/types";
|
|
3
3
|
import { FETCH_COUNT_ALIAS } from "../ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count";
|
|
4
4
|
import { DataExtraInformation } from "../ApiAccessorRequestAdapter/handlers/messageTypes";
|
|
5
5
|
import { ApiV1 } from "./apiV1Types";
|
|
6
6
|
import { WithExpandedIds } from "../ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
|
|
7
|
-
import { PermissionLevelString } from "
|
|
8
|
-
import { MessageUiType, UiType } from "
|
|
7
|
+
import { PermissionLevelString } from "../../../../scripts/security/PermissionLevel";
|
|
8
|
+
import { MessageUiType, UiType } from "../../../../scripts/helpers/IUi";
|
|
9
9
|
export declare namespace ApiV2 {
|
|
10
10
|
namespace Request {
|
|
11
11
|
type Common = (Save | AnyObject) & WithMessageAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RecordId } from "
|
|
2
|
-
import { FieldPath } from "
|
|
3
|
-
import { IFilter } from "
|
|
1
|
+
import { RecordId } from "../../../../../../../../../common/Record";
|
|
2
|
+
import { FieldPath } from "../../../../../../../../../helpers/types";
|
|
3
|
+
import { IFilter } from "../../../../../../../../../services/IFilter";
|
|
4
4
|
export declare type HierarchyQueryMeta = {
|
|
5
5
|
hierarchy?: QueryHierarchyBaseData;
|
|
6
6
|
hierarchyLoadMore?: QueryHierarchyLoadMoreData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MdtRecord, RecordId } from "
|
|
2
|
-
import { UiType } from "
|
|
3
|
-
import { ServerResponseType } from "
|
|
1
|
+
import { MdtRecord, RecordId } from "../../../../../scripts/common/Record";
|
|
2
|
+
import { UiType } from "../../../../../scripts/helpers/IUi";
|
|
3
|
+
import { ServerResponseType } from "../../../../services/api/ServerResonseType";
|
|
4
4
|
export interface DataExtraInformation {
|
|
5
5
|
items: DataExtraInformationItems;
|
|
6
6
|
type: ServerResponseType;
|
|
@@ -2,9 +2,9 @@ import { BaseQuery } from "../../../../services/api/BaseQuery";
|
|
|
2
2
|
import { FetchResult } from "../../../../datasources/FetchResult";
|
|
3
3
|
import { ApiRequestOptions } from "../../../../services/api/ApiRequestOptions";
|
|
4
4
|
import { RecordId } from "../../../../common/Record";
|
|
5
|
-
import { AnyObject } from "
|
|
6
|
-
import { MessageMetaData } from "
|
|
7
|
-
import { ApiV2 } from "
|
|
5
|
+
import { AnyObject } from "../../../../../scripts/helpers/types";
|
|
6
|
+
import { MessageMetaData } from "../../../../services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes";
|
|
7
|
+
import { ApiV2 } from "../../../../services/api/ApiAccessor/apiV2Types";
|
|
8
8
|
export interface QueryParams {
|
|
9
9
|
[param: string]: string | number;
|
|
10
10
|
}
|
|
@@ -258,7 +258,24 @@ interface GraphicChartBlockOptions extends BaseChartBlockOptions {
|
|
|
258
258
|
* @default 50
|
|
259
259
|
*/
|
|
260
260
|
maxRecordCount?: number;
|
|
261
|
+
tooltip?: {
|
|
262
|
+
aggregator?: TooltipAggregator;
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
interface TooltipAggregator {
|
|
266
|
+
content?: (options: {
|
|
267
|
+
row: MdtChartsDataRow;
|
|
268
|
+
}) => TooltipAggregatorContent;
|
|
269
|
+
position?: "underKey" | "underValues";
|
|
261
270
|
}
|
|
271
|
+
declare type TooltipAggregatorContent = {
|
|
272
|
+
type: "plainText";
|
|
273
|
+
textContent: string;
|
|
274
|
+
} | {
|
|
275
|
+
type: "captionValue";
|
|
276
|
+
caption: string;
|
|
277
|
+
value: any;
|
|
278
|
+
};
|
|
262
279
|
export interface CommonCanvasOptions {
|
|
263
280
|
bar?: BarCanvasOptions;
|
|
264
281
|
}
|
|
@@ -299,6 +316,20 @@ export interface TwoDimensionalOptions extends GraphicChartBlockOptions {
|
|
|
299
316
|
show?: boolean;
|
|
300
317
|
position?: TwoDimChartLegendPosition;
|
|
301
318
|
};
|
|
319
|
+
valueLabels?: {
|
|
320
|
+
style?: ValueLabelsStyleOptions;
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
interface ValueLabelsStyleOptions {
|
|
324
|
+
cssClassName?: string;
|
|
325
|
+
/**
|
|
326
|
+
* @default 10
|
|
327
|
+
*/
|
|
328
|
+
fontSize?: number;
|
|
329
|
+
/**
|
|
330
|
+
* @default rgba(68, 68, 68, 0.5)
|
|
331
|
+
*/
|
|
332
|
+
color?: string;
|
|
302
333
|
}
|
|
303
334
|
/**
|
|
304
335
|
* @title Круговая диаграмма
|