eservices-core 1.0.345 → 1.0.348
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/CoreError.d.ts +1 -1
- package/dist/classes/ErrorStorageSystem.d.ts +3 -0
- package/dist/classes/Form.d.ts +3 -0
- package/dist/classes/NotificationSystem.d.ts +39 -0
- package/dist/index.d.ts +37 -27
- package/dist/index.js +1145 -1078
- package/dist/services/AuthService.d.ts +33 -0
- package/dist/widgets/errorSystem/default/WidgetError.vue.d.ts +27 -0
- package/dist/widgets/errorSystem/default/WidgetErrorGroup.vue.d.ts +17 -0
- package/dist/widgets/errorSystem/default/WidgetNotificationSystem.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export default class CoreError extends Error {
|
|
|
19
19
|
static UndefinedErrorId(id: number, array: any): CoreError;
|
|
20
20
|
static ApiError(error: any): CoreError;
|
|
21
21
|
static ApiNotAvailable(): CoreError;
|
|
22
|
-
static AuthServiceError(message: string, errors: string[] | null): CoreError;
|
|
22
|
+
static AuthServiceError(message: string | undefined, errors: string[] | null): CoreError;
|
|
23
23
|
static ApiResponseParseFailed(): CoreError;
|
|
24
24
|
static MissingIdInValuesEntity(values: any): CoreError;
|
|
25
25
|
static ObjectWithIdNotFound(id: number, array: any[]): CoreError;
|
package/dist/classes/Form.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export interface FormParams extends InterfaceFormParams {
|
|
|
10
10
|
controller?: FormProvideControllerInterface;
|
|
11
11
|
provide?: boolean;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Please use Form from "jenesius-vue-form"
|
|
15
|
+
* */
|
|
13
16
|
export default class Form extends InterfaceForm {
|
|
14
17
|
private parentController?;
|
|
15
18
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
/**
|
|
3
|
+
* @description Array of current cards.
|
|
4
|
+
*/
|
|
5
|
+
store: {
|
|
6
|
+
id: number;
|
|
7
|
+
type: "error" | "warning";
|
|
8
|
+
msg: string;
|
|
9
|
+
children?: {
|
|
10
|
+
id: number;
|
|
11
|
+
msg: string;
|
|
12
|
+
}[];
|
|
13
|
+
}[];
|
|
14
|
+
/**
|
|
15
|
+
* @description Adding new card to store
|
|
16
|
+
*/
|
|
17
|
+
add(type: INotificationCard["type"], msg: string, { children, timeout }?: {
|
|
18
|
+
children?: string[];
|
|
19
|
+
timeout?: number;
|
|
20
|
+
}): void;
|
|
21
|
+
/**
|
|
22
|
+
* @description Function remove item by id. Return true if card was founded, otherwise false.
|
|
23
|
+
* */
|
|
24
|
+
remove(id: number): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @description Removing child message, Throwing error if card of children not founded.
|
|
27
|
+
* */
|
|
28
|
+
removeChild(cardId: number, childId: number): void;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
export interface INotificationCard {
|
|
32
|
+
id: number;
|
|
33
|
+
type: 'error' | 'warning';
|
|
34
|
+
msg: string;
|
|
35
|
+
children?: {
|
|
36
|
+
id: number;
|
|
37
|
+
msg: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,30 @@ import "./../styles/index.css";
|
|
|
8
8
|
import { Component } from "vue";
|
|
9
9
|
import StylesInterface from "./styles/types";
|
|
10
10
|
import { Values } from "./types";
|
|
11
|
+
import WidgetBreadcrumbs from "./widgets/breadcrumbs/widget-breadcrumbs.vue";
|
|
12
|
+
import WidgetCommunication from "./widgets/communication/widget-communication.vue";
|
|
13
|
+
import WidgetList from "./widgets/tables/WidgetList.vue";
|
|
14
|
+
import WidgetSection from "./widgets/section/widget-section.vue";
|
|
15
|
+
import WidgetTableController from "./widgets/tables/table-with-form/widget-table-controller.vue";
|
|
16
|
+
import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
|
|
17
|
+
import WidgetTable from './widgets/tables/table-with-form/widget-table.vue';
|
|
18
|
+
import WidgetForm from "./widgets/forms/naomi/WidgetForm.vue";
|
|
19
|
+
import ModalValidation from "./widgets/modals/modal-validation/modal-validation.vue";
|
|
20
|
+
import WidgetNotificationSystem from "./widgets/errorSystem/default/WidgetNotificationSystem.vue";
|
|
21
|
+
import authService from "./services/AuthService";
|
|
22
|
+
import dataService from "./services/data-service";
|
|
23
|
+
import { CommunicationService as communicationService } from "./services/communication-service";
|
|
24
|
+
import viewService from "./services/view-service";
|
|
25
|
+
import processWizardService from "./services/process-wizard-service";
|
|
26
|
+
import metadataService from "./services/metadata-service";
|
|
27
|
+
import fileService from "./services/FileService";
|
|
28
|
+
import CoreError from "./classes/CoreError";
|
|
29
|
+
import List, { ListCell } from "./classes/List";
|
|
30
|
+
import ProcessWrap from "./classes/ProcessWrap";
|
|
31
|
+
import ApplicationManager from "./classes/ApplicationManager";
|
|
32
|
+
import NotificationSystem from "./classes/NotificationSystem";
|
|
33
|
+
import { clickOutside, requestHandler } from "./utils";
|
|
34
|
+
import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
11
35
|
export { StylesInterface };
|
|
12
36
|
import InterfaceContainer from "./widgets/interface/interface-container.vue";
|
|
13
37
|
/**WIDGETS**/
|
|
@@ -65,39 +89,25 @@ export interface ButtonRow {
|
|
|
65
89
|
title: string;
|
|
66
90
|
callback: () => any;
|
|
67
91
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
92
|
+
export {
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated
|
|
95
|
+
* */
|
|
96
|
+
clickOutside,
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
* */
|
|
100
|
+
requestHandler };
|
|
101
|
+
export { ApplicationManager, NotificationSystem,
|
|
75
102
|
/**
|
|
76
103
|
* Some classes, test: 22.03.2022
|
|
77
104
|
* */
|
|
78
105
|
Table, Form, CoreError, List, ProcessWrap, ListCell };
|
|
79
|
-
import { requestHandler } from "./utils";
|
|
80
|
-
export { requestHandler };
|
|
81
|
-
import authService from "./services/AuthService";
|
|
82
|
-
import dataService from "./services/data-service";
|
|
83
|
-
import { CommunicationService as communicationService } from "./services/communication-service";
|
|
84
|
-
import viewService from "./services/view-service";
|
|
85
|
-
import processWizardService from "./services/process-wizard-service";
|
|
86
|
-
import metadataService from "./services/metadata-service";
|
|
87
|
-
import fileService from "./services/FileService";
|
|
88
106
|
export { fileService, processWizardService, viewService, authService, dataService, communicationService, metadataService };
|
|
89
|
-
|
|
90
|
-
import WidgetCommunication from "./widgets/communication/widget-communication.vue";
|
|
91
|
-
import WidgetList from "./widgets/tables/WidgetList.vue";
|
|
92
|
-
import WidgetSection from "./widgets/section/widget-section.vue";
|
|
93
|
-
import WidgetTableController from "./widgets/tables/table-with-form/widget-table-controller.vue";
|
|
94
|
-
import WidgetSpinner from "./widgets/spinner/WidgetSpinner.vue";
|
|
95
|
-
import WidgetTable from './widgets/tables/table-with-form/widget-table.vue';
|
|
96
|
-
import WidgetForm from "./widgets/forms/naomi/WidgetForm.vue";
|
|
97
|
-
import ModalValidation from "./widgets/modals/modal-validation/modal-validation.vue";
|
|
98
|
-
export { WidgetForm, ModalValidation, WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
|
|
99
|
-
import valuesToUpperCase from "./utils/values-to-upper-case";
|
|
107
|
+
export { WidgetNotificationSystem, WidgetForm, ModalValidation, WidgetTable, WidgetTableController, WidgetSpinner, WidgetBreadcrumbs, WidgetCommunication, WidgetList, WidgetSection };
|
|
100
108
|
declare const utils: {
|
|
109
|
+
clickOutside: typeof _utils.clickOutside;
|
|
110
|
+
requestHandler: typeof _utils.requestHandler;
|
|
101
111
|
valuesToUpperCase: typeof valuesToUpperCase;
|
|
102
112
|
};
|
|
103
113
|
export { utils };
|