mdt-client 31.3.33 → 31.3.35
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/common/list/form/FormListPublicOptions.d.ts +4 -0
- package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -0
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +5 -0
- package/types/views/form/schema/FormPageOptions.schema.d.ts +1 -1
- package/types/views/list/ListViewOptions.d.ts +2 -0
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type UserMenuSlotPosition = "afterProfile" | "beforeLogout";
|
|
3
|
+
declare class UserMenuSlotRegistry {
|
|
4
|
+
private slots;
|
|
5
|
+
register(position: UserMenuSlotPosition, key: string, Component: React.ComponentType): void;
|
|
6
|
+
unregister(position: UserMenuSlotPosition, key: string): void;
|
|
7
|
+
getComponents(position: UserMenuSlotPosition): React.ComponentType[];
|
|
8
|
+
}
|
|
9
|
+
export declare const UserMenuSlot: UserMenuSlotRegistry;
|
|
10
|
+
export {};
|
|
@@ -22,6 +22,9 @@ import { ButtonFacade } from "../Form/IFormFacade";
|
|
|
22
22
|
import { TabularListSettings } from "../../../../views/list/tabular/TabularListTypes";
|
|
23
23
|
import { TextWithIconOptions } from "mdtScripts/components/textWithIcon/textWithIconOptions";
|
|
24
24
|
import { ClassNamesArg } from "../../../../helpers/utils/classNames";
|
|
25
|
+
import { ResizablePanelsCtrl } from "mdtScripts/components/resizablePanels/resizablePanelsCtrl";
|
|
26
|
+
import { ResizablePanelsOptions } from "mdtScripts/components/resizablePanels/resizablePanelsOptions";
|
|
27
|
+
import { UserMenuSlot } from "mdtScripts/components/navigation/header/userButton/UserMenuSlot";
|
|
25
28
|
export interface IUiComponentsFacade {
|
|
26
29
|
button(button: ButtonFacade, translate?: boolean): ViewElement;
|
|
27
30
|
topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
|
|
@@ -150,6 +153,8 @@ export interface IUiComponentsFacade {
|
|
|
150
153
|
reactComponentWrap<P>(Component: React.FC<P>, props?: P, options?: {
|
|
151
154
|
className?: ClassNamesArg;
|
|
152
155
|
}): ViewElement;
|
|
156
|
+
resizablePanelsCtrl(options: ResizablePanelsOptions): ResizablePanelsCtrl;
|
|
157
|
+
UserMenuSlot: typeof UserMenuSlot;
|
|
153
158
|
}
|
|
154
159
|
export interface IProcessFormBlockOptions {
|
|
155
160
|
title: string;
|
|
@@ -5,7 +5,7 @@ export interface FormPageOptions {
|
|
|
5
5
|
/** Создавать автоматически новую запись, если не существует */
|
|
6
6
|
createIfNotExists?: boolean;
|
|
7
7
|
/** Кнопка удаления на форме */
|
|
8
|
-
deleteButton?: false | Button;
|
|
8
|
+
deleteButton?: false | Button | ((form: any) => Button);
|
|
9
9
|
/** Настройки кнопки */
|
|
10
10
|
primaryButton?: Button;
|
|
11
11
|
/** Скрывать заголовок */
|
|
@@ -85,6 +85,8 @@ export interface ILayoutColumn extends ILayoutColumnBase {
|
|
|
85
85
|
* Опция не публичная, используется для скрытия иконки описания кастомных колонок
|
|
86
86
|
*/
|
|
87
87
|
$descriptionShowType?: typeof DescriptionShowTypes[keyof typeof DescriptionShowTypes];
|
|
88
|
+
/** Если у колонки есть $valueView, то добавляется styled_value CSS-класс, который ломает стили ячейки отвечающие за выравнивание и row clamp */
|
|
89
|
+
$disableStyledClass?: boolean;
|
|
88
90
|
}
|
|
89
91
|
export interface LayoutColumnValued {
|
|
90
92
|
$valueView?: (value: any, ctx: CellTransformerContext, args?: O2MValueViewArgs) => any;
|
|
@@ -342,7 +342,7 @@ interface ChartTooltipRow {
|
|
|
342
342
|
interface TooltipAggregator {
|
|
343
343
|
content?: (options: {
|
|
344
344
|
row: MdtChartsDataRow;
|
|
345
|
-
}) => TooltipAggregatorContent;
|
|
345
|
+
}) => TooltipAggregatorContent | TooltipAggregatorContent[];
|
|
346
346
|
position?: "underKey" | "underValues";
|
|
347
347
|
}
|
|
348
348
|
type TooltipAggregatorContent = {
|