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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.237",
3
+ "version": "1.0.239",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
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("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
737
+ emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
738
738
  ]
739
739
  break;
740
740
  case "Thought":
@@ -56,7 +56,7 @@ export const EventSchema = {
56
56
  { title: "Download", const: "onDownload" },
57
57
  { title: "Fail", const: "Fail" },
58
58
  { title: "Key Down", const: "onKeyDown" },
59
-
59
+ { title: "Set Style", const: "setStyle" },
60
60
 
61
61
  ]
62
62
  },
@@ -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) {