@acorex/modules 20.6.1 → 20.6.2
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/fesm2022/acorex-modules-form-template-management.mjs +325 -260
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +1 -37
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/form-template-management/index.d.ts +2 -138
- package/package.json +6 -6
|
@@ -4,13 +4,11 @@ import * as i1 from '@acorex/platform/layout/widgets';
|
|
|
4
4
|
import * as i3 from '@acorex/platform/layout/widget-core';
|
|
5
5
|
import { AXPValueWidgetComponent, AXPWidgetNode, AXPWidgetConfig, AXPWidgetCategory } from '@acorex/platform/layout/widget-core';
|
|
6
6
|
import * as i4 from '@acorex/platform/workflow';
|
|
7
|
-
import { AXPWorkflow
|
|
7
|
+
import { AXPWorkflow } from '@acorex/platform/workflow';
|
|
8
8
|
import { AXPEntityDetailDto, AXPEntityListItemDto, AXPEntityCreateDto, AXPEntityUpdateDto, AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';
|
|
9
9
|
import { AXPDesignerConnector, AXPDesignerContent, AXPDesignerWidgetComponent } from '@acorex/platform/layout/designer';
|
|
10
10
|
import { AXMenuItem } from '@acorex/components/menu';
|
|
11
|
-
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
12
11
|
import { AXPQueryRequest, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition } from '@acorex/platform/core';
|
|
13
|
-
import { AXPopupSizeType } from '@acorex/components/popup';
|
|
14
12
|
|
|
15
13
|
declare class AXMFormTemplateManagementTemplateEntityModule {
|
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMFormTemplateManagementTemplateEntityModule, never>;
|
|
@@ -232,139 +230,5 @@ declare class AXMQuestionnaireDataSourceDefinition implements AXPDataSourceDefin
|
|
|
232
230
|
items(): Promise<AXPDataSourceDefinition[]>;
|
|
233
231
|
}
|
|
234
232
|
|
|
235
|
-
|
|
236
|
-
* Show Form Activity - Displays a form dialog using Layout Builder.
|
|
237
|
-
*
|
|
238
|
-
* This activity creates a form dialog with fields defined using the Layout Builder API.
|
|
239
|
-
* It waits for user interaction (submit/cancel) and returns the form data and action outcome.
|
|
240
|
-
*
|
|
241
|
-
* Usage in Workflow:
|
|
242
|
-
* ```json
|
|
243
|
-
* {
|
|
244
|
-
* "type": "workflow-activity:show-form",
|
|
245
|
-
* "properties": {
|
|
246
|
-
* "title": "Login Form",
|
|
247
|
-
* "formDefinition": {
|
|
248
|
-
* "fields": [
|
|
249
|
-
* {
|
|
250
|
-
* "label": "Username",
|
|
251
|
-
* "type": "text-editor",
|
|
252
|
-
* "path": "username",
|
|
253
|
-
* "required": true
|
|
254
|
-
* },
|
|
255
|
-
* {
|
|
256
|
-
* "label": "Password",
|
|
257
|
-
* "type": "password-editor",
|
|
258
|
-
* "path": "password",
|
|
259
|
-
* "required": true
|
|
260
|
-
* }
|
|
261
|
-
* ]
|
|
262
|
-
* },
|
|
263
|
-
* "actions": ["submit", "cancel"],
|
|
264
|
-
* "context": {}
|
|
265
|
-
* }
|
|
266
|
-
* }
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
269
|
-
declare class ShowForm extends Activity<{
|
|
270
|
-
/**
|
|
271
|
-
* Dialog title
|
|
272
|
-
*/
|
|
273
|
-
title: string;
|
|
274
|
-
/**
|
|
275
|
-
* Form definition - can be:
|
|
276
|
-
* - JSON object with fields array
|
|
277
|
-
* - Widget node definition
|
|
278
|
-
*/
|
|
279
|
-
formDefinition: any;
|
|
280
|
-
/**
|
|
281
|
-
* Initial form context/data
|
|
282
|
-
*/
|
|
283
|
-
context?: Record<string, any>;
|
|
284
|
-
/**
|
|
285
|
-
* Dialog size
|
|
286
|
-
*/
|
|
287
|
-
size?: AXPopupSizeType;
|
|
288
|
-
/**
|
|
289
|
-
* Show close button
|
|
290
|
-
*/
|
|
291
|
-
closeButton?: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Actions to show (submit, cancel, or custom)
|
|
294
|
-
*/
|
|
295
|
-
actions?: {
|
|
296
|
-
submit?: string;
|
|
297
|
-
cancel?: string;
|
|
298
|
-
custom?: Array<{
|
|
299
|
-
title: string;
|
|
300
|
-
icon?: string;
|
|
301
|
-
color?: string;
|
|
302
|
-
command: string;
|
|
303
|
-
}>;
|
|
304
|
-
};
|
|
305
|
-
}, {
|
|
306
|
-
formData: Record<string, any>;
|
|
307
|
-
action: string;
|
|
308
|
-
cancelled: boolean;
|
|
309
|
-
}> {
|
|
310
|
-
private readonly layoutBuilderService;
|
|
311
|
-
constructor();
|
|
312
|
-
execute(input: {
|
|
313
|
-
title: string;
|
|
314
|
-
formDefinition: any;
|
|
315
|
-
context?: Record<string, any>;
|
|
316
|
-
size?: AXPopupSizeType;
|
|
317
|
-
closeButton?: boolean;
|
|
318
|
-
actions?: {
|
|
319
|
-
submit?: string;
|
|
320
|
-
cancel?: string;
|
|
321
|
-
custom?: Array<{
|
|
322
|
-
title: string;
|
|
323
|
-
icon?: string;
|
|
324
|
-
color?: string;
|
|
325
|
-
command: string;
|
|
326
|
-
}>;
|
|
327
|
-
};
|
|
328
|
-
}): Promise<_acorex_platform_core.AXPExecuteCommandResult<{
|
|
329
|
-
output: {
|
|
330
|
-
formData: Record<string, any>;
|
|
331
|
-
action: string;
|
|
332
|
-
cancelled: boolean;
|
|
333
|
-
};
|
|
334
|
-
outcomes: Record<string, any>;
|
|
335
|
-
}> | {
|
|
336
|
-
success: boolean;
|
|
337
|
-
error: {
|
|
338
|
-
message: string;
|
|
339
|
-
};
|
|
340
|
-
result: {
|
|
341
|
-
output: {
|
|
342
|
-
formData: {};
|
|
343
|
-
action: string;
|
|
344
|
-
cancelled: boolean;
|
|
345
|
-
};
|
|
346
|
-
outcomes: {
|
|
347
|
-
Failed: boolean;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
}>;
|
|
351
|
-
/**
|
|
352
|
-
* Build form fields from definition
|
|
353
|
-
*/
|
|
354
|
-
private buildFormFields;
|
|
355
|
-
/**
|
|
356
|
-
* Add a single form field
|
|
357
|
-
*/
|
|
358
|
-
private addFormField;
|
|
359
|
-
/**
|
|
360
|
-
* Add widget to form field based on type
|
|
361
|
-
*/
|
|
362
|
-
private addWidgetToFormField;
|
|
363
|
-
/**
|
|
364
|
-
* Convert widget node to form fields (recursive)
|
|
365
|
-
*/
|
|
366
|
-
private convertWidgetNodeToFields;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
export { AXMCreateFormTemplateWorkflow, AXMDesignFormTemplateWorkflow, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXMPermissionsKeys, AXMQuestionnaireDataSourceDefinition, AXPDesignerConnectorImpl, AXPTemplateDesignerWidget, AXPTemplateDesignerWidgetViewComponent, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig, ShowForm };
|
|
233
|
+
export { AXMCreateFormTemplateWorkflow, AXMDesignFormTemplateWorkflow, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXMPermissionsKeys, AXMQuestionnaireDataSourceDefinition, AXPDesignerConnectorImpl, AXPTemplateDesignerWidget, AXPTemplateDesignerWidgetViewComponent, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig };
|
|
370
234
|
export type { AXMCreateFormTemplateDto, AXMFormTemplateDetailDto, AXMFormTemplateListItemDto, AXMUpdateFormTemplateDto, AXPBlockWidgetConfigType, AXPTemplateWidgetItem, AXPTemplateWidgetListItem, AXPTemplateWidgetProvider };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/modules",
|
|
3
|
-
"version": "20.6.
|
|
3
|
+
"version": "20.6.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/platform": "20.6.
|
|
5
|
+
"@acorex/platform": "20.6.2",
|
|
6
6
|
"@angular/service-worker": "^20.0.0",
|
|
7
7
|
"angular-oauth2-oidc": "^15.0.0",
|
|
8
8
|
"d3": "^7.0.0",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"types": "./form-template-management/index.d.ts",
|
|
81
81
|
"default": "./fesm2022/acorex-modules-form-template-management.mjs"
|
|
82
82
|
},
|
|
83
|
-
"./human-capital-management": {
|
|
84
|
-
"types": "./human-capital-management/index.d.ts",
|
|
85
|
-
"default": "./fesm2022/acorex-modules-human-capital-management.mjs"
|
|
86
|
-
},
|
|
87
83
|
"./help-desk": {
|
|
88
84
|
"types": "./help-desk/index.d.ts",
|
|
89
85
|
"default": "./fesm2022/acorex-modules-help-desk.mjs"
|
|
90
86
|
},
|
|
87
|
+
"./human-capital-management": {
|
|
88
|
+
"types": "./human-capital-management/index.d.ts",
|
|
89
|
+
"default": "./fesm2022/acorex-modules-human-capital-management.mjs"
|
|
90
|
+
},
|
|
91
91
|
"./identifier-management": {
|
|
92
92
|
"types": "./identifier-management/index.d.ts",
|
|
93
93
|
"default": "./fesm2022/acorex-modules-identifier-management.mjs"
|