impaktapps-ui-builder 0.0.26 → 0.0.271

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.
@@ -0,0 +1 @@
1
+ export declare const buildCheckbox: (config: any, componentScope: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.26",
3
+ "version": "0.0.271",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -0,0 +1,28 @@
1
+ import Box from "./uischema/box";
2
+ import _ from "lodash";
3
+ import { createLayoutFormat } from "./buildConfig";
4
+ const Checkbox = {
5
+ "type": "Control",
6
+ "scope": "#/properties/username1",
7
+ "layout": 12,
8
+ "options": {
9
+ "widget": "CheckBox"
10
+ },
11
+ "config": {
12
+ "main": {
13
+ "label": "Welcome to Hyperform",
14
+ }
15
+ }
16
+ }
17
+ export const buildCheckbox = (config,componentScope) => {
18
+ const check: any = _.cloneDeep(Checkbox);
19
+ check.scope = componentScope;
20
+ check.config.main.label = config.label
21
+ if(config.layout){
22
+ check.config.layout = createLayoutFormat(config.layout)
23
+ }
24
+ if (config.style) {
25
+ check.config.style = JSON.parse(config.style)
26
+ }
27
+ return check;
28
+ }
@@ -6,14 +6,14 @@ export const buildProgressBarCard = (config,myScope) => {
6
6
  const progressBarCard: any = _.cloneDeep(progressBar);
7
7
  progressBarCard.scope = myScope;
8
8
  if (config.heading) {
9
- progressBarCard.elements[0].config.main.heading = config.heading;
9
+ progressBarCard.config.main.heading = config.heading;
10
10
  }
11
11
  if (config.bottomLabel_3) {
12
- progressBarCard.elements[0].config.main.bottomLabel_3 =
12
+ progressBarCard.config.main.bottomLabel_3 =
13
13
  config.bottomLabel_3;
14
14
  }
15
15
  if (config.bottomLabel_2) {
16
- progressBarCard.elements[0].config.main.bottomLabel_2 =
16
+ progressBarCard.config.main.bottomLabel_2 =
17
17
  config.bottomLabel_2;
18
18
  }
19
19
  if (config.bottomLabel_1) {
@@ -30,6 +30,7 @@ import { buildArray } from "./buildArray";
30
30
  import { getTextArea } from "./uischema/buildPropertiesSection";
31
31
  import { buildTextArea } from "./buildTextArea";
32
32
  import { buildSlider } from "./buildSlider";
33
+ import { buildCheckbox } from "./buildCheckbox";
33
34
 
34
35
 
35
36
 
@@ -69,6 +70,9 @@ import { buildSlider } from "./buildSlider";
69
70
  case "Box":
70
71
  elements = buildLabel(config, componentScope);
71
72
  break;
73
+ case "CheckBox":
74
+ elements = buildCheckbox(config, componentScope);
75
+ break;
72
76
  case "UploadFile":
73
77
  elements = buildUploadFile(config, componentScope);
74
78
  break;
@@ -16,6 +16,7 @@ export const CoreSection = {
16
16
  options: [
17
17
  { label: "Select", value: "Select" },
18
18
  { label: "Date", value: "Date" },
19
+ { label: "CheckBox", value: "CheckBox" },
19
20
  { label: "Table", value: "Table" },
20
21
  { label: "Array", value: "Array" },
21
22
  { label: "Container", value: "WrapperSection" },
@@ -8,7 +8,7 @@ export default {
8
8
  config: {
9
9
  layout: 6,
10
10
  main: {
11
- developOnlyProgresBar: true,
11
+ developOnlyProgresBar: false,
12
12
  bottomLabel_3: "Remaining",
13
13
  heading: "PBC Details",
14
14
  },
@@ -104,6 +104,7 @@ export const componentBasicUiSchema: any = {
104
104
  options: [
105
105
  { label: "Select", value: "Select" },
106
106
  { label: "Date", value: "Date" },
107
+ { label: "CheckBox", value: "CheckBox" },
107
108
  { label: "Table", value: "Table" },
108
109
  { label: "Array", value: "Array" },
109
110
  { label: "Container", value: "WrapperSection" },
@@ -48,6 +48,7 @@ interface funcParamsProps {
48
48
  export default (funcParams:funcParamsProps) => {
49
49
  return {
50
50
  setPage: async function () {
51
+ funcParams.store.setFormdata({});
51
52
  eventGroups = {}
52
53
  eventGroups = extractEvents(funcParams.config)
53
54
  await executeEvents(