verben-workflow-ui 0.6.5 → 0.6.7
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/esm2022/public-api.mjs +3 -1
- package/esm2022/src/lib/components/form-group/form-group.component.mjs +4 -5
- package/esm2022/src/lib/components/form-response/form-response.component.mjs +10 -13
- package/esm2022/src/lib/components/form-values/form-values.component.mjs +1157 -0
- package/esm2022/src/lib/components/form-values/form-values.module.mjs +20 -0
- package/esm2022/src/lib/components/form-values/form-values.service.mjs +48 -0
- package/esm2022/src/lib/components/form-values/index.mjs +2 -0
- package/esm2022/src/lib/components/form-values/public-api.mjs +4 -0
- package/esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs +5 -0
- package/esm2022/src/lib/components/forms/forms.component.mjs +3 -3
- package/esm2022/src/lib/models/DataExtensionValue.mjs +2 -0
- package/esm2022/src/lib/models/EAVDataType.mjs +20 -0
- package/esm2022/src/lib/models/EntityDataValue.mjs +2 -0
- package/esm2022/src/lib/models/EntityProperty.mjs +2 -0
- package/esm2022/src/lib/models/FormValue.mjs +6 -0
- package/esm2022/src/lib/models/Property.mjs +2 -0
- package/esm2022/src/lib/models/public-api.mjs +4 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +3 -4
- package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +9 -12
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs +1226 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs.map +1 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +2 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs +5 -0
- package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui.mjs +1 -0
- package/fesm2022/verben-workflow-ui.mjs.map +1 -1
- package/package.json +48 -42
- package/public-api.d.ts +1 -0
- package/src/lib/components/form-response/form-response.component.d.ts +1 -3
- package/src/lib/components/form-values/form-values.component.d.ts +118 -0
- package/src/lib/components/form-values/form-values.module.d.ts +10 -0
- package/src/lib/components/form-values/form-values.service.d.ts +9 -0
- package/src/lib/components/form-values/index.d.ts +1 -0
- package/src/lib/components/form-values/public-api.d.ts +3 -0
- package/src/lib/models/DataExtensionValue.d.ts +4 -0
- package/src/lib/models/EAVDataType.d.ts +18 -0
- package/src/lib/models/EntityDataValue.d.ts +6 -0
- package/src/lib/models/EntityProperty.d.ts +7 -0
- package/src/lib/models/FormValue.d.ts +13 -0
- package/src/lib/models/Property.d.ts +5 -0
- package/src/lib/models/public-api.d.ts +3 -1
- package/esm2022/src/lib/models/FormValues.mjs +0 -2
- package/src/lib/models/FormValues.d.ts +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verben-workflow-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"style": "styles/styles.css",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./styles": {
|
|
@@ -57,36 +57,36 @@
|
|
|
57
57
|
"esm": "./esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs",
|
|
58
58
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-designer.mjs"
|
|
59
59
|
},
|
|
60
|
-
"./src/lib/components/expiration": {
|
|
61
|
-
"types": "./src/lib/components/expiration/index.d.ts",
|
|
62
|
-
"esm2022": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
|
|
63
|
-
"esm": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
|
|
64
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs"
|
|
65
|
-
},
|
|
66
60
|
"./src/lib/components/file-render": {
|
|
67
61
|
"types": "./src/lib/components/file-render/index.d.ts",
|
|
68
62
|
"esm2022": "./esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs",
|
|
69
63
|
"esm": "./esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs",
|
|
70
64
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs"
|
|
71
65
|
},
|
|
66
|
+
"./src/lib/components/expiration": {
|
|
67
|
+
"types": "./src/lib/components/expiration/index.d.ts",
|
|
68
|
+
"esm2022": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
|
|
69
|
+
"esm": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
|
|
70
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs"
|
|
71
|
+
},
|
|
72
72
|
"./src/lib/components/file-upload": {
|
|
73
73
|
"types": "./src/lib/components/file-upload/index.d.ts",
|
|
74
74
|
"esm2022": "./esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs",
|
|
75
75
|
"esm": "./esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs",
|
|
76
76
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs"
|
|
77
77
|
},
|
|
78
|
-
"./src/lib/components/form-control": {
|
|
79
|
-
"types": "./src/lib/components/form-control/index.d.ts",
|
|
80
|
-
"esm2022": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
81
|
-
"esm": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
82
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs"
|
|
83
|
-
},
|
|
84
78
|
"./src/lib/components/flowable-status": {
|
|
85
79
|
"types": "./src/lib/components/flowable-status/index.d.ts",
|
|
86
80
|
"esm2022": "./esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs",
|
|
87
81
|
"esm": "./esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs",
|
|
88
82
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs"
|
|
89
83
|
},
|
|
84
|
+
"./src/lib/components/form-control": {
|
|
85
|
+
"types": "./src/lib/components/form-control/index.d.ts",
|
|
86
|
+
"esm2022": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
87
|
+
"esm": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
|
|
88
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs"
|
|
89
|
+
},
|
|
90
90
|
"./src/lib/components/form-response": {
|
|
91
91
|
"types": "./src/lib/components/form-response/index.d.ts",
|
|
92
92
|
"esm2022": "./esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs",
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
"esm": "./esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs",
|
|
106
106
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs"
|
|
107
107
|
},
|
|
108
|
-
"./src/lib/components/form-
|
|
109
|
-
"types": "./src/lib/components/form-
|
|
110
|
-
"esm2022": "./esm2022/src/lib/components/form-
|
|
111
|
-
"esm": "./esm2022/src/lib/components/form-
|
|
112
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-
|
|
108
|
+
"./src/lib/components/form-values": {
|
|
109
|
+
"types": "./src/lib/components/form-values/index.d.ts",
|
|
110
|
+
"esm2022": "./esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs",
|
|
111
|
+
"esm": "./esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs",
|
|
112
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs"
|
|
113
113
|
},
|
|
114
114
|
"./src/lib/components/forms": {
|
|
115
115
|
"types": "./src/lib/components/forms/index.d.ts",
|
|
@@ -117,6 +117,12 @@
|
|
|
117
117
|
"esm": "./esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs",
|
|
118
118
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-forms.mjs"
|
|
119
119
|
},
|
|
120
|
+
"./src/lib/components/journal": {
|
|
121
|
+
"types": "./src/lib/components/journal/index.d.ts",
|
|
122
|
+
"esm2022": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
123
|
+
"esm": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
124
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-journal.mjs"
|
|
125
|
+
},
|
|
120
126
|
"./src/lib/components/my-queue": {
|
|
121
127
|
"types": "./src/lib/components/my-queue/index.d.ts",
|
|
122
128
|
"esm2022": "./esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs",
|
|
@@ -129,71 +135,71 @@
|
|
|
129
135
|
"esm": "./esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs",
|
|
130
136
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs"
|
|
131
137
|
},
|
|
132
|
-
"./src/lib/components/journal": {
|
|
133
|
-
"types": "./src/lib/components/journal/index.d.ts",
|
|
134
|
-
"esm2022": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
135
|
-
"esm": "./esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs",
|
|
136
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-journal.mjs"
|
|
137
|
-
},
|
|
138
138
|
"./src/lib/components/stage-details": {
|
|
139
139
|
"types": "./src/lib/components/stage-details/index.d.ts",
|
|
140
140
|
"esm2022": "./esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs",
|
|
141
141
|
"esm": "./esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs",
|
|
142
142
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs"
|
|
143
143
|
},
|
|
144
|
+
"./src/lib/components/form-viewer": {
|
|
145
|
+
"types": "./src/lib/components/form-viewer/index.d.ts",
|
|
146
|
+
"esm2022": "./esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs",
|
|
147
|
+
"esm": "./esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs",
|
|
148
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs"
|
|
149
|
+
},
|
|
144
150
|
"./src/lib/components/task-form": {
|
|
145
151
|
"types": "./src/lib/components/task-form/index.d.ts",
|
|
146
152
|
"esm2022": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
147
153
|
"esm": "./esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs",
|
|
148
154
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs"
|
|
149
155
|
},
|
|
150
|
-
"./src/lib/components/task-history": {
|
|
151
|
-
"types": "./src/lib/components/task-history/index.d.ts",
|
|
152
|
-
"esm2022": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
153
|
-
"esm": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
154
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs"
|
|
155
|
-
},
|
|
156
156
|
"./src/lib/components/task-notification": {
|
|
157
157
|
"types": "./src/lib/components/task-notification/index.d.ts",
|
|
158
158
|
"esm2022": "./esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs",
|
|
159
159
|
"esm": "./esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs",
|
|
160
160
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs"
|
|
161
161
|
},
|
|
162
|
+
"./src/lib/components/task-history": {
|
|
163
|
+
"types": "./src/lib/components/task-history/index.d.ts",
|
|
164
|
+
"esm2022": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
165
|
+
"esm": "./esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs",
|
|
166
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs"
|
|
167
|
+
},
|
|
162
168
|
"./src/lib/components/tasks": {
|
|
163
169
|
"types": "./src/lib/components/tasks/index.d.ts",
|
|
164
170
|
"esm2022": "./esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs",
|
|
165
171
|
"esm": "./esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs",
|
|
166
172
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs"
|
|
167
173
|
},
|
|
168
|
-
"./src/lib/components/wf": {
|
|
169
|
-
"types": "./src/lib/components/wf/index.d.ts",
|
|
170
|
-
"esm2022": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
|
|
171
|
-
"esm": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
|
|
172
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-wf.mjs"
|
|
173
|
-
},
|
|
174
174
|
"./src/lib/components/workflow": {
|
|
175
175
|
"types": "./src/lib/components/workflow/index.d.ts",
|
|
176
176
|
"esm2022": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
177
177
|
"esm": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
|
|
178
178
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs"
|
|
179
179
|
},
|
|
180
|
-
"./src/lib/components/workflow-designer": {
|
|
181
|
-
"types": "./src/lib/components/workflow-designer/index.d.ts",
|
|
182
|
-
"esm2022": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
|
|
183
|
-
"esm": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
|
|
184
|
-
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs"
|
|
185
|
-
},
|
|
186
180
|
"./src/lib/components/workflow-stage": {
|
|
187
181
|
"types": "./src/lib/components/workflow-stage/index.d.ts",
|
|
188
182
|
"esm2022": "./esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs",
|
|
189
183
|
"esm": "./esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs",
|
|
190
184
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs"
|
|
191
185
|
},
|
|
186
|
+
"./src/lib/components/wf": {
|
|
187
|
+
"types": "./src/lib/components/wf/index.d.ts",
|
|
188
|
+
"esm2022": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
|
|
189
|
+
"esm": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
|
|
190
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-wf.mjs"
|
|
191
|
+
},
|
|
192
192
|
"./src/lib/components/workflows": {
|
|
193
193
|
"types": "./src/lib/components/workflows/index.d.ts",
|
|
194
194
|
"esm2022": "./esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs",
|
|
195
195
|
"esm": "./esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs",
|
|
196
196
|
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./src/lib/components/workflow-designer": {
|
|
199
|
+
"types": "./src/lib/components/workflow-designer/index.d.ts",
|
|
200
|
+
"esm2022": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
|
|
201
|
+
"esm": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
|
|
202
|
+
"default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs"
|
|
197
203
|
}
|
|
198
204
|
},
|
|
199
205
|
"peerDependencies": {
|
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from 'verben-workflow-ui/src/lib/components/task-history';
|
|
|
12
12
|
export * from 'verben-workflow-ui/src/lib/components/forms';
|
|
13
13
|
export * from 'verben-workflow-ui/src/lib/components/form-group';
|
|
14
14
|
export * from 'verben-workflow-ui/src/lib/components/form-response';
|
|
15
|
+
export * from 'verben-workflow-ui/src/lib/components/form-values';
|
|
15
16
|
export * from 'verben-workflow-ui/src/lib/components/stage-details';
|
|
16
17
|
export * from 'verben-workflow-ui/src/lib/components/expiration';
|
|
17
18
|
export * from 'verben-workflow-ui/src/lib/components/journal';
|
|
@@ -22,7 +22,6 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
22
22
|
visibleColumnDef: ColumnDefinition<Form>[];
|
|
23
23
|
styles: any;
|
|
24
24
|
data: Form[];
|
|
25
|
-
path: string;
|
|
26
25
|
cardData: CardData[];
|
|
27
26
|
selectedFilterTableCount: number;
|
|
28
27
|
showFilter: boolean;
|
|
@@ -74,7 +73,6 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
74
73
|
saveItem(): Promise<void>;
|
|
75
74
|
tableSaveItem(form: Form, callBack: () => any): Promise<void>;
|
|
76
75
|
updateTable(): void;
|
|
77
|
-
navigateToFields(card: Form): void;
|
|
78
76
|
onClose(): void;
|
|
79
77
|
openDropdown(item: Form): void;
|
|
80
78
|
onSearch(event: {
|
|
@@ -104,5 +102,5 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
104
102
|
handleExport(exportedData: Partial<any>[]): void;
|
|
105
103
|
private downloadCSV;
|
|
106
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormResponseComponent, never>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormResponseComponent, "lib-form-response", never, { "
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormResponseComponent, "lib-form-response", never, { "application": { "alias": "application"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "taskCodeKey": { "alias": "taskCodeKey"; "required": false; }; }, { "onViewProcessClicked": "onViewProcessClicked"; }, never, never, false, never>;
|
|
108
106
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CardData, CardDataViewComponent, ColumnDefinition, DataViewComponent, IDataFilter } from 'verben-ng-ui';
|
|
5
|
+
import { DataType, FormValue, PagedResult, PermissionConfig } from 'verben-workflow-ui/src/lib/models';
|
|
6
|
+
import { EnvironmentService, HttpWebRequestService, UtilService } from 'verben-workflow-ui/src/lib/services';
|
|
7
|
+
import { FormValuesService } from './form-values.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare enum FormValuePropertyName {
|
|
10
|
+
Code = "Code",
|
|
11
|
+
CreatedBy = "Created By",
|
|
12
|
+
CreatedAt = "Created At",
|
|
13
|
+
IsValid = "Is Valid",
|
|
14
|
+
AllowAnonymous = "Anonymous",
|
|
15
|
+
ExpiryDate = "Expiry Date",
|
|
16
|
+
Duration = "Duration",
|
|
17
|
+
TaskCode = "Task Code"
|
|
18
|
+
}
|
|
19
|
+
export declare enum FormValuePropertyMap {
|
|
20
|
+
Code = "Code",
|
|
21
|
+
CreatedBy = "CreatedBy",
|
|
22
|
+
CreatedAt = "CreatedAt",
|
|
23
|
+
IsValid = "IsValid",
|
|
24
|
+
AllowAnonymous = "AllowAnonymous",
|
|
25
|
+
ExpiryDate = "ExpiryDate",
|
|
26
|
+
Duration = "Duration",
|
|
27
|
+
TaskCode = "TaskCode"
|
|
28
|
+
}
|
|
29
|
+
export declare enum FormValueSearchProperty {
|
|
30
|
+
Code = "Code",
|
|
31
|
+
CreatedBy = "CreatedBy",
|
|
32
|
+
TaskCode = "TaskCode"
|
|
33
|
+
}
|
|
34
|
+
export interface EntityTableExport {
|
|
35
|
+
entityName: string;
|
|
36
|
+
columns: string[];
|
|
37
|
+
rows: Record<string, any>[];
|
|
38
|
+
}
|
|
39
|
+
export declare class FormValuesComponent implements OnInit {
|
|
40
|
+
private utilService;
|
|
41
|
+
private server;
|
|
42
|
+
private cdr;
|
|
43
|
+
private envSvc;
|
|
44
|
+
private route;
|
|
45
|
+
private formValuesSvc;
|
|
46
|
+
visibleColumnDef: ColumnDefinition<FormValue>[];
|
|
47
|
+
styles: any;
|
|
48
|
+
data: FormValue[];
|
|
49
|
+
cardData: CardData[];
|
|
50
|
+
currentData: CardData | null;
|
|
51
|
+
active: number;
|
|
52
|
+
dataType: DataType;
|
|
53
|
+
exportColumns: ColumnDefinition<any>[];
|
|
54
|
+
exportData: any[];
|
|
55
|
+
showExport: boolean;
|
|
56
|
+
cardDataView: CardDataViewComponent;
|
|
57
|
+
dataView: DataViewComponent;
|
|
58
|
+
dataXport: any;
|
|
59
|
+
formCodeKey: string;
|
|
60
|
+
pageSize: number;
|
|
61
|
+
searchDebounceTime: number;
|
|
62
|
+
permissionConfig: PermissionConfig | null;
|
|
63
|
+
formCode: string;
|
|
64
|
+
pageState: PagedResult<FormValue> | null;
|
|
65
|
+
currentFilters: IDataFilter[];
|
|
66
|
+
currentSorts: IDataFilter[];
|
|
67
|
+
searchTerm$: Subject<string>;
|
|
68
|
+
private currentSearchTerm;
|
|
69
|
+
hasMore: boolean;
|
|
70
|
+
visibleColumns: IDataFilter[];
|
|
71
|
+
filterArray: IDataFilter[];
|
|
72
|
+
sortOptions: IDataFilter[];
|
|
73
|
+
constructor(utilService: UtilService, server: HttpWebRequestService, cdr: ChangeDetectorRef, envSvc: EnvironmentService, route: ActivatedRoute, formValuesSvc: FormValuesService);
|
|
74
|
+
get allowFormResponseEdit(): boolean;
|
|
75
|
+
ngOnInit(): Promise<void>;
|
|
76
|
+
initData(): Promise<void>;
|
|
77
|
+
getFormValues(): Promise<FormValue[] | undefined>;
|
|
78
|
+
loadMore(): Promise<void>;
|
|
79
|
+
setUpCardData(): void;
|
|
80
|
+
setUpCardDataExtra(baseData: FormValue[]): void;
|
|
81
|
+
cardClicked(item: CardData): void;
|
|
82
|
+
setActive(i?: number): void;
|
|
83
|
+
saveFormValue(): Promise<void>;
|
|
84
|
+
updateFiltersAndSorts(isSearch?: boolean): Promise<void>;
|
|
85
|
+
loadMoreFiltersAndSorts(): Promise<PagedResult<FormValue> | undefined>;
|
|
86
|
+
onFilterUpdated(updatedFilters: IDataFilter[] | string): void;
|
|
87
|
+
onSortUpdated(updatedSorts: IDataFilter[]): void;
|
|
88
|
+
handleSearch(event: {
|
|
89
|
+
key: string;
|
|
90
|
+
value: string;
|
|
91
|
+
}): void;
|
|
92
|
+
onStateChange(event: {
|
|
93
|
+
key: string;
|
|
94
|
+
value: boolean;
|
|
95
|
+
}): void;
|
|
96
|
+
onViewChange(isGridView: boolean): void;
|
|
97
|
+
isFileInput(dataType: any): boolean;
|
|
98
|
+
getEntitiesFromRecord(record: any): any[];
|
|
99
|
+
getEntityProperties(entityVal: any): any[];
|
|
100
|
+
groupFormValuesByEntity(rawList: FormValue[]): EntityTableExport[];
|
|
101
|
+
exportFiltersAndSorts: (pageState: {
|
|
102
|
+
skip: number;
|
|
103
|
+
limit: number;
|
|
104
|
+
}) => Promise<any>;
|
|
105
|
+
private getFallbackExportRow;
|
|
106
|
+
updateExportColumnsAndData(): void;
|
|
107
|
+
getExportFilename(): string;
|
|
108
|
+
generateMultiTableCSV(tables: EntityTableExport[]): string;
|
|
109
|
+
downloadCSVContent(csvContent: string, filename: string): void;
|
|
110
|
+
handleExport(exportedData?: Partial<any>[]): Promise<void>;
|
|
111
|
+
fetchAllRecordsForExport(total: number): Promise<FormValue[]>;
|
|
112
|
+
downloadCSV(tables: EntityTableExport[]): void;
|
|
113
|
+
downloadExcel(tables: EntityTableExport[]): void;
|
|
114
|
+
private escapeXml;
|
|
115
|
+
private escapeCsv;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormValuesComponent, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormValuesComponent, "lib-form-values", never, { "formCodeKey": { "alias": "formCodeKey"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "searchDebounceTime": { "alias": "searchDebounceTime"; "required": false; }; "permissionConfig": { "alias": "permissionConfig"; "required": false; }; }, {}, never, never, false, never>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form-values.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "verben-workflow-ui/src/lib/shared";
|
|
5
|
+
import * as i4 from "verben-workflow-ui/src/lib/components/form-control";
|
|
6
|
+
export declare class FormValuesModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormValuesModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormValuesModule, [typeof i1.FormValuesComponent], [typeof i2.CommonModule, typeof i3.SharedModule, typeof i4.FormControlerModule], [typeof i1.FormValuesComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormValuesModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnDefinition } from 'verben-ng-ui';
|
|
2
|
+
import { FormValue } from 'verben-workflow-ui/src/lib/models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormValuesService {
|
|
5
|
+
constructor();
|
|
6
|
+
get formValueColumns(): ColumnDefinition<FormValue>[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormValuesService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormValuesService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum EAVDataType {
|
|
2
|
+
Text = "Text",
|
|
3
|
+
MultilineText = "MultilineText",
|
|
4
|
+
MailAddress = "MailAddress",
|
|
5
|
+
PhoneNumber = "PhoneNumber",
|
|
6
|
+
Number = "Number",
|
|
7
|
+
Decimal = "Decimal",
|
|
8
|
+
YesNo = "YesNo",
|
|
9
|
+
URL = "URL",
|
|
10
|
+
Image = "Image",
|
|
11
|
+
SingleSelection = "SingleSelection",
|
|
12
|
+
MultiSelection = "MultiSelection",
|
|
13
|
+
Colour = "Colour",
|
|
14
|
+
Video = "Video",
|
|
15
|
+
Audio = "Audio",
|
|
16
|
+
SingleFileSelection = "SingleFileSelection",
|
|
17
|
+
MultiFileSelection = "MultiFileSelection"
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './base';
|
|
2
|
+
import { EntityDataValue } from './EntityDataValue';
|
|
3
|
+
export interface FormValue extends BaseModel {
|
|
4
|
+
Form?: string;
|
|
5
|
+
Name?: string;
|
|
6
|
+
EntityValues: EntityDataValue[];
|
|
7
|
+
IsValid: boolean;
|
|
8
|
+
AllowAnonymous: boolean;
|
|
9
|
+
URL: string;
|
|
10
|
+
TaskCode: string;
|
|
11
|
+
Duration: number;
|
|
12
|
+
ExpiryDate: Date;
|
|
13
|
+
}
|
|
@@ -6,7 +6,9 @@ export * from './ActorTag';
|
|
|
6
6
|
export * from './auth-mechanism';
|
|
7
7
|
export * from './base';
|
|
8
8
|
export * from './Coord';
|
|
9
|
+
export * from './DataExtensionValue';
|
|
9
10
|
export * from './DataType';
|
|
11
|
+
export * from './EntityDataValue';
|
|
10
12
|
export * from './ErrorResponse';
|
|
11
13
|
export * from './Escalation';
|
|
12
14
|
export * from './EscalationCycle';
|
|
@@ -17,7 +19,7 @@ export * from './Form';
|
|
|
17
19
|
export * from './FormEntity';
|
|
18
20
|
export * from './FormFill';
|
|
19
21
|
export * from './FormProperty';
|
|
20
|
-
export * from './
|
|
22
|
+
export * from './FormValue';
|
|
21
23
|
export * from './MailConfig';
|
|
22
24
|
export * from './MessageConfig';
|
|
23
25
|
export * from './MessageMedium';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ybVZhbHVlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZlcmJlbi13b3JrZmxvdy11aS9zcmMvbGliL21vZGVscy9Gb3JtVmFsdWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlTW9kZWwgfSBmcm9tICcuL2Jhc2UnO1xuaW1wb3J0IHsgRm9ybUVudGl0eSB9IGZyb20gJy4vRm9ybUVudGl0eSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRm9ybVZhbHVlcyBleHRlbmRzIEJhc2VNb2RlbCB7XG4gIEVudGl0eVZhbHVlczogRW50aXR5VmFsdWVzW107XG4gIElzVmFsaWQ6IGJvb2xlYW47XG4gIEFsbG93QW5vbnltb3VzOiBib29sZWFuO1xuICBVUkw6IHN0cmluZztcbiAgRHVyYXRpb246IG51bWJlcjtcbiAgRXhwaXJ5RGF0ZTogRGF0ZTtcbiAgTmFtZTogc3RyaW5nO1xufVxuZXhwb3J0IGludGVyZmFjZSBFbnRpdHlWYWx1ZXMge1xuICBJc1ZhbGlkOiBib29sZWFuO1xuICBFbnRpdHlOYW1lOiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './base';
|
|
2
|
-
export interface FormValues extends BaseModel {
|
|
3
|
-
EntityValues: EntityValues[];
|
|
4
|
-
IsValid: boolean;
|
|
5
|
-
AllowAnonymous: boolean;
|
|
6
|
-
URL: string;
|
|
7
|
-
Duration: number;
|
|
8
|
-
ExpiryDate: Date;
|
|
9
|
-
Name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface EntityValues {
|
|
12
|
-
IsValid: boolean;
|
|
13
|
-
EntityName: string;
|
|
14
|
-
}
|