impaktapps-ui-builder 1.0.237 → 1.0.238
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/dist/impaktapps-ui-builder.es.js +23 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +19 -0
|
@@ -8294,7 +8294,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8294
8294
|
getSelectField("variant", "Variant"),
|
|
8295
8295
|
getInputField("toolTip", "Tooltip"),
|
|
8296
8296
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8297
|
-
|
|
8297
|
+
getInputField("errorMessage", " Error Message")
|
|
8298
8298
|
];
|
|
8299
8299
|
break;
|
|
8300
8300
|
case "DateTime":
|
|
@@ -8302,7 +8302,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8302
8302
|
getSelectField("variant", "Variant"),
|
|
8303
8303
|
getInputField("toolTip", "Tooltip"),
|
|
8304
8304
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8305
|
-
|
|
8305
|
+
getInputField("errorMessage", " Error Message")
|
|
8306
8306
|
];
|
|
8307
8307
|
break;
|
|
8308
8308
|
case "Thought":
|
|
@@ -9447,7 +9447,8 @@ const EventSchema = {
|
|
|
9447
9447
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9448
9448
|
{ title: "Download", const: "onDownload" },
|
|
9449
9449
|
{ title: "Fail", const: "Fail" },
|
|
9450
|
-
{ title: "Key Down", const: "onKeyDown" }
|
|
9450
|
+
{ title: "Key Down", const: "onKeyDown" },
|
|
9451
|
+
{ title: "Set Style", const: "setStyle" }
|
|
9451
9452
|
]
|
|
9452
9453
|
},
|
|
9453
9454
|
Handler: {
|
|
@@ -10833,6 +10834,25 @@ var service = (funcParams) => {
|
|
|
10833
10834
|
funcParams.store.setUiSchema(uiSchema);
|
|
10834
10835
|
});
|
|
10835
10836
|
},
|
|
10837
|
+
getStyle: () => {
|
|
10838
|
+
var _a, _b, _c, _d, _e;
|
|
10839
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10840
|
+
if (cloneEventGroup.setStyle) {
|
|
10841
|
+
let finalResponse = {};
|
|
10842
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_c = (_b = funcParams == null ? void 0 : funcParams.dynamicData) == null ? void 0 : _b.path) == null ? void 0 : _c.split(".")[0]);
|
|
10843
|
+
if ((_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10844
|
+
for (const eventConfig of (_e = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _e[path]) {
|
|
10845
|
+
finalResponse = executeEvents({
|
|
10846
|
+
...executeEventsParameters,
|
|
10847
|
+
config: eventConfig,
|
|
10848
|
+
componentName: path
|
|
10849
|
+
});
|
|
10850
|
+
}
|
|
10851
|
+
return finalResponse;
|
|
10852
|
+
}
|
|
10853
|
+
}
|
|
10854
|
+
return {};
|
|
10855
|
+
},
|
|
10836
10856
|
onCellRenderer: (cellParams) => {
|
|
10837
10857
|
var _a, _b, _c, _d, _e;
|
|
10838
10858
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|