mdt-client 31.3.33 → 31.3.34
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/services/customModules/facades/utils/IUiComponentsFacade.d.ts +3 -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
|
@@ -22,6 +22,8 @@ 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";
|
|
25
27
|
export interface IUiComponentsFacade {
|
|
26
28
|
button(button: ButtonFacade, translate?: boolean): ViewElement;
|
|
27
29
|
topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
|
|
@@ -150,6 +152,7 @@ export interface IUiComponentsFacade {
|
|
|
150
152
|
reactComponentWrap<P>(Component: React.FC<P>, props?: P, options?: {
|
|
151
153
|
className?: ClassNamesArg;
|
|
152
154
|
}): ViewElement;
|
|
155
|
+
resizablePanelsCtrl(options: ResizablePanelsOptions): ResizablePanelsCtrl;
|
|
153
156
|
}
|
|
154
157
|
export interface IProcessFormBlockOptions {
|
|
155
158
|
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 = {
|