eservices-core 1.0.383 → 1.0.385

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.
@@ -0,0 +1,8 @@
1
+ import { Form } from "jenesius-vue-form";
2
+ export default function useFormAction(form: Form): {
3
+ actions: {
4
+ title: string;
5
+ callback: () => void;
6
+ }[];
7
+ update: (status: string, id: number) => Promise<void>;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { Form } from "jenesius-vue-form";
2
+ export default function useFormLabel(form: Form): {
3
+ label: {
4
+ title: string;
5
+ type: string;
6
+ };
7
+ update: (code: number) => Promise<void>;
8
+ };
@@ -0,0 +1,2 @@
1
+ import { Form } from "jenesius-vue-form";
2
+ export default function useFormMetadata(form: Form, rules: string, id: number): void;
@@ -0,0 +1,13 @@
1
+ import { Form } from "jenesius-vue-form";
2
+ export default function useFormRequestData(form: Form, options: {
3
+ fields: string | string[];
4
+ }): {
5
+ formShadowState: {
6
+ ready: boolean;
7
+ show: boolean;
8
+ };
9
+ };
10
+ export interface IShadowState {
11
+ ready: boolean;
12
+ show: boolean;
13
+ }
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ import InterfaceContainer from "./widgets/interface/interface-container.vue";
25
25
  import WidgetCard from "./widgets/cards/widget-card.vue";
26
26
  import WidgetWizard from "./widgets/wizard/WidgetWizard.vue";
27
27
  import WidgetMultiButton from "./widgets/buttons/multi-button/WidgetMultiButton.vue";
28
+ import WidgetShadowForm from "./widgets/shadow-form/WidgetShadowForm.vue";
28
29
  import authService from "./services/AuthService";
29
30
  import dataService from "./services/data-service";
30
31
  import { CommunicationService as communicationService } from "./services/communication-service";
@@ -40,6 +41,10 @@ import NotificationSystem from "./classes/NotificationSystem";
40
41
  import { clickOutside, requestHandler } from "./utils";
41
42
  import valuesToUpperCase from "./utils/values-to-upper-case";
42
43
  import { prettyDate, prettyDateWithTime } from "./utils/prettyDate";
44
+ import useFormMetadata from "./hooks/use-form-metadata";
45
+ import useFormAction from "./hooks/use-form-action";
46
+ import useFormLabel from "./hooks/use-form-label";
47
+ import useFormRequestData from "./hooks/use-form-request-data";
43
48
  export { StylesInterface };
44
49
  export interface NavigationRecordRow {
45
50
  title: string;
@@ -90,6 +95,10 @@ clickOutside,
90
95
  requestHandler, useSocket, setupSocket };
91
96
  export { ApplicationManager, NotificationSystem, Table, CoreError, List, ProcessWrap, ListCell };
92
97
  export { fileService, processWizardService, viewService, authService, dataService, communicationService, metadataService };
98
+ /**
99
+ * HOOKS
100
+ * */
101
+ export { useFormMetadata, useFormAction, useFormLabel, useFormRequestData };
93
102
  /**
94
103
  * All components binding with VueComponents must have name started with Widget.
95
104
  * */
@@ -98,7 +107,7 @@ export { WidgetNotificationSystem, WidgetForm, ModalValidation, WidgetTable, Wid
98
107
  * @deprecated We must use own WidgetIcon in custom project. Rewrite WidgetIcon to CoreIcon and use only inside Core
99
108
  * components.
100
109
  * */
101
- Icon as WidgetIcon, WidgetCard, WidgetWizard, WidgetMultiButton };
110
+ Icon as WidgetIcon, WidgetCard, WidgetWizard, WidgetMultiButton, WidgetShadowForm };
102
111
  declare const utils: {
103
112
  clickOutside: typeof _utils.clickOutside;
104
113
  requestHandler: typeof _utils.requestHandler;