@wise/dynamic-flow-client 4.18.4 → 4.19.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.
- package/build/i18n/uk.json +10 -10
- package/build/main.css +1 -1
- package/build/main.js +352 -112
- package/build/main.mjs +352 -112
- package/build/types/revamp/domain/components/AlertComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BoxComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ColumnsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/DividerComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/FormComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ImageComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/InstructionsComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ListComponent.d.ts +3 -2
- package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MarkdownComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ModalComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/ModalLayoutComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/PersistAsyncComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ProgressComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ReviewComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/SectionComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/StatusListComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/TabsComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TupleComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/step/StepDomainComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/step/ToolbarComponent.d.ts +3 -1
- package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/columnsLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/deprecatedListLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/listLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/progressLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/searchLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/sectionLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/statusListLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/layout/tabsLayoutToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +14 -0
- package/build/types/revamp/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +14 -0
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +1 -0
- package/build/types/revamp/domain/mappers/utils/suggestions-utils.d.ts +1 -0
- package/build/types/revamp/domain/mappers/utils/tags-utils.d.ts +4 -0
- package/build/types/revamp/domain/types.d.ts +4 -2
- package/build/types/revamp/renderers/mappers/columnsComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/dateInputComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/textInputComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +1 -0
- package/build/types/revamp/renderers/mappers/utils/mapSuggestions.d.ts +12 -0
- package/build/types/revamp/renderers/mappers/utils/mapTags.d.ts +8 -0
- package/build/types/revamp/tests/renderers/StepRenderer.test.d.ts +1 -0
- package/package.json +17 -17
package/build/main.mjs
CHANGED
|
@@ -1276,6 +1276,7 @@ var stepComponentToProps = (component, rendererMapperProps) => {
|
|
|
1276
1276
|
loadingState,
|
|
1277
1277
|
step,
|
|
1278
1278
|
title,
|
|
1279
|
+
tags,
|
|
1279
1280
|
onBehavior
|
|
1280
1281
|
} = component;
|
|
1281
1282
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
@@ -1295,6 +1296,7 @@ var stepComponentToProps = (component, rendererMapperProps) => {
|
|
|
1295
1296
|
loadingState,
|
|
1296
1297
|
step,
|
|
1297
1298
|
title,
|
|
1299
|
+
tags,
|
|
1298
1300
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1299
1301
|
childrenProps,
|
|
1300
1302
|
footer: footerProps.map(rendererMapperProps.render),
|
|
@@ -1308,7 +1310,7 @@ var getToolbarProps = (toolbar, rendererMapperProps) => {
|
|
|
1308
1310
|
if (!toolbar) {
|
|
1309
1311
|
return void 0;
|
|
1310
1312
|
}
|
|
1311
|
-
return __spreadValues(__spreadProps(__spreadValues({}, pick(toolbar, "uid", "control", "type")), {
|
|
1313
|
+
return __spreadValues(__spreadProps(__spreadValues({}, pick(toolbar, "uid", "control", "type", "tags")), {
|
|
1312
1314
|
type: "toolbar",
|
|
1313
1315
|
items: toolbar.items.map((item) => __spreadProps(__spreadValues({}, item), {
|
|
1314
1316
|
disabled: item.disabled || rendererMapperProps.stepLoadingState !== "idle"
|
|
@@ -1326,7 +1328,8 @@ var alertComponentToProps = (component, rendererMapperProps) => __spreadValues(_
|
|
|
1326
1328
|
"context",
|
|
1327
1329
|
"control",
|
|
1328
1330
|
"margin",
|
|
1329
|
-
"markdown"
|
|
1331
|
+
"markdown",
|
|
1332
|
+
"tags"
|
|
1330
1333
|
)), rendererMapperProps);
|
|
1331
1334
|
|
|
1332
1335
|
// src/revamp/renderers/mappers/utils/mapMediaToLegacyProps.ts
|
|
@@ -1346,7 +1349,17 @@ var allOfComponentToProps = (component, rendererMapperProps) => {
|
|
|
1346
1349
|
);
|
|
1347
1350
|
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
1348
1351
|
type: "form-section"
|
|
1349
|
-
}, pick(
|
|
1352
|
+
}, pick(
|
|
1353
|
+
component,
|
|
1354
|
+
"uid",
|
|
1355
|
+
"analyticsId",
|
|
1356
|
+
"control",
|
|
1357
|
+
"description",
|
|
1358
|
+
"help",
|
|
1359
|
+
"media",
|
|
1360
|
+
"tags",
|
|
1361
|
+
"title"
|
|
1362
|
+
)), mapMediaToLegacyProps(component.media)), rendererMapperProps), {
|
|
1350
1363
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1351
1364
|
childrenProps
|
|
1352
1365
|
});
|
|
@@ -1379,6 +1392,7 @@ var inputComponentToProps = (component, type) => {
|
|
|
1379
1392
|
placeholder,
|
|
1380
1393
|
required,
|
|
1381
1394
|
title,
|
|
1395
|
+
tags,
|
|
1382
1396
|
validationAsyncState,
|
|
1383
1397
|
onBlur,
|
|
1384
1398
|
onFocus
|
|
@@ -1397,6 +1411,7 @@ var inputComponentToProps = (component, type) => {
|
|
|
1397
1411
|
placeholder,
|
|
1398
1412
|
required,
|
|
1399
1413
|
title,
|
|
1414
|
+
tags,
|
|
1400
1415
|
validationState: getValidationState(errors, validationAsyncState),
|
|
1401
1416
|
value: component.getLocalValue(),
|
|
1402
1417
|
onBlur: onBlur.bind(component),
|
|
@@ -1430,7 +1445,7 @@ var boxComponentToProps = (component, rendererMapperProps) => {
|
|
|
1430
1445
|
(c) => componentToRendererProps(c, rendererMapperProps)
|
|
1431
1446
|
);
|
|
1432
1447
|
const { border, control } = component;
|
|
1433
|
-
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "width", "margin")), rendererMapperProps), {
|
|
1448
|
+
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "width", "margin", "tags")), rendererMapperProps), {
|
|
1434
1449
|
control: mapBoxControl({ border, control }),
|
|
1435
1450
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1436
1451
|
childrenProps
|
|
@@ -1460,14 +1475,24 @@ var buttonComponentToProps = (component, rendererMapperProps) => {
|
|
|
1460
1475
|
"margin",
|
|
1461
1476
|
"pinOrder",
|
|
1462
1477
|
"size",
|
|
1463
|
-
"onClick"
|
|
1478
|
+
"onClick",
|
|
1479
|
+
"tags"
|
|
1464
1480
|
)), {
|
|
1465
1481
|
disabled: component.disabled || rendererMapperProps.stepLoadingState !== "idle"
|
|
1466
1482
|
}), rendererMapperProps);
|
|
1467
1483
|
};
|
|
1468
1484
|
|
|
1469
1485
|
// src/revamp/renderers/mappers/columnsComponentToProps.ts
|
|
1470
|
-
var columnsComponentToProps = ({
|
|
1486
|
+
var columnsComponentToProps = ({
|
|
1487
|
+
uid,
|
|
1488
|
+
analyticsId,
|
|
1489
|
+
bias,
|
|
1490
|
+
control,
|
|
1491
|
+
margin,
|
|
1492
|
+
tags,
|
|
1493
|
+
startComponents,
|
|
1494
|
+
endComponents
|
|
1495
|
+
}, rendererMapperProps) => {
|
|
1471
1496
|
const startChildrenProps = startComponents.map(
|
|
1472
1497
|
(c) => componentToRendererProps(c, rendererMapperProps)
|
|
1473
1498
|
);
|
|
@@ -1481,6 +1506,7 @@ var columnsComponentToProps = ({ uid, analyticsId, bias, control, margin, startC
|
|
|
1481
1506
|
bias,
|
|
1482
1507
|
control,
|
|
1483
1508
|
margin,
|
|
1509
|
+
tags,
|
|
1484
1510
|
startChildren: startChildrenProps.map(rendererMapperProps.render),
|
|
1485
1511
|
endChildren: endChildrenProps.map(rendererMapperProps.render),
|
|
1486
1512
|
startChildrenProps,
|
|
@@ -1512,29 +1538,39 @@ var containerComponentToProps = (component, rendererMapperProps) => {
|
|
|
1512
1538
|
}, rendererMapperProps);
|
|
1513
1539
|
};
|
|
1514
1540
|
|
|
1541
|
+
// src/revamp/renderers/mappers/utils/mapTags.ts
|
|
1542
|
+
var mapTagsToLegacyProps = ({ tags }) => ({
|
|
1543
|
+
tags,
|
|
1544
|
+
tag: tags && tags.length >= 1 ? tags[0] : void 0
|
|
1545
|
+
});
|
|
1546
|
+
|
|
1547
|
+
// src/revamp/renderers/mappers/utils/mapSuggestions.ts
|
|
1548
|
+
var mapSuggestions = (suggestions) => suggestions ? {
|
|
1549
|
+
values: suggestions.values.map(mapSuggestionValue)
|
|
1550
|
+
} : void 0;
|
|
1551
|
+
var mapSuggestionValue = (suggestionValue) => __spreadValues(__spreadValues(__spreadValues({}, suggestionValue), mapTagsToLegacyProps(suggestionValue)), mapMediaToLegacyProps(suggestionValue.media));
|
|
1552
|
+
|
|
1515
1553
|
// src/revamp/renderers/mappers/dateInputComponentToProps.ts
|
|
1516
1554
|
var dateInputComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, inputComponentToProps(component, "input-date")), rendererMapperProps), {
|
|
1517
1555
|
autoComplete: component.autoComplete,
|
|
1518
1556
|
minimumDate: component.minimumDate,
|
|
1519
1557
|
maximumDate: component.maximumDate,
|
|
1520
|
-
suggestions: component.suggestions
|
|
1521
|
-
values: component.suggestions.values.map((suggestion) => __spreadValues(__spreadValues({}, suggestion), mapMediaToLegacyProps(suggestion.media)))
|
|
1522
|
-
} : void 0,
|
|
1558
|
+
suggestions: mapSuggestions(component.suggestions),
|
|
1523
1559
|
onChange: component.onChange.bind(component)
|
|
1524
1560
|
});
|
|
1525
1561
|
|
|
1526
1562
|
// src/revamp/renderers/mappers/decisionComponentToProps.ts
|
|
1527
|
-
var decisionComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "title")), rendererMapperProps), {
|
|
1563
|
+
var decisionComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "title", "tags")), rendererMapperProps), {
|
|
1528
1564
|
options: component.options.map((_a) => {
|
|
1529
1565
|
var _b = _a, { disabled, media } = _b, rest = __objRest(_b, ["disabled", "media"]);
|
|
1530
|
-
return __spreadProps(__spreadValues(__spreadValues({}, rest), mapMediaToLegacyProps(media)), {
|
|
1566
|
+
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, rest), mapTagsToLegacyProps(rest)), mapMediaToLegacyProps(media)), {
|
|
1531
1567
|
disabled: disabled || rendererMapperProps.stepLoadingState !== "idle"
|
|
1532
1568
|
});
|
|
1533
1569
|
})
|
|
1534
1570
|
});
|
|
1535
1571
|
|
|
1536
1572
|
// src/revamp/renderers/mappers/dividerComponentToProps.ts
|
|
1537
|
-
var dividerComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin")), rendererMapperProps);
|
|
1573
|
+
var dividerComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "tags")), rendererMapperProps);
|
|
1538
1574
|
|
|
1539
1575
|
// src/revamp/renderers/mappers/externalComponentToProps.ts
|
|
1540
1576
|
var externalComponentToProps = (component, rendererMapperProps) => {
|
|
@@ -1552,7 +1588,7 @@ var externalComponentToProps = (component, rendererMapperProps) => {
|
|
|
1552
1588
|
// src/revamp/renderers/mappers/formComponentToProps.ts
|
|
1553
1589
|
var formComponentToProps = (component, rendererMapperProps) => {
|
|
1554
1590
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1555
|
-
const { uid, analyticsId, control, margin } = component;
|
|
1591
|
+
const { uid, analyticsId, control, margin, tags } = component;
|
|
1556
1592
|
return __spreadValues({
|
|
1557
1593
|
uid,
|
|
1558
1594
|
analyticsId,
|
|
@@ -1560,12 +1596,24 @@ var formComponentToProps = (component, rendererMapperProps) => {
|
|
|
1560
1596
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1561
1597
|
childrenProps,
|
|
1562
1598
|
control,
|
|
1563
|
-
margin
|
|
1599
|
+
margin,
|
|
1600
|
+
tags
|
|
1564
1601
|
}, rendererMapperProps);
|
|
1565
1602
|
};
|
|
1566
1603
|
|
|
1567
1604
|
// src/revamp/renderers/mappers/headingComponentToProps.ts
|
|
1568
|
-
var headingComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(
|
|
1605
|
+
var headingComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(
|
|
1606
|
+
component,
|
|
1607
|
+
"uid",
|
|
1608
|
+
"analyticsId",
|
|
1609
|
+
"type",
|
|
1610
|
+
"align",
|
|
1611
|
+
"control",
|
|
1612
|
+
"margin",
|
|
1613
|
+
"size",
|
|
1614
|
+
"tags",
|
|
1615
|
+
"text"
|
|
1616
|
+
)), rendererMapperProps);
|
|
1569
1617
|
|
|
1570
1618
|
// src/revamp/renderers/mappers/hiddenComponentToProps.ts
|
|
1571
1619
|
var hiddenComponentToProps = ({ uid }) => ({
|
|
@@ -1574,13 +1622,15 @@ var hiddenComponentToProps = ({ uid }) => ({
|
|
|
1574
1622
|
});
|
|
1575
1623
|
|
|
1576
1624
|
// src/revamp/renderers/mappers/imageComponentToProps.ts
|
|
1577
|
-
var imageComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "align", "control", "margin", "size")), rendererMapperProps), {
|
|
1625
|
+
var imageComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "align", "control", "margin", "size", "tags")), rendererMapperProps), {
|
|
1578
1626
|
uri: component.content.uri,
|
|
1579
1627
|
accessibilityDescription: component.content.accessibilityDescription
|
|
1580
1628
|
});
|
|
1581
1629
|
|
|
1582
1630
|
// src/revamp/renderers/mappers/instructionsComponentToProps.ts
|
|
1583
|
-
var instructionsComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "
|
|
1631
|
+
var instructionsComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadProps(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "title", "tags")), {
|
|
1632
|
+
items: component.items.map((item) => __spreadValues(__spreadValues({}, item), mapTagsToLegacyProps(item)))
|
|
1633
|
+
}), rendererMapperProps);
|
|
1584
1634
|
|
|
1585
1635
|
// src/revamp/renderers/mappers/integerInputComponentToProps.ts
|
|
1586
1636
|
var integerInputComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, inputComponentToProps(component, "input-integer")), rendererMapperProps), {
|
|
@@ -1591,34 +1641,45 @@ var integerInputComponentToProps = (component, rendererMapperProps) => __spreadP
|
|
|
1591
1641
|
});
|
|
1592
1642
|
|
|
1593
1643
|
// src/revamp/renderers/mappers/listComponentToProps.ts
|
|
1594
|
-
var listComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(
|
|
1644
|
+
var listComponentToProps = (component, rendererMapperProps) => __spreadProps(__spreadValues(__spreadValues({}, pick(
|
|
1645
|
+
component,
|
|
1646
|
+
"uid",
|
|
1647
|
+
"analyticsId",
|
|
1648
|
+
"type",
|
|
1649
|
+
"callToAction",
|
|
1650
|
+
"control",
|
|
1651
|
+
"margin",
|
|
1652
|
+
"title",
|
|
1653
|
+
"tags"
|
|
1654
|
+
)), rendererMapperProps), {
|
|
1595
1655
|
items: component.items.map(mapItem)
|
|
1596
1656
|
});
|
|
1597
1657
|
var mapItem = (item) => {
|
|
1598
1658
|
var _a, _b;
|
|
1599
|
-
return __spreadValues(__spreadProps(__spreadValues({}, item), {
|
|
1659
|
+
return __spreadValues(__spreadValues(__spreadProps(__spreadValues({}, item), {
|
|
1600
1660
|
// populate deprecated fields
|
|
1601
1661
|
subtitle: item.description,
|
|
1602
1662
|
value: (_a = item.supportingValues) == null ? void 0 : _a.value,
|
|
1603
1663
|
subvalue: (_b = item.supportingValues) == null ? void 0 : _b.subvalue
|
|
1604
|
-
}), mapMediaToLegacyProps(item.media));
|
|
1664
|
+
}), mapTagsToLegacyProps(item)), mapMediaToLegacyProps(item.media));
|
|
1605
1665
|
};
|
|
1606
1666
|
|
|
1607
1667
|
// src/revamp/renderers/mappers/loadingIndicatorComponentToProps.ts
|
|
1608
|
-
var loadingIndicatorComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "size")), rendererMapperProps);
|
|
1668
|
+
var loadingIndicatorComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "size", "tags")), rendererMapperProps);
|
|
1609
1669
|
|
|
1610
1670
|
// src/revamp/renderers/mappers/markdownComponentToProps.ts
|
|
1611
|
-
var markdownComponentToProps = (control, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(control, "uid", "analyticsId", "type", "align", "margin", "content", "control")), rendererMapperProps);
|
|
1671
|
+
var markdownComponentToProps = (control, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(control, "uid", "analyticsId", "type", "align", "margin", "content", "control", "tags")), rendererMapperProps);
|
|
1612
1672
|
|
|
1613
1673
|
// src/revamp/renderers/mappers/modalComponentToProps.ts
|
|
1614
1674
|
var modalComponentToProps = (component, rendererMapperProps) => {
|
|
1615
|
-
const { uid, analyticsId, open, title, close } = component;
|
|
1675
|
+
const { uid, analyticsId, open, tags, title, close } = component;
|
|
1616
1676
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1617
1677
|
return __spreadValues({
|
|
1618
1678
|
uid,
|
|
1619
1679
|
analyticsId,
|
|
1620
1680
|
type: "modal",
|
|
1621
1681
|
open,
|
|
1682
|
+
tags,
|
|
1622
1683
|
title,
|
|
1623
1684
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1624
1685
|
childrenProps,
|
|
@@ -1628,7 +1689,7 @@ var modalComponentToProps = (component, rendererMapperProps) => {
|
|
|
1628
1689
|
|
|
1629
1690
|
// src/revamp/renderers/mappers/modalLayoutComponentToProps.ts
|
|
1630
1691
|
var modalLayoutComponentToProps = (component, rendererMapperProps) => {
|
|
1631
|
-
const { uid, analyticsId, content, control, margin, trigger } = component;
|
|
1692
|
+
const { uid, analyticsId, content, control, margin, tags, trigger } = component;
|
|
1632
1693
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1633
1694
|
return __spreadValues({
|
|
1634
1695
|
uid,
|
|
@@ -1641,6 +1702,7 @@ var modalLayoutComponentToProps = (component, rendererMapperProps) => {
|
|
|
1641
1702
|
},
|
|
1642
1703
|
control,
|
|
1643
1704
|
margin,
|
|
1705
|
+
tags,
|
|
1644
1706
|
trigger
|
|
1645
1707
|
}, rendererMapperProps);
|
|
1646
1708
|
};
|
|
@@ -1690,14 +1752,24 @@ var objectComponentToProps = (component, rendererMapperProps) => {
|
|
|
1690
1752
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1691
1753
|
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
1692
1754
|
type: "form-section"
|
|
1693
|
-
}, pick(
|
|
1755
|
+
}, pick(
|
|
1756
|
+
component,
|
|
1757
|
+
"uid",
|
|
1758
|
+
"analyticsId",
|
|
1759
|
+
"control",
|
|
1760
|
+
"description",
|
|
1761
|
+
"help",
|
|
1762
|
+
"media",
|
|
1763
|
+
"tags",
|
|
1764
|
+
"title"
|
|
1765
|
+
)), mapMediaToLegacyProps(component.media)), rendererMapperProps), {
|
|
1694
1766
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1695
1767
|
childrenProps
|
|
1696
1768
|
});
|
|
1697
1769
|
};
|
|
1698
1770
|
|
|
1699
1771
|
// src/revamp/renderers/mappers/paragraphComponentToProps.ts
|
|
1700
|
-
var paragraphComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "align", "control", "margin", "text")), rendererMapperProps);
|
|
1772
|
+
var paragraphComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "align", "control", "margin", "tags", "text")), rendererMapperProps);
|
|
1701
1773
|
|
|
1702
1774
|
// src/revamp/renderers/mappers/persistAsyncComponentToProps.ts
|
|
1703
1775
|
var persistAsyncComponentToProps = (component, rendererMapperProps) => {
|
|
@@ -1717,6 +1789,7 @@ var progressComponentToProps = (component, rendererMapperProps) => __spreadValue
|
|
|
1717
1789
|
"type",
|
|
1718
1790
|
"analyticsId",
|
|
1719
1791
|
"context",
|
|
1792
|
+
"tags",
|
|
1720
1793
|
"control",
|
|
1721
1794
|
"description",
|
|
1722
1795
|
"help",
|
|
@@ -1743,6 +1816,7 @@ var repeatableComponentToProps = (component, rendererMapperProps) => {
|
|
|
1743
1816
|
minItems,
|
|
1744
1817
|
summaryDefaults,
|
|
1745
1818
|
title = "",
|
|
1819
|
+
tags,
|
|
1746
1820
|
onEdit,
|
|
1747
1821
|
onAdd,
|
|
1748
1822
|
onSave,
|
|
@@ -1783,6 +1857,7 @@ var repeatableComponentToProps = (component, rendererMapperProps) => {
|
|
|
1783
1857
|
maxItems,
|
|
1784
1858
|
minItems,
|
|
1785
1859
|
title,
|
|
1860
|
+
tags,
|
|
1786
1861
|
validationState: mapErrorsToValidationState(errors),
|
|
1787
1862
|
onAdd: onAdd.bind(component),
|
|
1788
1863
|
onEdit: onEdit.bind(component),
|
|
@@ -1792,7 +1867,17 @@ var repeatableComponentToProps = (component, rendererMapperProps) => {
|
|
|
1792
1867
|
};
|
|
1793
1868
|
|
|
1794
1869
|
// src/revamp/renderers/mappers/reviewComponentToProps.ts
|
|
1795
|
-
var reviewComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadProps(__spreadValues({}, pick(
|
|
1870
|
+
var reviewComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadProps(__spreadValues({}, pick(
|
|
1871
|
+
component,
|
|
1872
|
+
"uid",
|
|
1873
|
+
"analyticsId",
|
|
1874
|
+
"type",
|
|
1875
|
+
"callToAction",
|
|
1876
|
+
"control",
|
|
1877
|
+
"margin",
|
|
1878
|
+
"title",
|
|
1879
|
+
"tags"
|
|
1880
|
+
)), {
|
|
1796
1881
|
fields: component.fields.map(mapField)
|
|
1797
1882
|
}), rendererMapperProps);
|
|
1798
1883
|
var mapField = (_a) => {
|
|
@@ -1801,7 +1886,7 @@ var mapField = (_a) => {
|
|
|
1801
1886
|
} = _b, rest = __objRest(_b, [
|
|
1802
1887
|
"media"
|
|
1803
1888
|
]);
|
|
1804
|
-
return __spreadValues(__spreadValues({}, rest), mapMediaToLegacyProps(media));
|
|
1889
|
+
return __spreadValues(__spreadValues(__spreadValues({}, rest), mapTagsToLegacyProps(rest)), mapMediaToLegacyProps(media));
|
|
1805
1890
|
};
|
|
1806
1891
|
|
|
1807
1892
|
// src/revamp/renderers/mappers/rootComponentToProps.ts
|
|
@@ -1841,7 +1926,7 @@ var getDomainLayerMedia = ({ icon, image, media }) => {
|
|
|
1841
1926
|
|
|
1842
1927
|
// src/revamp/renderers/mappers/searchComponentToProps.ts
|
|
1843
1928
|
var searchComponentToProps = (component, rendererMapperProps) => {
|
|
1844
|
-
const { uid, control, emptyMessage, error, isLoading, margin, query, results, title } = component;
|
|
1929
|
+
const { uid, control, emptyMessage, error, isLoading, margin, query, results, title, tags } = component;
|
|
1845
1930
|
const onChange = component.onChange.bind(component);
|
|
1846
1931
|
const onSelect = component.onSelect.bind(component);
|
|
1847
1932
|
const state = getSearchState({
|
|
@@ -1863,6 +1948,7 @@ var searchComponentToProps = (component, rendererMapperProps) => {
|
|
|
1863
1948
|
query,
|
|
1864
1949
|
state,
|
|
1865
1950
|
title,
|
|
1951
|
+
tags,
|
|
1866
1952
|
onChange
|
|
1867
1953
|
}, rendererMapperProps);
|
|
1868
1954
|
};
|
|
@@ -1901,7 +1987,17 @@ var sectionComponentToProps = (component, rendererMapperProps) => {
|
|
|
1901
1987
|
const childrenProps = component.components.map(
|
|
1902
1988
|
(c) => componentToRendererProps(c, rendererMapperProps)
|
|
1903
1989
|
);
|
|
1904
|
-
return __spreadProps(__spreadValues(__spreadValues({}, pick(
|
|
1990
|
+
return __spreadProps(__spreadValues(__spreadValues({}, pick(
|
|
1991
|
+
component,
|
|
1992
|
+
"uid",
|
|
1993
|
+
"analyticsId",
|
|
1994
|
+
"type",
|
|
1995
|
+
"title",
|
|
1996
|
+
"margin",
|
|
1997
|
+
"control",
|
|
1998
|
+
"callToAction",
|
|
1999
|
+
"tags"
|
|
2000
|
+
)), rendererMapperProps), {
|
|
1905
2001
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1906
2002
|
childrenProps
|
|
1907
2003
|
});
|
|
@@ -1924,20 +2020,22 @@ var selectInputComponentToProps = (component, rendererMapperProps) => {
|
|
|
1924
2020
|
};
|
|
1925
2021
|
|
|
1926
2022
|
// src/revamp/renderers/mappers/statusListComponentToProps.ts
|
|
1927
|
-
var statusListComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "
|
|
2023
|
+
var statusListComponentToProps = (component, rendererMapperProps) => __spreadValues(__spreadProps(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "title", "tags")), {
|
|
2024
|
+
items: component.items.map((item) => __spreadValues(__spreadValues({}, item), mapTagsToLegacyProps(item)))
|
|
2025
|
+
}), rendererMapperProps);
|
|
1928
2026
|
|
|
1929
2027
|
// src/revamp/renderers/mappers/tabsComponentToProps.ts
|
|
1930
2028
|
var tabsComponentToProps = (component, rendererMapperProps) => {
|
|
1931
|
-
const tabs = component.tabs.map(({ components,
|
|
2029
|
+
const tabs = component.tabs.map(({ components, title, tags }) => {
|
|
1932
2030
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1933
|
-
return {
|
|
1934
|
-
title
|
|
1935
|
-
|
|
2031
|
+
return __spreadProps(__spreadValues({
|
|
2032
|
+
title
|
|
2033
|
+
}, mapTagsToLegacyProps({ tags })), {
|
|
1936
2034
|
childrenProps,
|
|
1937
2035
|
children: childrenProps.map(rendererMapperProps.render)
|
|
1938
|
-
};
|
|
2036
|
+
});
|
|
1939
2037
|
});
|
|
1940
|
-
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin")), rendererMapperProps), {
|
|
2038
|
+
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "tags")), rendererMapperProps), {
|
|
1941
2039
|
tabs
|
|
1942
2040
|
});
|
|
1943
2041
|
};
|
|
@@ -1949,9 +2047,7 @@ var textInputComponentToProps = (component, rendererMapperProps) => __spreadProp
|
|
|
1949
2047
|
displayFormat: component.displayFormat,
|
|
1950
2048
|
maxLength: component.maxLength,
|
|
1951
2049
|
minLength: component.minLength,
|
|
1952
|
-
suggestions: component.suggestions
|
|
1953
|
-
values: component.suggestions.values.map((suggestion) => __spreadValues(__spreadValues({}, suggestion), mapMediaToLegacyProps(suggestion.media)))
|
|
1954
|
-
} : void 0,
|
|
2050
|
+
suggestions: mapSuggestions(component.suggestions),
|
|
1955
2051
|
onChange: component.onChange.bind(component)
|
|
1956
2052
|
});
|
|
1957
2053
|
|
|
@@ -1960,7 +2056,17 @@ var tupleComponentToProps = (component, rendererMapperProps) => {
|
|
|
1960
2056
|
const childrenProps = component.getChildren().map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
1961
2057
|
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
1962
2058
|
type: "form-section"
|
|
1963
|
-
}, pick(
|
|
2059
|
+
}, pick(
|
|
2060
|
+
component,
|
|
2061
|
+
"uid",
|
|
2062
|
+
"analyticsId",
|
|
2063
|
+
"control",
|
|
2064
|
+
"description",
|
|
2065
|
+
"help",
|
|
2066
|
+
"media",
|
|
2067
|
+
"tags",
|
|
2068
|
+
"title"
|
|
2069
|
+
)), mapMediaToLegacyProps(component.media)), rendererMapperProps), {
|
|
1964
2070
|
children: childrenProps.map(rendererMapperProps.render),
|
|
1965
2071
|
childrenProps
|
|
1966
2072
|
});
|
|
@@ -2343,7 +2449,15 @@ var legacyActionTypeToControl = {
|
|
|
2343
2449
|
var mapLegacyActionTypeToControl = (type) => type && type in legacyActionTypeToControl ? legacyActionTypeToControl[type] : "secondary";
|
|
2344
2450
|
|
|
2345
2451
|
// src/revamp/domain/mappers/layout/alertLayoutToComponent.ts
|
|
2346
|
-
var alertLayoutToComponent = (uid, {
|
|
2452
|
+
var alertLayoutToComponent = (uid, {
|
|
2453
|
+
control,
|
|
2454
|
+
markdown,
|
|
2455
|
+
margin = "md",
|
|
2456
|
+
context = "neutral",
|
|
2457
|
+
callToAction,
|
|
2458
|
+
analyticsId,
|
|
2459
|
+
tags
|
|
2460
|
+
}, { onBehavior, step }) => {
|
|
2347
2461
|
var _a;
|
|
2348
2462
|
const cta = callToAction ? getDomainLayerCallToAction(callToAction, onBehavior, (_a = step.actions) != null ? _a : []) : void 0;
|
|
2349
2463
|
return createAlertComponent({
|
|
@@ -2353,7 +2467,8 @@ var alertLayoutToComponent = (uid, { control, markdown, margin = "md", context =
|
|
|
2353
2467
|
markdown,
|
|
2354
2468
|
margin,
|
|
2355
2469
|
callToAction: cta,
|
|
2356
|
-
context: mapLegacyContext(context)
|
|
2470
|
+
context: mapLegacyContext(context),
|
|
2471
|
+
tags
|
|
2357
2472
|
});
|
|
2358
2473
|
};
|
|
2359
2474
|
|
|
@@ -2374,13 +2489,22 @@ var removeMarginFromLayout = (component) => {
|
|
|
2374
2489
|
};
|
|
2375
2490
|
|
|
2376
2491
|
// src/revamp/domain/mappers/layout/boxLayoutToComponents.ts
|
|
2377
|
-
var boxLayoutToComponent = (uid, {
|
|
2492
|
+
var boxLayoutToComponent = (uid, {
|
|
2493
|
+
border = false,
|
|
2494
|
+
components,
|
|
2495
|
+
control,
|
|
2496
|
+
margin = "md",
|
|
2497
|
+
width = "xl",
|
|
2498
|
+
analyticsId,
|
|
2499
|
+
tags
|
|
2500
|
+
}, mapperProps, schemaComponents) => createBoxComponent({
|
|
2378
2501
|
uid,
|
|
2379
2502
|
analyticsId,
|
|
2380
2503
|
border,
|
|
2381
2504
|
control,
|
|
2382
2505
|
margin,
|
|
2383
2506
|
width,
|
|
2507
|
+
tags,
|
|
2384
2508
|
components: components.map((component, index) => {
|
|
2385
2509
|
const shouldRemoveMargin = index === components.length - 1 && component.margin === void 0;
|
|
2386
2510
|
const componentWithAdjustedMargin = shouldRemoveMargin ? removeMarginFromLayout(component) : component;
|
|
@@ -2413,7 +2537,17 @@ var buttonLayoutToComponent = (uid, button, mapperProps) => {
|
|
|
2413
2537
|
var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
2414
2538
|
var _a;
|
|
2415
2539
|
const { onBehavior } = mapperProps;
|
|
2416
|
-
const {
|
|
2540
|
+
const {
|
|
2541
|
+
context,
|
|
2542
|
+
control,
|
|
2543
|
+
disabled,
|
|
2544
|
+
margin = "md",
|
|
2545
|
+
pinOrder,
|
|
2546
|
+
size,
|
|
2547
|
+
title,
|
|
2548
|
+
analyticsId,
|
|
2549
|
+
tags
|
|
2550
|
+
} = button;
|
|
2417
2551
|
const behavior = getDomainLayerBehavior(button, (_a = mapperProps.step.actions) != null ? _a : []);
|
|
2418
2552
|
const onClick = () => {
|
|
2419
2553
|
void onBehavior(behavior);
|
|
@@ -2428,12 +2562,23 @@ var buttonLayoutToComponentWithBehavior = (uid, button, mapperProps) => {
|
|
|
2428
2562
|
pinOrder,
|
|
2429
2563
|
size,
|
|
2430
2564
|
title: title != null ? title : "",
|
|
2431
|
-
onClick
|
|
2565
|
+
onClick,
|
|
2566
|
+
tags
|
|
2432
2567
|
});
|
|
2433
2568
|
};
|
|
2434
2569
|
var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
2435
2570
|
const { onBehavior, step } = mapperProps;
|
|
2436
|
-
const {
|
|
2571
|
+
const {
|
|
2572
|
+
context,
|
|
2573
|
+
control,
|
|
2574
|
+
disabled,
|
|
2575
|
+
margin = "md",
|
|
2576
|
+
pinOrder,
|
|
2577
|
+
size,
|
|
2578
|
+
title,
|
|
2579
|
+
analyticsId,
|
|
2580
|
+
tags
|
|
2581
|
+
} = button;
|
|
2437
2582
|
const { action } = button;
|
|
2438
2583
|
const inlinedAction = action ? inlineAction(action, step == null ? void 0 : step.actions) : {};
|
|
2439
2584
|
const onClick = () => {
|
|
@@ -2449,7 +2594,8 @@ var buttonLayoutToComponentWithAction = (uid, button, mapperProps) => {
|
|
|
2449
2594
|
size,
|
|
2450
2595
|
title: getButtonTitle({ title, action: inlinedAction }),
|
|
2451
2596
|
onClick,
|
|
2452
|
-
analyticsId
|
|
2597
|
+
analyticsId,
|
|
2598
|
+
tags
|
|
2453
2599
|
});
|
|
2454
2600
|
};
|
|
2455
2601
|
var getButtonTitle = ({ title, action }) => {
|
|
@@ -2486,12 +2632,13 @@ var createColumnsComponent = (columnsProps) => __spreadProps(__spreadValues({},
|
|
|
2486
2632
|
});
|
|
2487
2633
|
|
|
2488
2634
|
// src/revamp/domain/mappers/layout/columnsLayoutToComponent.ts
|
|
2489
|
-
var columnsLayoutToComponent = (uid, { control, left, right, bias = "none", margin = "md", analyticsId }, mapperProps, schemaComponents) => createColumnsComponent({
|
|
2635
|
+
var columnsLayoutToComponent = (uid, { control, left, right, bias = "none", margin = "md", analyticsId, tags }, mapperProps, schemaComponents) => createColumnsComponent({
|
|
2490
2636
|
uid,
|
|
2491
2637
|
analyticsId,
|
|
2492
2638
|
control,
|
|
2493
2639
|
margin,
|
|
2494
2640
|
bias: mapLegacyBias(bias),
|
|
2641
|
+
tags,
|
|
2495
2642
|
startComponents: left.map(
|
|
2496
2643
|
(component, index) => mapLayoutToComponent(
|
|
2497
2644
|
`${uid}.columns-start-${index}`,
|
|
@@ -2511,6 +2658,9 @@ var createDecisionComponent = (decisionProps) => __spreadValues({
|
|
|
2511
2658
|
kind: "layout"
|
|
2512
2659
|
}, decisionProps);
|
|
2513
2660
|
|
|
2661
|
+
// src/revamp/domain/mappers/utils/tags-utils.ts
|
|
2662
|
+
var mapTags = ({ tag, tags }) => tags != null ? tags : tag != null ? [tag] : void 0;
|
|
2663
|
+
|
|
2514
2664
|
// src/revamp/domain/mappers/utils/utils.ts
|
|
2515
2665
|
var mapInlineAlert = (alert) => {
|
|
2516
2666
|
return alert ? {
|
|
@@ -2545,6 +2695,7 @@ var decisionLayoutToComponent = (uid, {
|
|
|
2545
2695
|
control,
|
|
2546
2696
|
margin = "md",
|
|
2547
2697
|
options,
|
|
2698
|
+
tags,
|
|
2548
2699
|
title
|
|
2549
2700
|
}, { onBehavior, step }) => createDecisionComponent({
|
|
2550
2701
|
uid,
|
|
@@ -2552,6 +2703,7 @@ var decisionLayoutToComponent = (uid, {
|
|
|
2552
2703
|
control,
|
|
2553
2704
|
margin,
|
|
2554
2705
|
options: options.map((option) => mapOption(option, onBehavior, step.actions)),
|
|
2706
|
+
tags,
|
|
2555
2707
|
title
|
|
2556
2708
|
});
|
|
2557
2709
|
var mapOption = (option, onBehavior, stepActions = []) => {
|
|
@@ -2562,6 +2714,7 @@ var mapOption = (option, onBehavior, stepActions = []) => {
|
|
|
2562
2714
|
href: behavior.type === "link" ? behavior.url : void 0,
|
|
2563
2715
|
media: getDomainLayerMedia(option),
|
|
2564
2716
|
inlineAlert: mapInlineAlert(option.inlineAlert),
|
|
2717
|
+
tags: mapTags(option),
|
|
2565
2718
|
onClick: () => {
|
|
2566
2719
|
void onBehavior(behavior);
|
|
2567
2720
|
}
|
|
@@ -2578,18 +2731,20 @@ var createStatusListComponent = (statusListProps) => __spreadValues({
|
|
|
2578
2731
|
var isDeprecatedListLayout = (layout) => {
|
|
2579
2732
|
return layout.items.some((item) => item.status);
|
|
2580
2733
|
};
|
|
2581
|
-
var deprecatedListLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", title }) => createStatusListComponent({
|
|
2734
|
+
var deprecatedListLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", title, tags }) => createStatusListComponent({
|
|
2582
2735
|
uid,
|
|
2583
2736
|
analyticsId,
|
|
2584
2737
|
control,
|
|
2585
|
-
items: items.map(({ description, icon, status, title: itemTitle }) => ({
|
|
2738
|
+
items: items.map(({ description, icon, status, title: itemTitle, tags: itemTags }) => ({
|
|
2586
2739
|
description,
|
|
2587
2740
|
icon: icon != null ? icon : { text: "" },
|
|
2588
2741
|
title: itemTitle != null ? itemTitle : "",
|
|
2589
|
-
status: status ? mapLegacyStatus(status) : void 0
|
|
2742
|
+
status: status ? mapLegacyStatus(status) : void 0,
|
|
2743
|
+
tags: itemTags
|
|
2590
2744
|
})),
|
|
2591
2745
|
margin,
|
|
2592
|
-
title
|
|
2746
|
+
title,
|
|
2747
|
+
tags
|
|
2593
2748
|
});
|
|
2594
2749
|
var mapLegacyStatus = (status) => {
|
|
2595
2750
|
switch (status) {
|
|
@@ -2610,7 +2765,7 @@ var createDividerComponent = (props) => __spreadValues({
|
|
|
2610
2765
|
}, props);
|
|
2611
2766
|
|
|
2612
2767
|
// src/revamp/domain/mappers/layout/dividerLayoutToComponent.ts
|
|
2613
|
-
var dividerLayoutToComponent = (uid, { control, margin = "md", analyticsId }) => createDividerComponent({ uid, analyticsId, control, margin });
|
|
2768
|
+
var dividerLayoutToComponent = (uid, { control, margin = "md", analyticsId, tags }) => createDividerComponent({ uid, analyticsId, control, margin, tags });
|
|
2614
2769
|
|
|
2615
2770
|
// src/revamp/domain/components/FormComponent.ts
|
|
2616
2771
|
var createFormComponent = (formProps) => __spreadProps(__spreadValues({}, formProps), {
|
|
@@ -2622,7 +2777,7 @@ var createFormComponent = (formProps) => __spreadProps(__spreadValues({}, formPr
|
|
|
2622
2777
|
});
|
|
2623
2778
|
|
|
2624
2779
|
// src/revamp/domain/mappers/layout/formLayoutToComponent.ts
|
|
2625
|
-
var formLayoutToComponent = (uid, { analyticsId, schemaId, schema: schemaRef, control, margin = "md" }, schemaComponents) => {
|
|
2780
|
+
var formLayoutToComponent = (uid, { analyticsId, schemaId, schema: schemaRef, control, margin = "md", tags }, schemaComponents) => {
|
|
2626
2781
|
const id = schemaId != null ? schemaId : schemaRef == null ? void 0 : schemaRef.$ref;
|
|
2627
2782
|
if (id == null) {
|
|
2628
2783
|
throw new Error(
|
|
@@ -2640,7 +2795,8 @@ var formLayoutToComponent = (uid, { analyticsId, schemaId, schema: schemaRef, co
|
|
|
2640
2795
|
analyticsId,
|
|
2641
2796
|
schemaComponent,
|
|
2642
2797
|
control,
|
|
2643
|
-
margin
|
|
2798
|
+
margin,
|
|
2799
|
+
tags
|
|
2644
2800
|
});
|
|
2645
2801
|
};
|
|
2646
2802
|
|
|
@@ -2651,13 +2807,14 @@ var createHeadingComponent = (headingProps) => __spreadValues({
|
|
|
2651
2807
|
}, headingProps);
|
|
2652
2808
|
|
|
2653
2809
|
// src/revamp/domain/mappers/layout/headingLayoutToComponent.ts
|
|
2654
|
-
var headingLayoutToComponent = (uid, { analyticsId, align = "left", margin = "md", size = "md", control, text }) => createHeadingComponent({
|
|
2810
|
+
var headingLayoutToComponent = (uid, { analyticsId, align = "left", margin = "md", size = "md", control, tags, text }) => createHeadingComponent({
|
|
2655
2811
|
uid,
|
|
2656
2812
|
analyticsId,
|
|
2657
2813
|
align: mapLegacyAlign(align),
|
|
2658
2814
|
control,
|
|
2659
2815
|
margin,
|
|
2660
2816
|
size,
|
|
2817
|
+
tags,
|
|
2661
2818
|
text
|
|
2662
2819
|
});
|
|
2663
2820
|
|
|
@@ -2676,6 +2833,7 @@ var imageLayoutToComponent = (uid, {
|
|
|
2676
2833
|
control,
|
|
2677
2834
|
margin = "md",
|
|
2678
2835
|
size = "md",
|
|
2836
|
+
tags,
|
|
2679
2837
|
text,
|
|
2680
2838
|
url
|
|
2681
2839
|
}) => {
|
|
@@ -2690,7 +2848,8 @@ var imageLayoutToComponent = (uid, {
|
|
|
2690
2848
|
} : { accessibilityDescription: accessibilityDescription != null ? accessibilityDescription : text, uri: url != null ? url : "" },
|
|
2691
2849
|
control,
|
|
2692
2850
|
margin,
|
|
2693
|
-
size
|
|
2851
|
+
size,
|
|
2852
|
+
tags
|
|
2694
2853
|
});
|
|
2695
2854
|
};
|
|
2696
2855
|
|
|
@@ -2701,13 +2860,14 @@ var createMarkdownComponent = (markdownProps) => __spreadValues({
|
|
|
2701
2860
|
}, markdownProps);
|
|
2702
2861
|
|
|
2703
2862
|
// src/revamp/domain/mappers/layout/infoLayoutToComponent.ts
|
|
2704
|
-
var infoLayoutToComponent = (uid, { analyticsId, align = "left", control, margin = "md", markdown: content }) => createMarkdownComponent({
|
|
2863
|
+
var infoLayoutToComponent = (uid, { analyticsId, align = "left", control, margin = "md", markdown: content, tags }) => createMarkdownComponent({
|
|
2705
2864
|
uid,
|
|
2706
2865
|
analyticsId,
|
|
2707
2866
|
align: mapLegacyAlign(align),
|
|
2708
2867
|
content,
|
|
2709
2868
|
control,
|
|
2710
|
-
margin
|
|
2869
|
+
margin,
|
|
2870
|
+
tags
|
|
2711
2871
|
});
|
|
2712
2872
|
|
|
2713
2873
|
// src/revamp/domain/components/InstructionsComponent.ts
|
|
@@ -2717,14 +2877,16 @@ var createInstructionsComponent = (instructionsProps) => __spreadValues({
|
|
|
2717
2877
|
}, instructionsProps);
|
|
2718
2878
|
|
|
2719
2879
|
// src/revamp/domain/mappers/layout/instructionsLayoutToComponent.ts
|
|
2720
|
-
var instructionsLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", title }) => createInstructionsComponent({
|
|
2880
|
+
var instructionsLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", tags, title }) => createInstructionsComponent({
|
|
2721
2881
|
uid,
|
|
2722
2882
|
analyticsId,
|
|
2723
2883
|
control,
|
|
2724
2884
|
items: items.map((item) => __spreadProps(__spreadValues({}, item), {
|
|
2725
|
-
context: mapLegacyContext(item.context)
|
|
2885
|
+
context: mapLegacyContext(item.context),
|
|
2886
|
+
tags: mapTags(item)
|
|
2726
2887
|
})),
|
|
2727
2888
|
margin,
|
|
2889
|
+
tags,
|
|
2728
2890
|
title
|
|
2729
2891
|
});
|
|
2730
2892
|
|
|
@@ -2735,7 +2897,7 @@ var createListComponent = (listProps) => __spreadValues({
|
|
|
2735
2897
|
}, listProps);
|
|
2736
2898
|
|
|
2737
2899
|
// src/revamp/domain/mappers/layout/listLayoutToComponent.ts
|
|
2738
|
-
var listLayoutToComponent = (uid, { analyticsId, callToAction, control, items, margin = "md", title }, mapperProps) => {
|
|
2900
|
+
var listLayoutToComponent = (uid, { analyticsId, callToAction, control, items, margin = "md", tags, title }, mapperProps) => {
|
|
2739
2901
|
var _a;
|
|
2740
2902
|
const { step, onBehavior } = mapperProps;
|
|
2741
2903
|
return createListComponent({
|
|
@@ -2745,18 +2907,44 @@ var listLayoutToComponent = (uid, { analyticsId, callToAction, control, items, m
|
|
|
2745
2907
|
items: items.map((item) => mapItem2(item, mapperProps)),
|
|
2746
2908
|
callToAction: getDomainLayerCallToAction(callToAction, onBehavior, (_a = step.actions) != null ? _a : []),
|
|
2747
2909
|
margin,
|
|
2910
|
+
tags,
|
|
2748
2911
|
title
|
|
2749
2912
|
});
|
|
2750
2913
|
};
|
|
2751
2914
|
var mapItem2 = (item, mapperProps) => {
|
|
2752
2915
|
var _b;
|
|
2753
|
-
const _a = item, {
|
|
2916
|
+
const _a = item, {
|
|
2917
|
+
value,
|
|
2918
|
+
subvalue,
|
|
2919
|
+
subtitle,
|
|
2920
|
+
callToAction,
|
|
2921
|
+
description,
|
|
2922
|
+
icon,
|
|
2923
|
+
image,
|
|
2924
|
+
media,
|
|
2925
|
+
additionalInfo,
|
|
2926
|
+
inlineAlert
|
|
2927
|
+
} = _a, rest = __objRest(_a, [
|
|
2928
|
+
"value",
|
|
2929
|
+
"subvalue",
|
|
2930
|
+
"subtitle",
|
|
2931
|
+
"callToAction",
|
|
2932
|
+
"description",
|
|
2933
|
+
"icon",
|
|
2934
|
+
"image",
|
|
2935
|
+
"media",
|
|
2936
|
+
"additionalInfo",
|
|
2937
|
+
"inlineAlert"
|
|
2938
|
+
]);
|
|
2939
|
+
const { step, onBehavior } = mapperProps;
|
|
2754
2940
|
return __spreadProps(__spreadValues({}, rest), {
|
|
2755
|
-
description:
|
|
2941
|
+
description: description != null ? description : subtitle,
|
|
2756
2942
|
media: getDomainLayerMedia({ icon, image, media }),
|
|
2757
2943
|
supportingValues: mapSupportingValues(item),
|
|
2758
|
-
additionalInfo: mapAdditionalInfo(
|
|
2759
|
-
inlineAlert: mapInlineAlert(
|
|
2944
|
+
additionalInfo: mapAdditionalInfo(additionalInfo, onBehavior),
|
|
2945
|
+
inlineAlert: mapInlineAlert(inlineAlert),
|
|
2946
|
+
callToAction: getDomainLayerCallToAction(callToAction, onBehavior, (_b = step.actions) != null ? _b : []),
|
|
2947
|
+
tags: mapTags(rest)
|
|
2760
2948
|
});
|
|
2761
2949
|
};
|
|
2762
2950
|
var mapSupportingValues = (item) => {
|
|
@@ -2774,16 +2962,24 @@ var createLoadingIndicatorComponent = (loadingIndicatorProps) => __spreadValues(
|
|
|
2774
2962
|
}, loadingIndicatorProps);
|
|
2775
2963
|
|
|
2776
2964
|
// src/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.ts
|
|
2777
|
-
var loadingIndicatorLayoutToComponent = (uid, { analyticsId,
|
|
2965
|
+
var loadingIndicatorLayoutToComponent = (uid, { analyticsId, control, margin = "md", size = "md", tags }) => createLoadingIndicatorComponent({
|
|
2966
|
+
uid,
|
|
2967
|
+
analyticsId,
|
|
2968
|
+
control,
|
|
2969
|
+
margin,
|
|
2970
|
+
size,
|
|
2971
|
+
tags
|
|
2972
|
+
});
|
|
2778
2973
|
|
|
2779
2974
|
// src/revamp/domain/mappers/layout/markdownLayoutToComponent.ts
|
|
2780
|
-
var markdownLayoutToComponent = (uid, { analyticsId, align = "left", margin = "md", control, content }) => createMarkdownComponent({
|
|
2975
|
+
var markdownLayoutToComponent = (uid, { analyticsId, align = "left", margin = "md", control, content, tags }) => createMarkdownComponent({
|
|
2781
2976
|
uid,
|
|
2782
2977
|
analyticsId,
|
|
2783
2978
|
align: mapLegacyAlign(align),
|
|
2784
2979
|
control,
|
|
2785
2980
|
content,
|
|
2786
|
-
margin
|
|
2981
|
+
margin,
|
|
2982
|
+
tags
|
|
2787
2983
|
});
|
|
2788
2984
|
|
|
2789
2985
|
// src/revamp/domain/components/ModalLayoutComponent.ts
|
|
@@ -2797,7 +2993,7 @@ var createModalComponent = (modalProps) => __spreadProps(__spreadValues({
|
|
|
2797
2993
|
});
|
|
2798
2994
|
|
|
2799
2995
|
// src/revamp/domain/mappers/layout/modalLayoutToComponent.ts
|
|
2800
|
-
var modalLayoutToComponent = (uid, { analyticsId, content, control, margin = "md", trigger }, mapperProps, schemaComponents) => {
|
|
2996
|
+
var modalLayoutToComponent = (uid, { analyticsId, content, control, margin = "md", tags, trigger }, mapperProps, schemaComponents) => {
|
|
2801
2997
|
const { components, title } = content;
|
|
2802
2998
|
return createModalComponent({
|
|
2803
2999
|
uid,
|
|
@@ -2810,6 +3006,7 @@ var modalLayoutToComponent = (uid, { analyticsId, content, control, margin = "md
|
|
|
2810
3006
|
},
|
|
2811
3007
|
control,
|
|
2812
3008
|
margin,
|
|
3009
|
+
tags,
|
|
2813
3010
|
trigger
|
|
2814
3011
|
});
|
|
2815
3012
|
};
|
|
@@ -2821,13 +3018,14 @@ var createParagraphComponent = (paragraphProps) => __spreadValues({
|
|
|
2821
3018
|
}, paragraphProps);
|
|
2822
3019
|
|
|
2823
3020
|
// src/revamp/domain/mappers/layout/paragraphLayoutToComponent.ts
|
|
2824
|
-
var paragraphLayoutToComponent = (uid, { analyticsId, align = "left", control, margin = "md", text }) => createParagraphComponent({
|
|
3021
|
+
var paragraphLayoutToComponent = (uid, { analyticsId, align = "left", control, margin = "md", tags, text }) => createParagraphComponent({
|
|
2825
3022
|
uid,
|
|
2826
3023
|
analyticsId,
|
|
2827
3024
|
text,
|
|
2828
3025
|
control,
|
|
2829
3026
|
align: mapLegacyAlign(align),
|
|
2830
|
-
margin
|
|
3027
|
+
margin,
|
|
3028
|
+
tags
|
|
2831
3029
|
});
|
|
2832
3030
|
|
|
2833
3031
|
// src/revamp/domain/components/ReviewComponent.ts
|
|
@@ -2844,6 +3042,7 @@ var reviewLayoutToComponent = (uid, {
|
|
|
2844
3042
|
callToAction,
|
|
2845
3043
|
control,
|
|
2846
3044
|
margin = "md",
|
|
3045
|
+
tags,
|
|
2847
3046
|
orientation,
|
|
2848
3047
|
action
|
|
2849
3048
|
}, { onBehavior, step }) => createReviewComponent({
|
|
@@ -2853,6 +3052,7 @@ var reviewLayoutToComponent = (uid, {
|
|
|
2853
3052
|
control: getOrientationControl({ control, orientation }),
|
|
2854
3053
|
fields: fields.map((field) => mapReviewField(field, { onBehavior, step })),
|
|
2855
3054
|
margin,
|
|
3055
|
+
tags,
|
|
2856
3056
|
title
|
|
2857
3057
|
});
|
|
2858
3058
|
var getCallToAction2 = ({
|
|
@@ -2898,7 +3098,8 @@ var mapReviewField = (field, { onBehavior, step }) => {
|
|
|
2898
3098
|
onBehavior,
|
|
2899
3099
|
callToAction: field.callToAction,
|
|
2900
3100
|
stepActions: (_b = step.actions) != null ? _b : []
|
|
2901
|
-
})
|
|
3101
|
+
}),
|
|
3102
|
+
tags: mapTags(field)
|
|
2902
3103
|
});
|
|
2903
3104
|
};
|
|
2904
3105
|
|
|
@@ -2941,7 +3142,7 @@ var debounce = (callback, waitMs) => {
|
|
|
2941
3142
|
// src/revamp/domain/components/searchComponent/SearchComponent.ts
|
|
2942
3143
|
var DEBOUNCE_TIME = 400;
|
|
2943
3144
|
var createSearchComponent = (searchProps, performSearch, onBehavior, updateComponent) => {
|
|
2944
|
-
const { uid, analyticsId, control, emptyMessage, margin, title } = searchProps;
|
|
3145
|
+
const { uid, analyticsId, control, emptyMessage, margin, tags, title } = searchProps;
|
|
2945
3146
|
const update = getInputUpdateFunction(updateComponent);
|
|
2946
3147
|
let abortController = new AbortController();
|
|
2947
3148
|
const search = (component2, query, searchConfig) => {
|
|
@@ -2978,6 +3179,7 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, updateCompo
|
|
|
2978
3179
|
control,
|
|
2979
3180
|
emptyMessage,
|
|
2980
3181
|
margin,
|
|
3182
|
+
tags,
|
|
2981
3183
|
title,
|
|
2982
3184
|
isLoading: false,
|
|
2983
3185
|
query: "",
|
|
@@ -3070,7 +3272,8 @@ var searchLayoutToComponent = (uid, {
|
|
|
3070
3272
|
param,
|
|
3071
3273
|
title,
|
|
3072
3274
|
url,
|
|
3073
|
-
margin = "md"
|
|
3275
|
+
margin = "md",
|
|
3276
|
+
tags
|
|
3074
3277
|
}, mapperProps) => {
|
|
3075
3278
|
const { httpClient, onBehavior, updateComponent } = mapperProps;
|
|
3076
3279
|
const search = getPerformSearchFunction(httpClient, { method, param, url });
|
|
@@ -3081,6 +3284,7 @@ var searchLayoutToComponent = (uid, {
|
|
|
3081
3284
|
control,
|
|
3082
3285
|
emptyMessage,
|
|
3083
3286
|
margin,
|
|
3287
|
+
tags,
|
|
3084
3288
|
title
|
|
3085
3289
|
},
|
|
3086
3290
|
search,
|
|
@@ -3090,7 +3294,7 @@ var searchLayoutToComponent = (uid, {
|
|
|
3090
3294
|
};
|
|
3091
3295
|
|
|
3092
3296
|
// src/revamp/domain/mappers/layout/statusListLayoutToComponent.ts
|
|
3093
|
-
var statusListLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", title }, { onBehavior, step }) => createStatusListComponent({
|
|
3297
|
+
var statusListLayoutToComponent = (uid, { analyticsId, control, items, margin = "md", tags, title }, { onBehavior, step }) => createStatusListComponent({
|
|
3094
3298
|
uid,
|
|
3095
3299
|
analyticsId,
|
|
3096
3300
|
control,
|
|
@@ -3101,9 +3305,10 @@ var statusListLayoutToComponent = (uid, { analyticsId, control, items, margin =
|
|
|
3101
3305
|
onBehavior,
|
|
3102
3306
|
(_a = step.actions) != null ? _a : []
|
|
3103
3307
|
);
|
|
3104
|
-
return __spreadProps(__spreadValues({}, item), { callToAction });
|
|
3308
|
+
return __spreadProps(__spreadValues({}, item), { callToAction, tags: mapTags(item) });
|
|
3105
3309
|
}),
|
|
3106
3310
|
margin,
|
|
3311
|
+
tags,
|
|
3107
3312
|
title
|
|
3108
3313
|
});
|
|
3109
3314
|
|
|
@@ -3119,7 +3324,7 @@ var createSectionComponent = (props) => {
|
|
|
3119
3324
|
};
|
|
3120
3325
|
|
|
3121
3326
|
// src/revamp/domain/mappers/layout/sectionLayoutToComponent.ts
|
|
3122
|
-
var sectionLayoutToComponent = (uid, { analyticsId, control, title, components, callToAction, margin = "md" }, mapperProps, schemaComponents) => {
|
|
3327
|
+
var sectionLayoutToComponent = (uid, { analyticsId, control, title, components, callToAction, margin = "md", tags }, mapperProps, schemaComponents) => {
|
|
3123
3328
|
var _a;
|
|
3124
3329
|
return createSectionComponent({
|
|
3125
3330
|
uid,
|
|
@@ -3134,7 +3339,8 @@ var sectionLayoutToComponent = (uid, { analyticsId, control, title, components,
|
|
|
3134
3339
|
callToAction,
|
|
3135
3340
|
mapperProps.onBehavior,
|
|
3136
3341
|
(_a = mapperProps.step.actions) != null ? _a : []
|
|
3137
|
-
)
|
|
3342
|
+
),
|
|
3343
|
+
tags
|
|
3138
3344
|
});
|
|
3139
3345
|
};
|
|
3140
3346
|
|
|
@@ -3145,24 +3351,26 @@ var createTabsComponent = (tabsProps) => __spreadProps(__spreadValues({}, tabsPr
|
|
|
3145
3351
|
});
|
|
3146
3352
|
|
|
3147
3353
|
// src/revamp/domain/mappers/layout/tabsLayoutToComponent.ts
|
|
3148
|
-
var tabsLayoutToComponent = (uid, { analyticsId, control, margin = "md", tabs }, mapperProps, schemaComponents) => createTabsComponent({
|
|
3354
|
+
var tabsLayoutToComponent = (uid, { analyticsId, control, margin = "md", tags, tabs }, mapperProps, schemaComponents) => createTabsComponent({
|
|
3149
3355
|
uid,
|
|
3150
3356
|
analyticsId,
|
|
3151
3357
|
control,
|
|
3152
3358
|
margin,
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
title,
|
|
3156
|
-
components: components.map(
|
|
3157
|
-
(c, componentIndex) => mapLayoutToComponent(
|
|
3158
|
-
`${uid}.tabs-${tabIndex}-${componentIndex}`,
|
|
3159
|
-
c,
|
|
3160
|
-
mapperProps,
|
|
3161
|
-
schemaComponents
|
|
3162
|
-
)
|
|
3163
|
-
)
|
|
3164
|
-
}))
|
|
3359
|
+
tags,
|
|
3360
|
+
tabs: mapTabs(tabs, uid, mapperProps, schemaComponents)
|
|
3165
3361
|
});
|
|
3362
|
+
var mapTabs = (tabs, uid, mapperProps, schemaComponents) => tabs.map(({ components, tag, tags, title }, tabIndex) => ({
|
|
3363
|
+
title,
|
|
3364
|
+
tags: mapTags({ tag, tags }),
|
|
3365
|
+
components: components.map(
|
|
3366
|
+
(c, componentIndex) => mapLayoutToComponent(
|
|
3367
|
+
`${uid}.tabs-${tabIndex}-${componentIndex}`,
|
|
3368
|
+
c,
|
|
3369
|
+
mapperProps,
|
|
3370
|
+
schemaComponents
|
|
3371
|
+
)
|
|
3372
|
+
)
|
|
3373
|
+
}));
|
|
3166
3374
|
|
|
3167
3375
|
// src/revamp/domain/components/ProgressComponent.ts
|
|
3168
3376
|
var createProgressComponent = (progressProps) => __spreadValues({
|
|
@@ -3180,6 +3388,7 @@ var progressLayoutToComponent = (uid, {
|
|
|
3180
3388
|
margin = "md",
|
|
3181
3389
|
progress,
|
|
3182
3390
|
progressText,
|
|
3391
|
+
tags,
|
|
3183
3392
|
title
|
|
3184
3393
|
}) => createProgressComponent({
|
|
3185
3394
|
uid,
|
|
@@ -3191,6 +3400,7 @@ var progressLayoutToComponent = (uid, {
|
|
|
3191
3400
|
margin,
|
|
3192
3401
|
progress,
|
|
3193
3402
|
progressText,
|
|
3403
|
+
tags,
|
|
3194
3404
|
title
|
|
3195
3405
|
});
|
|
3196
3406
|
|
|
@@ -4094,7 +4304,19 @@ var summaryIfProvides = (summary, {
|
|
|
4094
4304
|
var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
4095
4305
|
var _a;
|
|
4096
4306
|
const { uid, schemaId, schema, required, validationErrors, onPersistAsync } = schemaMapperProps;
|
|
4097
|
-
const {
|
|
4307
|
+
const {
|
|
4308
|
+
$id,
|
|
4309
|
+
analyticsId,
|
|
4310
|
+
control,
|
|
4311
|
+
description,
|
|
4312
|
+
icon,
|
|
4313
|
+
image,
|
|
4314
|
+
keywords,
|
|
4315
|
+
media,
|
|
4316
|
+
tags,
|
|
4317
|
+
title,
|
|
4318
|
+
hidden
|
|
4319
|
+
} = schema;
|
|
4098
4320
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
4099
4321
|
uid,
|
|
4100
4322
|
id: $id != null ? $id : uid,
|
|
@@ -4108,6 +4330,7 @@ var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
|
4108
4330
|
keywords,
|
|
4109
4331
|
media: getDomainLayerMedia({ icon, image, media }),
|
|
4110
4332
|
required: Boolean(required),
|
|
4333
|
+
tags,
|
|
4111
4334
|
title,
|
|
4112
4335
|
onPersistAsync,
|
|
4113
4336
|
summariser: getSummariser(schema)
|
|
@@ -4163,7 +4386,8 @@ var createAllOfComponent = (allOfProps) => {
|
|
|
4163
4386
|
help,
|
|
4164
4387
|
hidden,
|
|
4165
4388
|
media,
|
|
4166
|
-
title
|
|
4389
|
+
title,
|
|
4390
|
+
tags
|
|
4167
4391
|
} = allOfProps;
|
|
4168
4392
|
return {
|
|
4169
4393
|
type: "all-of",
|
|
@@ -4179,6 +4403,7 @@ var createAllOfComponent = (allOfProps) => {
|
|
|
4179
4403
|
hidden,
|
|
4180
4404
|
media,
|
|
4181
4405
|
title,
|
|
4406
|
+
tags,
|
|
4182
4407
|
getChildren() {
|
|
4183
4408
|
return this.components;
|
|
4184
4409
|
},
|
|
@@ -4845,12 +5070,13 @@ var arraySchemaToMultiSelectComponent = (schemaMapperProps, mapperProps) => {
|
|
|
4845
5070
|
} = schemaMapperProps;
|
|
4846
5071
|
const initialModel = model != null ? model : null;
|
|
4847
5072
|
const options = schema.items.oneOf.map((childSchema, index) => {
|
|
4848
|
-
const { title: title2 = "", description, image, icon, media, keywords = [] } = childSchema;
|
|
5073
|
+
const { title: title2 = "", description, image, icon, media, keywords = [], tags } = childSchema;
|
|
4849
5074
|
return {
|
|
4850
5075
|
title: title2,
|
|
4851
5076
|
description,
|
|
4852
5077
|
media: getDomainLayerMedia({ icon, image, media }),
|
|
4853
5078
|
keywords,
|
|
5079
|
+
tags,
|
|
4854
5080
|
disabled: "disabled" in childSchema ? Boolean(childSchema.disabled) : false,
|
|
4855
5081
|
component: mapSchemaToComponent(
|
|
4856
5082
|
{
|
|
@@ -4910,7 +5136,8 @@ var createTupleComponent = (tupleProps) => {
|
|
|
4910
5136
|
hidden,
|
|
4911
5137
|
media,
|
|
4912
5138
|
summariser,
|
|
4913
|
-
title
|
|
5139
|
+
title,
|
|
5140
|
+
tags
|
|
4914
5141
|
} = tupleProps;
|
|
4915
5142
|
return {
|
|
4916
5143
|
type: "tuple",
|
|
@@ -4926,6 +5153,7 @@ var createTupleComponent = (tupleProps) => {
|
|
|
4926
5153
|
hidden,
|
|
4927
5154
|
media,
|
|
4928
5155
|
title,
|
|
5156
|
+
tags,
|
|
4929
5157
|
getChildren() {
|
|
4930
5158
|
return this.components;
|
|
4931
5159
|
},
|
|
@@ -5227,7 +5455,7 @@ var getValidModel = (model, defaultValue) => {
|
|
|
5227
5455
|
|
|
5228
5456
|
// src/revamp/domain/components/ConstComponent.ts
|
|
5229
5457
|
var createConstComponent = (hiddenProps) => {
|
|
5230
|
-
const { uid, schemaId, analyticsId, value, summary, layout, hidden } = hiddenProps;
|
|
5458
|
+
const { uid, schemaId, analyticsId, value, summary, layout, hidden, tags } = hiddenProps;
|
|
5231
5459
|
return {
|
|
5232
5460
|
type: "const",
|
|
5233
5461
|
kind: "input",
|
|
@@ -5236,6 +5464,7 @@ var createConstComponent = (hiddenProps) => {
|
|
|
5236
5464
|
analyticsId,
|
|
5237
5465
|
layout,
|
|
5238
5466
|
hidden,
|
|
5467
|
+
tags,
|
|
5239
5468
|
getLocalValue: () => value,
|
|
5240
5469
|
getSubmittableValue: async () => value,
|
|
5241
5470
|
getSubmittableValueSync: () => value,
|
|
@@ -5248,7 +5477,7 @@ var createConstComponent = (hiddenProps) => {
|
|
|
5248
5477
|
var constSchemaToComponent = (uid, schemaMapperProps, mapperProps) => {
|
|
5249
5478
|
var _a;
|
|
5250
5479
|
const { schema, schemaId } = schemaMapperProps;
|
|
5251
|
-
const { title, const: constValue, analyticsId, $id, layout, alert, hidden } = schema;
|
|
5480
|
+
const { title, const: constValue, analyticsId, $id, layout, alert, hidden, tags } = schema;
|
|
5252
5481
|
const titleOrValue = (_a = title != null ? title : constValue) != null ? _a : null;
|
|
5253
5482
|
return createConstComponent({
|
|
5254
5483
|
uid,
|
|
@@ -5257,7 +5486,8 @@ var constSchemaToComponent = (uid, schemaMapperProps, mapperProps) => {
|
|
|
5257
5486
|
summary: getConstSummary(schema, titleOrValue),
|
|
5258
5487
|
value: schema.const,
|
|
5259
5488
|
layout: getConstLayout(uid, mapperProps, layout, alert),
|
|
5260
|
-
hidden: Boolean(hidden)
|
|
5489
|
+
hidden: Boolean(hidden),
|
|
5490
|
+
tags
|
|
5261
5491
|
});
|
|
5262
5492
|
};
|
|
5263
5493
|
var getConstLayout = (uid, mapperProps, layout, alert) => {
|
|
@@ -5402,7 +5632,8 @@ var createObjectComponent = (objectProps) => {
|
|
|
5402
5632
|
hidden,
|
|
5403
5633
|
media,
|
|
5404
5634
|
summariser,
|
|
5405
|
-
title
|
|
5635
|
+
title,
|
|
5636
|
+
tags
|
|
5406
5637
|
} = objectProps;
|
|
5407
5638
|
return {
|
|
5408
5639
|
type: "object",
|
|
@@ -5418,6 +5649,7 @@ var createObjectComponent = (objectProps) => {
|
|
|
5418
5649
|
hidden,
|
|
5419
5650
|
media,
|
|
5420
5651
|
title,
|
|
5652
|
+
tags,
|
|
5421
5653
|
getChildren() {
|
|
5422
5654
|
return displayOrder.map((propName) => this.componentMap[propName]);
|
|
5423
5655
|
},
|
|
@@ -5637,12 +5869,13 @@ var oneOfSchemaToComponent = (schemaMapperProps, mapperProps) => {
|
|
|
5637
5869
|
);
|
|
5638
5870
|
}
|
|
5639
5871
|
const options = schema.oneOf.map((childSchema, index) => {
|
|
5640
|
-
const { title = "", description, image, icon, media, keywords = [] } = childSchema;
|
|
5872
|
+
const { title = "", description, image, icon, media, keywords = [], tags } = childSchema;
|
|
5641
5873
|
return {
|
|
5642
5874
|
title,
|
|
5643
5875
|
description,
|
|
5644
5876
|
media: getDomainLayerMedia({ icon, image, media }),
|
|
5645
5877
|
keywords,
|
|
5878
|
+
tags,
|
|
5646
5879
|
disabled: "disabled" in childSchema ? Boolean(childSchema.disabled) : false,
|
|
5647
5880
|
component: mapSchemaToComponent(
|
|
5648
5881
|
{
|
|
@@ -5778,7 +6011,8 @@ var mapStringSchemaSuggestions = (suggestions, logEvent) => {
|
|
|
5778
6011
|
}
|
|
5779
6012
|
return __spreadProps(__spreadValues({}, rest), {
|
|
5780
6013
|
media: getDomainLayerMedia({ icon, image, media }),
|
|
5781
|
-
value
|
|
6014
|
+
value,
|
|
6015
|
+
tags: mapTags(rest)
|
|
5782
6016
|
});
|
|
5783
6017
|
})
|
|
5784
6018
|
};
|
|
@@ -6032,7 +6266,7 @@ var isExactLocalValueMatch = (valueA, valueB) => {
|
|
|
6032
6266
|
|
|
6033
6267
|
// src/revamp/domain/components/PersistAsyncComponent.ts
|
|
6034
6268
|
var createPersistAsyncComponent = (props, performPersistAsync, schemaOnChange, updateComponent) => {
|
|
6035
|
-
const { uid, analyticsId, schemaId, component, hidden, model, localValue } = props;
|
|
6269
|
+
const { uid, analyticsId, schemaId, component, hidden, model, localValue, tags } = props;
|
|
6036
6270
|
const update = getInputUpdateFunction(updateComponent);
|
|
6037
6271
|
const paComponent = {
|
|
6038
6272
|
type: "persist-async",
|
|
@@ -6047,6 +6281,7 @@ var createPersistAsyncComponent = (props, performPersistAsync, schemaOnChange, u
|
|
|
6047
6281
|
submission: Promise.resolve(model != null ? model : null),
|
|
6048
6282
|
abortController: new AbortController(),
|
|
6049
6283
|
errors: [],
|
|
6284
|
+
tags,
|
|
6050
6285
|
_update(updateFn) {
|
|
6051
6286
|
update(this, updateFn);
|
|
6052
6287
|
},
|
|
@@ -6122,7 +6357,7 @@ var createPersistAsyncComponent = (props, performPersistAsync, schemaOnChange, u
|
|
|
6122
6357
|
var isSupported = (type) => ["boolean", "text", "date", "integer", "number", "upload"].includes(type);
|
|
6123
6358
|
var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
|
|
6124
6359
|
const { uid, schema, model, localValue } = schemaMapperProps;
|
|
6125
|
-
const { persistAsync } = schema;
|
|
6360
|
+
const { persistAsync, tags } = schema;
|
|
6126
6361
|
const performPersistAsync = getPerformPersistAsyncFn(schema, persistAsync, mapperProps);
|
|
6127
6362
|
const onPersistAsync = async () => paComponent.persist().then(() => {
|
|
6128
6363
|
});
|
|
@@ -6143,7 +6378,8 @@ var persistAsyncSchemaToComponent = (schemaMapperProps, mapperProps) => {
|
|
|
6143
6378
|
component: childComponent,
|
|
6144
6379
|
schemaId: schema.$id,
|
|
6145
6380
|
model,
|
|
6146
|
-
localValue
|
|
6381
|
+
localValue,
|
|
6382
|
+
tags
|
|
6147
6383
|
},
|
|
6148
6384
|
performPersistAsync,
|
|
6149
6385
|
getSchemaOnChange(schema, mapperProps.onBehavior),
|
|
@@ -6228,12 +6464,14 @@ var mapToolbarToComponent = (uid, toolbar, mapperProps) => {
|
|
|
6228
6464
|
return __spreadProps(__spreadValues({}, toolbar), {
|
|
6229
6465
|
type: "toolbar",
|
|
6230
6466
|
uid: `${uid}.toolbar`,
|
|
6467
|
+
tags: toolbar.tags,
|
|
6231
6468
|
items: toolbar.items.map((item) => {
|
|
6232
6469
|
const context = item.context ? mapLegacyContext(item.context) : void 0;
|
|
6233
6470
|
const behavior = getDomainLayerBehavior({ behavior: item.behavior }, []);
|
|
6234
6471
|
return __spreadProps(__spreadValues({}, item), {
|
|
6235
6472
|
context: context ? mapLegacyContext(context) : void 0,
|
|
6236
6473
|
disabled: !!item.disabled,
|
|
6474
|
+
tags: item.tags,
|
|
6237
6475
|
onClick: () => {
|
|
6238
6476
|
void onBehavior(behavior);
|
|
6239
6477
|
}
|
|
@@ -6242,6 +6480,11 @@ var mapToolbarToComponent = (uid, toolbar, mapperProps) => {
|
|
|
6242
6480
|
});
|
|
6243
6481
|
};
|
|
6244
6482
|
|
|
6483
|
+
// src/revamp/domain/mappers/utils/feature-utils.ts
|
|
6484
|
+
var isFeatureEnabled = (features, featureName) => {
|
|
6485
|
+
return features[featureName] !== void 0 && features[featureName] !== false;
|
|
6486
|
+
};
|
|
6487
|
+
|
|
6245
6488
|
// src/revamp/domain/mappers/utils/groupLayoutByPinned.ts
|
|
6246
6489
|
var groupLayoutByPinned = (layouts) => {
|
|
6247
6490
|
return layouts.reduce(groupLayout, { pinned: [], nonPinned: [] });
|
|
@@ -6287,11 +6530,6 @@ var groupLayout = (acc, layout) => {
|
|
|
6287
6530
|
var hasChildren = (component) => "components" in component;
|
|
6288
6531
|
var hasColumns = (component) => "right" in component && "left" in component;
|
|
6289
6532
|
|
|
6290
|
-
// src/revamp/domain/mappers/utils/feature-utils.ts
|
|
6291
|
-
var isFeatureEnabled = (features, featureName) => {
|
|
6292
|
-
return features[featureName] !== void 0 && features[featureName] !== false;
|
|
6293
|
-
};
|
|
6294
|
-
|
|
6295
6533
|
// src/revamp/domain/mappers/mapStepToComponent.ts
|
|
6296
6534
|
var mapStepToComponent = (_a) => {
|
|
6297
6535
|
var _b = _a, {
|
|
@@ -6324,7 +6562,8 @@ var mapStepToComponent = (_a) => {
|
|
|
6324
6562
|
navigation,
|
|
6325
6563
|
polling,
|
|
6326
6564
|
refreshAfter,
|
|
6327
|
-
title
|
|
6565
|
+
title,
|
|
6566
|
+
tags
|
|
6328
6567
|
} = step;
|
|
6329
6568
|
const backNavigation = (_a2 = navigation == null ? void 0 : navigation.back) != null ? _a2 : navigation == null ? void 0 : navigation.backButton;
|
|
6330
6569
|
const back = backNavigation ? {
|
|
@@ -6385,6 +6624,7 @@ var mapStepToComponent = (_a) => {
|
|
|
6385
6624
|
stepPolling,
|
|
6386
6625
|
stepRefreshAfter,
|
|
6387
6626
|
title: displayStepTitle ? title : void 0,
|
|
6627
|
+
tags,
|
|
6388
6628
|
step,
|
|
6389
6629
|
updateComponent,
|
|
6390
6630
|
trackEvent,
|