impaktapps-ui-builder 0.0.277 → 0.0.279
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 +111 -107
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +2 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +7 -1
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +85 -83
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +35 -35
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +4 -29
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +35 -35
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +10 -10
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
|
@@ -113,7 +113,7 @@ const PageMasterUiSchema = {
|
|
|
113
113
|
main: {
|
|
114
114
|
label: "Template",
|
|
115
115
|
programType: true,
|
|
116
|
-
options: [{
|
|
116
|
+
options: [{ title: "Basic Template", const: 1 }],
|
|
117
117
|
required: true
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -6085,33 +6085,33 @@ const componentBasicUiSchema = {
|
|
|
6085
6085
|
main: {
|
|
6086
6086
|
label: "Type",
|
|
6087
6087
|
options: [
|
|
6088
|
-
{
|
|
6089
|
-
{
|
|
6090
|
-
{
|
|
6091
|
-
{
|
|
6092
|
-
{
|
|
6093
|
-
{
|
|
6094
|
-
{
|
|
6095
|
-
{
|
|
6096
|
-
{
|
|
6097
|
-
{
|
|
6098
|
-
{
|
|
6099
|
-
{
|
|
6100
|
-
{
|
|
6101
|
-
{
|
|
6102
|
-
{
|
|
6103
|
-
{
|
|
6104
|
-
{
|
|
6105
|
-
{
|
|
6106
|
-
{
|
|
6107
|
-
{
|
|
6108
|
-
{
|
|
6109
|
-
{
|
|
6110
|
-
{
|
|
6111
|
-
{
|
|
6112
|
-
{
|
|
6113
|
-
{
|
|
6114
|
-
{
|
|
6088
|
+
{ title: "Select", const: "Select" },
|
|
6089
|
+
{ title: "Date", const: "Date" },
|
|
6090
|
+
{ title: "CheckBox", const: "CheckBox" },
|
|
6091
|
+
{ title: "Table", const: "Table" },
|
|
6092
|
+
{ title: "Array", const: "Array" },
|
|
6093
|
+
{ title: "Container", const: "WrapperSection" },
|
|
6094
|
+
{ title: "Tabs", const: "TabSection" },
|
|
6095
|
+
{ title: "Text", const: "Text" },
|
|
6096
|
+
{ title: "Radio", const: "Radio" },
|
|
6097
|
+
{ title: "Text Area", const: "TextArea" },
|
|
6098
|
+
{ title: "Button", const: "Button" },
|
|
6099
|
+
{ title: "Card", const: "card" },
|
|
6100
|
+
{ title: "Rank", const: "Rank" },
|
|
6101
|
+
{ title: "SpeedoMeter", const: "SpeedoMeter" },
|
|
6102
|
+
{ title: "ProgressBar", const: "ProgressBar" },
|
|
6103
|
+
{ title: "Graph", const: "Graph" },
|
|
6104
|
+
{ title: "Label", const: "Box" },
|
|
6105
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
6106
|
+
{ title: "Download File", const: "DownloadFile" },
|
|
6107
|
+
{ title: "Empty Box", const: "EmptyBox" },
|
|
6108
|
+
{ title: "ProgressBar Card", const: "ProgressBarCard" },
|
|
6109
|
+
{ title: "Rank Card", const: "RankCard" },
|
|
6110
|
+
{ title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
|
|
6111
|
+
{ title: "Slider", const: "Slider" },
|
|
6112
|
+
{ title: "Timer", const: "Timer" },
|
|
6113
|
+
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
6114
|
+
{ title: "LeaderBoard", const: "LeaderBoard" }
|
|
6115
6115
|
]
|
|
6116
6116
|
}
|
|
6117
6117
|
}
|
|
@@ -6192,10 +6192,10 @@ const componentBasicUiSchema = {
|
|
|
6192
6192
|
main: {
|
|
6193
6193
|
label: "Screen Size",
|
|
6194
6194
|
options: [
|
|
6195
|
-
{
|
|
6196
|
-
{
|
|
6197
|
-
{
|
|
6198
|
-
{
|
|
6195
|
+
{ title: "Extra Small", const: "xs" },
|
|
6196
|
+
{ title: "Small", const: "sm" },
|
|
6197
|
+
{ title: "Medium", const: "md" },
|
|
6198
|
+
{ title: "Large", const: "lg" }
|
|
6199
6199
|
]
|
|
6200
6200
|
}
|
|
6201
6201
|
}
|
|
@@ -6216,10 +6216,10 @@ const componentBasicUiSchema = {
|
|
|
6216
6216
|
main: {
|
|
6217
6217
|
label: "Value",
|
|
6218
6218
|
options: [
|
|
6219
|
-
{
|
|
6220
|
-
{
|
|
6221
|
-
{
|
|
6222
|
-
{
|
|
6219
|
+
{ title: "3", const: "3" },
|
|
6220
|
+
{ title: "5.5", const: "5.5" },
|
|
6221
|
+
{ title: "8", const: "8" },
|
|
6222
|
+
{ title: "12", const: "12" }
|
|
6223
6223
|
]
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
@@ -6378,33 +6378,33 @@ const CoreSection = {
|
|
|
6378
6378
|
label: "Type",
|
|
6379
6379
|
type: "text",
|
|
6380
6380
|
options: [
|
|
6381
|
-
{
|
|
6382
|
-
{
|
|
6383
|
-
{
|
|
6384
|
-
{
|
|
6385
|
-
{
|
|
6386
|
-
{
|
|
6387
|
-
{
|
|
6388
|
-
{
|
|
6389
|
-
{
|
|
6390
|
-
{
|
|
6391
|
-
{
|
|
6392
|
-
{
|
|
6393
|
-
{
|
|
6394
|
-
{
|
|
6395
|
-
{
|
|
6396
|
-
{
|
|
6397
|
-
{
|
|
6398
|
-
{
|
|
6399
|
-
{
|
|
6400
|
-
{
|
|
6401
|
-
{
|
|
6402
|
-
{
|
|
6403
|
-
{
|
|
6404
|
-
{
|
|
6405
|
-
{
|
|
6406
|
-
{
|
|
6407
|
-
{
|
|
6381
|
+
{ title: "Select", const: "Select" },
|
|
6382
|
+
{ title: "Date", const: "Date" },
|
|
6383
|
+
{ title: "CheckBox", const: "CheckBox" },
|
|
6384
|
+
{ title: "Table", const: "Table" },
|
|
6385
|
+
{ title: "Array", const: "Array" },
|
|
6386
|
+
{ title: "Container", const: "WrapperSection" },
|
|
6387
|
+
{ title: "Tabs", const: "TabSection" },
|
|
6388
|
+
{ title: "Text", const: "Text" },
|
|
6389
|
+
{ title: "Text Area", const: "TextArea" },
|
|
6390
|
+
{ title: "Button", const: "Button" },
|
|
6391
|
+
{ title: "Card", const: "card" },
|
|
6392
|
+
{ title: "Radio", const: "Radio" },
|
|
6393
|
+
{ title: "Rank", const: "Rank" },
|
|
6394
|
+
{ title: "SpeedoMeter", const: "SpeedoMeter" },
|
|
6395
|
+
{ title: "ProgressBar", const: "ProgressBar" },
|
|
6396
|
+
{ title: "Graph", const: "Graph" },
|
|
6397
|
+
{ title: "Label", const: "Box" },
|
|
6398
|
+
{ title: "Upload File", const: "UploadFile" },
|
|
6399
|
+
{ title: "Download File", const: "DownloadFile" },
|
|
6400
|
+
{ title: "Empty Box", const: "EmptyBox" },
|
|
6401
|
+
{ title: "ProgressBar Card", const: "ProgressBarCard" },
|
|
6402
|
+
{ title: "Rank Card", const: "RankCard" },
|
|
6403
|
+
{ title: "Runner Boy Progress Bar", const: "RunnerBoyProgressBar" },
|
|
6404
|
+
{ title: "Slider", const: "Slider" },
|
|
6405
|
+
{ title: "Timer", const: "Timer" },
|
|
6406
|
+
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
6407
|
+
{ title: "LeaderBoard", const: "LeaderBoard" }
|
|
6408
6408
|
]
|
|
6409
6409
|
}
|
|
6410
6410
|
}
|
|
@@ -6480,10 +6480,10 @@ const CoreSection = {
|
|
|
6480
6480
|
main: {
|
|
6481
6481
|
label: "Screen Size",
|
|
6482
6482
|
options: [
|
|
6483
|
-
{
|
|
6484
|
-
{
|
|
6485
|
-
{
|
|
6486
|
-
{
|
|
6483
|
+
{ title: "Extra Small", const: "xs" },
|
|
6484
|
+
{ title: "Small", const: "sm" },
|
|
6485
|
+
{ title: "Medium", const: "md" },
|
|
6486
|
+
{ title: "Large", const: "lg" }
|
|
6487
6487
|
]
|
|
6488
6488
|
}
|
|
6489
6489
|
}
|
|
@@ -6504,10 +6504,10 @@ const CoreSection = {
|
|
|
6504
6504
|
main: {
|
|
6505
6505
|
label: "Value",
|
|
6506
6506
|
options: [
|
|
6507
|
-
{
|
|
6508
|
-
{
|
|
6509
|
-
{
|
|
6510
|
-
{
|
|
6507
|
+
{ title: "3", const: "3" },
|
|
6508
|
+
{ title: "5.5", const: "5.5" },
|
|
6509
|
+
{ title: "8", const: "8" },
|
|
6510
|
+
{ title: "12", const: "12" }
|
|
6511
6511
|
]
|
|
6512
6512
|
}
|
|
6513
6513
|
}
|
|
@@ -6868,8 +6868,8 @@ const buildPropertiesSection = function(type) {
|
|
|
6868
6868
|
} else if (type === "Box") {
|
|
6869
6869
|
const iconName = getInputField("value", "Value");
|
|
6870
6870
|
uiSchema.elements = [getSelectField("graphType", "Label Type", [
|
|
6871
|
-
{
|
|
6872
|
-
{
|
|
6871
|
+
{ title: "URL", const: "url" },
|
|
6872
|
+
{ title: "Heading", const: "heading" }
|
|
6873
6873
|
]), iconName];
|
|
6874
6874
|
} else if (type === "Button") {
|
|
6875
6875
|
const caption = getInputField("color", "Color");
|
|
@@ -6877,16 +6877,16 @@ const buildPropertiesSection = function(type) {
|
|
|
6877
6877
|
const iconName = getInputField("iconName", "Icon Name");
|
|
6878
6878
|
uiSchema.elements = [
|
|
6879
6879
|
getSelectField("buttonType", "Button Type", [
|
|
6880
|
-
{
|
|
6881
|
-
{
|
|
6882
|
-
{
|
|
6880
|
+
{ title: "Button With Text", const: "Button" },
|
|
6881
|
+
{ title: "Button With Icon", const: "IconButton" },
|
|
6882
|
+
{ title: "Button With Icon and Text", const: "ButtonWithIconAndText" }
|
|
6883
6883
|
]),
|
|
6884
6884
|
iconName,
|
|
6885
6885
|
size,
|
|
6886
6886
|
caption,
|
|
6887
6887
|
getSelectField("defaultStyle", "Default Style", [
|
|
6888
|
-
{
|
|
6889
|
-
{
|
|
6888
|
+
{ title: "Apply Default Style", const: "true" },
|
|
6889
|
+
{ title: "No Style", const: "false" }
|
|
6890
6890
|
]),
|
|
6891
6891
|
JSON.parse(JSON.stringify(EmptyBox))
|
|
6892
6892
|
];
|
|
@@ -6900,11 +6900,11 @@ const buildPropertiesSection = function(type) {
|
|
|
6900
6900
|
heading,
|
|
6901
6901
|
height,
|
|
6902
6902
|
getSelectField("graphType", "Graph Type", [
|
|
6903
|
-
{
|
|
6904
|
-
{
|
|
6905
|
-
{
|
|
6906
|
-
{
|
|
6907
|
-
{
|
|
6903
|
+
{ title: "Bar Graph", const: "BarGraph" },
|
|
6904
|
+
{ title: "Stack Bar Graph", const: "StackBarGraph" },
|
|
6905
|
+
{ title: "Line Graph", const: "LineGraph" },
|
|
6906
|
+
{ title: "Pie Graph", const: "PieGraph" },
|
|
6907
|
+
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" }
|
|
6908
6908
|
]),
|
|
6909
6909
|
leftLabel,
|
|
6910
6910
|
bottomLabel,
|
|
@@ -7111,10 +7111,10 @@ const ValidationSection = {
|
|
|
7111
7111
|
main: {
|
|
7112
7112
|
label: "Validation Type",
|
|
7113
7113
|
options: [
|
|
7114
|
-
{
|
|
7115
|
-
{
|
|
7116
|
-
{
|
|
7117
|
-
{
|
|
7114
|
+
{ title: "required", const: "Required" },
|
|
7115
|
+
{ title: "minLength", const: "Minimum Length" },
|
|
7116
|
+
{ title: "maxLength", const: "Maximum Length" },
|
|
7117
|
+
{ title: "pattern", const: "Pattern" }
|
|
7118
7118
|
]
|
|
7119
7119
|
}
|
|
7120
7120
|
}
|
|
@@ -8168,7 +8168,7 @@ const buildSelect = (config, componentScope) => {
|
|
|
8168
8168
|
selectInputField.config.main.label = config.label;
|
|
8169
8169
|
if (config.value) {
|
|
8170
8170
|
const options = config.value.map((e) => {
|
|
8171
|
-
return {
|
|
8171
|
+
return { title: e.label, const: e.value };
|
|
8172
8172
|
});
|
|
8173
8173
|
selectInputField.config.main.options = options;
|
|
8174
8174
|
}
|
|
@@ -8618,7 +8618,6 @@ var MultipleSelect = {
|
|
|
8618
8618
|
}
|
|
8619
8619
|
};
|
|
8620
8620
|
const buildMultiSelect = (config, componentScope) => {
|
|
8621
|
-
var _a;
|
|
8622
8621
|
const multipleSelect = _.cloneDeep(MultipleSelect);
|
|
8623
8622
|
multipleSelect.scope = componentScope;
|
|
8624
8623
|
if (config.label) {
|
|
@@ -8627,7 +8626,12 @@ const buildMultiSelect = (config, componentScope) => {
|
|
|
8627
8626
|
if (config.layout) {
|
|
8628
8627
|
multipleSelect.config.layout = createLayoutFormat(config.layout);
|
|
8629
8628
|
}
|
|
8630
|
-
|
|
8629
|
+
if (config.value) {
|
|
8630
|
+
const options = config.value.map((e) => {
|
|
8631
|
+
return { title: e.label, const: e.value };
|
|
8632
|
+
});
|
|
8633
|
+
multipleSelect.config.main.options = options != null ? options : [];
|
|
8634
|
+
}
|
|
8631
8635
|
return multipleSelect;
|
|
8632
8636
|
};
|
|
8633
8637
|
const buildBasicUiSchema = (config) => {
|
|
@@ -9182,21 +9186,21 @@ const EventUiSchema = {
|
|
|
9182
9186
|
label: "Event Type",
|
|
9183
9187
|
type: "text",
|
|
9184
9188
|
options: [
|
|
9185
|
-
{
|
|
9186
|
-
{
|
|
9187
|
-
{
|
|
9188
|
-
{
|
|
9189
|
-
{
|
|
9190
|
-
{
|
|
9189
|
+
{ title: "Click Event", const: "onClick" },
|
|
9190
|
+
{ title: "onStart", const: "onStart" },
|
|
9191
|
+
{ title: "Load Event", const: "onLoad" },
|
|
9192
|
+
{ title: "Change Event", const: "onChange" },
|
|
9193
|
+
{ title: "Success", const: "Success" },
|
|
9194
|
+
{ title: "Fail", const: "Fail" }
|
|
9191
9195
|
]
|
|
9192
9196
|
}
|
|
9193
9197
|
}
|
|
9194
9198
|
},
|
|
9195
9199
|
getSelectField("Handler", "Handler", [
|
|
9196
|
-
{
|
|
9197
|
-
{
|
|
9198
|
-
{
|
|
9199
|
-
{
|
|
9200
|
+
{ title: "Custom", const: "custom" },
|
|
9201
|
+
{ title: "Api", const: "api" },
|
|
9202
|
+
{ title: "Inbuilt Function", const: "inBuiltFunction" },
|
|
9203
|
+
{ title: "Refresh", const: "refresh" }
|
|
9200
9204
|
])
|
|
9201
9205
|
]
|
|
9202
9206
|
},
|
|
@@ -9383,10 +9387,10 @@ const APISection = {
|
|
|
9383
9387
|
label: "Method",
|
|
9384
9388
|
type: "text",
|
|
9385
9389
|
options: [
|
|
9386
|
-
{
|
|
9387
|
-
{
|
|
9388
|
-
{
|
|
9389
|
-
{
|
|
9390
|
+
{ title: "Get", const: "get" },
|
|
9391
|
+
{ title: "Post", const: "post" },
|
|
9392
|
+
{ title: "Delete", const: "delete" },
|
|
9393
|
+
{ title: "Put", const: "put" }
|
|
9390
9394
|
]
|
|
9391
9395
|
}
|
|
9392
9396
|
}
|
|
@@ -9561,8 +9565,8 @@ var event = (store2, dynamicData2) => {
|
|
|
9561
9565
|
uiSchema.elements[1].elements[0].elements[2] = APISection;
|
|
9562
9566
|
} else if (handlerType === "inBuiltFunction") {
|
|
9563
9567
|
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
|
|
9564
|
-
{
|
|
9565
|
-
{
|
|
9568
|
+
{ title: "RankProvider", const: "RankProvider" },
|
|
9569
|
+
{ title: "Download File", const: "downloadFile" }
|
|
9566
9570
|
]);
|
|
9567
9571
|
uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
|
|
9568
9572
|
} else if (handlerType === "refresh") {
|
|
@@ -9807,7 +9811,7 @@ async function mergeFormdata(handlerResponse, componentName2, eventConfig, store
|
|
|
9807
9811
|
properties: {
|
|
9808
9812
|
...pre.properties,
|
|
9809
9813
|
[componentName2]: {
|
|
9810
|
-
|
|
9814
|
+
oneOf: handlerResponse.data
|
|
9811
9815
|
}
|
|
9812
9816
|
}
|
|
9813
9817
|
};
|