eservices-core 1.0.336 → 1.0.339
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.
- package/dist/classes/ApplicationManager.d.ts +16 -9
- package/dist/classes/index.d.ts +4 -8
- package/dist/index.d.ts +8 -10
- package/dist/index.js +969 -717
- package/dist/services/client-service.d.ts +14 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/widgets/communication/widget-communication.vue.d.ts +4 -12
- package/dist/widgets/interface/interface-container.vue.d.ts +17 -24
- package/dist/widgets/interface/interface-header.vue.d.ts +12 -20
- package/dist/widgets/interface/interface-user-card.vue.d.ts +6 -22
- package/dist/widgets/interface/interface-user-popup.vue.d.ts +0 -32
- package/dist/widgets/interface/user-popup-organization-item.vue.d.ts +22 -0
- package/dist/widgets/interface/user-popup-switch-organization.vue.d.ts +24 -0
- package/dist/widgets/interface/user-popup-switch-person.vue.d.ts +22 -0
- package/dist/widgets/modals/modal-validation/modal-validation-item.vue.d.ts +46 -0
- package/dist/widgets/modals/modal-validation/modal-validation.vue.d.ts +14 -0
- package/dist/widgets/modals/modal-wrap.vue.d.ts +14 -0
- package/package.json +9 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Ref, UnwrapNestedRefs } from "vue";
|
|
2
|
-
import { CodeEntity
|
|
2
|
+
import { CodeEntity } from "../index";
|
|
3
3
|
interface ApplicationManagerState {
|
|
4
4
|
legalEntityTypes: CodeEntity[];
|
|
5
5
|
identityDocumentTypes: CodeEntity[];
|
|
@@ -10,22 +10,29 @@ interface ApplicationManagerState {
|
|
|
10
10
|
name: string;
|
|
11
11
|
}[];
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
14
|
-
|
|
13
|
+
export interface ICustomerContext {
|
|
14
|
+
id: number;
|
|
15
15
|
name: string;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
email?: string;
|
|
17
|
+
photo?: string;
|
|
18
18
|
}
|
|
19
19
|
declare const _default: {
|
|
20
|
+
/**
|
|
21
|
+
* @description Identity of current context. NULL if the data was not upload from web-service.
|
|
22
|
+
*/
|
|
23
|
+
currentContextId: Ref<null | number>;
|
|
24
|
+
/**
|
|
25
|
+
* @description Computed data of current context. Person or Organization
|
|
26
|
+
*/
|
|
27
|
+
currentContext: ComputedRef<null | ICustomerContext>;
|
|
28
|
+
person: Ref<null | ICustomerContext>;
|
|
29
|
+
organizations: Ref<ICustomerContext[]>;
|
|
20
30
|
state: UnwrapNestedRefs<ApplicationManagerState>;
|
|
21
|
-
clientContent: UnwrapNestedRefs<ClientContent>;
|
|
22
|
-
currentContext: Ref<number | null>;
|
|
23
|
-
currentContextProfile: ComputedRef<ContextProfile>;
|
|
24
31
|
/**
|
|
25
32
|
* true - если информация о пользователе получена.
|
|
26
33
|
* */
|
|
27
34
|
isReady: Ref<boolean>;
|
|
28
|
-
setCurrentContext(id:
|
|
35
|
+
setCurrentContext(id: number): void;
|
|
29
36
|
/**
|
|
30
37
|
* Инициализирует данные приложения. В данному методе проходят проверка на
|
|
31
38
|
* установленные переменные и их значения. Также происходит получение с сер-
|
package/dist/classes/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ declare const _default: {
|
|
|
21
21
|
};
|
|
22
22
|
InterfaceWorker: typeof InterfaceWorker;
|
|
23
23
|
ApplicationManager: {
|
|
24
|
+
currentContextId: import("vue").Ref<number>;
|
|
25
|
+
currentContext: import("vue").ComputedRef<import("./ApplicationManager").ICustomerContext>;
|
|
26
|
+
person: import("vue").Ref<import("./ApplicationManager").ICustomerContext>;
|
|
27
|
+
organizations: import("vue").Ref<import("./ApplicationManager").ICustomerContext[]>;
|
|
24
28
|
state: {
|
|
25
29
|
legalEntityTypes: {
|
|
26
30
|
code: string;
|
|
@@ -40,14 +44,6 @@ declare const _default: {
|
|
|
40
44
|
name: string;
|
|
41
45
|
}[];
|
|
42
46
|
};
|
|
43
|
-
clientContent: {
|
|
44
|
-
email: string;
|
|
45
|
-
name: string;
|
|
46
|
-
photo: string;
|
|
47
|
-
id: number;
|
|
48
|
-
};
|
|
49
|
-
currentContext: import("vue").Ref<number>;
|
|
50
|
-
currentContextProfile: import("vue").ComputedRef<import("..").ContextProfile>;
|
|
51
47
|
isReady: import("vue").Ref<boolean>;
|
|
52
48
|
setCurrentContext(id: number): void;
|
|
53
49
|
initialization(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,8 @@ export { clickOutside };
|
|
|
70
70
|
import CoreError from "./classes/CoreError";
|
|
71
71
|
import List, { ListCell } from "./classes/List";
|
|
72
72
|
import ProcessWrap from "./classes/ProcessWrap";
|
|
73
|
-
|
|
73
|
+
import ApplicationManager from "./classes/ApplicationManager";
|
|
74
|
+
export { ApplicationManager,
|
|
74
75
|
/**
|
|
75
76
|
* Some classes, test: 22.03.2022
|
|
76
77
|
* */
|
|
@@ -92,7 +93,8 @@ import WidgetSection from "./widgets/section/widget-section.vue";
|
|
|
92
93
|
import WidgetTableController from "./widgets/tables/table-with-form/widget-table-controller.vue";
|
|
93
94
|
import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
|
|
94
95
|
import WidgetTable from './widgets/tables/table-with-form/widget-table.vue';
|
|
95
|
-
|
|
96
|
+
import ModalValidation from "./widgets/modals/modal-validation/modal-validation.vue";
|
|
97
|
+
export { ModalValidation, WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
|
|
96
98
|
import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
97
99
|
declare const utils: {
|
|
98
100
|
valuesToUpperCase: typeof valuesToUpperCase;
|
|
@@ -173,6 +175,10 @@ declare const _default: {
|
|
|
173
175
|
};
|
|
174
176
|
InterfaceWorker: typeof import("./classes/InterfaceWorker").default;
|
|
175
177
|
ApplicationManager: {
|
|
178
|
+
currentContextId: import("vue").Ref<number>;
|
|
179
|
+
currentContext: import("vue").ComputedRef<import("./classes/ApplicationManager").ICustomerContext>;
|
|
180
|
+
person: import("vue").Ref<import("./classes/ApplicationManager").ICustomerContext>;
|
|
181
|
+
organizations: import("vue").Ref<import("./classes/ApplicationManager").ICustomerContext[]>;
|
|
176
182
|
state: {
|
|
177
183
|
legalEntityTypes: {
|
|
178
184
|
code: string;
|
|
@@ -192,14 +198,6 @@ declare const _default: {
|
|
|
192
198
|
name: string;
|
|
193
199
|
}[];
|
|
194
200
|
};
|
|
195
|
-
clientContent: {
|
|
196
|
-
email: string;
|
|
197
|
-
name: string;
|
|
198
|
-
photo: string;
|
|
199
|
-
id: number;
|
|
200
|
-
};
|
|
201
|
-
currentContext: import("vue").Ref<number>;
|
|
202
|
-
currentContextProfile: import("vue").ComputedRef<ContextProfile>;
|
|
203
201
|
isReady: import("vue").Ref<boolean>;
|
|
204
202
|
setCurrentContext(id: number): void;
|
|
205
203
|
initialization(): Promise<void>;
|