mdt-client 31.3.45 → 31.3.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/index.d.ts +10 -11
  2. package/dist/index.js +16 -16
  3. package/package.json +38 -38
  4. package/readme.md +15 -15
  5. package/types/common/Datasource.d.ts +9 -9
  6. package/types/common/Field.d.ts +51 -51
  7. package/types/common/FieldSettings.schema.d.ts +32 -32
  8. package/types/common/MdtField.d.ts +9 -9
  9. package/types/common/MdtObject.d.ts +7 -7
  10. package/types/common/Record.d.ts +27 -27
  11. package/types/common/Table.d.ts +66 -66
  12. package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +14 -14
  13. package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
  14. package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
  15. package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
  16. package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
  17. package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
  18. package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
  19. package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
  20. package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
  21. package/types/common/list/group/groupTypes.d.ts +177 -177
  22. package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
  23. package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
  24. package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
  25. package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
  26. package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
  27. package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
  28. package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
  29. package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
  30. package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
  31. package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
  32. package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
  33. package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
  34. package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
  35. package/types/components/baseFormControls/input/inputOptions.d.ts +30 -31
  36. package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
  37. package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
  38. package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
  39. package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
  40. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
  41. package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
  42. package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
  43. package/types/components/form/header/types.d.ts +14 -14
  44. package/types/components/form/label/labelOptions.d.ts +23 -23
  45. package/types/components/icon/iconOptions.d.ts +23 -24
  46. package/types/components/iconButton/iconButtonOptions.d.ts +9 -10
  47. package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
  48. package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
  49. package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
  50. package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
  51. package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
  52. package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
  53. package/types/components/textWithIcon/textWithIconOptions.d.ts +16 -17
  54. package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
  55. package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
  56. package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
  57. package/types/data/periods/helpers/types.d.ts +4 -4
  58. package/types/datasources/FetchResult.d.ts +5 -5
  59. package/types/helpers/IUi.d.ts +2 -2
  60. package/types/helpers/dateUtils.d.ts +23 -23
  61. package/types/helpers/deleteFromArray.d.ts +1 -1
  62. package/types/helpers/events/EventEmitter.d.ts +12 -12
  63. package/types/helpers/fireEvent.d.ts +4 -4
  64. package/types/helpers/formatOptions.d.ts +24 -24
  65. package/types/helpers/formattedText.d.ts +8 -8
  66. package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
  67. package/types/helpers/pipeline/Pipeline.d.ts +20 -20
  68. package/types/helpers/redraw.d.ts +16 -16
  69. package/types/helpers/types.d.ts +84 -85
  70. package/types/helpers/ui/elementModificators/focusableComponent.d.ts +14 -15
  71. package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
  72. package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
  73. package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
  74. package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
  75. package/types/helpers/ui/toolbarItemTypes.d.ts +30 -30
  76. package/types/helpers/utils/classNames.d.ts +20 -20
  77. package/types/helpers/utils/duration/durationFormatTypes.d.ts +21 -21
  78. package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
  79. package/types/helpers/utils/memoization/memoize.d.ts +18 -18
  80. package/types/helpers/utils/object.d.ts +10 -10
  81. package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
  82. package/types/helpers/utils/valued/getValued.d.ts +18 -18
  83. package/types/helpers/zone/IZone.d.ts +7 -8
  84. package/types/security/PermissionLevel.d.ts +40 -40
  85. package/types/security/User.d.ts +20 -20
  86. package/types/services/HotkeyManager.d.ts +6 -6
  87. package/types/services/IFilter.d.ts +322 -322
  88. package/types/services/ModuleData.d.ts +9 -9
  89. package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
  90. package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
  91. package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
  92. package/types/services/api/ApiAccessor/job/jobApiTypes.d.ts +83 -83
  93. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
  94. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
  95. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
  96. package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
  97. package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
  98. package/types/services/api/ApiRequestOptions.d.ts +43 -43
  99. package/types/services/api/BaseQuery.d.ts +25 -25
  100. package/types/services/api/Query.d.ts +56 -56
  101. package/types/services/api/QuerySorting.d.ts +18 -18
  102. package/types/services/api/ServerResonseType.d.ts +2 -2
  103. package/types/services/commands/Command.d.ts +22 -22
  104. package/types/services/commands/CommandGroup.d.ts +15 -15
  105. package/types/services/commands/CommandManager.d.ts +77 -77
  106. package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
  107. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -38
  108. package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
  109. package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
  110. package/types/services/customModules/facades/Form/IFormFacade.d.ts +106 -106
  111. package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
  112. package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
  113. package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
  114. package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -240
  115. package/types/services/customModules/facades/IMdtFacade.d.ts +90 -91
  116. package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
  117. package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
  118. package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
  119. package/types/services/customModules/facades/List/IListCellFacade.d.ts +9 -9
  120. package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
  121. package/types/services/customModules/facades/List/IListControlFacade.d.ts +90 -90
  122. package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
  123. package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
  124. package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
  125. package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
  126. package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
  127. package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
  128. package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
  129. package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +59 -59
  130. package/types/services/customModules/facades/internalModules/jobFacade.d.ts +24 -24
  131. package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +16 -16
  132. package/types/services/customModules/facades/internalModules/statusFacade.d.ts +11 -11
  133. package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
  134. package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
  135. package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
  136. package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
  137. package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
  138. package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
  139. package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
  140. package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
  141. package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
  142. package/types/services/customModules/facades/services/INavigationFacade.d.ts +92 -92
  143. package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
  144. package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -4
  145. package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
  146. package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +190 -191
  147. package/types/services/customModules/facades/utils/IUiFacade.d.ts +83 -84
  148. package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
  149. package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +41 -42
  150. package/types/services/dropdown/IDropDownMenu.d.ts +40 -41
  151. package/types/services/e2e/e2eServiceType.d.ts +11 -11
  152. package/types/ui-kit/IUiKitUtilsFacade.d.ts +41 -42
  153. package/types/ui-kit/UiKitFacade.d.ts +124 -122
  154. package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
  155. package/types/views/controls/Control.d.ts +7 -7
  156. package/types/views/controls/panels/panelOptions.d.ts +15 -15
  157. package/types/views/form/controls/commonControl/ICommonControl.d.ts +28 -29
  158. package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
  159. package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
  160. package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
  161. package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
  162. package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
  163. package/types/views/form/formTypes.d.ts +5 -5
  164. package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
  165. package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
  166. package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
  167. package/types/views/list/ListViewOptions.d.ts +101 -102
  168. package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
  169. package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
  170. package/types/views/list/schema/ListPageOptions.schema.d.ts +150 -150
  171. package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
  172. package/types/views/page/PageZoneTypes.d.ts +1 -1
  173. package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
  174. package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
  175. package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
  176. package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
  177. package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
  178. package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
  179. package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
  180. package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
  181. package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
  182. package/types/_core/scripts/common/Datasource.d.ts +0 -9
  183. package/types/_core/scripts/common/Field.d.ts +0 -51
  184. package/types/_core/scripts/common/FieldSettings.schema.d.ts +0 -17
  185. package/types/_core/scripts/common/MdtField.d.ts +0 -9
  186. package/types/_core/scripts/common/MdtObject.d.ts +0 -7
  187. package/types/_core/scripts/common/Record.d.ts +0 -27
  188. package/types/_core/scripts/common/Table.d.ts +0 -66
  189. package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +0 -12
  190. package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +0 -2
  191. package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +0 -6
  192. package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +0 -1
  193. package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +0 -17
  194. package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +0 -7
  195. package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +0 -24
  196. package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +0 -40
  197. package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +0 -11
  198. package/types/_core/scripts/common/list/group/groupTypes.d.ts +0 -177
  199. package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +0 -48
  200. package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +0 -3
  201. package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +0 -6
  202. package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +0 -8
  203. package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +0 -25
  204. package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +0 -23
  205. package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +0 -29
  206. package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +0 -4
  207. package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +0 -18
  208. package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +0 -3
  209. package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +0 -22
  210. package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +0 -7
  211. package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +0 -17
  212. package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +0 -30
  213. package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +0 -2
  214. package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +0 -12
  215. package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +0 -7
  216. package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +0 -5
  217. package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +0 -19
  218. package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +0 -32
  219. package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +0 -13
  220. package/types/_core/scripts/components/form/header/types.d.ts +0 -14
  221. package/types/_core/scripts/components/form/label/labelOptions.d.ts +0 -22
  222. package/types/_core/scripts/components/icon/iconOptions.d.ts +0 -21
  223. package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +0 -9
  224. package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +0 -5
  225. package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +0 -16
  226. package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +0 -4
  227. package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +0 -24
  228. package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +0 -22
  229. package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +0 -16
  230. package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +0 -40
  231. package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +0 -6
  232. package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +0 -21
  233. package/types/_core/scripts/data/periods/helpers/types.d.ts +0 -4
  234. package/types/_core/scripts/datasources/FetchResult.d.ts +0 -5
  235. package/types/_core/scripts/helpers/IUi.d.ts +0 -2
  236. package/types/_core/scripts/helpers/dateUtils.d.ts +0 -23
  237. package/types/_core/scripts/helpers/deleteFromArray.d.ts +0 -1
  238. package/types/_core/scripts/helpers/events/EventEmitter.d.ts +0 -12
  239. package/types/_core/scripts/helpers/fireEvent.d.ts +0 -4
  240. package/types/_core/scripts/helpers/formatOptions.d.ts +0 -16
  241. package/types/_core/scripts/helpers/formattedText.d.ts +0 -8
  242. package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +0 -8
  243. package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +0 -20
  244. package/types/_core/scripts/helpers/redraw.d.ts +0 -16
  245. package/types/_core/scripts/helpers/types.d.ts +0 -84
  246. package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +0 -14
  247. package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +0 -4
  248. package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +0 -2
  249. package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +0 -23
  250. package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +0 -1
  251. package/types/_core/scripts/helpers/utils/classNames.d.ts +0 -20
  252. package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +0 -6
  253. package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +0 -18
  254. package/types/_core/scripts/helpers/utils/object.d.ts +0 -4
  255. package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +0 -3
  256. package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +0 -18
  257. package/types/_core/scripts/helpers/zone/IZone.d.ts +0 -7
  258. package/types/_core/scripts/security/PermissionLevel.d.ts +0 -40
  259. package/types/_core/scripts/security/User.d.ts +0 -19
  260. package/types/_core/scripts/services/HotkeyManager.d.ts +0 -6
  261. package/types/_core/scripts/services/IFilter.d.ts +0 -322
  262. package/types/_core/scripts/services/ModuleData.d.ts +0 -9
  263. package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +0 -266
  264. package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +0 -585
  265. package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +0 -42
  266. package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +0 -82
  267. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +0 -10
  268. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +0 -28
  269. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +0 -9
  270. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +0 -37
  271. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +0 -2
  272. package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +0 -43
  273. package/types/_core/scripts/services/api/BaseQuery.d.ts +0 -25
  274. package/types/_core/scripts/services/api/Query.d.ts +0 -56
  275. package/types/_core/scripts/services/api/QuerySorting.d.ts +0 -18
  276. package/types/_core/scripts/services/api/ServerResonseType.d.ts +0 -2
  277. package/types/_core/scripts/services/commands/Command.d.ts +0 -22
  278. package/types/_core/scripts/services/commands/CommandGroup.d.ts +0 -15
  279. package/types/_core/scripts/services/commands/CommandManager.d.ts +0 -77
  280. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +0 -26
  281. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +0 -36
  282. package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +0 -13
  283. package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +0 -133
  284. package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +0 -102
  285. package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +0 -12
  286. package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +0 -38
  287. package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +0 -9
  288. package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +0 -238
  289. package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +0 -87
  290. package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +0 -5
  291. package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +0 -7
  292. package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +0 -7
  293. package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +0 -8
  294. package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +0 -10
  295. package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +0 -88
  296. package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +0 -2
  297. package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +0 -96
  298. package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +0 -4
  299. package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +0 -9
  300. package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +0 -4
  301. package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +0 -20
  302. package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +0 -77
  303. package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +0 -53
  304. package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +0 -7
  305. package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +0 -12
  306. package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +0 -13
  307. package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +0 -13
  308. package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +0 -5
  309. package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +0 -14
  310. package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +0 -20
  311. package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +0 -24
  312. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +0 -23
  313. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +0 -8
  314. package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +0 -11
  315. package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +0 -13
  316. package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +0 -91
  317. package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +0 -13
  318. package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +0 -91
  319. package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +0 -185
  320. package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +0 -83
  321. package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +0 -224
  322. package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +0 -41
  323. package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +0 -40
  324. package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +0 -11
  325. package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +0 -21
  326. package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +0 -101
  327. package/types/_core/scripts/views/controls/Control.d.ts +0 -7
  328. package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +0 -15
  329. package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +0 -28
  330. package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +0 -6
  331. package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +0 -24
  332. package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +0 -70
  333. package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +0 -36
  334. package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +0 -21
  335. package/types/_core/scripts/views/form/formTypes.d.ts +0 -5
  336. package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +0 -22
  337. package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +0 -19
  338. package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +0 -5
  339. package/types/_core/scripts/views/list/ListViewOptions.d.ts +0 -99
  340. package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +0 -23
  341. package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +0 -123
  342. package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +0 -145
  343. package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +0 -53
  344. package/types/_core/scripts/views/page/PageZoneTypes.d.ts +0 -1
  345. package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +0 -759
  346. package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +0 -29
  347. package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +0 -31
  348. package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +0 -56
  349. package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +0 -9
  350. package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +0 -55
  351. package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +0 -3
  352. package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +0 -5
  353. package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +0 -13
  354. package/types/job/scripts/types.d.ts +0 -11
@@ -1,84 +1,83 @@
1
- /// <reference types="../../../../mithril" />
2
- /// <reference types="mithril" />
3
- import { MithrilControl } from "../../../../helpers/types";
4
- import { DropdownOptions } from "../../../dropdown/IDropDownMenu";
5
- import { ButtonFacade } from "../Form/IFormFacade";
6
- import { DropdownTargetContext, IDropdownMenu } from "../../../dropdown/IDropDownMenu";
7
- import { IModalFacade } from "../components/ModalFacade";
8
- import { UiType } from "../../../../helpers/IUi";
9
- import { IPanelOptions } from "mdtScripts/views/controls/panels/panelOptions";
10
- export type onModalResizeCallback = (data: IModalSizingState) => void;
11
- export interface IType<T> {
12
- new (...args: any[]): T;
13
- }
14
- export interface ParentCtrl {
15
- getViewControl(): MithrilControl;
16
- }
17
- export type NotificationType = "default" | "info" | "success" | "warning" | "danger";
18
- export type UiContainerContent = MithrilControl | ParentCtrl | string;
19
- export interface CustomNotification {
20
- /** Заголовок сообщения */
21
- title: string;
22
- /** Текст сообщения */
23
- text: string;
24
- /** Наименование иконки */
25
- icon?: string;
26
- /** Тип выводимого сообщения*/
27
- type?: NotificationType;
28
- /** Кнопки, отображаемые в сообщении*/
29
- actions?: ButtonFacade[];
30
- }
31
- export interface IUiFacade {
32
- /** Вызвать окно уведомления */
33
- showNotification(msg: CustomNotification, duration?: number): void;
34
- /** Вызвать модальное окно */
35
- showModal(content: UiContainerContent, options?: IModalOptions): IModalFacade;
36
- /** Вызвать боковую панель */
37
- showSidebar(content: UiContainerContent, options?: ISidebarOptions): void;
38
- /** Создать выпадающее меню */
39
- createDropdown<I>(options: DropdownOptions<I>, el: Element, ctx: DropdownTargetContext<I>): IDropdownMenu<I>;
40
- /** Создать компонент с пользовательской версткой */
41
- createControl(view: () => _mithril.MithrilVirtualElement): MithrilControl;
42
- }
43
- export type ModalTypes = UiType;
44
- export interface IModalOptions {
45
- /** CSS класс */
46
- class?: string;
47
- /** Подписка на инциализацию модального окна */
48
- initContainer?: (container: any) => void;
49
- /** Размер модального окна */
50
- size?: "lg" | "sm" | "md";
51
- /** Классы CSS для содержимого модального окна */
52
- css?: string;
53
- /** Заголовок модального окна */
54
- title?: string;
55
- /** Иконка для модального окна */
56
- icon?: string;
57
- /** Затемнение заднего фона */
58
- backdrop?: boolean;
59
- /** Параметры размеров модального окна */
60
- initialSizingState?: IModalSizingState;
61
- /** Тип модального окна */
62
- type?: ModalTypes;
63
- /** Дополнительные кнопки на окне */
64
- buttons?: ButtonFacade[];
65
- /** Настройки кнопки закрытия модального окна */
66
- closeButton?: Partial<ButtonFacade>;
67
- /**
68
- * Возможность закрыть окно по кнопкам закрытия и с помощью клавиатуры
69
- * @default true
70
- */
71
- closable?: boolean;
72
- onClose?: (closeResult?: any) => void;
73
- /** Содержит ли модальное окно какое-либо действие */
74
- isAction?: boolean;
75
- }
76
- export type ISidebarOptions = IPanelOptions;
77
- export interface IModalSizingState {
78
- /** Отображать окно в расширенном на весь экран виде */
79
- full: boolean;
80
- /** Ширина */
81
- width: number;
82
- /** Высота */
83
- height: number;
84
- }
1
+ /// <reference types="../../../../mithril" />
2
+ import { MithrilControl } from "../../../../helpers/types";
3
+ import { DropdownOptions } from "../../../dropdown/IDropDownMenu";
4
+ import { ButtonFacade } from "../Form/IFormFacade";
5
+ import { DropdownTargetContext, IDropdownMenu } from "../../../dropdown/IDropDownMenu";
6
+ import { IModalFacade } from "../components/ModalFacade";
7
+ import { UiType } from "../../../../helpers/IUi";
8
+ import { IPanelOptions } from "mdtScripts/views/controls/panels/panelOptions";
9
+ export type onModalResizeCallback = (data: IModalSizingState) => void;
10
+ export interface IType<T> {
11
+ new (...args: any[]): T;
12
+ }
13
+ export interface ParentCtrl {
14
+ getViewControl(): MithrilControl;
15
+ }
16
+ export type NotificationType = "default" | "info" | "success" | "warning" | "danger";
17
+ export type UiContainerContent = MithrilControl | ParentCtrl | string;
18
+ export interface CustomNotification {
19
+ /** Заголовок сообщения */
20
+ title: string;
21
+ /** Текст сообщения */
22
+ text: string;
23
+ /** Наименование иконки */
24
+ icon?: string;
25
+ /** Тип выводимого сообщения*/
26
+ type?: NotificationType;
27
+ /** Кнопки, отображаемые в сообщении*/
28
+ actions?: ButtonFacade[];
29
+ }
30
+ export interface IUiFacade {
31
+ /** Вызвать окно уведомления */
32
+ showNotification(msg: CustomNotification, duration?: number): void;
33
+ /** Вызвать модальное окно */
34
+ showModal(content: UiContainerContent, options?: IModalOptions): IModalFacade;
35
+ /** Вызвать боковую панель */
36
+ showSidebar(content: UiContainerContent, options?: ISidebarOptions): void;
37
+ /** Создать выпадающее меню */
38
+ createDropdown<I>(options: DropdownOptions<I>, el: Element, ctx: DropdownTargetContext<I>): IDropdownMenu<I>;
39
+ /** Создать компонент с пользовательской версткой */
40
+ createControl(view: () => _mithril.MithrilVirtualElement): MithrilControl;
41
+ }
42
+ export type ModalTypes = UiType;
43
+ export interface IModalOptions {
44
+ /** CSS класс */
45
+ class?: string;
46
+ /** Подписка на инциализацию модального окна */
47
+ initContainer?: (container: any) => void;
48
+ /** Размер модального окна */
49
+ size?: "lg" | "sm" | "md";
50
+ /** Классы CSS для содержимого модального окна */
51
+ css?: string;
52
+ /** Заголовок модального окна */
53
+ title?: string;
54
+ /** Иконка для модального окна */
55
+ icon?: string;
56
+ /** Затемнение заднего фона */
57
+ backdrop?: boolean;
58
+ /** Параметры размеров модального окна */
59
+ initialSizingState?: IModalSizingState;
60
+ /** Тип модального окна */
61
+ type?: ModalTypes;
62
+ /** Дополнительные кнопки на окне */
63
+ buttons?: ButtonFacade[];
64
+ /** Настройки кнопки закрытия модального окна */
65
+ closeButton?: Partial<ButtonFacade>;
66
+ /**
67
+ * Возможность закрыть окно по кнопкам закрытия и с помощью клавиатуры
68
+ * @default true
69
+ */
70
+ closable?: boolean;
71
+ onClose?: (closeResult?: any) => void;
72
+ /** Содержит ли модальное окно какое-либо действие */
73
+ isAction?: boolean;
74
+ }
75
+ export type ISidebarOptions = IPanelOptions;
76
+ export interface IModalSizingState {
77
+ /** Отображать окно в расширенном на весь экран виде */
78
+ full: boolean;
79
+ /** Ширина */
80
+ width: number;
81
+ /** Высота */
82
+ height: number;
83
+ }
@@ -1,225 +1,225 @@
1
- import { KeyStorage } from "../../../../helpers/utils/keyStorage/KeyStorage";
2
- import { FormatOptions } from "../../../../helpers/formatOptions";
3
- import { IListButtonExtendPipelineService } from "../services/IListButtonExtendPipelineService";
4
- import { getValued } from "../../../../helpers/utils/valued/getValued";
5
- import { AnyObject } from "../../../../helpers/types";
6
- import { EventEmitter } from "../../../../helpers/events/EventEmitter";
7
- import { Pipeline, PipelineSync } from "../../../../helpers/pipeline/Pipeline";
8
- import { ImmutableArgPipeline } from "../../../../helpers/pipeline/ImmutableArgPipeline";
9
- import { MdtDateStringFormat } from "mdtScripts/helpers/dateUtils";
10
- export interface IUtilsFacade {
11
- ListButtonExtendPipelineService: IListButtonExtendPipelineService;
12
- /**
13
- * Переводит текст по ключу из таблицы с локализацией
14
- *
15
- * @example Примеры
16
- *
17
- * ```js
18
- * const text = Utils.getText("Save");
19
- * // text: "Сохранить" (в зависимости от языка)
20
- *
21
- * // Допустим есть ключ "Поле {field} отсутствует в таблице {table}"
22
- * const field = "MDT_FlagActive";
23
- * const table = "md.Customer"
24
- * const text = Utils.getText("Field `{field}` is missing in table `{table}`", { field, table });
25
- * // text: "Поле `MDT_FlagActive` отсутствует в таблице `md.Customer`"
26
- * ```
27
- */
28
- getText(textCode: string, args?: AnyObject, complex?: true): string;
29
- /**
30
- * Форматирует значение
31
- * - type: "number" - форматирует как число
32
- * - type: "date" - форматирует как дату
33
- *
34
- * @param value Значение
35
- * @param options Опции форматирования
36
- *
37
- * @example Примеры
38
- *
39
- * ```js
40
- * // форматирование даты
41
- * const today = new Date();
42
- * const formattedValue = Utils.format(today, { type: "date" });
43
- * // formattedValue: "01.01.2024"
44
- *
45
- * // форматирование числа
46
- * const formattedValue = Utils.format(123456.789, { type: "number" });
47
- * // formattedValue: "123 456,79"
48
- * ```
49
- */
50
- format(value: any, options?: FormatOptions): any;
51
- /**
52
- * Генерирует GUID
53
- *
54
- * @example Примеры
55
- *
56
- * ```js
57
- * const guid = Utils.guid();
58
- * ```
59
- */
60
- guid(): string;
61
- /**
62
- * Получает значение из localStorage
63
- *
64
- * @param key Ключ
65
- * @param defaultValue Значение по умолчанию
66
- *
67
- * @example Примеры
68
- *
69
- * ```js
70
- * const storage = Utils.getStorageItem("feature-name", "default");
71
- *
72
- * // Если не было ранее значения
73
- * const v = storage.get(); // "default"
74
- *
75
- * // Если было ранее значение
76
- * storage.set("value");
77
- * const v = storage.get(); // "value"
78
- *
79
- * // Очистка значения
80
- * storage.clear();
81
- * ```
82
- */
83
- getStorageItem<T>(key: string, defaultValue?: T): KeyStorage<T>;
84
- /**
85
- * Скачать файл по url
86
- * Ошибки загрузки не выводятся.
87
- * Увеличить лимит времени загрузки можно с помощью глобальной переменной mdt.file.download.timeLimit
88
- */
89
- downloadFile(url: string): void;
90
- /**
91
- *
92
- * @example Примеры
93
- *
94
- * ```js
95
- * const value1 = getValued(123), // 123
96
- * const value2 = getValued(() => 123), // 123
97
- * ```
98
- */
99
- getValued: typeof getValued;
100
- /**
101
- * Объединяет два объекта в один. Не мутирует исходные объекты.
102
- *
103
- * @param object1 Первый объект
104
- * @param object2 Второй объект
105
- *
106
- * @example Примеры
107
- *
108
- * ```js
109
- * const object1 = { a: 1, b: 2 };
110
- * const object2 = { b: 3, c: 4 };
111
- * const result = Utils.mergeDeep(object1, object2);
112
- * // result: { a: 1, b: 3, c: 4 }
113
- * ```
114
- */
115
- mergeDeep<T = AnyObject>(object1: T, object2: T): AnyObject;
116
- /**
117
- * Удаляет элемент из массива (первое вхождение).
118
- *
119
- * @param array Массив, из которого нужно удалить элемент
120
- * @param item Элемент, который нужно удалить
121
- * @example Примеры
122
-
123
- * ```js
124
- * const array = [1, 2, 3, 2];
125
- * Utils.deleteFromArray(array, 2);
126
- * // array теперь: [1, 3, 2]
127
- * ```
128
- */
129
- deleteFromArray<T>(array: T[], item: T): void;
130
- /**
131
- * Проверяет, является ли примитивное значение пустым (null, undefined).
132
- *
133
- * @param value Проверяемое значение
134
- *
135
- * @example Примеры
136
- *
137
- * ```js
138
- * Utils.isEmpty(""); // true
139
- * Utils.isEmpty(null); // true
140
- * Utils.isEmpty(0); // false
141
- * Utils.isEmpty("текст"); // false
142
- * Utils.isEmpty([1,2]); // false
143
- * ```
144
- */
145
- isEmpty(value: unknown): boolean;
146
- date: {
147
- /**
148
- * Преобразует строку даты из строкового формата в объект Date.
149
- *
150
- * @param dateString Строка даты в формате "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс"
151
- *
152
- * @example Примеры
153
- *
154
- * ```js
155
- * const date = Utils.date.stringDateToDate("01.02.2024");
156
- * ```
157
- */
158
- stringDateToDate(dateString: MdtDateStringFormat): Date;
159
- /**
160
- * Преобразует объект Date в строку формата "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс".
161
- *
162
- * @param date Объект Date
163
- *
164
- * @example Примеры
165
- *
166
- * ```js
167
- * Utils.date.dateToStringDate(new Date(2024, 0, 2)); // "02.01.2024"
168
- * Utils.date.dateToStringDate(new Date(2024, 0, 2, 10, 30, 0)); // "02.01.2024 10:30:00"
169
- * ```
170
- */
171
- dateToStringDate(date: Date, withTime: boolean): string;
172
- /**
173
- * Преобразует объект Date в строку формата ISO8601 ("гггг-мм-дд").
174
- *
175
- * @param date Объект Date
176
- *
177
- * @example Примеры
178
- *
179
- * ```js
180
- * Utils.date.dateToISO8601(new Date(2024, 0, 2)); // "2024-01-02"
181
- * ```
182
- */
183
- dateToISO8601(date: Date): string;
184
- /**
185
- * Проверяет, равны ли две даты.
186
- *
187
- * @param date1 Первая дата
188
- * @param date2 Вторая дата
189
- * @param options Опции сравнения (например, ignoreTime — игнорировать время)
190
- *
191
- * @example Примеры
192
- *
193
- * ```js
194
- * Utils.date.isDateEqual(new Date(2024, 0, 2), new Date(2024, 0, 2)); // true
195
- * Utils.date.isDateEqual(new Date(2024, 0, 2, 10), new Date(2024, 0, 2, 15), { ignoreTime: true }); // true
196
- * ```
197
- */
198
- isDateEqual(date1: Date, date2: Date, options?: IsDateEqualOptions): boolean;
199
- };
200
- /**
201
- * Позволяет определять события, подписываться на них и вызывать
202
- *
203
- * @example Примеры
204
- *
205
- * ```typescript
206
- * interface Events {
207
- * "custom-event": { data: string }
208
- * }
209
- *
210
- * const eventEmitter = new EventEmitter<Events>();
211
- * // Подписка на событие
212
- * eventEmitter.on("custom-event", (data) => console.log(data));
213
- * // Вызов события
214
- * eventEmitter.emit("custom-event", { data: "data" }); // выведет "data"
215
- *
216
- * ```
217
- */
218
- EventEmitter: typeof EventEmitter;
219
- Pipeline: typeof Pipeline;
220
- PipelineSync: typeof PipelineSync;
221
- ImmutableArgPipeline: typeof ImmutableArgPipeline;
222
- }
223
- export type IsDateEqualOptions = {
224
- ignoreTime?: boolean;
225
- };
1
+ import { KeyStorage } from "../../../../helpers/utils/keyStorage/KeyStorage";
2
+ import { FormatOptions } from "../../../../helpers/formatOptions";
3
+ import { IListButtonExtendPipelineService } from "../services/IListButtonExtendPipelineService";
4
+ import { getValued } from "../../../../helpers/utils/valued/getValued";
5
+ import { AnyObject } from "../../../../helpers/types";
6
+ import { EventEmitter } from "../../../../helpers/events/EventEmitter";
7
+ import { Pipeline, PipelineSync } from "../../../../helpers/pipeline/Pipeline";
8
+ import { ImmutableArgPipeline } from "../../../../helpers/pipeline/ImmutableArgPipeline";
9
+ import { MdtDateStringFormat } from "mdtScripts/helpers/dateUtils";
10
+ export interface IUtilsFacade {
11
+ ListButtonExtendPipelineService: IListButtonExtendPipelineService;
12
+ /**
13
+ * Переводит текст по ключу из таблицы с локализацией
14
+ *
15
+ * @example Примеры
16
+ *
17
+ * ```js
18
+ * const text = Utils.getText("Save");
19
+ * // text: "Сохранить" (в зависимости от языка)
20
+ *
21
+ * // Допустим есть ключ "Поле {field} отсутствует в таблице {table}"
22
+ * const field = "MDT_FlagActive";
23
+ * const table = "md.Customer"
24
+ * const text = Utils.getText("Field `{field}` is missing in table `{table}`", { field, table });
25
+ * // text: "Поле `MDT_FlagActive` отсутствует в таблице `md.Customer`"
26
+ * ```
27
+ */
28
+ getText(textCode: string, args?: AnyObject, complex?: true): string;
29
+ /**
30
+ * Форматирует значение
31
+ * - type: "number" - форматирует как число
32
+ * - type: "date" - форматирует как дату
33
+ *
34
+ * @param value Значение
35
+ * @param options Опции форматирования
36
+ *
37
+ * @example Примеры
38
+ *
39
+ * ```js
40
+ * // форматирование даты
41
+ * const today = new Date();
42
+ * const formattedValue = Utils.format(today, { type: "date" });
43
+ * // formattedValue: "01.01.2024"
44
+ *
45
+ * // форматирование числа
46
+ * const formattedValue = Utils.format(123456.789, { type: "number" });
47
+ * // formattedValue: "123 456,79"
48
+ * ```
49
+ */
50
+ format(value: any, options?: FormatOptions): any;
51
+ /**
52
+ * Генерирует GUID
53
+ *
54
+ * @example Примеры
55
+ *
56
+ * ```js
57
+ * const guid = Utils.guid();
58
+ * ```
59
+ */
60
+ guid(): string;
61
+ /**
62
+ * Получает значение из localStorage
63
+ *
64
+ * @param key Ключ
65
+ * @param defaultValue Значение по умолчанию
66
+ *
67
+ * @example Примеры
68
+ *
69
+ * ```js
70
+ * const storage = Utils.getStorageItem("feature-name", "default");
71
+ *
72
+ * // Если не было ранее значения
73
+ * const v = storage.get(); // "default"
74
+ *
75
+ * // Если было ранее значение
76
+ * storage.set("value");
77
+ * const v = storage.get(); // "value"
78
+ *
79
+ * // Очистка значения
80
+ * storage.clear();
81
+ * ```
82
+ */
83
+ getStorageItem<T>(key: string, defaultValue?: T): KeyStorage<T>;
84
+ /**
85
+ * Скачать файл по url
86
+ * Ошибки загрузки не выводятся.
87
+ * Увеличить лимит времени загрузки можно с помощью глобальной переменной mdt.file.download.timeLimit
88
+ */
89
+ downloadFile(url: string): void;
90
+ /**
91
+ *
92
+ * @example Примеры
93
+ *
94
+ * ```js
95
+ * const value1 = getValued(123), // 123
96
+ * const value2 = getValued(() => 123), // 123
97
+ * ```
98
+ */
99
+ getValued: typeof getValued;
100
+ /**
101
+ * Объединяет два объекта в один. Не мутирует исходные объекты.
102
+ *
103
+ * @param object1 Первый объект
104
+ * @param object2 Второй объект
105
+ *
106
+ * @example Примеры
107
+ *
108
+ * ```js
109
+ * const object1 = { a: 1, b: 2 };
110
+ * const object2 = { b: 3, c: 4 };
111
+ * const result = Utils.mergeDeep(object1, object2);
112
+ * // result: { a: 1, b: 3, c: 4 }
113
+ * ```
114
+ */
115
+ mergeDeep<T = AnyObject>(object1: T, object2: T): AnyObject;
116
+ /**
117
+ * Удаляет элемент из массива (первое вхождение).
118
+ *
119
+ * @param array Массив, из которого нужно удалить элемент
120
+ * @param item Элемент, который нужно удалить
121
+ * @example Примеры
122
+
123
+ * ```js
124
+ * const array = [1, 2, 3, 2];
125
+ * Utils.deleteFromArray(array, 2);
126
+ * // array теперь: [1, 3, 2]
127
+ * ```
128
+ */
129
+ deleteFromArray<T>(array: T[], item: T): void;
130
+ /**
131
+ * Проверяет, является ли примитивное значение пустым (null, undefined).
132
+ *
133
+ * @param value Проверяемое значение
134
+ *
135
+ * @example Примеры
136
+ *
137
+ * ```js
138
+ * Utils.isEmpty(""); // true
139
+ * Utils.isEmpty(null); // true
140
+ * Utils.isEmpty(0); // false
141
+ * Utils.isEmpty("текст"); // false
142
+ * Utils.isEmpty([1,2]); // false
143
+ * ```
144
+ */
145
+ isEmpty(value: unknown): boolean;
146
+ date: {
147
+ /**
148
+ * Преобразует строку даты из строкового формата в объект Date.
149
+ *
150
+ * @param dateString Строка даты в формате "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс"
151
+ *
152
+ * @example Примеры
153
+ *
154
+ * ```js
155
+ * const date = Utils.date.stringDateToDate("01.02.2024");
156
+ * ```
157
+ */
158
+ stringDateToDate(dateString: MdtDateStringFormat): Date;
159
+ /**
160
+ * Преобразует объект Date в строку формата "дд.мм.гггг" или "дд.мм.гггг чч:мм:сс".
161
+ *
162
+ * @param date Объект Date
163
+ *
164
+ * @example Примеры
165
+ *
166
+ * ```js
167
+ * Utils.date.dateToStringDate(new Date(2024, 0, 2)); // "02.01.2024"
168
+ * Utils.date.dateToStringDate(new Date(2024, 0, 2, 10, 30, 0)); // "02.01.2024 10:30:00"
169
+ * ```
170
+ */
171
+ dateToStringDate(date: Date, withTime: boolean): string;
172
+ /**
173
+ * Преобразует объект Date в строку формата ISO8601 ("гггг-мм-дд").
174
+ *
175
+ * @param date Объект Date
176
+ *
177
+ * @example Примеры
178
+ *
179
+ * ```js
180
+ * Utils.date.dateToISO8601(new Date(2024, 0, 2)); // "2024-01-02"
181
+ * ```
182
+ */
183
+ dateToISO8601(date: Date): string;
184
+ /**
185
+ * Проверяет, равны ли две даты.
186
+ *
187
+ * @param date1 Первая дата
188
+ * @param date2 Вторая дата
189
+ * @param options Опции сравнения (например, ignoreTime — игнорировать время)
190
+ *
191
+ * @example Примеры
192
+ *
193
+ * ```js
194
+ * Utils.date.isDateEqual(new Date(2024, 0, 2), new Date(2024, 0, 2)); // true
195
+ * Utils.date.isDateEqual(new Date(2024, 0, 2, 10), new Date(2024, 0, 2, 15), { ignoreTime: true }); // true
196
+ * ```
197
+ */
198
+ isDateEqual(date1: Date, date2: Date, options?: IsDateEqualOptions): boolean;
199
+ };
200
+ /**
201
+ * Позволяет определять события, подписываться на них и вызывать
202
+ *
203
+ * @example Примеры
204
+ *
205
+ * ```typescript
206
+ * interface Events {
207
+ * "custom-event": { data: string }
208
+ * }
209
+ *
210
+ * const eventEmitter = new EventEmitter<Events>();
211
+ * // Подписка на событие
212
+ * eventEmitter.on("custom-event", (data) => console.log(data));
213
+ * // Вызов события
214
+ * eventEmitter.emit("custom-event", { data: "data" }); // выведет "data"
215
+ *
216
+ * ```
217
+ */
218
+ EventEmitter: typeof EventEmitter;
219
+ Pipeline: typeof Pipeline;
220
+ PipelineSync: typeof PipelineSync;
221
+ ImmutableArgPipeline: typeof ImmutableArgPipeline;
222
+ }
223
+ export type IsDateEqualOptions = {
224
+ ignoreTime?: boolean;
225
+ };