impaktapps-ui-builder 0.0.320 → 0.0.321
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 +144 -102
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +128 -112
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +12 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -1
|
@@ -6013,6 +6013,17 @@ const ComponentSchema = {
|
|
|
6013
6013
|
}
|
|
6014
6014
|
}
|
|
6015
6015
|
},
|
|
6016
|
+
InputFormatingAndMasking: {
|
|
6017
|
+
type: "array",
|
|
6018
|
+
items: {
|
|
6019
|
+
type: "object",
|
|
6020
|
+
properties: {
|
|
6021
|
+
formatElement: {
|
|
6022
|
+
type: "string"
|
|
6023
|
+
}
|
|
6024
|
+
}
|
|
6025
|
+
}
|
|
6026
|
+
},
|
|
6016
6027
|
validation: {
|
|
6017
6028
|
type: "array",
|
|
6018
6029
|
items: {
|
|
@@ -6823,104 +6834,128 @@ const GraphSection = {
|
|
|
6823
6834
|
};
|
|
6824
6835
|
const buildPropertiesSection = function(type) {
|
|
6825
6836
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6837
|
+
switch (type) {
|
|
6838
|
+
case "Text":
|
|
6839
|
+
uiSchema.elements = [
|
|
6840
|
+
getInputField("placeholder", "Placeholder"),
|
|
6841
|
+
EmptyBox,
|
|
6842
|
+
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
6843
|
+
];
|
|
6844
|
+
break;
|
|
6845
|
+
case "TextArea":
|
|
6846
|
+
uiSchema.elements = [
|
|
6847
|
+
getInputField("placeholder", "Placeholder"),
|
|
6848
|
+
EmptyBox
|
|
6849
|
+
];
|
|
6850
|
+
break;
|
|
6851
|
+
case "SpeedoMeter":
|
|
6852
|
+
uiSchema.elements = [
|
|
6853
|
+
getInputField("segments", "Segments Count"),
|
|
6854
|
+
getInputField("heading", "Container Heading"),
|
|
6855
|
+
getInputField("heading", "Container Heading"),
|
|
6856
|
+
getInputField("speedoCaption", "Speedometer Caption"),
|
|
6857
|
+
getInputField("width", "Speedometer Width")
|
|
6858
|
+
];
|
|
6859
|
+
break;
|
|
6860
|
+
case "RankCard":
|
|
6861
|
+
uiSchema.elements = [
|
|
6862
|
+
getInputField("rank", "Rank"),
|
|
6863
|
+
getInputField("image", "Image Url"),
|
|
6864
|
+
getInputField("title", "Card Title"),
|
|
6865
|
+
getInputField("description", "Card Description")
|
|
6866
|
+
];
|
|
6867
|
+
break;
|
|
6868
|
+
case "LeaderBoard":
|
|
6869
|
+
uiSchema.elements = [
|
|
6870
|
+
getInputField("valueLabel", "Value Label"),
|
|
6871
|
+
getInputField("firstImage", "First Image url"),
|
|
6872
|
+
getInputField("secondImage", "Second Image url"),
|
|
6873
|
+
getInputField("thirdImage", "Third Image url"),
|
|
6874
|
+
getTextArea("functionCode", "Write Compare Code", false)
|
|
6875
|
+
];
|
|
6876
|
+
break;
|
|
6877
|
+
case "CardSlider":
|
|
6878
|
+
uiSchema.elements = [
|
|
6879
|
+
getInputField("heading", "Heading"),
|
|
6880
|
+
getInputField("iconName", "Icon Name")
|
|
6881
|
+
];
|
|
6882
|
+
break;
|
|
6883
|
+
case "ProgressBar":
|
|
6884
|
+
case "ProgressBarCard":
|
|
6885
|
+
uiSchema.elements = [
|
|
6886
|
+
getInputField("heading", "Heading"),
|
|
6887
|
+
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
6888
|
+
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
6889
|
+
getInputField("bottomLabel_3", "Third BottomLabel")
|
|
6890
|
+
];
|
|
6891
|
+
break;
|
|
6892
|
+
case "card":
|
|
6893
|
+
uiSchema.elements = [
|
|
6894
|
+
getInputField("url", "Image Url"),
|
|
6895
|
+
getInputField("label", "Label"),
|
|
6896
|
+
getInputField("description", "Description"),
|
|
6897
|
+
EmptyBox
|
|
6898
|
+
];
|
|
6899
|
+
break;
|
|
6900
|
+
case "Button":
|
|
6901
|
+
uiSchema.elements = [
|
|
6902
|
+
getSelectField("buttonType", "Button Type"),
|
|
6903
|
+
getSelectField("iconName", "Icon Name"),
|
|
6904
|
+
getSelectField("color", "Color"),
|
|
6905
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
6906
|
+
getSelectField("defaultStyle", "Default Style"),
|
|
6907
|
+
EmptyBox
|
|
6908
|
+
];
|
|
6909
|
+
break;
|
|
6910
|
+
case "Graph":
|
|
6911
|
+
uiSchema.elements = [
|
|
6912
|
+
getInputField("height", "Height"),
|
|
6913
|
+
getInputField("heading", "Heading"),
|
|
6914
|
+
getSelectField("graphType", "Graph Type"),
|
|
6915
|
+
getInputField("leftLabel", "Left Label"),
|
|
6916
|
+
getInputField("bottomLabel", "Bottom Label"),
|
|
6917
|
+
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
6918
|
+
getArrayControl("legendLabels", "label"),
|
|
6919
|
+
getArrayControl("pieArcColors", "color")
|
|
6920
|
+
];
|
|
6921
|
+
break;
|
|
6922
|
+
case "WrapperSection":
|
|
6923
|
+
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
|
|
6924
|
+
break;
|
|
6925
|
+
case "TabSection":
|
|
6926
|
+
uiSchema.elements = [
|
|
6927
|
+
getArrayControl("sectionLabels", "label")
|
|
6928
|
+
];
|
|
6929
|
+
break;
|
|
6930
|
+
case "Table":
|
|
6931
|
+
case "LazyLoadingTable":
|
|
6932
|
+
uiSchema.elements = [
|
|
6933
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
6934
|
+
getRadioInputField("SelectionAvailable", "Selection Available", ["YES", "NO"]),
|
|
6935
|
+
getRadioInputField("ColumnResizingAvailable", "ColumnResizing Available", ["YES", "NO"]),
|
|
6936
|
+
getRadioInputField("DragAvailable", "Drag Available", ["YES", "NO"]),
|
|
6937
|
+
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
6938
|
+
getInputField("selectKey", "Selection Key"),
|
|
6939
|
+
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name")
|
|
6940
|
+
];
|
|
6941
|
+
break;
|
|
6942
|
+
case "Radio":
|
|
6943
|
+
uiSchema.elements = [
|
|
6944
|
+
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
6945
|
+
];
|
|
6946
|
+
break;
|
|
6947
|
+
case "Select":
|
|
6948
|
+
uiSchema.elements = [
|
|
6949
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
6950
|
+
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
|
|
6951
|
+
];
|
|
6952
|
+
break;
|
|
6953
|
+
case "MultipleSelect":
|
|
6954
|
+
uiSchema.elements = [
|
|
6955
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
6956
|
+
EmptyBox
|
|
6957
|
+
];
|
|
6958
|
+
break;
|
|
6924
6959
|
}
|
|
6925
6960
|
return uiSchema;
|
|
6926
6961
|
};
|
|
@@ -7207,7 +7242,8 @@ const sectionLabels = {
|
|
|
7207
7242
|
Button: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7208
7243
|
Array: ["Core", "Components", "Validation"],
|
|
7209
7244
|
Radio: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7210
|
-
Text: ["Core", "style", "Event", "Validation"]
|
|
7245
|
+
Text: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7246
|
+
TextArea: ["Core", "Properties", "style", "Event", "Validation"]
|
|
7211
7247
|
};
|
|
7212
7248
|
const refreshPage = (type, store2) => {
|
|
7213
7249
|
var _a;
|
|
@@ -9286,6 +9322,12 @@ const buildTextField = (config, componentScope) => {
|
|
|
9286
9322
|
if (config.style) {
|
|
9287
9323
|
inputField.config.style = JSON.parse(config.style);
|
|
9288
9324
|
}
|
|
9325
|
+
if (config.InputFormatingAndMasking) {
|
|
9326
|
+
inputField.config.main.formatStrArray = config.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
9327
|
+
}
|
|
9328
|
+
if (config.placeholder) {
|
|
9329
|
+
inputField.config.main.placeholder = config.placeholder;
|
|
9330
|
+
}
|
|
9289
9331
|
if (config.layout) {
|
|
9290
9332
|
inputField.config.layout = createLayoutFormat(config.layout);
|
|
9291
9333
|
}
|
|
@@ -9907,6 +9949,9 @@ const buildTextArea = (config, componentScope) => {
|
|
|
9907
9949
|
if (config.style) {
|
|
9908
9950
|
textArea.config.style = JSON.parse(config.style);
|
|
9909
9951
|
}
|
|
9952
|
+
if (config.placeholder) {
|
|
9953
|
+
textArea.config.main.placeholder = config.placeholder;
|
|
9954
|
+
}
|
|
9910
9955
|
textArea.scope = componentScope;
|
|
9911
9956
|
return textArea;
|
|
9912
9957
|
};
|
|
@@ -10269,9 +10314,6 @@ const buildUiSchema = (config) => {
|
|
|
10269
10314
|
case "RunnerBoyProgressBar":
|
|
10270
10315
|
elements = RunnerBoyProgressbar(config, componentScope);
|
|
10271
10316
|
break;
|
|
10272
|
-
case "TabSection":
|
|
10273
|
-
elements = buildTabSection(config);
|
|
10274
|
-
break;
|
|
10275
10317
|
case "WrapperSection":
|
|
10276
10318
|
elements = buildWrapperSection(config);
|
|
10277
10319
|
break;
|