mdt-client 31.3.17 → 31.3.19

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.17",
3
+ "version": "31.3.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,11 +1,11 @@
1
- import { HierarchicalRecord, MdtRecord, RecordId } from "mdtScripts/common/Record";
2
- import { AnyObject, ColorStyle, FieldPath, LanguageId, Markdown, ModuleId, ObjectCode, ObjectId, ObjectTitle } from "mdtScripts/helpers/types";
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 "mdtScripts/security/PermissionLevel";
8
- import { MessageUiType, UiType } from "mdtScripts/helpers/IUi";
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;
@@ -111,6 +111,7 @@ export declare namespace ApiV2 {
111
111
  dependency?: Exts.Dependency;
112
112
  placeIn?: Exts.PlaceIn;
113
113
  audit?: Exts.Audit;
114
+ tabular?: Exts.Tabular;
114
115
  tag?: Exts.Tag;
115
116
  workflow?: Exts.Workflow;
116
117
  workflowStage?: Exts.WorkflowStage;
@@ -168,6 +169,20 @@ export declare namespace ApiV2 {
168
169
  };
169
170
  type Audit = TicketQuery;
170
171
  type Tag = TicketQuery;
172
+ interface Tabular {
173
+ select?: {
174
+ path: FieldPath;
175
+ table: ObjectCode;
176
+ }[];
177
+ groupBy?: {
178
+ path: FieldPath;
179
+ table: ObjectCode;
180
+ }[];
181
+ orderBy?: {
182
+ path: FieldPath;
183
+ table: ObjectCode;
184
+ }[];
185
+ }
171
186
  type Workflow = TicketQuery;
172
187
  interface WorkflowStage {
173
188
  enabled: boolean;
@@ -1,4 +1,4 @@
1
- import { Query } from "mdtServices/api/Query";
1
+ import { Query } from "../../../../../../../../scripts/services/api/Query";
2
2
  export declare const FETCH_COUNT_ALIAS = "$Count";
3
3
  export declare type CountMap = {
4
4
  queryIdx: number;
@@ -1,6 +1,6 @@
1
- import { RecordId } from "mdtScripts/common/Record";
2
- import { FieldPath } from "mdtScripts/helpers/types";
3
- import { IFilter } from "mdtServices/IFilter";
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 "mdtScripts/common/Record";
2
- import { UiType } from "mdtScripts/helpers/IUi";
3
- import { ServerResponseType } from "mdtServices/api/ServerResonseType";
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;
@@ -109,6 +109,8 @@ export interface ILegacyFacade {
109
109
  };
110
110
  PlaceInQueryHelpers: any;
111
111
  isApiV2: () => boolean;
112
+ ProgressBarCtrl: any;
113
+ ProgressBarStateController: any;
112
114
  }
113
115
  export interface ModulesLegacyFacade {
114
116
  pbi?: {
@@ -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 "mdtScripts/helpers/types";
6
- import { MessageMetaData } from "mdtServices/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes";
7
- import { ApiV2 } from "mdtServices/api/ApiAccessor/apiV2Types";
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 Круговая диаграмма
@@ -1,2 +0,0 @@
1
- export declare function getCommandKey(): "⌘" | "Ctrl";
2
- export declare function getModifierKey(): "⌥" | "Alt";