mdt-client 31.3.38 → 31.3.39
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 +11 -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 +17 -17
- 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 +12 -12
- 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 -22
- 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 +31 -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 -19
- 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 -22
- package/types/components/icon/iconOptions.d.ts +24 -22
- package/types/components/iconButton/iconButtonOptions.d.ts +10 -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 +17 -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 +16 -16
- 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 +85 -85
- package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -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/utils/classNames.d.ts +20 -20
- 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 +4 -4
- 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 +8 -8
- package/types/security/PermissionLevel.d.ts +40 -40
- package/types/security/User.d.ts +20 -19
- 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 -585
- package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
- 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 +36 -36
- 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 +102 -102
- 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 -239
- package/types/services/customModules/facades/IMdtFacade.d.ts +88 -88
- 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 +8 -8
- package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
- package/types/services/customModules/facades/List/IListControlFacade.d.ts +88 -88
- 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 -77
- package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -53
- package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
- package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
- 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 +91 -91
- package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
- package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
- package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +191 -191
- package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
- package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
- package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +42 -42
- package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
- package/types/services/e2e/e2eServiceType.d.ts +11 -11
- package/types/ui-kit/IUiKitUtilsFacade.d.ts +35 -35
- package/types/ui-kit/UiKitFacade.d.ts +106 -104
- 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 +29 -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 +102 -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 +145 -145
- 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 -760
- 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 +0,0 @@
|
|
|
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 declare 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,185 +0,0 @@
|
|
|
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
|
-
export interface IUiComponentsFacade {
|
|
25
|
-
button(button: ButtonFacade, translate?: boolean): ViewElement;
|
|
26
|
-
topNavButton(options: TopNavButton): _mithril.MithrilVirtualElement;
|
|
27
|
-
icon(code: string, options?: IconOptions): _mithril.MithrilVirtualElement;
|
|
28
|
-
iconHTML(icon: Icon, options?: IconElOptions): HTMLElement;
|
|
29
|
-
processFormBlock(options: IProcessFormBlockOptions): _mithril.MithrilVirtualElement;
|
|
30
|
-
commonControl(options: CommonControlOptions): _mithril.MithrilVirtualElement;
|
|
31
|
-
unstyledInput(options: InputOptions): _mithril.MithrilVirtualElement;
|
|
32
|
-
input(options: InputOptions): _mithril.MithrilVirtualElement;
|
|
33
|
-
tooltip(tooltipContent: TooltipContent, params: ComponentConfigParams): void;
|
|
34
|
-
field(options: FieldViewOptions): _mithril.MithrilVirtualElement;
|
|
35
|
-
dropdownItem(options: DropdownItemViewOptions): _mithril.MithrilVirtualElement;
|
|
36
|
-
dropdownInputItem(options: DropdownInputItemOptions): _mithril.MithrilVirtualElement;
|
|
37
|
-
toggleablePanelsCtrl(options: ToggleablePanelsEditorFacadeOptions): ViewControl;
|
|
38
|
-
fileCtrl(options: FileInputFacadeOptions): ViewControl;
|
|
39
|
-
editors: {
|
|
40
|
-
codeEditor(options: CodeEditorFacadeOptions): CodeEditorFacade;
|
|
41
|
-
};
|
|
42
|
-
/** @deprecated Use `UiComponents.editors.codeEditor` instead. */
|
|
43
|
-
fullScreenCodeEditor(options: MonacoCodeOptions): _mithril.MithrilVirtualElement;
|
|
44
|
-
chart(createOptions: () => ChartFormControlFacadeOptions): IChartControlFacade;
|
|
45
|
-
/**
|
|
46
|
-
* @experimental
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
multiPicker<T extends MultiPickerItem = MultiPickerItem>(options: MultiPickerFacadeOptions<T>): IMultiPickerFacade<T>;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* **Пример**
|
|
53
|
-
*
|
|
54
|
-
* ```js
|
|
55
|
-
* const markdownText = 'Удалено записей: **9**';
|
|
56
|
-
* Ui.showModal({
|
|
57
|
-
* $view: () => UiComponents.markdown(markdownText)
|
|
58
|
-
* })
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
markdown(content: string, options?: MarkdownOptions): ViewElement;
|
|
62
|
-
/**
|
|
63
|
-
* Компонент для отображения нескольких колонок из разных tabular таблиц в одной таблице.
|
|
64
|
-
*/
|
|
65
|
-
tabularList(options: TabularListSettings & {
|
|
66
|
-
listOptions?: any;
|
|
67
|
-
listExtConfig?: any;
|
|
68
|
-
}): MithrilControl & {
|
|
69
|
-
getListCtrl(): any;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Компонент для отображения разницы между датами.
|
|
73
|
-
*
|
|
74
|
-
* @param date дата события
|
|
75
|
-
* @param base базовая дата относительно которой вычисляется разница во времени. По умолчанию - текущая дата
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* **Пример**
|
|
79
|
-
*
|
|
80
|
-
* ```js
|
|
81
|
-
* const startDate = new Date("2024-01-01");
|
|
82
|
-
* const endDate = new Date("2024-01-03");
|
|
83
|
-
* Ui.userFriendlyDatesDistance(startDate);
|
|
84
|
-
* // Результат: "2 дня назад"
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* При наведении курсора отображается точная дата и время
|
|
88
|
-
*/
|
|
89
|
-
userFriendlyDatesDistance(date: Date, base?: Date): ViewElement;
|
|
90
|
-
/**
|
|
91
|
-
* Выводит иконку и текст с базовым отступом для консистентности системы
|
|
92
|
-
*
|
|
93
|
-
* @param options параметры для создания элемента с иконкой и текстом
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* **Примеры**
|
|
97
|
-
*
|
|
98
|
-
* Создать элемент с иконкой и простым текстом:
|
|
99
|
-
* ```js
|
|
100
|
-
* Ui.textWithIcon({
|
|
101
|
-
* icon: { name: "check" },
|
|
102
|
-
* textContent: { text: "Успешно выполнено" }
|
|
103
|
-
* });
|
|
104
|
-
* ```
|
|
105
|
-
*
|
|
106
|
-
* Создать элемент с иконкой и текстом с дополнительными стилями:
|
|
107
|
-
* ```js
|
|
108
|
-
*Ui.textWithIcon({
|
|
109
|
-
*icon: {
|
|
110
|
-
* name: "warning",
|
|
111
|
-
* options: {
|
|
112
|
-
* className: "icon-warning",
|
|
113
|
-
* animate: "flash",
|
|
114
|
-
* tooltip: "Внимание!"
|
|
115
|
-
* }
|
|
116
|
-
*},
|
|
117
|
-
*textContent: {
|
|
118
|
-
* text: "Ошибка загрузки",
|
|
119
|
-
* className: "error-text",
|
|
120
|
-
* attrs: { style: "color: red; font-weight: bold;" }
|
|
121
|
-
*}
|
|
122
|
-
*});
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
textWithIcon(options: TextWithIconOptions): ViewElement;
|
|
126
|
-
/**
|
|
127
|
-
* Адаптирует React-компонент для использования в Mithril-представлениях.
|
|
128
|
-
*
|
|
129
|
-
* Создаёт Mithril-элемент, который управляет жизненным циклом React-компонента:
|
|
130
|
-
* - При первом рендере создаёт React root и монтирует компонент
|
|
131
|
-
* - При изменении пропсов перерендеривает компонент
|
|
132
|
-
* - При размонтировании Mithril-элемента корректно unmount'ит React root
|
|
133
|
-
*
|
|
134
|
-
* @param Component React-компонент для адаптации
|
|
135
|
-
* @param props Пропсы для компонента
|
|
136
|
-
* @param options Дополнительные опции
|
|
137
|
-
* @param options.className CSS-классы для обёртки (div-элемента)
|
|
138
|
-
* @returns ViewElement для использования в Mithril
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* // В Mithril view:
|
|
142
|
-
* return reactComponentWrap(MyReactComponent, {
|
|
143
|
-
* title: "Hello",
|
|
144
|
-
* onClick: () => console.log("clicked")
|
|
145
|
-
* }, {
|
|
146
|
-
* className: "my-wrapper"
|
|
147
|
-
* });
|
|
148
|
-
*/
|
|
149
|
-
reactComponentWrap<P>(Component: React.FC<P>, props?: P, options?: {
|
|
150
|
-
className?: ClassNamesArg;
|
|
151
|
-
}): ViewElement;
|
|
152
|
-
}
|
|
153
|
-
export interface IProcessFormBlockOptions {
|
|
154
|
-
title: string;
|
|
155
|
-
subtitle: string;
|
|
156
|
-
titleTooltip: string;
|
|
157
|
-
subtitleTooltip: string;
|
|
158
|
-
icon?: Icon;
|
|
159
|
-
description?: Markdown;
|
|
160
|
-
principals?: ProcessPrincipalsListItem[];
|
|
161
|
-
principalsTooltip?: string;
|
|
162
|
-
principalsTextError?: string;
|
|
163
|
-
principalsOnclick?: (item: ProcessPrincipalsListItem) => void;
|
|
164
|
-
historyAction?: ButtonFacade;
|
|
165
|
-
actions?: ButtonFacade[];
|
|
166
|
-
}
|
|
167
|
-
export interface TopNavButton {
|
|
168
|
-
title: string;
|
|
169
|
-
icon?: Icon;
|
|
170
|
-
attrs?: MithrilAttributes;
|
|
171
|
-
showCaret?: boolean;
|
|
172
|
-
focused?: Valued<boolean>;
|
|
173
|
-
execute?: () => void;
|
|
174
|
-
}
|
|
175
|
-
export declare type TooltipContent = (el: HTMLElement) => FormattedText;
|
|
176
|
-
export interface MarkdownOptions {
|
|
177
|
-
type?: string;
|
|
178
|
-
title?: string;
|
|
179
|
-
icon?: string;
|
|
180
|
-
className?: string;
|
|
181
|
-
zones?: {
|
|
182
|
-
end?: ViewElement[];
|
|
183
|
-
};
|
|
184
|
-
headerSize?: HeaderSize;
|
|
185
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
import { MithrilControl } from "../../../../helpers/types";
|
|
3
|
-
import { DropdownOptions } from "../../../dropdown/IDropDownMenu";
|
|
4
|
-
import { ButtonFacade } from "../Form/IFormFacade";
|
|
5
|
-
import { DropdownTargetContext, IDropdownMenu } from "../../../dropdown/IDropDownMenu";
|
|
6
|
-
import { IModalFacade } from "../components/ModalFacade";
|
|
7
|
-
import { UiType } from "../../../../helpers/IUi";
|
|
8
|
-
import { IPanelOptions } from "mdtScripts/views/controls/panels/panelOptions";
|
|
9
|
-
export declare type onModalResizeCallback = (data: IModalSizingState) => void;
|
|
10
|
-
export interface IType<T> {
|
|
11
|
-
new (...args: any[]): T;
|
|
12
|
-
}
|
|
13
|
-
export interface ParentCtrl {
|
|
14
|
-
getViewControl(): MithrilControl;
|
|
15
|
-
}
|
|
16
|
-
export declare type NotificationType = "default" | "info" | "success" | "warning" | "danger";
|
|
17
|
-
export declare type UiContainerContent = MithrilControl | ParentCtrl | string;
|
|
18
|
-
export interface CustomNotification {
|
|
19
|
-
/** Заголовок сообщения */
|
|
20
|
-
title: string;
|
|
21
|
-
/** Текст сообщения */
|
|
22
|
-
text: string;
|
|
23
|
-
/** Наименование иконки */
|
|
24
|
-
icon?: string;
|
|
25
|
-
/** Тип выводимого сообщения*/
|
|
26
|
-
type?: NotificationType;
|
|
27
|
-
/** Кнопки, отображаемые в сообщении*/
|
|
28
|
-
actions?: ButtonFacade[];
|
|
29
|
-
}
|
|
30
|
-
export interface IUiFacade {
|
|
31
|
-
/** Вызвать окно уведомления */
|
|
32
|
-
showNotification(msg: CustomNotification, duration?: number): void;
|
|
33
|
-
/** Вызвать модальное окно */
|
|
34
|
-
showModal(content: UiContainerContent, options?: IModalOptions): IModalFacade;
|
|
35
|
-
/** Вызвать боковую панель */
|
|
36
|
-
showSidebar(content: UiContainerContent, options?: ISidebarOptions): void;
|
|
37
|
-
/** Создать выпадающее меню */
|
|
38
|
-
createDropdown<I>(options: DropdownOptions<I>, el: Element, ctx: DropdownTargetContext<I>): IDropdownMenu<I>;
|
|
39
|
-
/** Создать компонент с пользовательской версткой */
|
|
40
|
-
createControl(view: () => _mithril.MithrilVirtualElement): MithrilControl;
|
|
41
|
-
}
|
|
42
|
-
export declare type ModalTypes = UiType;
|
|
43
|
-
export interface IModalOptions {
|
|
44
|
-
/** CSS класс */
|
|
45
|
-
class?: string;
|
|
46
|
-
/** Подписка на инциализацию модального окна */
|
|
47
|
-
initContainer?: (container: any) => void;
|
|
48
|
-
/** Размер модального окна */
|
|
49
|
-
size?: "lg" | "sm" | "md";
|
|
50
|
-
/** Классы CSS для содержимого модального окна */
|
|
51
|
-
css?: string;
|
|
52
|
-
/** Заголовок модального окна */
|
|
53
|
-
title?: string;
|
|
54
|
-
/** Иконка для модального окна */
|
|
55
|
-
icon?: string;
|
|
56
|
-
/** Затемнение заднего фона */
|
|
57
|
-
backdrop?: boolean;
|
|
58
|
-
/** Параметры размеров модального окна */
|
|
59
|
-
initialSizingState?: IModalSizingState;
|
|
60
|
-
/** Тип модального окна */
|
|
61
|
-
type?: ModalTypes;
|
|
62
|
-
/** Дополнительные кнопки на окне */
|
|
63
|
-
buttons?: ButtonFacade[];
|
|
64
|
-
/** Настройки кнопки закрытия модального окна */
|
|
65
|
-
closeButton?: Partial<ButtonFacade>;
|
|
66
|
-
/**
|
|
67
|
-
* Возможность закрыть окно по кнопкам закрытия и с помощью клавиатуры
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
closable?: boolean;
|
|
71
|
-
onClose?: (closeResult?: any) => void;
|
|
72
|
-
/** Содержит ли модальное окно какое-либо действие */
|
|
73
|
-
isAction?: boolean;
|
|
74
|
-
}
|
|
75
|
-
export declare type ISidebarOptions = IPanelOptions;
|
|
76
|
-
export interface IModalSizingState {
|
|
77
|
-
/** Отображать окно в расширенном на весь экран виде */
|
|
78
|
-
full: boolean;
|
|
79
|
-
/** Ширина */
|
|
80
|
-
width: number;
|
|
81
|
-
/** Высота */
|
|
82
|
-
height: number;
|
|
83
|
-
}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { KeyStorage } from "../../../../helpers/utils/keyStorage/KeyStorage";
|
|
2
|
-
import { FormatOptions } from "../../../../helpers/formatOptions";
|
|
3
|
-
import { IListButtonExtendPipelineService } from "../services/IListButtonExtendPipelineService";
|
|
4
|
-
import { getValued } from "../../../../helpers/utils/valued/getValued";
|
|
5
|
-
import { AnyObject } from "../../../../helpers/types";
|
|
6
|
-
import { EventEmitter } from "../../../../helpers/events/EventEmitter";
|
|
7
|
-
import { Pipeline } from "../../../../helpers/pipeline/Pipeline";
|
|
8
|
-
import { ImmutableArgPipeline } from "../../../../helpers/pipeline/ImmutableArgPipeline";
|
|
9
|
-
import { MdtDateStringFormat } from "mdtScripts/helpers/dateUtils";
|
|
10
|
-
export interface IUtilsFacade {
|
|
11
|
-
ListButtonExtendPipelineService: IListButtonExtendPipelineService;
|
|
12
|
-
/**
|
|
13
|
-
* Переводит текст по ключу из таблицы с локализацией
|
|
14
|
-
*
|
|
15
|
-
* @example Примеры
|
|
16
|
-
*
|
|
17
|
-
* ```js
|
|
18
|
-
* const text = Utils.getText("Save");
|
|
19
|
-
* // text: "Сохранить" (в зависимости от языка)
|
|
20
|
-
*
|
|
21
|
-
* // Допустим есть ключ "Поле {field} отсутствует в таблице {table}"
|
|
22
|
-
* const field = "MDT_FlagActive";
|
|
23
|
-
* const table = "md.Customer"
|
|
24
|
-
* const text = Utils.getText("Field `{field}` is missing in table `{table}`", { field, table });
|
|
25
|
-
* // text: "Поле `MDT_FlagActive` отсутствует в таблице `md.Customer`"
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
getText(textCode: string, args?: AnyObject, complex?: true): string;
|
|
29
|
-
/**
|
|
30
|
-
* Форматирует значение
|
|
31
|
-
* - type: "number" - форматирует как число
|
|
32
|
-
* - type: "date" - форматирует как дату
|
|
33
|
-
*
|
|
34
|
-
* @param value Значение
|
|
35
|
-
* @param options Опции форматирования
|
|
36
|
-
*
|
|
37
|
-
* @example Примеры
|
|
38
|
-
*
|
|
39
|
-
* ```js
|
|
40
|
-
* // форматирование даты
|
|
41
|
-
* const today = new Date();
|
|
42
|
-
* const formattedValue = Utils.format(today, { type: "date" });
|
|
43
|
-
* // formattedValue: "01.01.2024"
|
|
44
|
-
*
|
|
45
|
-
* // форматирование числа
|
|
46
|
-
* const formattedValue = Utils.format(123456.789, { type: "number" });
|
|
47
|
-
* // formattedValue: "123 456,79"
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
format(value: any, options?: FormatOptions): any;
|
|
51
|
-
/**
|
|
52
|
-
* Генерирует GUID
|
|
53
|
-
*
|
|
54
|
-
* @example Примеры
|
|
55
|
-
*
|
|
56
|
-
* ```js
|
|
57
|
-
* const guid = Utils.guid();
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
guid(): string;
|
|
61
|
-
/**
|
|
62
|
-
* Получает значение из localStorage
|
|
63
|
-
*
|
|
64
|
-
* @param key Ключ
|
|
65
|
-
* @param defaultValue Значение по умолчанию
|
|
66
|
-
*
|
|
67
|
-
* @example Примеры
|
|
68
|
-
*
|
|
69
|
-
* ```js
|
|
70
|
-
* const storage = Utils.getStorageItem("feature-name", "default");
|
|
71
|
-
*
|
|
72
|
-
* // Если не было ранее значения
|
|
73
|
-
* const v = storage.get(); // "default"
|
|
74
|
-
*
|
|
75
|
-
* // Если было ранее значение
|
|
76
|
-
* storage.set("value");
|
|
77
|
-
* const v = storage.get(); // "value"
|
|
78
|
-
*
|
|
79
|
-
* // Очистка значения
|
|
80
|
-
* storage.clear();
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
getStorageItem<T>(key: string, defaultValue?: T): KeyStorage<T>;
|
|
84
|
-
/**
|
|
85
|
-
* Скачать файл по url
|
|
86
|
-
* Ошибки загрузки не выводятся.
|
|
87
|
-
* Увеличить лимит времени загрузки можно с помощью глобальной переменной mdt.file.download.timeLimit
|
|
88
|
-
*/
|
|
89
|
-
downloadFile(url: string): void;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @example Примеры
|
|
93
|
-
*
|
|
94
|
-
* ```js
|
|
95
|
-
* const value1 = getValued(123), // 123
|
|
96
|
-
* const value2 = getValued(() => 123), // 123
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
getValued: typeof getValued;
|
|
100
|
-
/**
|
|
101
|
-
* Объединяет два объекта в один. Не мутирует исходные объекты.
|
|
102
|
-
*
|
|
103
|
-
* @param object1 Первый объект
|
|
104
|
-
* @param object2 Второй объект
|
|
105
|
-
*
|
|
106
|
-
* @example Примеры
|
|
107
|
-
*
|
|
108
|
-
* ```js
|
|
109
|
-
* const object1 = { a: 1, b: 2 };
|
|
110
|
-
* const object2 = { b: 3, c: 4 };
|
|
111
|
-
* const result = Utils.mergeDeep(object1, object2);
|
|
112
|
-
* // result: { a: 1, b: 3, c: 4 }
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
mergeDeep<T = AnyObject>(object1: T, object2: T): AnyObject;
|
|
116
|
-
/**
|
|
117
|
-
* Удаляет элемент из массива (первое вхождение).
|
|
118
|
-
*
|
|
119
|
-
* @param array Массив, из которого нужно удалить элемент
|
|
120
|
-
* @param item Элемент, который нужно удалить
|
|
121
|
-
* @example Примеры
|
|
122
|
-
|
|
123
|
-
* ```js
|
|
124
|
-
* const array = [1, 2, 3, 2];
|
|
125
|
-
* Utils.deleteFromArray(array, 2);
|
|
126
|
-
* // array теперь: [1, 3, 2]
|
|
127
|
-
* ```
|
|
128
|
-
*/
|
|
129
|
-
deleteFromArray<T>(array: T[], item: T): void;
|
|
130
|
-
/**
|
|
131
|
-
* Проверяет, является ли примитивное значение пустым (null, undefined).
|
|
132
|
-
*
|
|
133
|
-
* @param value Проверяемое значение
|
|
134
|
-
*
|
|
135
|
-
* @example Примеры
|
|
136
|
-
*
|
|
137
|
-
* ```js
|
|
138
|
-
* Utils.isEmpty(""); // true
|
|
139
|
-
* Utils.isEmpty(null); // true
|
|
140
|
-
* Utils.isEmpty(0); // false
|
|
141
|
-
* Utils.isEmpty("текст"); // false
|
|
142
|
-
* Utils.isEmpty([1,2]); // false
|
|
143
|
-
* ```
|
|
144
|
-
*/
|
|
145
|
-
isEmpty(value: unknown): boolean;
|
|
146
|
-
date: {
|
|
147
|
-
/**
|
|
148
|
-
* Преобразует строку даты из строкового формата в объект Date.
|
|
149
|
-
*
|
|
150
|
-
* @param dateString Строка даты в формате "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс"
|
|
151
|
-
*
|
|
152
|
-
* @example Примеры
|
|
153
|
-
*
|
|
154
|
-
* ```js
|
|
155
|
-
* const date = Utils.date.stringDateToDate("01.02.2024");
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
stringDateToDate(dateString: MdtDateStringFormat): Date;
|
|
159
|
-
/**
|
|
160
|
-
* Преобразует объект Date в строку формата "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс".
|
|
161
|
-
*
|
|
162
|
-
* @param date Объект Date
|
|
163
|
-
*
|
|
164
|
-
* @example Примеры
|
|
165
|
-
*
|
|
166
|
-
* ```js
|
|
167
|
-
* Utils.date.dateToStringDate(new Date(2024, 0, 2)); // "02.01.2024"
|
|
168
|
-
* Utils.date.dateToStringDate(new Date(2024, 0, 2, 10, 30, 0)); // "02.01.2024 10:30:00"
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
dateToStringDate(date: Date, withTime: boolean): string;
|
|
172
|
-
/**
|
|
173
|
-
* Преобразует объект Date в строку формата ISO8601 ("гггг-мм-дд").
|
|
174
|
-
*
|
|
175
|
-
* @param date Объект Date
|
|
176
|
-
*
|
|
177
|
-
* @example Примеры
|
|
178
|
-
*
|
|
179
|
-
* ```js
|
|
180
|
-
* Utils.date.dateToISO8601(new Date(2024, 0, 2)); // "2024-01-02"
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
dateToISO8601(date: Date): string;
|
|
184
|
-
/**
|
|
185
|
-
* Проверяет, равны ли две даты.
|
|
186
|
-
*
|
|
187
|
-
* @param date1 Первая дата
|
|
188
|
-
* @param date2 Вторая дата
|
|
189
|
-
* @param options Опции сравнения (например, ignoreTime — игнорировать время)
|
|
190
|
-
*
|
|
191
|
-
* @example Примеры
|
|
192
|
-
*
|
|
193
|
-
* ```js
|
|
194
|
-
* Utils.date.isDateEqual(new Date(2024, 0, 2), new Date(2024, 0, 2)); // true
|
|
195
|
-
* Utils.date.isDateEqual(new Date(2024, 0, 2, 10), new Date(2024, 0, 2, 15), { ignoreTime: true }); // true
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
isDateEqual(date1: Date, date2: Date, options?: IsDateEqualOptions): boolean;
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* Позволяет определять события, подписываться на них и вызывать
|
|
202
|
-
*
|
|
203
|
-
* @example Примеры
|
|
204
|
-
*
|
|
205
|
-
* ```typescript
|
|
206
|
-
* interface Events {
|
|
207
|
-
* "custom-event": { data: string }
|
|
208
|
-
* }
|
|
209
|
-
*
|
|
210
|
-
* const eventEmitter = new EventEmitter<Events>();
|
|
211
|
-
* // Подписка на событие
|
|
212
|
-
* eventEmitter.on("custom-event", (data) => console.log(data));
|
|
213
|
-
* // Вызов события
|
|
214
|
-
* eventEmitter.emit("custom-event", { data: "data" }); // выведет "data"
|
|
215
|
-
*
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
EventEmitter: typeof EventEmitter;
|
|
219
|
-
Pipeline: typeof Pipeline;
|
|
220
|
-
ImmutableArgPipeline: typeof ImmutableArgPipeline;
|
|
221
|
-
}
|
|
222
|
-
export declare type IsDateEqualOptions = {
|
|
223
|
-
ignoreTime?: boolean;
|
|
224
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
import { ClassNamesArg } from "mdtScripts/helpers/utils/classNames";
|
|
3
|
-
import { MithrilControl } from "../../../../helpers/types";
|
|
4
|
-
export declare type ConfigFunction = (element: HTMLElement, isInitialized: boolean, context?: any) => void;
|
|
5
|
-
export interface ImUtilsFacade {
|
|
6
|
-
/** Проверка, есть ли класс у элемента */
|
|
7
|
-
hasClass(obj: _mithril.MithrilVirtualElement, className: string): boolean;
|
|
8
|
-
/** Добавить класс для элемента */
|
|
9
|
-
addClass(obj: _mithril.MithrilVirtualElement, className: string): void;
|
|
10
|
-
/** Удалить класс у элемента */
|
|
11
|
-
removeClass(obj: _mithril.MithrilVirtualElement, className: string): void;
|
|
12
|
-
/** Переключить класс элемента. Если у элемента есть данный класс, то он будет удален. Если у элемента нет данного класса, то он будет добавлен. */
|
|
13
|
-
toggleClass(obj: _mithril.MithrilVirtualElement, className: string): void;
|
|
14
|
-
/** Добавить стили для элемента */
|
|
15
|
-
addStyle(obj: _mithril.MithrilVirtualElement, prop: string, value: string): void;
|
|
16
|
-
/** Установить функцию жизненного цикла Mithril компонента */
|
|
17
|
-
config(obj: _mithril.MithrilVirtualElement, config: ConfigFunction, before?: boolean): _mithril.MithrilVirtualElement;
|
|
18
|
-
/** Подписаться на событие удаления компонента со страницы */
|
|
19
|
-
onunload(ctx: any, fn: Function): void;
|
|
20
|
-
/** Установить атрибут элемента */
|
|
21
|
-
attr(obj: {
|
|
22
|
-
$attrs: any;
|
|
23
|
-
}, attr?: string, value?: string, op?: boolean): void;
|
|
24
|
-
/** Проверить наличие view у компонента */
|
|
25
|
-
hasView(ctrl: MithrilControl): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Формирует строку CSS-классов из набора аргументов (строки, объекты, массивы).
|
|
28
|
-
*
|
|
29
|
-
* @param args Список классов, объектов или массивов, которые будут объединены в одну строку
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* Utils.classNames('foo', 'bar'); // 'foo bar'
|
|
33
|
-
* Utils.classNames('foo', { bar: true }); // 'foo bar'
|
|
34
|
-
* Utils.classNames({ 'foo-bar': true }); // 'foo-bar'
|
|
35
|
-
* Utils.classNames({ 'foo-bar': false }); // ''
|
|
36
|
-
* Utils.classNames({ foo: true }, { bar: true }); // 'foo bar'
|
|
37
|
-
* Utils.classNames('foo', { bar: true, duck: false }, 'baz', { quux: true }); // 'foo bar baz quux'
|
|
38
|
-
* Utils.classNames(null, false, 'bar', undefined, 0, { baz: null }, ''); // 'bar'
|
|
39
|
-
*/
|
|
40
|
-
classNames(...args: ClassNamesArg[]): string;
|
|
41
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
import { MithrilContext, MithrilControl } from "../../helpers/types";
|
|
3
|
-
export declare class IDropdownMenu<I> {
|
|
4
|
-
constructor(items: I[], uid: string, options?: DropdownOptions<I>);
|
|
5
|
-
bind(el: HTMLElement, ctx: MithrilContext): void;
|
|
6
|
-
show(): void;
|
|
7
|
-
close(): void;
|
|
8
|
-
isShown(): boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare type DropdownItemIndex = number;
|
|
11
|
-
export declare type DropdownItem<I> = Exclude<I, MithrilControl> | I;
|
|
12
|
-
export interface DropdownOptions<I> {
|
|
13
|
-
getItems: () => I[];
|
|
14
|
-
onSelect: (item: DropdownItem<I>) => void;
|
|
15
|
-
itemView: (item: DropdownItem<I>, viewState: {
|
|
16
|
-
isCurrent: boolean;
|
|
17
|
-
}) => _mithril.MithrilVirtualElement;
|
|
18
|
-
class?: string;
|
|
19
|
-
onShow?: () => void;
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
wrapAttrs?: _mithril.MithrilAttributes;
|
|
22
|
-
isCurrent?: (item: DropdownItem<I>) => DropdownItemIndex;
|
|
23
|
-
}
|
|
24
|
-
export interface DropdownMenuViewOptions<I> {
|
|
25
|
-
items: I[];
|
|
26
|
-
itemView?: (item: DropdownItem<I>, viewState: {
|
|
27
|
-
isCurrent: boolean;
|
|
28
|
-
}) => _mithril.MithrilVirtualElement;
|
|
29
|
-
onSelect: (item: DropdownItem<I>) => void;
|
|
30
|
-
class?: string;
|
|
31
|
-
wrapAttrs?: _mithril.MithrilAttributes;
|
|
32
|
-
isCurrent?: DropdownItemIndex;
|
|
33
|
-
}
|
|
34
|
-
export declare type DropdownTargetContext<I> = MithrilContext<{
|
|
35
|
-
$dropdown?: IDropdownMenu<I>;
|
|
36
|
-
}>;
|
|
37
|
-
export interface DropdownMenuNavigatorOptions {
|
|
38
|
-
select: (idx: DropdownItemIndex) => void;
|
|
39
|
-
getItemsAmount?: () => number;
|
|
40
|
-
}
|