impaktapps-ui-builder 1.0.222 → 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 (26) hide show
  1. package/dist/impaktapps-ui-builder.es.js +168 -8
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +8 -8
  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/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  11. package/package.json +1 -1
  12. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  13. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +3 -0
  14. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  15. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +3 -0
  16. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -0
  17. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +6 -3
  18. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +41 -2
  19. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  20. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  21. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  22. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  23. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +32 -1
  24. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
  25. package/src/impaktapps-ui-builder/builder/services/component.ts +2 -0
  26. package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
@@ -96,6 +96,22 @@ const PageMasterUiSchema = (theme) => {
96
96
  }
97
97
  }
98
98
  },
99
+ {
100
+ type: "Control",
101
+ scope: "#/properties/pageIconUrl",
102
+ options: {
103
+ widget: "InputField"
104
+ },
105
+ config: {
106
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
107
+ main: {
108
+ label: "Page Icon URL",
109
+ options: [],
110
+ color: "secondary",
111
+ required: true
112
+ }
113
+ }
114
+ },
99
115
  {
100
116
  type: "Control",
101
117
  scope: "#/properties/hasBackIcon",
@@ -6223,6 +6239,7 @@ const ComponentSchema = {
6223
6239
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6224
6240
  { title: "Array", const: "Array" },
6225
6241
  { title: "Button", const: "Button" },
6242
+ { title: "ButtonGroup", const: "ButtonGroup" },
6226
6243
  { title: "Data Card", const: "card" },
6227
6244
  { title: "Check Box", const: "CheckBox" },
6228
6245
  { title: "Camera", const: "Camera" },
@@ -6244,6 +6261,7 @@ const ComponentSchema = {
6244
6261
  { title: "OTP_Input", const: "OTP_Input" },
6245
6262
  { title: "Pan Card Masked", const: "PanCardText" },
6246
6263
  { title: "Pop Up", const: "PopUp" },
6264
+ { title: "Pop Over", const: "PopOver" },
6247
6265
  { title: "Progress Bar", const: "ProgressBar" },
6248
6266
  { title: "Progress Bar Card", const: "ProgressBarCard" },
6249
6267
  { title: "Dropdown", const: "Select" },
@@ -6316,6 +6334,34 @@ const ComponentSchema = {
6316
6334
  { title: "Standard", const: "standard" }
6317
6335
  ]
6318
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
+ },
6319
6365
  toolTipPosition: {
6320
6366
  oneOf: [
6321
6367
  { title: "Top", const: "top" },
@@ -6646,6 +6692,7 @@ const ComponentSchema = {
6646
6692
  { title: "Drafts Icon", const: "DraftsIcon" },
6647
6693
  { title: "Perm Phone Msg Icon", const: "PermPhoneMsgIcon" },
6648
6694
  { title: "Paste Icon", const: "PasteIcon" },
6695
+ { title: "Calendar", const: "Calendar" },
6649
6696
  { title: "Prev Icon", const: "PrevIcon" },
6650
6697
  { title: "Verified Icon", const: "VerifiedIcon" },
6651
6698
  { title: "Table Add Icon", const: "TableAddIcon" },
@@ -8010,6 +8057,17 @@ const buildPropertiesSection = function(type) {
8010
8057
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
8011
8058
  ];
8012
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;
8013
8071
  case "Text":
8014
8072
  uiSchema.elements = [
8015
8073
  getInputField("placeholder", "Placeholder"),
@@ -8107,6 +8165,14 @@ const buildPropertiesSection = function(type) {
8107
8165
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8108
8166
  ];
8109
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;
8110
8176
  case "Box":
8111
8177
  uiSchema.elements = [
8112
8178
  getSelectField("iconName", "Icon Name"),
@@ -8143,10 +8209,11 @@ const buildPropertiesSection = function(type) {
8143
8209
  getRadioInputField("divider", "Divider", ["YES", "No"]),
8144
8210
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
8145
8211
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
8146
- getInputField("rowSpacing", "Row Spacing"),
8147
8212
  getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
8148
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
8149
- emptyBox$1("WrapperSectionEmpty2")
8213
+ getInputField("rowSpacing", "Row Spacing"),
8214
+ getInputField("columnSpacing", "Column Spacing"),
8215
+ getInputField("spacing", "Spacing"),
8216
+ emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8150
8217
  ];
8151
8218
  break;
8152
8219
  case "TabSection":
@@ -8782,11 +8849,13 @@ const sectionLabels = {
8782
8849
  Timer: ["Core", "Events", "Style"],
8783
8850
  Rank: ["Core", "Events", "Style"],
8784
8851
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8852
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8785
8853
  Array: ["Core", "Components", "Properties", "Events", "Validation"],
8786
8854
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8787
8855
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8788
8856
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8789
8857
  PopUp: ["Core", "Components", "Properties", "Style"],
8858
+ PopOver: ["Core", "Components", "Properties", "Style"],
8790
8859
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8791
8860
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8792
8861
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -10713,7 +10782,7 @@ var service = (funcParams) => {
10713
10782
  const config2 = pageData == null ? void 0 : pageData.config;
10714
10783
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
10715
10784
  const event2 = new CustomEvent("pageNameChanged", {
10716
- detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10785
+ detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
10717
10786
  });
10718
10787
  window.dispatchEvent(event2);
10719
10788
  (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
@@ -11401,9 +11470,11 @@ var WrapperSection = {
11401
11470
  config: {
11402
11471
  layout: 12,
11403
11472
  main: {
11404
- rowSpacing: 3,
11405
11473
  divider: true,
11406
- label: "Default Label"
11474
+ label: "Default Label",
11475
+ rowSpacing: 2,
11476
+ columnSpacing: 2,
11477
+ spacing: 2
11407
11478
  },
11408
11479
  defaultStyle: true
11409
11480
  },
@@ -11416,6 +11487,9 @@ const buildWrapperSection = (config2, componentScope2) => {
11416
11487
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11417
11488
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11418
11489
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11490
+ wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11491
+ wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11492
+ wrapper.config.main.spacing = Number(config2.spacing);
11419
11493
  if (config2.defaultStyle) {
11420
11494
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11421
11495
  }
@@ -11487,7 +11561,8 @@ var SelectInputField = {
11487
11561
  label: "",
11488
11562
  type: "text",
11489
11563
  freeSole: false
11490
- }
11564
+ },
11565
+ style: {}
11491
11566
  }
11492
11567
  };
11493
11568
  const buildSelect = (config2, componentScope2) => {
@@ -11514,6 +11589,9 @@ const buildSelect = (config2, componentScope2) => {
11514
11589
  if (config2.toolTipPosition) {
11515
11590
  selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
11516
11591
  }
11592
+ if (config2.style) {
11593
+ selectInputField.config.style = JSON.parse(config2.style);
11594
+ }
11517
11595
  selectInputField.scope = componentScope2;
11518
11596
  return selectInputField;
11519
11597
  };
@@ -12181,7 +12259,8 @@ var MultipleSelect = {
12181
12259
  multiple: true,
12182
12260
  variant: "outlined",
12183
12261
  options: []
12184
- }
12262
+ },
12263
+ style: {}
12185
12264
  }
12186
12265
  };
12187
12266
  const buildMultiSelect = (config2, componentScope2) => {
@@ -12208,6 +12287,9 @@ const buildMultiSelect = (config2, componentScope2) => {
12208
12287
  if (config2.toolTipPosition) {
12209
12288
  multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
12210
12289
  }
12290
+ if (config2.style) {
12291
+ multipleSelect.config.style = JSON.parse(config2.style);
12292
+ }
12211
12293
  return multipleSelect;
12212
12294
  };
12213
12295
  const buildBasicUiSchema = (config2) => {
@@ -12951,6 +13033,78 @@ const buildCamera = (config2, componentScope2) => {
12951
13033
  }
12952
13034
  return camera;
12953
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
+ };
12954
13108
  const OTPSchema = {
12955
13109
  type: "Control",
12956
13110
  scope: "#/properties/OTPInput",
@@ -13079,6 +13233,9 @@ const buildUiSchema = (config2, store2) => {
13079
13233
  case "PopUp":
13080
13234
  elements = buildPopUp(config2, componentScope2);
13081
13235
  break;
13236
+ case "PopOver":
13237
+ elements = buildPopOver(config2, componentScope2);
13238
+ break;
13082
13239
  case "FileInput":
13083
13240
  elements = buildFileInput(config2, componentScope2);
13084
13241
  break;
@@ -13118,6 +13275,9 @@ const buildUiSchema = (config2, store2) => {
13118
13275
  case "Button":
13119
13276
  elements = buildButton(config2, componentScope2);
13120
13277
  break;
13278
+ case "ButtonGroup":
13279
+ elements = buildButtonGroup(config2, componentScope2);
13280
+ break;
13121
13281
  case "Table":
13122
13282
  elements = buildTable(config2, componentScope2);
13123
13283
  break;