mdt-client 31.3.44 → 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 -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 +14 -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 -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 -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 +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 -0
- 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 -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 +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 -239
- 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 -91
- 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,56 +1,56 @@
|
|
|
1
|
-
import { Table } from "../../common/Table";
|
|
2
|
-
import { Grouping } from "../../common/list/group/groupTypes";
|
|
3
|
-
import { HierarchyQuery } from "../../common/list/hierarchy/hierarchyTypes";
|
|
4
|
-
import { ApiV1 } from "./ApiAccessor/apiV1Types";
|
|
5
|
-
import { ApiV2 } from "./ApiAccessor/apiV2Types";
|
|
6
|
-
import { HierarchyQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
|
|
7
|
-
import { PlaceInQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes";
|
|
8
|
-
import { BaseQuery } from "./BaseQuery";
|
|
9
|
-
export interface Query extends BaseQuery {
|
|
10
|
-
options?: QueryOptions;
|
|
11
|
-
withCount?: boolean;
|
|
12
|
-
key?: string;
|
|
13
|
-
params?: QueryParams & {
|
|
14
|
-
[name: string]: any;
|
|
15
|
-
};
|
|
16
|
-
dependency?: {
|
|
17
|
-
table: string;
|
|
18
|
-
field: string;
|
|
19
|
-
};
|
|
20
|
-
aggregate?: boolean;
|
|
21
|
-
export?: string;
|
|
22
|
-
format?: string;
|
|
23
|
-
hierarchy?: HierarchyQuery;
|
|
24
|
-
placeIn?: string;
|
|
25
|
-
date?: Date;
|
|
26
|
-
table?: Table;
|
|
27
|
-
children?: Query[];
|
|
28
|
-
parent?: Query;
|
|
29
|
-
groups?: Grouping.Query;
|
|
30
|
-
disableDefaultSorting?: boolean;
|
|
31
|
-
pure?: boolean;
|
|
32
|
-
audit?: TicketQuery;
|
|
33
|
-
workflow?: TicketQuery;
|
|
34
|
-
tag?: TicketQuery;
|
|
35
|
-
skippedRowsCount?: number;
|
|
36
|
-
workflowStage?: boolean;
|
|
37
|
-
exts?: QueryExts;
|
|
38
|
-
/**
|
|
39
|
-
* Дополнительная информация по запросу, содержит логические данные.
|
|
40
|
-
* Используется при конвертации запроса под API v1/v2, чтобы не парсить сгенерированные строки, напр. placeIn
|
|
41
|
-
*/
|
|
42
|
-
meta?: PlaceInQueryMeta & HierarchyQueryMeta;
|
|
43
|
-
}
|
|
44
|
-
export type QueryExts = ApiV2.Request.Fetch.Exts;
|
|
45
|
-
type QueryParams = ApiV1.Request.Fetch.Params;
|
|
46
|
-
export type TicketQuery = string | "ticket";
|
|
47
|
-
export interface QueryOptions {
|
|
48
|
-
root?: boolean;
|
|
49
|
-
reset?: boolean;
|
|
50
|
-
firstQuery?: boolean;
|
|
51
|
-
secondary?: boolean;
|
|
52
|
-
ext?: {
|
|
53
|
-
[ext: string]: any;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export {};
|
|
1
|
+
import { Table } from "../../common/Table";
|
|
2
|
+
import { Grouping } from "../../common/list/group/groupTypes";
|
|
3
|
+
import { HierarchyQuery } from "../../common/list/hierarchy/hierarchyTypes";
|
|
4
|
+
import { ApiV1 } from "./ApiAccessor/apiV1Types";
|
|
5
|
+
import { ApiV2 } from "./ApiAccessor/apiV2Types";
|
|
6
|
+
import { HierarchyQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
|
|
7
|
+
import { PlaceInQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes";
|
|
8
|
+
import { BaseQuery } from "./BaseQuery";
|
|
9
|
+
export interface Query extends BaseQuery {
|
|
10
|
+
options?: QueryOptions;
|
|
11
|
+
withCount?: boolean;
|
|
12
|
+
key?: string;
|
|
13
|
+
params?: QueryParams & {
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
};
|
|
16
|
+
dependency?: {
|
|
17
|
+
table: string;
|
|
18
|
+
field: string;
|
|
19
|
+
};
|
|
20
|
+
aggregate?: boolean;
|
|
21
|
+
export?: string;
|
|
22
|
+
format?: string;
|
|
23
|
+
hierarchy?: HierarchyQuery;
|
|
24
|
+
placeIn?: string;
|
|
25
|
+
date?: Date;
|
|
26
|
+
table?: Table;
|
|
27
|
+
children?: Query[];
|
|
28
|
+
parent?: Query;
|
|
29
|
+
groups?: Grouping.Query;
|
|
30
|
+
disableDefaultSorting?: boolean;
|
|
31
|
+
pure?: boolean;
|
|
32
|
+
audit?: TicketQuery;
|
|
33
|
+
workflow?: TicketQuery;
|
|
34
|
+
tag?: TicketQuery;
|
|
35
|
+
skippedRowsCount?: number;
|
|
36
|
+
workflowStage?: boolean;
|
|
37
|
+
exts?: QueryExts;
|
|
38
|
+
/**
|
|
39
|
+
* Дополнительная информация по запросу, содержит логические данные.
|
|
40
|
+
* Используется при конвертации запроса под API v1/v2, чтобы не парсить сгенерированные строки, напр. placeIn
|
|
41
|
+
*/
|
|
42
|
+
meta?: PlaceInQueryMeta & HierarchyQueryMeta;
|
|
43
|
+
}
|
|
44
|
+
export type QueryExts = ApiV2.Request.Fetch.Exts;
|
|
45
|
+
type QueryParams = ApiV1.Request.Fetch.Params;
|
|
46
|
+
export type TicketQuery = string | "ticket";
|
|
47
|
+
export interface QueryOptions {
|
|
48
|
+
root?: boolean;
|
|
49
|
+
reset?: boolean;
|
|
50
|
+
firstQuery?: boolean;
|
|
51
|
+
secondary?: boolean;
|
|
52
|
+
ext?: {
|
|
53
|
+
[ext: string]: any;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
type Cast = "date";
|
|
2
|
-
export type QuerySortingObject = {
|
|
3
|
-
path: string;
|
|
4
|
-
asc?: boolean;
|
|
5
|
-
cast?: Cast;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Настройка сортировки.
|
|
9
|
-
* @defaultSnippets
|
|
10
|
-
* [
|
|
11
|
-
* {
|
|
12
|
-
* "label": "Объект сортировки,
|
|
13
|
-
* "body": { "path": "$1", "asc": true }
|
|
14
|
-
* }
|
|
15
|
-
* ]
|
|
16
|
-
*/
|
|
17
|
-
export type QuerySorting = string | QuerySortingObject;
|
|
18
|
-
export {};
|
|
1
|
+
type Cast = "date";
|
|
2
|
+
export type QuerySortingObject = {
|
|
3
|
+
path: string;
|
|
4
|
+
asc?: boolean;
|
|
5
|
+
cast?: Cast;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Настройка сортировки.
|
|
9
|
+
* @defaultSnippets
|
|
10
|
+
* [
|
|
11
|
+
* {
|
|
12
|
+
* "label": "Объект сортировки,
|
|
13
|
+
* "body": { "path": "$1", "asc": true }
|
|
14
|
+
* }
|
|
15
|
+
* ]
|
|
16
|
+
*/
|
|
17
|
+
export type QuerySorting = string | QuerySortingObject;
|
|
18
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const allServerResponseTypes: readonly ["Error", "Confirmation", "Warning", "Success", "Fatal", "Information"];
|
|
2
|
-
export type ServerResponseType = typeof allServerResponseTypes[number];
|
|
1
|
+
export declare const allServerResponseTypes: readonly ["Error", "Confirmation", "Warning", "Success", "Fatal", "Information"];
|
|
2
|
+
export type ServerResponseType = typeof allServerResponseTypes[number];
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Icon } from "../../components/icon/iconOptions";
|
|
2
|
-
import { FormattedText } from "../../helpers/formattedText";
|
|
3
|
-
import { AnyObject, Valued } from "../../helpers/types";
|
|
4
|
-
import { CommandBase, CommandGroupProps, CommandProps, Hotkey } from "./CommandManager";
|
|
5
|
-
interface CommandOptions<Context> {
|
|
6
|
-
getContext: () => Context;
|
|
7
|
-
}
|
|
8
|
-
export declare class Command<Context = AnyObject> implements CommandProps {
|
|
9
|
-
private base;
|
|
10
|
-
private options;
|
|
11
|
-
readonly code: string;
|
|
12
|
-
readonly title: string;
|
|
13
|
-
readonly description: Valued<FormattedText>;
|
|
14
|
-
readonly icon: Valued<Icon>;
|
|
15
|
-
readonly hotkeys: Hotkey[];
|
|
16
|
-
readonly group: CommandGroupProps;
|
|
17
|
-
constructor(base: CommandBase, options: CommandOptions<Context>);
|
|
18
|
-
visible(): boolean;
|
|
19
|
-
enabled(): boolean;
|
|
20
|
-
execute(): void;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import { Icon } from "../../components/icon/iconOptions";
|
|
2
|
+
import { FormattedText } from "../../helpers/formattedText";
|
|
3
|
+
import { AnyObject, Valued } from "../../helpers/types";
|
|
4
|
+
import { CommandBase, CommandGroupProps, CommandProps, Hotkey } from "./CommandManager";
|
|
5
|
+
interface CommandOptions<Context> {
|
|
6
|
+
getContext: () => Context;
|
|
7
|
+
}
|
|
8
|
+
export declare class Command<Context = AnyObject> implements CommandProps {
|
|
9
|
+
private base;
|
|
10
|
+
private options;
|
|
11
|
+
readonly code: string;
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly description: Valued<FormattedText>;
|
|
14
|
+
readonly icon: Valued<Icon>;
|
|
15
|
+
readonly hotkeys: Hotkey[];
|
|
16
|
+
readonly group: CommandGroupProps;
|
|
17
|
+
constructor(base: CommandBase, options: CommandOptions<Context>);
|
|
18
|
+
visible(): boolean;
|
|
19
|
+
enabled(): boolean;
|
|
20
|
+
execute(): void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AnyObject } from "../../helpers/types";
|
|
2
|
-
import { CommandBase, CommandGroupProps } from "./CommandManager";
|
|
3
|
-
interface CommandGroupOptions<Context> {
|
|
4
|
-
addCommands: (commands: CommandBase<Context>[], groupCode: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare class CommandGroup<Context = AnyObject> implements CommandGroupProps {
|
|
7
|
-
private options;
|
|
8
|
-
readonly code: string;
|
|
9
|
-
readonly title: string;
|
|
10
|
-
readonly description?: string;
|
|
11
|
-
readonly icon?: string;
|
|
12
|
-
constructor(group: CommandGroupProps, options: CommandGroupOptions<Context>);
|
|
13
|
-
addCommands(commands: CommandBase<Context>[]): void;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
1
|
+
import { AnyObject } from "../../helpers/types";
|
|
2
|
+
import { CommandBase, CommandGroupProps } from "./CommandManager";
|
|
3
|
+
interface CommandGroupOptions<Context> {
|
|
4
|
+
addCommands: (commands: CommandBase<Context>[], groupCode: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare class CommandGroup<Context = AnyObject> implements CommandGroupProps {
|
|
7
|
+
private options;
|
|
8
|
+
readonly code: string;
|
|
9
|
+
readonly title: string;
|
|
10
|
+
readonly description?: string;
|
|
11
|
+
readonly icon?: string;
|
|
12
|
+
constructor(group: CommandGroupProps, options: CommandGroupOptions<Context>);
|
|
13
|
+
addCommands(commands: CommandBase<Context>[]): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Icon } from "../../components/icon/iconOptions";
|
|
2
|
-
import { FormattedText } from "../../helpers/formattedText";
|
|
3
|
-
import { AnyObject, CommandEvent, Valued } from "../../helpers/types";
|
|
4
|
-
import { IFormControlFacade } from "../customModules/facades/Form/IFormControlFacade";
|
|
5
|
-
import { IListControlFacade } from "../customModules/facades/List/IListControlFacade";
|
|
6
|
-
import { Command } from "./Command";
|
|
7
|
-
import { CommandGroup } from "./CommandGroup";
|
|
8
|
-
export interface CommandGroupProps {
|
|
9
|
-
/** Уникальный код группы команд */
|
|
10
|
-
code: string;
|
|
11
|
-
/** Наименование группы команд */
|
|
12
|
-
title: string;
|
|
13
|
-
/** Описание группы команд */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** Иконка группы команд */
|
|
16
|
-
icon?: Icon;
|
|
17
|
-
}
|
|
18
|
-
export type Hotkey = string;
|
|
19
|
-
export interface CommandProps {
|
|
20
|
-
/** Уникальный код команды */
|
|
21
|
-
code: string;
|
|
22
|
-
/** Наименование команды */
|
|
23
|
-
title: string;
|
|
24
|
-
/** Описание команды */
|
|
25
|
-
description?: Valued<FormattedText>;
|
|
26
|
-
/** Иконка команды */
|
|
27
|
-
icon?: Valued<Icon>;
|
|
28
|
-
/**
|
|
29
|
-
* Горячие клавиши для вызова команды.
|
|
30
|
-
*
|
|
31
|
-
* Комбинаций клавиш для команды может быть несколько.
|
|
32
|
-
*
|
|
33
|
-
* Комбинация клавиш задается строкой и указывается в следующем порядке `Ctrl/Cmd + Alt + Shift + Любая другая клавиша`.
|
|
34
|
-
*
|
|
35
|
-
* Клавиши разделяются двумя пробелами и символом "+" между ними.
|
|
36
|
-
*
|
|
37
|
-
* Например `Alt + Shift + Y`.
|
|
38
|
-
*/
|
|
39
|
-
hotkeys?: Hotkey[];
|
|
40
|
-
/** Группа которой принадлежит команда */
|
|
41
|
-
group?: CommandGroupProps;
|
|
42
|
-
}
|
|
43
|
-
export interface CommandBase<Context = AnyObject> extends CommandProps {
|
|
44
|
-
/** Функция которая будет вызвана при выполнении команды */
|
|
45
|
-
execute: (context: Context) => void;
|
|
46
|
-
/** Условие активности команды */
|
|
47
|
-
enabled?: (context: Context) => boolean;
|
|
48
|
-
/** Условие видимости команды в быстрых командах */
|
|
49
|
-
visible?: (context: Context) => boolean;
|
|
50
|
-
}
|
|
51
|
-
export type HotkeyCommands = {
|
|
52
|
-
[hotkey: string]: () => void;
|
|
53
|
-
};
|
|
54
|
-
export interface CommandManagerContext {
|
|
55
|
-
list?: IListControlFacade;
|
|
56
|
-
form?: IFormControlFacade;
|
|
57
|
-
[contextProp: string]: any;
|
|
58
|
-
}
|
|
59
|
-
export declare class CommandManagerClass<Context> {
|
|
60
|
-
private groups;
|
|
61
|
-
private commands;
|
|
62
|
-
private hotkeyCommands;
|
|
63
|
-
private context;
|
|
64
|
-
addGroup(group: CommandGroupProps, commands?: CommandBase<Context>[]): CommandGroup<Context>;
|
|
65
|
-
addCommands(commands: CommandBase<Context>[], groupCode?: string): void;
|
|
66
|
-
getCommand(code: string): Command<Context>;
|
|
67
|
-
getCommandList(): Command<Context>[];
|
|
68
|
-
execByEvent(event: CommandEvent): void;
|
|
69
|
-
setContext(key: keyof Context, value: Context[keyof Context]): void;
|
|
70
|
-
removeContext(key: keyof Context): void;
|
|
71
|
-
private createGroup;
|
|
72
|
-
private validateGroup;
|
|
73
|
-
private findGroup;
|
|
74
|
-
private validateCommand;
|
|
75
|
-
private pushCommands;
|
|
76
|
-
}
|
|
77
|
-
export declare const CommandManager: CommandManagerClass<CommandManagerContext>;
|
|
1
|
+
import { Icon } from "../../components/icon/iconOptions";
|
|
2
|
+
import { FormattedText } from "../../helpers/formattedText";
|
|
3
|
+
import { AnyObject, CommandEvent, Valued } from "../../helpers/types";
|
|
4
|
+
import { IFormControlFacade } from "../customModules/facades/Form/IFormControlFacade";
|
|
5
|
+
import { IListControlFacade } from "../customModules/facades/List/IListControlFacade";
|
|
6
|
+
import { Command } from "./Command";
|
|
7
|
+
import { CommandGroup } from "./CommandGroup";
|
|
8
|
+
export interface CommandGroupProps {
|
|
9
|
+
/** Уникальный код группы команд */
|
|
10
|
+
code: string;
|
|
11
|
+
/** Наименование группы команд */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Описание группы команд */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Иконка группы команд */
|
|
16
|
+
icon?: Icon;
|
|
17
|
+
}
|
|
18
|
+
export type Hotkey = string;
|
|
19
|
+
export interface CommandProps {
|
|
20
|
+
/** Уникальный код команды */
|
|
21
|
+
code: string;
|
|
22
|
+
/** Наименование команды */
|
|
23
|
+
title: string;
|
|
24
|
+
/** Описание команды */
|
|
25
|
+
description?: Valued<FormattedText>;
|
|
26
|
+
/** Иконка команды */
|
|
27
|
+
icon?: Valued<Icon>;
|
|
28
|
+
/**
|
|
29
|
+
* Горячие клавиши для вызова команды.
|
|
30
|
+
*
|
|
31
|
+
* Комбинаций клавиш для команды может быть несколько.
|
|
32
|
+
*
|
|
33
|
+
* Комбинация клавиш задается строкой и указывается в следующем порядке `Ctrl/Cmd + Alt + Shift + Любая другая клавиша`.
|
|
34
|
+
*
|
|
35
|
+
* Клавиши разделяются двумя пробелами и символом "+" между ними.
|
|
36
|
+
*
|
|
37
|
+
* Например `Alt + Shift + Y`.
|
|
38
|
+
*/
|
|
39
|
+
hotkeys?: Hotkey[];
|
|
40
|
+
/** Группа которой принадлежит команда */
|
|
41
|
+
group?: CommandGroupProps;
|
|
42
|
+
}
|
|
43
|
+
export interface CommandBase<Context = AnyObject> extends CommandProps {
|
|
44
|
+
/** Функция которая будет вызвана при выполнении команды */
|
|
45
|
+
execute: (context: Context) => void;
|
|
46
|
+
/** Условие активности команды */
|
|
47
|
+
enabled?: (context: Context) => boolean;
|
|
48
|
+
/** Условие видимости команды в быстрых командах */
|
|
49
|
+
visible?: (context: Context) => boolean;
|
|
50
|
+
}
|
|
51
|
+
export type HotkeyCommands = {
|
|
52
|
+
[hotkey: string]: () => void;
|
|
53
|
+
};
|
|
54
|
+
export interface CommandManagerContext {
|
|
55
|
+
list?: IListControlFacade;
|
|
56
|
+
form?: IFormControlFacade;
|
|
57
|
+
[contextProp: string]: any;
|
|
58
|
+
}
|
|
59
|
+
export declare class CommandManagerClass<Context> {
|
|
60
|
+
private groups;
|
|
61
|
+
private commands;
|
|
62
|
+
private hotkeyCommands;
|
|
63
|
+
private context;
|
|
64
|
+
addGroup(group: CommandGroupProps, commands?: CommandBase<Context>[]): CommandGroup<Context>;
|
|
65
|
+
addCommands(commands: CommandBase<Context>[], groupCode?: string): void;
|
|
66
|
+
getCommand(code: string): Command<Context>;
|
|
67
|
+
getCommandList(): Command<Context>[];
|
|
68
|
+
execByEvent(event: CommandEvent): void;
|
|
69
|
+
setContext(key: keyof Context, value: Context[keyof Context]): void;
|
|
70
|
+
removeContext(key: keyof Context): void;
|
|
71
|
+
private createGroup;
|
|
72
|
+
private validateGroup;
|
|
73
|
+
private findGroup;
|
|
74
|
+
private validateCommand;
|
|
75
|
+
private pushCommands;
|
|
76
|
+
}
|
|
77
|
+
export declare const CommandManager: CommandManagerClass<CommandManagerContext>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export type FieldValue = any;
|
|
2
|
-
export interface ErrorInfo {
|
|
3
|
-
/** Текст ошибки */
|
|
4
|
-
message: string;
|
|
5
|
-
/** Код ошибки */
|
|
6
|
-
key?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IFieldControlFacadeContstructor<T = FieldValue> {
|
|
9
|
-
new (options: any, fieldCtrl: any): IFieldControlFacade<T>;
|
|
10
|
-
}
|
|
11
|
-
export interface IFieldControlFacade<T = FieldValue> {
|
|
12
|
-
/** Получить значение поля */
|
|
13
|
-
getValue: () => T;
|
|
14
|
-
/** Установить значение поля */
|
|
15
|
-
setValue: (val: T) => void;
|
|
16
|
-
/** Проверка, является ли поле редактируемым */
|
|
17
|
-
isEditable: () => boolean;
|
|
18
|
-
/** Установить ошибку валидации для поля */
|
|
19
|
-
setErrors: (errors: ErrorInfo[]) => void;
|
|
20
|
-
/** Очистить ошибки валидации */
|
|
21
|
-
clearErrors: (errorKey?: string) => void;
|
|
22
|
-
/** Подписаться на событие обновления значения поля */
|
|
23
|
-
onUpdated: (callback: (val: T) => void) => () => void;
|
|
24
|
-
/** Заголовок поля */
|
|
25
|
-
title: () => string;
|
|
26
|
-
}
|
|
1
|
+
export type FieldValue = any;
|
|
2
|
+
export interface ErrorInfo {
|
|
3
|
+
/** Текст ошибки */
|
|
4
|
+
message: string;
|
|
5
|
+
/** Код ошибки */
|
|
6
|
+
key?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IFieldControlFacadeContstructor<T = FieldValue> {
|
|
9
|
+
new (options: any, fieldCtrl: any): IFieldControlFacade<T>;
|
|
10
|
+
}
|
|
11
|
+
export interface IFieldControlFacade<T = FieldValue> {
|
|
12
|
+
/** Получить значение поля */
|
|
13
|
+
getValue: () => T;
|
|
14
|
+
/** Установить значение поля */
|
|
15
|
+
setValue: (val: T) => void;
|
|
16
|
+
/** Проверка, является ли поле редактируемым */
|
|
17
|
+
isEditable: () => boolean;
|
|
18
|
+
/** Установить ошибку валидации для поля */
|
|
19
|
+
setErrors: (errors: ErrorInfo[]) => void;
|
|
20
|
+
/** Очистить ошибки валидации */
|
|
21
|
+
clearErrors: (errorKey?: string) => void;
|
|
22
|
+
/** Подписаться на событие обновления значения поля */
|
|
23
|
+
onUpdated: (callback: (val: T) => void) => () => void;
|
|
24
|
+
/** Заголовок поля */
|
|
25
|
+
title: () => string;
|
|
26
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { IFieldControlFacade } from "./IFieldControlFacade";
|
|
2
|
-
export interface MountContext<V> {
|
|
3
|
-
/** Родительский DOM-элемент контрола */
|
|
4
|
-
el: HTMLElement;
|
|
5
|
-
/** Поле, к которому привязан контрол */
|
|
6
|
-
field: IFieldControlFacade<V>;
|
|
7
|
-
/** Опции контрола */
|
|
8
|
-
options: any;
|
|
9
|
-
/** Подписка на событие удаления контрола */
|
|
10
|
-
onUnmount: (onUnmountCallback?: () => void) => void;
|
|
11
|
-
/** Mithril класс контрола */
|
|
12
|
-
control: any;
|
|
13
|
-
}
|
|
14
|
-
export interface IMithrilCustomControl<V> {
|
|
15
|
-
new (options: any, field: IFieldControlFacade<V>): any;
|
|
16
|
-
}
|
|
17
|
-
export interface RegisterArgs<V> {
|
|
18
|
-
/** Наименование контрола */
|
|
19
|
-
title: string;
|
|
20
|
-
/** Код контрола */
|
|
21
|
-
code: string;
|
|
22
|
-
/** Mithril класс контрола */
|
|
23
|
-
control?: IMithrilCustomControl<V>;
|
|
24
|
-
/** Типы полей, для которых предназначен контрол */
|
|
25
|
-
types?: string | string[];
|
|
26
|
-
/** Используется ли контрол для полей с внешним ключом */
|
|
27
|
-
ref?: boolean;
|
|
28
|
-
/** Скрыть контрол из списка в конструкторе форм */
|
|
29
|
-
hidden?: boolean;
|
|
30
|
-
/** Контрол поддерживает собственное readonly-отображение. По умолчанию true */
|
|
31
|
-
hasReadonly?: boolean;
|
|
32
|
-
/** Подписка на событие рендера контрола */
|
|
33
|
-
onMount?: (params: MountContext<V>) => void;
|
|
34
|
-
}
|
|
35
|
-
export interface IFieldControlManagerFacade<V = any> {
|
|
36
|
-
/** Зарегистрировать новый контрол */
|
|
37
|
-
register: <T = V>(args: RegisterArgs<T>) => void;
|
|
38
|
-
}
|
|
1
|
+
import { IFieldControlFacade } from "./IFieldControlFacade";
|
|
2
|
+
export interface MountContext<V> {
|
|
3
|
+
/** Родительский DOM-элемент контрола */
|
|
4
|
+
el: HTMLElement;
|
|
5
|
+
/** Поле, к которому привязан контрол */
|
|
6
|
+
field: IFieldControlFacade<V>;
|
|
7
|
+
/** Опции контрола */
|
|
8
|
+
options: any;
|
|
9
|
+
/** Подписка на событие удаления контрола */
|
|
10
|
+
onUnmount: (onUnmountCallback?: () => void) => void;
|
|
11
|
+
/** Mithril класс контрола */
|
|
12
|
+
control: any;
|
|
13
|
+
}
|
|
14
|
+
export interface IMithrilCustomControl<V> {
|
|
15
|
+
new (options: any, field: IFieldControlFacade<V>): any;
|
|
16
|
+
}
|
|
17
|
+
export interface RegisterArgs<V> {
|
|
18
|
+
/** Наименование контрола */
|
|
19
|
+
title: string;
|
|
20
|
+
/** Код контрола */
|
|
21
|
+
code: string;
|
|
22
|
+
/** Mithril класс контрола */
|
|
23
|
+
control?: IMithrilCustomControl<V>;
|
|
24
|
+
/** Типы полей, для которых предназначен контрол */
|
|
25
|
+
types?: string | string[];
|
|
26
|
+
/** Используется ли контрол для полей с внешним ключом */
|
|
27
|
+
ref?: boolean;
|
|
28
|
+
/** Скрыть контрол из списка в конструкторе форм */
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
/** Контрол поддерживает собственное readonly-отображение. По умолчанию true */
|
|
31
|
+
hasReadonly?: boolean;
|
|
32
|
+
/** Подписка на событие рендера контрола */
|
|
33
|
+
onMount?: (params: MountContext<V>) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface IFieldControlManagerFacade<V = any> {
|
|
36
|
+
/** Зарегистрировать новый контрол */
|
|
37
|
+
register: <T = V>(args: RegisterArgs<T>) => void;
|
|
38
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IFilter } from "../../../IFilter";
|
|
2
|
-
export interface IFieldStateFacade {
|
|
3
|
-
/** Сделать поле недоступным для редактирования */
|
|
4
|
-
setReadonly(readonly: boolean): void;
|
|
5
|
-
/** Настроить фильтр для поля */
|
|
6
|
-
setFilter(filter: IFilter): void;
|
|
7
|
-
/** Скрыть/Показать поле */
|
|
8
|
-
setVisible(isVisible: boolean): void;
|
|
9
|
-
/** Добавить ошибку валидации для поля */
|
|
10
|
-
addError(message: string, key: string): void;
|
|
11
|
-
/** Убрать ранее добавленную ошибку валидации */
|
|
12
|
-
removeError(key: string): void;
|
|
13
|
-
}
|
|
1
|
+
import { IFilter } from "../../../IFilter";
|
|
2
|
+
export interface IFieldStateFacade {
|
|
3
|
+
/** Сделать поле недоступным для редактирования */
|
|
4
|
+
setReadonly(readonly: boolean): void;
|
|
5
|
+
/** Настроить фильтр для поля */
|
|
6
|
+
setFilter(filter: IFilter): void;
|
|
7
|
+
/** Скрыть/Показать поле */
|
|
8
|
+
setVisible(isVisible: boolean): void;
|
|
9
|
+
/** Добавить ошибку валидации для поля */
|
|
10
|
+
addError(message: string, key: string): void;
|
|
11
|
+
/** Убрать ранее добавленную ошибку валидации */
|
|
12
|
+
removeError(key: string): void;
|
|
13
|
+
}
|