mdt-client 31.3.1 → 31.3.2

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 (117) hide show
  1. package/dist/index.d.ts +11 -11
  2. package/dist/index.js +16 -16
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/package.json +29 -29
  5. package/readme.md +15 -15
  6. package/types/common/Datasource.d.ts +9 -9
  7. package/types/common/Field.d.ts +42 -42
  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 +24 -24
  11. package/types/common/Table.d.ts +47 -47
  12. package/types/common/list/group/groupTypes.d.ts +26 -26
  13. package/types/common/list/hierarchy/hierarchyTypes.d.ts +48 -48
  14. package/types/components/baseFormControls/input/inputOptions.d.ts +31 -31
  15. package/types/components/button/baseButton/buttonOptions.d.ts +12 -12
  16. package/types/components/buttonGroup/buttonGroupOptions.d.ts +7 -7
  17. package/types/components/dropdown/menu/item/dropdownInputItemOptions.d.ts +5 -5
  18. package/types/components/dropdown/menu/item/dropdownItemWrapOptions.d.ts +19 -19
  19. package/types/components/dropdown/menuActionItem/dropdownMenuItemOptions.d.ts +30 -30
  20. package/types/components/form/fieldView/fieldViewOptions.d.ts +12 -12
  21. package/types/components/form/label/labelOptions.d.ts +22 -22
  22. package/types/components/icon/iconOptions.d.ts +22 -22
  23. package/types/components/iconButton/iconButtonOptions.d.ts +10 -10
  24. package/types/components/processPrincipalsList/ProcessPrincipalsListItem.d.ts +5 -5
  25. package/types/components/resizablePanels/panelTitle/panelTitleOptions.d.ts +16 -16
  26. package/types/components/resizablePanels/panelToolbar/panelToolbarOptions.d.ts +4 -4
  27. package/types/components/resizablePanels/resizablePanel/resizablePanelOptions.d.ts +24 -24
  28. package/types/components/resizablePanels/resizablePanelsOptions.d.ts +22 -22
  29. package/types/components/toggleablePanels/toggleablePanelsOptions.d.ts +40 -40
  30. package/types/data/active/ActivationListAdapterTypes.d.ts +6 -6
  31. package/types/datasources/FetchResult.d.ts +5 -5
  32. package/types/helpers/IUi.d.ts +1 -1
  33. package/types/helpers/deleteFromArray.d.ts +1 -1
  34. package/types/helpers/events/EventEmitter.d.ts +7 -7
  35. package/types/helpers/fireEvent.d.ts +4 -4
  36. package/types/helpers/formatOptions.d.ts +6 -6
  37. package/types/helpers/formattedText.d.ts +9 -9
  38. package/types/helpers/pipeline/Pipeline.d.ts +20 -20
  39. package/types/helpers/redraw.d.ts +16 -16
  40. package/types/helpers/types.d.ts +76 -76
  41. package/types/helpers/ui/elementModificators/focusableComponent.d.ts +15 -15
  42. package/types/helpers/ui/elementModificators/modificatorsTypes.d.ts +4 -4
  43. package/types/helpers/ui/keyboardUtils/keyboardUtils.d.ts +23 -23
  44. package/types/helpers/utils/classNames.d.ts +6 -6
  45. package/types/helpers/utils/keyStorage/KeyStorage.d.ts +6 -6
  46. package/types/helpers/utils/object.d.ts +3 -3
  47. package/types/helpers/utils/stringifyControlSize.d.ts +3 -3
  48. package/types/helpers/utils/valued/getValued.d.ts +18 -18
  49. package/types/helpers/zone/IZone.d.ts +8 -8
  50. package/types/security/PermissionLevel.d.ts +40 -40
  51. package/types/security/User.d.ts +19 -19
  52. package/types/services/HotkeyManager.d.ts +4 -4
  53. package/types/services/IFilter.d.ts +308 -308
  54. package/types/services/ModuleData.d.ts +9 -9
  55. package/types/services/api/ApiAccessor/apiV1Types.d.ts +266 -266
  56. package/types/services/api/ApiAccessor/apiV2Types.d.ts +529 -529
  57. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/count/count.d.ts +10 -10
  58. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes.d.ts +28 -28
  59. package/types/services/api/ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes.d.ts +9 -9
  60. package/types/services/api/ApiAccessorRequestAdapter/handlers/messageTypes.d.ts +37 -37
  61. package/types/services/api/ApiRequestOptions.d.ts +27 -27
  62. package/types/services/api/BaseQuery.d.ts +16 -16
  63. package/types/services/api/Query.d.ts +59 -59
  64. package/types/services/api/QuerySorting.d.ts +8 -8
  65. package/types/services/api/ServerResonseType.d.ts +2 -2
  66. package/types/services/commands/Command.d.ts +22 -22
  67. package/types/services/commands/CommandGroup.d.ts +15 -15
  68. package/types/services/commands/CommandManager.d.ts +77 -77
  69. package/types/services/customModules/facades/Form/IFieldControlFacade.d.ts +26 -26
  70. package/types/services/customModules/facades/Form/IFieldControlManagerFacade.d.ts +36 -36
  71. package/types/services/customModules/facades/Form/IFieldStateFacade.d.ts +13 -13
  72. package/types/services/customModules/facades/Form/IFormControlFacade.d.ts +133 -133
  73. package/types/services/customModules/facades/Form/IFormFacade.d.ts +90 -90
  74. package/types/services/customModules/facades/IAppFacade.d.ts +38 -38
  75. package/types/services/customModules/facades/IAuthFacade.d.ts +9 -9
  76. package/types/services/customModules/facades/ILegacyFacade.d.ts +119 -116
  77. package/types/services/customModules/facades/IMdtFacade.d.ts +77 -77
  78. package/types/services/customModules/facades/IModuleRegistryFacade.d.ts +5 -5
  79. package/types/services/customModules/facades/IPageFacade.d.ts +7 -7
  80. package/types/services/customModules/facades/List/Column/IColumnFacade.d.ts +7 -7
  81. package/types/services/customModules/facades/List/IListCellFacade.d.ts +8 -8
  82. package/types/services/customModules/facades/List/IListComponentFacade.d.ts +10 -10
  83. package/types/services/customModules/facades/List/IListControlFacade.d.ts +69 -69
  84. package/types/services/customModules/facades/List/IListRowFacade.d.ts +2 -2
  85. package/types/services/customModules/facades/List/IListServiceFacade.d.ts +42 -42
  86. package/types/services/customModules/facades/components/CodeEditorFacade.d.ts +9 -9
  87. package/types/services/customModules/facades/components/ModalFacade.d.ts +4 -4
  88. package/types/services/customModules/facades/internalModules/importModuleFacade.d.ts +19 -19
  89. package/types/services/customModules/facades/internalModules/modulesFacadeTypes.d.ts +11 -11
  90. package/types/services/customModules/facades/internalModules/statusFacade.d.ts +13 -13
  91. package/types/services/customModules/facades/record/IRecordFacade.d.ts +13 -13
  92. package/types/services/customModules/facades/record/IRecordManagerFacade.d.ts +5 -5
  93. package/types/services/customModules/facades/schema/IFieldFacade.d.ts +9 -9
  94. package/types/services/customModules/facades/schema/IObjectFacade.d.ts +13 -13
  95. package/types/services/customModules/facades/schema/ISchemaFacade.d.ts +5 -5
  96. package/types/services/customModules/facades/services/CommandManagerFacade.d.ts +11 -11
  97. package/types/services/customModules/facades/services/IListButtonExtendPipelineService.d.ts +13 -13
  98. package/types/services/customModules/facades/services/INavigationFacade.d.ts +53 -53
  99. package/types/services/customModules/facades/services/ISecurityFacade.d.ts +13 -13
  100. package/types/services/customModules/facades/utils/IApiFacade.d.ts +54 -54
  101. package/types/services/customModules/facades/utils/IUiComponentsFacade.d.ts +57 -57
  102. package/types/services/customModules/facades/utils/IUiFacade.d.ts +84 -84
  103. package/types/services/customModules/facades/utils/IUtilsFacade.d.ts +19 -19
  104. package/types/services/customModules/facades/utils/ImUtilsFacade.d.ts +26 -26
  105. package/types/services/dropdown/IDropDownMenu.d.ts +41 -41
  106. package/types/views/controls/Control.d.ts +7 -7
  107. package/types/views/controls/panels/panelOptions.d.ts +15 -15
  108. package/types/views/form/controls/commonControl/ICommonControl.d.ts +29 -29
  109. package/types/views/form/controls/fileupload/FileInputFacade.types.d.ts +6 -6
  110. package/types/views/form/controls/monacoEditor/MonacoCodeOptions.schema.d.ts +23 -23
  111. package/types/views/form/controls/monacoEditor/jsonSchemas/Button.schema.d.ts +70 -70
  112. package/types/views/form/controls/toggleablePanels/editor/toggleablePanelsEditorFacadeOptions.d.ts +21 -21
  113. package/types/views/form/formTypes.d.ts +4 -4
  114. package/types/views/form/schema/FormPageOptions.schema.d.ts +17 -17
  115. package/types/views/list/IListView.d.ts +71 -71
  116. package/types/views/list/schema/ListPageOptions.schema.d.ts +114 -114
  117. package/types/views/page/PageZoneTypes.d.ts +1 -1
@@ -1,10 +1,10 @@
1
- import { Query } from "mdtServices/api/Query";
2
- export declare const FETCH_COUNT_ALIAS = "$Count";
3
- export declare type CountMap = {
4
- queryIdx: number;
5
- relatedCountIdx: number;
6
- }[];
7
- export declare function extendQueryByCount(query: Query): {
8
- query: Query;
9
- countMap?: CountMap;
10
- };
1
+ import { Query } from "mdtServices/api/Query";
2
+ export declare const FETCH_COUNT_ALIAS = "$Count";
3
+ export declare type CountMap = {
4
+ queryIdx: number;
5
+ relatedCountIdx: number;
6
+ }[];
7
+ export declare function extendQueryByCount(query: Query): {
8
+ query: Query;
9
+ countMap?: CountMap;
10
+ };
@@ -1,28 +1,28 @@
1
- import { RecordId } from "mdtScripts/common/Record";
2
- import { FieldPath } from "mdtScripts/helpers/types";
3
- import { IFilter } from "mdtServices/IFilter";
4
- export declare type HierarchyQueryMeta = {
5
- hierarchy?: QueryHierarchyBaseData;
6
- hierarchyLoadMore?: QueryHierarchyLoadMoreData;
7
- };
8
- export declare type QueryHierarchyLoadMoreData = {
9
- parentField?: FieldPath;
10
- parentId: RecordId;
11
- filter?: IFilter;
12
- /**
13
- * Если true, то для иерархии явно определены поля primary и parent.
14
- * В этом случае используется стандартный API иерархии.
15
- * Иначе, иерархия строится с помощью расширений API `placeIn` и `dependency`. Такой режим используется, например, в меппинге.
16
- */
17
- isModded?: boolean;
18
- };
19
- export declare type QueryHierarchyBaseData = {
20
- top?: number;
21
- } & WithExpandedIds;
22
- export declare type ExpandedIds = {
23
- id: RecordId;
24
- take: number;
25
- }[];
26
- export declare type WithExpandedIds = {
27
- expandedIds?: ExpandedIds;
28
- };
1
+ import { RecordId } from "mdtScripts/common/Record";
2
+ import { FieldPath } from "mdtScripts/helpers/types";
3
+ import { IFilter } from "mdtServices/IFilter";
4
+ export declare type HierarchyQueryMeta = {
5
+ hierarchy?: QueryHierarchyBaseData;
6
+ hierarchyLoadMore?: QueryHierarchyLoadMoreData;
7
+ };
8
+ export declare type QueryHierarchyLoadMoreData = {
9
+ parentField?: FieldPath;
10
+ parentId: RecordId;
11
+ filter?: IFilter;
12
+ /**
13
+ * Если true, то для иерархии явно определены поля primary и parent.
14
+ * В этом случае используется стандартный API иерархии.
15
+ * Иначе, иерархия строится с помощью расширений API `placeIn` и `dependency`. Такой режим используется, например, в меппинге.
16
+ */
17
+ isModded?: boolean;
18
+ };
19
+ export declare type QueryHierarchyBaseData = {
20
+ top?: number;
21
+ } & WithExpandedIds;
22
+ export declare type ExpandedIds = {
23
+ id: RecordId;
24
+ take: number;
25
+ }[];
26
+ export declare type WithExpandedIds = {
27
+ expandedIds?: ExpandedIds;
28
+ };
@@ -1,9 +1,9 @@
1
- import { Query } from "mdtServices/api/Query";
2
- export declare type PlaceInQueryMeta = {
3
- placeIn?: PlaceInQueryData[];
4
- };
5
- export interface PlaceInQueryData {
6
- query: Query;
7
- name: string;
8
- fk: string;
9
- }
1
+ import { Query } from "mdtServices/api/Query";
2
+ export declare type PlaceInQueryMeta = {
3
+ placeIn?: PlaceInQueryData[];
4
+ };
5
+ export interface PlaceInQueryData {
6
+ query: Query;
7
+ name: string;
8
+ fk: string;
9
+ }
@@ -1,37 +1,37 @@
1
- import { MdtRecord, RecordId } from "mdtScripts/common/Record";
2
- import { UiType } from "mdtScripts/helpers/IUi";
3
- import { ServerResponseType } from "mdtServices/api/ServerResonseType";
4
- export interface DataExtraInformation {
5
- items: DataExtraInformationItems;
6
- type: ServerResponseType;
7
- actions: DataExtraInformationAction[];
8
- hasActions: boolean;
9
- needConfirmation: boolean;
10
- isEmpty: boolean;
11
- }
12
- export declare type DataExtraInformationItems = (DataExtraInformationText | DataExtraInformationRows | DataExtraInformationRefs)[];
13
- declare type DataExtraInformationTextType = Capitalize<UiType | "none">;
14
- export interface DataExtraInformationText {
15
- type: DataExtraInformationTextType;
16
- text: string;
17
- severity?: number;
18
- }
19
- export interface DataExtraInformationRows {
20
- type: "Rows";
21
- rows?: MdtRecord[];
22
- }
23
- export declare type DataExtraInformationRefs = {
24
- type: "Refs";
25
- rows?: {
26
- ID_Object: RecordId;
27
- ID_Record: RecordId;
28
- }[];
29
- };
30
- export interface DataExtraInformationAction {
31
- type: UiType;
32
- icon: string;
33
- title: string;
34
- param: string;
35
- paramValue: any;
36
- }
37
- export {};
1
+ import { MdtRecord, RecordId } from "mdtScripts/common/Record";
2
+ import { UiType } from "mdtScripts/helpers/IUi";
3
+ import { ServerResponseType } from "mdtServices/api/ServerResonseType";
4
+ export interface DataExtraInformation {
5
+ items: DataExtraInformationItems;
6
+ type: ServerResponseType;
7
+ actions: DataExtraInformationAction[];
8
+ hasActions: boolean;
9
+ needConfirmation: boolean;
10
+ isEmpty: boolean;
11
+ }
12
+ export declare type DataExtraInformationItems = (DataExtraInformationText | DataExtraInformationRows | DataExtraInformationRefs)[];
13
+ declare type DataExtraInformationTextType = Capitalize<UiType | "none">;
14
+ export interface DataExtraInformationText {
15
+ type: DataExtraInformationTextType;
16
+ text: string;
17
+ severity?: number;
18
+ }
19
+ export interface DataExtraInformationRows {
20
+ type: "Rows";
21
+ rows?: MdtRecord[];
22
+ }
23
+ export declare type DataExtraInformationRefs = {
24
+ type: "Refs";
25
+ rows?: {
26
+ ID_Object: RecordId;
27
+ ID_Record: RecordId;
28
+ }[];
29
+ };
30
+ export interface DataExtraInformationAction {
31
+ type: UiType;
32
+ icon: string;
33
+ title: string;
34
+ param: string;
35
+ paramValue: any;
36
+ }
37
+ export {};
@@ -1,27 +1,27 @@
1
- export interface ApiRequest {
2
- abort?: () => void;
3
- }
4
- export interface ApiRequestOptions {
5
- req?: (x?: any) => ApiRequest;
6
- onerror?: (e: any) => boolean | void;
7
- onRequestError?: () => void;
8
- camel?: boolean;
9
- multi?: boolean;
10
- method?: string;
11
- xhrConfig?(xhr: XMLHttpRequest): void;
12
- background?: boolean;
13
- ignoreUnwrapError?: boolean;
14
- withCredentials?: boolean;
15
- url?: string;
16
- user?: string;
17
- password?: string;
18
- data?: any;
19
- unwrapSuccess?(data: any): any;
20
- unwrapError?(data: any, options?: any): any;
21
- serialize?(dataToSerialize: any): string;
22
- deserialize?(dataToDeserialize: string): any;
23
- extract?(xhr: XMLHttpRequest, options: ApiRequestOptions): string;
24
- type?(data: Object): void;
25
- config?(xhr: XMLHttpRequest, options?: ApiRequestOptions): XMLHttpRequest;
26
- dataType?: string;
27
- }
1
+ export interface ApiRequest {
2
+ abort?: () => void;
3
+ }
4
+ export interface ApiRequestOptions {
5
+ req?: (x?: any) => ApiRequest;
6
+ onerror?: (e: any) => boolean | void;
7
+ onRequestError?: () => void;
8
+ camel?: boolean;
9
+ multi?: boolean;
10
+ method?: string;
11
+ xhrConfig?(xhr: XMLHttpRequest): void;
12
+ background?: boolean;
13
+ ignoreUnwrapError?: boolean;
14
+ withCredentials?: boolean;
15
+ url?: string;
16
+ user?: string;
17
+ password?: string;
18
+ data?: any;
19
+ unwrapSuccess?(data: any): any;
20
+ unwrapError?(data: any, options?: any): any;
21
+ serialize?(dataToSerialize: any): string;
22
+ deserialize?(dataToDeserialize: string): any;
23
+ extract?(xhr: XMLHttpRequest, options: ApiRequestOptions): string;
24
+ type?(data: Object): void;
25
+ config?(xhr: XMLHttpRequest, options?: ApiRequestOptions): XMLHttpRequest;
26
+ dataType?: string;
27
+ }
@@ -1,16 +1,16 @@
1
- import { IFilter } from "../IFilter";
2
- import { QuerySorting } from "./QuerySorting";
3
- export interface BaseQuery {
4
- /** Названия выбранных полей */
5
- select?: QuerySelect;
6
- /** Количество записей */
7
- top?: number;
8
- /** Фильтр запроса */
9
- filter?: IFilter;
10
- /** Количество пропускаемых с начала записей */
11
- skip?: number;
12
- /** Сортировка записей */
13
- sorting?: QuerySorting[];
14
- count?: boolean;
15
- }
16
- export declare type QuerySelect = string[];
1
+ import { IFilter } from "../IFilter";
2
+ import { QuerySorting } from "./QuerySorting";
3
+ export interface BaseQuery {
4
+ /** Названия выбранных полей */
5
+ select?: QuerySelect;
6
+ /** Количество записей */
7
+ top?: number;
8
+ /** Фильтр запроса */
9
+ filter?: IFilter;
10
+ /** Количество пропускаемых с начала записей */
11
+ skip?: number;
12
+ /** Сортировка записей */
13
+ sorting?: QuerySorting[];
14
+ count?: boolean;
15
+ }
16
+ export declare type QuerySelect = string[];
@@ -1,59 +1,59 @@
1
- import { Grouping } from "../../common/list/group/groupTypes";
2
- import { HierarchyQuery } from "../../common/list/hierarchy/hierarchyTypes";
3
- import { Table } from "../../common/Table";
4
- import { BaseQuery } from "./BaseQuery";
5
- import { ApiV1 } from "./ApiAccessor/apiV1Types";
6
- import { PlaceInQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes";
7
- import { HierarchyQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
8
- import { ApiV2 } from "./ApiAccessor/apiV2Types";
9
- export interface Query extends BaseQuery {
10
- options?: QueryOptions;
11
- withCount?: boolean;
12
- distinct?: boolean;
13
- key?: string;
14
- params?: QueryParams & {
15
- [name: string]: any;
16
- };
17
- dependency?: {
18
- table: string;
19
- field: string;
20
- };
21
- aggregate?: boolean;
22
- export?: string;
23
- format?: string;
24
- hierarchy?: HierarchyQuery;
25
- placeIn?: string;
26
- date?: Date;
27
- table?: Table;
28
- children?: Query[];
29
- parent?: Query;
30
- groups?: Grouping.Group;
31
- disableDefaultSorting?: boolean;
32
- pure?: boolean;
33
- audit?: TicketQuery;
34
- workflow?: TicketQuery;
35
- tag?: TicketQuery;
36
- skippedRowsCount?: number;
37
- workflowStage?: boolean;
38
- exts?: QueryExts;
39
- /**
40
- * Дополнительная информация по запросу, содержит логические данные.
41
- * Используется при конвертации запроса под API v1/v2, чтобы не парсить сгенерированные строки, напр. placeIn
42
- */
43
- meta?: PlaceInQueryMeta & HierarchyQueryMeta;
44
- }
45
- export interface QueryExts {
46
- workflowStage?: ApiV2.Request.Fetch.Exts.WorkflowStage;
47
- }
48
- declare type QueryParams = ApiV1.Request.Fetch.Params;
49
- export declare type TicketQuery = string | "ticket";
50
- export interface QueryOptions {
51
- root?: boolean;
52
- reset?: boolean;
53
- firstQuery?: boolean;
54
- secondary?: boolean;
55
- ext?: {
56
- [ext: string]: any;
57
- };
58
- }
59
- export {};
1
+ import { Grouping } from "../../common/list/group/groupTypes";
2
+ import { HierarchyQuery } from "../../common/list/hierarchy/hierarchyTypes";
3
+ import { Table } from "../../common/Table";
4
+ import { BaseQuery } from "./BaseQuery";
5
+ import { ApiV1 } from "./ApiAccessor/apiV1Types";
6
+ import { PlaceInQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/placeIn/placeInQueryTypes";
7
+ import { HierarchyQueryMeta } from "./ApiAccessorRequestAdapter/handlers/fetch/helpers/query/exts/hierarchy/hierarchyQueryHelpersTypes";
8
+ import { ApiV2 } from "./ApiAccessor/apiV2Types";
9
+ export interface Query extends BaseQuery {
10
+ options?: QueryOptions;
11
+ withCount?: boolean;
12
+ distinct?: boolean;
13
+ key?: string;
14
+ params?: QueryParams & {
15
+ [name: string]: any;
16
+ };
17
+ dependency?: {
18
+ table: string;
19
+ field: string;
20
+ };
21
+ aggregate?: boolean;
22
+ export?: string;
23
+ format?: string;
24
+ hierarchy?: HierarchyQuery;
25
+ placeIn?: string;
26
+ date?: Date;
27
+ table?: Table;
28
+ children?: Query[];
29
+ parent?: Query;
30
+ groups?: Grouping.Group;
31
+ disableDefaultSorting?: boolean;
32
+ pure?: boolean;
33
+ audit?: TicketQuery;
34
+ workflow?: TicketQuery;
35
+ tag?: TicketQuery;
36
+ skippedRowsCount?: number;
37
+ workflowStage?: boolean;
38
+ exts?: QueryExts;
39
+ /**
40
+ * Дополнительная информация по запросу, содержит логические данные.
41
+ * Используется при конвертации запроса под API v1/v2, чтобы не парсить сгенерированные строки, напр. placeIn
42
+ */
43
+ meta?: PlaceInQueryMeta & HierarchyQueryMeta;
44
+ }
45
+ export interface QueryExts {
46
+ workflowStage?: ApiV2.Request.Fetch.Exts.WorkflowStage;
47
+ }
48
+ declare type QueryParams = ApiV1.Request.Fetch.Params;
49
+ export declare type TicketQuery = string | "ticket";
50
+ export interface QueryOptions {
51
+ root?: boolean;
52
+ reset?: boolean;
53
+ firstQuery?: boolean;
54
+ secondary?: boolean;
55
+ ext?: {
56
+ [ext: string]: any;
57
+ };
58
+ }
59
+ export {};
@@ -1,8 +1,8 @@
1
- declare type Cast = "date";
2
- export declare type QuerySortingObject = {
3
- path: string;
4
- asc?: boolean;
5
- cast?: Cast;
6
- };
7
- export declare type QuerySorting = string | QuerySortingObject;
8
- export {};
1
+ declare type Cast = "date";
2
+ export declare type QuerySortingObject = {
3
+ path: string;
4
+ asc?: boolean;
5
+ cast?: Cast;
6
+ };
7
+ export declare type QuerySorting = string | QuerySortingObject;
8
+ export {};
@@ -1,2 +1,2 @@
1
- export declare const allServerResponseTypes: readonly ["Error", "Confirmation", "Warning", "Success", "Fatal", "Information"];
2
- export declare type ServerResponseType = typeof allServerResponseTypes[number];
1
+ export declare const allServerResponseTypes: readonly ["Error", "Confirmation", "Warning", "Success", "Fatal", "Information"];
2
+ export declare type ServerResponseType = typeof allServerResponseTypes[number];
@@ -1,22 +1,22 @@
1
- import { Icon } from "../../components/icon/iconOptions";
2
- import { FormattedText } from "../../helpers/formattedText";
3
- import { AnyObject, Valued } from "../../helpers/types";
4
- import { CommandBase, CommandGroupProps, CommandProps, Hotkey } from "./CommandManager";
5
- interface CommandOptions<Context> {
6
- getContext: () => Context;
7
- }
8
- export declare class Command<Context = AnyObject> implements CommandProps {
9
- private base;
10
- private options;
11
- readonly code: string;
12
- readonly title: string;
13
- readonly description: Valued<FormattedText>;
14
- readonly icon: Valued<Icon>;
15
- readonly hotkeys: Hotkey[];
16
- readonly group: CommandGroupProps;
17
- constructor(base: CommandBase, options: CommandOptions<Context>);
18
- visible(): boolean;
19
- enabled(): boolean;
20
- execute(): void;
21
- }
22
- export {};
1
+ import { Icon } from "../../components/icon/iconOptions";
2
+ import { FormattedText } from "../../helpers/formattedText";
3
+ import { AnyObject, Valued } from "../../helpers/types";
4
+ import { CommandBase, CommandGroupProps, CommandProps, Hotkey } from "./CommandManager";
5
+ interface CommandOptions<Context> {
6
+ getContext: () => Context;
7
+ }
8
+ export declare class Command<Context = AnyObject> implements CommandProps {
9
+ private base;
10
+ private options;
11
+ readonly code: string;
12
+ readonly title: string;
13
+ readonly description: Valued<FormattedText>;
14
+ readonly icon: Valued<Icon>;
15
+ readonly hotkeys: Hotkey[];
16
+ readonly group: CommandGroupProps;
17
+ constructor(base: CommandBase, options: CommandOptions<Context>);
18
+ visible(): boolean;
19
+ enabled(): boolean;
20
+ execute(): void;
21
+ }
22
+ export {};
@@ -1,15 +1,15 @@
1
- import { AnyObject } from "../../helpers/types";
2
- import { CommandBase, CommandGroupProps } from "./CommandManager";
3
- interface CommandGroupOptions<Context> {
4
- addCommands: (commands: CommandBase<Context>[], groupCode: string) => void;
5
- }
6
- export declare class CommandGroup<Context = AnyObject> implements CommandGroupProps {
7
- private options;
8
- readonly code: string;
9
- readonly title: string;
10
- readonly description?: string;
11
- readonly icon?: string;
12
- constructor(group: CommandGroupProps, options: CommandGroupOptions<Context>);
13
- addCommands(commands: CommandBase<Context>[]): void;
14
- }
15
- export {};
1
+ import { AnyObject } from "../../helpers/types";
2
+ import { CommandBase, CommandGroupProps } from "./CommandManager";
3
+ interface CommandGroupOptions<Context> {
4
+ addCommands: (commands: CommandBase<Context>[], groupCode: string) => void;
5
+ }
6
+ export declare class CommandGroup<Context = AnyObject> implements CommandGroupProps {
7
+ private options;
8
+ readonly code: string;
9
+ readonly title: string;
10
+ readonly description?: string;
11
+ readonly icon?: string;
12
+ constructor(group: CommandGroupProps, options: CommandGroupOptions<Context>);
13
+ addCommands(commands: CommandBase<Context>[]): void;
14
+ }
15
+ export {};
@@ -1,77 +1,77 @@
1
- import { Icon } from "../../components/icon/iconOptions";
2
- import { FormattedText } from "../../helpers/formattedText";
3
- import { AnyObject, CommandEvent, Valued } from "../../helpers/types";
4
- import { IFormControlFacade } from "../customModules/facades/Form/IFormControlFacade";
5
- import { IListControlFacade } from "../customModules/facades/List/IListControlFacade";
6
- import { Command } from "./Command";
7
- import { CommandGroup } from "./CommandGroup";
8
- export interface CommandGroupProps {
9
- /** Уникальный код группы команд */
10
- code: string;
11
- /** Наименование группы команд */
12
- title: string;
13
- /** Описание группы команд */
14
- description?: string;
15
- /** Иконка группы команд */
16
- icon?: Icon;
17
- }
18
- export declare type Hotkey = string;
19
- export interface CommandProps {
20
- /** Уникальный код команды */
21
- code: string;
22
- /** Наименование команды */
23
- title: string;
24
- /** Описание команды */
25
- description?: Valued<FormattedText>;
26
- /** Иконка команды */
27
- icon?: Valued<Icon>;
28
- /**
29
- * Горячие клавиши для вызова команды.
30
- *
31
- * Комбинаций клавиш для команды может быть несколько.
32
- *
33
- * Комбинация клавиш задается строкой и указывается в следующем порядке `Ctrl/Cmd + Alt + Shift + Любая другая клавиша`.
34
- *
35
- * Клавиши разделяются двумя пробелами и символом "+" между ними.
36
- *
37
- * Например `Alt + Shift + Y`.
38
- */
39
- hotkeys?: Hotkey[];
40
- /** Группа которой принадлежит команда */
41
- group?: CommandGroupProps;
42
- }
43
- export interface CommandBase<Context = AnyObject> extends CommandProps {
44
- /** Функция которая будет вызвана при выполнении команды */
45
- execute: (context: Context) => void;
46
- /** Условие активности команды */
47
- enabled?: (context: Context) => boolean;
48
- /** Условие видимости команды в быстрых командах */
49
- visible?: (context: Context) => boolean;
50
- }
51
- export declare type HotkeyCommands = {
52
- [hotkey: string]: () => void;
53
- };
54
- export interface CommandManagerContext {
55
- list?: IListControlFacade;
56
- form?: IFormControlFacade;
57
- [contextProp: string]: any;
58
- }
59
- export declare class CommandManagerClass<Context> {
60
- private groups;
61
- private commands;
62
- private hotkeyCommands;
63
- private context;
64
- addGroup(group: CommandGroupProps, commands?: CommandBase<Context>[]): CommandGroup<Context>;
65
- addCommands(commands: CommandBase<Context>[], groupCode?: string): void;
66
- getCommand(code: string): Command<Context>;
67
- getCommandList(): Command<Context>[];
68
- execByEvent(event: CommandEvent): void;
69
- setContext(key: keyof Context, value: Context[keyof Context]): void;
70
- removeContext(key: keyof Context): void;
71
- private createGroup;
72
- private validateGroup;
73
- private findGroup;
74
- private validateCommand;
75
- private pushCommands;
76
- }
77
- export declare const CommandManager: CommandManagerClass<CommandManagerContext>;
1
+ import { Icon } from "../../components/icon/iconOptions";
2
+ import { FormattedText } from "../../helpers/formattedText";
3
+ import { AnyObject, CommandEvent, Valued } from "../../helpers/types";
4
+ import { IFormControlFacade } from "../customModules/facades/Form/IFormControlFacade";
5
+ import { IListControlFacade } from "../customModules/facades/List/IListControlFacade";
6
+ import { Command } from "./Command";
7
+ import { CommandGroup } from "./CommandGroup";
8
+ export interface CommandGroupProps {
9
+ /** Уникальный код группы команд */
10
+ code: string;
11
+ /** Наименование группы команд */
12
+ title: string;
13
+ /** Описание группы команд */
14
+ description?: string;
15
+ /** Иконка группы команд */
16
+ icon?: Icon;
17
+ }
18
+ export declare type Hotkey = string;
19
+ export interface CommandProps {
20
+ /** Уникальный код команды */
21
+ code: string;
22
+ /** Наименование команды */
23
+ title: string;
24
+ /** Описание команды */
25
+ description?: Valued<FormattedText>;
26
+ /** Иконка команды */
27
+ icon?: Valued<Icon>;
28
+ /**
29
+ * Горячие клавиши для вызова команды.
30
+ *
31
+ * Комбинаций клавиш для команды может быть несколько.
32
+ *
33
+ * Комбинация клавиш задается строкой и указывается в следующем порядке `Ctrl/Cmd + Alt + Shift + Любая другая клавиша`.
34
+ *
35
+ * Клавиши разделяются двумя пробелами и символом "+" между ними.
36
+ *
37
+ * Например `Alt + Shift + Y`.
38
+ */
39
+ hotkeys?: Hotkey[];
40
+ /** Группа которой принадлежит команда */
41
+ group?: CommandGroupProps;
42
+ }
43
+ export interface CommandBase<Context = AnyObject> extends CommandProps {
44
+ /** Функция которая будет вызвана при выполнении команды */
45
+ execute: (context: Context) => void;
46
+ /** Условие активности команды */
47
+ enabled?: (context: Context) => boolean;
48
+ /** Условие видимости команды в быстрых командах */
49
+ visible?: (context: Context) => boolean;
50
+ }
51
+ export declare type HotkeyCommands = {
52
+ [hotkey: string]: () => void;
53
+ };
54
+ export interface CommandManagerContext {
55
+ list?: IListControlFacade;
56
+ form?: IFormControlFacade;
57
+ [contextProp: string]: any;
58
+ }
59
+ export declare class CommandManagerClass<Context> {
60
+ private groups;
61
+ private commands;
62
+ private hotkeyCommands;
63
+ private context;
64
+ addGroup(group: CommandGroupProps, commands?: CommandBase<Context>[]): CommandGroup<Context>;
65
+ addCommands(commands: CommandBase<Context>[], groupCode?: string): void;
66
+ getCommand(code: string): Command<Context>;
67
+ getCommandList(): Command<Context>[];
68
+ execByEvent(event: CommandEvent): void;
69
+ setContext(key: keyof Context, value: Context[keyof Context]): void;
70
+ removeContext(key: keyof Context): void;
71
+ private createGroup;
72
+ private validateGroup;
73
+ private findGroup;
74
+ private validateCommand;
75
+ private pushCommands;
76
+ }
77
+ export declare const CommandManager: CommandManagerClass<CommandManagerContext>;