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
|
@@ -11,6 +11,7 @@ interface funcParamsProps {
|
|
|
11
11
|
export declare const extractEvents: (eventConfig: any) => any;
|
|
12
12
|
declare const _default: (funcParams: funcParamsProps) => {
|
|
13
13
|
setPage: () => Promise<void>;
|
|
14
|
+
getStyle: () => {};
|
|
14
15
|
onCellRenderer: (cellParams: any) => {};
|
|
15
16
|
onClick: () => void;
|
|
16
17
|
onKeyDown: () => void;
|
package/package.json
CHANGED
|
@@ -5,9 +5,6 @@ import { createLayoutFormat } from "./buildConfig";
|
|
|
5
5
|
export const buildDate = (config: any, componentScope: string) => {
|
|
6
6
|
const dateInputField: any = _.cloneDeep(DateInputField);
|
|
7
7
|
dateInputField.config.main.label = config.label;
|
|
8
|
-
if (config.errorMessage) {
|
|
9
|
-
dateInputField.config.main.errorMessage = config.errorMessage;
|
|
10
|
-
}
|
|
11
8
|
dateInputField.scope = componentScope;
|
|
12
9
|
if (config.layout) {
|
|
13
10
|
dateInputField.config.layout = createLayoutFormat(config.layout)
|
|
@@ -29,9 +26,6 @@ export const buildDate = (config: any, componentScope: string) => {
|
|
|
29
26
|
export const buildDateTime = (config: any, componentScope: string) => {
|
|
30
27
|
const dateTimeInputField: any = _.cloneDeep(DateTime);
|
|
31
28
|
dateTimeInputField.config.main.label = config.label;
|
|
32
|
-
if (config.errorMessage) {
|
|
33
|
-
dateTimeInputField.config.main.errorMessage = config.errorMessage;
|
|
34
|
-
}
|
|
35
29
|
dateTimeInputField.scope = componentScope;
|
|
36
30
|
if (config.layout) {
|
|
37
31
|
dateTimeInputField.config.layout = createLayoutFormat(config.layout)
|
|
@@ -717,7 +717,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
717
717
|
{ label: "Right", value: "right" },
|
|
718
718
|
{ label: "Bottom", value: "bottom" }
|
|
719
719
|
]),
|
|
720
|
-
emptyBox("
|
|
720
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
721
721
|
]
|
|
722
722
|
break;
|
|
723
723
|
case "DateTime":
|
|
@@ -734,7 +734,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
734
734
|
{ label: "Right", value: "right" },
|
|
735
735
|
{ label: "Bottom", value: "bottom" }
|
|
736
736
|
]),
|
|
737
|
-
emptyBox("
|
|
737
|
+
emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
738
738
|
]
|
|
739
739
|
break;
|
|
740
740
|
case "Thought":
|
|
@@ -101,6 +101,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
|
+
|
|
104
105
|
executeRefreshHandler({
|
|
105
106
|
config: {}, componentName: "",
|
|
106
107
|
store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
|
|
@@ -111,6 +112,24 @@ export default (funcParams: funcParamsProps) => {
|
|
|
111
112
|
funcParams.store.setUiSchema(uiSchema);
|
|
112
113
|
});
|
|
113
114
|
},
|
|
115
|
+
getStyle: () => {
|
|
116
|
+
const cloneEventGroup = _.cloneDeep(eventGroups)
|
|
117
|
+
if (cloneEventGroup.setStyle) {
|
|
118
|
+
let finalResponse = {};
|
|
119
|
+
const path = funcParams.dynamicData?.tableButtonPath || funcParams?.dynamicData.path?.split(".").pop();
|
|
120
|
+
if (cloneEventGroup?.setStyle?.[path]) {
|
|
121
|
+
for (const eventConfig of cloneEventGroup?.setStyle?.[path]) {
|
|
122
|
+
finalResponse = executeEvents({
|
|
123
|
+
...executeEventsParameters,
|
|
124
|
+
config: eventConfig,
|
|
125
|
+
componentName: path
|
|
126
|
+
})
|
|
127
|
+
}
|
|
128
|
+
return finalResponse
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return {}
|
|
132
|
+
},
|
|
114
133
|
onCellRenderer: (cellParams) => {
|
|
115
134
|
const cloneEventGroup = _.cloneDeep(eventGroups)
|
|
116
135
|
if (cloneEventGroup.onCellRenderer) {
|