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.
- package/dist/impaktapps-ui-builder.es.js +35 -4
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +28 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildCheckbox: (config: any, componentScope: any) => any;
|
package/package.json
CHANGED
|
@@ -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.
|
|
9
|
+
progressBarCard.config.main.heading = config.heading;
|
|
10
10
|
}
|
|
11
11
|
if (config.bottomLabel_3) {
|
|
12
|
-
progressBarCard.
|
|
12
|
+
progressBarCard.config.main.bottomLabel_3 =
|
|
13
13
|
config.bottomLabel_3;
|
|
14
14
|
}
|
|
15
15
|
if (config.bottomLabel_2) {
|
|
16
|
-
progressBarCard.
|
|
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" },
|
|
@@ -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" },
|