mdt-client 31.0.0 → 31.0.2
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 +1 -0
- package/dist/tsconfig.tsbuildinfo +3159 -1
- package/package.json +1 -1
- package/types/components/baseFormControls/input/inputOptions.d.ts +1 -0
- package/types/components/baseFormControls/input/inputView.d.ts +27 -0
- package/types/components/icon/iconOptions.d.ts +1 -0
- package/types/helpers/types.d.ts +1 -0
- package/types/helpers/ui/elementModificators/focusableComponent.d.ts +1 -0
- package/types/helpers/utils/classNames.d.ts +6 -0
- package/types/helpers/utils/object.d.ts +3 -0
- package/types/helpers/zone/IZone.d.ts +1 -0
- package/types/security/User.d.ts +2 -3
- package/types/services/customModules/facades/IMdtFacade.d.ts +1 -0
- package/types/services/customModules/facades/services/IJobService.d.ts +13 -0
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +3 -0
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +1 -0
- package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +1 -0
- package/types/services/dropdown/IDropDownMenu.d.ts +1 -0
- package/types/views/form/controls/commonControl/ICommonControl.d.ts +1 -0
- package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
- package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +1 -0
- package/types/views/list/IListView.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
2
3
|
import { CSSClassName } from "../../../helpers/types";
|
|
3
4
|
import { KeyboardActions } from "../../../helpers/ui/elementModificators/focusableComponent";
|
|
4
5
|
import { ComponentSize } from "../../../helpers/utils/stringifyControlSize";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
3
|
+
import "./inputView.less";
|
|
4
|
+
import { ComponentSize } from "mdtScripts/helpers/utils/stringifyControlSize";
|
|
5
|
+
import { KeyboardActions } from "mdtScripts/helpers/ui/elementModificators/focusableComponent";
|
|
6
|
+
import { CSSClassName } from "mdtScripts/helpers/types";
|
|
7
|
+
export declare function inputView({ attrs, hasError, size, ...options }: InputOptions): _mithril.MithrilVirtualElement;
|
|
8
|
+
export interface InputOptions {
|
|
9
|
+
id?: string;
|
|
10
|
+
value?: string | number;
|
|
11
|
+
type?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
autofocus?: boolean;
|
|
14
|
+
autocomplete?: "on" | "off";
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
size?: ComponentSize;
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
hasError?: boolean;
|
|
20
|
+
keyboardActions?: KeyboardActions;
|
|
21
|
+
className?: CSSClassName;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
attrs?: _mithril.MithrilAttributes;
|
|
27
|
+
}
|
package/types/helpers/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
2
3
|
import { KeyboardKeyCode } from "../../../helpers/types";
|
|
3
4
|
import { ComponentConfigParams } from "./modificatorsTypes";
|
|
4
5
|
export declare function doesKeyPressed(keyCode: KeyboardKeyCode | KeyboardKeyCode[], e: KeyboardEvent): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSSClassName } from "../types";
|
|
2
|
+
declare type ClassNamesSimpleArg = CSSClassName | number | Record<CSSClassName, any> | undefined;
|
|
3
|
+
export declare type ClassNamesArg = ClassNamesSimpleArg | ClassNamesSimpleArg[];
|
|
4
|
+
export declare function classNames(...args: ClassNamesArg[]): string;
|
|
5
|
+
export declare function mClassNames(...args: ClassNamesArg[]): string;
|
|
6
|
+
export {};
|
package/types/security/User.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ObjectId } from "../helpers/types";
|
|
2
1
|
import { PermissionLevel } from "./PermissionLevel";
|
|
3
2
|
export interface User {
|
|
4
3
|
$id: number;
|
|
5
4
|
id: any;
|
|
6
5
|
permissions: {
|
|
7
6
|
object: {
|
|
8
|
-
[objectId:
|
|
7
|
+
[objectId: number]: {
|
|
9
8
|
level: PermissionLevel;
|
|
10
9
|
fields?: {
|
|
11
|
-
[
|
|
10
|
+
[fieldId: number]: {
|
|
12
11
|
level: PermissionLevel;
|
|
13
12
|
};
|
|
14
13
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
2
3
|
import { FilterConstructor } from "../../../services/IFilter";
|
|
3
4
|
import { IFieldControlFacadeContstructor } from "./Form/IFieldControlFacade";
|
|
4
5
|
import { IFieldControlManagerFacade } from "./Form/IFieldControlManagerFacade";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Pipeline, PipelineSync } from "../../../../helpers/pipeline/Pipeline";
|
|
2
|
+
import { IListControlFacade } from "../List/IListControlFacade";
|
|
3
|
+
export declare type JobButtonCreateHandler = (list: IListControlFacade, pipelines: JobExtPipelines) => void;
|
|
4
|
+
interface JobExtPipelines {
|
|
5
|
+
flagSendIdsAvailable: PipelineSync<boolean | undefined>;
|
|
6
|
+
preExecute: Pipeline<{
|
|
7
|
+
RecordIds?: number[];
|
|
8
|
+
} | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export interface IJobServiceFacade {
|
|
11
|
+
onJobButtonCreate(handler: JobButtonCreateHandler): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
2
3
|
import { ProcessPrincipalsListItem } from "../../../../components/processPrincipalsList/ProcessPrincipalsListItem";
|
|
3
4
|
import { Markdown, MithrilAttributes, Valued, ViewControl, ViewElement } from "../../../../helpers/types";
|
|
4
5
|
import { Icon, IconElOptions, IconOptions } from "../../../../components/icon/iconOptions";
|
|
@@ -10,6 +11,7 @@ import { MonacoCodeOptions } from "../../../../views/form/controls/monacoEditor/
|
|
|
10
11
|
import { ToggleablePanelsEditorFacadeOptions } from "../../../../views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions";
|
|
11
12
|
import { InputOptions } from "../../../../components/baseFormControls/input/inputOptions";
|
|
12
13
|
import { CodeEditorFacade, CodeEditorFacadeOptions } from "../components/CodeEditorFacade";
|
|
14
|
+
import { FileInputFacadeOptions } from "mdtScripts/views/form/controls/fileupload/FileInputFacade.types";
|
|
13
15
|
export interface IUiComponentsFacade {
|
|
14
16
|
button(button: ButtonFacade, translate?: boolean): ViewElement;
|
|
15
17
|
topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
|
|
@@ -22,6 +24,7 @@ export interface IUiComponentsFacade {
|
|
|
22
24
|
dropdownItem(options: DropdownItemViewOptions): _mithril.MithrilVirtualElement;
|
|
23
25
|
dropdownInputItem(options: DropdownInputItemOptions): _mithril.MithrilVirtualElement;
|
|
24
26
|
toggleablePanelsCtrl(options: ToggleablePanelsEditorFacadeOptions): ViewControl;
|
|
27
|
+
fileCtrl(options: FileInputFacadeOptions): ViewControl;
|
|
25
28
|
editors: {
|
|
26
29
|
codeEditor(options: CodeEditorFacadeOptions): CodeEditorFacade;
|
|
27
30
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
2
3
|
import { MithrilControl } from "../../../../helpers/types";
|
|
3
4
|
export declare type ConfigFunction = (element: HTMLElement, isInitialized: boolean, context?: any) => void;
|
|
4
5
|
export interface ImUtilsFacade {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
3
|
+
import { Valued } from "mdtScripts/helpers/types";
|
|
2
4
|
import { Field } from "../../common/Field";
|
|
3
5
|
import { IListControlFacade } from "../../services/customModules/facades/List/IListControlFacade";
|
|
6
|
+
import { ClassNamesArg } from "mdtScripts/helpers/utils/classNames";
|
|
4
7
|
export interface ICellTransformerCtx {
|
|
5
8
|
row: {
|
|
6
9
|
$rendered?: number;
|
|
@@ -53,6 +56,8 @@ export interface ILayoutColumn extends ILayoutColumnBase {
|
|
|
53
56
|
$new?: boolean;
|
|
54
57
|
$title?: string;
|
|
55
58
|
class?: string;
|
|
59
|
+
/** Стилизация ячейки */
|
|
60
|
+
wrapClass?: Valued<ClassNamesArg>;
|
|
56
61
|
$width?: number;
|
|
57
62
|
$destroy?: boolean;
|
|
58
63
|
}
|