@genesislcap/foundation-forms 14.362.1 → 14.363.0

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.
@@ -66,6 +66,15 @@
66
66
  "description": "Optional confirmation message to display before form submission.\nIf set, a confirmation dialog will be shown when the user clicks submit.",
67
67
  "privacy": "public"
68
68
  },
69
+ {
70
+ "kind": "field",
71
+ "name": "setApprovalMessage",
72
+ "type": {
73
+ "text": "boolean"
74
+ },
75
+ "description": "When enabled, adds an APPROVAL_MESSAGE field to the form schema.\nThis field will be sent at root level alongside DETAILS when submitting.",
76
+ "privacy": "public"
77
+ },
69
78
  {
70
79
  "kind": "field",
71
80
  "name": "uischema",
@@ -388,6 +397,14 @@
388
397
  "description": "Optional confirmation message to display before form submission.\nIf set, a confirmation dialog will be shown when the user clicks submit.",
389
398
  "fieldName": "confirmationMessage"
390
399
  },
400
+ {
401
+ "name": "set-approval-message",
402
+ "type": {
403
+ "text": "boolean"
404
+ },
405
+ "description": "When enabled, adds an APPROVAL_MESSAGE field to the form schema.\nThis field will be sent at root level alongside DETAILS when submitting.",
406
+ "fieldName": "setApprovalMessage"
407
+ },
391
408
  {
392
409
  "type": {
393
410
  "text": "boolean"
@@ -1399,6 +1416,232 @@
1399
1416
  }
1400
1417
  ]
1401
1418
  },
1419
+ {
1420
+ "kind": "javascript-module",
1421
+ "path": "src/jsonforms/testers/isArray.ts",
1422
+ "declarations": [
1423
+ {
1424
+ "kind": "function",
1425
+ "name": "isArray",
1426
+ "parameters": [
1427
+ {
1428
+ "name": "itemsType",
1429
+ "type": {
1430
+ "text": "ArrayItemsType"
1431
+ }
1432
+ }
1433
+ ]
1434
+ }
1435
+ ],
1436
+ "exports": [
1437
+ {
1438
+ "kind": "js",
1439
+ "name": "isArray",
1440
+ "declaration": {
1441
+ "name": "isArray",
1442
+ "module": "src/jsonforms/testers/isArray.ts"
1443
+ }
1444
+ }
1445
+ ]
1446
+ },
1447
+ {
1448
+ "kind": "javascript-module",
1449
+ "path": "src/jsonforms/testers/isDate.ts",
1450
+ "declarations": [
1451
+ {
1452
+ "kind": "variable",
1453
+ "name": "isOneOfDate"
1454
+ }
1455
+ ],
1456
+ "exports": [
1457
+ {
1458
+ "kind": "js",
1459
+ "name": "isOneOfDate",
1460
+ "declaration": {
1461
+ "name": "isOneOfDate",
1462
+ "module": "src/jsonforms/testers/isDate.ts"
1463
+ }
1464
+ }
1465
+ ]
1466
+ },
1467
+ {
1468
+ "kind": "javascript-module",
1469
+ "path": "src/jsonforms/testers/isInvisible.ts",
1470
+ "declarations": [
1471
+ {
1472
+ "kind": "function",
1473
+ "name": "isInvisible",
1474
+ "return": {
1475
+ "type": {
1476
+ "text": "boolean"
1477
+ }
1478
+ },
1479
+ "parameters": [
1480
+ {
1481
+ "name": "uischema",
1482
+ "type": {
1483
+ "text": "UISchemaElement"
1484
+ }
1485
+ },
1486
+ {
1487
+ "name": "schema",
1488
+ "type": {
1489
+ "text": "JsonSchema"
1490
+ }
1491
+ },
1492
+ {
1493
+ "name": "context",
1494
+ "type": {
1495
+ "text": "TesterContext"
1496
+ }
1497
+ }
1498
+ ]
1499
+ }
1500
+ ],
1501
+ "exports": [
1502
+ {
1503
+ "kind": "js",
1504
+ "name": "isInvisible",
1505
+ "declaration": {
1506
+ "name": "isInvisible",
1507
+ "module": "src/jsonforms/testers/isInvisible.ts"
1508
+ }
1509
+ }
1510
+ ]
1511
+ },
1512
+ {
1513
+ "kind": "javascript-module",
1514
+ "path": "src/jsonforms/testers/isOneOfBoolean.ts",
1515
+ "declarations": [
1516
+ {
1517
+ "kind": "variable",
1518
+ "name": "isOneOfBoolean"
1519
+ }
1520
+ ],
1521
+ "exports": [
1522
+ {
1523
+ "kind": "js",
1524
+ "name": "isOneOfBoolean",
1525
+ "declaration": {
1526
+ "name": "isOneOfBoolean",
1527
+ "module": "src/jsonforms/testers/isOneOfBoolean.ts"
1528
+ }
1529
+ }
1530
+ ]
1531
+ },
1532
+ {
1533
+ "kind": "javascript-module",
1534
+ "path": "src/jsonforms/testers/isOneOfEnum.ts",
1535
+ "declarations": [
1536
+ {
1537
+ "kind": "variable",
1538
+ "name": "isOneOfEnum"
1539
+ }
1540
+ ],
1541
+ "exports": [
1542
+ {
1543
+ "kind": "js",
1544
+ "name": "isOneOfEnum",
1545
+ "declaration": {
1546
+ "name": "isOneOfEnum",
1547
+ "module": "src/jsonforms/testers/isOneOfEnum.ts"
1548
+ }
1549
+ }
1550
+ ]
1551
+ },
1552
+ {
1553
+ "kind": "javascript-module",
1554
+ "path": "src/jsonforms/testers/isOneOfNumber.ts",
1555
+ "declarations": [
1556
+ {
1557
+ "kind": "variable",
1558
+ "name": "isOneOfNumber"
1559
+ }
1560
+ ],
1561
+ "exports": [
1562
+ {
1563
+ "kind": "js",
1564
+ "name": "isOneOfNumber",
1565
+ "declaration": {
1566
+ "name": "isOneOfNumber",
1567
+ "module": "src/jsonforms/testers/isOneOfNumber.ts"
1568
+ }
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ "kind": "javascript-module",
1574
+ "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
1575
+ "declarations": [
1576
+ {
1577
+ "kind": "variable",
1578
+ "name": "isOneOfOptionMultiselect"
1579
+ }
1580
+ ],
1581
+ "exports": [
1582
+ {
1583
+ "kind": "js",
1584
+ "name": "isOneOfOptionMultiselect",
1585
+ "declaration": {
1586
+ "name": "isOneOfOptionMultiselect",
1587
+ "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
1588
+ }
1589
+ }
1590
+ ]
1591
+ },
1592
+ {
1593
+ "kind": "javascript-module",
1594
+ "path": "src/jsonforms/testers/isTime.ts",
1595
+ "declarations": [
1596
+ {
1597
+ "kind": "variable",
1598
+ "name": "isOneOfTime"
1599
+ }
1600
+ ],
1601
+ "exports": [
1602
+ {
1603
+ "kind": "js",
1604
+ "name": "isOneOfTime",
1605
+ "declaration": {
1606
+ "name": "isOneOfTime",
1607
+ "module": "src/jsonforms/testers/isTime.ts"
1608
+ }
1609
+ }
1610
+ ]
1611
+ },
1612
+ {
1613
+ "kind": "javascript-module",
1614
+ "path": "src/jsonforms/testers/optionIs.ts",
1615
+ "declarations": [
1616
+ {
1617
+ "kind": "function",
1618
+ "name": "optionIs",
1619
+ "return": {
1620
+ "type": {
1621
+ "text": "Tester"
1622
+ }
1623
+ },
1624
+ "parameters": [
1625
+ {
1626
+ "name": "optionName",
1627
+ "type": {
1628
+ "text": "string"
1629
+ }
1630
+ }
1631
+ ]
1632
+ }
1633
+ ],
1634
+ "exports": [
1635
+ {
1636
+ "kind": "js",
1637
+ "name": "optionIs",
1638
+ "declaration": {
1639
+ "name": "optionIs",
1640
+ "module": "src/jsonforms/testers/optionIs.ts"
1641
+ }
1642
+ }
1643
+ ]
1644
+ },
1402
1645
  {
1403
1646
  "kind": "javascript-module",
1404
1647
  "path": "src/jsonforms/renderers/ArrayListWrapperRenderer.ts",
@@ -3089,232 +3332,6 @@
3089
3332
  }
3090
3333
  }
3091
3334
  ]
3092
- },
3093
- {
3094
- "kind": "javascript-module",
3095
- "path": "src/jsonforms/testers/isArray.ts",
3096
- "declarations": [
3097
- {
3098
- "kind": "function",
3099
- "name": "isArray",
3100
- "parameters": [
3101
- {
3102
- "name": "itemsType",
3103
- "type": {
3104
- "text": "ArrayItemsType"
3105
- }
3106
- }
3107
- ]
3108
- }
3109
- ],
3110
- "exports": [
3111
- {
3112
- "kind": "js",
3113
- "name": "isArray",
3114
- "declaration": {
3115
- "name": "isArray",
3116
- "module": "src/jsonforms/testers/isArray.ts"
3117
- }
3118
- }
3119
- ]
3120
- },
3121
- {
3122
- "kind": "javascript-module",
3123
- "path": "src/jsonforms/testers/isDate.ts",
3124
- "declarations": [
3125
- {
3126
- "kind": "variable",
3127
- "name": "isOneOfDate"
3128
- }
3129
- ],
3130
- "exports": [
3131
- {
3132
- "kind": "js",
3133
- "name": "isOneOfDate",
3134
- "declaration": {
3135
- "name": "isOneOfDate",
3136
- "module": "src/jsonforms/testers/isDate.ts"
3137
- }
3138
- }
3139
- ]
3140
- },
3141
- {
3142
- "kind": "javascript-module",
3143
- "path": "src/jsonforms/testers/isInvisible.ts",
3144
- "declarations": [
3145
- {
3146
- "kind": "function",
3147
- "name": "isInvisible",
3148
- "return": {
3149
- "type": {
3150
- "text": "boolean"
3151
- }
3152
- },
3153
- "parameters": [
3154
- {
3155
- "name": "uischema",
3156
- "type": {
3157
- "text": "UISchemaElement"
3158
- }
3159
- },
3160
- {
3161
- "name": "schema",
3162
- "type": {
3163
- "text": "JsonSchema"
3164
- }
3165
- },
3166
- {
3167
- "name": "context",
3168
- "type": {
3169
- "text": "TesterContext"
3170
- }
3171
- }
3172
- ]
3173
- }
3174
- ],
3175
- "exports": [
3176
- {
3177
- "kind": "js",
3178
- "name": "isInvisible",
3179
- "declaration": {
3180
- "name": "isInvisible",
3181
- "module": "src/jsonforms/testers/isInvisible.ts"
3182
- }
3183
- }
3184
- ]
3185
- },
3186
- {
3187
- "kind": "javascript-module",
3188
- "path": "src/jsonforms/testers/isOneOfBoolean.ts",
3189
- "declarations": [
3190
- {
3191
- "kind": "variable",
3192
- "name": "isOneOfBoolean"
3193
- }
3194
- ],
3195
- "exports": [
3196
- {
3197
- "kind": "js",
3198
- "name": "isOneOfBoolean",
3199
- "declaration": {
3200
- "name": "isOneOfBoolean",
3201
- "module": "src/jsonforms/testers/isOneOfBoolean.ts"
3202
- }
3203
- }
3204
- ]
3205
- },
3206
- {
3207
- "kind": "javascript-module",
3208
- "path": "src/jsonforms/testers/isOneOfEnum.ts",
3209
- "declarations": [
3210
- {
3211
- "kind": "variable",
3212
- "name": "isOneOfEnum"
3213
- }
3214
- ],
3215
- "exports": [
3216
- {
3217
- "kind": "js",
3218
- "name": "isOneOfEnum",
3219
- "declaration": {
3220
- "name": "isOneOfEnum",
3221
- "module": "src/jsonforms/testers/isOneOfEnum.ts"
3222
- }
3223
- }
3224
- ]
3225
- },
3226
- {
3227
- "kind": "javascript-module",
3228
- "path": "src/jsonforms/testers/isOneOfNumber.ts",
3229
- "declarations": [
3230
- {
3231
- "kind": "variable",
3232
- "name": "isOneOfNumber"
3233
- }
3234
- ],
3235
- "exports": [
3236
- {
3237
- "kind": "js",
3238
- "name": "isOneOfNumber",
3239
- "declaration": {
3240
- "name": "isOneOfNumber",
3241
- "module": "src/jsonforms/testers/isOneOfNumber.ts"
3242
- }
3243
- }
3244
- ]
3245
- },
3246
- {
3247
- "kind": "javascript-module",
3248
- "path": "src/jsonforms/testers/isOneOfOptionMultiselect.ts",
3249
- "declarations": [
3250
- {
3251
- "kind": "variable",
3252
- "name": "isOneOfOptionMultiselect"
3253
- }
3254
- ],
3255
- "exports": [
3256
- {
3257
- "kind": "js",
3258
- "name": "isOneOfOptionMultiselect",
3259
- "declaration": {
3260
- "name": "isOneOfOptionMultiselect",
3261
- "module": "src/jsonforms/testers/isOneOfOptionMultiselect.ts"
3262
- }
3263
- }
3264
- ]
3265
- },
3266
- {
3267
- "kind": "javascript-module",
3268
- "path": "src/jsonforms/testers/isTime.ts",
3269
- "declarations": [
3270
- {
3271
- "kind": "variable",
3272
- "name": "isOneOfTime"
3273
- }
3274
- ],
3275
- "exports": [
3276
- {
3277
- "kind": "js",
3278
- "name": "isOneOfTime",
3279
- "declaration": {
3280
- "name": "isOneOfTime",
3281
- "module": "src/jsonforms/testers/isTime.ts"
3282
- }
3283
- }
3284
- ]
3285
- },
3286
- {
3287
- "kind": "javascript-module",
3288
- "path": "src/jsonforms/testers/optionIs.ts",
3289
- "declarations": [
3290
- {
3291
- "kind": "function",
3292
- "name": "optionIs",
3293
- "return": {
3294
- "type": {
3295
- "text": "Tester"
3296
- }
3297
- },
3298
- "parameters": [
3299
- {
3300
- "name": "optionName",
3301
- "type": {
3302
- "text": "string"
3303
- }
3304
- }
3305
- ]
3306
- }
3307
- ],
3308
- "exports": [
3309
- {
3310
- "kind": "js",
3311
- "name": "optionIs",
3312
- "declaration": {
3313
- "name": "optionIs",
3314
- "module": "src/jsonforms/testers/optionIs.ts"
3315
- }
3316
- }
3317
- ]
3318
3335
  }
3319
3336
  ]
3320
3337
  }
@@ -117,7 +117,10 @@ declare const Form_base: (new (...args: any[]) => {
117
117
  removeAttribute(qualifiedName: string): void;
118
118
  removeAttributeNS(namespace: string | null, localName: string): void;
119
119
  removeAttributeNode(attr: Attr): Attr;
120
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
120
+ requestFullscreen(options? /**
121
+ * Builds the commit payload for the form submission.
122
+ * @internal
123
+ */: FullscreenOptions): Promise<void>;
121
124
  requestPointerLock(options?: PointerLockOptions): Promise<void>;
122
125
  scroll(options?: ScrollToOptions): void;
123
126
  scroll(x: number, y: number): void;
@@ -397,6 +400,12 @@ export declare class Form extends Form_base {
397
400
  * @public
398
401
  */
399
402
  confirmationMessage: string;
403
+ /**
404
+ * When enabled, adds an APPROVAL_MESSAGE field to the form schema.
405
+ * This field will be sent at root level alongside DETAILS when submitting.
406
+ * @public
407
+ */
408
+ setApprovalMessage: boolean;
400
409
  /**
401
410
  * UI schema used to define configuration of the layout and elements in the form
402
411
  * Check {@link UiSchema} for possible options
@@ -499,6 +508,11 @@ export declare class Form extends Form_base {
499
508
  * @internal
500
509
  */
501
510
  _submit(): Promise<void>;
511
+ /**
512
+ * Builds the commit payload for the form submission.
513
+ * @internal
514
+ */
515
+ private buildCommitPayload;
502
516
  /**
503
517
  * Controls the visibility of the submit button.
504
518
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB1C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAiBlD;;;GAGG;AACH,eAAO,MAAM,SAAS,OAmBrB,CAAC;;;;;;;kBAbqB,CAAC;;;;;;;;8BAqDS,CAAC,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IAI7B;;;;;;OAMG;IACS,UAAU,EAAE,WAAW,CAAC;IAEpC,OAAO,CAAC,MAAM,CAAqB;IAC1B,OAAO,CAAC,OAAO,CAAW;IACnC;;;OAGG;IACS,IAAI,EAAE,GAAG,CAAM;IAE3B;;OAEG;IACS,UAAU,EAAE,OAAO,CAAC;IAChC;;OAEG;IACS,SAAS,EAAE,OAAO,CAAC;IAE/B;;;OAGG;IACwB,QAAQ,EAAE,OAAO,CAAC;IAC7C;;;OAGG;IACyD,UAAU,EAAE,OAAO,CAAC;IAEhF;;OAEG;IACG,OAAO;IAgDb;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAQ1B;;;OAGG;IACH,IAAc,cAAc,YAM3B;IAED;;OAEG;IACM,SAAS,IAAI,IAAI;IAW1B;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,WAAW;IAI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW;IAY3B;;OAEG;IACH,oBAAoB;IAKpB;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;CAMvB"}
@@ -328,4 +328,12 @@ export type RendererEntry = {
328
328
  tester: RankedTester;
329
329
  mapper: (state: JsonFormsState, ownProps: OwnPropsOfControl) => StatePropsOfControl;
330
330
  };
331
+ /**
332
+ * The payload type for the commit event.
333
+ * @internal
334
+ */
335
+ export type CommitPayload = {
336
+ DETAILS: any;
337
+ APPROVAL_MESSAGE?: string;
338
+ };
331
339
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE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rB,MAAM,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB,KAAK,mBAAmB,CAAC;CACrF,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,GAAG,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
package/dist/esm/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __awaiter, __decorate } from "tslib";
1
+ import { __awaiter, __decorate, __rest } from "tslib";
2
2
  import { Connect } from '@genesislcap/foundation-comms';
3
3
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
4
4
  import JsonSchemaDereferencer from '@json-schema-tools/dereferencer';
@@ -101,7 +101,7 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
101
101
  }
102
102
  resourceNameChanged() {
103
103
  return __awaiter(this, void 0, void 0, function* () {
104
- var _a;
104
+ var _a, _b;
105
105
  this.jsonSchema = undefined;
106
106
  if (this.resourceName) {
107
107
  const jsonSchemaResponse = yield this.connect.getJSONSchema(this.resourceName);
@@ -109,7 +109,15 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
109
109
  return;
110
110
  }
111
111
  const refResolver = new JsonSchemaDereferencer(jsonSchemaResponse.INBOUND);
112
- this.jsonSchema = (_a = (yield refResolver.resolve()).properties) === null || _a === void 0 ? void 0 : _a.DETAILS;
112
+ const detailsSchema = (_a = (yield refResolver.resolve()).properties) === null || _a === void 0 ? void 0 : _a.DETAILS;
113
+ const approvalMessageSchema = (_b = (yield refResolver.resolve()).properties) === null || _b === void 0 ? void 0 : _b.APPROVAL_MESSAGE;
114
+ // If setApprovalMessage is enabled, wrap the DETAILS schema with APPROVAL_MESSAGE field
115
+ if (this.setApprovalMessage && detailsSchema) {
116
+ this.jsonSchema = Object.assign(Object.assign({}, detailsSchema), { properties: Object.assign(Object.assign({}, detailsSchema.properties), { APPROVAL_MESSAGE: approvalMessageSchema }) });
117
+ }
118
+ else {
119
+ this.jsonSchema = detailsSchema;
120
+ }
113
121
  }
114
122
  });
115
123
  }
@@ -154,11 +162,12 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
154
162
  }
155
163
  this.submitted = true;
156
164
  const payload = Object.assign({}, this.data);
165
+ const commitPayload = this.buildCommitPayload(payload);
157
166
  logger.debug({ payload, errors: this.errors });
158
167
  this.$emit('submit', { payload, errors: this.errors });
159
168
  if (Object.entries(payload).length !== 0 && !this.errors.length && this.resourceName) {
160
169
  this.submitting = true;
161
- const formSubmitReq = yield this.connect.commitEvent(this.resourceName, { DETAILS: payload });
170
+ const formSubmitReq = yield this.connect.commitEvent(this.resourceName, commitPayload);
162
171
  this.submitting = false;
163
172
  if (formSubmitReq.ERROR) {
164
173
  this.$emit('submit-failure', { payload, errors: formSubmitReq.ERROR });
@@ -169,6 +178,17 @@ let Form = class Form extends LifecycleMixin(FoundationElement) {
169
178
  }
170
179
  });
171
180
  }
181
+ /**
182
+ * Builds the commit payload for the form submission.
183
+ * @internal
184
+ */
185
+ buildCommitPayload(data) {
186
+ if (this.setApprovalMessage) {
187
+ const { APPROVAL_MESSAGE } = data, details = __rest(data, ["APPROVAL_MESSAGE"]);
188
+ return { DETAILS: details, APPROVAL_MESSAGE };
189
+ }
190
+ return { DETAILS: data };
191
+ }
172
192
  /**
173
193
  * Controls the visibility of the submit button.
174
194
  * @internal
@@ -241,6 +261,9 @@ __decorate([
241
261
  __decorate([
242
262
  attr({ attribute: 'confirmation-message' })
243
263
  ], Form.prototype, "confirmationMessage", void 0);
264
+ __decorate([
265
+ attr({ attribute: 'set-approval-message', mode: 'boolean' })
266
+ ], Form.prototype, "setApprovalMessage", void 0);
244
267
  __decorate([
245
268
  observable
246
269
  ], Form.prototype, "uischema", void 0);
@@ -1294,6 +1294,36 @@
1294
1294
  "isProtected": false,
1295
1295
  "isAbstract": false
1296
1296
  },
1297
+ {
1298
+ "kind": "Property",
1299
+ "canonicalReference": "@genesislcap/foundation-forms!Form#setApprovalMessage:member",
1300
+ "docComment": "/**\n * When enabled, adds an APPROVAL_MESSAGE field to the form schema. This field will be sent at root level alongside DETAILS when submitting.\n *\n * @public\n */\n",
1301
+ "excerptTokens": [
1302
+ {
1303
+ "kind": "Content",
1304
+ "text": "setApprovalMessage: "
1305
+ },
1306
+ {
1307
+ "kind": "Content",
1308
+ "text": "boolean"
1309
+ },
1310
+ {
1311
+ "kind": "Content",
1312
+ "text": ";"
1313
+ }
1314
+ ],
1315
+ "isReadonly": false,
1316
+ "isOptional": false,
1317
+ "releaseTag": "Public",
1318
+ "name": "setApprovalMessage",
1319
+ "propertyTypeTokenRange": {
1320
+ "startIndex": 1,
1321
+ "endIndex": 2
1322
+ },
1323
+ "isStatic": false,
1324
+ "isProtected": false,
1325
+ "isAbstract": false
1326
+ },
1297
1327
  {
1298
1328
  "kind": "Property",
1299
1329
  "canonicalReference": "@genesislcap/foundation-forms!Form#uischema:member",
@@ -104,6 +104,15 @@ export declare type CategorizationRendererOptions = {
104
104
  /** @internal */
105
105
  export declare const comboboxRendererStyles: (prefix?: string) => string;
106
106
 
107
+ /**
108
+ * The payload type for the commit event.
109
+ * @internal
110
+ */
111
+ export declare type CommitPayload = {
112
+ DETAILS: any;
113
+ APPROVAL_MESSAGE?: string;
114
+ };
115
+
107
116
  /**
108
117
  * Available configuration options for connected combobox/multiselect.
109
118
  * @public
@@ -709,6 +718,12 @@ export declare class Form extends Form_base {
709
718
  * @public
710
719
  */
711
720
  confirmationMessage: string;
721
+ /**
722
+ * When enabled, adds an APPROVAL_MESSAGE field to the form schema.
723
+ * This field will be sent at root level alongside DETAILS when submitting.
724
+ * @public
725
+ */
726
+ setApprovalMessage: boolean;
712
727
  /**
713
728
  * UI schema used to define configuration of the layout and elements in the form
714
729
  * Check {@link UiSchema} for possible options
@@ -811,6 +826,11 @@ export declare class Form extends Form_base {
811
826
  * @internal
812
827
  */
813
828
  _submit(): Promise<void>;
829
+ /**
830
+ * Builds the commit payload for the form submission.
831
+ * @internal
832
+ */
833
+ private buildCommitPayload;
814
834
  /**
815
835
  * Controls the visibility of the submit button.
816
836
  * @internal
@@ -950,7 +970,10 @@ declare const Form_base: (new (...args: any[]) => {
950
970
  removeAttribute(qualifiedName: string): void;
951
971
  removeAttributeNS(namespace: string | null, localName: string): void;
952
972
  removeAttributeNode(attr: Attr): Attr;
953
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
973
+ requestFullscreen(options? /**
974
+ * Builds the commit payload for the form submission.
975
+ * @internal
976
+ */: FullscreenOptions): Promise<void>;
954
977
  requestPointerLock(options?: PointerLockOptions): Promise<void>;
955
978
  scroll(options?: ScrollToOptions): void;
956
979
  scroll(x: number, y: number): void;
@@ -206,6 +206,25 @@ string
206
206
  Name of the backend resource which will provide metadata used to generate form and later used for submitting data
207
207
 
208
208
 
209
+ </td></tr>
210
+ <tr><td>
211
+
212
+ [setApprovalMessage](./foundation-forms.form.setapprovalmessage.md)
213
+
214
+
215
+ </td><td>
216
+
217
+
218
+ </td><td>
219
+
220
+ boolean
221
+
222
+
223
+ </td><td>
224
+
225
+ When enabled, adds an APPROVAL\_MESSAGE field to the form schema. This field will be sent at root level alongside DETAILS when submitting.
226
+
227
+
209
228
  </td></tr>
210
229
  <tr><td>
211
230
 
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-forms](./foundation-forms.md) &gt; [Form](./foundation-forms.form.md) &gt; [setApprovalMessage](./foundation-forms.form.setapprovalmessage.md)
4
+
5
+ ## Form.setApprovalMessage property
6
+
7
+ When enabled, adds an APPROVAL\_MESSAGE field to the form schema. This field will be sent at root level alongside DETAILS when submitting.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setApprovalMessage: boolean;
13
+ ```
@@ -47,6 +47,14 @@ export type CategorizationRendererOptions = {
47
47
  // @internal (undocumented)
48
48
  export const comboboxRendererStyles: (prefix?: string) => string;
49
49
 
50
+ // Warning: (ae-internal-missing-underscore) The name "CommitPayload" should be prefixed with an underscore because the declaration is marked as @internal
51
+ //
52
+ // @internal
53
+ export type CommitPayload = {
54
+ DETAILS: any;
55
+ APPROVAL_MESSAGE?: string;
56
+ };
57
+
50
58
  // @public
51
59
  export type ConnectedRenderersOptions = {
52
60
  async?: boolean;
@@ -144,6 +152,7 @@ export class Form extends Form_base {
144
152
  renderersChanged(): void;
145
153
  reset(clearData?: boolean): void;
146
154
  resourceName: string;
155
+ setApprovalMessage: boolean;
147
156
  // @internal (undocumented)
148
157
  _submit(): Promise<void>;
149
158
  // @internal (undocumented)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-forms",
3
3
  "description": "Genesis Foundation Forms",
4
- "version": "14.362.1",
4
+ "version": "14.363.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -48,22 +48,22 @@
48
48
  }
49
49
  },
50
50
  "devDependencies": {
51
- "@genesislcap/foundation-testing": "14.362.1",
52
- "@genesislcap/genx": "14.362.1",
53
- "@genesislcap/rollup-builder": "14.362.1",
54
- "@genesislcap/ts-builder": "14.362.1",
55
- "@genesislcap/uvu-playwright-builder": "14.362.1",
56
- "@genesislcap/vite-builder": "14.362.1",
57
- "@genesislcap/webpack-builder": "14.362.1",
51
+ "@genesislcap/foundation-testing": "14.363.0",
52
+ "@genesislcap/genx": "14.363.0",
53
+ "@genesislcap/rollup-builder": "14.363.0",
54
+ "@genesislcap/ts-builder": "14.363.0",
55
+ "@genesislcap/uvu-playwright-builder": "14.363.0",
56
+ "@genesislcap/vite-builder": "14.363.0",
57
+ "@genesislcap/webpack-builder": "14.363.0",
58
58
  "@types/json-schema": "^7.0.11"
59
59
  },
60
60
  "dependencies": {
61
- "@genesislcap/foundation-comms": "14.362.1",
62
- "@genesislcap/foundation-criteria": "14.362.1",
63
- "@genesislcap/foundation-logger": "14.362.1",
64
- "@genesislcap/foundation-notifications": "14.362.1",
65
- "@genesislcap/foundation-ui": "14.362.1",
66
- "@genesislcap/foundation-utils": "14.362.1",
61
+ "@genesislcap/foundation-comms": "14.363.0",
62
+ "@genesislcap/foundation-criteria": "14.363.0",
63
+ "@genesislcap/foundation-logger": "14.363.0",
64
+ "@genesislcap/foundation-notifications": "14.363.0",
65
+ "@genesislcap/foundation-ui": "14.363.0",
66
+ "@genesislcap/foundation-utils": "14.363.0",
67
67
  "@json-schema-tools/dereferencer": "^1.6.1",
68
68
  "@jsonforms/core": "^3.2.1",
69
69
  "@microsoft/fast-components": "2.30.6",
@@ -84,5 +84,5 @@
84
84
  "access": "public"
85
85
  },
86
86
  "customElements": "dist/custom-elements.json",
87
- "gitHead": "399a4b5956983a15ed1277988b2e185a0ed155e4"
87
+ "gitHead": "40c64eb7db47bb801edd34ec3ae5e4c726afe40a"
88
88
  }