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.
Files changed (352) hide show
  1. package/dist/index.d.ts +11 -11
  2. package/dist/index.js +16 -16
  3. package/dist/index.js.map +1 -1
  4. package/package.json +38 -38
  5. package/readme.md +15 -15
  6. package/types/_core/scripts/common/Datasource.d.ts +9 -0
  7. package/types/_core/scripts/common/Field.d.ts +51 -0
  8. package/types/_core/scripts/common/FieldSettings.schema.d.ts +17 -0
  9. package/types/_core/scripts/common/MdtField.d.ts +9 -0
  10. package/types/_core/scripts/common/MdtObject.d.ts +7 -0
  11. package/types/_core/scripts/common/Record.d.ts +27 -0
  12. package/types/_core/scripts/common/Table.d.ts +66 -0
  13. package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -0
  14. package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +2 -0
  15. package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -0
  16. package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +1 -0
  17. package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -0
  18. package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +7 -0
  19. package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -0
  20. package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +40 -0
  21. package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -0
  22. package/types/_core/scripts/common/list/group/groupTypes.d.ts +177 -0
  23. package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +48 -0
  24. package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -0
  25. package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -0
  26. package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +8 -0
  27. package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +25 -0
  28. package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -0
  29. package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -0
  30. package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -0
  31. package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +18 -0
  32. package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -0
  33. package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +22 -0
  34. package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -0
  35. package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +17 -0
  36. package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +30 -0
  37. package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -0
  38. package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +12 -0
  39. package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +7 -0
  40. package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -0
  41. package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -0
  42. package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -0
  43. package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +13 -0
  44. package/types/_core/scripts/components/form/header/types.d.ts +14 -0
  45. package/types/_core/scripts/components/form/label/labelOptions.d.ts +22 -0
  46. package/types/_core/scripts/components/icon/iconOptions.d.ts +21 -0
  47. package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +9 -0
  48. package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -0
  49. package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -0
  50. package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -0
  51. package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -0
  52. package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +22 -0
  53. package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +16 -0
  54. package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -0
  55. package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +6 -0
  56. package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -0
  57. package/types/_core/scripts/data/periods/helpers/types.d.ts +4 -0
  58. package/types/_core/scripts/datasources/FetchResult.d.ts +5 -0
  59. package/types/_core/scripts/helpers/IUi.d.ts +2 -0
  60. package/types/_core/scripts/helpers/dateUtils.d.ts +23 -0
  61. package/types/_core/scripts/helpers/deleteFromArray.d.ts +1 -0
  62. package/types/_core/scripts/helpers/events/EventEmitter.d.ts +12 -0
  63. package/types/_core/scripts/helpers/fireEvent.d.ts +4 -0
  64. package/types/_core/scripts/helpers/formatOptions.d.ts +16 -0
  65. package/types/_core/scripts/helpers/formattedText.d.ts +8 -0
  66. package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -0
  67. package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +20 -0
  68. package/types/_core/scripts/helpers/redraw.d.ts +16 -0
  69. package/types/_core/scripts/helpers/types.d.ts +84 -0
  70. package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +14 -0
  71. package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -0
  72. package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -0
  73. package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -0
  74. package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -0
  75. package/types/_core/scripts/helpers/utils/classNames.d.ts +20 -0
  76. package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +6 -0
  77. package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +18 -0
  78. package/types/_core/scripts/helpers/utils/object.d.ts +4 -0
  79. package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +3 -0
  80. package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +18 -0
  81. package/types/_core/scripts/helpers/zone/IZone.d.ts +7 -0
  82. package/types/_core/scripts/security/PermissionLevel.d.ts +40 -0
  83. package/types/_core/scripts/security/User.d.ts +19 -0
  84. package/types/_core/scripts/services/HotkeyManager.d.ts +6 -0
  85. package/types/_core/scripts/services/IFilter.d.ts +322 -0
  86. package/types/_core/scripts/services/ModuleData.d.ts +9 -0
  87. package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +266 -0
  88. package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +585 -0
  89. package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -0
  90. package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +82 -0
  91. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -0
  92. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -0
  93. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -0
  94. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -0
  95. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -0
  96. package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +43 -0
  97. package/types/_core/scripts/services/api/BaseQuery.d.ts +25 -0
  98. package/types/_core/scripts/services/api/Query.d.ts +56 -0
  99. package/types/_core/scripts/services/api/QuerySorting.d.ts +18 -0
  100. package/types/_core/scripts/services/api/ServerResonseType.d.ts +2 -0
  101. package/types/_core/scripts/services/commands/Command.d.ts +22 -0
  102. package/types/_core/scripts/services/commands/CommandGroup.d.ts +15 -0
  103. package/types/_core/scripts/services/commands/CommandManager.d.ts +77 -0
  104. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -0
  105. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -0
  106. package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -0
  107. package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -0
  108. package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +102 -0
  109. package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +12 -0
  110. package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +38 -0
  111. package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +9 -0
  112. package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +238 -0
  113. package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +87 -0
  114. package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -0
  115. package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +7 -0
  116. package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -0
  117. package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +8 -0
  118. package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +10 -0
  119. package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +88 -0
  120. package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +2 -0
  121. package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +96 -0
  122. package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -0
  123. package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -0
  124. package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +4 -0
  125. package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -0
  126. package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +77 -0
  127. package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -0
  128. package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +7 -0
  129. package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +12 -0
  130. package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +13 -0
  131. package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +13 -0
  132. package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -0
  133. package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +14 -0
  134. package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +20 -0
  135. package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -0
  136. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -0
  137. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -0
  138. package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -0
  139. package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -0
  140. package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +91 -0
  141. package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +13 -0
  142. package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +91 -0
  143. package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +185 -0
  144. package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +83 -0
  145. package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +224 -0
  146. package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -0
  147. package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +40 -0
  148. package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +11 -0
  149. package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +21 -0
  150. package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +101 -0
  151. package/types/_core/scripts/views/controls/Control.d.ts +7 -0
  152. package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +15 -0
  153. package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +28 -0
  154. package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -0
  155. package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -0
  156. package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -0
  157. package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -0
  158. package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -0
  159. package/types/_core/scripts/views/form/formTypes.d.ts +5 -0
  160. package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +22 -0
  161. package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +19 -0
  162. package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +5 -0
  163. package/types/_core/scripts/views/list/ListViewOptions.d.ts +99 -0
  164. package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -0
  165. package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +123 -0
  166. package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +145 -0
  167. package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +53 -0
  168. package/types/_core/scripts/views/page/PageZoneTypes.d.ts +1 -0
  169. package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +759 -0
  170. package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +29 -0
  171. package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -0
  172. package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -0
  173. package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -0
  174. package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -0
  175. package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -0
  176. package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +5 -0
  177. package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -0
  178. package/types/common/Datasource.d.ts +9 -9
  179. package/types/common/Field.d.ts +51 -51
  180. package/types/common/FieldSettings.schema.d.ts +17 -17
  181. package/types/common/MdtField.d.ts +9 -9
  182. package/types/common/MdtObject.d.ts +7 -7
  183. package/types/common/Record.d.ts +27 -27
  184. package/types/common/Table.d.ts +66 -66
  185. package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -12
  186. package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
  187. package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
  188. package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
  189. package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
  190. package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
  191. package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
  192. package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
  193. package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
  194. package/types/common/list/group/groupTypes.d.ts +177 -177
  195. package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
  196. package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
  197. package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
  198. package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
  199. package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
  200. package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
  201. package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
  202. package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
  203. package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
  204. package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
  205. package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
  206. package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
  207. package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
  208. package/types/components/baseFormControls/input/inputOptions.d.ts +31 -31
  209. package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
  210. package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
  211. package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
  212. package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
  213. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
  214. package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
  215. package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
  216. package/types/components/form/header/types.d.ts +14 -14
  217. package/types/components/form/label/labelOptions.d.ts +23 -23
  218. package/types/components/icon/iconOptions.d.ts +24 -24
  219. package/types/components/iconButton/iconButtonOptions.d.ts +10 -10
  220. package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
  221. package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
  222. package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
  223. package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
  224. package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
  225. package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
  226. package/types/components/textWithIcon/textWithIconOptions.d.ts +17 -17
  227. package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
  228. package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
  229. package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
  230. package/types/data/periods/helpers/types.d.ts +4 -4
  231. package/types/datasources/FetchResult.d.ts +5 -5
  232. package/types/helpers/IUi.d.ts +2 -2
  233. package/types/helpers/dateUtils.d.ts +23 -23
  234. package/types/helpers/deleteFromArray.d.ts +1 -1
  235. package/types/helpers/events/EventEmitter.d.ts +12 -12
  236. package/types/helpers/fireEvent.d.ts +4 -4
  237. package/types/helpers/formatOptions.d.ts +16 -16
  238. package/types/helpers/formattedText.d.ts +8 -8
  239. package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
  240. package/types/helpers/pipeline/Pipeline.d.ts +20 -20
  241. package/types/helpers/redraw.d.ts +16 -16
  242. package/types/helpers/types.d.ts +85 -85
  243. package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -15
  244. package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
  245. package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
  246. package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
  247. package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
  248. package/types/helpers/ui/toolbarItemTypes.d.ts +30 -0
  249. package/types/helpers/utils/classNames.d.ts +20 -20
  250. package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
  251. package/types/helpers/utils/memoization/memoize.d.ts +18 -18
  252. package/types/helpers/utils/object.d.ts +4 -4
  253. package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
  254. package/types/helpers/utils/valued/getValued.d.ts +18 -18
  255. package/types/helpers/zone/IZone.d.ts +8 -8
  256. package/types/job/scripts/types.d.ts +11 -0
  257. package/types/security/PermissionLevel.d.ts +40 -40
  258. package/types/security/User.d.ts +20 -20
  259. package/types/services/HotkeyManager.d.ts +6 -6
  260. package/types/services/IFilter.d.ts +322 -322
  261. package/types/services/ModuleData.d.ts +9 -9
  262. package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
  263. package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
  264. package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
  265. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
  266. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
  267. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
  268. package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
  269. package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
  270. package/types/services/api/ApiRequestOptions.d.ts +43 -43
  271. package/types/services/api/BaseQuery.d.ts +25 -25
  272. package/types/services/api/Query.d.ts +56 -56
  273. package/types/services/api/QuerySorting.d.ts +18 -18
  274. package/types/services/api/ServerResonseType.d.ts +2 -2
  275. package/types/services/commands/Command.d.ts +22 -22
  276. package/types/services/commands/CommandGroup.d.ts +15 -15
  277. package/types/services/commands/CommandManager.d.ts +77 -77
  278. package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
  279. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -36
  280. package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
  281. package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
  282. package/types/services/customModules/facades/Form/IFormFacade.d.ts +106 -102
  283. package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
  284. package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
  285. package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
  286. package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -239
  287. package/types/services/customModules/facades/IMdtFacade.d.ts +91 -88
  288. package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
  289. package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
  290. package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
  291. package/types/services/customModules/facades/List/IListCellFacade.d.ts +8 -8
  292. package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
  293. package/types/services/customModules/facades/List/IListControlFacade.d.ts +88 -88
  294. package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
  295. package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
  296. package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
  297. package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
  298. package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
  299. package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
  300. package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
  301. package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -53
  302. package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
  303. package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
  304. package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
  305. package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
  306. package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
  307. package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
  308. package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
  309. package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
  310. package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
  311. package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
  312. package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
  313. package/types/services/customModules/facades/services/INavigationFacade.d.ts +91 -91
  314. package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
  315. package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
  316. package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
  317. package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +191 -191
  318. package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
  319. package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
  320. package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +42 -42
  321. package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
  322. package/types/services/e2e/e2eServiceType.d.ts +11 -11
  323. package/types/ui-kit/IUiKitUtilsFacade.d.ts +35 -35
  324. package/types/ui-kit/UiKitFacade.d.ts +120 -106
  325. package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
  326. package/types/views/controls/Control.d.ts +7 -7
  327. package/types/views/controls/panels/panelOptions.d.ts +15 -15
  328. package/types/views/form/controls/commonControl/ICommonControl.d.ts +29 -29
  329. package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
  330. package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
  331. package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
  332. package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
  333. package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
  334. package/types/views/form/formTypes.d.ts +5 -5
  335. package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
  336. package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
  337. package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
  338. package/types/views/list/ListViewOptions.d.ts +102 -102
  339. package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
  340. package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
  341. package/types/views/list/schema/ListPageOptions.schema.d.ts +145 -145
  342. package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
  343. package/types/views/page/PageZoneTypes.d.ts +1 -1
  344. package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
  345. package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
  346. package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
  347. package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
  348. package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
  349. package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
  350. package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
  351. package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
  352. package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
@@ -0,0 +1,102 @@
1
+ import { MdtRecord, RecordId } from "../../../../common/Record";
2
+ import { FormattedText } from "../../../../helpers/formattedText";
3
+ import { AnyObject, MithrilControl, Valued, ViewControl } from "mdtScripts/helpers/types";
4
+ import { Field } from "../../../../common/Field";
5
+ import { IButton } from "../../../../views/form/controls/monacoEditor/jsonSchemas/Button.schema";
6
+ import { IObjectFacade } from "../schema/IObjectFacade";
7
+ import { IFormControlFacade } from "./IFormControlFacade";
8
+ import { FieldPhysicalType } from "../schema/ISchemaFacade";
9
+ import { IBaseFieldBuilder } from "../schema/fieldBuilder/fieldBuilder/IFieldBuilder";
10
+ export declare type ActionButton = IButton & {
11
+ /** Всплывающая подсказка */
12
+ description?: Valued<FormattedText>;
13
+ /** Подписка на событие нажатия на кнопку */
14
+ execute?: () => void;
15
+ /** Активность кнопки */
16
+ enabled?: () => boolean;
17
+ /** Видимость кнопки */
18
+ visible?: () => boolean;
19
+ /** CSS-класс кнопки */
20
+ className?: string;
21
+ };
22
+ export interface ButtonFacade extends ActionButton {
23
+ /** Дочерние элементы кнопки */
24
+ items?: ButtonFacade[];
25
+ }
26
+ export interface IFormInitOptions {
27
+ /** Уникальный код списка */
28
+ code?: string;
29
+ /** Настройки полей */
30
+ fieldOptions?: {
31
+ [fieldCode: string]: any;
32
+ };
33
+ }
34
+ export interface IFormOptions {
35
+ /** Код формы */
36
+ code: string;
37
+ /** Наименование формы */
38
+ title?: string;
39
+ /** Описание формы в формате markdown */
40
+ description?: string;
41
+ /** Поля формы */
42
+ fields?: (ICustomField | IBaseFieldBuilder)[];
43
+ /** Настройки главной кнопки формы */
44
+ primaryButton?: ButtonFacade;
45
+ /** Подписаться на событие сохранения записи формы */
46
+ onSave(record: Record<string, any>): any;
47
+ /** Подписаться на событие изменения записи формы */
48
+ onFieldUpdate?(field: Field, value: string, value$?: string, record?: MdtRecord): any;
49
+ /** Запись по умолчанию */
50
+ defaultValues?: Partial<MdtRecord>;
51
+ /** Описание лэйаута формы */
52
+ layout?: CustomFormLayout;
53
+ viewSettings?: FormViewSettings;
54
+ }
55
+ export interface FormViewSettings {
56
+ hideSubTitle?: boolean;
57
+ hideTitle?: boolean;
58
+ }
59
+ export declare type ObjectManagementField = {
60
+ code: string;
61
+ title: string;
62
+ type: FieldPhysicalType;
63
+ module?: string;
64
+ };
65
+ export interface IFormServiceFacade {
66
+ /** Создать форму, привязанную объекту */
67
+ create(tableCode: string, id?: RecordId, options?: any, extOptions?: any): IFormControlFacade;
68
+ /** Создать кастомную форму */
69
+ createCustom(options: IFormOptions): IFormControlFacade;
70
+ /** Подписаться на событие инициализации формы */
71
+ onInit(callback: (form: IFormControlFacade) => void): void;
72
+ /** Подписаться на событие создания формы */
73
+ onCreate(callback: (form: IFormControlFacade) => void): void;
74
+ /** Подписаться на событие окончания создания формы */
75
+ onCreated(callback: (form: IFormControlFacade) => void): void;
76
+ /** Добавить настройки для полей формы */
77
+ addFieldOptions(tableCode: string, options: IFormInitOptions): void;
78
+ /** Зарегистрировать расширение формы
79
+ * @param {string} alias - Имя свойства, которое можно использовать для установки опций экстендера
80
+ */
81
+ registerExtender<T>(extender: IFormExtenderFacade<T>, alias: string): void;
82
+ /** Зарегистрировать новый контрол формы */
83
+ registerControl<Options>(controlOptions: FormControlOptions<Options>): void;
84
+ }
85
+ export interface ICustomField extends Field {
86
+ /** Опции контрола поля. Используются только в том случае, если не задан лэйаут для формы */
87
+ options?: any;
88
+ }
89
+ declare type CustomFormLayout = any;
90
+ export interface IFormExtenderFacade<T> extends Partial<ViewControl> {
91
+ new (form: IFormControlFacade, options: any): T;
92
+ }
93
+ export interface FormControlOptions<Options = AnyObject> {
94
+ code: string;
95
+ title: string;
96
+ enabled?: (object: IObjectFacade) => boolean;
97
+ type: FormControlClass<Options>;
98
+ }
99
+ export interface FormControlClass<Options = AnyObject> {
100
+ new (form: IFormControlFacade, options: Options): MithrilControl;
101
+ }
102
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface IFormLayout {
2
+ rows: IFormLayoutRow[];
3
+ }
4
+ interface IFormLayoutRow {
5
+ cols: IFormLayoutColType[];
6
+ }
7
+ export declare type IFormLayoutColType = {
8
+ type: string;
9
+ width: number;
10
+ options: any;
11
+ };
12
+ export {};
@@ -0,0 +1,38 @@
1
+ export interface IAppFacade {
2
+ /**
3
+ * Изменить логотип системы
4
+ *
5
+ * @param logo текст, ссылка или строка с svg
6
+ * @param type тип логотипа, по умолчанию svgOrText
7
+ *
8
+ * @example
9
+ * **Примеры**
10
+
11
+ * Установить текст в логотип:
12
+ * ```js
13
+ * App.setLogo("ICS");
14
+ * ```
15
+
16
+ * Установить svg в качестве логотипа:
17
+ * ```js
18
+ const svgIcsLogo = `<svg xmlns="http://www.w3.org/2000/svg" width="90" height="32" viewBox=" 0 0 102 32" fill="none"><g clip-path="url(#clip0)"><path d="M5.47418 8.14642H0.216797L1.54442 12.9067H5.47418V32H10.3067V13.8483V8.14642H5.47418Z" fill="#ffffff" /><path d="M52.7375 13.0113L54.0651 8.14642H44.1345C40.0985 8.14642 36.8591 11.3374 36.8591 15.313C36.8591 19.2362 40.0454 22.4272 44.0283 22.4795V22.5318H49.8167C51.0912 22.5318 52.1533 23.578 52.1533 24.8334C52.1533 26.0889 51.0912 27.1351 49.8167 27.1351H38.0805L36.7529 32H49.8167C53.8527 32 57.0921 28.809 57.0921 24.8334C57.0921 20.9102 53.8527 17.6669 49.8698 17.6669H44.1345C42.8599 17.6669 41.7979 16.6207 41.7979 15.3653C41.7979 14.1098 42.8599 13.0636 44.1345 13.0636H52.7375V13.0113Z" fill="#ffffff" /> <path d="M25.1225 8.14642C18.4313 8.14642 13.0146 13.4821 13.0146 20.0732C13.0146 26.6643 18.4313 32 25.1225 32H32.8227L33.991 27.0828H25.0163C21.0334 27.0828 17.8471 23.9442 17.8471 20.0209C17.8471 16.0976 21.0334 12.959 25.0163 12.959H32.7165L33.9379 8.19873L25.1225 8.14642Z" fill="#ffffff" /> <path d="M94.1056 27.135C90.3882 27.135 87.4143 24.1533 87.4143 20.5439V14.0051V12.8019H95.2739L96.6015 7.98943H87.4143V5.16467V0.0905457H82.4756V5.16467V7.93712V13.6389V15.9929V16.2544V20.4916C82.4756 26.8212 87.6799 31.9476 94.1056 31.9476H100.106L101.434 27.0827L94.1056 27.135Z" fill="#ffffff" /> <path d="M74.4046 8.0416H69.1472L67.9258 12.7495H74.4046V31.8429H79.2902V13.6911V8.0416H74.4046Z" fill="#ffffff" /> <path d="M10.3682 4.99186V0.179291L5.48254 0.179291V4.99186H10.3682Z" fill="#29ABE2" /> <path d="M79.2646 4.81256V0L74.3789 0V4.81256H79.2646Z" fill="#29ABE2" /> <path d="M60.4912 22.4797L61.7657 17.6671H66.6514L65.3769 22.4797H60.4912Z" fill="#29ABE2" /> </g> <defs> <clipPath id="clip0"> <rect width="102" height="32" fill="white" /> </clipPath> </defs> </svg>`
19
+ App.setLogo(svgIcsLogo);
20
+ * ```
21
+
22
+ * Установить ссылку на изображение:
23
+ * ```js
24
+ * App.setLogo("https://ics-it.ru/api/static?path=_logo.svg", "url");
25
+ * ```
26
+
27
+ * Отключить логотип:
28
+ * ```js
29
+ * App.setLogo(null);
30
+ * ```
31
+ */
32
+ setLogo(logo: string | false, type?: LogoType): void;
33
+ /**
34
+ * Изменить дополнительный логотип, справа от основного, аналогично {@link setLogo}
35
+ */
36
+ setSecondLogo(logo: string | false, type?: LogoType): void;
37
+ }
38
+ export declare type LogoType = "textOrSvg" | "url";
@@ -0,0 +1,9 @@
1
+ import { MithrilControl } from "../../../helpers/types";
2
+ import { IType } from "./utils/IUiFacade";
3
+ export interface IAuthFacade {
4
+ disableFormsProvider(): void;
5
+ disableProvider(control: IType<MithrilControl>): void;
6
+ registerControl(getControl: () => MithrilControl): void;
7
+ onHeadClick(onHeadClickHandler: () => void): void;
8
+ disableOnHeadClick(onHeadClickHandler: () => void): void;
9
+ }
@@ -0,0 +1,238 @@
1
+ /// <reference types="../../../../mithril" />
2
+ /// <reference types="react" />
3
+ import { MdtRecord } from "mdtScripts/common/Record";
4
+ import { ButtonFacade } from "./Form/IFormFacade";
5
+ import { ClassNamesArg } from "mdtScripts/helpers/utils/classNames";
6
+ import { ViewElement } from "mdtScripts/helpers/types";
7
+ /** @deprecated */
8
+ export interface ILegacyFacade {
9
+ SchemaManagerInstance: any;
10
+ SchemaManager: any;
11
+ NavigationManagerInstance: any;
12
+ DateTextFieldCtrl: any;
13
+ FormlessFieldCtrl: any;
14
+ MonthPicker: any;
15
+ UiMarked: any;
16
+ prop: any;
17
+ ImageService: any;
18
+ FormLayoutManager: any;
19
+ removeSpecial: any;
20
+ ServerErrorCtrl: any;
21
+ ExportApiAccessor: any;
22
+ showErrors: any;
23
+ CheckboxListFieldCtrl: any;
24
+ SplitBlockCtrl: any;
25
+ SplitBlockSection: any;
26
+ pickRecordModal: any;
27
+ uiCtxEvent: any;
28
+ uiRedraw: any;
29
+ ApiAccessorInstance: any;
30
+ ApiAccessor: any;
31
+ ApiUtils: any;
32
+ ApiUrlManager: any;
33
+ clone: any;
34
+ mClassNames: any;
35
+ isDev: any;
36
+ ModuleService: any;
37
+ ApiServiceInstance: any;
38
+ SecurityManagerInstance: any;
39
+ FormControlManagerInstance: any;
40
+ RecordManagerInstance: any;
41
+ RecordManager: any;
42
+ utils: any;
43
+ FormServiceInstance: any;
44
+ ListServiceInstance: any;
45
+ ui: any;
46
+ viewer: any;
47
+ deleteFromArray: any;
48
+ onDocumentVisibilityChange: any;
49
+ fireEvent: any;
50
+ combine: any;
51
+ app: any;
52
+ ContentListCtrl: any;
53
+ ListCtrl: any;
54
+ FormCtrl: any;
55
+ SideCtrl: any;
56
+ FieldCtrl: any;
57
+ FileInputCtrl: any;
58
+ FkPanels: any;
59
+ FramePage: any;
60
+ PageZones: any;
61
+ modules: ModulesLegacyFacade;
62
+ pageConfig: any;
63
+ view: any;
64
+ NavigationControlManager: any;
65
+ NavigationControlManagerInstance: any;
66
+ messages: any;
67
+ registerForm: any;
68
+ components: any;
69
+ FieldControlManagerInstance: any;
70
+ ServerMessageCtrl: any;
71
+ ContainerMixin: any;
72
+ SelectFieldCtrl: any;
73
+ FormFieldMode: any;
74
+ FormFieldCtrl: any;
75
+ FullPageForm: any;
76
+ LabelMode: any;
77
+ WarningText: any;
78
+ showError: any;
79
+ SelectMixin: any;
80
+ CacheManager: any;
81
+ ControlSize: any;
82
+ LayoutBuilder: any;
83
+ ServerMessageHelper: any;
84
+ showSidebar: any;
85
+ uiShow: any;
86
+ GlobalVarManager: any;
87
+ list: {
88
+ ToolbarCtrl: any;
89
+ SwitchButtons: any;
90
+ CustomColumnCtrl: any;
91
+ HierarchyListExtender: any;
92
+ LabelStyleHelper: any;
93
+ LabelStyleCellView: any;
94
+ };
95
+ CenteredMessageCtrl: any;
96
+ PageHeaderControls: any;
97
+ confirmModal: any;
98
+ DropdownMenuCtrl: any;
99
+ DeleteService: any;
100
+ ApiService: any;
101
+ ApiUrlHelper: any;
102
+ URLHelper: any;
103
+ SchemaError: any;
104
+ MemoryDatasource: any;
105
+ ChangePasswordCtrl: any;
106
+ layoutFormGroup: any;
107
+ FilterSettings: any;
108
+ TextFieldCtrl: any;
109
+ QuickFilterPipelines: any;
110
+ textWithIcon: any;
111
+ isElementContentOverflowing: any;
112
+ labeledCheckboxView: any;
113
+ toolbarView: any;
114
+ uiComponents: {
115
+ alert: any;
116
+ };
117
+ PlaceInQueryHelpers: any;
118
+ isApiV2: () => boolean;
119
+ ProgressBarCtrl: any;
120
+ ProgressBarStateController: any;
121
+ getChartElByCode: (code: string) => Element;
122
+ linkIcon: any;
123
+ ApiJSActionsPipeline: any;
124
+ DatePickerInput: any;
125
+ OneToManyGridCtrl: any;
126
+ /**
127
+ * Преобразует дату в строку формата ISO (YYYY-MM-DD)
128
+ * @param date Объект даты
129
+ * @returns Строка в формате YYYY-MM-DD
130
+ */
131
+ toISO8601DateString: any;
132
+ /**
133
+ * Преобразует дату в строку формата ISO с временем (YYYY-MM-DDThh:mm:ssZ)
134
+ * @param date Объект даты
135
+ * @param dateOnly Если true, возвращает только дату без времени
136
+ * @returns Строка в формате ISO
137
+ */
138
+ toISOString: any;
139
+ Skeleton: any;
140
+ PipelineSync: any;
141
+ compareDates: any;
142
+ isEmpty: any;
143
+ dateFromUiDateString: any;
144
+ toUiDateString: any;
145
+ parseRowsToV1: any;
146
+ DatePicker: any;
147
+ getDateForCalendarControl: any;
148
+ locale: any;
149
+ datePickerViewModes: any;
150
+ formatByMask: any;
151
+ classes: {
152
+ borderRadiusNormal: string;
153
+ borderRadiusSmall: string;
154
+ borderRadiusLarge: string;
155
+ borderRadiusXLarge: string;
156
+ SCROLLBAR_INVISIBLE_CLASSNAME: string;
157
+ SCROLLBAR_VANISHED_CLASSNAME: string;
158
+ SCROLLBAR_APPEARANCE_COMPENSATION: string;
159
+ DATEPICKER_CLASS: string;
160
+ };
161
+ tabsView: {
162
+ wrapper: (children: ViewElement) => _mithril.MithrilVirtualElement;
163
+ linksWrapper: (children: ViewElement) => _mithril.MithrilVirtualElement;
164
+ linkItem: ({ isActive, onclick, index, icon, title }: {
165
+ isActive: boolean;
166
+ onclick: () => void;
167
+ index: number;
168
+ icon?: string;
169
+ title: string;
170
+ }) => _mithril.MithrilVirtualElement;
171
+ contentWrapper: (children: ViewElement) => _mithril.MithrilVirtualElement;
172
+ };
173
+ /**
174
+ * Функция для рендера React компонента в mithril.
175
+ *
176
+ * @param Component React компонент
177
+ * @param props props для компонента
178
+ * @param options опции для обертки. Например, className
179
+ */
180
+ reactComponentWrap<P>(Component: React.FC<P>, props: P, options?: {
181
+ className?: ClassNamesArg;
182
+ }): ViewElement;
183
+ /**
184
+ * Функция для рендера компонента UI Kit в mithril.
185
+ *
186
+ * @param Component React компонент из UI Kit
187
+ * @param props props для компонента
188
+ */
189
+ uiKitWrap<P>(Component: React.FC<P>, props: P): ViewElement;
190
+ }
191
+ export interface ModulesLegacyFacade {
192
+ audit?: {
193
+ PrepareAuditRecords: any;
194
+ };
195
+ pbi?: {
196
+ PbiFrameCtrl: any;
197
+ };
198
+ etl?: {
199
+ FormValueManager: any;
200
+ EtlPanel: any;
201
+ };
202
+ dm?: {
203
+ MergeHelper: any;
204
+ };
205
+ mapping?: {
206
+ MappingListExtender: any;
207
+ MappingManager: any;
208
+ MappingManagerInstance: any;
209
+ };
210
+ admin?: {
211
+ DesignerHelper: any;
212
+ };
213
+ binding?: {
214
+ UnbindingForm: any;
215
+ };
216
+ status?: {
217
+ StatusButton: any;
218
+ StatusManager: any;
219
+ statusSchema: any;
220
+ };
221
+ help?: {
222
+ HelpManagerInstance: any;
223
+ };
224
+ job?: {
225
+ JobHelper: any;
226
+ };
227
+ ExportApiAccessor?: any;
228
+ password?: {
229
+ buttons: {
230
+ changePassword: (args: {
231
+ mdtPrincipalRecord: MdtRecord;
232
+ }) => ButtonFacade;
233
+ sendInvitation: (args: {
234
+ mdtPrincipalRecord: MdtRecord;
235
+ }) => ButtonFacade;
236
+ };
237
+ };
238
+ }
@@ -0,0 +1,87 @@
1
+ /// <reference types="../../../../mithril" />
2
+ import { E2eServiceType } from "mdtServices/e2e/e2eServiceType";
3
+ import { FilterConstructor } from "../../../services/IFilter";
4
+ import { IFieldControlFacadeContstructor } from "./Form/IFieldControlFacade";
5
+ import { IFieldControlManagerFacade } from "./Form/IFieldControlManagerFacade";
6
+ import { IFormControlFacadeContstructor } from "./Form/IFormControlFacade";
7
+ import { IFormDashboard } from "./formDashboard/IFormDashboard";
8
+ import { IFormServiceFacade } from "./Form/IFormFacade";
9
+ import { IAppFacade } from "./IAppFacade";
10
+ import { IAuthFacade } from "./IAuthFacade";
11
+ import { ILegacyFacade } from "./ILegacyFacade";
12
+ import { IModuleRegistryFacade } from "./IModuleRegistryFacade";
13
+ import { InternalModulesFacade } from "./internalModules/modulesFacadeTypes";
14
+ import { IPageFacade } from "./IPageFacade";
15
+ import { IListControlFacadeContstructor } from "./List/IListControlFacade";
16
+ import { IListServiceFacade } from "./List/IListServiceFacade";
17
+ import { IRecordManagerFacade } from "./record/IRecordManagerFacade";
18
+ import { ISchemaFacade } from "./schema/ISchemaFacade";
19
+ import { CommandManagerFacade } from "./services/CommandManagerFacade";
20
+ import { INavigationFacade } from "./services/INavigationFacade";
21
+ import { ISecurityFacade } from "./services/ISecurityFacade";
22
+ import { IApiFacade } from "./utils/IApiFacade";
23
+ import { ImUtilsFacade } from "./utils/ImUtilsFacade";
24
+ import { IUiComponentsFacade } from "./utils/IUiComponentsFacade";
25
+ import { IUiFacade } from "./utils/IUiFacade";
26
+ import { IUtilsFacade } from "./utils/IUtilsFacade";
27
+ import { ReportDashboard } from "mdtScripts/views/page/charts/reportDashboard";
28
+ import { UiKitFacade } from "../../../ui-kit/UiKitFacade";
29
+ import { IUiKitUtilsFacade } from "../../../ui-kit/IUiKitUtilsFacade";
30
+ export declare type ModulePackageInfo = {
31
+ version: string;
32
+ name?: string;
33
+ };
34
+ export declare type ModuleCallback = () => Promise<void> | void;
35
+ export interface IMDTFacade {
36
+ /** Mithril библиотека */
37
+ m: _mithril.MithrilStatic;
38
+ /** Управление навигацией */
39
+ Navigation: INavigationFacade;
40
+ /** Управление пользователем и безопасностью */
41
+ SecurityManager: ISecurityFacade;
42
+ /** Управление списками */
43
+ ListService: IListServiceFacade;
44
+ /** Компонент списка */
45
+ List: IListControlFacadeContstructor;
46
+ /** Управление формами */
47
+ FormService: IFormServiceFacade;
48
+ /** Компонент формы */
49
+ Form: IFormControlFacadeContstructor;
50
+ /** Управление контролами */
51
+ ControlManager: IFieldControlManagerFacade;
52
+ /** Компонент контрола */
53
+ FieldControl: IFieldControlFacadeContstructor;
54
+ /** Управление дашбордом */
55
+ FormDashboard: IFormDashboard;
56
+ /** Утилиты для Mithril */
57
+ mUtils: ImUtilsFacade;
58
+ /** Утилиты */
59
+ Utils: IUtilsFacade;
60
+ /** Управление UI компонентами */
61
+ Ui: IUiFacade;
62
+ UiComponents: IUiComponentsFacade;
63
+ /** Управление запросами к API */
64
+ Api: IApiFacade;
65
+ /** Компонент фильтра */
66
+ Filter: FilterConstructor;
67
+ Schema: ISchemaFacade;
68
+ RecordManager: IRecordManagerFacade;
69
+ ModuleRegistry: IModuleRegistryFacade;
70
+ /** Управление способами авторизации */
71
+ Auth: IAuthFacade;
72
+ /** Управление страницей */
73
+ Page: IPageFacade;
74
+ /** Управление приложением */
75
+ App: IAppFacade;
76
+ /** Управление командами */
77
+ CommandManager: CommandManagerFacade;
78
+ /** @deprecated */
79
+ legacy: ILegacyFacade;
80
+ modules: InternalModulesFacade;
81
+ e2e: E2eServiceType;
82
+ ReportDashboard: ReportDashboard;
83
+ /** Зарегистрировать модуль */
84
+ registerModule(callback: ModuleCallback, moduleData: ModulePackageInfo): void;
85
+ UiKit: UiKitFacade;
86
+ UiKitUtils: IUiKitUtilsFacade;
87
+ }
@@ -0,0 +1,5 @@
1
+ import { ModuleData } from "../../ModuleData";
2
+ export interface IModuleRegistryFacade {
3
+ /** Получить информацию о модуле */
4
+ get(code: string): ModuleData;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { PageZoneCodes } from "../../../views/page/PageZoneTypes";
2
+ import { MithrilControl } from "../../../helpers/types";
3
+ export interface IPageFacade {
4
+ getZone(zone: typeof PageZoneCodes[number]): {
5
+ addControl: (control: MithrilControl) => void;
6
+ };
7
+ }
@@ -0,0 +1,7 @@
1
+ import { FieldPath } from "../../../../../helpers/types";
2
+ import { IFieldFacade } from "../../schema/IFieldFacade";
3
+ export declare type IColumnFacade = IFieldColumnFacade;
4
+ export interface IFieldColumnFacade {
5
+ fieldPath: FieldPath;
6
+ fields: IFieldFacade[];
7
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewElement } from "../../../../helpers/types";
2
+ import { ILayoutColumnBase, LayoutColumnValued } from "../../../../views/list/ListViewOptions";
3
+ import { IListComponentFacade } from "./IListComponentFacade";
4
+ export interface IListCellFacade extends IListComponentFacade {
5
+ col: ILayoutColumnBase & LayoutColumnValued;
6
+ value(): any;
7
+ setContent(content: ViewElement[]): void;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { IListControlFacade } from "./IListControlFacade";
2
+ export interface IListComponentFacade {
3
+ record: any;
4
+ list: IListControlFacade;
5
+ addClass(className: string): void;
6
+ hasClass(className: string): boolean;
7
+ removeClass(className: string): void;
8
+ addStyle(prop: string, value: string): void;
9
+ config(config: Function, before?: boolean): void;
10
+ }
@@ -0,0 +1,88 @@
1
+ import { FilterSetterOptions, IFilter } from "../../../../services/IFilter";
2
+ import { ButtonFacade } from "../Form/IFormFacade";
3
+ import { ParentCtrl } from "../utils/IUiFacade";
4
+ import { IListRowFacade } from "./IListRowFacade";
5
+ import { IListCellFacade } from "./IListCellFacade";
6
+ import { IObjectFacade } from "../schema/IObjectFacade";
7
+ import { ListPageOptions } from "../../../../views/list/schema/ListPageOptions.schema";
8
+ import { FieldCode, FieldPath, ViewElement } from "../../../../helpers/types";
9
+ import { ILayoutColumnBase } from "../../../../views/list/ListViewOptions";
10
+ import { ClassNamesArg } from "mdtScripts/helpers/utils/classNames";
11
+ import { IColumnFacade } from "./Column/IColumnFacade";
12
+ import { RecordValueFacade } from "../record/IRecordFacade";
13
+ export interface IListControlFacadeContstructor {
14
+ new (listCtrl: any): IListControlFacade;
15
+ }
16
+ export interface IListControlFacade extends ParentCtrl {
17
+ /** Получить оригинальный контрол списка */
18
+ getListCtrl(): any;
19
+ /** Получить уникальный код списка */
20
+ getCode(): string | undefined;
21
+ /** Получить объект списка */
22
+ getObject(): IObjectFacade;
23
+ /** Получить выделенные строки списка */
24
+ getSelectedRows(): any[];
25
+ /** Добавить команду на список */
26
+ addCommand(command: ButtonFacade, extend?: boolean): void;
27
+ /** Установить фильтр на список */
28
+ setFilter(filter: IFilter | null, options?: FilterSetterOptions, key?: string): void;
29
+ /** Подписаться на событие обновления фильтра */
30
+ onFilterUpdated(callback: (data: FilterUpdatedData) => void): void;
31
+ /** Обновить данные списка */
32
+ refresh(): PromiseLike<unknown>;
33
+ /** Изменить отображение строк списка */
34
+ addTransformerForRow(callback: (row: IListRowFacade) => void): void;
35
+ /** Изменить отображение ячеек списка */
36
+ addTransformerForCell(callback: (cell: IListCellFacade) => void): void;
37
+ /** Установить опции списка */
38
+ setOptions(options: ListPageOptions): void;
39
+ /** Установить расширения списка */
40
+ setExtOptions(extOptions: any): void;
41
+ /** Изменить свойства существующей кнопки */
42
+ updateCommand(findCondition: (button: ButtonFacade) => boolean, command: Partial<ButtonFacade>): void;
43
+ /** Открыть форму добавления записи */
44
+ openNewRecordForm(): void;
45
+ /** Удалить из списка выделенные записи */
46
+ removeSelectedRows(): void;
47
+ /** Открыть конструктор списка */
48
+ openDesigner(): Promise<void>;
49
+ /** Получить виртуальный элемент списка */
50
+ getViewElement(): ViewElement;
51
+ /** Изменить значение отображаемое в колонке */
52
+ setColumnValueHandler(codeOrPath: FieldCode | FieldPath, handler: (value: any, ctx: IColumnValueHandlerCtx) => ViewElement): any;
53
+ addColumn<Control>(column: ColumnOptions<Control>): void;
54
+ /**
55
+ * Вызывается при отображении элемента списка
56
+ */
57
+ onViewInit(callback: (el: HTMLElement) => void): void;
58
+ /**
59
+ * Вызывается при уничтожении элемента списка
60
+ */
61
+ onViewDestroy(callback: () => void): void;
62
+ }
63
+ export interface ColumnOptions<Control = any> {
64
+ control?: Control;
65
+ headerView: (control: Control) => ViewElement;
66
+ headerStyle?: (control: Control) => ClassNamesArg;
67
+ cellView: (ctx: {
68
+ row: RecordValueFacade;
69
+ }, control: Control) => ViewElement;
70
+ cellStyle?: (ctx: {
71
+ row: RecordValueFacade;
72
+ }, control: Control) => ClassNamesArg;
73
+ position?: (columns: IColumnFacade[]) => number;
74
+ }
75
+ export interface IColumnValueHandlerCtx {
76
+ row: RecordValueFacade;
77
+ col: ILayoutColumnBase;
78
+ idx?: number;
79
+ }
80
+ export interface FilterUpdatedData {
81
+ /** Ключ фильтра */
82
+ key: string;
83
+ /**
84
+ * Объект фильтра
85
+ * Если фильтр удаляется, filter будет undefined
86
+ */
87
+ filter?: IFilter;
88
+ }
@@ -0,0 +1,2 @@
1
+ import { IListComponentFacade } from "./IListComponentFacade";
2
+ export declare type IListRowFacade = IListComponentFacade;