mdt-client 31.3.39 → 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 (179) 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/common/Datasource.d.ts +9 -9
  7. package/types/common/Field.d.ts +51 -51
  8. package/types/common/FieldSettings.schema.d.ts +17 -17
  9. package/types/common/MdtField.d.ts +9 -9
  10. package/types/common/MdtObject.d.ts +7 -7
  11. package/types/common/Record.d.ts +27 -27
  12. package/types/common/Table.d.ts +66 -66
  13. package/types/common/form/tabs/TabsFormExtenderOptions.d.ts +12 -12
  14. package/types/common/list/aggregation/AggregayionTypes.d.ts +2 -2
  15. package/types/common/list/cacheUpdateTime/CacheUpdateTimePublicOptions.d.ts +6 -6
  16. package/types/common/list/cellControlExtender/CellControlExtender.d.ts +1 -1
  17. package/types/common/list/columnMenu/ColumnMenuOptions.d.ts +17 -17
  18. package/types/common/list/columnMenu/QuickFilterOptions.d.ts +7 -7
  19. package/types/common/list/columnMenu/ValuesFilterOptions.d.ts +24 -24
  20. package/types/common/list/form/FormListPublicOptions.d.ts +44 -44
  21. package/types/common/list/gallery/GalleryListExtenderPublicOptions.d.ts +11 -11
  22. package/types/common/list/group/groupTypes.d.ts +177 -177
  23. package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
  24. package/types/common/list/historyType/HistoryTypeListExtenderOptions.d.ts +3 -3
  25. package/types/common/list/labelStyle/LabelStylePublicOptions.d.ts +6 -6
  26. package/types/common/list/legend/LegendListExtenderOptions.d.ts +8 -8
  27. package/types/common/list/listView/ListViewListExtenderOptions.d.ts +25 -25
  28. package/types/common/list/namedFilter/InMemoryNamedFilterOptions.d.ts +23 -23
  29. package/types/common/list/namedFilter/NamedFilterListExtenderPublicOptions.d.ts +29 -29
  30. package/types/common/list/reorder/ReorderListExtenderPublicOptions.d.ts +4 -4
  31. package/types/common/list/select/SelectPublicOptions.d.ts +18 -18
  32. package/types/common/list/styleField/StyleFieldListExtenderPublicOptions.d.ts +3 -3
  33. package/types/common/list/toolbar/ToolbarPublicOptions.d.ts +23 -23
  34. package/types/common/list/virtualScroll/VIrtualScrollPublicOptions.d.ts +7 -7
  35. package/types/common/serverMessage/ServerMessageTypes.d.ts +17 -17
  36. package/types/components/baseFormControls/input/inputOptions.d.ts +31 -31
  37. package/types/components/baseFormControls/maskedInput/MaskFormatter.types.d.ts +2 -2
  38. package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
  39. package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
  40. package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
  41. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +20 -20
  42. package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +32 -32
  43. package/types/components/form/fieldView/fieldViewOptions.d.ts +13 -13
  44. package/types/components/form/header/types.d.ts +14 -14
  45. package/types/components/form/label/labelOptions.d.ts +23 -23
  46. package/types/components/icon/iconOptions.d.ts +24 -24
  47. package/types/components/iconButton/iconButtonOptions.d.ts +10 -10
  48. package/types/components/navigation/header/userButton/UserMenuSlot.d.ts +10 -10
  49. package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
  50. package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
  51. package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
  52. package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
  53. package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
  54. package/types/components/textWithIcon/textWithIconOptions.d.ts +17 -17
  55. package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
  56. package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
  57. package/types/data/fieldFilter/ToolbarFieldFilterOptions.d.ts +21 -21
  58. package/types/data/periods/helpers/types.d.ts +4 -4
  59. package/types/datasources/FetchResult.d.ts +5 -5
  60. package/types/helpers/IUi.d.ts +2 -2
  61. package/types/helpers/dateUtils.d.ts +23 -23
  62. package/types/helpers/deleteFromArray.d.ts +1 -1
  63. package/types/helpers/events/EventEmitter.d.ts +12 -12
  64. package/types/helpers/fireEvent.d.ts +4 -4
  65. package/types/helpers/formatOptions.d.ts +16 -16
  66. package/types/helpers/formattedText.d.ts +8 -8
  67. package/types/helpers/pipeline/ImmutableArgPipeline.d.ts +8 -8
  68. package/types/helpers/pipeline/Pipeline.d.ts +20 -20
  69. package/types/helpers/redraw.d.ts +16 -16
  70. package/types/helpers/types.d.ts +85 -85
  71. package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -15
  72. package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
  73. package/types/helpers/ui/keyboardUtils/getKeySymbol.d.ts +2 -2
  74. package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
  75. package/types/helpers/ui/keyboardUtils/osByUserAgent.d.ts +1 -1
  76. package/types/helpers/utils/classNames.d.ts +20 -20
  77. package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
  78. package/types/helpers/utils/memoization/memoize.d.ts +18 -18
  79. package/types/helpers/utils/object.d.ts +4 -4
  80. package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
  81. package/types/helpers/utils/valued/getValued.d.ts +18 -18
  82. package/types/helpers/zone/IZone.d.ts +8 -8
  83. package/types/security/PermissionLevel.d.ts +40 -40
  84. package/types/security/User.d.ts +20 -20
  85. package/types/services/HotkeyManager.d.ts +6 -6
  86. package/types/services/IFilter.d.ts +322 -322
  87. package/types/services/ModuleData.d.ts +9 -9
  88. package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
  89. package/types/services/api/ApiAccessor/apiV2Types.d.ts +586 -586
  90. package/types/services/api/ApiAccessor/binding/bindingApiTypes.d.ts +42 -42
  91. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
  92. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
  93. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
  94. package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
  95. package/types/services/api/ApiAccessorRequestAdapter/message/apiV2MessageTypes.d.ts +2 -2
  96. package/types/services/api/ApiRequestOptions.d.ts +43 -43
  97. package/types/services/api/BaseQuery.d.ts +25 -25
  98. package/types/services/api/Query.d.ts +56 -56
  99. package/types/services/api/QuerySorting.d.ts +18 -18
  100. package/types/services/api/ServerResonseType.d.ts +2 -2
  101. package/types/services/commands/Command.d.ts +22 -22
  102. package/types/services/commands/CommandGroup.d.ts +15 -15
  103. package/types/services/commands/CommandManager.d.ts +77 -77
  104. package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
  105. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +38 -36
  106. package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
  107. package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
  108. package/types/services/customModules/facades/Form/IFormFacade.d.ts +102 -102
  109. package/types/services/customModules/facades/Form/IFormLayout.d.ts +12 -12
  110. package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
  111. package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
  112. package/types/services/customModules/facades/ILegacyFacade.d.ts +239 -239
  113. package/types/services/customModules/facades/IMdtFacade.d.ts +91 -88
  114. package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
  115. package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
  116. package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
  117. package/types/services/customModules/facades/List/IListCellFacade.d.ts +8 -8
  118. package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
  119. package/types/services/customModules/facades/List/IListControlFacade.d.ts +88 -88
  120. package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
  121. package/types/services/customModules/facades/List/IListServiceFacade.d.ts +96 -96
  122. package/types/services/customModules/facades/List/ListOptions/IListOptions.d.ts +4 -4
  123. package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
  124. package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
  125. package/types/services/customModules/facades/formDashboard/IFormDashboard.d.ts +20 -20
  126. package/types/services/customModules/facades/internalModules/importFormCtrl.types.d.ts +83 -83
  127. package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +53 -53
  128. package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
  129. package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
  130. package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
  131. package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
  132. package/types/services/customModules/facades/schema/IFieldFacade.d.ts +14 -14
  133. package/types/services/customModules/facades/schema/IObjectFacade.d.ts +20 -20
  134. package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +24 -24
  135. package/types/services/customModules/facades/schema/fieldBuilder/fieldBuilder/IFieldBuilder.d.ts +23 -23
  136. package/types/services/customModules/facades/schema/fieldBuilder/fieldFkBuilder/IFieldFkBuilder.d.ts +8 -8
  137. package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
  138. package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
  139. package/types/services/customModules/facades/services/INavigationFacade.d.ts +91 -91
  140. package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
  141. package/types/services/customModules/facades/sharedModules/ISharedModulesFacade.d.ts +4 -0
  142. package/types/services/customModules/facades/ui-kit/UiKitFacade.d.ts +8 -0
  143. package/types/services/customModules/facades/utils/IApiFacade.d.ts +91 -91
  144. package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +191 -191
  145. package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
  146. package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +225 -225
  147. package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +42 -42
  148. package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
  149. package/types/services/e2e/e2eServiceType.d.ts +11 -11
  150. package/types/ui-kit/IUiKitUtilsFacade.d.ts +35 -35
  151. package/types/ui-kit/UiKitFacade.d.ts +106 -106
  152. package/types/ui-kit/components/calendar/Calendar.d.ts +3 -3
  153. package/types/views/controls/Control.d.ts +7 -7
  154. package/types/views/controls/panels/panelOptions.d.ts +15 -15
  155. package/types/views/form/controls/commonControl/ICommonControl.d.ts +29 -29
  156. package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
  157. package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +24 -24
  158. package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
  159. package/types/views/form/controls/picker/multiPickerFacade/IMultiPickerFacade.d.ts +36 -36
  160. package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
  161. package/types/views/form/formTypes.d.ts +5 -5
  162. package/types/views/form/schema/FormPageExtOptions.schema.d.ts +22 -22
  163. package/types/views/form/schema/FormPageOptions.schema.d.ts +19 -19
  164. package/types/views/gallery/ImageFetchOptions.d.ts +5 -5
  165. package/types/views/list/ListViewOptions.d.ts +102 -102
  166. package/types/views/list/features/aggregation/AggregationRowListOptions.d.ts +23 -23
  167. package/types/views/list/schema/ListPageExtOptions.schema.d.ts +123 -123
  168. package/types/views/list/schema/ListPageOptions.schema.d.ts +145 -145
  169. package/types/views/list/tabular/TabularListTypes.d.ts +53 -53
  170. package/types/views/page/PageZoneTypes.d.ts +1 -1
  171. package/types/views/page/charts/ChartControlOptions.schema.d.ts +850 -850
  172. package/types/views/page/charts/facade/IChartControlFacade.d.ts +29 -29
  173. package/types/views/page/charts/reportDashboard/config/chartConfig.d.ts +31 -31
  174. package/types/views/page/charts/reportDashboard/config/filterConfig.d.ts +56 -56
  175. package/types/views/page/charts/reportDashboard/config/listConfig.d.ts +9 -9
  176. package/types/views/page/charts/reportDashboard/config/reportDashboardConfig.d.ts +55 -55
  177. package/types/views/page/charts/reportDashboard/controls/dynamicChart/dynamicChartControlPublicOptions.d.ts +3 -3
  178. package/types/views/page/charts/reportDashboard/index.d.ts +5 -5
  179. package/types/views/page/charts/reportDashboard/utils/formJsonVarParser.d.ts +13 -13
@@ -1,35 +1,35 @@
1
- /// <reference types="react" />
2
- import { ViewElement } from "../helpers/types";
3
- export interface IUiKitUtilsFacade {
4
- /**
5
- * Адаптирует React-компонент из UI Kit для использования в Mithril-представлениях.
6
- *
7
- * Автоматически добавляет класс 'ui-kit' для корректного применения стилей компонентов.
8
- *
9
- * @param Component React-компонент из UI Kit
10
- * @param props Пропсы для компонента
11
- * @returns ViewElement для использования в Mithril
12
- *
13
- * @example
14
- * // В Mithril view:
15
- * return UiKitUtils.wrapComponent(Button, {
16
- * children: "Нажми меня",
17
- * variant: "primary"
18
- * });
19
- */
20
- wrapComponent<P>(Component: React.FC<P>, props?: P): ViewElement;
21
- /**
22
- * Создаёт класс-контроллер для интеграции React-компонента в Mithril-контролы/формы.
23
- *
24
- * Возвращает класс с методом `$view`, который оборачивает указанный React-компонент в Mithril через uiKitWrap.
25
- * @example
26
- * FormService.registerControl({
27
- * code: "reportDashboard",
28
- * title: "Report Dashboard",
29
- * type: createReactControl(ReactComponent)
30
- * });
31
- */
32
- createReactControl<P>(Component: React.FC<P>): new () => {
33
- $view: () => ViewElement;
34
- };
35
- }
1
+ /// <reference types="react" />
2
+ import { ViewElement } from "../helpers/types";
3
+ export interface IUiKitUtilsFacade {
4
+ /**
5
+ * Адаптирует React-компонент из UI Kit для использования в Mithril-представлениях.
6
+ *
7
+ * Автоматически добавляет класс 'ui-kit' для корректного применения стилей компонентов.
8
+ *
9
+ * @param Component React-компонент из UI Kit
10
+ * @param props Пропсы для компонента
11
+ * @returns ViewElement для использования в Mithril
12
+ *
13
+ * @example
14
+ * // В Mithril view:
15
+ * return UiKitUtils.wrapComponent(Button, {
16
+ * children: "Нажми меня",
17
+ * variant: "primary"
18
+ * });
19
+ */
20
+ wrapComponent<P>(Component: React.FC<P>, props?: P): ViewElement;
21
+ /**
22
+ * Создаёт класс-контроллер для интеграции React-компонента в Mithril-контролы/формы.
23
+ *
24
+ * Возвращает класс с методом `$view`, который оборачивает указанный React-компонент в Mithril через uiKitWrap.
25
+ * @example
26
+ * FormService.registerControl({
27
+ * code: "reportDashboard",
28
+ * title: "Report Dashboard",
29
+ * type: createReactControl(ReactComponent)
30
+ * });
31
+ */
32
+ createReactControl<P>(Component: React.FC<P>): new () => {
33
+ $view: () => ViewElement;
34
+ };
35
+ }
@@ -1,106 +1,106 @@
1
- import * as alert from "ics-ui-kit/dist/components/alert";
2
- import * as alertDialog from "ics-ui-kit/dist/components/alert-dialog";
3
- import * as avatar from "ics-ui-kit/dist/components/avatar";
4
- import * as badge from "ics-ui-kit/dist/components/badge";
5
- import * as breadcrumb from "ics-ui-kit/dist/components/breadcrumb";
6
- import * as button from "ics-ui-kit/dist/components/button";
7
- import * as card from "ics-ui-kit/dist/components/card";
8
- import * as checkbox from "ics-ui-kit/dist/components/checkbox";
9
- import * as collapsible from "ics-ui-kit/dist/components/collapsible";
10
- import * as command from "ics-ui-kit/dist/components/command";
11
- import * as dialog from "ics-ui-kit/dist/components/dialog";
12
- import * as divider from "ics-ui-kit/dist/components/divider";
13
- import * as dropdown from "ics-ui-kit/dist/components/dropdown";
14
- import * as emptyState from "ics-ui-kit/dist/components/empty-state";
15
- import * as errorState from "ics-ui-kit/dist/components/error-state";
16
- import * as field from "ics-ui-kit/dist/components/field";
17
- import * as fileUpload from "ics-ui-kit/dist/components/file-upload";
18
- import * as form from "ics-ui-kit/dist/components/form";
19
- import * as icon from "ics-ui-kit/dist/components/icon";
20
- import * as input from "ics-ui-kit/dist/components/input";
21
- import * as inputOTP from "ics-ui-kit/dist/components/input-otp";
22
- import * as label from "ics-ui-kit/dist/components/label";
23
- import * as menuItem from "ics-ui-kit/dist/components/menu-item";
24
- import * as overflowTooltip from "ics-ui-kit/dist/components/overflow-tooltip";
25
- import * as overlay from "ics-ui-kit/dist/components/overlay";
26
- import * as popover from "ics-ui-kit/dist/components/popover";
27
- import * as progress from "ics-ui-kit/dist/components/progress";
28
- import * as prose from "ics-ui-kit/dist/components/prose";
29
- import * as resizable from "ics-ui-kit/dist/components/resizable";
30
- import * as select from "ics-ui-kit/dist/components/select";
31
- import * as sheet from "ics-ui-kit/dist/components/sheet";
32
- import * as sidebar from "ics-ui-kit/dist/components/sidebar";
33
- import * as skeleton from "ics-ui-kit/dist/components/skeleton";
34
- import * as switchComponent from "ics-ui-kit/dist/components/switch";
35
- import * as table from "ics-ui-kit/dist/components/table";
36
- import * as tabs from "ics-ui-kit/dist/components/tabs";
37
- import * as tag from "ics-ui-kit/dist/components/tag";
38
- import * as textarea from "ics-ui-kit/dist/components/textarea";
39
- import * as toast from "ics-ui-kit/dist/components/toast";
40
- import * as toggleGroup from "ics-ui-kit/dist/components/toggle-group";
41
- import * as toolbar from "ics-ui-kit/dist/components/toolbar";
42
- import * as tooltip from "ics-ui-kit/dist/components/tooltip";
43
- import * as reactHookForm from "ics-ui-kit/dist/vendors/react-hook-form";
44
- import * as reactTable from "ics-ui-kit/dist/vendors/tanstack/react-table";
45
- import * as zod from "ics-ui-kit/dist/vendors/zod";
46
- /**
47
- * Фасад для ре-экспорта компонентов из UI Kit.
48
- * В этом классе должны быть только ре-экспорты из UI Kit с сохранением структуры.
49
- * Любые модификации или дополнительные логика должны быть реализованы отдельно.
50
- */
51
- export declare class UiKitFacade {
52
- components: {
53
- readonly alert: typeof alert;
54
- readonly "alert-dialog": typeof alertDialog;
55
- readonly avatar: typeof avatar;
56
- readonly badge: typeof badge;
57
- readonly breadcrumb: typeof breadcrumb;
58
- readonly button: typeof button;
59
- readonly calendar: {
60
- readonly Calendar: (props: import("react-day-picker").DayPickerProps) => import("react").JSX.Element;
61
- };
62
- readonly card: typeof card;
63
- readonly checkbox: typeof checkbox;
64
- readonly collapsible: typeof collapsible;
65
- readonly command: typeof command;
66
- readonly dialog: typeof dialog;
67
- readonly divider: typeof divider;
68
- readonly dropdown: typeof dropdown;
69
- readonly "empty-state": typeof emptyState;
70
- readonly "error-state": typeof errorState;
71
- readonly field: typeof field;
72
- readonly "file-upload": typeof fileUpload;
73
- readonly form: typeof form;
74
- readonly icon: typeof icon;
75
- readonly input: typeof input;
76
- readonly "input-otp": typeof inputOTP;
77
- readonly label: typeof label;
78
- readonly "menu-item": typeof menuItem;
79
- readonly "overflow-tooltip": typeof overflowTooltip;
80
- readonly overlay: typeof overlay;
81
- readonly popover: typeof popover;
82
- readonly progress: typeof progress;
83
- readonly prose: typeof prose;
84
- readonly resizable: typeof resizable;
85
- readonly select: typeof select;
86
- readonly sheet: typeof sheet;
87
- readonly sidebar: typeof sidebar;
88
- readonly skeleton: typeof skeleton;
89
- readonly switch: typeof switchComponent;
90
- readonly table: typeof table;
91
- readonly tabs: typeof tabs;
92
- readonly tag: typeof tag;
93
- readonly textarea: typeof textarea;
94
- readonly toast: typeof toast;
95
- readonly "toggle-group": typeof toggleGroup;
96
- readonly tooltip: typeof tooltip;
97
- readonly toolbar: typeof toolbar;
98
- };
99
- vendors: {
100
- tanstack: {
101
- "react-table": typeof reactTable;
102
- };
103
- zod: typeof zod;
104
- "react-hook-form": typeof reactHookForm;
105
- };
106
- }
1
+ import * as alert from "ics-ui-kit/dist/components/alert";
2
+ import * as alertDialog from "ics-ui-kit/dist/components/alert-dialog";
3
+ import * as avatar from "ics-ui-kit/dist/components/avatar";
4
+ import * as badge from "ics-ui-kit/dist/components/badge";
5
+ import * as breadcrumb from "ics-ui-kit/dist/components/breadcrumb";
6
+ import * as button from "ics-ui-kit/dist/components/button";
7
+ import * as card from "ics-ui-kit/dist/components/card";
8
+ import * as checkbox from "ics-ui-kit/dist/components/checkbox";
9
+ import * as collapsible from "ics-ui-kit/dist/components/collapsible";
10
+ import * as command from "ics-ui-kit/dist/components/command";
11
+ import * as dialog from "ics-ui-kit/dist/components/dialog";
12
+ import * as divider from "ics-ui-kit/dist/components/divider";
13
+ import * as dropdown from "ics-ui-kit/dist/components/dropdown";
14
+ import * as emptyState from "ics-ui-kit/dist/components/empty-state";
15
+ import * as errorState from "ics-ui-kit/dist/components/error-state";
16
+ import * as field from "ics-ui-kit/dist/components/field";
17
+ import * as fileUpload from "ics-ui-kit/dist/components/file-upload";
18
+ import * as form from "ics-ui-kit/dist/components/form";
19
+ import * as icon from "ics-ui-kit/dist/components/icon";
20
+ import * as input from "ics-ui-kit/dist/components/input";
21
+ import * as inputOTP from "ics-ui-kit/dist/components/input-otp";
22
+ import * as label from "ics-ui-kit/dist/components/label";
23
+ import * as menuItem from "ics-ui-kit/dist/components/menu-item";
24
+ import * as overflowTooltip from "ics-ui-kit/dist/components/overflow-tooltip";
25
+ import * as overlay from "ics-ui-kit/dist/components/overlay";
26
+ import * as popover from "ics-ui-kit/dist/components/popover";
27
+ import * as progress from "ics-ui-kit/dist/components/progress";
28
+ import * as prose from "ics-ui-kit/dist/components/prose";
29
+ import * as resizable from "ics-ui-kit/dist/components/resizable";
30
+ import * as select from "ics-ui-kit/dist/components/select";
31
+ import * as sheet from "ics-ui-kit/dist/components/sheet";
32
+ import * as sidebar from "ics-ui-kit/dist/components/sidebar";
33
+ import * as skeleton from "ics-ui-kit/dist/components/skeleton";
34
+ import * as switchComponent from "ics-ui-kit/dist/components/switch";
35
+ import * as table from "ics-ui-kit/dist/components/table";
36
+ import * as tabs from "ics-ui-kit/dist/components/tabs";
37
+ import * as tag from "ics-ui-kit/dist/components/tag";
38
+ import * as textarea from "ics-ui-kit/dist/components/textarea";
39
+ import * as toast from "ics-ui-kit/dist/components/toast";
40
+ import * as toggleGroup from "ics-ui-kit/dist/components/toggle-group";
41
+ import * as toolbar from "ics-ui-kit/dist/components/toolbar";
42
+ import * as tooltip from "ics-ui-kit/dist/components/tooltip";
43
+ import * as reactHookForm from "ics-ui-kit/dist/vendors/react-hook-form";
44
+ import * as reactTable from "ics-ui-kit/dist/vendors/tanstack/react-table";
45
+ import * as zod from "ics-ui-kit/dist/vendors/zod";
46
+ /**
47
+ * Фасад для ре-экспорта компонентов из UI Kit.
48
+ * В этом классе должны быть только ре-экспорты из UI Kit с сохранением структуры.
49
+ * Любые модификации или дополнительные логика должны быть реализованы отдельно.
50
+ */
51
+ export declare class UiKitFacade {
52
+ components: {
53
+ readonly alert: typeof alert;
54
+ readonly "alert-dialog": typeof alertDialog;
55
+ readonly avatar: typeof avatar;
56
+ readonly badge: typeof badge;
57
+ readonly breadcrumb: typeof breadcrumb;
58
+ readonly button: typeof button;
59
+ readonly calendar: {
60
+ readonly Calendar: (props: import("react-day-picker").DayPickerProps) => import("react").JSX.Element;
61
+ };
62
+ readonly card: typeof card;
63
+ readonly checkbox: typeof checkbox;
64
+ readonly collapsible: typeof collapsible;
65
+ readonly command: typeof command;
66
+ readonly dialog: typeof dialog;
67
+ readonly divider: typeof divider;
68
+ readonly dropdown: typeof dropdown;
69
+ readonly "empty-state": typeof emptyState;
70
+ readonly "error-state": typeof errorState;
71
+ readonly field: typeof field;
72
+ readonly "file-upload": typeof fileUpload;
73
+ readonly form: typeof form;
74
+ readonly icon: typeof icon;
75
+ readonly input: typeof input;
76
+ readonly "input-otp": typeof inputOTP;
77
+ readonly label: typeof label;
78
+ readonly "menu-item": typeof menuItem;
79
+ readonly "overflow-tooltip": typeof overflowTooltip;
80
+ readonly overlay: typeof overlay;
81
+ readonly popover: typeof popover;
82
+ readonly progress: typeof progress;
83
+ readonly prose: typeof prose;
84
+ readonly resizable: typeof resizable;
85
+ readonly select: typeof select;
86
+ readonly sheet: typeof sheet;
87
+ readonly sidebar: typeof sidebar;
88
+ readonly skeleton: typeof skeleton;
89
+ readonly switch: typeof switchComponent;
90
+ readonly table: typeof table;
91
+ readonly tabs: typeof tabs;
92
+ readonly tag: typeof tag;
93
+ readonly textarea: typeof textarea;
94
+ readonly toast: typeof toast;
95
+ readonly "toggle-group": typeof toggleGroup;
96
+ readonly tooltip: typeof tooltip;
97
+ readonly toolbar: typeof toolbar;
98
+ };
99
+ vendors: {
100
+ tanstack: {
101
+ "react-table": typeof reactTable;
102
+ };
103
+ zod: typeof zod;
104
+ "react-hook-form": typeof reactHookForm;
105
+ };
106
+ }
@@ -1,3 +1,3 @@
1
- import * as React from "react";
2
- import type { CalendarProps as CalendarComponentProps } from "ics-ui-kit/dist/components/calendar";
3
- export declare const Calendar: (props: CalendarComponentProps) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import type { CalendarProps as CalendarComponentProps } from "ics-ui-kit/dist/components/calendar";
3
+ export declare const Calendar: (props: CalendarComponentProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- export type Control = {};
2
- export declare enum ControlSize {
3
- ExtraSmall = 1,
4
- Small = 2,
5
- Normal = 3,
6
- Large = 4
7
- }
1
+ export type Control = {};
2
+ export declare enum ControlSize {
3
+ ExtraSmall = 1,
4
+ Small = 2,
5
+ Normal = 3,
6
+ Large = 4
7
+ }
@@ -1,15 +1,15 @@
1
- export interface PanelOptions extends IPanelOptions {
2
- pinned?: boolean;
3
- focused?: boolean;
4
- minimized?: boolean;
5
- closable?: boolean;
6
- minimizable?: boolean;
7
- actionsEnabled?: boolean;
8
- control?: any;
9
- useAnimations?: boolean;
10
- unminimizeAction?: any;
11
- }
12
- export interface IPanelOptions {
13
- /** Отображать боковую панель в расширенном на весь экран виде */
14
- maximized?: boolean;
15
- }
1
+ export interface PanelOptions extends IPanelOptions {
2
+ pinned?: boolean;
3
+ focused?: boolean;
4
+ minimized?: boolean;
5
+ closable?: boolean;
6
+ minimizable?: boolean;
7
+ actionsEnabled?: boolean;
8
+ control?: any;
9
+ useAnimations?: boolean;
10
+ unminimizeAction?: any;
11
+ }
12
+ export interface IPanelOptions {
13
+ /** Отображать боковую панель в расширенном на весь экран виде */
14
+ maximized?: boolean;
15
+ }
@@ -1,29 +1,29 @@
1
- /// <reference types="../../../../mithril" />
2
- /// <reference types="mithril" />
3
- import { CSSClassName, Valued, ViewElement } from "../../../../helpers/types";
4
- export interface Action {
5
- /** Иконка для отображения. */
6
- icon?: Valued<string>;
7
- /** Текст для отображения. Показывается, если не задана иконка. */
8
- text?: Valued<string>;
9
- code?: string;
10
- /** Тултип */
11
- title?: Valued<string>;
12
- command?: () => void;
13
- className?: CSSClassName;
14
- }
15
- export interface ClearAction {
16
- show?: boolean;
17
- title?: Valued<string>;
18
- command?: () => void;
19
- }
20
- export interface CommonControlOptions {
21
- actions?: Action[];
22
- clearAction?: ClearAction;
23
- icon?: Valued<string>;
24
- readonly?: boolean;
25
- attrs?: _mithril.MithrilAttributes;
26
- contentAttrs?: _mithril.MithrilAttributes;
27
- content?: ViewElement;
28
- invalid?: boolean;
29
- }
1
+ /// <reference types="../../../../mithril" />
2
+ /// <reference types="mithril" />
3
+ import { CSSClassName, Valued, ViewElement } from "../../../../helpers/types";
4
+ export interface Action {
5
+ /** Иконка для отображения. */
6
+ icon?: Valued<string>;
7
+ /** Текст для отображения. Показывается, если не задана иконка. */
8
+ text?: Valued<string>;
9
+ code?: string;
10
+ /** Тултип */
11
+ title?: Valued<string>;
12
+ command?: () => void;
13
+ className?: CSSClassName;
14
+ }
15
+ export interface ClearAction {
16
+ show?: boolean;
17
+ title?: Valued<string>;
18
+ command?: () => void;
19
+ }
20
+ export interface CommonControlOptions {
21
+ actions?: Action[];
22
+ clearAction?: ClearAction;
23
+ icon?: Valued<string>;
24
+ readonly?: boolean;
25
+ attrs?: _mithril.MithrilAttributes;
26
+ contentAttrs?: _mithril.MithrilAttributes;
27
+ content?: ViewElement;
28
+ invalid?: boolean;
29
+ }
@@ -1,6 +1,6 @@
1
- export interface FileInputFacadeOptions {
2
- fileName: () => string;
3
- downloadUrl: () => string;
4
- clear: () => void;
5
- upload: (file: File) => Promise<void>;
6
- }
1
+ export interface FileInputFacadeOptions {
2
+ fileName: () => string;
3
+ downloadUrl: () => string;
4
+ clear: () => void;
5
+ upload: (file: File) => Promise<void>;
6
+ }
@@ -1,24 +1,24 @@
1
- import { CSSClassName } from "../../../../helpers/types";
2
- import * as monaco from "monaco-editor";
3
- export type MonacoCodeLang = string;
4
- export interface MonacoCodeOptions {
5
- lang?: MonacoCodeLang;
6
- guid?: string;
7
- value?: () => string;
8
- onChange?: (value: string) => void;
9
- onChangeErrorState?: (errMessage?: string) => void;
10
- jsonSchema?: string;
11
- height?: string;
12
- placeholder?: string;
13
- className?: CSSClassName;
14
- /**
15
- * @TJS-type any
16
- */
17
- editorOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
18
- showDescription?: boolean;
19
- enableFullscreen?: boolean;
20
- enableSuggestionOnEnter?: boolean;
21
- /** Игнорировать валидационные ошибки формата данных */
22
- ignoreControlValidation?: boolean;
23
- saveCursorPositionStorageKey?: () => string | undefined;
24
- }
1
+ import { CSSClassName } from "../../../../helpers/types";
2
+ import * as monaco from "monaco-editor";
3
+ export type MonacoCodeLang = string;
4
+ export interface MonacoCodeOptions {
5
+ lang?: MonacoCodeLang;
6
+ guid?: string;
7
+ value?: () => string;
8
+ onChange?: (value: string) => void;
9
+ onChangeErrorState?: (errMessage?: string) => void;
10
+ jsonSchema?: string;
11
+ height?: string;
12
+ placeholder?: string;
13
+ className?: CSSClassName;
14
+ /**
15
+ * @TJS-type any
16
+ */
17
+ editorOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
18
+ showDescription?: boolean;
19
+ enableFullscreen?: boolean;
20
+ enableSuggestionOnEnter?: boolean;
21
+ /** Игнорировать валидационные ошибки формата данных */
22
+ ignoreControlValidation?: boolean;
23
+ saveCursorPositionStorageKey?: () => string | undefined;
24
+ }
@@ -1,70 +1,70 @@
1
- import { FormattedText } from "../../../../../helpers/formattedText";
2
- import { UiType } from "../../../../../helpers/IUi";
3
- import { ControlSize } from "../../../../../views/controls/Control";
4
- export type ButtonTypes = UiType | "default" | "link" | "group-title" | "extended" | "no-type";
5
- export interface IButton {
6
- /**
7
- * Тип кнопки
8
- */
9
- type?: ButtonTypes | (() => ButtonTypes);
10
- /**
11
- * Размер кнопки
12
- */
13
- size?: ControlSize;
14
- /**
15
- * Дочерние элементы
16
- */
17
- items?: Button[];
18
- /**
19
- * Поле является группировочным
20
- */
21
- group?: boolean;
22
- /**
23
- * Иконка
24
- */
25
- icon?: string | {
26
- (): string;
27
- };
28
- /**
29
- * Иконка при наведении
30
- */
31
- hoverIcon?: string | {
32
- (): string;
33
- };
34
- /**
35
- * Название
36
- */
37
- title?: any;
38
- supIcon?: string;
39
- /**
40
- * Показывать дочерние при наведении
41
- */
42
- itemsShowOnHover?: boolean;
43
- /**
44
- * Показывать дочерние по клику
45
- */
46
- showItemsOnClick?: boolean;
47
- /**
48
- * Скрыть каретку
49
- */
50
- hideCaret?: boolean;
51
- /**
52
- * Порядок отображения
53
- */
54
- order?: number;
55
- /**
56
- * Ссылка
57
- */
58
- href?: string | {
59
- (): string;
60
- };
61
- code?: string;
62
- }
63
- export interface Button extends IButton {
64
- /**
65
- * Всплывающая подсказка
66
- */
67
- tooltip?: FormattedText | {
68
- (): FormattedText;
69
- };
70
- }
1
+ import { FormattedText } from "../../../../../helpers/formattedText";
2
+ import { UiType } from "../../../../../helpers/IUi";
3
+ import { ControlSize } from "../../../../../views/controls/Control";
4
+ export type ButtonTypes = UiType | "default" | "link" | "group-title" | "extended" | "no-type";
5
+ export interface IButton {
6
+ /**
7
+ * Тип кнопки
8
+ */
9
+ type?: ButtonTypes | (() => ButtonTypes);
10
+ /**
11
+ * Размер кнопки
12
+ */
13
+ size?: ControlSize;
14
+ /**
15
+ * Дочерние элементы
16
+ */
17
+ items?: Button[];
18
+ /**
19
+ * Поле является группировочным
20
+ */
21
+ group?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: string | {
26
+ (): string;
27
+ };
28
+ /**
29
+ * Иконка при наведении
30
+ */
31
+ hoverIcon?: string | {
32
+ (): string;
33
+ };
34
+ /**
35
+ * Название
36
+ */
37
+ title?: any;
38
+ supIcon?: string;
39
+ /**
40
+ * Показывать дочерние при наведении
41
+ */
42
+ itemsShowOnHover?: boolean;
43
+ /**
44
+ * Показывать дочерние по клику
45
+ */
46
+ showItemsOnClick?: boolean;
47
+ /**
48
+ * Скрыть каретку
49
+ */
50
+ hideCaret?: boolean;
51
+ /**
52
+ * Порядок отображения
53
+ */
54
+ order?: number;
55
+ /**
56
+ * Ссылка
57
+ */
58
+ href?: string | {
59
+ (): string;
60
+ };
61
+ code?: string;
62
+ }
63
+ export interface Button extends IButton {
64
+ /**
65
+ * Всплывающая подсказка
66
+ */
67
+ tooltip?: FormattedText | {
68
+ (): FormattedText;
69
+ };
70
+ }