impaktapps-ui-builder 0.0.101-alpha.12 → 0.0.101-alpha.14

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.
@@ -6644,8 +6644,6 @@ const componentBasicUiSchema = (theme) => {
6644
6644
  layout: { xs: 12, sm: 6, md: 4, lg: 3 },
6645
6645
  main: {
6646
6646
  label: "Component ID",
6647
- options: [],
6648
- color: "secondary",
6649
6647
  required: true
6650
6648
  }
6651
6649
  }
@@ -7096,7 +7094,13 @@ const componentBasicUiSchema = (theme) => {
7096
7094
  return uiSchema;
7097
7095
  };
7098
7096
  const CoreSection = {
7099
- type: "HorizontalLayout",
7097
+ type: "WrapperLayout",
7098
+ config: {
7099
+ main: {
7100
+ label: " ",
7101
+ gap: "8px"
7102
+ }
7103
+ },
7100
7104
  elements: [
7101
7105
  {
7102
7106
  type: "Control",
@@ -7105,7 +7109,7 @@ const CoreSection = {
7105
7109
  widget: "SelectInputField"
7106
7110
  },
7107
7111
  config: {
7108
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7112
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7109
7113
  main: {
7110
7114
  label: "Type",
7111
7115
  type: "text"
@@ -7114,40 +7118,39 @@ const CoreSection = {
7114
7118
  },
7115
7119
  {
7116
7120
  type: "Control",
7117
- scope: "#/properties/name",
7118
- options: {
7119
- widget: "InputField"
7120
- },
7121
+ scope: "#/properties/proc",
7121
7122
  config: {
7122
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7123
- main: {
7124
- label: "Name"
7125
- }
7123
+ layout: { xs: 6, sm: 0, md: 0, lg: 0 }
7124
+ },
7125
+ options: {
7126
+ widget: "EmptyBox"
7126
7127
  }
7127
7128
  },
7128
7129
  {
7129
7130
  type: "Control",
7130
- scope: "#/properties/label",
7131
+ scope: "#/properties/name",
7131
7132
  options: {
7132
7133
  widget: "InputField"
7133
7134
  },
7134
7135
  config: {
7135
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7136
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
7136
7137
  main: {
7137
- label: "Label"
7138
+ label: "Component ID",
7139
+ required: true
7138
7140
  }
7139
7141
  }
7140
7142
  },
7141
7143
  {
7142
7144
  type: "Control",
7143
- scope: "#/properties/columnFormat",
7145
+ scope: "#/properties/label",
7144
7146
  options: {
7145
- widget: "SelectInputField"
7147
+ widget: "InputField"
7146
7148
  },
7147
7149
  config: {
7148
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7150
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
7149
7151
  main: {
7150
- label: "Column Format"
7152
+ label: "Label",
7153
+ required: true
7151
7154
  }
7152
7155
  }
7153
7156
  },
@@ -7155,17 +7158,7 @@ const CoreSection = {
7155
7158
  type: "Control",
7156
7159
  scope: "#/properties/proc",
7157
7160
  config: {
7158
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7159
- },
7160
- options: {
7161
- widget: "EmptyBox"
7162
- }
7163
- },
7164
- {
7165
- type: "Control",
7166
- scope: "#/properties/proc",
7167
- config: {
7168
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7161
+ layout: { xs: 6, sm: 6, md: 0, lg: 3 }
7169
7162
  },
7170
7163
  options: {
7171
7164
  widget: "EmptyBox"
@@ -7174,54 +7167,67 @@ const CoreSection = {
7174
7167
  {
7175
7168
  type: "Control",
7176
7169
  scope: "#/properties/layout",
7177
- layout: 12,
7178
7170
  options: {
7179
- "elementLabelProp": "key",
7180
- detail: {
7181
- type: "HorizontalLayout",
7182
- elements: [
7183
- {
7184
- type: "Control",
7185
- scope: "#/properties/key",
7186
- options: {
7187
- widget: "SelectInputField"
7188
- },
7189
- config: {
7190
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7191
- main: {
7192
- label: "Screen Size"
7193
- }
7194
- }
7195
- },
7196
- {
7197
- type: "Control",
7198
- scope: "#/properties/value",
7199
- options: {
7200
- widget: "InputField"
7201
- },
7202
- config: {
7203
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7204
- main: {
7205
- label: "Value",
7206
- type: "number",
7207
- helperText: "Number should be in range of 0 to 12",
7208
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7209
- }
7210
- }
7211
- },
7212
- {
7213
- type: "Control",
7214
- scope: "#/properties/proc",
7215
- config: {
7216
- layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7217
- },
7218
- options: {
7219
- widget: "EmptyBox"
7220
- }
7171
+ widget: "Array"
7172
+ },
7173
+ config: {
7174
+ layout: 12,
7175
+ main: {
7176
+ label: "Layout",
7177
+ childElementLabel: "Layout"
7178
+ },
7179
+ style: {
7180
+ marginLeft: "-24px",
7181
+ marginBottom: "24px !important",
7182
+ labelStyle: {
7183
+ marginLeft: "24px"
7184
+ },
7185
+ detailsStyle: {
7186
+ marginLeft: "24px"
7187
+ }
7188
+ }
7189
+ },
7190
+ elements: [
7191
+ {
7192
+ type: "Control",
7193
+ scope: "#/properties/key",
7194
+ options: {
7195
+ widget: "SelectInputField"
7196
+ },
7197
+ config: {
7198
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7199
+ main: {
7200
+ label: "Screen Size"
7221
7201
  }
7222
- ]
7202
+ }
7203
+ },
7204
+ {
7205
+ type: "Control",
7206
+ scope: "#/properties/value",
7207
+ options: {
7208
+ widget: "InputField"
7209
+ },
7210
+ config: {
7211
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7212
+ main: {
7213
+ label: "Value",
7214
+ type: "number",
7215
+ helperText: "Number should be in range of 0 to 12",
7216
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
7217
+ }
7218
+ }
7219
+ },
7220
+ {
7221
+ type: "Control",
7222
+ scope: "#/properties/proc",
7223
+ config: {
7224
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7225
+ },
7226
+ options: {
7227
+ widget: "EmptyBox"
7228
+ }
7223
7229
  }
7224
- }
7230
+ ]
7225
7231
  }
7226
7232
  ]
7227
7233
  };
@@ -7248,15 +7254,20 @@ const EventSection = (theme) => {
7248
7254
  },
7249
7255
  config: {
7250
7256
  main: {
7251
- color: "info",
7252
7257
  onClick: "eventAddHandler",
7253
7258
  size: "small",
7254
- icon: "AddIcon",
7255
- iconLabel: "Add New",
7259
+ icon: "TableAddIcon",
7260
+ iconLabel: "Add",
7256
7261
  styleDefault: true
7257
7262
  },
7258
7263
  style: {
7259
- mt: "6px"
7264
+ mt: "6px",
7265
+ color: "inherit",
7266
+ fill: "inherit",
7267
+ "&:hover": {
7268
+ color: "inherit",
7269
+ fill: "inherit"
7270
+ }
7260
7271
  }
7261
7272
  }
7262
7273
  }
@@ -7272,12 +7283,18 @@ const EventSection = (theme) => {
7272
7283
  main: {
7273
7284
  onClick: "copyPasteElement",
7274
7285
  size: "small",
7275
- icon: "PasteIcon",
7286
+ icon: "TablePaste",
7276
7287
  iconLabel: "Paste",
7277
7288
  styleDefault: true
7278
7289
  },
7279
7290
  style: {
7280
- mt: "6px"
7291
+ mt: "6px",
7292
+ color: "inherit",
7293
+ fill: "inherit",
7294
+ "&:hover": {
7295
+ color: "inherit",
7296
+ fill: "inherit"
7297
+ }
7281
7298
  }
7282
7299
  }
7283
7300
  }
@@ -7292,15 +7309,21 @@ const EventSection = (theme) => {
7292
7309
  elements: [
7293
7310
  {
7294
7311
  accessorKey: "eventType",
7295
- header: "Event Type"
7312
+ header: "Event Type",
7313
+ type: "string",
7314
+ size: 300
7296
7315
  },
7297
7316
  {
7298
7317
  accessorKey: "Handler",
7299
- header: "Handler"
7318
+ header: "Handler",
7319
+ type: "string",
7320
+ size: 200
7300
7321
  },
7301
7322
  {
7302
7323
  accessorKey: "Edit_Approve_Records",
7303
7324
  header: "Edit Widget",
7325
+ size: 150,
7326
+ type: "action",
7304
7327
  widget: {
7305
7328
  type: "Control",
7306
7329
  scope: "#/properties/Edit_Records",
@@ -7309,14 +7332,16 @@ const EventSection = (theme) => {
7309
7332
  },
7310
7333
  config: {
7311
7334
  main: {
7312
- color: "info",
7313
7335
  size: "small",
7314
- icon: "EditIcon",
7336
+ icon: "TableEditIcon",
7315
7337
  tooltipMessage: "Edit This Record",
7316
7338
  onClick: "eventEditHandler"
7317
7339
  },
7318
7340
  style: {
7319
- color: theme.palette.primary.main
7341
+ fill: theme.palette.primary.main,
7342
+ "& :hover": {
7343
+ fill: theme.palette.primary.dark
7344
+ }
7320
7345
  }
7321
7346
  }
7322
7347
  }
@@ -7324,6 +7349,8 @@ const EventSection = (theme) => {
7324
7349
  {
7325
7350
  accessorKey: "Reject_Records",
7326
7351
  header: "Delete",
7352
+ size: 150,
7353
+ type: "action",
7327
7354
  widget: {
7328
7355
  type: "Control",
7329
7356
  scope: "#/properties/RejectButton",
@@ -7333,10 +7360,15 @@ const EventSection = (theme) => {
7333
7360
  },
7334
7361
  config: {
7335
7362
  main: {
7336
- icon: "RejectIcon",
7337
- color: "error",
7363
+ icon: "Bin",
7338
7364
  tooltipMessage: "Reject This Record",
7339
7365
  onClick: "deletePopUpEvent"
7366
+ },
7367
+ style: {
7368
+ fill: theme.palette.primary.main,
7369
+ "& :hover": {
7370
+ fill: theme.palette.primary.dark
7371
+ }
7340
7372
  }
7341
7373
  }
7342
7374
  }
@@ -7344,7 +7376,8 @@ const EventSection = (theme) => {
7344
7376
  {
7345
7377
  header: "Copy",
7346
7378
  field: "Copy_Event",
7347
- flex: 1,
7379
+ size: 150,
7380
+ type: "action",
7348
7381
  widget: {
7349
7382
  type: "Control",
7350
7383
  scope: "#/properties/Copy_Event",
@@ -7822,7 +7855,13 @@ const buildPropertiesSection = function(type) {
7822
7855
  return uiSchema;
7823
7856
  };
7824
7857
  const StyleSection = {
7825
- type: "HorizontalLayout",
7858
+ type: "WrapperLayout",
7859
+ config: {
7860
+ main: {
7861
+ label: " ",
7862
+ gap: "8px"
7863
+ }
7864
+ },
7826
7865
  elements: [
7827
7866
  {
7828
7867
  type: "Control",
@@ -7838,14 +7877,7 @@ const StyleSection = {
7838
7877
  lg: 12
7839
7878
  },
7840
7879
  style: {
7841
- containerStyle: {
7842
- borderRadius: "20px"
7843
- },
7844
- headerContainerStyle: {},
7845
- textAreaStyle: {
7846
- borderRadius: "20px",
7847
- padding: "20px"
7848
- }
7880
+ "& .MuiFormLabel-root:not(.MuiInputLabel-shrink)": {}
7849
7881
  },
7850
7882
  main: {
7851
7883
  heading: "JSON Style",
@@ -8052,56 +8084,75 @@ const ValueTab = {
8052
8084
  ]
8053
8085
  };
8054
8086
  const ValidationSection = {
8055
- type: "HorizontalLayout",
8087
+ type: "WrapperLayout",
8088
+ config: {
8089
+ main: {
8090
+ label: " ",
8091
+ gap: "8px"
8092
+ }
8093
+ },
8056
8094
  elements: [
8057
8095
  {
8058
8096
  type: "Control",
8059
8097
  scope: "#/properties/validation",
8060
- layout: 11.5,
8061
8098
  options: {
8062
- "elementLabelProp": "validationType",
8063
- detail: {
8064
- type: "HorizontalLayout",
8065
- elements: [
8066
- {
8067
- type: "Control",
8068
- scope: "#/properties/validationType",
8069
- options: {
8070
- widget: "SelectInputField"
8071
- },
8072
- config: {
8073
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8074
- main: {
8075
- label: "Validation Type"
8076
- }
8077
- }
8078
- },
8079
- {
8080
- type: "Control",
8081
- scope: "#/properties/validationValue",
8082
- options: {
8083
- widget: "InputField"
8084
- },
8085
- config: {
8086
- layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8087
- main: {
8088
- label: "Validation Value"
8089
- }
8090
- }
8091
- },
8092
- {
8093
- type: "Control",
8094
- scope: "#/properties/emptyBox",
8095
- options: {
8096
- widget: "EmptyBox"
8097
- },
8098
- config: {
8099
- layout: { xs: 0, sm: 0, md: 4 }
8100
- }
8099
+ widget: "Array"
8100
+ },
8101
+ config: {
8102
+ layout: 12,
8103
+ main: {
8104
+ label: "Validation",
8105
+ childElementLabel: "Validation"
8106
+ },
8107
+ style: {
8108
+ marginLeft: "-24px",
8109
+ marginBottom: "24px !important",
8110
+ labelStyle: {
8111
+ marginLeft: "24px"
8112
+ },
8113
+ detailsStyle: {
8114
+ marginLeft: "24px"
8115
+ }
8116
+ }
8117
+ },
8118
+ elements: [
8119
+ {
8120
+ type: "Control",
8121
+ scope: "#/properties/validationType",
8122
+ options: {
8123
+ widget: "SelectInputField"
8124
+ },
8125
+ config: {
8126
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8127
+ main: {
8128
+ label: "Validation Type"
8101
8129
  }
8102
- ]
8130
+ }
8131
+ },
8132
+ {
8133
+ type: "Control",
8134
+ scope: "#/properties/validationValue",
8135
+ options: {
8136
+ widget: "InputField"
8137
+ },
8138
+ config: {
8139
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8140
+ main: {
8141
+ label: "Validation Value"
8142
+ }
8143
+ }
8144
+ },
8145
+ {
8146
+ type: "Control",
8147
+ scope: "#/properties/emptyBox",
8148
+ options: {
8149
+ widget: "EmptyBox"
8150
+ },
8151
+ config: {
8152
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8153
+ }
8103
8154
  }
8104
- }
8155
+ ]
8105
8156
  }
8106
8157
  ]
8107
8158
  };