mdt-client 31.3.38 → 31.3.40

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 (191) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +2 -1
  6. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +1 -0
  7. package/types/components/form/label/labelOptions.d.ts +1 -0
  8. package/types/components/icon/iconOptions.d.ts +4 -2
  9. package/types/security/User.d.ts +2 -1
  10. package/types/services/api/ApiAccessor/apiV2Types.d.ts +2 -1
  11. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +2 -0
  12. package/types/services/customModules/facades/ILegacyFacade.d.ts +4 -4
  13. package/types/services/customModules/facades/IMdtFacade.d.ts +3 -0
  14. package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +8 -2
  15. package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
  16. package/types/services/customModules/facades/ui-kit/UiKitFacade.d.ts +8 -0
  17. package/types/ui-kit/UiKitFacade.d.ts +4 -2
  18. package/types/views/page/charts/ChartControlOptions.schema.d.ts +99 -9
  19. package/types/_core/scripts/common/Datasource.d.ts +0 -9
  20. package/types/_core/scripts/common/Field.d.ts +0 -51
  21. package/types/_core/scripts/common/FieldSettings.schema.d.ts +0 -17
  22. package/types/_core/scripts/common/MdtField.d.ts +0 -9
  23. package/types/_core/scripts/common/MdtObject.d.ts +0 -7
  24. package/types/_core/scripts/common/Record.d.ts +0 -27
  25. package/types/_core/scripts/common/Table.d.ts +0 -66
  26. package/types/_core/scripts/common/form/tabs/TabsFormExtenderOptions.d.ts +0 -12
  27. package/types/_core/scripts/common/list/aggregation/AggregayionTypes.d.ts +0 -2
  28. package/types/_core/scripts/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +0 -6
  29. package/types/_core/scripts/common/list/cellControlExtender/CellControlExtender.d.ts +0 -1
  30. package/types/_core/scripts/common/list/columnMenu/ColumnMenuOptions.d.ts +0 -17
  31. package/types/_core/scripts/common/list/columnMenu/QuickFilterOptions.d.ts +0 -7
  32. package/types/_core/scripts/common/list/columnMenu/ValuesFilterOptions.d.ts +0 -24
  33. package/types/_core/scripts/common/list/form/FormListPublicOptions.d.ts +0 -40
  34. package/types/_core/scripts/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +0 -11
  35. package/types/_core/scripts/common/list/group/groupTypes.d.ts +0 -177
  36. package/types/_core/scripts/common/list/hierarchy/hierarchyTypes.d.ts +0 -48
  37. package/types/_core/scripts/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +0 -3
  38. package/types/_core/scripts/common/list/labelStyle/LabelStylePublicOptions.d.ts +0 -6
  39. package/types/_core/scripts/common/list/legend/LegendListExtenderOptions.d.ts +0 -8
  40. package/types/_core/scripts/common/list/listView/ListViewListExtenderOptions.d.ts +0 -25
  41. package/types/_core/scripts/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +0 -23
  42. package/types/_core/scripts/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +0 -29
  43. package/types/_core/scripts/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +0 -4
  44. package/types/_core/scripts/common/list/select/SelectPublicOptions.d.ts +0 -18
  45. package/types/_core/scripts/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +0 -3
  46. package/types/_core/scripts/common/list/toolbar/ToolbarPublicOptions.d.ts +0 -22
  47. package/types/_core/scripts/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +0 -7
  48. package/types/_core/scripts/common/serverMessage/ServerMessageTypes.d.ts +0 -17
  49. package/types/_core/scripts/components/baseFormControls/input/inputOptions.d.ts +0 -30
  50. package/types/_core/scripts/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +0 -2
  51. package/types/_core/scripts/components/button/baseButton/buttonOptions.d.ts +0 -12
  52. package/types/_core/scripts/components/buttonGroup/buttonGroupOptions.d.ts +0 -7
  53. package/types/_core/scripts/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +0 -5
  54. package/types/_core/scripts/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +0 -19
  55. package/types/_core/scripts/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +0 -32
  56. package/types/_core/scripts/components/form/fieldView/fieldViewOptions.d.ts +0 -13
  57. package/types/_core/scripts/components/form/header/types.d.ts +0 -14
  58. package/types/_core/scripts/components/form/label/labelOptions.d.ts +0 -22
  59. package/types/_core/scripts/components/icon/iconOptions.d.ts +0 -21
  60. package/types/_core/scripts/components/iconButton/iconButtonOptions.d.ts +0 -9
  61. package/types/_core/scripts/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +0 -5
  62. package/types/_core/scripts/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +0 -16
  63. package/types/_core/scripts/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +0 -4
  64. package/types/_core/scripts/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +0 -24
  65. package/types/_core/scripts/components/resizablePanels/resizablePanelsOptions.d.ts +0 -22
  66. package/types/_core/scripts/components/textWithIcon/textWithIconOptions.d.ts +0 -16
  67. package/types/_core/scripts/components/toggleablePanels/toggleablePanelsOptions.d.ts +0 -40
  68. package/types/_core/scripts/data/active/ActivationListAdapterTypes.d.ts +0 -6
  69. package/types/_core/scripts/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +0 -21
  70. package/types/_core/scripts/data/periods/helpers/types.d.ts +0 -4
  71. package/types/_core/scripts/datasources/FetchResult.d.ts +0 -5
  72. package/types/_core/scripts/helpers/IUi.d.ts +0 -2
  73. package/types/_core/scripts/helpers/dateUtils.d.ts +0 -23
  74. package/types/_core/scripts/helpers/deleteFromArray.d.ts +0 -1
  75. package/types/_core/scripts/helpers/events/EventEmitter.d.ts +0 -12
  76. package/types/_core/scripts/helpers/fireEvent.d.ts +0 -4
  77. package/types/_core/scripts/helpers/formatOptions.d.ts +0 -16
  78. package/types/_core/scripts/helpers/formattedText.d.ts +0 -8
  79. package/types/_core/scripts/helpers/pipeline/ImmutableArgPipeline.d.ts +0 -8
  80. package/types/_core/scripts/helpers/pipeline/Pipeline.d.ts +0 -20
  81. package/types/_core/scripts/helpers/redraw.d.ts +0 -16
  82. package/types/_core/scripts/helpers/types.d.ts +0 -84
  83. package/types/_core/scripts/helpers/ui/elementModificators/focusableComponent.d.ts +0 -14
  84. package/types/_core/scripts/helpers/ui/elementModificators/modificatorsTypes.d.ts +0 -4
  85. package/types/_core/scripts/helpers/ui/keyboardUtils/getKeySymbol.d.ts +0 -2
  86. package/types/_core/scripts/helpers/ui/keyboardUtils/keyboardUtils.d.ts +0 -23
  87. package/types/_core/scripts/helpers/ui/keyboardUtils/osByUserAgent.d.ts +0 -1
  88. package/types/_core/scripts/helpers/utils/classNames.d.ts +0 -20
  89. package/types/_core/scripts/helpers/utils/keyStorage/KeyStorage.d.ts +0 -6
  90. package/types/_core/scripts/helpers/utils/memoization/memoize.d.ts +0 -18
  91. package/types/_core/scripts/helpers/utils/object.d.ts +0 -4
  92. package/types/_core/scripts/helpers/utils/stringifyControlSize.d.ts +0 -3
  93. package/types/_core/scripts/helpers/utils/valued/getValued.d.ts +0 -18
  94. package/types/_core/scripts/helpers/zone/IZone.d.ts +0 -7
  95. package/types/_core/scripts/security/PermissionLevel.d.ts +0 -40
  96. package/types/_core/scripts/security/User.d.ts +0 -19
  97. package/types/_core/scripts/services/HotkeyManager.d.ts +0 -6
  98. package/types/_core/scripts/services/IFilter.d.ts +0 -322
  99. package/types/_core/scripts/services/ModuleData.d.ts +0 -9
  100. package/types/_core/scripts/services/api/ApiAccessor/apiV1Types.d.ts +0 -266
  101. package/types/_core/scripts/services/api/ApiAccessor/apiV2Types.d.ts +0 -585
  102. package/types/_core/scripts/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +0 -42
  103. package/types/_core/scripts/services/api/ApiAccessor/job/jobApiTypes.d.ts +0 -82
  104. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +0 -10
  105. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +0 -28
  106. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +0 -9
  107. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +0 -37
  108. package/types/_core/scripts/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +0 -2
  109. package/types/_core/scripts/services/api/ApiRequestOptions.d.ts +0 -43
  110. package/types/_core/scripts/services/api/BaseQuery.d.ts +0 -25
  111. package/types/_core/scripts/services/api/Query.d.ts +0 -56
  112. package/types/_core/scripts/services/api/QuerySorting.d.ts +0 -18
  113. package/types/_core/scripts/services/api/ServerResonseType.d.ts +0 -2
  114. package/types/_core/scripts/services/commands/Command.d.ts +0 -22
  115. package/types/_core/scripts/services/commands/CommandGroup.d.ts +0 -15
  116. package/types/_core/scripts/services/commands/CommandManager.d.ts +0 -77
  117. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlFacade.d.ts +0 -26
  118. package/types/_core/scripts/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +0 -36
  119. package/types/_core/scripts/services/customModules/facades/Form/IFieldStateFacade.d.ts +0 -13
  120. package/types/_core/scripts/services/customModules/facades/Form/IFormControlFacade.d.ts +0 -133
  121. package/types/_core/scripts/services/customModules/facades/Form/IFormFacade.d.ts +0 -102
  122. package/types/_core/scripts/services/customModules/facades/Form/IFormLayout.d.ts +0 -12
  123. package/types/_core/scripts/services/customModules/facades/IAppFacade.d.ts +0 -38
  124. package/types/_core/scripts/services/customModules/facades/IAuthFacade.d.ts +0 -9
  125. package/types/_core/scripts/services/customModules/facades/ILegacyFacade.d.ts +0 -238
  126. package/types/_core/scripts/services/customModules/facades/IMdtFacade.d.ts +0 -87
  127. package/types/_core/scripts/services/customModules/facades/IModuleRegistryFacade.d.ts +0 -5
  128. package/types/_core/scripts/services/customModules/facades/IPageFacade.d.ts +0 -7
  129. package/types/_core/scripts/services/customModules/facades/List/Column/IColumnFacade.d.ts +0 -7
  130. package/types/_core/scripts/services/customModules/facades/List/IListCellFacade.d.ts +0 -8
  131. package/types/_core/scripts/services/customModules/facades/List/IListComponentFacade.d.ts +0 -10
  132. package/types/_core/scripts/services/customModules/facades/List/IListControlFacade.d.ts +0 -88
  133. package/types/_core/scripts/services/customModules/facades/List/IListRowFacade.d.ts +0 -2
  134. package/types/_core/scripts/services/customModules/facades/List/IListServiceFacade.d.ts +0 -96
  135. package/types/_core/scripts/services/customModules/facades/List/ListOptions/IListOptions.d.ts +0 -4
  136. package/types/_core/scripts/services/customModules/facades/components/CodeEditorFacade.d.ts +0 -9
  137. package/types/_core/scripts/services/customModules/facades/components/ModalFacade.d.ts +0 -4
  138. package/types/_core/scripts/services/customModules/facades/formDashboard/IFormDashboard.d.ts +0 -20
  139. package/types/_core/scripts/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +0 -77
  140. package/types/_core/scripts/services/customModules/facades/internalModules/importModuleFacade.d.ts +0 -53
  141. package/types/_core/scripts/services/customModules/facades/internalModules/jobFacade.d.ts +0 -7
  142. package/types/_core/scripts/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +0 -12
  143. package/types/_core/scripts/services/customModules/facades/internalModules/statusFacade.d.ts +0 -13
  144. package/types/_core/scripts/services/customModules/facades/record/IRecordFacade.d.ts +0 -13
  145. package/types/_core/scripts/services/customModules/facades/record/IRecordManagerFacade.d.ts +0 -5
  146. package/types/_core/scripts/services/customModules/facades/schema/IFieldFacade.d.ts +0 -14
  147. package/types/_core/scripts/services/customModules/facades/schema/IObjectFacade.d.ts +0 -20
  148. package/types/_core/scripts/services/customModules/facades/schema/ISchemaFacade.d.ts +0 -24
  149. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +0 -23
  150. package/types/_core/scripts/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +0 -8
  151. package/types/_core/scripts/services/customModules/facades/services/CommandManagerFacade.d.ts +0 -11
  152. package/types/_core/scripts/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +0 -13
  153. package/types/_core/scripts/services/customModules/facades/services/INavigationFacade.d.ts +0 -91
  154. package/types/_core/scripts/services/customModules/facades/services/ISecurityFacade.d.ts +0 -13
  155. package/types/_core/scripts/services/customModules/facades/utils/IApiFacade.d.ts +0 -91
  156. package/types/_core/scripts/services/customModules/facades/utils/IUiComponentsFacade.d.ts +0 -185
  157. package/types/_core/scripts/services/customModules/facades/utils/IUiFacade.d.ts +0 -83
  158. package/types/_core/scripts/services/customModules/facades/utils/IUtilsFacade.d.ts +0 -224
  159. package/types/_core/scripts/services/customModules/facades/utils/ImUtilsFacade.d.ts +0 -41
  160. package/types/_core/scripts/services/dropdown/IDropDownMenu.d.ts +0 -40
  161. package/types/_core/scripts/services/e2e/e2eServiceType.d.ts +0 -11
  162. package/types/_core/scripts/ui-kit/IUiKitUtilsFacade.d.ts +0 -21
  163. package/types/_core/scripts/ui-kit/UiKitFacade.d.ts +0 -101
  164. package/types/_core/scripts/views/controls/Control.d.ts +0 -7
  165. package/types/_core/scripts/views/controls/panels/panelOptions.d.ts +0 -15
  166. package/types/_core/scripts/views/form/controls/commonControl/ICommonControl.d.ts +0 -28
  167. package/types/_core/scripts/views/form/controls/fileupload/FileInputFacade.types.d.ts +0 -6
  168. package/types/_core/scripts/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +0 -24
  169. package/types/_core/scripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +0 -70
  170. package/types/_core/scripts/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +0 -36
  171. package/types/_core/scripts/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +0 -21
  172. package/types/_core/scripts/views/form/formTypes.d.ts +0 -5
  173. package/types/_core/scripts/views/form/schema/FormPageExtOptions.schema.d.ts +0 -22
  174. package/types/_core/scripts/views/form/schema/FormPageOptions.schema.d.ts +0 -19
  175. package/types/_core/scripts/views/gallery/ImageFetchOptions.d.ts +0 -5
  176. package/types/_core/scripts/views/list/ListViewOptions.d.ts +0 -99
  177. package/types/_core/scripts/views/list/features/aggregation/AggregationRowListOptions.d.ts +0 -23
  178. package/types/_core/scripts/views/list/schema/ListPageExtOptions.schema.d.ts +0 -123
  179. package/types/_core/scripts/views/list/schema/ListPageOptions.schema.d.ts +0 -145
  180. package/types/_core/scripts/views/list/tabular/TabularListTypes.d.ts +0 -53
  181. package/types/_core/scripts/views/page/PageZoneTypes.d.ts +0 -1
  182. package/types/_core/scripts/views/page/charts/ChartControlOptions.schema.d.ts +0 -759
  183. package/types/_core/scripts/views/page/charts/facade/IChartControlFacade.d.ts +0 -29
  184. package/types/_core/scripts/views/page/charts/reportDashboard/config/chartConfig.d.ts +0 -31
  185. package/types/_core/scripts/views/page/charts/reportDashboard/config/filterConfig.d.ts +0 -56
  186. package/types/_core/scripts/views/page/charts/reportDashboard/config/listConfig.d.ts +0 -9
  187. package/types/_core/scripts/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +0 -55
  188. package/types/_core/scripts/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +0 -3
  189. package/types/_core/scripts/views/page/charts/reportDashboard/index.d.ts +0 -5
  190. package/types/_core/scripts/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +0 -13
  191. package/types/job/scripts/types.d.ts +0 -11
@@ -1,6 +0,0 @@
1
- export interface CacheUpdateTimePublicOptions {
2
- /**
3
- * Название параметра, содержащего дату
4
- */
5
- param: string;
6
- }
@@ -1 +0,0 @@
1
- export declare type CellControlExtenderOptions = {};
@@ -1,17 +0,0 @@
1
- import { QuickFilterOptions } from "./QuickFilterOptions";
2
- import { ValuesFilterOptions } from "./ValuesFilterOptions";
3
- /**
4
- * @title Настройки выпадающего меню в колонке
5
- * @description Настройки задаются по пути в колонке. Например, `Title` или `ID_Department/Title`.
6
- * @defaultSnippets [{ "label": "Настройка по умолчанию", "body": { "$1": { "valuesFilter": {} }}}]
7
- */
8
- export interface ColumnMenuOptions {
9
- [column: string]: ColumnMenuItemOptions;
10
- }
11
- export interface ColumnMenuItemOptions {
12
- valuesFilter?: ValuesFilterOptions;
13
- /**
14
- * Настройки фильтра колоночного меню
15
- */
16
- quickFilter?: QuickFilterOptions;
17
- }
@@ -1,7 +0,0 @@
1
- export interface QuickFilterOptions {
2
- /**
3
- * Задержка перед выполнением поиска (ms).
4
- * @default 600
5
- */
6
- delayBeforeSearch?: number;
7
- }
@@ -1,24 +0,0 @@
1
- import { QuerySorting } from "mdtServices/api/QuerySorting";
2
- /**
3
- * Настройки фильтра по значениям
4
- * @defaultSnippets
5
- * [
6
- * {
7
- * "label": "Пример настройки",
8
- * "body": { "sorting": [{ "path": "$1", "asc": true }], "mode": "show" }
9
- * }
10
- * ]
11
- */
12
- export interface ValuesFilterOptions {
13
- /**
14
- * Настройки сортировки
15
- */
16
- sorting?: QuerySorting[];
17
- /**
18
- * Режим отображения фильтра по значениям в меню колонки:
19
- * - show - показать фильтр. Используется по умолчанию.
20
- * - submenu - показать фильтр в подменю.
21
- * - hide - скрыть фильтр.
22
- */
23
- mode?: "show" | "submenu" | "hide";
24
- }
@@ -1,40 +0,0 @@
1
- import { Button as ButtonPub } from "mdtScripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema";
2
- import { FormPageOptions } from "mdtScripts/views/form/schema/FormPageOptions.schema";
3
- import { FormPageExtOptions } from "mdtScripts/views/form/schema/FormPageExtOptions.schema";
4
- export interface FormListPublicOptions {
5
- /**
6
- * Открытие формы в модальном окне
7
- */
8
- modal?: boolean;
9
- /**
10
- * Открытие формы в боковой панели
11
- */
12
- sidebar?: boolean;
13
- /** Настройки формы */
14
- options?: FormPageOptions;
15
- /** Настройки расширений формы */
16
- extOptions?: FormPageExtOptions;
17
- /**
18
- * Отображение кнопки "удалить"
19
- */
20
- delete?: boolean;
21
- /**
22
- * Отображение кнопки "добавить"
23
- */
24
- add?: boolean;
25
- /**
26
- * Отображение кнопки "редактировать"
27
- */
28
- edit?: boolean;
29
- /**
30
- * Отображение колонки с кнопками "редактировать" для записей.
31
- * По умолчанию колонка отображается.
32
- */
33
- editColumn?: boolean;
34
- /**
35
- * Иконка кнопки "редактировать"
36
- */
37
- editIcon?: string;
38
- /** Расширение кнопки "добавить" */
39
- addButton?: ButtonPub;
40
- }
@@ -1,11 +0,0 @@
1
- import { ImageFetchOptions } from "mdtScripts/views/gallery/ImageFetchOptions";
2
- export interface GalleryListExtenderPublicOptions {
3
- /** Отображение кнопки скачивания zip */
4
- downloadZipButton?: boolean;
5
- /** Отображение кнопки распечатки */
6
- printButton?: boolean;
7
- /** Настройка изображения предпросмотра */
8
- thumb?: ImageFetchOptions;
9
- /** Отображение кнопок поворота изображения */
10
- showRotateButtons?: boolean;
11
- }
@@ -1,177 +0,0 @@
1
- import { MdtRecord, RecordId } from "mdtScripts/common/Record";
2
- import { FieldPath } from "../../../helpers/types";
3
- import { QuerySortingObject } from "../../../services/api/QuerySorting";
4
- import { Field } from "mdtScripts/common/Field";
5
- import { ILayoutColumn } from "mdtScripts/views/list/ListViewOptions";
6
- export declare type GroupingItemPublic = Grouping.ListExtender.Options.Settings.GroupItem;
7
- export declare type GroupingItemDetails = Grouping.ListExtender.Options.Settings.ItemDetails;
8
- export declare type GroupingListExtenderPublicOptions = Grouping.ListExtender.Options;
9
- export interface GroupListExtenderOptions {
10
- /**
11
- * Группировочное поле
12
- */
13
- groupField: string;
14
- }
15
- export declare namespace Grouping {
16
- interface Query {
17
- groups?: Query.GroupItem[];
18
- allParents?: boolean;
19
- orphans?: boolean;
20
- toggledValues?: string[][];
21
- /** Только для APIv2.
22
- * Если флаг указан, в ответе с группой API присылает пустая она или нет
23
- */
24
- calculateIsEmpty?: boolean;
25
- }
26
- namespace Query {
27
- interface GroupItem {
28
- fieldPath: FieldPath;
29
- toggledValues?: any[];
30
- withEmpty?: boolean;
31
- /**
32
- * @deprecated
33
- * Направление сортировки группировочных записей (true - по убыванию, false - по возрастанию). Необходим для работы v1
34
- */
35
- sortDesc?: boolean;
36
- collapsed?: boolean;
37
- select?: string[];
38
- sorting?: QuerySortingObject[];
39
- }
40
- }
41
- type GroupLabel = {
42
- title?: string;
43
- icon?: string;
44
- color?: string;
45
- textColor?: string;
46
- };
47
- namespace Common { }
48
- namespace ListExtender {
49
- interface Options {
50
- /** Настройки группировки */
51
- settings?: Options.Settings;
52
- /** Редактирование записей перетаскиванием */
53
- dragDropEnabled?: boolean;
54
- /** Дает пользователю возможность редактировать группировку */
55
- userConfigurable?: boolean;
56
- }
57
- namespace Options {
58
- interface Settings {
59
- /** Настройки групп */
60
- groups?: Omit<Settings.GroupItem, "sortDesc">[];
61
- /** Отображать пустые группы */
62
- allParents?: boolean;
63
- /** Отображать записи без групп */
64
- orphans?: boolean;
65
- /** Обрабатывать группировочные строки как обычные записи, если их путь ссылается на FK поле на эту же таблицу */
66
- treatSelfReferencingGroupsAsRecords?: boolean;
67
- /** Если флаг включен, то у пустых групп будет скрыта иконка сворачивания.
68
- * Работает только с APIv2
69
- */
70
- calculateIsEmpty?: boolean;
71
- }
72
- namespace Settings {
73
- interface GroupItem extends ItemDetails {
74
- /** Путь группировки */
75
- path: string;
76
- /** Схлопнута по умолчанию */
77
- collapsed?: boolean;
78
- /** Дополнительная информация по группе (только если путь ссылается на FK) */
79
- select?: string[];
80
- /** Настройки метки группы */
81
- label?: Grouping.GroupLabel | false;
82
- /** Иконка, отображаемая в заголовке столбца для данного уровня группировки */
83
- levelIcon?: string;
84
- /**
85
- * @deprecated
86
- * Направление сортировки группировочных записей (true - по убыванию, false - по возрастанию). Необходим для работы v1
87
- */
88
- sortDesc?: boolean;
89
- /**
90
- * Настройка сортировки группировочных записей.
91
- */
92
- sorting?: QuerySortingObject[];
93
- /**
94
- * Параметры отображения дополнительной информации, указанной в select.
95
- * Объект, где ключ - это путь к полю из массива select, а значение - объект с настройками отображения.
96
- *
97
- * @example
98
- * ```typescript
99
- * selectView: {
100
- * "name": { title: "Название" },
101
- * "description": { title: "Описание" }
102
- * }
103
- * ```
104
- *
105
- * Используется для настройки заголовков полей дополнительной информации,
106
- * которая отображается в группировочных строках для связанных записей.
107
- */
108
- selectView?: SelectView;
109
- }
110
- interface ItemDetails {
111
- /** Максимальная ширина дополнительной информации */
112
- detailsMaxWidth?: string;
113
- /** Отображение дополнительной информации в одну строку */
114
- detailsSingleLine?: boolean;
115
- /** Отображение значений полей дополнительной информации в одну строку */
116
- detailsValueSingleLine?: boolean;
117
- }
118
- }
119
- }
120
- type GroupItem = {
121
- fieldPath: FieldPath;
122
- fieldPathFull: string;
123
- $field: Field;
124
- $pathFields: Field[];
125
- groupsForDrop: GroupItem[];
126
- } & Options.Settings.GroupItem;
127
- interface ApplyGroupingSettings {
128
- groupSettings: Options.Settings.GroupItem[];
129
- flagAllParents: boolean;
130
- flagOrphans: boolean;
131
- }
132
- interface Column extends ILayoutColumn {
133
- $grouping?: boolean;
134
- $group?: Grouping.ListExtender.GroupItem;
135
- $groupIndex?: number;
136
- }
137
- }
138
- }
139
- export declare type SelectView = {
140
- [key: string]: {
141
- title: string;
142
- };
143
- };
144
- export interface GroupPayloadData {
145
- Value: any;
146
- Object?: MdtRecord;
147
- Count: number;
148
- Groups?: GroupData[];
149
- /** Приходит только для APIv2 */
150
- Empty?: boolean;
151
- }
152
- export interface GroupData extends GroupPayloadData {
153
- Empty?: boolean;
154
- $isLast?: boolean;
155
- }
156
- export interface GroupingRow {
157
- $level: number;
158
- $key: number | string;
159
- $group: Grouping.ListExtender.GroupItem;
160
- $groups: Grouping.ListExtender.GroupItem[];
161
- $isLast?: boolean;
162
- $data: GroupData;
163
- $parentGroupsData: GroupData[];
164
- $groupsDataFull: GroupData[];
165
- $values: any[];
166
- $pathValues: {
167
- path: string;
168
- value: any;
169
- }[];
170
- $groupingRow: boolean;
171
- $system: boolean;
172
- $attrs: any;
173
- $expanded: boolean;
174
- $hasChildGroups: boolean;
175
- /** ID записи, если строка группировки соответствует записи этого же списка */
176
- $id?: RecordId;
177
- }
@@ -1,48 +0,0 @@
1
- import { Table } from "../../../common/Table";
2
- import { FieldCode } from "../../../helpers/types";
3
- import { IFilter } from "../../../services/IFilter";
4
- export declare type HierarchyMode = "" | "-" | "+" | "#";
5
- export interface HierarchyQuery {
6
- /** Поле с ID родительской записи */
7
- parentField?: FieldCode;
8
- /** Поле ID записи */
9
- primaryField?: FieldCode;
10
- /**
11
- * Режим фильтрации иерархии.
12
- * "-" - Отображать всех родителей отфильтрованной записи,
13
- * "+" - Отображать все дочерние записи отфильтрованной записи,
14
- * "#" - Оторбражать все родительские и дочерние записи
15
- */
16
- mode?: HierarchyMode;
17
- /** Фильтр для дочерних и родительских записей, не попадающих под критерии основной фильтрации списка */
18
- filter?: IFilter;
19
- table?: Table;
20
- /**
21
- * @default false
22
- */
23
- legacy?: boolean;
24
- }
25
- export interface HierarchyListExtenderPublicOptions extends Exclude<HierarchyQuery, "table"> {
26
- /**
27
- * Ключи наборов фильтров, при которых фильтрация считается наложенной. Используется для отображения кнопок режима фильтрации.
28
- * Например: "default", "extended"
29
- */
30
- defaultFilterKeys?: string[];
31
- /**
32
- * Изменение иерархии с помощью перетаскивания
33
- */
34
- dragDropEnabled?: boolean;
35
- /** Расширение кнопки типа иерархии
36
- * @ignore
37
- */
38
- buttonExtend?: any;
39
- /**
40
- * Уровень до которого будут раскрыты узлы
41
- */
42
- expandedLevel?: number;
43
- /**
44
- *
45
- * @default false
46
- */
47
- legacy?: boolean;
48
- }
@@ -1,3 +0,0 @@
1
- export interface HistoryTypeListExtenderOptions {
2
- enabled: boolean;
3
- }
@@ -1,6 +0,0 @@
1
- export interface LabelStylePublicOptions {
2
- /**
3
- * Тип отображения: default - простое отображение стиля, icon - отображение с иконкой
4
- */
5
- viewStyle?: "default" | "icon";
6
- }
@@ -1,8 +0,0 @@
1
- import { IButton } from "mdtScripts/views/form/controls/monacoEditor/jsonSchemas/Button.schema";
2
- export interface LegendListExtenderOptions {
3
- items?: LegendItem[];
4
- }
5
- export interface LegendItem extends IButton {
6
- title: string;
7
- cssClass: string;
8
- }
@@ -1,25 +0,0 @@
1
- import { IFilter } from "mdtServices/IFilter";
2
- export interface ListViewListExtenderPublicOptions {
3
- /**
4
- * ListView, который будет применен к списку по умолчанию
5
- */
6
- active?: string;
7
- /**
8
- * Позволять менять выбранное по умолчанию представление в интерфейсе
9
- */
10
- activeChangeable?: boolean;
11
- /**
12
- * @default { "op": "in", "p1": "Title", "p2": ["Название ListView"] }
13
- * @description
14
- * Фильтр для списка ListView
15
- * Пример фильтрации по названию:
16
- * ```
17
- * {
18
- * "op": "in",
19
- * "p1": "Title",
20
- * "p2": ["Название ListView"]
21
- * }
22
- * ```
23
- */
24
- filter?: IFilter;
25
- }
@@ -1,23 +0,0 @@
1
- import { IFilter } from "mdtServices/IFilter";
2
- export interface InMemoryNamedFilterListExtenderPublicOptions {
3
- /** Группы фильтров */
4
- groups: InMemoryNamedFilterListExtenderItem[];
5
- }
6
- export declare type InMemoryNamedFilterListExtenderOptions = InMemoryNamedFilterListExtenderPublicOptions;
7
- export interface InMemoryNamedFilterListExtenderItem {
8
- /** Код группы */
9
- code: string;
10
- icon?: string;
11
- order?: number;
12
- select?: any;
13
- /** Подсказка при наведении */
14
- tooltip?: string;
15
- filters: Array<{
16
- /** Выбран по умолчанию */
17
- selected?: boolean;
18
- /** Заголовок фильтра */
19
- title?: string;
20
- /** Фильтр */
21
- filter?: IFilter;
22
- }>;
23
- }
@@ -1,29 +0,0 @@
1
- import { IFilter } from "mdtServices/IFilter";
2
- export interface NamedFilterListExtenderPublicOptions {
3
- /**
4
- * Код фильтра по умолчанию
5
- */
6
- active?: string;
7
- /**
8
- * Позволяет менять фильтр по умолчанию
9
- */
10
- activeChangeable?: boolean;
11
- /**
12
- * @default { "op": "in", "p1": "Title", "p2": ["Название именованного фильтра"] }
13
- * @description
14
- * Фильтр для списка доступных фильтров
15
- * Пример фильтрации по названию:
16
- * ```
17
- * {
18
- * "op": "in",
19
- * "p1": "Title",
20
- * "p2": ["Название именованного фильтра"]
21
- * }
22
- * ```
23
- */
24
- filter?: IFilter;
25
- /**
26
- * Список полей, которые доступны для фильтрации
27
- */
28
- fieldFilter?: string[];
29
- }
@@ -1,4 +0,0 @@
1
- export interface ReorderListExtenderPublicOptions {
2
- orderField?: string;
3
- startNumber?: number;
4
- }
@@ -1,18 +0,0 @@
1
- export interface SelectListPublicOptions {
2
- /**
3
- * Множественный выбор
4
- */
5
- multi?: boolean;
6
- /**
7
- * Выбор по нажатию на всю строку
8
- */
9
- wholeRow?: boolean;
10
- /**
11
- * Игнорирование отсутствия Primary-поля
12
- */
13
- ignorePrimaryFieldCheck?: boolean;
14
- /**
15
- * Максимальное количество одновременно выбранных записей
16
- */
17
- limit?: number;
18
- }
@@ -1,3 +0,0 @@
1
- export interface StyleFieldListExtenderPublicOptions {
2
- styleField?: string;
3
- }
@@ -1,22 +0,0 @@
1
- import { ViewElement } from "mdtScripts/helpers/types";
2
- export interface ToolbarPublicOptions {
3
- /**
4
- * Отображать количество записей
5
- */
6
- count?: boolean;
7
- /**
8
- * Отображать кнопку обновления
9
- */
10
- refresh?: boolean;
11
- /**
12
- * Добавление пользовательских элементов в левую область тулбара
13
- */
14
- zones?: {
15
- left?: ViewElement[];
16
- };
17
- /**
18
- * Скрыть меню расширенных кнопок
19
- * @default true
20
- */
21
- hideMore?: boolean;
22
- }
@@ -1,7 +0,0 @@
1
- export interface VirtualScrollListPublicOptions {
2
- /**
3
- * Количество подгружаемых элементов
4
- * @default 50
5
- */
6
- pageSize?: number;
7
- }
@@ -1,17 +0,0 @@
1
- import { MessageMetaData } from "mdtServices/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes";
2
- import { ApiRequestOptions } from "mdtServices/api/ApiRequestOptions";
3
- declare type ServerMessageHandlerArg = {
4
- param: string;
5
- value: any;
6
- paramObjId?: number;
7
- messageAction: MessageMetaData;
8
- requestContext: ServerMessageRequestContext<any>;
9
- };
10
- export interface ServerMessageRequestContext<T = unknown> {
11
- url?: string;
12
- requestData?: any;
13
- responseData: T;
14
- options?: ApiRequestOptions;
15
- }
16
- export declare type ServerMessageHandler = (arg: ServerMessageHandlerArg) => boolean | void;
17
- export {};
@@ -1,30 +0,0 @@
1
- /// <reference types="../../../../mithril" />
2
- import { CSSClassName } from "../../../helpers/types";
3
- import { KeyboardActions } from "../../../helpers/ui/elementModificators/focusableComponent";
4
- import { ComponentSize } from "../../../helpers/utils/stringifyControlSize";
5
- export interface InputOptions {
6
- id?: string;
7
- /**
8
- * Ожидать автозаполнения полей авторизации браузером.
9
- * Если компонент используется на форме авторизации (например, в качестве поля логина или пароля), следует включить опцию для правильной обработки стиля автозаполнения.
10
- * */
11
- waitAutofill?: boolean;
12
- value?: string | number;
13
- type?: string;
14
- placeholder?: string;
15
- autofocus?: boolean;
16
- autocomplete?: "on" | "off";
17
- min?: number;
18
- max?: number;
19
- size?: ComponentSize;
20
- readonly?: boolean;
21
- hasError?: boolean;
22
- keyboardActions?: KeyboardActions;
23
- className?: CSSClassName;
24
- onCreated?: (el: HTMLInputElement) => void;
25
- /**
26
- *
27
- * @deprecated
28
- */
29
- attrs?: _mithril.MithrilAttributes;
30
- }
@@ -1,2 +0,0 @@
1
- import IMask from "imask";
2
- export declare type MaskOptions = IMask.AnyMaskedOptions;
@@ -1,12 +0,0 @@
1
- import { ViewElement } from "mdtScripts/helpers/types";
2
- import { ComponentSize } from "mdtScripts/helpers/utils/stringifyControlSize";
3
- export interface ButtonOptions {
4
- title?: string;
5
- command?: () => void;
6
- className?: string;
7
- tooltip?: string;
8
- enabled?: boolean;
9
- icon?: string;
10
- endElement?: ViewElement;
11
- size?: ComponentSize;
12
- }
@@ -1,7 +0,0 @@
1
- import { ButtonOptions } from "../button/baseButton/buttonOptions";
2
- export declare type GroupButtonOptions = ButtonOptions & {
3
- selected: boolean;
4
- };
5
- export interface ButtonGroupOptions {
6
- buttons: GroupButtonOptions[];
7
- }
@@ -1,5 +0,0 @@
1
- export interface DropdownInputItemOptions {
2
- value: string;
3
- onChange?: (value: string) => void;
4
- config?: (el: HTMLElement, inited: boolean) => void;
5
- }
@@ -1,19 +0,0 @@
1
- import { ViewElement } from "../../../../helpers/types";
2
- import { DropdownMenuItemBaseOptions, DropdownMenuItemOptions, DropdownMenuItemWithChildrenOptions } from "../../menuActionItem/dropdownMenuItemOptions";
3
- export interface DropdownItemBaseOptions {
4
- className?: string;
5
- idx?: number;
6
- }
7
- export interface DropdownItemOptions<T extends DropdownMenuItemBaseOptions = DropdownMenuItemBaseOptions> extends DropdownItemBaseOptions {
8
- focused?: boolean;
9
- actionItemOptions: T;
10
- }
11
- export declare type DropdownBaseItemOptions = DropdownItemOptions<DropdownMenuItemOptions>;
12
- export declare type DropdownItemWithMoreOptions = DropdownItemOptions<DropdownMenuItemWithChildrenOptions>;
13
- export interface DropdownItemWithCustomContentOptions extends DropdownItemBaseOptions {
14
- content: ViewElement;
15
- }
16
- export interface DropdownMenuItemBaseFocusable {
17
- focused?: boolean;
18
- }
19
- export declare type DropdownItemViewOptions = DropdownMenuItemOptions & DropdownMenuItemBaseFocusable;
@@ -1,32 +0,0 @@
1
- import { Icon } from "../../../components/icon/iconOptions";
2
- import { FormattedText } from "../../../helpers/formattedText";
3
- import { CSSClassName, ViewElement, Valued } from "../../../helpers/types";
4
- export interface DropdownMenuItemBaseOptions {
5
- icon?: Valued<Icon>;
6
- title: Valued<ViewElement>;
7
- additionalTitle?: string;
8
- tooltip?: Valued<FormattedText>;
9
- execute?: (e?: Event) => void;
10
- visible?: () => boolean;
11
- enabled?: () => boolean;
12
- selected?: Valued<boolean>;
13
- className?: CSSClassName;
14
- zone?: DropdownMenuItemZones;
15
- expanded?: boolean;
16
- itemsShowOnHover?: boolean;
17
- }
18
- interface DropdownMenuItemZones {
19
- right: () => ViewElement;
20
- }
21
- export interface DropdownMenuItemOptions extends DropdownMenuItemBaseOptions {
22
- rightCaret?: boolean;
23
- hrefTargetBlank?: boolean;
24
- href?: Valued<string>;
25
- }
26
- export interface DropdownMenuItemWithChildrenOptions extends DropdownMenuItemBaseOptions {
27
- moreBtn?: MoreButton;
28
- }
29
- interface MoreButton {
30
- execute: (e?: Event) => void;
31
- }
32
- export {};
@@ -1,13 +0,0 @@
1
- import { ViewElement, LabelType } from "mdtScripts/helpers/types";
2
- import { LabelViewOptions } from "../label/labelOptions";
3
- export declare type FieldViewLabelMode = LabelType;
4
- export interface FieldLabelViewOptions extends LabelViewOptions {
5
- labelMode?: FieldViewLabelMode;
6
- handleLabelView?: (label: ViewElement) => ViewElement;
7
- id?: string;
8
- }
9
- export interface FieldViewOptions extends FieldLabelViewOptions {
10
- id?: string;
11
- isLocked?: () => boolean;
12
- control: ViewElement;
13
- }