mdt-client 1.3.0 → 31.0.0
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/dist/index.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -2715
- package/package.json +1 -1
- package/readme.md +15 -15
- package/types/common/Field.d.ts +3 -2
- package/types/common/Record.d.ts +4 -1
- package/types/common/Table.d.ts +4 -4
- package/types/common/list/group/groupTypes.d.ts +26 -0
- package/types/common/list/hierarchy/hierarchyTypes.d.ts +39 -0
- package/types/components/baseFormControls/input/{inputView.d.ts → inputOptions.d.ts} +3 -6
- package/types/components/button/baseButton/buttonOptions.d.ts +12 -0
- package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
- package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +3 -3
- package/types/components/form/label/labelOptions.d.ts +18 -0
- package/types/components/icon/iconOptions.d.ts +1 -2
- package/types/components/iconButton/iconButtonOptions.d.ts +7 -0
- package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +1 -1
- package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +15 -0
- package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
- package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
- package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
- package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
- package/types/helpers/IUi.d.ts +1 -0
- package/types/helpers/deleteFromArray.d.ts +1 -0
- package/types/helpers/events/EventEmitter.d.ts +7 -0
- package/types/helpers/fireEvent.d.ts +4 -0
- package/types/helpers/pipeline/Pipeline.d.ts +20 -0
- package/types/helpers/redraw.d.ts +16 -0
- package/types/helpers/types.d.ts +17 -5
- package/types/helpers/ui/elementModificators/focusableComponent.d.ts +3 -1
- package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +9 -2
- package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
- package/types/helpers/utils/stringifyControlSize.d.ts +1 -1
- package/types/helpers/zone/IZone.d.ts +0 -1
- package/types/security/PermissionLevel.d.ts +3 -1
- package/types/security/User.d.ts +30 -0
- package/types/services/IFilter.d.ts +2 -2
- package/types/services/ModuleData.d.ts +2 -1
- package/types/services/api/BaseQuery.d.ts +3 -2
- package/types/services/api/Query.d.ts +10 -36
- package/types/services/api/QuerySorting.d.ts +8 -0
- package/types/services/commands/CommandManager.d.ts +1 -1
- package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +1 -1
- package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +9 -2
- package/types/services/customModules/facades/Form/IFormFacade.d.ts +20 -5
- package/types/services/customModules/facades/IAuthFacade.d.ts +2 -2
- package/types/services/customModules/facades/IMdtFacade.d.ts +0 -1
- package/types/services/customModules/facades/List/IListCellFacade.d.ts +2 -2
- package/types/services/customModules/facades/List/IListControlFacade.d.ts +5 -4
- package/types/services/customModules/facades/List/IListServiceFacade.d.ts +16 -0
- package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
- package/types/services/customModules/facades/schema/IObjectFacade.d.ts +1 -1
- package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
- package/types/services/customModules/facades/services/ISecurityFacade.d.ts +6 -14
- package/types/services/customModules/facades/utils/IApiFacade.d.ts +5 -5
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +11 -3
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +16 -7
- package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +6 -1
- package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +1 -2
- package/types/services/dropdown/IDropDownMenu.d.ts +16 -5
- package/types/views/form/controls/commonControl/ICommonControl.d.ts +2 -2
- package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +22 -0
- package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +4 -3
- package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +20 -0
- package/types/views/form/formTypes.d.ts +1 -1
- package/types/views/form/schema/FormPageOptions.schema.d.ts +17 -0
- package/types/views/list/IListView.d.ts +10 -6
- package/types/views/list/schema/ListPageOptions.schema.d.ts +21 -6
- package/types/helpers/utils/classNames.d.ts +0 -2
- package/types/helpers/utils/object.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
-
/// <reference types="mithril" />
|
|
3
2
|
import { Field } from "../../common/Field";
|
|
4
3
|
import { IListControlFacade } from "../../services/customModules/facades/List/IListControlFacade";
|
|
5
4
|
export interface ICellTransformerCtx {
|
|
@@ -14,7 +13,7 @@ export interface ICellTransformerCtx {
|
|
|
14
13
|
}
|
|
15
14
|
export interface CellTransformerContext extends ICellTransformerCtx {
|
|
16
15
|
list: IListControlFacade;
|
|
17
|
-
col:
|
|
16
|
+
col: ILayoutColumnBase;
|
|
18
17
|
}
|
|
19
18
|
export interface IRowTransformerContext {
|
|
20
19
|
row: any;
|
|
@@ -30,13 +29,14 @@ export interface ILayoutColumnBase {
|
|
|
30
29
|
fieldPath?: string;
|
|
31
30
|
title?: string;
|
|
32
31
|
description?: string;
|
|
33
|
-
width?: number;
|
|
32
|
+
width?: number | string;
|
|
34
33
|
type?: string;
|
|
35
34
|
position?: number;
|
|
36
35
|
flagIconOnly?: boolean;
|
|
37
|
-
id_FilterFunction?: number;
|
|
38
36
|
}
|
|
39
37
|
export interface ILayoutColumn extends ILayoutColumnBase {
|
|
38
|
+
/** Уникальный идентификатор колонки. Если задан, используется в качестве ключа в элементе при рендере */
|
|
39
|
+
$key?: string;
|
|
40
40
|
control?: any;
|
|
41
41
|
transformer?: any;
|
|
42
42
|
$field?: Field;
|
|
@@ -44,7 +44,7 @@ export interface ILayoutColumn extends ILayoutColumnBase {
|
|
|
44
44
|
$pathFieldsFull?: Field[];
|
|
45
45
|
$refFields?: Field[];
|
|
46
46
|
$type?: any;
|
|
47
|
-
$column?:
|
|
47
|
+
$column?: ILayoutColumn;
|
|
48
48
|
$valuePath?: string;
|
|
49
49
|
$valuePathFull?: string;
|
|
50
50
|
$lastRefField?: Field;
|
|
@@ -52,11 +52,15 @@ export interface ILayoutColumn extends ILayoutColumnBase {
|
|
|
52
52
|
$system?: boolean;
|
|
53
53
|
$new?: boolean;
|
|
54
54
|
$title?: string;
|
|
55
|
+
class?: string;
|
|
56
|
+
$width?: number;
|
|
55
57
|
$destroy?: boolean;
|
|
56
58
|
}
|
|
57
|
-
export interface
|
|
59
|
+
export interface LayoutColumnValued {
|
|
58
60
|
$valueView?: (value: any, ctx: CellTransformerContext, args?: O2MValueViewArgs) => any;
|
|
59
61
|
}
|
|
62
|
+
export interface LayoutColumn extends ILayoutColumn, LayoutColumnValued {
|
|
63
|
+
}
|
|
60
64
|
export interface O2MValueViewArgs {
|
|
61
65
|
valueIndex?: number;
|
|
62
66
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ActivationListAdapterOptions } from "
|
|
1
|
+
import { ActivationListAdapterOptions } from "../../../data/active/ActivationListAdapterTypes";
|
|
2
|
+
import { FormPageOptions } from "../../../views/form/schema/FormPageOptions.schema";
|
|
3
|
+
import { QuerySorting } from "../../../services/api/QuerySorting";
|
|
2
4
|
import { BaseQuery } from "../../../services/api/BaseQuery";
|
|
3
|
-
import { QuerySorting } from "../../../services/api/Query";
|
|
4
5
|
import { IFilter } from "../../../services/IFilter";
|
|
5
6
|
declare type WhiteSpaceType = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "inherit";
|
|
6
7
|
export interface ListPageOptions {
|
|
@@ -21,10 +22,13 @@ export interface ListPageOptions {
|
|
|
21
22
|
layout?: string;
|
|
22
23
|
/** Контейнер для дочерних пользовательских интерфейсов */
|
|
23
24
|
container?: "modal" | "sidebar";
|
|
24
|
-
/**
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @title Высота списка
|
|
27
|
+
* @description Если задать число, то высота будет в "px"
|
|
28
|
+
*/
|
|
29
|
+
maxHeight?: number | string;
|
|
26
30
|
/** Фильтр по-умолчанию на таблицу */
|
|
27
|
-
filter?: IFilter | (() => IFilter);
|
|
31
|
+
filter?: IFilter | (() => IFilter | undefined);
|
|
28
32
|
/** Скрыть индикатор загрузки */
|
|
29
33
|
hideLoading?: boolean;
|
|
30
34
|
/** Скрыть полосу загрузки */
|
|
@@ -33,6 +37,11 @@ export interface ListPageOptions {
|
|
|
33
37
|
fkLinks?: boolean;
|
|
34
38
|
/** Разрешить редактирование форм, открытых по нажатию на ссылки на внешние таблицы */
|
|
35
39
|
fkLinksEditable?: boolean;
|
|
40
|
+
/** Установить опции для формы, открывающейся по нажатию на ссылку у FK */
|
|
41
|
+
fkLinksFormOptions?: {
|
|
42
|
+
[k: string]: FormPageOptions;
|
|
43
|
+
};
|
|
44
|
+
/** Запретить редактирование записей */
|
|
36
45
|
/**
|
|
37
46
|
* @title Запретить редактирование o2m полей в списке
|
|
38
47
|
* @TJS-type boolean
|
|
@@ -79,7 +88,13 @@ export interface ListPageOptions {
|
|
|
79
88
|
/**
|
|
80
89
|
* Управление активностью записей
|
|
81
90
|
*/
|
|
82
|
-
activation?: ActivationListAdapterOptions;
|
|
91
|
+
activation?: ActivationListAdapterOptions | false;
|
|
92
|
+
/**
|
|
93
|
+
* @title Настройка заголовка колонки
|
|
94
|
+
* @description default - заголовок поля с переводом, code - код поля без перевода
|
|
95
|
+
* @default default
|
|
96
|
+
*/
|
|
97
|
+
columnTitle?: "default" | "code";
|
|
83
98
|
/**
|
|
84
99
|
* Отключить фиксацию таблицы при прокрутке
|
|
85
100
|
* @TJS-type boolean
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hasOwnProperty(object: Record<never, unknown>, name: string): boolean;
|