mdt-client 31.3.45 → 31.3.46
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 +10 -11
- package/dist/index.js +16 -16
- package/package.json +38 -38
- package/readme.md +15 -15
- package/types/common/Datasource.d.ts +9 -9
- package/types/common/Field.d.ts +51 -51
- package/types/common/FieldSettings.schema.d.ts +32 -32
- package/types/common/MdtField.d.ts +9 -9
- package/types/common/MdtObject.d.ts +7 -7
- package/types/common/Record.d.ts +27 -27
- package/types/common/Table.d.ts +66 -66
- package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +14 -14
- package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
- package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
- package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
- package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
- package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
- package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
- package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
- package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
- package/types/common/list/group/groupTypes.d.ts +177 -177
- package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
- package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
- package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
- package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
- package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
- package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
- package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
- package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
- package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
- package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
- package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
- package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
- package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
- package/types/components/baseFormControls/input/inputOptions.d.ts +30 -31
- package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
- package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
- package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
- package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
- package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
- package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
- package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
- package/types/components/form/header/types.d.ts +14 -14
- package/types/components/form/label/labelOptions.d.ts +23 -23
- package/types/components/icon/iconOptions.d.ts +23 -24
- package/types/components/iconButton/iconButtonOptions.d.ts +9 -10
- package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
- package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
- package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
- package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
- package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
- package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
- package/types/components/textWithIcon/textWithIconOptions.d.ts +16 -17
- package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
- package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
- package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
- package/types/data/periods/helpers/types.d.ts +4 -4
- package/types/datasources/FetchResult.d.ts +5 -5
- package/types/helpers/IUi.d.ts +2 -2
- package/types/helpers/dateUtils.d.ts +23 -23
- package/types/helpers/deleteFromArray.d.ts +1 -1
- package/types/helpers/events/EventEmitter.d.ts +12 -12
- package/types/helpers/fireEvent.d.ts +4 -4
- package/types/helpers/formatOptions.d.ts +24 -24
- package/types/helpers/formattedText.d.ts +8 -8
- package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
- package/types/helpers/pipeline/Pipeline.d.ts +20 -20
- package/types/helpers/redraw.d.ts +16 -16
- package/types/helpers/types.d.ts +84 -85
- package/types/helpers/ui/elementModificators/focusableComponent.d.ts +14 -15
- package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
- package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
- package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
- package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
- package/types/helpers/ui/toolbarItemTypes.d.ts +30 -30
- package/types/helpers/utils/classNames.d.ts +20 -20
- package/types/helpers/utils/duration/durationFormatTypes.d.ts +21 -21
- package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
- package/types/helpers/utils/memoization/memoize.d.ts +18 -18
- package/types/helpers/utils/object.d.ts +10 -10
- package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
- package/types/helpers/utils/valued/getValued.d.ts +18 -18
- package/types/helpers/zone/IZone.d.ts +7 -8
- package/types/security/PermissionLevel.d.ts +40 -40
- package/types/security/User.d.ts +20 -20
- package/types/services/HotkeyManager.d.ts +6 -6
- package/types/services/IFilter.d.ts +322 -322
- package/types/services/ModuleData.d.ts +9 -9
- package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
- package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
- package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
- package/types/services/api/ApiAccessor/job/jobApiTypes.d.ts +83 -83
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
- package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
- package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
- package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
- package/types/services/api/ApiRequestOptions.d.ts +43 -43
- package/types/services/api/BaseQuery.d.ts +25 -25
- package/types/services/api/Query.d.ts +56 -56
- package/types/services/api/QuerySorting.d.ts +18 -18
- package/types/services/api/ServerResonseType.d.ts +2 -2
- package/types/services/commands/Command.d.ts +22 -22
- package/types/services/commands/CommandGroup.d.ts +15 -15
- package/types/services/commands/CommandManager.d.ts +77 -77
- package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
- package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -38
- package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
- package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
- package/types/services/customModules/facades/Form/IFormFacade.d.ts +106 -106
- package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
- package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
- package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
- package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -240
- package/types/services/customModules/facades/IMdtFacade.d.ts +90 -91
- package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
- package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
- package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
- package/types/services/customModules/facades/List/IListCellFacade.d.ts +9 -9
- package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
- package/types/services/customModules/facades/List/IListControlFacade.d.ts +90 -90
- package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
- package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
- package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
- package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
- package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
- package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
- package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
- package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +59 -59
- package/types/services/customModules/facades/internalModules/jobFacade.d.ts +24 -24
- package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +16 -16
- package/types/services/customModules/facades/internalModules/statusFacade.d.ts +11 -11
- package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
- package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
- package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
- package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
- package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
- package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
- package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
- package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
- package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
- package/types/services/customModules/facades/services/INavigationFacade.d.ts +92 -92
- package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
- package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -4
- package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +190 -191
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +83 -84
- package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
- package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -42
- package/types/services/dropdown/IDropDownMenu.d.ts +40 -41
- package/types/services/e2e/e2eServiceType.d.ts +11 -11
- package/types/ui-kit/IUiKitUtilsFacade.d.ts +41 -42
- package/types/ui-kit/UiKitFacade.d.ts +124 -122
- package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
- package/types/views/controls/Control.d.ts +7 -7
- package/types/views/controls/panels/panelOptions.d.ts +15 -15
- package/types/views/form/controls/commonControl/ICommonControl.d.ts +28 -29
- package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
- package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
- package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
- package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
- package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
- package/types/views/form/formTypes.d.ts +5 -5
- package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
- package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
- package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
- package/types/views/list/ListViewOptions.d.ts +101 -102
- package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
- package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
- package/types/views/list/schema/ListPageOptions.schema.d.ts +150 -150
- package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
- package/types/views/page/PageZoneTypes.d.ts +1 -1
- package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
- package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
- package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
- package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
- package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
- package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
- package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
- package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
- package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
- package/types/_core/scripts/common/Datasource.d.ts +0 -9
- package/types/_core/scripts/common/Field.d.ts +0 -51
- package/types/_core/scripts/common/FieldSettings.schema.d.ts +0 -17
- package/types/_core/scripts/common/MdtField.d.ts +0 -9
- package/types/_core/scripts/common/MdtObject.d.ts +0 -7
- package/types/_core/scripts/common/Record.d.ts +0 -27
- package/types/_core/scripts/common/Table.d.ts +0 -66
- package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +0 -12
- package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +0 -2
- package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +0 -6
- package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +0 -1
- package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +0 -17
- package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +0 -7
- package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +0 -24
- package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +0 -40
- package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +0 -11
- package/types/_core/scripts/common/list/group/groupTypes.d.ts +0 -177
- package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +0 -48
- package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +0 -3
- package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +0 -6
- package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +0 -8
- package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +0 -25
- package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +0 -23
- package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +0 -29
- package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +0 -4
- package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +0 -18
- package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +0 -3
- package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +0 -22
- package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +0 -7
- package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +0 -17
- package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +0 -30
- package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +0 -2
- package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +0 -12
- package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +0 -7
- package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +0 -5
- package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +0 -19
- package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +0 -32
- package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +0 -13
- package/types/_core/scripts/components/form/header/types.d.ts +0 -14
- package/types/_core/scripts/components/form/label/labelOptions.d.ts +0 -22
- package/types/_core/scripts/components/icon/iconOptions.d.ts +0 -21
- package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +0 -9
- package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +0 -5
- package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +0 -16
- package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +0 -4
- package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +0 -24
- package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +0 -22
- package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +0 -16
- package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +0 -40
- package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +0 -6
- package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +0 -21
- package/types/_core/scripts/data/periods/helpers/types.d.ts +0 -4
- package/types/_core/scripts/datasources/FetchResult.d.ts +0 -5
- package/types/_core/scripts/helpers/IUi.d.ts +0 -2
- package/types/_core/scripts/helpers/dateUtils.d.ts +0 -23
- package/types/_core/scripts/helpers/deleteFromArray.d.ts +0 -1
- package/types/_core/scripts/helpers/events/EventEmitter.d.ts +0 -12
- package/types/_core/scripts/helpers/fireEvent.d.ts +0 -4
- package/types/_core/scripts/helpers/formatOptions.d.ts +0 -16
- package/types/_core/scripts/helpers/formattedText.d.ts +0 -8
- package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +0 -8
- package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +0 -20
- package/types/_core/scripts/helpers/redraw.d.ts +0 -16
- package/types/_core/scripts/helpers/types.d.ts +0 -84
- package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +0 -14
- package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +0 -4
- package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +0 -2
- package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +0 -23
- package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +0 -1
- package/types/_core/scripts/helpers/utils/classNames.d.ts +0 -20
- package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +0 -6
- package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +0 -18
- package/types/_core/scripts/helpers/utils/object.d.ts +0 -4
- package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +0 -3
- package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +0 -18
- package/types/_core/scripts/helpers/zone/IZone.d.ts +0 -7
- package/types/_core/scripts/security/PermissionLevel.d.ts +0 -40
- package/types/_core/scripts/security/User.d.ts +0 -19
- package/types/_core/scripts/services/HotkeyManager.d.ts +0 -6
- package/types/_core/scripts/services/IFilter.d.ts +0 -322
- package/types/_core/scripts/services/ModuleData.d.ts +0 -9
- package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +0 -266
- package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +0 -585
- package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +0 -42
- package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +0 -82
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +0 -10
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +0 -28
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +0 -9
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +0 -37
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +0 -2
- package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +0 -43
- package/types/_core/scripts/services/api/BaseQuery.d.ts +0 -25
- package/types/_core/scripts/services/api/Query.d.ts +0 -56
- package/types/_core/scripts/services/api/QuerySorting.d.ts +0 -18
- package/types/_core/scripts/services/api/ServerResonseType.d.ts +0 -2
- package/types/_core/scripts/services/commands/Command.d.ts +0 -22
- package/types/_core/scripts/services/commands/CommandGroup.d.ts +0 -15
- package/types/_core/scripts/services/commands/CommandManager.d.ts +0 -77
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +0 -26
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +0 -36
- package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +0 -133
- package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +0 -102
- package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +0 -12
- package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +0 -38
- package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +0 -9
- package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +0 -238
- package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +0 -87
- package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +0 -5
- package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +0 -8
- package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +0 -10
- package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +0 -88
- package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +0 -2
- package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +0 -96
- package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +0 -4
- package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +0 -9
- package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +0 -4
- package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +0 -20
- package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +0 -77
- package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +0 -53
- package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +0 -7
- package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +0 -12
- package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +0 -5
- package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +0 -14
- package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +0 -20
- package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +0 -24
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +0 -23
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +0 -8
- package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +0 -11
- package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +0 -91
- package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +0 -13
- package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +0 -91
- package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +0 -185
- package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +0 -83
- package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +0 -224
- package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +0 -41
- package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +0 -40
- package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +0 -11
- package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +0 -21
- package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +0 -101
- package/types/_core/scripts/views/controls/Control.d.ts +0 -7
- package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +0 -15
- package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +0 -28
- package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +0 -6
- package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +0 -24
- package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +0 -70
- package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +0 -36
- package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +0 -21
- package/types/_core/scripts/views/form/formTypes.d.ts +0 -5
- package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +0 -22
- package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +0 -19
- package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +0 -5
- package/types/_core/scripts/views/list/ListViewOptions.d.ts +0 -99
- package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +0 -23
- package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +0 -123
- package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +0 -145
- package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +0 -53
- package/types/_core/scripts/views/page/PageZoneTypes.d.ts +0 -1
- package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +0 -759
- package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +0 -29
- package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +0 -31
- package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +0 -56
- package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +0 -9
- package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +0 -55
- package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +0 -3
- package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +0 -5
- package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +0 -13
- package/types/job/scripts/types.d.ts +0 -11
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { BaseQuery } from "../../../../services/api/BaseQuery";
|
|
2
|
-
import { FetchResult } from "../../../../datasources/FetchResult";
|
|
3
|
-
import { ApiRequestOptions } from "../../../../services/api/ApiRequestOptions";
|
|
4
|
-
import { RecordId } from "../../../../common/Record";
|
|
5
|
-
import { AnyObject } from "../../../../../scripts/helpers/types";
|
|
6
|
-
import { MessageMetaData } from "../../../../services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes";
|
|
7
|
-
import { ApiV2 } from "../../../../services/api/ApiAccessor/apiV2Types";
|
|
8
|
-
export interface QueryParams {
|
|
9
|
-
[param: string]: string | number;
|
|
10
|
-
}
|
|
11
|
-
export interface IApiFacade {
|
|
12
|
-
/** Отправить запрос на получение данных по объекту
|
|
13
|
-
* Метод получает данные без переводов.
|
|
14
|
-
* Для получения локализованных данных используйте {@link fetchWithExts}
|
|
15
|
-
*/
|
|
16
|
-
fetch<R = FetchResult>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
17
|
-
fetchWithExts<R = FetchResult>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
18
|
-
/** Отправить запрос к функции */
|
|
19
|
-
fetchFunction<R extends FetchResult = FetchResult>(objectCode: string, params?: AnyObject, query?: BaseQuery): Promise<R>;
|
|
20
|
-
/** Отправить запрос на получение одной записи из объекта */
|
|
21
|
-
fetchRecord<R = MdtRecord>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated
|
|
24
|
-
* Отправить запрос к функции
|
|
25
|
-
*/
|
|
26
|
-
fetchFromFunction<R extends FetchResult = FetchResult>(objectCode: string, query?: BaseQuery, params?: any[]): Promise<R>;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated
|
|
29
|
-
* Отправить запрос на получение одной записи из функции
|
|
30
|
-
*/
|
|
31
|
-
fetchRecordFromFunction<R = MdtRecord>(objectCode: string, query?: BaseQuery, params?: any[]): Promise<R>;
|
|
32
|
-
/** Отправить запрос к хранимой процедуре */
|
|
33
|
-
executeStoredProcedure<Result = any>(objectCode: string, params: any): PromiseLike<Result>;
|
|
34
|
-
/** Сохранить новые данные */
|
|
35
|
-
save<S = MdtQueryResult>(objectCode: string, record: MdtRecord, options?: ApiSaveOptions): Promise<S>;
|
|
36
|
-
/** Удалить данные */
|
|
37
|
-
delete(objectCode: string, ids: number[]): Promise<MdtQueryResult>;
|
|
38
|
-
/** Отправить запрос к API */
|
|
39
|
-
request<R = any>(serviceUrl: string, params?: any, options?: ApiRequestOptions): Promise<R>;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated, т.к. не поддерживает относительные пути. Используйте getApiEndpoint
|
|
42
|
-
*/
|
|
43
|
-
getFullUrl(url: string, queryParams?: QueryParams): string;
|
|
44
|
-
/** Получить полный url
|
|
45
|
-
* - поддерживает относительные пути
|
|
46
|
-
* - url можно указывать любым способом
|
|
47
|
-
*
|
|
48
|
-
* **Например,**
|
|
49
|
-
|
|
50
|
-
* Если `url` = `/item/list`, то возвращает `http://mdt-instance.ru/project/api/v1/item/list`
|
|
51
|
-
*/
|
|
52
|
-
getApiEndpoint(url: string, queryParams?: QueryParams): string;
|
|
53
|
-
/** Скачивание файла */
|
|
54
|
-
downloadFile(fileUid: string): void;
|
|
55
|
-
v2: IApiFacadeV2;
|
|
56
|
-
}
|
|
57
|
-
export interface QueryExecutionOptions {
|
|
58
|
-
/**
|
|
59
|
-
* Определяет, должен ли запрос выполняться в фоновом режиме.
|
|
60
|
-
* Если запрос выполняется в фоновом режиме, то он не блокирует интерфейс.
|
|
61
|
-
*/
|
|
62
|
-
background?: boolean;
|
|
63
|
-
}
|
|
64
|
-
export type IApiFacadeV2FetchOptions = QueryExecutionOptions;
|
|
65
|
-
export interface IApiFacadeV2 {
|
|
66
|
-
fetch(data: ApiV2.Request.Fetch, options?: IApiFacadeV2FetchOptions): Promise<{
|
|
67
|
-
rows: any[];
|
|
68
|
-
}>;
|
|
69
|
-
}
|
|
70
|
-
export interface MdtRecord {
|
|
71
|
-
$id?: RecordId;
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}
|
|
74
|
-
export interface MdtQueryResult {
|
|
75
|
-
$: string;
|
|
76
|
-
/** Результаты выполнения операции */
|
|
77
|
-
items: {
|
|
78
|
-
/** ID сохраненных записей */
|
|
79
|
-
ids: number[];
|
|
80
|
-
/** Информация о затронутых строках */
|
|
81
|
-
stats: {
|
|
82
|
-
deleted: number;
|
|
83
|
-
inserted: number;
|
|
84
|
-
updated: number;
|
|
85
|
-
};
|
|
86
|
-
}[];
|
|
87
|
-
type: string;
|
|
88
|
-
}
|
|
89
|
-
export interface ApiSaveOptions extends QueryExecutionOptions {
|
|
90
|
-
messageAction?: MessageMetaData;
|
|
91
|
-
}
|
|
1
|
+
import { BaseQuery } from "../../../../services/api/BaseQuery";
|
|
2
|
+
import { FetchResult } from "../../../../datasources/FetchResult";
|
|
3
|
+
import { ApiRequestOptions } from "../../../../services/api/ApiRequestOptions";
|
|
4
|
+
import { RecordId } from "../../../../common/Record";
|
|
5
|
+
import { AnyObject } from "../../../../../scripts/helpers/types";
|
|
6
|
+
import { MessageMetaData } from "../../../../services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes";
|
|
7
|
+
import { ApiV2 } from "../../../../services/api/ApiAccessor/apiV2Types";
|
|
8
|
+
export interface QueryParams {
|
|
9
|
+
[param: string]: string | number;
|
|
10
|
+
}
|
|
11
|
+
export interface IApiFacade {
|
|
12
|
+
/** Отправить запрос на получение данных по объекту
|
|
13
|
+
* Метод получает данные без переводов.
|
|
14
|
+
* Для получения локализованных данных используйте {@link fetchWithExts}
|
|
15
|
+
*/
|
|
16
|
+
fetch<R = FetchResult>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
17
|
+
fetchWithExts<R = FetchResult>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
18
|
+
/** Отправить запрос к функции */
|
|
19
|
+
fetchFunction<R extends FetchResult = FetchResult>(objectCode: string, params?: AnyObject, query?: BaseQuery): Promise<R>;
|
|
20
|
+
/** Отправить запрос на получение одной записи из объекта */
|
|
21
|
+
fetchRecord<R = MdtRecord>(objectCode: string, query?: BaseQuery, options?: QueryExecutionOptions): Promise<R>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Отправить запрос к функции
|
|
25
|
+
*/
|
|
26
|
+
fetchFromFunction<R extends FetchResult = FetchResult>(objectCode: string, query?: BaseQuery, params?: any[]): Promise<R>;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
* Отправить запрос на получение одной записи из функции
|
|
30
|
+
*/
|
|
31
|
+
fetchRecordFromFunction<R = MdtRecord>(objectCode: string, query?: BaseQuery, params?: any[]): Promise<R>;
|
|
32
|
+
/** Отправить запрос к хранимой процедуре */
|
|
33
|
+
executeStoredProcedure<Result = any>(objectCode: string, params: any): PromiseLike<Result>;
|
|
34
|
+
/** Сохранить новые данные */
|
|
35
|
+
save<S = MdtQueryResult>(objectCode: string, record: MdtRecord, options?: ApiSaveOptions): Promise<S>;
|
|
36
|
+
/** Удалить данные */
|
|
37
|
+
delete(objectCode: string, ids: number[]): Promise<MdtQueryResult>;
|
|
38
|
+
/** Отправить запрос к API */
|
|
39
|
+
request<R = any>(serviceUrl: string, params?: any, options?: ApiRequestOptions): Promise<R>;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated, т.к. не поддерживает относительные пути. Используйте getApiEndpoint
|
|
42
|
+
*/
|
|
43
|
+
getFullUrl(url: string, queryParams?: QueryParams): string;
|
|
44
|
+
/** Получить полный url
|
|
45
|
+
* - поддерживает относительные пути
|
|
46
|
+
* - url можно указывать любым способом
|
|
47
|
+
*
|
|
48
|
+
* **Например,**
|
|
49
|
+
|
|
50
|
+
* Если `url` = `/item/list`, то возвращает `http://mdt-instance.ru/project/api/v1/item/list`
|
|
51
|
+
*/
|
|
52
|
+
getApiEndpoint(url: string, queryParams?: QueryParams): string;
|
|
53
|
+
/** Скачивание файла */
|
|
54
|
+
downloadFile(fileUid: string): void;
|
|
55
|
+
v2: IApiFacadeV2;
|
|
56
|
+
}
|
|
57
|
+
export interface QueryExecutionOptions {
|
|
58
|
+
/**
|
|
59
|
+
* Определяет, должен ли запрос выполняться в фоновом режиме.
|
|
60
|
+
* Если запрос выполняется в фоновом режиме, то он не блокирует интерфейс.
|
|
61
|
+
*/
|
|
62
|
+
background?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export type IApiFacadeV2FetchOptions = QueryExecutionOptions;
|
|
65
|
+
export interface IApiFacadeV2 {
|
|
66
|
+
fetch(data: ApiV2.Request.Fetch, options?: IApiFacadeV2FetchOptions): Promise<{
|
|
67
|
+
rows: any[];
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
export interface MdtRecord {
|
|
71
|
+
$id?: RecordId;
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}
|
|
74
|
+
export interface MdtQueryResult {
|
|
75
|
+
$: string;
|
|
76
|
+
/** Результаты выполнения операции */
|
|
77
|
+
items: {
|
|
78
|
+
/** ID сохраненных записей */
|
|
79
|
+
ids: number[];
|
|
80
|
+
/** Информация о затронутых строках */
|
|
81
|
+
stats: {
|
|
82
|
+
deleted: number;
|
|
83
|
+
inserted: number;
|
|
84
|
+
updated: number;
|
|
85
|
+
};
|
|
86
|
+
}[];
|
|
87
|
+
type: string;
|
|
88
|
+
}
|
|
89
|
+
export interface ApiSaveOptions extends QueryExecutionOptions {
|
|
90
|
+
messageAction?: MessageMetaData;
|
|
91
|
+
}
|
|
@@ -1,191 +1,190 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
/// <reference types="
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
icon
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
* @
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* const
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*}
|
|
126
|
-
*
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* - При
|
|
135
|
-
* - При
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
140
|
-
* @param options
|
|
141
|
-
* @
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
export
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
1
|
+
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { HeaderSize } from "mdtScripts/components/form/header/types";
|
|
4
|
+
import { ComponentConfigParams } from "mdtScripts/helpers/ui/elementModificators/modificatorsTypes";
|
|
5
|
+
import { InputOptions } from "../../../../components/baseFormControls/input/inputOptions";
|
|
6
|
+
import { DropdownInputItemOptions } from "../../../../components/dropdown/menu/item/dropdownInputItemOptions";
|
|
7
|
+
import { DropdownItemViewOptions } from "../../../../components/dropdown/menu/item/dropdownItemWrapOptions";
|
|
8
|
+
import { FieldViewOptions } from "../../../../components/form/fieldView/fieldViewOptions";
|
|
9
|
+
import { Icon, IconElOptions, IconOptions } from "../../../../components/icon/iconOptions";
|
|
10
|
+
import { ProcessPrincipalsListItem } from "../../../../components/processPrincipalsList/ProcessPrincipalsListItem";
|
|
11
|
+
import { FormattedText } from "../../../../helpers/formattedText";
|
|
12
|
+
import { Markdown, MithrilAttributes, MithrilControl, Valued, ViewControl, ViewElement } from "../../../../helpers/types";
|
|
13
|
+
import { CommonControlOptions } from "../../../../views/form/controls/commonControl/ICommonControl";
|
|
14
|
+
import { FileInputFacadeOptions } from "../../../../views/form/controls/fileupload/FileInputFacade.types";
|
|
15
|
+
import { MonacoCodeOptions } from "../../../../views/form/controls/monacoEditor/MonacoCodeOptions.schema";
|
|
16
|
+
import { IMultiPickerFacade, MultiPickerFacadeOptions, MultiPickerItem } from "../../../../views/form/controls/picker/multiPickerFacade/IMultiPickerFacade";
|
|
17
|
+
import { ToggleablePanelsEditorFacadeOptions } from "../../../../views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions";
|
|
18
|
+
import { ChartFormControlFacadeOptions, IChartControlFacade } from "../../../../views/page/charts/facade/IChartControlFacade";
|
|
19
|
+
import { CodeEditorFacade, CodeEditorFacadeOptions } from "../components/CodeEditorFacade";
|
|
20
|
+
import { ButtonFacade } from "../Form/IFormFacade";
|
|
21
|
+
import { TabularListSettings } from "../../../../views/list/tabular/TabularListTypes";
|
|
22
|
+
import { TextWithIconOptions } from "mdtScripts/components/textWithIcon/textWithIconOptions";
|
|
23
|
+
import { ClassNamesArg } from "../../../../helpers/utils/classNames";
|
|
24
|
+
import { ResizablePanelsCtrl } from "mdtScripts/components/resizablePanels/resizablePanelsCtrl";
|
|
25
|
+
import { ResizablePanelsOptions } from "mdtScripts/components/resizablePanels/resizablePanelsOptions";
|
|
26
|
+
import { UserMenuSlot } from "../../../../components/navigation/header/userButton/UserMenuSlot";
|
|
27
|
+
export interface IUiComponentsFacade {
|
|
28
|
+
button(button: ButtonFacade, translate?: boolean): ViewElement;
|
|
29
|
+
topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
|
|
30
|
+
icon(code: string, options?: IconOptions): _mithril.MithrilVirtualElement;
|
|
31
|
+
iconHTML(icon: Icon, options?: IconElOptions): HTMLElement;
|
|
32
|
+
processFormBlock(options: IProcessFormBlockOptions): _mithril.MithrilVirtualElement;
|
|
33
|
+
commonControl(options: CommonControlOptions): _mithril.MithrilVirtualElement;
|
|
34
|
+
unstyledInput(options: InputOptions): _mithril.MithrilVirtualElement;
|
|
35
|
+
input(options: InputOptions): _mithril.MithrilVirtualElement;
|
|
36
|
+
tooltip(tooltipContent: TooltipContent, params: ComponentConfigParams): void;
|
|
37
|
+
field(options: FieldViewOptions): _mithril.MithrilVirtualElement;
|
|
38
|
+
dropdownItem(options: DropdownItemViewOptions): _mithril.MithrilVirtualElement;
|
|
39
|
+
dropdownInputItem(options: DropdownInputItemOptions): _mithril.MithrilVirtualElement;
|
|
40
|
+
toggleablePanelsCtrl(options: ToggleablePanelsEditorFacadeOptions): ViewControl;
|
|
41
|
+
fileCtrl(options: FileInputFacadeOptions): ViewControl;
|
|
42
|
+
editors: {
|
|
43
|
+
codeEditor(options: CodeEditorFacadeOptions): CodeEditorFacade;
|
|
44
|
+
};
|
|
45
|
+
/** @deprecated Use `UiComponents.editors.codeEditor` instead. */
|
|
46
|
+
fullScreenCodeEditor(options: MonacoCodeOptions): _mithril.MithrilVirtualElement;
|
|
47
|
+
chart(createOptions: () => ChartFormControlFacadeOptions): IChartControlFacade;
|
|
48
|
+
/**
|
|
49
|
+
* @experimental
|
|
50
|
+
* @deprecated
|
|
51
|
+
*/
|
|
52
|
+
multiPicker<T extends MultiPickerItem = MultiPickerItem>(options: MultiPickerFacadeOptions<T>): IMultiPickerFacade<T>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* **Пример**
|
|
56
|
+
*
|
|
57
|
+
* ```js
|
|
58
|
+
* const markdownText = 'Удалено записей: **9**';
|
|
59
|
+
* Ui.showModal({
|
|
60
|
+
* $view: () => UiComponents.markdown(markdownText)
|
|
61
|
+
* })
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
markdown(content: string, options?: MarkdownOptions): ViewElement;
|
|
65
|
+
/**
|
|
66
|
+
* Компонент для отображения нескольких колонок из разных tabular таблиц в одной таблице.
|
|
67
|
+
*/
|
|
68
|
+
tabularList(options: TabularListSettings & {
|
|
69
|
+
listOptions?: any;
|
|
70
|
+
listExtConfig?: any;
|
|
71
|
+
}): MithrilControl & {
|
|
72
|
+
getListCtrl(): any;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Компонент для отображения разницы между датами.
|
|
76
|
+
*
|
|
77
|
+
* @param date дата события
|
|
78
|
+
* @param base базовая дата относительно которой вычисляется разница во времени. По умолчанию - текущая дата
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* **Пример**
|
|
82
|
+
*
|
|
83
|
+
* ```js
|
|
84
|
+
* const startDate = new Date("2024-01-01");
|
|
85
|
+
* const endDate = new Date("2024-01-03");
|
|
86
|
+
* Ui.userFriendlyDatesDistance(startDate);
|
|
87
|
+
* // Результат: "2 дня назад"
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* При наведении курсора отображается точная дата и время
|
|
91
|
+
*/
|
|
92
|
+
userFriendlyDatesDistance(date: Date, base?: Date): ViewElement;
|
|
93
|
+
/**
|
|
94
|
+
* Выводит иконку и текст с базовым отступом для консистентности системы
|
|
95
|
+
*
|
|
96
|
+
* @param options параметры для создания элемента с иконкой и текстом
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* **Примеры**
|
|
100
|
+
*
|
|
101
|
+
* Создать элемент с иконкой и простым текстом:
|
|
102
|
+
* ```js
|
|
103
|
+
* Ui.textWithIcon({
|
|
104
|
+
* icon: { name: "check" },
|
|
105
|
+
* textContent: { text: "Успешно выполнено" }
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* Создать элемент с иконкой и текстом с дополнительными стилями:
|
|
110
|
+
* ```js
|
|
111
|
+
*Ui.textWithIcon({
|
|
112
|
+
*icon: {
|
|
113
|
+
* name: "warning",
|
|
114
|
+
* options: {
|
|
115
|
+
* className: "icon-warning",
|
|
116
|
+
* animate: "flash",
|
|
117
|
+
* tooltip: "Внимание!"
|
|
118
|
+
* }
|
|
119
|
+
*},
|
|
120
|
+
*textContent: {
|
|
121
|
+
* text: "Ошибка загрузки",
|
|
122
|
+
* className: "error-text",
|
|
123
|
+
* attrs: { style: "color: red; font-weight: bold;" }
|
|
124
|
+
*}
|
|
125
|
+
*});
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
textWithIcon(options: TextWithIconOptions): ViewElement;
|
|
129
|
+
/**
|
|
130
|
+
* Адаптирует React-компонент для использования в Mithril-представлениях.
|
|
131
|
+
*
|
|
132
|
+
* Создаёт Mithril-элемент, который управляет жизненным циклом React-компонента:
|
|
133
|
+
* - При первом рендере создаёт React root и монтирует компонент
|
|
134
|
+
* - При изменении пропсов перерендеривает компонент
|
|
135
|
+
* - При размонтировании Mithril-элемента корректно unmount'ит React root
|
|
136
|
+
*
|
|
137
|
+
* @param Component React-компонент для адаптации
|
|
138
|
+
* @param props Пропсы для компонента
|
|
139
|
+
* @param options Дополнительные опции
|
|
140
|
+
* @param options.className CSS-классы для обёртки (div-элемента)
|
|
141
|
+
* @returns ViewElement для использования в Mithril
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* // В Mithril view:
|
|
145
|
+
* return reactComponentWrap(MyReactComponent, {
|
|
146
|
+
* title: "Hello",
|
|
147
|
+
* onClick: () => console.log("clicked")
|
|
148
|
+
* }, {
|
|
149
|
+
* className: "my-wrapper"
|
|
150
|
+
* });
|
|
151
|
+
*/
|
|
152
|
+
reactComponentWrap<P>(Component: React.FC<P>, props?: P, options?: {
|
|
153
|
+
className?: ClassNamesArg;
|
|
154
|
+
}): ViewElement;
|
|
155
|
+
resizablePanelsCtrl(options: ResizablePanelsOptions): ResizablePanelsCtrl;
|
|
156
|
+
UserMenuSlot: typeof UserMenuSlot;
|
|
157
|
+
}
|
|
158
|
+
export interface IProcessFormBlockOptions {
|
|
159
|
+
title: string;
|
|
160
|
+
subtitle: string;
|
|
161
|
+
titleTooltip: string;
|
|
162
|
+
subtitleTooltip: string;
|
|
163
|
+
icon?: Icon;
|
|
164
|
+
description?: Markdown;
|
|
165
|
+
principals?: ProcessPrincipalsListItem[];
|
|
166
|
+
principalsTooltip?: string;
|
|
167
|
+
principalsTextError?: string;
|
|
168
|
+
principalsOnclick?: (item: ProcessPrincipalsListItem) => void;
|
|
169
|
+
historyAction?: ButtonFacade;
|
|
170
|
+
actions?: ButtonFacade[];
|
|
171
|
+
}
|
|
172
|
+
export interface TopNavButton {
|
|
173
|
+
title: string;
|
|
174
|
+
icon?: Icon;
|
|
175
|
+
attrs?: MithrilAttributes;
|
|
176
|
+
showCaret?: boolean;
|
|
177
|
+
focused?: Valued<boolean>;
|
|
178
|
+
execute?: () => void;
|
|
179
|
+
}
|
|
180
|
+
export type TooltipContent = (el: HTMLElement) => FormattedText;
|
|
181
|
+
export interface MarkdownOptions {
|
|
182
|
+
type?: string;
|
|
183
|
+
title?: string;
|
|
184
|
+
icon?: string;
|
|
185
|
+
className?: string;
|
|
186
|
+
zones?: {
|
|
187
|
+
end?: ViewElement[];
|
|
188
|
+
};
|
|
189
|
+
headerSize?: HeaderSize;
|
|
190
|
+
}
|