impaktapps-ui-builder 1.0.223 → 1.0.225
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 +142 -3
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +36 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -0
|
@@ -6239,6 +6239,7 @@ const ComponentSchema = {
|
|
|
6239
6239
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6240
6240
|
{ title: "Array", const: "Array" },
|
|
6241
6241
|
{ title: "Button", const: "Button" },
|
|
6242
|
+
{ title: "ButtonGroup", const: "ButtonGroup" },
|
|
6242
6243
|
{ title: "Data Card", const: "card" },
|
|
6243
6244
|
{ title: "Check Box", const: "CheckBox" },
|
|
6244
6245
|
{ title: "Camera", const: "Camera" },
|
|
@@ -6260,6 +6261,7 @@ const ComponentSchema = {
|
|
|
6260
6261
|
{ title: "OTP_Input", const: "OTP_Input" },
|
|
6261
6262
|
{ title: "Pan Card Masked", const: "PanCardText" },
|
|
6262
6263
|
{ title: "Pop Up", const: "PopUp" },
|
|
6264
|
+
{ title: "Pop Over", const: "PopOver" },
|
|
6263
6265
|
{ title: "Progress Bar", const: "ProgressBar" },
|
|
6264
6266
|
{ title: "Progress Bar Card", const: "ProgressBarCard" },
|
|
6265
6267
|
{ title: "Dropdown", const: "Select" },
|
|
@@ -6332,6 +6334,34 @@ const ComponentSchema = {
|
|
|
6332
6334
|
{ title: "Standard", const: "standard" }
|
|
6333
6335
|
]
|
|
6334
6336
|
},
|
|
6337
|
+
positionVertical: {
|
|
6338
|
+
oneOf: [
|
|
6339
|
+
{ title: "Top", const: "top" },
|
|
6340
|
+
{ title: "Center", const: "center" },
|
|
6341
|
+
{ title: "Bottom", const: "bottom" }
|
|
6342
|
+
]
|
|
6343
|
+
},
|
|
6344
|
+
positionHorizontal: {
|
|
6345
|
+
oneOf: [
|
|
6346
|
+
{ title: "Left", const: "left" },
|
|
6347
|
+
{ title: "Center", const: "center" },
|
|
6348
|
+
{ title: "Right", const: "right" }
|
|
6349
|
+
]
|
|
6350
|
+
},
|
|
6351
|
+
contentVertical: {
|
|
6352
|
+
oneOf: [
|
|
6353
|
+
{ title: "Top", const: "top" },
|
|
6354
|
+
{ title: "Center", const: "center" },
|
|
6355
|
+
{ title: "Bottom", const: "bottom" }
|
|
6356
|
+
]
|
|
6357
|
+
},
|
|
6358
|
+
contentHorizontal: {
|
|
6359
|
+
oneOf: [
|
|
6360
|
+
{ title: "Left", const: "left" },
|
|
6361
|
+
{ title: "Center", const: "center" },
|
|
6362
|
+
{ title: "Right", const: "right" }
|
|
6363
|
+
]
|
|
6364
|
+
},
|
|
6335
6365
|
toolTipPosition: {
|
|
6336
6366
|
oneOf: [
|
|
6337
6367
|
{ title: "Top", const: "top" },
|
|
@@ -6662,6 +6692,7 @@ const ComponentSchema = {
|
|
|
6662
6692
|
{ title: "Drafts Icon", const: "DraftsIcon" },
|
|
6663
6693
|
{ title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
|
|
6664
6694
|
{ title: "Paste Icon", const: "PasteIcon" },
|
|
6695
|
+
{ title: "Calendar", const: "Calendar" },
|
|
6665
6696
|
{ title: "Prev Icon", const: "PrevIcon" },
|
|
6666
6697
|
{ title: "Verified Icon", const: "VerifiedIcon" },
|
|
6667
6698
|
{ title: "Table Add Icon", const: "TableAddIcon" },
|
|
@@ -8026,6 +8057,17 @@ const buildPropertiesSection = function(type) {
|
|
|
8026
8057
|
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
8027
8058
|
];
|
|
8028
8059
|
break;
|
|
8060
|
+
case "PopOver":
|
|
8061
|
+
uiSchema.elements = [
|
|
8062
|
+
getSelectField("positionVertical", "Attach To (Vertical)"),
|
|
8063
|
+
getSelectField("positionHorizontal", "Attach To (Horizontal)"),
|
|
8064
|
+
getSelectField("contentVertical", "Popover Start (Vertical)"),
|
|
8065
|
+
getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
|
|
8066
|
+
getInputField("width", "Width"),
|
|
8067
|
+
getInputField("gap", "Gap"),
|
|
8068
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
|
|
8069
|
+
];
|
|
8070
|
+
break;
|
|
8029
8071
|
case "Text":
|
|
8030
8072
|
uiSchema.elements = [
|
|
8031
8073
|
getInputField("placeholder", "Placeholder"),
|
|
@@ -8123,6 +8165,14 @@ const buildPropertiesSection = function(type) {
|
|
|
8123
8165
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8124
8166
|
];
|
|
8125
8167
|
break;
|
|
8168
|
+
case "ButtonGroup":
|
|
8169
|
+
uiSchema.elements = [
|
|
8170
|
+
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
8171
|
+
getInputField("size", "Size"),
|
|
8172
|
+
getSelectField("color", "Color"),
|
|
8173
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8174
|
+
];
|
|
8175
|
+
break;
|
|
8126
8176
|
case "Box":
|
|
8127
8177
|
uiSchema.elements = [
|
|
8128
8178
|
getSelectField("iconName", "Icon Name"),
|
|
@@ -8799,11 +8849,13 @@ const sectionLabels = {
|
|
|
8799
8849
|
Timer: ["Core", "Events", "Style"],
|
|
8800
8850
|
Rank: ["Core", "Events", "Style"],
|
|
8801
8851
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8852
|
+
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8802
8853
|
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8803
8854
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8804
8855
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8805
8856
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8806
8857
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8858
|
+
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8807
8859
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8808
8860
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8809
8861
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11509,7 +11561,8 @@ var SelectInputField = {
|
|
|
11509
11561
|
label: "",
|
|
11510
11562
|
type: "text",
|
|
11511
11563
|
freeSole: false
|
|
11512
|
-
}
|
|
11564
|
+
},
|
|
11565
|
+
style: {}
|
|
11513
11566
|
}
|
|
11514
11567
|
};
|
|
11515
11568
|
const buildSelect = (config2, componentScope2) => {
|
|
@@ -11536,6 +11589,9 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11536
11589
|
if (config2.toolTipPosition) {
|
|
11537
11590
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11538
11591
|
}
|
|
11592
|
+
if (config2.style) {
|
|
11593
|
+
selectInputField.config.style = JSON.parse(config2.style);
|
|
11594
|
+
}
|
|
11539
11595
|
selectInputField.scope = componentScope2;
|
|
11540
11596
|
return selectInputField;
|
|
11541
11597
|
};
|
|
@@ -11708,7 +11764,8 @@ const Box = {
|
|
|
11708
11764
|
config: {
|
|
11709
11765
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11710
11766
|
main: {
|
|
11711
|
-
iconName: ""
|
|
11767
|
+
iconName: "",
|
|
11768
|
+
onClick: "onClick"
|
|
11712
11769
|
},
|
|
11713
11770
|
style: {}
|
|
11714
11771
|
}
|
|
@@ -12203,7 +12260,8 @@ var MultipleSelect = {
|
|
|
12203
12260
|
multiple: true,
|
|
12204
12261
|
variant: "outlined",
|
|
12205
12262
|
options: []
|
|
12206
|
-
}
|
|
12263
|
+
},
|
|
12264
|
+
style: {}
|
|
12207
12265
|
}
|
|
12208
12266
|
};
|
|
12209
12267
|
const buildMultiSelect = (config2, componentScope2) => {
|
|
@@ -12230,6 +12288,9 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12230
12288
|
if (config2.toolTipPosition) {
|
|
12231
12289
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12232
12290
|
}
|
|
12291
|
+
if (config2.style) {
|
|
12292
|
+
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12293
|
+
}
|
|
12233
12294
|
return multipleSelect;
|
|
12234
12295
|
};
|
|
12235
12296
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12973,6 +13034,78 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
12973
13034
|
}
|
|
12974
13035
|
return camera;
|
|
12975
13036
|
};
|
|
13037
|
+
var ButtonGroup = {
|
|
13038
|
+
type: "Control",
|
|
13039
|
+
scope: "#/properties/buttonGroup",
|
|
13040
|
+
options: {
|
|
13041
|
+
widget: "ButtonGroup"
|
|
13042
|
+
},
|
|
13043
|
+
config: {
|
|
13044
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
13045
|
+
main: {
|
|
13046
|
+
variant: "contained",
|
|
13047
|
+
styleDefault: false,
|
|
13048
|
+
size: "small"
|
|
13049
|
+
},
|
|
13050
|
+
style: {}
|
|
13051
|
+
}
|
|
13052
|
+
};
|
|
13053
|
+
const buildButtonGroup = (config2, componentScope2) => {
|
|
13054
|
+
const buttonGroup = _.cloneDeep(ButtonGroup);
|
|
13055
|
+
if (config2.layout) {
|
|
13056
|
+
buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13057
|
+
}
|
|
13058
|
+
buttonGroup.scope = componentScope2;
|
|
13059
|
+
if (config2.multiSelect) {
|
|
13060
|
+
buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
|
|
13061
|
+
}
|
|
13062
|
+
if (config2.style) {
|
|
13063
|
+
buttonGroup.config.style = JSON.parse(config2.style);
|
|
13064
|
+
}
|
|
13065
|
+
if (config2.size) {
|
|
13066
|
+
buttonGroup.config.main.size = config2.size;
|
|
13067
|
+
}
|
|
13068
|
+
if (config2.color) {
|
|
13069
|
+
buttonGroup.config.main.color = config2.color;
|
|
13070
|
+
}
|
|
13071
|
+
return buttonGroup;
|
|
13072
|
+
};
|
|
13073
|
+
const PopOver = {
|
|
13074
|
+
type: "Control",
|
|
13075
|
+
scope: "#/properties/text",
|
|
13076
|
+
options: {
|
|
13077
|
+
widget: "Popover"
|
|
13078
|
+
},
|
|
13079
|
+
config: {
|
|
13080
|
+
layout: {
|
|
13081
|
+
xs: 12,
|
|
13082
|
+
sm: 12,
|
|
13083
|
+
md: 12,
|
|
13084
|
+
lg: 12
|
|
13085
|
+
},
|
|
13086
|
+
main: {
|
|
13087
|
+
label: "PopOver"
|
|
13088
|
+
},
|
|
13089
|
+
style: {}
|
|
13090
|
+
}
|
|
13091
|
+
};
|
|
13092
|
+
const buildPopOver = (config2, componentScope2) => {
|
|
13093
|
+
const popOver = _.cloneDeep(PopOver);
|
|
13094
|
+
popOver.scope = componentScope2;
|
|
13095
|
+
popOver.config.main.positionVertical = config2.positionVertical;
|
|
13096
|
+
popOver.config.main.positionHorizontal = config2.positionHorizontal;
|
|
13097
|
+
popOver.config.main.contentVertical = config2.contentVertical;
|
|
13098
|
+
popOver.config.main.contentHorizontal = config2.contentHorizontal;
|
|
13099
|
+
popOver.config.main.width = config2.width;
|
|
13100
|
+
popOver.config.main.gap = config2.gap;
|
|
13101
|
+
if (config2.layout) {
|
|
13102
|
+
popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13103
|
+
}
|
|
13104
|
+
if (config2.style) {
|
|
13105
|
+
popOver.config.style = JSON.parse(config2.style);
|
|
13106
|
+
}
|
|
13107
|
+
return popOver;
|
|
13108
|
+
};
|
|
12976
13109
|
const OTPSchema = {
|
|
12977
13110
|
type: "Control",
|
|
12978
13111
|
scope: "#/properties/OTPInput",
|
|
@@ -13101,6 +13234,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13101
13234
|
case "PopUp":
|
|
13102
13235
|
elements = buildPopUp(config2, componentScope2);
|
|
13103
13236
|
break;
|
|
13237
|
+
case "PopOver":
|
|
13238
|
+
elements = buildPopOver(config2, componentScope2);
|
|
13239
|
+
break;
|
|
13104
13240
|
case "FileInput":
|
|
13105
13241
|
elements = buildFileInput(config2, componentScope2);
|
|
13106
13242
|
break;
|
|
@@ -13140,6 +13276,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13140
13276
|
case "Button":
|
|
13141
13277
|
elements = buildButton(config2, componentScope2);
|
|
13142
13278
|
break;
|
|
13279
|
+
case "ButtonGroup":
|
|
13280
|
+
elements = buildButtonGroup(config2, componentScope2);
|
|
13281
|
+
break;
|
|
13143
13282
|
case "Table":
|
|
13144
13283
|
elements = buildTable(config2, componentScope2);
|
|
13145
13284
|
break;
|