impaktapps-ui-builder 1.0.80 → 1.0.81-checkBox.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.80",
3
+ "version": "1.0.81-checkBox.1",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -24,5 +24,8 @@ export const buildCheckbox = (config,componentScope) => {
24
24
  if (config.style) {
25
25
  check.config.style = JSON.parse(config.style)
26
26
  }
27
+ if(config.isTableSelect){
28
+ check.config.isTableSelect = config.isTableSelect === "YES" ? true : false;
29
+ }
27
30
  return check;
28
31
  }
@@ -552,6 +552,14 @@ export const buildPropertiesSection = function (type: String) {
552
552
  emptyBox("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 }),
553
553
  ]
554
554
  break;
555
+
556
+ case "Checkbox":
557
+ uiSchema.elements = [
558
+ getRadioInputField("isTableSelect", "Is Table Select", ["YES", "NO"]),
559
+ emptyBox("CheckBoxEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
560
+ ]
561
+ break;
562
+
555
563
  }
556
564
  return uiSchema;
557
565
  };
@@ -60,7 +60,8 @@ export const ComponentSchema: any = {
60
60
  oneOf: [
61
61
  { title: "Date Column", const: "date" },
62
62
  { title: "DateTime Column", const: "dateTime" },
63
- { title: "Amount Column", const: "amount" }
63
+ { title: "Amount Column", const: "amount" },
64
+ { title: "Center Column", const: "action"}
64
65
  ]
65
66
  },
66
67
  variant: {
@@ -46,6 +46,7 @@ const sectionLabels = {
46
46
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
47
47
  DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
48
48
  Image: ["Core", "Properties","Style"],
49
+ Checkbox: ["Core", "Properties", "Events", "Style","Validation"]
49
50
  }
50
51
 
51
52
  export function refreshPage(type: string, store: any) {
@@ -92,11 +92,7 @@ export default (funcParams: funcParamsProps) => {
92
92
  functionsProvider: funcParams.functionsProvider,
93
93
  serviceHolder: this, eventGroups, formDataHolder
94
94
  }
95
- await executeRefreshHandler({
96
- config: {}, componentName: "",
97
- store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
98
- serviceHolder: this, eventGroups, formDataHolder: {}
99
- })
95
+
100
96
  funcParams.store.setSchema(
101
97
  (pre: any) => {
102
98
  return {
@@ -105,6 +101,12 @@ export default (funcParams: funcParamsProps) => {
105
101
  }
106
102
  }
107
103
  )
104
+ await executeRefreshHandler({
105
+ config: {}, componentName: "",
106
+ store: funcParams.store, dynamicData: funcParams.dynamicData, userValue: funcParams.userValue, service: funcParams.service,
107
+ serviceHolder: this, eventGroups, formDataHolder: {}
108
+ })
109
+
108
110
  uiSchema.elements.push(notifyUiSchema);
109
111
  funcParams.store.setUiSchema(uiSchema);
110
112
  },