mdt-client 31.3.36 → 31.3.37
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/_core/scripts/common/Datasource.d.ts +9 -0
- package/types/_core/scripts/common/Field.d.ts +51 -0
- package/types/_core/scripts/common/FieldSettings.schema.d.ts +17 -0
- package/types/_core/scripts/common/MdtField.d.ts +9 -0
- package/types/_core/scripts/common/MdtObject.d.ts +7 -0
- package/types/_core/scripts/common/Record.d.ts +27 -0
- package/types/_core/scripts/common/Table.d.ts +66 -0
- package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -0
- package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +2 -0
- package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +1 -0
- package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -0
- package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +7 -0
- package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -0
- package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +40 -0
- package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -0
- package/types/_core/scripts/common/list/group/groupTypes.d.ts +177 -0
- package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +48 -0
- package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +8 -0
- package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +25 -0
- package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -0
- package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -0
- package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -0
- package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +18 -0
- package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +22 -0
- package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -0
- package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +17 -0
- package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +30 -0
- package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -0
- package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +12 -0
- package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -0
- package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -0
- package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +13 -0
- package/types/_core/scripts/components/form/header/types.d.ts +14 -0
- package/types/_core/scripts/components/form/label/labelOptions.d.ts +22 -0
- package/types/_core/scripts/components/icon/iconOptions.d.ts +21 -0
- package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +9 -0
- package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -0
- package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -0
- package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
- package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +16 -0
- package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
- package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +6 -0
- package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -0
- package/types/_core/scripts/data/periods/helpers/types.d.ts +4 -0
- package/types/_core/scripts/datasources/FetchResult.d.ts +5 -0
- package/types/_core/scripts/helpers/IUi.d.ts +2 -0
- package/types/_core/scripts/helpers/dateUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/deleteFromArray.d.ts +1 -0
- package/types/_core/scripts/helpers/events/EventEmitter.d.ts +12 -0
- package/types/_core/scripts/helpers/fireEvent.d.ts +4 -0
- package/types/_core/scripts/helpers/formatOptions.d.ts +16 -0
- package/types/_core/scripts/helpers/formattedText.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +20 -0
- package/types/_core/scripts/helpers/redraw.d.ts +16 -0
- package/types/_core/scripts/helpers/types.d.ts +84 -0
- package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +14 -0
- package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -0
- package/types/_core/scripts/helpers/utils/classNames.d.ts +20 -0
- package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
- package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +18 -0
- package/types/_core/scripts/helpers/utils/object.d.ts +4 -0
- package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +3 -0
- package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +18 -0
- package/types/_core/scripts/helpers/zone/IZone.d.ts +7 -0
- package/types/_core/scripts/security/PermissionLevel.d.ts +40 -0
- package/types/_core/scripts/security/User.d.ts +19 -0
- package/types/_core/scripts/services/HotkeyManager.d.ts +6 -0
- package/types/_core/scripts/services/IFilter.d.ts +322 -0
- package/types/_core/scripts/services/ModuleData.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +266 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +585 -0
- package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -0
- package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +82 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -0
- package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +43 -0
- package/types/_core/scripts/services/api/BaseQuery.d.ts +25 -0
- package/types/_core/scripts/services/api/Query.d.ts +56 -0
- package/types/_core/scripts/services/api/QuerySorting.d.ts +18 -0
- package/types/_core/scripts/services/api/ServerResonseType.d.ts +2 -0
- package/types/_core/scripts/services/commands/Command.d.ts +22 -0
- package/types/_core/scripts/services/commands/CommandGroup.d.ts +15 -0
- package/types/_core/scripts/services/commands/CommandManager.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +102 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +38 -0
- package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +238 -0
- package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +87 -0
- package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +10 -0
- package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +88 -0
- package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +2 -0
- package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +96 -0
- package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +14 -0
- package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -0
- package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +185 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +83 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +224 -0
- package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -0
- package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +40 -0
- package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +11 -0
- package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +21 -0
- package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +101 -0
- package/types/_core/scripts/views/controls/Control.d.ts +7 -0
- package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +15 -0
- package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +28 -0
- package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -0
- package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -0
- package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -0
- package/types/_core/scripts/views/form/formTypes.d.ts +5 -0
- package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +22 -0
- package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +19 -0
- package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +5 -0
- package/types/_core/scripts/views/list/ListViewOptions.d.ts +99 -0
- package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -0
- package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +123 -0
- package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +145 -0
- package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +53 -0
- package/types/_core/scripts/views/page/PageZoneTypes.d.ts +1 -0
- package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +759 -0
- package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +29 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +5 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -0
- package/types/job/scripts/types.d.ts +11 -0
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +2 -1
- package/types/services/customModules/facades/ui-kit/UiKitFacade.d.ts +0 -8
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Table } from "./Table";
|
|
2
|
+
import { Query } from "../services/api/Query";
|
|
3
|
+
import { ApiRequestOptions } from "../services/api/ApiRequestOptions";
|
|
4
|
+
export interface Datasource {
|
|
5
|
+
fetch(query: Query, table: Table, options?: ApiRequestOptions, batch?: boolean, meta?: any): any;
|
|
6
|
+
save?(data: any, params?: any, options?: ApiRequestOptions): PromiseLike<any>;
|
|
7
|
+
delete?(ids: any[], table: Table): any;
|
|
8
|
+
table?: Table;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FieldCode, FieldKind, Valued } from "../helpers/types";
|
|
2
|
+
import { IFilter } from "../services/IFilter";
|
|
3
|
+
import { Record } from "./Record";
|
|
4
|
+
import { Table } from "./Table";
|
|
5
|
+
export interface Field extends Record {
|
|
6
|
+
id?: any;
|
|
7
|
+
code?: FieldCode;
|
|
8
|
+
title?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
codeLowered?: string;
|
|
11
|
+
code$?: string;
|
|
12
|
+
code$Lowered?: string;
|
|
13
|
+
refTableCode?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
table?: Table;
|
|
16
|
+
nullable?: boolean;
|
|
17
|
+
identity?: boolean;
|
|
18
|
+
primary?: boolean;
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
id_RefObject?: number;
|
|
21
|
+
id_RefObjectField?: number;
|
|
22
|
+
kind?: FieldKind;
|
|
23
|
+
length?: number;
|
|
24
|
+
hasDefault?: boolean;
|
|
25
|
+
extended?: boolean;
|
|
26
|
+
isFixedLength?: boolean;
|
|
27
|
+
defaultValue?: string | number | boolean | Date;
|
|
28
|
+
formatMask?: string;
|
|
29
|
+
computed?: boolean;
|
|
30
|
+
fulltext?: boolean;
|
|
31
|
+
refTable?: Table;
|
|
32
|
+
readonly?: boolean;
|
|
33
|
+
multiple?: boolean;
|
|
34
|
+
refFilter?: Valued<IFilter>;
|
|
35
|
+
validate?: Function;
|
|
36
|
+
/**
|
|
37
|
+
* Флаг, указывающий, что поле скрыто по умолчанию в списке и на форме
|
|
38
|
+
*/
|
|
39
|
+
flagHiddenByDefault?: boolean;
|
|
40
|
+
min?: number;
|
|
41
|
+
max?: number;
|
|
42
|
+
/**
|
|
43
|
+
* `FieldSettings` {@link module ui/_core/scripts/common/FieldSettings.schema} в JSON формате.
|
|
44
|
+
* Задается через форму редактирования поля в пользовательском интерфейсе, приходит с API в виде строки.
|
|
45
|
+
* Не следует использовать напрямую, вместо этого используйте SchemaManager.getFieldSettings.
|
|
46
|
+
*/
|
|
47
|
+
settings?: string;
|
|
48
|
+
dynamicFkObjectPath?: string;
|
|
49
|
+
id_DynamicFkRecordObjectField?: number;
|
|
50
|
+
dynamicFkRecordObjectFieldCode?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IMask from "imask";
|
|
2
|
+
export interface FieldSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Маска отображает значение в заданном формате в списке и на форме. Например, число можно отобразить как "1 234,56" или "1234.56".
|
|
5
|
+
* [Подробнее о маске в документации](https://ics-it.gram.ax/mdt/content/dataView/formatMask).
|
|
6
|
+
*/
|
|
7
|
+
maskOptions?: IMask.AnyMaskedOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Настройки для полей типа o2m
|
|
10
|
+
*/
|
|
11
|
+
o2mOptions?: {
|
|
12
|
+
/**
|
|
13
|
+
* Максимальное количество записей, отображаемых до кнопки «more»
|
|
14
|
+
*/
|
|
15
|
+
visibleItemsLimit?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Table } from "./Table";
|
|
2
|
+
export declare type RecordId = number | string;
|
|
3
|
+
declare type PrimitiveTypes = string | number | boolean;
|
|
4
|
+
export declare type RecordValue = PrimitiveTypes | Record | Array<RecordValue> | null | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use MdtRecord
|
|
7
|
+
*/
|
|
8
|
+
export interface Record {
|
|
9
|
+
$id?: RecordId;
|
|
10
|
+
$table?: Table;
|
|
11
|
+
$diff?: Record;
|
|
12
|
+
$new?: boolean;
|
|
13
|
+
$dirty?: boolean;
|
|
14
|
+
$destroy?: boolean;
|
|
15
|
+
$dep?: boolean;
|
|
16
|
+
$fk?: string;
|
|
17
|
+
[field: string]: any;
|
|
18
|
+
}
|
|
19
|
+
export declare type MdtRecord = Record;
|
|
20
|
+
export declare type ApiRecordForSave = Omit<MdtRecord, "$table"> & {
|
|
21
|
+
$table: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type HierarchicalRecord<R = MdtRecord> = R & {
|
|
24
|
+
$hierarchy?: HierarchicalRecord<R>[];
|
|
25
|
+
$matched?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Icon } from "../components/icon/iconOptions";
|
|
2
|
+
import { ModuleId, ObjectCode, ObjectId, ObjectTitle } from "../helpers/types";
|
|
3
|
+
import { PermissionLevel } from "../security/PermissionLevel";
|
|
4
|
+
import { Datasource } from "./Datasource";
|
|
5
|
+
import { Field } from "./Field";
|
|
6
|
+
import { Record } from "./Record";
|
|
7
|
+
export interface Table extends Record, StoredProcedure {
|
|
8
|
+
$id?: ObjectId;
|
|
9
|
+
id?: ObjectId;
|
|
10
|
+
object_id?: number;
|
|
11
|
+
title?: ObjectTitle;
|
|
12
|
+
titlePlural?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
code?: ObjectCode;
|
|
15
|
+
abstract?: boolean;
|
|
16
|
+
defaultFieldCode?: string;
|
|
17
|
+
defaultField?: Field;
|
|
18
|
+
fields?: Field[];
|
|
19
|
+
primaryField?: Field;
|
|
20
|
+
map?: {
|
|
21
|
+
[k: string]: Field;
|
|
22
|
+
};
|
|
23
|
+
mapLowered?: any;
|
|
24
|
+
$datasource?: Datasource;
|
|
25
|
+
id_ObjectType?: string;
|
|
26
|
+
tag_Enabled?: any;
|
|
27
|
+
accessLevel?: PermissionLevel;
|
|
28
|
+
children?: Array<string>;
|
|
29
|
+
readonly?: boolean;
|
|
30
|
+
icon?: Icon;
|
|
31
|
+
id_ver_Module?: ModuleId;
|
|
32
|
+
audit_Enabled?: boolean;
|
|
33
|
+
inline_AddInRow?: boolean;
|
|
34
|
+
inline_Enabled?: boolean;
|
|
35
|
+
hierarchyParentField?: string;
|
|
36
|
+
hierarchyIDField?: string;
|
|
37
|
+
flagHierarchy?: boolean;
|
|
38
|
+
$original?: Table;
|
|
39
|
+
$system?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Признак того, что объект присутствует в базе данных и получен из схемы API
|
|
42
|
+
*/
|
|
43
|
+
$dbObject?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface StoredProcedure {
|
|
46
|
+
parameters?: ObjectParam[];
|
|
47
|
+
}
|
|
48
|
+
export interface ObjectParam {
|
|
49
|
+
code?: string;
|
|
50
|
+
dataType?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ApiObjectData {
|
|
53
|
+
code: string;
|
|
54
|
+
title: string;
|
|
55
|
+
fields: ApiObjectField[];
|
|
56
|
+
description?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ApiObjectField {
|
|
59
|
+
code: string;
|
|
60
|
+
type: string;
|
|
61
|
+
nullable?: boolean;
|
|
62
|
+
refTableCode: ObjectCode;
|
|
63
|
+
/** title и description можно задать кодом в C# */
|
|
64
|
+
title?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type CellControlExtenderOptions = {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QuickFilterOptions } from "./QuickFilterOptions";
|
|
2
|
+
import { ValuesFilterOptions } from "./ValuesFilterOptions";
|
|
3
|
+
/**
|
|
4
|
+
* @title Настройки выпадающего меню в колонке
|
|
5
|
+
* @description Настройки задаются по пути в колонке. Например, `Title` или `ID_Department/Title`.
|
|
6
|
+
* @defaultSnippets [{ "label": "Настройка по умолчанию", "body": { "$1": { "valuesFilter": {} }}}]
|
|
7
|
+
*/
|
|
8
|
+
export interface ColumnMenuOptions {
|
|
9
|
+
[column: string]: ColumnMenuItemOptions;
|
|
10
|
+
}
|
|
11
|
+
export interface ColumnMenuItemOptions {
|
|
12
|
+
valuesFilter?: ValuesFilterOptions;
|
|
13
|
+
/**
|
|
14
|
+
* Настройки фильтра колоночного меню
|
|
15
|
+
*/
|
|
16
|
+
quickFilter?: QuickFilterOptions;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QuerySorting } from "mdtServices/api/QuerySorting";
|
|
2
|
+
/**
|
|
3
|
+
* Настройки фильтра по значениям
|
|
4
|
+
* @defaultSnippets
|
|
5
|
+
* [
|
|
6
|
+
* {
|
|
7
|
+
* "label": "Пример настройки",
|
|
8
|
+
* "body": { "sorting": [{ "path": "$1", "asc": true }], "mode": "show" }
|
|
9
|
+
* }
|
|
10
|
+
* ]
|
|
11
|
+
*/
|
|
12
|
+
export interface ValuesFilterOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Настройки сортировки
|
|
15
|
+
*/
|
|
16
|
+
sorting?: QuerySorting[];
|
|
17
|
+
/**
|
|
18
|
+
* Режим отображения фильтра по значениям в меню колонки:
|
|
19
|
+
* - show - показать фильтр. Используется по умолчанию.
|
|
20
|
+
* - submenu - показать фильтр в подменю.
|
|
21
|
+
* - hide - скрыть фильтр.
|
|
22
|
+
*/
|
|
23
|
+
mode?: "show" | "submenu" | "hide";
|
|
24
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Button as ButtonPub } from "mdtScripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema";
|
|
2
|
+
import { FormPageOptions } from "mdtScripts/views/form/schema/FormPageOptions.schema";
|
|
3
|
+
import { FormPageExtOptions } from "mdtScripts/views/form/schema/FormPageExtOptions.schema";
|
|
4
|
+
export interface FormListPublicOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Открытие формы в модальном окне
|
|
7
|
+
*/
|
|
8
|
+
modal?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Открытие формы в боковой панели
|
|
11
|
+
*/
|
|
12
|
+
sidebar?: boolean;
|
|
13
|
+
/** Настройки формы */
|
|
14
|
+
options?: FormPageOptions;
|
|
15
|
+
/** Настройки расширений формы */
|
|
16
|
+
extOptions?: FormPageExtOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Отображение кнопки "удалить"
|
|
19
|
+
*/
|
|
20
|
+
delete?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Отображение кнопки "добавить"
|
|
23
|
+
*/
|
|
24
|
+
add?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Отображение кнопки "редактировать"
|
|
27
|
+
*/
|
|
28
|
+
edit?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Отображение колонки с кнопками "редактировать" для записей.
|
|
31
|
+
* По умолчанию колонка отображается.
|
|
32
|
+
*/
|
|
33
|
+
editColumn?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Иконка кнопки "редактировать"
|
|
36
|
+
*/
|
|
37
|
+
editIcon?: string;
|
|
38
|
+
/** Расширение кнопки "добавить" */
|
|
39
|
+
addButton?: ButtonPub;
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageFetchOptions } from "mdtScripts/views/gallery/ImageFetchOptions";
|
|
2
|
+
export interface GalleryListExtenderPublicOptions {
|
|
3
|
+
/** Отображение кнопки скачивания zip */
|
|
4
|
+
downloadZipButton?: boolean;
|
|
5
|
+
/** Отображение кнопки распечатки */
|
|
6
|
+
printButton?: boolean;
|
|
7
|
+
/** Настройка изображения предпросмотра */
|
|
8
|
+
thumb?: ImageFetchOptions;
|
|
9
|
+
/** Отображение кнопок поворота изображения */
|
|
10
|
+
showRotateButtons?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { MdtRecord, RecordId } from "mdtScripts/common/Record";
|
|
2
|
+
import { FieldPath } from "../../../helpers/types";
|
|
3
|
+
import { QuerySortingObject } from "../../../services/api/QuerySorting";
|
|
4
|
+
import { Field } from "mdtScripts/common/Field";
|
|
5
|
+
import { ILayoutColumn } from "mdtScripts/views/list/ListViewOptions";
|
|
6
|
+
export declare type GroupingItemPublic = Grouping.ListExtender.Options.Settings.GroupItem;
|
|
7
|
+
export declare type GroupingItemDetails = Grouping.ListExtender.Options.Settings.ItemDetails;
|
|
8
|
+
export declare type GroupingListExtenderPublicOptions = Grouping.ListExtender.Options;
|
|
9
|
+
export interface GroupListExtenderOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Группировочное поле
|
|
12
|
+
*/
|
|
13
|
+
groupField: string;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace Grouping {
|
|
16
|
+
interface Query {
|
|
17
|
+
groups?: Query.GroupItem[];
|
|
18
|
+
allParents?: boolean;
|
|
19
|
+
orphans?: boolean;
|
|
20
|
+
toggledValues?: string[][];
|
|
21
|
+
/** Только для APIv2.
|
|
22
|
+
* Если флаг указан, в ответе с группой API присылает пустая она или нет
|
|
23
|
+
*/
|
|
24
|
+
calculateIsEmpty?: boolean;
|
|
25
|
+
}
|
|
26
|
+
namespace Query {
|
|
27
|
+
interface GroupItem {
|
|
28
|
+
fieldPath: FieldPath;
|
|
29
|
+
toggledValues?: any[];
|
|
30
|
+
withEmpty?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* Направление сортировки группировочных записей (true - по убыванию, false - по возрастанию). Необходим для работы v1
|
|
34
|
+
*/
|
|
35
|
+
sortDesc?: boolean;
|
|
36
|
+
collapsed?: boolean;
|
|
37
|
+
select?: string[];
|
|
38
|
+
sorting?: QuerySortingObject[];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
type GroupLabel = {
|
|
42
|
+
title?: string;
|
|
43
|
+
icon?: string;
|
|
44
|
+
color?: string;
|
|
45
|
+
textColor?: string;
|
|
46
|
+
};
|
|
47
|
+
namespace Common { }
|
|
48
|
+
namespace ListExtender {
|
|
49
|
+
interface Options {
|
|
50
|
+
/** Настройки группировки */
|
|
51
|
+
settings?: Options.Settings;
|
|
52
|
+
/** Редактирование записей перетаскиванием */
|
|
53
|
+
dragDropEnabled?: boolean;
|
|
54
|
+
/** Дает пользователю возможность редактировать группировку */
|
|
55
|
+
userConfigurable?: boolean;
|
|
56
|
+
}
|
|
57
|
+
namespace Options {
|
|
58
|
+
interface Settings {
|
|
59
|
+
/** Настройки групп */
|
|
60
|
+
groups?: Omit<Settings.GroupItem, "sortDesc">[];
|
|
61
|
+
/** Отображать пустые группы */
|
|
62
|
+
allParents?: boolean;
|
|
63
|
+
/** Отображать записи без групп */
|
|
64
|
+
orphans?: boolean;
|
|
65
|
+
/** Обрабатывать группировочные строки как обычные записи, если их путь ссылается на FK поле на эту же таблицу */
|
|
66
|
+
treatSelfReferencingGroupsAsRecords?: boolean;
|
|
67
|
+
/** Если флаг включен, то у пустых групп будет скрыта иконка сворачивания.
|
|
68
|
+
* Работает только с APIv2
|
|
69
|
+
*/
|
|
70
|
+
calculateIsEmpty?: boolean;
|
|
71
|
+
}
|
|
72
|
+
namespace Settings {
|
|
73
|
+
interface GroupItem extends ItemDetails {
|
|
74
|
+
/** Путь группировки */
|
|
75
|
+
path: string;
|
|
76
|
+
/** Схлопнута по умолчанию */
|
|
77
|
+
collapsed?: boolean;
|
|
78
|
+
/** Дополнительная информация по группе (только если путь ссылается на FK) */
|
|
79
|
+
select?: string[];
|
|
80
|
+
/** Настройки метки группы */
|
|
81
|
+
label?: Grouping.GroupLabel | false;
|
|
82
|
+
/** Иконка, отображаемая в заголовке столбца для данного уровня группировки */
|
|
83
|
+
levelIcon?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated
|
|
86
|
+
* Направление сортировки группировочных записей (true - по убыванию, false - по возрастанию). Необходим для работы v1
|
|
87
|
+
*/
|
|
88
|
+
sortDesc?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Настройка сортировки группировочных записей.
|
|
91
|
+
*/
|
|
92
|
+
sorting?: QuerySortingObject[];
|
|
93
|
+
/**
|
|
94
|
+
* Параметры отображения дополнительной информации, указанной в select.
|
|
95
|
+
* Объект, где ключ - это путь к полю из массива select, а значение - объект с настройками отображения.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* selectView: {
|
|
100
|
+
* "name": { title: "Название" },
|
|
101
|
+
* "description": { title: "Описание" }
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Используется для настройки заголовков полей дополнительной информации,
|
|
106
|
+
* которая отображается в группировочных строках для связанных записей.
|
|
107
|
+
*/
|
|
108
|
+
selectView?: SelectView;
|
|
109
|
+
}
|
|
110
|
+
interface ItemDetails {
|
|
111
|
+
/** Максимальная ширина дополнительной информации */
|
|
112
|
+
detailsMaxWidth?: string;
|
|
113
|
+
/** Отображение дополнительной информации в одну строку */
|
|
114
|
+
detailsSingleLine?: boolean;
|
|
115
|
+
/** Отображение значений полей дополнительной информации в одну строку */
|
|
116
|
+
detailsValueSingleLine?: boolean;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
type GroupItem = {
|
|
121
|
+
fieldPath: FieldPath;
|
|
122
|
+
fieldPathFull: string;
|
|
123
|
+
$field: Field;
|
|
124
|
+
$pathFields: Field[];
|
|
125
|
+
groupsForDrop: GroupItem[];
|
|
126
|
+
} & Options.Settings.GroupItem;
|
|
127
|
+
interface ApplyGroupingSettings {
|
|
128
|
+
groupSettings: Options.Settings.GroupItem[];
|
|
129
|
+
flagAllParents: boolean;
|
|
130
|
+
flagOrphans: boolean;
|
|
131
|
+
}
|
|
132
|
+
interface Column extends ILayoutColumn {
|
|
133
|
+
$grouping?: boolean;
|
|
134
|
+
$group?: Grouping.ListExtender.GroupItem;
|
|
135
|
+
$groupIndex?: number;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
export declare type SelectView = {
|
|
140
|
+
[key: string]: {
|
|
141
|
+
title: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export interface GroupPayloadData {
|
|
145
|
+
Value: any;
|
|
146
|
+
Object?: MdtRecord;
|
|
147
|
+
Count: number;
|
|
148
|
+
Groups?: GroupData[];
|
|
149
|
+
/** Приходит только для APIv2 */
|
|
150
|
+
Empty?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface GroupData extends GroupPayloadData {
|
|
153
|
+
Empty?: boolean;
|
|
154
|
+
$isLast?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export interface GroupingRow {
|
|
157
|
+
$level: number;
|
|
158
|
+
$key: number | string;
|
|
159
|
+
$group: Grouping.ListExtender.GroupItem;
|
|
160
|
+
$groups: Grouping.ListExtender.GroupItem[];
|
|
161
|
+
$isLast?: boolean;
|
|
162
|
+
$data: GroupData;
|
|
163
|
+
$parentGroupsData: GroupData[];
|
|
164
|
+
$groupsDataFull: GroupData[];
|
|
165
|
+
$values: any[];
|
|
166
|
+
$pathValues: {
|
|
167
|
+
path: string;
|
|
168
|
+
value: any;
|
|
169
|
+
}[];
|
|
170
|
+
$groupingRow: boolean;
|
|
171
|
+
$system: boolean;
|
|
172
|
+
$attrs: any;
|
|
173
|
+
$expanded: boolean;
|
|
174
|
+
$hasChildGroups: boolean;
|
|
175
|
+
/** ID записи, если строка группировки соответствует записи этого же списка */
|
|
176
|
+
$id?: RecordId;
|
|
177
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Table } from "../../../common/Table";
|
|
2
|
+
import { FieldCode } from "../../../helpers/types";
|
|
3
|
+
import { IFilter } from "../../../services/IFilter";
|
|
4
|
+
export declare type HierarchyMode = "" | "-" | "+" | "#";
|
|
5
|
+
export interface HierarchyQuery {
|
|
6
|
+
/** Поле с ID родительской записи */
|
|
7
|
+
parentField?: FieldCode;
|
|
8
|
+
/** Поле ID записи */
|
|
9
|
+
primaryField?: FieldCode;
|
|
10
|
+
/**
|
|
11
|
+
* Режим фильтрации иерархии.
|
|
12
|
+
* "-" - Отображать всех родителей отфильтрованной записи,
|
|
13
|
+
* "+" - Отображать все дочерние записи отфильтрованной записи,
|
|
14
|
+
* "#" - Оторбражать все родительские и дочерние записи
|
|
15
|
+
*/
|
|
16
|
+
mode?: HierarchyMode;
|
|
17
|
+
/** Фильтр для дочерних и родительских записей, не попадающих под критерии основной фильтрации списка */
|
|
18
|
+
filter?: IFilter;
|
|
19
|
+
table?: Table;
|
|
20
|
+
/**
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
legacy?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface HierarchyListExtenderPublicOptions extends Exclude<HierarchyQuery, "table"> {
|
|
26
|
+
/**
|
|
27
|
+
* Ключи наборов фильтров, при которых фильтрация считается наложенной. Используется для отображения кнопок режима фильтрации.
|
|
28
|
+
* Например: "default", "extended"
|
|
29
|
+
*/
|
|
30
|
+
defaultFilterKeys?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Изменение иерархии с помощью перетаскивания
|
|
33
|
+
*/
|
|
34
|
+
dragDropEnabled?: boolean;
|
|
35
|
+
/** Расширение кнопки типа иерархии
|
|
36
|
+
* @ignore
|
|
37
|
+
*/
|
|
38
|
+
buttonExtend?: any;
|
|
39
|
+
/**
|
|
40
|
+
* Уровень до которого будут раскрыты узлы
|
|
41
|
+
*/
|
|
42
|
+
expandedLevel?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
legacy?: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IFilter } from "mdtServices/IFilter";
|
|
2
|
+
export interface ListViewListExtenderPublicOptions {
|
|
3
|
+
/**
|
|
4
|
+
* ListView, который будет применен к списку по умолчанию
|
|
5
|
+
*/
|
|
6
|
+
active?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Позволять менять выбранное по умолчанию представление в интерфейсе
|
|
9
|
+
*/
|
|
10
|
+
activeChangeable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default { "op": "in", "p1": "Title", "p2": ["Название ListView"] }
|
|
13
|
+
* @description
|
|
14
|
+
* Фильтр для списка ListView
|
|
15
|
+
* Пример фильтрации по названию:
|
|
16
|
+
* ```
|
|
17
|
+
* {
|
|
18
|
+
* "op": "in",
|
|
19
|
+
* "p1": "Title",
|
|
20
|
+
* "p2": ["Название ListView"]
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
filter?: IFilter;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IFilter } from "mdtServices/IFilter";
|
|
2
|
+
export interface InMemoryNamedFilterListExtenderPublicOptions {
|
|
3
|
+
/** Группы фильтров */
|
|
4
|
+
groups: InMemoryNamedFilterListExtenderItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare type InMemoryNamedFilterListExtenderOptions = InMemoryNamedFilterListExtenderPublicOptions;
|
|
7
|
+
export interface InMemoryNamedFilterListExtenderItem {
|
|
8
|
+
/** Код группы */
|
|
9
|
+
code: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
order?: number;
|
|
12
|
+
select?: any;
|
|
13
|
+
/** Подсказка при наведении */
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
filters: Array<{
|
|
16
|
+
/** Выбран по умолчанию */
|
|
17
|
+
selected?: boolean;
|
|
18
|
+
/** Заголовок фильтра */
|
|
19
|
+
title?: string;
|
|
20
|
+
/** Фильтр */
|
|
21
|
+
filter?: IFilter;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IFilter } from "mdtServices/IFilter";
|
|
2
|
+
export interface NamedFilterListExtenderPublicOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Код фильтра по умолчанию
|
|
5
|
+
*/
|
|
6
|
+
active?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Позволяет менять фильтр по умолчанию
|
|
9
|
+
*/
|
|
10
|
+
activeChangeable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default { "op": "in", "p1": "Title", "p2": ["Название именованного фильтра"] }
|
|
13
|
+
* @description
|
|
14
|
+
* Фильтр для списка доступных фильтров
|
|
15
|
+
* Пример фильтрации по названию:
|
|
16
|
+
* ```
|
|
17
|
+
* {
|
|
18
|
+
* "op": "in",
|
|
19
|
+
* "p1": "Title",
|
|
20
|
+
* "p2": ["Название именованного фильтра"]
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
filter?: IFilter;
|
|
25
|
+
/**
|
|
26
|
+
* Список полей, которые доступны для фильтрации
|
|
27
|
+
*/
|
|
28
|
+
fieldFilter?: string[];
|
|
29
|
+
}
|