impaktapps-ui-builder 1.0.223 → 1.0.224

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.
Files changed (21) hide show
  1. package/dist/impaktapps-ui-builder.es.js +140 -2
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +6 -6
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  12. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
  13. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
  15. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -0
  16. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +36 -0
  17. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  18. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  19. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  20. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -1
  21. 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
  };
@@ -12203,7 +12259,8 @@ var MultipleSelect = {
12203
12259
  multiple: true,
12204
12260
  variant: "outlined",
12205
12261
  options: []
12206
- }
12262
+ },
12263
+ style: {}
12207
12264
  }
12208
12265
  };
12209
12266
  const buildMultiSelect = (config2, componentScope2) => {
@@ -12230,6 +12287,9 @@ const buildMultiSelect = (config2, componentScope2) => {
12230
12287
  if (config2.toolTipPosition) {
12231
12288
  multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12232
12289
  }
12290
+ if (config2.style) {
12291
+ multipleSelect.config.style = JSON.parse(config2.style);
12292
+ }
12233
12293
  return multipleSelect;
12234
12294
  };
12235
12295
  const buildBasicUiSchema = (config2) => {
@@ -12973,6 +13033,78 @@ const buildCamera = (config2, componentScope2) => {
12973
13033
  }
12974
13034
  return camera;
12975
13035
  };
13036
+ var ButtonGroup = {
13037
+ type: "Control",
13038
+ scope: "#/properties/buttonGroup",
13039
+ options: {
13040
+ widget: "ButtonGroup"
13041
+ },
13042
+ config: {
13043
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13044
+ main: {
13045
+ variant: "contained",
13046
+ styleDefault: false,
13047
+ size: "small"
13048
+ },
13049
+ style: {}
13050
+ }
13051
+ };
13052
+ const buildButtonGroup = (config2, componentScope2) => {
13053
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13054
+ if (config2.layout) {
13055
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13056
+ }
13057
+ buttonGroup.scope = componentScope2;
13058
+ if (config2.multiSelect) {
13059
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13060
+ }
13061
+ if (config2.style) {
13062
+ buttonGroup.config.style = JSON.parse(config2.style);
13063
+ }
13064
+ if (config2.size) {
13065
+ buttonGroup.config.main.size = config2.size;
13066
+ }
13067
+ if (config2.color) {
13068
+ buttonGroup.config.main.color = config2.color;
13069
+ }
13070
+ return buttonGroup;
13071
+ };
13072
+ const PopOver = {
13073
+ type: "Control",
13074
+ scope: "#/properties/text",
13075
+ options: {
13076
+ widget: "Popover"
13077
+ },
13078
+ config: {
13079
+ layout: {
13080
+ xs: 12,
13081
+ sm: 12,
13082
+ md: 12,
13083
+ lg: 12
13084
+ },
13085
+ main: {
13086
+ label: "PopOver"
13087
+ },
13088
+ style: {}
13089
+ }
13090
+ };
13091
+ const buildPopOver = (config2, componentScope2) => {
13092
+ const popOver = _.cloneDeep(PopOver);
13093
+ popOver.scope = componentScope2;
13094
+ popOver.config.main.positionVertical = config2.positionVertical;
13095
+ popOver.config.main.positionHorizontal = config2.positionHorizontal;
13096
+ popOver.config.main.contentVertical = config2.contentVertical;
13097
+ popOver.config.main.contentHorizontal = config2.contentHorizontal;
13098
+ popOver.config.main.width = config2.width;
13099
+ popOver.config.main.gap = config2.gap;
13100
+ if (config2.layout) {
13101
+ popOver.config.layout = createLayoutFormat(config2.layout, config2.type);
13102
+ }
13103
+ if (config2.style) {
13104
+ popOver.config.style = JSON.parse(config2.style);
13105
+ }
13106
+ return popOver;
13107
+ };
12976
13108
  const OTPSchema = {
12977
13109
  type: "Control",
12978
13110
  scope: "#/properties/OTPInput",
@@ -13101,6 +13233,9 @@ const buildUiSchema = (config2, store2) => {
13101
13233
  case "PopUp":
13102
13234
  elements = buildPopUp(config2, componentScope2);
13103
13235
  break;
13236
+ case "PopOver":
13237
+ elements = buildPopOver(config2, componentScope2);
13238
+ break;
13104
13239
  case "FileInput":
13105
13240
  elements = buildFileInput(config2, componentScope2);
13106
13241
  break;
@@ -13140,6 +13275,9 @@ const buildUiSchema = (config2, store2) => {
13140
13275
  case "Button":
13141
13276
  elements = buildButton(config2, componentScope2);
13142
13277
  break;
13278
+ case "ButtonGroup":
13279
+ elements = buildButtonGroup(config2, componentScope2);
13280
+ break;
13143
13281
  case "Table":
13144
13282
  elements = buildTable(config2, componentScope2);
13145
13283
  break;