mdt-client 31.3.39 → 31.3.41
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/dist/index.js.map +1 -1
- package/package.json +38 -38
- package/readme.md +15 -15
- package/types/_core/scripts/common/Datasource.d.ts +9 -0
- package/types/_core/scripts/common/Field.d.ts +51 -0
- package/types/_core/scripts/common/FieldSettings.schema.d.ts +17 -0
- package/types/_core/scripts/common/MdtField.d.ts +9 -0
- package/types/_core/scripts/common/MdtObject.d.ts +7 -0
- package/types/_core/scripts/common/Record.d.ts +27 -0
- package/types/_core/scripts/common/Table.d.ts +66 -0
- package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -0
- package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +2 -0
- package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +1 -0
- package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -0
- package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +7 -0
- package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -0
- package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +40 -0
- package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -0
- package/types/_core/scripts/common/list/group/groupTypes.d.ts +177 -0
- package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +48 -0
- package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -0
- package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +8 -0
- package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +25 -0
- package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -0
- package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -0
- package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -0
- package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +18 -0
- package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -0
- package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +22 -0
- package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -0
- package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +17 -0
- package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +30 -0
- package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -0
- package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +12 -0
- package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -0
- package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -0
- package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -0
- package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +13 -0
- package/types/_core/scripts/components/form/header/types.d.ts +14 -0
- package/types/_core/scripts/components/form/label/labelOptions.d.ts +22 -0
- package/types/_core/scripts/components/icon/iconOptions.d.ts +21 -0
- package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +9 -0
- package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -0
- package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -0
- package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
- package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
- package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +16 -0
- package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
- package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +6 -0
- package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -0
- package/types/_core/scripts/data/periods/helpers/types.d.ts +4 -0
- package/types/_core/scripts/datasources/FetchResult.d.ts +5 -0
- package/types/_core/scripts/helpers/IUi.d.ts +2 -0
- package/types/_core/scripts/helpers/dateUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/deleteFromArray.d.ts +1 -0
- package/types/_core/scripts/helpers/events/EventEmitter.d.ts +12 -0
- package/types/_core/scripts/helpers/fireEvent.d.ts +4 -0
- package/types/_core/scripts/helpers/formatOptions.d.ts +16 -0
- package/types/_core/scripts/helpers/formattedText.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -0
- package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +20 -0
- package/types/_core/scripts/helpers/redraw.d.ts +16 -0
- package/types/_core/scripts/helpers/types.d.ts +84 -0
- package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +14 -0
- package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -0
- package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -0
- package/types/_core/scripts/helpers/utils/classNames.d.ts +20 -0
- package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
- package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +18 -0
- package/types/_core/scripts/helpers/utils/object.d.ts +4 -0
- package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +3 -0
- package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +18 -0
- package/types/_core/scripts/helpers/zone/IZone.d.ts +7 -0
- package/types/_core/scripts/security/PermissionLevel.d.ts +40 -0
- package/types/_core/scripts/security/User.d.ts +19 -0
- package/types/_core/scripts/services/HotkeyManager.d.ts +6 -0
- package/types/_core/scripts/services/IFilter.d.ts +322 -0
- package/types/_core/scripts/services/ModuleData.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +266 -0
- package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +585 -0
- package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -0
- package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +82 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -0
- package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -0
- package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +43 -0
- package/types/_core/scripts/services/api/BaseQuery.d.ts +25 -0
- package/types/_core/scripts/services/api/Query.d.ts +56 -0
- package/types/_core/scripts/services/api/QuerySorting.d.ts +18 -0
- package/types/_core/scripts/services/api/ServerResonseType.d.ts +2 -0
- package/types/_core/scripts/services/commands/Command.d.ts +22 -0
- package/types/_core/scripts/services/commands/CommandGroup.d.ts +15 -0
- package/types/_core/scripts/services/commands/CommandManager.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +102 -0
- package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +38 -0
- package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +238 -0
- package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +87 -0
- package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +10 -0
- package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +88 -0
- package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +2 -0
- package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +96 -0
- package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
- package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +4 -0
- package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +77 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +7 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +12 -0
- package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -0
- package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +14 -0
- package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +20 -0
- package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -0
- package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -0
- package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -0
- package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +13 -0
- package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +91 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +185 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +83 -0
- package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +224 -0
- package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -0
- package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +40 -0
- package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +11 -0
- package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +21 -0
- package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +101 -0
- package/types/_core/scripts/views/controls/Control.d.ts +7 -0
- package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +15 -0
- package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +28 -0
- package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -0
- package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -0
- package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -0
- package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -0
- package/types/_core/scripts/views/form/formTypes.d.ts +5 -0
- package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +22 -0
- package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +19 -0
- package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +5 -0
- package/types/_core/scripts/views/list/ListViewOptions.d.ts +99 -0
- package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -0
- package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +123 -0
- package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +145 -0
- package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +53 -0
- package/types/_core/scripts/views/page/PageZoneTypes.d.ts +1 -0
- package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +759 -0
- package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +29 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +5 -0
- package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -0
- package/types/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 -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 +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 -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 +24 -24
- 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/ui/toolbarItemTypes.d.ts +30 -0
- 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/job/scripts/types.d.ts +11 -0
- 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/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 -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 +106 -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 +91 -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 -83
- 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/sharedModules/ISharedModulesFacade.d.ts +4 -0
- 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 +120 -106
- 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 -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
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare const regexIso8601DateOnly: RegExp;
|
|
2
|
-
export declare function toISOString(date: Date, dateOnly?: boolean): string;
|
|
3
|
-
export declare function toISO8601DateString(date: Date): ISO8601DateString;
|
|
4
|
-
export declare function toUiDateString(date: Date): string;
|
|
5
|
-
export declare function toTimeString(date: Date): string;
|
|
6
|
-
export declare function toDateTimeNotZApiFormat(date: Date): string;
|
|
7
|
-
export declare function dateTimeModelFromUiDateString(dateString: MdtDateStringFormat): DateTimeModel;
|
|
8
|
-
export declare function dateFromUiDateString(dateString: MdtDateStringFormat): Date;
|
|
9
|
-
export interface DateTimeModel {
|
|
10
|
-
day: number;
|
|
11
|
-
monthIndex: number;
|
|
12
|
-
year: number;
|
|
13
|
-
time?: {
|
|
14
|
-
hours: number;
|
|
15
|
-
minutes: number;
|
|
16
|
-
seconds: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Строка с датой в формате "dd.mm.yyyy hh:mm:ss" или "dd.mm.yyyy"
|
|
21
|
-
*/
|
|
22
|
-
export type MdtDateStringFormat = string;
|
|
23
|
-
export type ISO8601DateString = string;
|
|
1
|
+
export declare const regexIso8601DateOnly: RegExp;
|
|
2
|
+
export declare function toISOString(date: Date, dateOnly?: boolean): string;
|
|
3
|
+
export declare function toISO8601DateString(date: Date): ISO8601DateString;
|
|
4
|
+
export declare function toUiDateString(date: Date): string;
|
|
5
|
+
export declare function toTimeString(date: Date): string;
|
|
6
|
+
export declare function toDateTimeNotZApiFormat(date: Date): string;
|
|
7
|
+
export declare function dateTimeModelFromUiDateString(dateString: MdtDateStringFormat): DateTimeModel;
|
|
8
|
+
export declare function dateFromUiDateString(dateString: MdtDateStringFormat): Date;
|
|
9
|
+
export interface DateTimeModel {
|
|
10
|
+
day: number;
|
|
11
|
+
monthIndex: number;
|
|
12
|
+
year: number;
|
|
13
|
+
time?: {
|
|
14
|
+
hours: number;
|
|
15
|
+
minutes: number;
|
|
16
|
+
seconds: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Строка с датой в формате "dd.mm.yyyy hh:mm:ss" или "dd.mm.yyyy"
|
|
21
|
+
*/
|
|
22
|
+
export type MdtDateStringFormat = string;
|
|
23
|
+
export type ISO8601DateString = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function deleteFromArray<T = any>(array: T[], item: T): void;
|
|
1
|
+
export declare function deleteFromArray<T = any>(array: T[], item: T): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AnyObject } from "../types";
|
|
2
|
-
export interface EventEmitterSubscribeController<E> {
|
|
3
|
-
subscribe: <T extends keyof E>(code: T, listener: (args: E[T]) => unknown) => () => void;
|
|
4
|
-
unsubscribe: <T extends keyof E>(code: T, listener: (args: E[T]) => unknown) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare class EventEmitter<E = Record<string, AnyObject>> {
|
|
7
|
-
private events;
|
|
8
|
-
subscribe<T extends keyof E>(code: T, listener: (args: E[T]) => unknown): () => void;
|
|
9
|
-
unsubscribe<T extends keyof E>(code: T, listener: (args: E[T]) => unknown): void;
|
|
10
|
-
emit<T extends keyof E>(code: T, args?: E[T]): void;
|
|
11
|
-
getSubscribeController(): EventEmitterSubscribeController<E>;
|
|
12
|
-
}
|
|
1
|
+
import { AnyObject } from "../types";
|
|
2
|
+
export interface EventEmitterSubscribeController<E> {
|
|
3
|
+
subscribe: <T extends keyof E>(code: T, listener: (args: E[T]) => unknown) => () => void;
|
|
4
|
+
unsubscribe: <T extends keyof E>(code: T, listener: (args: E[T]) => unknown) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare class EventEmitter<E = Record<string, AnyObject>> {
|
|
7
|
+
private events;
|
|
8
|
+
subscribe<T extends keyof E>(code: T, listener: (args: E[T]) => unknown): () => void;
|
|
9
|
+
unsubscribe<T extends keyof E>(code: T, listener: (args: E[T]) => unknown): void;
|
|
10
|
+
emit<T extends keyof E>(code: T, args?: E[T]): void;
|
|
11
|
+
getSubscribeController(): EventEmitterSubscribeController<E>;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fireEvent: FireEventType;
|
|
2
|
-
type FireEventType = (...args: any[]) => any;
|
|
3
|
-
export declare function addDisposableEvent<T extends FireEventType = FireEventType>(event: Array<FireEventType>, callback: T): void;
|
|
4
|
-
export {};
|
|
1
|
+
export declare const fireEvent: FireEventType;
|
|
2
|
+
type FireEventType = (...args: any[]) => any;
|
|
3
|
+
export declare function addDisposableEvent<T extends FireEventType = FireEventType>(event: Array<FireEventType>, callback: T): void;
|
|
4
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { MaskOptions } from "mdtScripts/components/baseFormControls/maskedInput/MaskFormatter.types";
|
|
2
|
-
import { PeriodBoundaryIcon } from "mdtScripts/data/periods/helpers/types";
|
|
3
|
-
export interface FormatOptions {
|
|
4
|
-
type?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
empty?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
*/
|
|
10
|
-
mask?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Настройки маски
|
|
13
|
-
*/
|
|
14
|
-
maskOptions?: MaskOptions;
|
|
15
|
-
dateRangeIcon?: PeriodBoundaryIcon;
|
|
16
|
-
}
|
|
1
|
+
import { MaskOptions } from "mdtScripts/components/baseFormControls/maskedInput/MaskFormatter.types";
|
|
2
|
+
import { PeriodBoundaryIcon } from "mdtScripts/data/periods/helpers/types";
|
|
3
|
+
export interface FormatOptions {
|
|
4
|
+
type?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
empty?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
10
|
+
mask?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Настройки маски
|
|
13
|
+
*/
|
|
14
|
+
maskOptions?: MaskOptions;
|
|
15
|
+
dateRangeIcon?: PeriodBoundaryIcon;
|
|
16
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ViewElement } from "./types";
|
|
2
|
-
export type FormattedTextType = "text" | "markdown" | "view";
|
|
3
|
-
export type FormattedText = string | {
|
|
4
|
-
content: string | ViewElement[];
|
|
5
|
-
type: FormattedTextType;
|
|
6
|
-
};
|
|
7
|
-
export declare function getTextContent(text: FormattedText): string | ViewElement[];
|
|
8
|
-
export declare function getFormattedTextType(text: FormattedText): FormattedTextType;
|
|
1
|
+
import { ViewElement } from "./types";
|
|
2
|
+
export type FormattedTextType = "text" | "markdown" | "view";
|
|
3
|
+
export type FormattedText = string | {
|
|
4
|
+
content: string | ViewElement[];
|
|
5
|
+
type: FormattedTextType;
|
|
6
|
+
};
|
|
7
|
+
export declare function getTextContent(text: FormattedText): string | ViewElement[];
|
|
8
|
+
export declare function getFormattedTextType(text: FormattedText): FormattedTextType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type Handler<A, R> = (args?: A, currentResult?: R) => R | undefined;
|
|
2
|
-
export declare class ImmutableArgPipeline<A = unknown, R = unknown> {
|
|
3
|
-
private pipelines;
|
|
4
|
-
register(handler: Handler<A, R>): void;
|
|
5
|
-
execute(args: A, initialResult?: R): R;
|
|
6
|
-
getRegisterController(): (handler: Handler<A, R>) => void;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
1
|
+
type Handler<A, R> = (args?: A, currentResult?: R) => R | undefined;
|
|
2
|
+
export declare class ImmutableArgPipeline<A = unknown, R = unknown> {
|
|
3
|
+
private pipelines;
|
|
4
|
+
register(handler: Handler<A, R>): void;
|
|
5
|
+
execute(args: A, initialResult?: R): R;
|
|
6
|
+
getRegisterController(): (handler: Handler<A, R>) => void;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AnyError } from "../types";
|
|
2
|
-
type Next<D> = (args?: D) => void;
|
|
3
|
-
type Middleware<D> = (args: D, next: Next<D>) => void | Promise<void>;
|
|
4
|
-
export declare class Pipeline<D = any> {
|
|
5
|
-
private middlewaresStorage;
|
|
6
|
-
constructor(middlewares?: Middleware<D>[]);
|
|
7
|
-
push(middleware: Middleware<D>): () => void;
|
|
8
|
-
remove(middleware: Middleware<D>): void;
|
|
9
|
-
execute(args: D, onComplete: (args: D) => void, onError?: (e: AnyError) => void): void;
|
|
10
|
-
executePromise(args: D): Promise<D>;
|
|
11
|
-
}
|
|
12
|
-
type MiddlewareSync<D> = (args: D) => D | undefined;
|
|
13
|
-
export declare class PipelineSync<D = any> {
|
|
14
|
-
private middlewaresStorage;
|
|
15
|
-
constructor(middlewares?: MiddlewareSync<D>[]);
|
|
16
|
-
push(middleware: MiddlewareSync<D>): () => void;
|
|
17
|
-
remove(middleware: MiddlewareSync<D>): void;
|
|
18
|
-
execute(args: D): D;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
import { AnyError } from "../types";
|
|
2
|
+
type Next<D> = (args?: D) => void;
|
|
3
|
+
type Middleware<D> = (args: D, next: Next<D>) => void | Promise<void>;
|
|
4
|
+
export declare class Pipeline<D = any> {
|
|
5
|
+
private middlewaresStorage;
|
|
6
|
+
constructor(middlewares?: Middleware<D>[]);
|
|
7
|
+
push(middleware: Middleware<D>): () => void;
|
|
8
|
+
remove(middleware: Middleware<D>): void;
|
|
9
|
+
execute(args: D, onComplete: (args: D) => void, onError?: (e: AnyError) => void): void;
|
|
10
|
+
executePromise(args: D): Promise<D>;
|
|
11
|
+
}
|
|
12
|
+
type MiddlewareSync<D> = (args: D) => D | undefined;
|
|
13
|
+
export declare class PipelineSync<D = any> {
|
|
14
|
+
private middlewaresStorage;
|
|
15
|
+
constructor(middlewares?: MiddlewareSync<D>[]);
|
|
16
|
+
push(middleware: MiddlewareSync<D>): () => void;
|
|
17
|
+
remove(middleware: MiddlewareSync<D>): void;
|
|
18
|
+
execute(args: D): D;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
type RedrawEventHandler = () => void;
|
|
2
|
-
export interface RedrawFn {
|
|
3
|
-
(x?: any): void;
|
|
4
|
-
events: {
|
|
5
|
-
after?: RedrawEventHandler[];
|
|
6
|
-
before?: RedrawEventHandler[];
|
|
7
|
-
beforeOnce: RedrawEventHandler[];
|
|
8
|
-
afterOnce: RedrawEventHandler[];
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare const uiRedraw: {
|
|
12
|
-
redrawing: boolean;
|
|
13
|
-
animating: boolean;
|
|
14
|
-
redraw: RedrawFn;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
1
|
+
type RedrawEventHandler = () => void;
|
|
2
|
+
export interface RedrawFn {
|
|
3
|
+
(x?: any): void;
|
|
4
|
+
events: {
|
|
5
|
+
after?: RedrawEventHandler[];
|
|
6
|
+
before?: RedrawEventHandler[];
|
|
7
|
+
beforeOnce: RedrawEventHandler[];
|
|
8
|
+
afterOnce: RedrawEventHandler[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const uiRedraw: {
|
|
12
|
+
redrawing: boolean;
|
|
13
|
+
animating: boolean;
|
|
14
|
+
redraw: RedrawFn;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
package/types/helpers/types.d.ts
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
/// <reference types="mithril" />
|
|
3
|
-
import { UiType } from "./IUi";
|
|
4
|
-
export interface AnyObject {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export type MithrilStyleAttribute = {
|
|
8
|
-
width?: CSSSizeUnit;
|
|
9
|
-
} & AnyObject;
|
|
10
|
-
export type MithrilContext<T = Record<string, unknown>> = T;
|
|
11
|
-
type CSSSizeUnit = string;
|
|
12
|
-
export type NotifierType = "log" | "error" | "warn" | "info" | "success";
|
|
13
|
-
export type LabelType = "normal" | "heading" | "hidden" | "inline" | "embedded";
|
|
14
|
-
export interface NotifierOptions {
|
|
15
|
-
type?: NotifierType;
|
|
16
|
-
msg?: MessageText;
|
|
17
|
-
icon?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface Notifier {
|
|
20
|
-
notify(title: MessageText, options?: NotifierOptions): void;
|
|
21
|
-
}
|
|
22
|
-
export interface NotifierErrorOptions extends NotifierOptions {
|
|
23
|
-
error?: Error;
|
|
24
|
-
}
|
|
25
|
-
export interface ErrorNotifier extends Notifier {
|
|
26
|
-
notify(title: MessageText, options?: NotifierErrorOptions): void;
|
|
27
|
-
}
|
|
28
|
-
export type ViewElement = _mithril.MithrilVirtualElement | _mithril.MithrilVirtualElement[] | string;
|
|
29
|
-
export type CommandEvent = Event | _mithril.MithrilEvent;
|
|
30
|
-
export type InputChangeEvent = Event | _mithril.MithrilEvent;
|
|
31
|
-
export type CSSClassName = string;
|
|
32
|
-
export type CSSPositionUnit = string;
|
|
33
|
-
export type MithrilControl = ViewControl | ContentControl;
|
|
34
|
-
export interface ViewControl {
|
|
35
|
-
$view(): ViewElement | string;
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}
|
|
38
|
-
export type ViewControlConstructor<A extends Array<any> = any> = new (...A: A) => ViewControl;
|
|
39
|
-
export interface ContentControl<C = any> {
|
|
40
|
-
content: C;
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}
|
|
43
|
-
export type Markdown = string;
|
|
44
|
-
export type MessageText = Markdown | string;
|
|
45
|
-
export type ColorStyle = UiType | "default";
|
|
46
|
-
export type ButtonStyle = ColorStyle;
|
|
47
|
-
export type ObjectCode = string;
|
|
48
|
-
export type ObjectId = number;
|
|
49
|
-
export type ObjectIdOrCode = ObjectCode | ObjectId;
|
|
50
|
-
export type ObjectTitle = string;
|
|
51
|
-
export type ObjectSchemaName = string;
|
|
52
|
-
export type ObjectPhysicalName = string;
|
|
53
|
-
export type ModuleId = number;
|
|
54
|
-
export type ModuleCode = string;
|
|
55
|
-
export type Valued<T> = T | (() => T);
|
|
56
|
-
export type Timeout = ReturnType<typeof setTimeout>;
|
|
57
|
-
export type MithrilAttributes = _mithril.MithrilAttributes & {
|
|
58
|
-
[name: string]: any;
|
|
59
|
-
};
|
|
60
|
-
export type MithrilVirtualElementKey = string | number;
|
|
61
|
-
export type HTMLAnchorTarget = "_blank" | "_self" | "_parent" | "_top" | "framename";
|
|
62
|
-
export type HTMLString = string;
|
|
63
|
-
export type KeyboardKeyCode = string;
|
|
64
|
-
export type AnyError = any;
|
|
65
|
-
export type FieldPath = string;
|
|
66
|
-
export type FieldId = number;
|
|
67
|
-
export type FieldCode = string;
|
|
68
|
-
export type FieldKind = "dfk" | "o2m" | "o2o" | "hist" | "dfk-list";
|
|
69
|
-
export type LanguageCode = "ru" | "en";
|
|
70
|
-
export type LanguageId = number;
|
|
71
|
-
export type GConstructor<T = Record<string, unknown>, A extends Array<any> = any> = new (...args: A) => T;
|
|
72
|
-
export type URLString = string;
|
|
73
|
-
export type JSONString = string;
|
|
74
|
-
export type JavaScriptCodeContent = string;
|
|
75
|
-
export type DateString = string;
|
|
76
|
-
export type RequestMethod = "POST" | "GET" | string;
|
|
77
|
-
export declare enum BrandIcon {
|
|
78
|
-
primary = 0,
|
|
79
|
-
fatal = "skull",
|
|
80
|
-
danger = "hexagon-xmark",
|
|
81
|
-
warning = "triangle-exclamation",
|
|
82
|
-
success = "circle-check",
|
|
83
|
-
info = "circle-info"
|
|
84
|
-
}
|
|
85
|
-
export {};
|
|
1
|
+
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
3
|
+
import { UiType } from "./IUi";
|
|
4
|
+
export interface AnyObject {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export type MithrilStyleAttribute = {
|
|
8
|
+
width?: CSSSizeUnit;
|
|
9
|
+
} & AnyObject;
|
|
10
|
+
export type MithrilContext<T = Record<string, unknown>> = T;
|
|
11
|
+
type CSSSizeUnit = string;
|
|
12
|
+
export type NotifierType = "log" | "error" | "warn" | "info" | "success";
|
|
13
|
+
export type LabelType = "normal" | "heading" | "hidden" | "inline" | "embedded";
|
|
14
|
+
export interface NotifierOptions {
|
|
15
|
+
type?: NotifierType;
|
|
16
|
+
msg?: MessageText;
|
|
17
|
+
icon?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Notifier {
|
|
20
|
+
notify(title: MessageText, options?: NotifierOptions): void;
|
|
21
|
+
}
|
|
22
|
+
export interface NotifierErrorOptions extends NotifierOptions {
|
|
23
|
+
error?: Error;
|
|
24
|
+
}
|
|
25
|
+
export interface ErrorNotifier extends Notifier {
|
|
26
|
+
notify(title: MessageText, options?: NotifierErrorOptions): void;
|
|
27
|
+
}
|
|
28
|
+
export type ViewElement = _mithril.MithrilVirtualElement | _mithril.MithrilVirtualElement[] | string;
|
|
29
|
+
export type CommandEvent = Event | _mithril.MithrilEvent;
|
|
30
|
+
export type InputChangeEvent = Event | _mithril.MithrilEvent;
|
|
31
|
+
export type CSSClassName = string;
|
|
32
|
+
export type CSSPositionUnit = string;
|
|
33
|
+
export type MithrilControl = ViewControl | ContentControl;
|
|
34
|
+
export interface ViewControl {
|
|
35
|
+
$view(): ViewElement | string;
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}
|
|
38
|
+
export type ViewControlConstructor<A extends Array<any> = any> = new (...A: A) => ViewControl;
|
|
39
|
+
export interface ContentControl<C = any> {
|
|
40
|
+
content: C;
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}
|
|
43
|
+
export type Markdown = string;
|
|
44
|
+
export type MessageText = Markdown | string;
|
|
45
|
+
export type ColorStyle = UiType | "default";
|
|
46
|
+
export type ButtonStyle = ColorStyle;
|
|
47
|
+
export type ObjectCode = string;
|
|
48
|
+
export type ObjectId = number;
|
|
49
|
+
export type ObjectIdOrCode = ObjectCode | ObjectId;
|
|
50
|
+
export type ObjectTitle = string;
|
|
51
|
+
export type ObjectSchemaName = string;
|
|
52
|
+
export type ObjectPhysicalName = string;
|
|
53
|
+
export type ModuleId = number;
|
|
54
|
+
export type ModuleCode = string;
|
|
55
|
+
export type Valued<T> = T | (() => T);
|
|
56
|
+
export type Timeout = ReturnType<typeof setTimeout>;
|
|
57
|
+
export type MithrilAttributes = _mithril.MithrilAttributes & {
|
|
58
|
+
[name: string]: any;
|
|
59
|
+
};
|
|
60
|
+
export type MithrilVirtualElementKey = string | number;
|
|
61
|
+
export type HTMLAnchorTarget = "_blank" | "_self" | "_parent" | "_top" | "framename";
|
|
62
|
+
export type HTMLString = string;
|
|
63
|
+
export type KeyboardKeyCode = string;
|
|
64
|
+
export type AnyError = any;
|
|
65
|
+
export type FieldPath = string;
|
|
66
|
+
export type FieldId = number;
|
|
67
|
+
export type FieldCode = string;
|
|
68
|
+
export type FieldKind = "dfk" | "o2m" | "o2o" | "hist" | "dfk-list";
|
|
69
|
+
export type LanguageCode = "ru" | "en";
|
|
70
|
+
export type LanguageId = number;
|
|
71
|
+
export type GConstructor<T = Record<string, unknown>, A extends Array<any> = any> = new (...args: A) => T;
|
|
72
|
+
export type URLString = string;
|
|
73
|
+
export type JSONString = string;
|
|
74
|
+
export type JavaScriptCodeContent = string;
|
|
75
|
+
export type DateString = string;
|
|
76
|
+
export type RequestMethod = "POST" | "GET" | string;
|
|
77
|
+
export declare enum BrandIcon {
|
|
78
|
+
primary = 0,
|
|
79
|
+
fatal = "skull",
|
|
80
|
+
danger = "hexagon-xmark",
|
|
81
|
+
warning = "triangle-exclamation",
|
|
82
|
+
success = "circle-check",
|
|
83
|
+
info = "circle-info"
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/// <reference types="../../../../mithril" />
|
|
2
|
-
/// <reference types="mithril" />
|
|
3
|
-
import { KeyboardKeyCode } from "../../types";
|
|
4
|
-
import { ComponentConfigParams } from "./modificatorsTypes";
|
|
5
|
-
export declare function doesKeyPressed(keyCode: KeyboardKeyCode | KeyboardKeyCode[], e: KeyboardEvent): boolean;
|
|
6
|
-
export declare function getFocusableComponentAttrs(): _mithril.MithrilAttributes;
|
|
7
|
-
type KeyboardAction = (e: KeyboardEvent) => void;
|
|
8
|
-
export interface KeyboardActions {
|
|
9
|
-
primary?: KeyboardAction;
|
|
10
|
-
secondary?: KeyboardAction;
|
|
11
|
-
clear?: KeyboardAction;
|
|
12
|
-
cancel?: KeyboardAction;
|
|
13
|
-
}
|
|
14
|
-
export declare function setKeyboardActions(actions: KeyboardActions, configParams: ComponentConfigParams): void;
|
|
15
|
-
export {};
|
|
1
|
+
/// <reference types="../../../../mithril" />
|
|
2
|
+
/// <reference types="mithril" />
|
|
3
|
+
import { KeyboardKeyCode } from "../../types";
|
|
4
|
+
import { ComponentConfigParams } from "./modificatorsTypes";
|
|
5
|
+
export declare function doesKeyPressed(keyCode: KeyboardKeyCode | KeyboardKeyCode[], e: KeyboardEvent): boolean;
|
|
6
|
+
export declare function getFocusableComponentAttrs(): _mithril.MithrilAttributes;
|
|
7
|
+
type KeyboardAction = (e: KeyboardEvent) => void;
|
|
8
|
+
export interface KeyboardActions {
|
|
9
|
+
primary?: KeyboardAction;
|
|
10
|
+
secondary?: KeyboardAction;
|
|
11
|
+
clear?: KeyboardAction;
|
|
12
|
+
cancel?: KeyboardAction;
|
|
13
|
+
}
|
|
14
|
+
export declare function setKeyboardActions(actions: KeyboardActions, configParams: ComponentConfigParams): void;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface ComponentConfigParams {
|
|
2
|
-
el: HTMLElement;
|
|
3
|
-
inited: boolean;
|
|
4
|
-
}
|
|
1
|
+
export interface ComponentConfigParams {
|
|
2
|
+
el: HTMLElement;
|
|
3
|
+
inited: boolean;
|
|
4
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type KeySymbolCode = "Cmd" | "Option" | "Alt" | "Shift" | "Ctrl" | "Enter" | "Left" | "Right" | "Up" | "Down";
|
|
2
|
-
export declare function getKeySymbol(key: KeySymbolCode): string;
|
|
1
|
+
export type KeySymbolCode = "Cmd" | "Option" | "Alt" | "Shift" | "Ctrl" | "Enter" | "Left" | "Right" | "Up" | "Down";
|
|
2
|
+
export declare function getKeySymbol(key: KeySymbolCode): string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/** KeyboardEvent.code */
|
|
2
|
-
export type KeyboardKeyCode = string;
|
|
3
|
-
/** KeyboardEvent.key */
|
|
4
|
-
export type KeyboardKeyValue = string;
|
|
5
|
-
/** KeyboardEvent.key, приведенный к числу */
|
|
6
|
-
export type KeyboardNumberKeyValue = number;
|
|
7
|
-
interface EventModifierKeys {
|
|
8
|
-
shift: boolean;
|
|
9
|
-
meta: boolean;
|
|
10
|
-
alt: boolean;
|
|
11
|
-
ctrl: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type EventModifierKey = keyof EventModifierKeys;
|
|
14
|
-
export declare function checkKeydownModifiers(e: KeyboardEvent, pressedModifierKeys?: EventModifierKey[]): boolean;
|
|
15
|
-
interface KeydownEventKeyCheckingOptions {
|
|
16
|
-
requiredModifiers?: EventModifierKey[];
|
|
17
|
-
/** @default true */
|
|
18
|
-
checkModifiers?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function checkKeydownEventKeys(e: KeyboardEvent, keyCode: KeyboardKeyCode, options?: KeydownEventKeyCheckingOptions): boolean;
|
|
21
|
-
/** Получить код клавиши с цифрой */
|
|
22
|
-
export declare function getKeyCodeOfNumberKey(numberKeyValue: KeyboardNumberKeyValue): KeyboardKeyCode;
|
|
23
|
-
export {};
|
|
1
|
+
/** KeyboardEvent.code */
|
|
2
|
+
export type KeyboardKeyCode = string;
|
|
3
|
+
/** KeyboardEvent.key */
|
|
4
|
+
export type KeyboardKeyValue = string;
|
|
5
|
+
/** KeyboardEvent.key, приведенный к числу */
|
|
6
|
+
export type KeyboardNumberKeyValue = number;
|
|
7
|
+
interface EventModifierKeys {
|
|
8
|
+
shift: boolean;
|
|
9
|
+
meta: boolean;
|
|
10
|
+
alt: boolean;
|
|
11
|
+
ctrl: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type EventModifierKey = keyof EventModifierKeys;
|
|
14
|
+
export declare function checkKeydownModifiers(e: KeyboardEvent, pressedModifierKeys?: EventModifierKey[]): boolean;
|
|
15
|
+
interface KeydownEventKeyCheckingOptions {
|
|
16
|
+
requiredModifiers?: EventModifierKey[];
|
|
17
|
+
/** @default true */
|
|
18
|
+
checkModifiers?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function checkKeydownEventKeys(e: KeyboardEvent, keyCode: KeyboardKeyCode, options?: KeydownEventKeyCheckingOptions): boolean;
|
|
21
|
+
/** Получить код клавиши с цифрой */
|
|
22
|
+
export declare function getKeyCodeOfNumberKey(numberKeyValue: KeyboardNumberKeyValue): KeyboardKeyCode;
|
|
23
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function osByUserAgent(userAgent: string): string;
|
|
1
|
+
export declare function osByUserAgent(userAgent: string): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Valued, ViewElement } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Кнопка с кастомным представлением для тулбара.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* // Пример с React-компонентом из UI Kit
|
|
7
|
+
* FormService.onCreated((form) => {
|
|
8
|
+
* form.addCommand({
|
|
9
|
+
* code: "test",
|
|
10
|
+
* order: 100,
|
|
11
|
+
* $view: () => {
|
|
12
|
+
* return uiKitWrap(
|
|
13
|
+
* MyComponent,
|
|
14
|
+
* { onClose: () => form.close() },
|
|
15
|
+
* {
|
|
16
|
+
* // Рекомендуется всегда проставлять элементу ключ
|
|
17
|
+
* key: "test",
|
|
18
|
+
* style: { paddingLeft: "10px" }
|
|
19
|
+
* }
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* });
|
|
23
|
+
* });
|
|
24
|
+
*/
|
|
25
|
+
export interface CustomViewButton {
|
|
26
|
+
code?: string;
|
|
27
|
+
order?: number;
|
|
28
|
+
visible?: Valued<boolean>;
|
|
29
|
+
$view: () => ViewElement;
|
|
30
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CSSClassName } from "../types";
|
|
2
|
-
type ClassNamesSimpleArg = CSSClassName | number | Record<CSSClassName, any> | undefined;
|
|
3
|
-
/**
|
|
4
|
-
* Тип для параметров функций classNames и mClassNames.
|
|
5
|
-
* Функции принимают любое количество аргументов, которые могут быть строкой, объектом или массивом.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* classNames('foo', 'bar'); // => 'foo bar'
|
|
9
|
-
* classNames('foo', { bar: true }); // => 'foo bar'
|
|
10
|
-
* classNames({ 'foo-bar': true }); // => 'foo-bar'
|
|
11
|
-
* classNames({ 'foo-bar': false }); // => ''
|
|
12
|
-
* classNames({ foo: true }, { bar: true }); // => 'foo bar'
|
|
13
|
-
* classNames({ foo: true, bar: true }); // => 'foo bar'
|
|
14
|
-
* classNames('foo', { bar: true, duck: false }, 'baz', { quux: true }); // => 'foo bar baz quux'
|
|
15
|
-
* classNames(null, false, 'bar', undefined, 0, { baz: null }, ''); // => 'bar'
|
|
16
|
-
*/
|
|
17
|
-
export type ClassNamesArg = ClassNamesSimpleArg | ClassNamesSimpleArg[];
|
|
18
|
-
export declare function classNames(...args: ClassNamesArg[]): string;
|
|
19
|
-
export declare function mClassNames(...args: ClassNamesArg[]): string;
|
|
20
|
-
export {};
|
|
1
|
+
import { CSSClassName } from "../types";
|
|
2
|
+
type ClassNamesSimpleArg = CSSClassName | number | Record<CSSClassName, any> | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Тип для параметров функций classNames и mClassNames.
|
|
5
|
+
* Функции принимают любое количество аргументов, которые могут быть строкой, объектом или массивом.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* classNames('foo', 'bar'); // => 'foo bar'
|
|
9
|
+
* classNames('foo', { bar: true }); // => 'foo bar'
|
|
10
|
+
* classNames({ 'foo-bar': true }); // => 'foo-bar'
|
|
11
|
+
* classNames({ 'foo-bar': false }); // => ''
|
|
12
|
+
* classNames({ foo: true }, { bar: true }); // => 'foo bar'
|
|
13
|
+
* classNames({ foo: true, bar: true }); // => 'foo bar'
|
|
14
|
+
* classNames('foo', { bar: true, duck: false }, 'baz', { quux: true }); // => 'foo bar baz quux'
|
|
15
|
+
* classNames(null, false, 'bar', undefined, 0, { baz: null }, ''); // => 'bar'
|
|
16
|
+
*/
|
|
17
|
+
export type ClassNamesArg = ClassNamesSimpleArg | ClassNamesSimpleArg[];
|
|
18
|
+
export declare function classNames(...args: ClassNamesArg[]): string;
|
|
19
|
+
export declare function mClassNames(...args: ClassNamesArg[]): string;
|
|
20
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface KeyStorage<T> {
|
|
2
|
-
get(): T;
|
|
3
|
-
set(value: T): void;
|
|
4
|
-
clear(): void;
|
|
5
|
-
}
|
|
6
|
-
export type KeyStorageInvalidateKey = number | string;
|
|
1
|
+
export interface KeyStorage<T> {
|
|
2
|
+
get(): T;
|
|
3
|
+
set(value: T): void;
|
|
4
|
+
clear(): void;
|
|
5
|
+
}
|
|
6
|
+
export type KeyStorageInvalidateKey = number | string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare class Memoize<A extends any[] = any[], R = any> {
|
|
2
|
-
private calculate;
|
|
3
|
-
private store;
|
|
4
|
-
constructor(calculate: (...args: A) => R);
|
|
5
|
-
exec(args: A): R;
|
|
6
|
-
}
|
|
7
|
-
export declare class MemoizeStore {
|
|
8
|
-
private store;
|
|
9
|
-
exec<A extends any[] = any[], R = any>(key: string, calculate: (...args: A) => R, args: A): R;
|
|
10
|
-
clearKey(key: string): void;
|
|
11
|
-
}
|
|
12
|
-
export declare class MultiMemoize<A extends any[] = any[], R = any> {
|
|
13
|
-
private calculate;
|
|
14
|
-
private store;
|
|
15
|
-
constructor(calculate: (...args: A) => R);
|
|
16
|
-
exec(...args: A): R;
|
|
17
|
-
clear(): void;
|
|
18
|
-
}
|
|
1
|
+
export declare class Memoize<A extends any[] = any[], R = any> {
|
|
2
|
+
private calculate;
|
|
3
|
+
private store;
|
|
4
|
+
constructor(calculate: (...args: A) => R);
|
|
5
|
+
exec(args: A): R;
|
|
6
|
+
}
|
|
7
|
+
export declare class MemoizeStore {
|
|
8
|
+
private store;
|
|
9
|
+
exec<A extends any[] = any[], R = any>(key: string, calculate: (...args: A) => R, args: A): R;
|
|
10
|
+
clearKey(key: string): void;
|
|
11
|
+
}
|
|
12
|
+
export declare class MultiMemoize<A extends any[] = any[], R = any> {
|
|
13
|
+
private calculate;
|
|
14
|
+
private store;
|
|
15
|
+
constructor(calculate: (...args: A) => R);
|
|
16
|
+
exec(...args: A): R;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function hasOwnProperty(object: Record<never, unknown>, name: string): boolean;
|
|
2
|
-
export declare function shallowCopy<T>(obj: T): T;
|
|
3
|
-
export declare function copyWithIgnore<T, K extends keyof T = null>(obj: T, ignore: K[]): Omit<T, K>;
|
|
4
|
-
export declare function shallowEqual(objA: Record<never, unknown>, objB: Record<never, unknown>): boolean;
|
|
1
|
+
export declare function hasOwnProperty(object: Record<never, unknown>, name: string): boolean;
|
|
2
|
+
export declare function shallowCopy<T>(obj: T): T;
|
|
3
|
+
export declare function copyWithIgnore<T, K extends keyof T = null>(obj: T, ignore: K[]): Omit<T, K>;
|
|
4
|
+
export declare function shallowEqual(objA: Record<never, unknown>, objB: Record<never, unknown>): boolean;
|