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,24 @@
1
+ import { ViewElement } from "../../../helpers/types";
2
+ import { PanelToolbarOptions } from "../panelToolbar/panelToolbarOptions";
3
+ import { PanelTitleOptions } from "../panelTitle/panelTitleOptions";
4
+ export interface ResizablePanelOptions {
5
+ content: ResizablePanelContent;
6
+ onCreated?: (el: HTMLElement, onUnload: (handler: () => void) => void) => void;
7
+ }
8
+ export declare type OnPanelResize = () => void;
9
+ export interface ResizablePanelContent {
10
+ view: () => ViewElement;
11
+ onResize?: OnPanelResize;
12
+ title?: PanelTitleOptions;
13
+ toolbar?: PanelToolbarOptions;
14
+ topZone?: PanelTopZone;
15
+ className?: string;
16
+ focusOptions?: ResizablePanelFocusOptions;
17
+ }
18
+ export interface PanelTopZone {
19
+ view: () => ViewElement;
20
+ }
21
+ export declare type ResizablePanelOnFocus = (focusedByUser: boolean) => void;
22
+ export interface ResizablePanelFocusOptions {
23
+ onFocus?: ResizablePanelOnFocus;
24
+ }
@@ -0,0 +1,22 @@
1
+ import { MithrilVirtualElementKey } from "../../helpers/types";
2
+ import { ResizablePanelContent } from "./resizablePanel/resizablePanelOptions";
3
+ export declare type PanelsDirection = "row" | "column";
4
+ export declare type PanelSizeFactor = number;
5
+ export interface PanelWithSizeFactor {
6
+ /**
7
+ * Размер панели в долях. Все панели по-умолчанию имеют размер 1. Если, например, задать 2, то панель будет больше остальных в два раза.
8
+ * @default 1
9
+ */
10
+ size?: PanelSizeFactor;
11
+ }
12
+ export interface ResizablePanelsItemContent extends ResizablePanelContent, PanelWithSizeFactor {
13
+ }
14
+ export interface ResizablePanelsContentItem extends ResizablePanelsItemContent {
15
+ key: MithrilVirtualElementKey;
16
+ }
17
+ export interface ResizablePanelsOptions {
18
+ direction: PanelsDirection;
19
+ content: ResizablePanelsContentItem[];
20
+ resizerSize?: number;
21
+ highlightFocusedPanel?: boolean;
22
+ }
@@ -0,0 +1,16 @@
1
+ /// <reference types="../../../../mithril" />
2
+ import { ViewElement } from "mdtScripts/helpers/types";
3
+ import { IconOptions } from "../icon/iconOptions";
4
+ export interface TextWithIconOptions {
5
+ icon?: BeforeTextIconOptions;
6
+ textContent: TextContentOptions;
7
+ }
8
+ export interface BeforeTextIconOptions {
9
+ name: string;
10
+ options?: IconOptions;
11
+ }
12
+ export interface TextContentOptions {
13
+ text: ViewElement | string[];
14
+ className?: string;
15
+ attrs?: _mithril.MithrilAttributes;
16
+ }
@@ -0,0 +1,40 @@
1
+ import { Valued, ViewElement } from "../../helpers/types";
2
+ import { PanelTitleOptions } from "../resizablePanels/panelTitle/panelTitleOptions";
3
+ import { PanelSizeFactor, ResizablePanelsItemContent } from "../resizablePanels/resizablePanelsOptions";
4
+ export interface ToggleablePanel {
5
+ title: PanelTitleOptions;
6
+ content: ResizablePanelsItemContent;
7
+ isShown: boolean;
8
+ toggleButtonOptions?: ToggleablePanelToggleButtonOptions;
9
+ }
10
+ interface ToggleablePanelToggleButtonOptions {
11
+ title?: Valued<string>;
12
+ }
13
+ export interface ToggleablePanelsToolbarOptions {
14
+ className?: string;
15
+ leftZone?: ToolbarZone;
16
+ rightZone?: ToolbarZone;
17
+ }
18
+ interface ToolbarZone {
19
+ view: () => ViewElement;
20
+ }
21
+ export declare type ToggleablePanelsRowDirection = "vertical" | "horizontal";
22
+ export interface ToggleableRotatablePanelsOptions {
23
+ /**
24
+ * @default "horizontal"
25
+ */
26
+ rowDirection?: ToggleablePanelsRowDirection;
27
+ }
28
+ export interface ToggleablePanelsOptions extends ToggleableRotatablePanelsOptions {
29
+ highlightFocusedPanel?: boolean;
30
+ panels: PanelsGrid<ToggleablePanel>;
31
+ toolbar?: ToggleablePanelsToolbarOptions;
32
+ resizerSize?: number;
33
+ }
34
+ export interface PanelsGrid<T> {
35
+ rows: {
36
+ cols: T[];
37
+ size?: PanelSizeFactor;
38
+ }[];
39
+ }
40
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ActivationListAdapterOptions {
2
+ /**
3
+ * Отображать деактивированные записи
4
+ */
5
+ showDeactivatedCells?: boolean;
6
+ }
@@ -0,0 +1,21 @@
1
+ import { FieldPath } from "mdtScripts/helpers/types";
2
+ import { BaseQuery } from "mdtServices/api/BaseQuery";
3
+ import { IFilter } from "mdtServices/IFilter";
4
+ /**
5
+ * @defaultSnippets [[{ "label": "Настройка по умолчанию", "body": { "query": { "filter": { "op": "eq", "p1": "$1", "p2": "$2" } }}}]
6
+ */
7
+ export interface ToolbarAutopickOptions {
8
+ query: {
9
+ filter: IFilter;
10
+ };
11
+ }
12
+ export interface ToolbarFieldFilterListExtenderOptions {
13
+ /** Путь до поля по которому будет фильтроваться список */
14
+ fieldPath: FieldPath;
15
+ /** Наименование кнопки в тулбаре */
16
+ title?: string;
17
+ /** Дополнительные настройки для запроса значений фильтра */
18
+ query?: Omit<BaseQuery, "select">;
19
+ /** Настройки автоматического выбора фильтра по заданному условию */
20
+ autopick?: ToolbarAutopickOptions;
21
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PeriodBoundaryIcon {
2
+ BEGIN = "minus",
3
+ END = "plus"
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface FetchResult<R = any, I = any> {
2
+ records: R[];
3
+ count: number;
4
+ items?: I[];
5
+ }
@@ -0,0 +1,2 @@
1
+ export declare type UiType = "success" | "danger" | "warning" | "info" | "primary" | "fatal";
2
+ export declare type MessageUiType = Capitalize<UiType>;
@@ -0,0 +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 declare type MdtDateStringFormat = string;
23
+ export declare type ISO8601DateString = string;
@@ -0,0 +1 @@
1
+ export declare function deleteFromArray<T = any>(array: T[], item: T): void;
@@ -0,0 +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
+ }
@@ -0,0 +1,4 @@
1
+ export declare const fireEvent: FireEventType;
2
+ declare type FireEventType = (...args: any[]) => any;
3
+ export declare function addDisposableEvent<T extends FireEventType = FireEventType>(event: Array<FireEventType>, callback: T): void;
4
+ export {};
@@ -0,0 +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
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewElement } from "./types";
2
+ export declare type FormattedTextType = "text" | "markdown" | "view";
3
+ export declare 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;
@@ -0,0 +1,8 @@
1
+ declare 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 {};
@@ -0,0 +1,20 @@
1
+ import { AnyError } from "../types";
2
+ declare type Next<D> = (args?: D) => void;
3
+ declare 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
+ declare 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 {};
@@ -0,0 +1,16 @@
1
+ declare 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 {};
@@ -0,0 +1,84 @@
1
+ /// <reference types="../../../../mithril" />
2
+ import { UiType } from "./IUi";
3
+ export interface AnyObject {
4
+ [key: string]: any;
5
+ }
6
+ export declare type MithrilStyleAttribute = {
7
+ width?: CSSSizeUnit;
8
+ } & AnyObject;
9
+ export declare type MithrilContext<T = Record<string, unknown>> = T;
10
+ declare type CSSSizeUnit = string;
11
+ export declare type NotifierType = "log" | "error" | "warn" | "info" | "success";
12
+ export declare type LabelType = "normal" | "heading" | "hidden" | "inline" | "embedded";
13
+ export interface NotifierOptions {
14
+ type?: NotifierType;
15
+ msg?: MessageText;
16
+ icon?: string;
17
+ }
18
+ export interface Notifier {
19
+ notify(title: MessageText, options?: NotifierOptions): void;
20
+ }
21
+ export interface NotifierErrorOptions extends NotifierOptions {
22
+ error?: Error;
23
+ }
24
+ export interface ErrorNotifier extends Notifier {
25
+ notify(title: MessageText, options?: NotifierErrorOptions): void;
26
+ }
27
+ export declare type ViewElement = _mithril.MithrilVirtualElement | _mithril.MithrilVirtualElement[] | string;
28
+ export declare type CommandEvent = Event | _mithril.MithrilEvent;
29
+ export declare type InputChangeEvent = Event | _mithril.MithrilEvent;
30
+ export declare type CSSClassName = string;
31
+ export declare type CSSPositionUnit = string;
32
+ export declare type MithrilControl = ViewControl | ContentControl;
33
+ export interface ViewControl {
34
+ $view(): ViewElement | string;
35
+ [key: string]: any;
36
+ }
37
+ export declare type ViewControlConstructor<A extends Array<any> = any> = new (...A: A) => ViewControl;
38
+ export interface ContentControl<C = any> {
39
+ content: C;
40
+ [key: string]: any;
41
+ }
42
+ export declare type Markdown = string;
43
+ export declare type MessageText = Markdown | string;
44
+ export declare type ColorStyle = UiType | "default";
45
+ export declare type ButtonStyle = ColorStyle;
46
+ export declare type ObjectCode = string;
47
+ export declare type ObjectId = number;
48
+ export declare type ObjectIdOrCode = ObjectCode | ObjectId;
49
+ export declare type ObjectTitle = string;
50
+ export declare type ObjectSchemaName = string;
51
+ export declare type ObjectPhysicalName = string;
52
+ export declare type ModuleId = number;
53
+ export declare type ModuleCode = string;
54
+ export declare type Valued<T> = T | (() => T);
55
+ export declare type Timeout = ReturnType<typeof setTimeout>;
56
+ export declare type MithrilAttributes = _mithril.MithrilAttributes & {
57
+ [name: string]: any;
58
+ };
59
+ export declare type MithrilVirtualElementKey = string | number;
60
+ export declare type HTMLAnchorTarget = "_blank" | "_self" | "_parent" | "_top" | "framename";
61
+ export declare type HTMLString = string;
62
+ export declare type KeyboardKeyCode = string;
63
+ export declare type AnyError = any;
64
+ export declare type FieldPath = string;
65
+ export declare type FieldId = number;
66
+ export declare type FieldCode = string;
67
+ export declare type FieldKind = "dfk" | "o2m" | "o2o" | "hist" | "dfk-list";
68
+ export declare type LanguageCode = "ru" | "en";
69
+ export declare type LanguageId = number;
70
+ export declare type GConstructor<T = Record<string, unknown>, A extends Array<any> = any> = new (...args: A) => T;
71
+ export declare type URLString = string;
72
+ export declare type JSONString = string;
73
+ export declare type JavaScriptCodeContent = string;
74
+ export declare type DateString = string;
75
+ export declare type RequestMethod = "POST" | "GET" | string;
76
+ export declare enum BrandIcon {
77
+ primary = 0,
78
+ fatal = "skull",
79
+ danger = "hexagon-xmark",
80
+ warning = "triangle-exclamation",
81
+ success = "circle-check",
82
+ info = "circle-info"
83
+ }
84
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="../../../../mithril" />
2
+ import { KeyboardKeyCode } from "../../types";
3
+ import { ComponentConfigParams } from "./modificatorsTypes";
4
+ export declare function doesKeyPressed(keyCode: KeyboardKeyCode | KeyboardKeyCode[], e: KeyboardEvent): boolean;
5
+ export declare function getFocusableComponentAttrs(): _mithril.MithrilAttributes;
6
+ declare type KeyboardAction = (e: KeyboardEvent) => void;
7
+ export interface KeyboardActions {
8
+ primary?: KeyboardAction;
9
+ secondary?: KeyboardAction;
10
+ clear?: KeyboardAction;
11
+ cancel?: KeyboardAction;
12
+ }
13
+ export declare function setKeyboardActions(actions: KeyboardActions, configParams: ComponentConfigParams): void;
14
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface ComponentConfigParams {
2
+ el: HTMLElement;
3
+ inited: boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare type KeySymbolCode = "Cmd" | "Option" | "Alt" | "Shift" | "Ctrl" | "Enter" | "Left" | "Right" | "Up" | "Down";
2
+ export declare function getKeySymbol(key: KeySymbolCode): string;
@@ -0,0 +1,23 @@
1
+ /** KeyboardEvent.code */
2
+ export declare type KeyboardKeyCode = string;
3
+ /** KeyboardEvent.key */
4
+ export declare type KeyboardKeyValue = string;
5
+ /** KeyboardEvent.key, приведенный к числу */
6
+ export declare type KeyboardNumberKeyValue = number;
7
+ interface EventModifierKeys {
8
+ shift: boolean;
9
+ meta: boolean;
10
+ alt: boolean;
11
+ ctrl: boolean;
12
+ }
13
+ export declare 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 {};
@@ -0,0 +1 @@
1
+ export declare function osByUserAgent(userAgent: string): string;
@@ -0,0 +1,20 @@
1
+ import { CSSClassName } from "../types";
2
+ declare 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 declare type ClassNamesArg = ClassNamesSimpleArg | ClassNamesSimpleArg[];
18
+ export declare function classNames(...args: ClassNamesArg[]): string;
19
+ export declare function mClassNames(...args: ClassNamesArg[]): string;
20
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface KeyStorage<T> {
2
+ get(): T;
3
+ set(value: T): void;
4
+ clear(): void;
5
+ }
6
+ export declare type KeyStorageInvalidateKey = number | string;
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -0,0 +1,3 @@
1
+ import { ControlSize } from "../../views/controls/Control";
2
+ export declare type ComponentSize = "small" | "normal" | "large";
3
+ export declare function stringifyControlSize(size: ControlSize): ComponentSize;
@@ -0,0 +1,18 @@
1
+ declare type ValuedParams<F> = F extends (...args: infer A) => unknown ? A : never;
2
+ declare type ValuedExtract<F> = F extends (...args: any[]) => infer R ? R : F;
3
+ /**
4
+ * @example
5
+ const o = {
6
+ a1: getValued(123), // number
7
+ a2: getValued(() => 123), // number
8
+ a3: getValued(() => "str"), // string
9
+ a4: getValued((s: string) => `str:${s}`, "one"), // string
10
+ a5: getValued((s: string, n: number) => `str:${s}${n.toString()}`, "one", 123), // string
11
+ a6: getValued((s: string, n: string) => ({ name: s, value: n }), "one", "v"), // { name: string; value: string; }
12
+ a7: getValued((s: string, n: string) => ({ name: s, value: n }), "one", 123), // Error
13
+ a8: getValued("str", "one", 123), // Error
14
+ a9: getValued((s?: string, n?: string) => ({ name: s, value: n }), "one") // { name: string; value: string; }
15
+ };
16
+ */
17
+ export declare function getValued<F>(main: F, ...args: ValuedParams<F>): ValuedExtract<F>;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="../../../../mithril" />
2
+ import { MithrilControl } from "../types";
3
+ export interface IZone {
4
+ remove(content: MithrilControl): void;
5
+ push(content: MithrilControl): void;
6
+ render(): _mithril.MithrilVirtualElement[];
7
+ }
@@ -0,0 +1,40 @@
1
+ import { IFilterGroup } from "../services/IFilter";
2
+ import { MdtField } from "../common/MdtField";
3
+ import { MdtObject } from "../common/MdtObject";
4
+ import { Record } from "../common/Record";
5
+ export declare enum PermissionLevel {
6
+ None = 0,
7
+ Read = 1,
8
+ Write = 2,
9
+ Delete = 4,
10
+ Add = 8,
11
+ Execute = 16,
12
+ Filter = 32,
13
+ All = 255
14
+ }
15
+ /** Example: "Read, Write, Delete, Add" */
16
+ export declare type PermissionLevelString = string;
17
+ export interface PrincipalPermission extends Record {
18
+ ID_Permission?: number;
19
+ ID_Permission$?: Permission;
20
+ ID_Object?: number;
21
+ ID_Object$?: MdtObject;
22
+ ID_Field?: number;
23
+ ID_Field$?: MdtField;
24
+ LevelGrant?: PermissionLevel;
25
+ LevelDeny?: PermissionLevel;
26
+ Filter?: IFilterGroup;
27
+ }
28
+ export interface Permission extends Record {
29
+ id?: number;
30
+ Code: string;
31
+ LevelMask: PermissionLevel;
32
+ ID_Parent: number;
33
+ FlagObject: boolean;
34
+ FlagField: boolean;
35
+ }
36
+ export declare class PrincipalTypes {
37
+ static User: string;
38
+ static Group: string;
39
+ static Role: string;
40
+ }
@@ -0,0 +1,19 @@
1
+ import { ApiV1 } from "mdtServices/api/ApiAccessor/apiV1Types";
2
+ export interface User {
3
+ $id: number;
4
+ id: any;
5
+ permissions: ApiV1.Response.User.Permissions;
6
+ login: string;
7
+ fullName: string;
8
+ email?: string;
9
+ identityName: string;
10
+ isAdmin: boolean;
11
+ isAnonymous: boolean;
12
+ roles: string[];
13
+ languageId: number;
14
+ languageCode: string;
15
+ isImpersonated: boolean;
16
+ }
17
+ export declare type UserPermissionType = ApiV1.Response.User.UserPermissionType;
18
+ export declare type ObjectPermission = ApiV1.Response.User.ObjectPermission;
19
+ export declare type CommonPermissionData = ApiV1.Response.User.CommonPermissonData;
@@ -0,0 +1,6 @@
1
+ import { Hotkey } from "./commands/CommandManager";
2
+ export declare class HotkeyManager {
3
+ static keyJoinWith: string;
4
+ static eventToString(e: any): string;
5
+ static modifyHotkeys(hotkeys: Hotkey[]): Hotkey[];
6
+ }