eservices-core 1.1.4 → 1.2.0

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 (96) hide show
  1. package/dist/frontend/core/classes/ApplicationManager.d.ts +5 -5
  2. package/dist/frontend/core/classes/Communication.d.ts +1 -1
  3. package/dist/frontend/core/classes/ErrorStorageSystem.d.ts +1 -1
  4. package/dist/frontend/core/classes/InterfaceForm.d.ts +1 -1
  5. package/dist/frontend/core/classes/List.d.ts +2 -2
  6. package/dist/frontend/core/classes/NotificationSystem.d.ts +1 -1
  7. package/dist/frontend/core/classes/new/List.d.ts +6 -6
  8. package/dist/frontend/core/classes/new/Table.d.ts +1 -1
  9. package/dist/frontend/core/classes/new/get-table-row.d.ts +1 -1
  10. package/dist/frontend/core/classes/table/Table.d.ts +1 -1
  11. package/dist/frontend/core/hooks/use-customer-state.d.ts +8 -8
  12. package/dist/frontend/core/hooks/use-form-label.d.ts +1 -1
  13. package/dist/frontend/core/hooks/use-form-metadata.d.ts +9 -9
  14. package/dist/frontend/core/hooks/use-wizard.d.ts +1 -1
  15. package/dist/frontend/core/index.d.ts +730 -30
  16. package/dist/frontend/core/internationalization/translate.d.ts +3 -3
  17. package/dist/frontend/core/services/billing-service.d.ts +1 -1
  18. package/dist/frontend/core/socket/use-socket.d.ts +1 -1
  19. package/dist/frontend/core/utils/Filter.d.ts +1 -1
  20. package/dist/frontend/core/utils/Journal.d.ts +2 -0
  21. package/dist/frontend/core/widgets/breadcrumbs/widget-breadcrumb-item.vue.d.ts +8 -10
  22. package/dist/frontend/core/widgets/breadcrumbs/widget-breadcrumbs.vue.d.ts +5 -6
  23. package/dist/frontend/core/widgets/buttons/Button.vue.d.ts +16 -0
  24. package/dist/frontend/core/widgets/buttons/WidgetButton.vue.d.ts +17 -23
  25. package/dist/frontend/core/widgets/buttons/index.d.ts +152 -2
  26. package/dist/frontend/core/widgets/buttons/multi-button/WidgetMultiButton.vue.d.ts +7 -10
  27. package/dist/frontend/core/widgets/cards/widget-card.vue.d.ts +18 -9
  28. package/dist/frontend/core/widgets/containers/ContainerAuthView.vue.d.ts +2 -0
  29. package/dist/frontend/core/widgets/containers/ContainerFormElem.vue.d.ts +20 -0
  30. package/dist/frontend/core/widgets/containers/index.d.ts +20 -3
  31. package/dist/frontend/core/widgets/errorSystem/default/WidgetError.vue.d.ts +11 -14
  32. package/dist/frontend/core/widgets/errorSystem/default/WidgetErrorGroup.vue.d.ts +9 -8
  33. package/dist/frontend/core/widgets/errorSystem/default/WidgetNotificationSystem.vue.d.ts +1 -3
  34. package/dist/frontend/core/widgets/errorSystem/index.d.ts +1 -1
  35. package/dist/frontend/core/widgets/forms/WidgetForm.vue.d.ts +18 -0
  36. package/dist/frontend/core/widgets/forms/head/WidgetFormFunctionItem.vue.d.ts +8 -0
  37. package/dist/frontend/core/widgets/forms/head/WidgetFormTitle.vue.d.ts +6 -0
  38. package/dist/frontend/core/widgets/forms/index.d.ts +17 -1
  39. package/dist/frontend/core/widgets/forms/naomi/WidgetForm.vue.d.ts +24 -35
  40. package/dist/frontend/core/widgets/forms/naomi/WidgetFormInfo.vue.d.ts +9 -12
  41. package/dist/frontend/core/widgets/icons/Icon.vue.d.ts +8 -0
  42. package/dist/frontend/core/widgets/icons/index.d.ts +7 -1
  43. package/dist/frontend/core/widgets/image/widget-image.vue.d.ts +8 -12
  44. package/dist/frontend/core/widgets/index.d.ts +712 -15
  45. package/dist/frontend/core/widgets/inputs/default-style/FragmentInputSelectItem.vue.d.ts +11 -0
  46. package/dist/frontend/core/widgets/inputs/default-style/InputLoadFile.vue.d.ts +76 -0
  47. package/dist/frontend/core/widgets/inputs/default-style/InputSelect.vue.d.ts +64 -0
  48. package/dist/frontend/core/widgets/inputs/default-style/InputText.vue.d.ts +122 -0
  49. package/dist/frontend/core/widgets/inputs/default-style/InputToggle.vue.d.ts +57 -0
  50. package/dist/frontend/core/widgets/inputs/default-style/index.d.ts +313 -4
  51. package/dist/frontend/core/widgets/inputs/index.d.ts +506 -6
  52. package/dist/frontend/core/widgets/inputs/line-style/InputText.vue.d.ts +73 -0
  53. package/dist/frontend/core/widgets/inputs/line-style/WidgetInputContainer.vue.d.ts +8 -0
  54. package/dist/frontend/core/widgets/inputs/line-style/index.d.ts +72 -1
  55. package/dist/frontend/core/widgets/inputs/naomi-style/InputText.vue.d.ts +124 -0
  56. package/dist/frontend/core/widgets/inputs/naomi-style/index.d.ts +121 -1
  57. package/dist/frontend/core/widgets/inputs/widget-input-check.vue.d.ts +7 -7
  58. package/dist/frontend/core/widgets/list/list-head/widget-list-head-cell.vue.d.ts +61 -0
  59. package/dist/frontend/core/widgets/list/list-head/widget-list-head.vue.d.ts +21 -0
  60. package/dist/frontend/core/widgets/list/widget-list-row.vue.d.ts +1 -9
  61. package/dist/frontend/core/widgets/list/widget-list.vue.d.ts +17 -30
  62. package/dist/frontend/core/widgets/modals/ModalWait.vue.d.ts +6 -0
  63. package/dist/frontend/core/widgets/modals/modal-validation/modal-validation-item.vue.d.ts +12 -14
  64. package/dist/frontend/core/widgets/modals/modal-validation/modal-validation.vue.d.ts +4 -6
  65. package/dist/frontend/core/widgets/modals/modal-wrap.vue.d.ts +12 -7
  66. package/dist/frontend/core/widgets/new/widget-table-form.vue.d.ts +11 -17
  67. package/dist/frontend/core/widgets/new/widget-table-head.vue.d.ts +6 -0
  68. package/dist/frontend/core/widgets/new/widget-table-row.vue.d.ts +1 -9
  69. package/dist/frontend/core/widgets/new/widget-table.vue.d.ts +27 -37
  70. package/dist/frontend/core/widgets/section/widget-section.vue.d.ts +12 -9
  71. package/dist/frontend/core/widgets/spinner/WidgetSpinner.vue.d.ts +4 -8
  72. package/dist/frontend/core/widgets/spinner/index.d.ts +9 -1
  73. package/dist/frontend/core/widgets/spinner/widget-loader.vue.d.ts +6 -10
  74. package/dist/frontend/core/widgets/tables/widget-table-form.vue.d.ts +10 -16
  75. package/dist/frontend/core/widgets/tables/widget-table-head.vue.d.ts +6 -0
  76. package/dist/frontend/core/widgets/tables/widget-table-row.vue.d.ts +43 -11
  77. package/dist/frontend/core/widgets/tables/widget-table.vue.d.ts +18 -25
  78. package/dist/frontend/src/pages/communication/main.d.ts +1 -0
  79. package/dist/frontend/src/pages/form/router/index.d.ts +2 -0
  80. package/dist/frontend/src/pages/interface/main.d.ts +1 -0
  81. package/dist/frontend/src/pages/interface/router/index.d.ts +2 -0
  82. package/dist/frontend/src/pages/list/main.d.ts +1 -0
  83. package/dist/frontend/src/pages/table/main.d.ts +1 -0
  84. package/dist/frontend/src/pages/ui/router/index.d.ts +2 -0
  85. package/dist/frontend/src/styles.d.ts +3 -0
  86. package/dist/frontend/tests/unit/get-prop-from-object.spec.d.ts +1 -0
  87. package/dist/frontend/tests/unit/graphql.spec.d.ts +1 -0
  88. package/dist/frontend/tests/unit/parseCSSVariables.spec.d.ts +1 -0
  89. package/dist/frontend/tests/unit/recursive-object-wrap.spec.d.ts +1 -0
  90. package/dist/frontend/tests/unit/translate.spec.d.ts +1 -0
  91. package/dist/frontend/tests/unit/values-to-upper-case.spec.d.ts +1 -0
  92. package/package.json +21 -19
  93. package/dist/backend/src/types/billing.d.ts +0 -23
  94. package/dist/backend/src/types/main.d.ts +0 -147
  95. package/dist/frontend/core/widgets/list/widget-list-head.vue.d.ts +0 -4
  96. package/dist/index.js +0 -6286
@@ -93,12 +93,12 @@ declare class ApplicationManager extends EventEmitter {
93
93
  declare const Manager: ApplicationManager;
94
94
  export { ApplicationManager, Manager };
95
95
  export declare function useManagerState(): {
96
- contextType: "person" | "organization";
97
- contextId: number;
96
+ contextType: "person" | "organization" | undefined;
97
+ contextId: number | undefined;
98
98
  context: {
99
99
  id: number;
100
100
  name: string;
101
- email?: string;
102
- photo?: string;
103
- };
101
+ email?: string | undefined;
102
+ photo?: string | undefined;
103
+ } | null;
104
104
  };
@@ -14,7 +14,7 @@ export default class Communication extends EventEmitter {
14
14
  }
15
15
  export declare function useCommunication(communication: Communication): {
16
16
  array: {
17
- appName: "SCP" | "BAP";
17
+ appName: "BAP" | "SCP";
18
18
  catalogId: string;
19
19
  content: string;
20
20
  id: number;
@@ -8,7 +8,7 @@ export default class ErrorStorageSystem {
8
8
  id: number;
9
9
  name: string;
10
10
  message: string;
11
- stack?: string;
11
+ stack?: string | undefined;
12
12
  }[];
13
13
  static add(error: CoreError): void;
14
14
  static remove(id: number): void;
@@ -49,7 +49,7 @@ export default class InterfaceForm extends EventEmitter {
49
49
  * Возвращает Экземпляр подписанного элемента или undefined
50
50
  * @return {object | undefined} AggregateItem
51
51
  * */
52
- findDepend(name: string): FormControllerInterface;
52
+ findDepend(name: string): FormControllerInterface | undefined;
53
53
  /**
54
54
  * @description Метод для подписки на форму
55
55
  * */
@@ -45,10 +45,10 @@ export default class List extends EventEmitter {
45
45
  * Output: { name: 'title', value: 'GG_GG'}
46
46
  */
47
47
  static getCellInfo<T extends Pick<ListCell, 'name' | 'value'>>(cell: T, rowValues: any): {
48
- name: string;
48
+ name: string | null;
49
49
  value: Values;
50
50
  };
51
- static getCellName<T extends Pick<ListCell, 'name'>>(cell: T): string;
51
+ static getCellName<T extends Pick<ListCell, 'name'>>(cell: T): string | null;
52
52
  }
53
53
  export declare function useListState(list: List): {
54
54
  array: any[];
@@ -21,7 +21,7 @@ declare const _default: {
21
21
  /**
22
22
  * @description Function remove item by id. Return true if card was founded, otherwise false.
23
23
  * */
24
- remove(id: number): boolean;
24
+ remove(id: number): false | undefined;
25
25
  /**
26
26
  * @description Removing child message, Throwing error if card of children not founded.
27
27
  * */
@@ -43,7 +43,7 @@ export declare class List<T = {}> extends EventEmitter {
43
43
  /**
44
44
  * @description Получение записи по ROW_KEY.
45
45
  * */
46
- atByKey(rowKey: number): T & IDefaultListData;
46
+ atByKey(rowKey: number): (T & IDefaultListData) | undefined;
47
47
  /**
48
48
  * @description Возвращает индекс записи по её RowKey, если запись не найдена то -1.
49
49
  * */
@@ -52,7 +52,7 @@ export declare class List<T = {}> extends EventEmitter {
52
52
  * @description Получение значения ключа из объекта
53
53
  * */
54
54
  static getKey<T extends IDefaultListData>(data: T): number;
55
- static hasKey(v: unknown): any;
55
+ static hasKey(v: unknown): boolean;
56
56
  /**
57
57
  * @description Добавляет к массиву новые элементы.
58
58
  * */
@@ -98,7 +98,7 @@ export declare class List<T = {}> extends EventEmitter {
98
98
  /**
99
99
  * @description Methods using for get name from cell config.
100
100
  * */
101
- static getCellName<T extends Pick<IListCell, 'name'>>(cell: T): string;
101
+ static getCellName<T extends Pick<IListCell, 'name'>>(cell: T): string | null;
102
102
  /**
103
103
  * @description Получение стандартной информации из ячейки и значений. {name, value}
104
104
  * @example
@@ -107,8 +107,8 @@ export declare class List<T = {}> extends EventEmitter {
107
107
  * Output: { name: 'title', value: 'GG_GG'}
108
108
  */
109
109
  static getCellInfo<T extends Pick<IListCell, 'name' | 'value'>>(cell: T, rowValues: any): {
110
- name: string;
111
- value: import("../../types").Values;
110
+ name: string | null;
111
+ value: string | number | boolean | import("../../types").ValuesInterface | null;
112
112
  };
113
113
  }
114
114
  export interface IListParams {
@@ -161,7 +161,7 @@ export declare function useListFilter(list: List): IFilters;
161
161
  * Данный хук позволяет хранить и работать с выделенными элементами.
162
162
  * @param storedItems - Реактивный объект значений. Может передаваться как ref и как reactive
163
163
  */
164
- export declare function useListSelect<T>(storedItems: Ref<T[]> | T[]): (T[] | import("vue").ComputedRef<boolean> | ((value?: T) => void))[];
164
+ export declare function useListSelect<T>(storedItems: Ref<T[]> | T[]): (import("vue").ComputedRef<boolean> | T[] | ((value: T) => void))[];
165
165
  export declare type ListCellType = 'date' | 'dateWithTime' | 'dateTime' | 'toggle' | 'select' | 'number' | 'multi-select';
166
166
  export interface IDefaultListData {
167
167
  [LIST_ROW_KEY]: number;
@@ -21,7 +21,7 @@ interface ITableChange<T> {
21
21
  status: 'active' | 'inactive';
22
22
  }
23
23
  export declare function useTableActiveRow(): {
24
- activeRow: import("vue").Ref<string | 0>;
24
+ activeRow: import("vue").Ref<string | 0 | null>;
25
25
  activateRow: (v: any) => void;
26
26
  };
27
27
  export {};
@@ -2,7 +2,7 @@ import { IListCell } from "./List";
2
2
  import { VNode } from "vue";
3
3
  export declare function setupListRow<T extends IRowProps, U extends IRowContext>(props: T, context: U): () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
4
  [key: string]: any;
5
- }>;
5
+ }> | null;
6
6
  interface IRowProps {
7
7
  config: IListCell[];
8
8
  values: Record<string, any>;
@@ -61,7 +61,7 @@ export declare function useActiveRowGenerator(fn: (a: null | number) => void): (
61
61
  deactivate(): void;
62
62
  };
63
63
  export declare function useTableState(table: Table): {
64
- activeRow: import("vue").Ref<number>;
64
+ activeRow: import("vue").Ref<number | null>;
65
65
  array: import("vue").ComputedRef<any[]>;
66
66
  };
67
67
  export declare function useTableRequest(table: Table, options?: {
@@ -4,24 +4,24 @@ import { ICustomerContext } from "../classes/ApplicationManager";
4
4
  * */
5
5
  export default function useCustomerState(): {
6
6
  state: {
7
- readonly contextId: number;
7
+ readonly contextId: number | undefined;
8
8
  readonly person: {
9
9
  readonly id: number;
10
10
  readonly name: string;
11
- readonly email?: string;
12
- readonly photo?: string;
13
- };
11
+ readonly email?: string | undefined;
12
+ readonly photo?: string | undefined;
13
+ } | undefined;
14
14
  readonly organizations: readonly {
15
15
  readonly id: number;
16
16
  readonly name: string;
17
- readonly email?: string;
18
- readonly photo?: string;
17
+ readonly email?: string | undefined;
18
+ readonly photo?: string | undefined;
19
19
  }[];
20
20
  readonly ready: boolean;
21
21
  readonly user: {
22
22
  readonly id: number;
23
- };
23
+ } | undefined;
24
24
  };
25
- currentContext: import("vue").ComputedRef<ICustomerContext>;
25
+ currentContext: import("vue").ComputedRef<ICustomerContext | null>;
26
26
  isPerson: import("vue").ComputedRef<boolean>;
27
27
  };
@@ -4,5 +4,5 @@ export default function useFormLabel(form: Form): {
4
4
  title: string;
5
5
  type: string;
6
6
  };
7
- update: (code: number) => Promise<void>;
7
+ update: (code: number) => Promise<void> | undefined;
8
8
  };
@@ -30,33 +30,33 @@ export default function useFormMetadata(form: Form, id: number): {
30
30
  type: "Ordinary";
31
31
  versioned: boolean;
32
32
  fields: {
33
- aggregatedEntity: string;
33
+ aggregatedEntity: string | null;
34
34
  canGet: boolean;
35
35
  canSet: boolean;
36
36
  canSetForEdit: boolean;
37
37
  canSetForNew: boolean;
38
38
  dataType: "Entity" | "Integer" | "Guid" | "String" | "Decimal" | "DateTime" | "List";
39
39
  description: boolean;
40
- entityEnum: string;
41
- foreignEntityPrimaryKeyField: string;
40
+ entityEnum: string | null;
41
+ foreignEntityPrimaryKeyField: string | null;
42
42
  isEmbedded: boolean;
43
43
  isForeignKey: boolean;
44
44
  isPrimaryKey: boolean;
45
45
  name: string;
46
- ownedLocalField: string;
46
+ ownedLocalField: string | null;
47
47
  ownerEntity: string;
48
48
  presentationType: string;
49
- referencedEntity: string;
50
- releatedLocalField: string;
49
+ referencedEntity: string | null;
50
+ releatedLocalField: string | null;
51
51
  required: boolean;
52
52
  type: "Reference" | "ValueType" | "Aggregate" | "Owned";
53
- valueUnit: string;
53
+ valueUnit: string | null;
54
54
  }[];
55
55
  fieldsByName: {
56
56
  [name: string]: import("../index").MetadataField;
57
57
  };
58
58
  _filter: string;
59
- metadataByEntityId?: number;
60
- }>;
59
+ metadataByEntityId?: number | undefined;
60
+ } | null>;
61
61
  update: () => Promise<void>;
62
62
  };
@@ -9,7 +9,7 @@ import { IWizardFixedResponse } from "./../index";
9
9
  export declare function useWizard(entity: string, processName: string, options: IWizardOptions): {
10
10
  initialize: () => Promise<void>;
11
11
  state: {
12
- wait: string | false;
12
+ wait: string | false | null;
13
13
  };
14
14
  currentStepConfig: any;
15
15
  next: (changes?: any) => Promise<any>;