mdt-client 1.3.0 → 28.20.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/tsconfig.tsbuildinfo +332 -38
- package/package.json +1 -1
- package/readme.md +15 -15
- package/types/common/Field.d.ts +3 -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/inputOptions.d.ts +26 -0
- package/types/components/baseFormControls/input/inputView.d.ts +0 -1
- package/types/components/button/baseButton/buttonOptions.d.ts +12 -0
- package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
- package/types/components/form/label/labelOptions.d.ts +18 -0
- package/types/components/iconButton/iconButtonOptions.d.ts +7 -0
- package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +11 -0
- package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
- package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +20 -0
- package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
- package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +36 -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 +19 -0
- package/types/helpers/redraw.d.ts +16 -0
- package/types/helpers/types.d.ts +0 -2
- package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
- package/types/security/User.d.ts +29 -0
- package/types/services/IFilter.d.ts +0 -1
- package/types/services/api/QuerySorting.d.ts +8 -0
- package/types/services/customModules/facades/Form/IFormFacade.d.ts +13 -1
- package/types/services/customModules/facades/List/IListControlFacade.d.ts +4 -3
- 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/services/CommandManagerFacade.d.ts +1 -3
- package/types/services/customModules/facades/services/IJobService.d.ts +13 -0
- package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +5 -1
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +2 -1
- package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +2 -0
- package/types/services/dropdown/IDropDownMenu.d.ts +0 -2
- package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +21 -0
- package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +15 -0
- package/types/views/form/schema/FormPageOptions.schema.d.ts +17 -0
- package/types/views/list/schema/ListPageOptions.schema.d.ts +10 -5
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FormatOptions } from "../../../../helpers/formatOptions";
|
|
2
|
+
import { IListButtonExtendPipelineService } from "../services/IListButtonExtendPipelineService";
|
|
2
3
|
export interface IUtilsFacade {
|
|
4
|
+
ListButtonExtendPipelineService: IListButtonExtendPipelineService;
|
|
3
5
|
getText(textCode: string, args?: any): string;
|
|
4
6
|
format(value: any, options?: FormatOptions): any;
|
|
5
7
|
guid(): string;
|
|
@@ -15,14 +15,12 @@ export interface DropdownOptions<I> {
|
|
|
15
15
|
class?: string;
|
|
16
16
|
onShow?: () => void;
|
|
17
17
|
onClose?: () => void;
|
|
18
|
-
wrapAttrs?: _mithril.MithrilAttributes;
|
|
19
18
|
}
|
|
20
19
|
export interface DropdownMenuViewOptions<I> {
|
|
21
20
|
items: I[];
|
|
22
21
|
itemView?: (item: Exclude<I, MithrilControl>) => _mithril.MithrilVirtualElement;
|
|
23
22
|
onSelect: (item: Exclude<I, MithrilControl>) => void;
|
|
24
23
|
class?: string;
|
|
25
|
-
wrapAttrs?: _mithril.MithrilAttributes;
|
|
26
24
|
}
|
|
27
25
|
export declare type DropdownTargetContext<I> = MithrilContext<{
|
|
28
26
|
$dropdown?: IDropdownMenu<I>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSClassName } from "mdtScripts/helpers/types";
|
|
2
|
+
import * as monaco from "monaco-editor";
|
|
3
|
+
export interface MonacoCodeOptions {
|
|
4
|
+
lang?: string;
|
|
5
|
+
guid?: string;
|
|
6
|
+
value?: () => string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
onChangeErrorState?: (errMessage?: string) => void;
|
|
9
|
+
jsonSchema?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: CSSClassName;
|
|
12
|
+
/**
|
|
13
|
+
* @TJS-type any
|
|
14
|
+
*/
|
|
15
|
+
editorOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
|
|
16
|
+
showDescription?: boolean;
|
|
17
|
+
enableFullscreen?: boolean;
|
|
18
|
+
enableSuggestionOnEnter?: boolean;
|
|
19
|
+
/** Игнорировать валидационные ошибки формата данных */
|
|
20
|
+
ignoreControlValidation?: boolean;
|
|
21
|
+
}
|
package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PanelTitleTextContent } from "mdtScripts/components/resizablePanels/panelTitle/panelTitleOptions";
|
|
2
|
+
import { PanelsGrid, ToggleableRotatablePanelsOptions } from "mdtScripts/components/toggleablePanels/toggleablePanelsOptions";
|
|
3
|
+
import { ViewElement } from "mdtScripts/helpers/types";
|
|
4
|
+
import { ButtonFacade } from "mdtServices/customModules/facades/Form/IFormFacade";
|
|
5
|
+
export interface ToggleablePanelsEditorFacadeOptions extends ToggleableRotatablePanelsOptions {
|
|
6
|
+
toolbarButtons?: ButtonFacade[];
|
|
7
|
+
panels: PanelsGrid<ToggleablePanelsEditorPanelFacadeOptions>;
|
|
8
|
+
runButton: ButtonFacade;
|
|
9
|
+
}
|
|
10
|
+
interface ToggleablePanelsEditorPanelFacadeOptions {
|
|
11
|
+
title: PanelTitleTextContent;
|
|
12
|
+
isShown?: boolean;
|
|
13
|
+
content: () => ViewElement;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button } from "../controls/monacoEditor/jsonSchemas/Button.schema";
|
|
2
|
+
export interface FormPageOptions {
|
|
3
|
+
/** Форма только для чтения */
|
|
4
|
+
readonly?: boolean | (() => boolean);
|
|
5
|
+
/** Создавать автоматически новую запись, если не существует */
|
|
6
|
+
createIfNotExists?: boolean;
|
|
7
|
+
/** Настройки кнопки */
|
|
8
|
+
primaryButton?: Button;
|
|
9
|
+
/** Скрывать заголовок */
|
|
10
|
+
hideTitle?: boolean;
|
|
11
|
+
/** Скрывать подзаголовок */
|
|
12
|
+
hideSubtitle?: boolean;
|
|
13
|
+
/** Дополнительные данные для загрузки */
|
|
14
|
+
hintSelect?: string[];
|
|
15
|
+
/** Код макета формы */
|
|
16
|
+
layoutCode?: string;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActivationListAdapterOptions } from "mdtScripts/data/active/ActivationListAdapterTypes";
|
|
2
|
+
import { FormPageOptions } from "mdtScripts/views/form/schema/FormPageOptions.schema";
|
|
2
3
|
import { BaseQuery } from "../../../services/api/BaseQuery";
|
|
3
4
|
import { QuerySorting } from "../../../services/api/Query";
|
|
4
5
|
import { IFilter } from "../../../services/IFilter";
|
|
@@ -33,6 +34,10 @@ export interface ListPageOptions {
|
|
|
33
34
|
fkLinks?: boolean;
|
|
34
35
|
/** Разрешить редактирование форм, открытых по нажатию на ссылки на внешние таблицы */
|
|
35
36
|
fkLinksEditable?: boolean;
|
|
37
|
+
/** Установить опции для формы, открывающейся по нажатию на ссылку у FK */
|
|
38
|
+
fkLinksFormOptions?: {
|
|
39
|
+
[k: string]: FormPageOptions;
|
|
40
|
+
};
|
|
36
41
|
/**
|
|
37
42
|
* @title Запретить редактирование o2m полей в списке
|
|
38
43
|
* @TJS-type boolean
|
|
@@ -79,12 +84,12 @@ export interface ListPageOptions {
|
|
|
79
84
|
/**
|
|
80
85
|
* Управление активностью записей
|
|
81
86
|
*/
|
|
82
|
-
activation?: ActivationListAdapterOptions;
|
|
87
|
+
activation?: ActivationListAdapterOptions | false;
|
|
83
88
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @
|
|
86
|
-
* @
|
|
89
|
+
* @title Настройка заголовка колонки
|
|
90
|
+
* @description default - заголовок поля с переводом, code - код поля без перевода
|
|
91
|
+
* @default default
|
|
87
92
|
*/
|
|
88
|
-
|
|
93
|
+
columnTitle?: "default" | "code";
|
|
89
94
|
}
|
|
90
95
|
export {};
|