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