impaktapps-ui-builder 1.0.250 → 1.0.253

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.
@@ -6223,6 +6223,7 @@ const ComponentSchema = {
6223
6223
  { title: "Masked Aadhar Card", const: "AadharcardText" },
6224
6224
  { title: "Array", const: "Array" },
6225
6225
  { title: "Button", const: "Button" },
6226
+ { title: "ButtonGroup", const: "ButtonGroup" },
6226
6227
  { title: "Data Card", const: "card" },
6227
6228
  { title: "Check Box", const: "CheckBox" },
6228
6229
  { title: "Camera", const: "Camera" },
@@ -6316,28 +6317,28 @@ const ComponentSchema = {
6316
6317
  { title: "Standard", const: "standard" }
6317
6318
  ]
6318
6319
  },
6319
- positionVertical: {
6320
+ anchorOriginVertical: {
6320
6321
  oneOf: [
6321
6322
  { title: "Top", const: "top" },
6322
6323
  { title: "Center", const: "center" },
6323
6324
  { title: "Bottom", const: "bottom" }
6324
6325
  ]
6325
6326
  },
6326
- positionHorizontal: {
6327
+ anchorOriginHorizontal: {
6327
6328
  oneOf: [
6328
6329
  { title: "Left", const: "left" },
6329
6330
  { title: "Center", const: "center" },
6330
6331
  { title: "Right", const: "right" }
6331
6332
  ]
6332
6333
  },
6333
- contentVertical: {
6334
+ transformOriginVertical: {
6334
6335
  oneOf: [
6335
6336
  { title: "Top", const: "top" },
6336
6337
  { title: "Center", const: "center" },
6337
6338
  { title: "Bottom", const: "bottom" }
6338
6339
  ]
6339
6340
  },
6340
- contentHorizontal: {
6341
+ transformOriginHorizontal: {
6341
6342
  oneOf: [
6342
6343
  { title: "Left", const: "left" },
6343
6344
  { title: "Center", const: "center" },
@@ -8033,10 +8034,10 @@ const buildPropertiesSection = function(type) {
8033
8034
  break;
8034
8035
  case "PopOver":
8035
8036
  uiSchema.elements = [
8036
- getSelectField("positionVertical", "Attach To (Vertical)"),
8037
- getSelectField("positionHorizontal", "Attach To (Horizontal)"),
8038
- getSelectField("contentVertical", "Popover Start (Vertical)"),
8039
- getSelectField("contentHorizontal", "Popover Start (Horizontal)"),
8037
+ getSelectField("anchorOriginVertical", "Attach To (Vertical)"),
8038
+ getSelectField("anchorOriginHorizontal", "Attach To (Horizontal)"),
8039
+ getSelectField("transformOriginVertical", "Popover Start (Vertical)"),
8040
+ getSelectField("transformOriginHorizontal", "Popover Start (Horizontal)"),
8040
8041
  getInputField("width", "Width"),
8041
8042
  getInputField("gap", "Gap"),
8042
8043
  emptyBox$1("PopUpEmpty", { xs: 6, sm: 0, md: 8, lg: 6 })
@@ -8139,6 +8140,15 @@ const buildPropertiesSection = function(type) {
8139
8140
  emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
8140
8141
  ];
8141
8142
  break;
8143
+ case "ButtonGroup":
8144
+ uiSchema.elements = [
8145
+ getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
8146
+ getRadioInputField("enableEvent", "Enable Event", ["YES", "No"]),
8147
+ getInputField("size", "Size"),
8148
+ getSelectField("color", "Color"),
8149
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 })
8150
+ ];
8151
+ break;
8142
8152
  case "Box":
8143
8153
  uiSchema.elements = [
8144
8154
  getSelectField("iconName", "Icon Name"),
@@ -8812,6 +8822,7 @@ const sectionLabels = {
8812
8822
  Timer: ["Core", "Events", "Style"],
8813
8823
  Rank: ["Core", "Events", "Style"],
8814
8824
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
8825
+ ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8815
8826
  Array: ["Core", "Components", "Properties", "Events", "Validation"],
8816
8827
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8817
8828
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -12993,6 +13004,45 @@ const buildCamera = (config2, componentScope2) => {
12993
13004
  }
12994
13005
  return camera;
12995
13006
  };
13007
+ var ButtonGroup = {
13008
+ type: "Control",
13009
+ scope: "#/properties/buttonGroup",
13010
+ options: {
13011
+ widget: "ButtonGroup"
13012
+ },
13013
+ config: {
13014
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 },
13015
+ main: {
13016
+ variant: "contained",
13017
+ styleDefault: false,
13018
+ size: "small"
13019
+ },
13020
+ style: {}
13021
+ }
13022
+ };
13023
+ const buildButtonGroup = (config2, componentScope2) => {
13024
+ const buttonGroup = _.cloneDeep(ButtonGroup);
13025
+ if (config2.layout) {
13026
+ buttonGroup.config.layout = createLayoutFormat(config2.layout, config2.type);
13027
+ }
13028
+ buttonGroup.scope = componentScope2;
13029
+ if (config2.multiSelect) {
13030
+ buttonGroup.config.main.multiSelect = config2.multiSelect === "YES" ? true : false;
13031
+ }
13032
+ if (config2.enableEvent) {
13033
+ buttonGroup.config.main.enableOnChange = config2.enableEvent === "YES" ? true : false;
13034
+ }
13035
+ if (config2.style) {
13036
+ buttonGroup.config.style = JSON.parse(config2.style);
13037
+ }
13038
+ if (config2.size) {
13039
+ buttonGroup.config.main.size = config2.size;
13040
+ }
13041
+ if (config2.color) {
13042
+ buttonGroup.config.main.color = config2.color;
13043
+ }
13044
+ return buttonGroup;
13045
+ };
12996
13046
  const PopOver = {
12997
13047
  type: "Control",
12998
13048
  scope: "#/properties/text",
@@ -13015,10 +13065,10 @@ const PopOver = {
13015
13065
  const buildPopOver = (config2, componentScope2) => {
13016
13066
  const popOver = _.cloneDeep(PopOver);
13017
13067
  popOver.scope = componentScope2;
13018
- popOver.config.main.positionVertical = config2.positionVertical;
13019
- popOver.config.main.positionHorizontal = config2.positionHorizontal;
13020
- popOver.config.main.contentVertical = config2.contentVertical;
13021
- popOver.config.main.contentHorizontal = config2.contentHorizontal;
13068
+ popOver.config.main.anchorOriginVertical = config2.anchorOriginVertical;
13069
+ popOver.config.main.anchorOriginHorizontal = config2.anchorOriginHorizontal;
13070
+ popOver.config.main.transformOriginVertical = config2.transformOriginVertical;
13071
+ popOver.config.main.transformOriginHorizontal = config2.transformOriginHorizontal;
13022
13072
  popOver.config.main.width = config2.width;
13023
13073
  popOver.config.main.gap = config2.gap;
13024
13074
  if (config2.layout) {
@@ -13159,6 +13209,9 @@ const buildUiSchema = (config2, store2) => {
13159
13209
  case "Button":
13160
13210
  elements = buildButton(config2, componentScope2);
13161
13211
  break;
13212
+ case "ButtonGroup":
13213
+ elements = buildButtonGroup(config2, componentScope2);
13214
+ break;
13162
13215
  case "Table":
13163
13216
  elements = buildTable(config2, componentScope2);
13164
13217
  break;