impaktapps-ui-builder 1.0.237 → 1.0.239
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 -9
- 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/buildDate.ts +0 -6
- 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
|
-
emptyBox$1("
|
|
8297
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
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
|
-
emptyBox$1("
|
|
8305
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
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;
|
|
10839
|
+
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10840
|
+
if (cloneEventGroup.setStyle) {
|
|
10841
|
+
let finalResponse = {};
|
|
10842
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10843
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10844
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[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);
|
|
@@ -12139,9 +12159,6 @@ const DateTime = {
|
|
|
12139
12159
|
const buildDate = (config2, componentScope2) => {
|
|
12140
12160
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
12141
12161
|
dateInputField.config.main.label = config2.label;
|
|
12142
|
-
if (config2.errorMessage) {
|
|
12143
|
-
dateInputField.config.main.errorMessage = config2.errorMessage;
|
|
12144
|
-
}
|
|
12145
12162
|
dateInputField.scope = componentScope2;
|
|
12146
12163
|
if (config2.layout) {
|
|
12147
12164
|
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
@@ -12163,9 +12180,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
12163
12180
|
const buildDateTime = (config2, componentScope2) => {
|
|
12164
12181
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
12165
12182
|
dateTimeInputField.config.main.label = config2.label;
|
|
12166
|
-
if (config2.errorMessage) {
|
|
12167
|
-
dateTimeInputField.config.main.errorMessage = config2.errorMessage;
|
|
12168
|
-
}
|
|
12169
12183
|
dateTimeInputField.scope = componentScope2;
|
|
12170
12184
|
if (config2.layout) {
|
|
12171
12185
|
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|