impaktapps-ui-builder 0.0.382-alpha.3 → 0.0.382-alpha.4

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.
@@ -6169,285 +6169,294 @@ const ComponentSchema = {
6169
6169
  },
6170
6170
  required: ["name"]
6171
6171
  };
6172
- const componentBasicUiSchema = {
6173
- type: "HorizontalLayout",
6174
- elements: [
6175
- {
6176
- type: "WrapperLayout",
6177
- config: {
6178
- main: {
6179
- rowSpacing: 1,
6180
- header: true
6181
- },
6182
- defaultStyle: true
6183
- },
6184
- elements: [
6185
- {
6186
- type: "Control",
6187
- scope: "#/properties/Component",
6188
- options: {
6189
- widget: "Box"
6190
- },
6191
- config: {
6192
- layout: { xs: 12, sm: 12, md: 2 },
6193
- main: {
6194
- heading: "Component"
6195
- },
6196
- style: {
6197
- "float": "left"
6198
- }
6199
- }
6200
- },
6201
- {
6202
- type: "Control",
6203
- scope: "#/properties/pageName",
6204
- options: {
6205
- widget: "Box"
6206
- },
6207
- config: {
6208
- layout: { xs: 7, sm: 7, md: 9 },
6209
- main: {
6210
- heading: " "
6211
- },
6212
- style: {
6213
- float: "right",
6214
- width: "auto",
6215
- fontSize: "12px",
6216
- color: "gray",
6217
- paddingTop: "10px"
6218
- }
6172
+ const componentBasicUiSchema = (theme) => {
6173
+ var _a;
6174
+ const uiSchema = {
6175
+ type: "HorizontalLayout",
6176
+ heading: "Component",
6177
+ elements: [
6178
+ {
6179
+ type: "TabLayout",
6180
+ config: {
6181
+ main: {
6182
+ tabLabels: ["Core"],
6183
+ defaultStyle: true,
6184
+ id: `component`
6219
6185
  }
6220
6186
  },
6221
- {
6222
- type: "Control",
6223
- scope: "#/properties/Back_Button",
6224
- options: {
6225
- widget: "IconButton"
6226
- },
6227
- config: {
6228
- layout: { xs: 2, sm: 2, md: 0.5 },
6229
- main: {
6230
- icon: "BackIcon",
6231
- styleDefault: true,
6232
- size: "small",
6233
- onClick: "backHandler",
6234
- tooltipMessage: "Back"
6235
- },
6236
- style: {
6237
- float: "right"
6238
- }
6239
- }
6240
- }
6241
- ]
6242
- },
6243
- {
6244
- type: "TabLayout",
6245
- config: {
6246
- main: {
6247
- tabLabels: ["Core"],
6248
- defaultStyle: true,
6249
- id: `component`
6250
- }
6251
- },
6252
- elements: [
6253
- {
6254
- type: "HorizontalLayout",
6255
- elements: [
6256
- {
6257
- type: "Control",
6258
- scope: "#/properties/type",
6259
- options: {
6260
- widget: "SelectInputField"
6261
- },
6262
- config: {
6263
- layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6264
- main: {
6265
- label: "Type"
6187
+ elements: [
6188
+ {
6189
+ type: "HorizontalLayout",
6190
+ elements: [
6191
+ {
6192
+ type: "Control",
6193
+ scope: "#/properties/type",
6194
+ options: {
6195
+ widget: "SelectInputField"
6196
+ },
6197
+ config: {
6198
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6199
+ main: {
6200
+ label: "Type"
6201
+ }
6266
6202
  }
6267
- }
6268
- },
6269
- {
6270
- type: "Control",
6271
- scope: "#/properties/name",
6272
- options: {
6273
- widget: "InputField"
6274
6203
  },
6275
- config: {
6276
- layout: {
6277
- xs: 12,
6278
- sm: 12,
6279
- md: 6,
6280
- lg: 6
6204
+ {
6205
+ type: "Control",
6206
+ scope: "#/properties/name",
6207
+ options: {
6208
+ widget: "InputField"
6281
6209
  },
6282
- main: {
6283
- label: "Name",
6284
- options: [],
6285
- color: "secondary",
6286
- required: true
6210
+ config: {
6211
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6212
+ main: {
6213
+ label: "Name",
6214
+ options: [],
6215
+ color: "secondary",
6216
+ required: true
6217
+ }
6287
6218
  }
6288
- }
6289
- },
6290
- {
6291
- type: "Control",
6292
- scope: "#/properties/label",
6293
- options: {
6294
- widget: "InputField"
6295
6219
  },
6296
- config: {
6297
- layout: {
6298
- xs: 12,
6299
- sm: 12,
6300
- md: 6,
6301
- lg: 6
6220
+ {
6221
+ type: "Control",
6222
+ scope: "#/properties/label",
6223
+ options: {
6224
+ widget: "InputField"
6302
6225
  },
6303
- main: {
6304
- label: "Label",
6305
- options: [],
6306
- color: "secondary",
6307
- required: true
6226
+ config: {
6227
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6228
+ main: {
6229
+ label: "Label",
6230
+ options: [],
6231
+ color: "secondary",
6232
+ required: true
6233
+ }
6308
6234
  }
6309
- }
6310
- },
6311
- {
6312
- type: "Control",
6313
- scope: "#/properties/proc",
6314
- config: {
6315
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6316
6235
  },
6317
- options: {
6318
- widget: "EmptyBox"
6319
- }
6320
- },
6321
- {
6322
- type: "Control",
6323
- scope: "#/properties/layout",
6324
- layout: 11.5,
6325
- options: {
6326
- detail: {
6327
- type: "HorizontalLayout",
6328
- elements: [
6329
- {
6330
- type: "Control",
6331
- scope: "#/properties/key",
6332
- options: {
6333
- widget: "SelectInputField"
6236
+ {
6237
+ type: "HorizontalLayout",
6238
+ scope: "#/properties/layout",
6239
+ layout: 12,
6240
+ options: {
6241
+ detail: {
6242
+ elements: [
6243
+ {
6244
+ type: "Control",
6245
+ scope: "#/properties/key",
6246
+ options: {
6247
+ widget: "SelectInputField"
6248
+ },
6249
+ config: {
6250
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6251
+ main: {
6252
+ label: "Screen Size"
6253
+ }
6254
+ }
6334
6255
  },
6335
- config: {
6336
- layout: {
6337
- xs: 11,
6338
- sm: 11,
6339
- md: 5.5,
6340
- lg: 5.5
6256
+ {
6257
+ type: "Control",
6258
+ scope: "#/properties/value",
6259
+ options: {
6260
+ widget: "InputField"
6341
6261
  },
6342
- main: {
6343
- label: "Screen Size"
6262
+ config: {
6263
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6264
+ main: {
6265
+ label: "Value",
6266
+ type: "number",
6267
+ helperText: "Number should be in range of 0 to 12",
6268
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6269
+ }
6344
6270
  }
6345
- }
6346
- },
6347
- {
6348
- type: "Control",
6349
- scope: "#/properties/value",
6350
- options: {
6351
- widget: "InputField"
6352
6271
  },
6353
- config: {
6354
- layout: {
6355
- xs: 11,
6356
- sm: 11,
6357
- md: 5.5,
6358
- lg: 5.5
6272
+ {
6273
+ type: "Control",
6274
+ scope: "#/properties/emptyBox",
6275
+ options: {
6276
+ widget: "EmptyBox"
6359
6277
  },
6360
- main: {
6361
- label: "Value",
6362
- type: "number",
6363
- helperText: "Number should be in range of 0 to 12",
6364
- errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6278
+ config: {
6279
+ layout: { xs: 0, sm: 4 }
6365
6280
  }
6366
6281
  }
6367
- }
6368
- ]
6282
+ ]
6283
+ }
6369
6284
  }
6370
6285
  }
6371
- }
6372
- ]
6373
- }
6374
- ]
6375
- },
6376
- {
6377
- type: "Control",
6378
- scope: "#/properties/proc",
6379
- config: {
6380
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6381
- },
6382
- options: {
6383
- widget: "EmptyBox"
6384
- }
6385
- },
6386
- {
6387
- type: "Control",
6388
- scope: "#/properties/btn",
6389
- options: {
6390
- widget: "Button"
6286
+ ]
6287
+ }
6288
+ ]
6391
6289
  },
6392
- config: {
6393
- layout: {
6394
- xs: 11,
6395
- sm: 11,
6396
- md: 2.5,
6397
- lg: 2.5
6290
+ {
6291
+ type: "Control",
6292
+ scope: "#/properties/btn",
6293
+ options: {
6294
+ widget: "Button"
6398
6295
  },
6399
- main: {
6400
- name: "Ok",
6401
- startIcon: "ApproveIcon",
6402
- variant: "contained",
6403
- color: "info",
6404
- type: "text",
6405
- onClick: "okHandler",
6406
- size: "small"
6296
+ config: {
6297
+ layout: {
6298
+ xs: 11,
6299
+ sm: 11,
6300
+ md: 2.5,
6301
+ lg: 2.5
6302
+ },
6303
+ main: {
6304
+ name: "Ok",
6305
+ startIcon: "ApproveIcon",
6306
+ variant: "contained",
6307
+ color: "info",
6308
+ type: "text",
6309
+ onClick: "okHandler",
6310
+ size: "small"
6311
+ },
6312
+ style: {
6313
+ marginBottom: "8px",
6314
+ float: "right"
6315
+ }
6316
+ }
6317
+ },
6318
+ {
6319
+ type: "Control",
6320
+ scope: "#/properties/btnSubmit",
6321
+ options: {
6322
+ widget: "Button"
6407
6323
  },
6408
- style: {
6409
- marginBottom: "8px",
6410
- float: "right"
6324
+ config: {
6325
+ layout: {
6326
+ xs: 11,
6327
+ sm: 11,
6328
+ md: 2.5,
6329
+ lg: 2.5
6330
+ },
6331
+ main: {
6332
+ name: "Save & Exit",
6333
+ startIcon: "ApproveIcon",
6334
+ variant: "contained",
6335
+ color: "info",
6336
+ type: "text",
6337
+ onClick: "saveHandler",
6338
+ size: "small"
6339
+ },
6340
+ style: {
6341
+ marginBottom: "8px",
6342
+ float: "right"
6343
+ }
6411
6344
  }
6412
- }
6413
- },
6414
- {
6415
- type: "Control",
6416
- scope: "#/properties/btnSubmit",
6417
- options: {
6418
- widget: "Button"
6419
6345
  },
6420
- config: {
6421
- layout: {
6422
- xs: 11,
6423
- sm: 11,
6424
- md: 2.5,
6425
- lg: 2.5
6346
+ {
6347
+ type: "Control",
6348
+ scope: "#/properties/notify",
6349
+ options: {
6350
+ widget: "Notify"
6426
6351
  },
6427
- main: {
6428
- name: "Save & Exit",
6429
- startIcon: "ApproveIcon",
6430
- variant: "contained",
6431
- color: "info",
6432
- type: "text",
6433
- onClick: "saveHandler",
6434
- size: "small"
6352
+ layout: 6
6353
+ },
6354
+ {
6355
+ type: "HorizontalLayout",
6356
+ config: {
6357
+ style: {
6358
+ position: "fixed",
6359
+ bottom: 5,
6360
+ overflow: "visible",
6361
+ margin: "0",
6362
+ width: "100vw"
6363
+ }
6435
6364
  },
6436
- style: {
6437
- marginBottom: "8px",
6438
- float: "right"
6439
- }
6365
+ elements: [
6366
+ {
6367
+ type: "Control",
6368
+ scope: "#/properties/EmptyBox",
6369
+ options: {
6370
+ widget: "EmptyBox"
6371
+ },
6372
+ config: {
6373
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6374
+ }
6375
+ },
6376
+ {
6377
+ type: "Control",
6378
+ scope: "#/properties/FooterText",
6379
+ options: {
6380
+ widget: "Box"
6381
+ },
6382
+ config: {
6383
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6384
+ main: {
6385
+ heading: "Copywriter@ACT21.IO"
6386
+ },
6387
+ style: {
6388
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6389
+ fontSize: "12px"
6390
+ }
6391
+ }
6392
+ },
6393
+ {
6394
+ type: "HorizontalLayout",
6395
+ config: {
6396
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
6397
+ },
6398
+ elements: [
6399
+ {
6400
+ type: "Control",
6401
+ scope: "#/properties/EmptyBox",
6402
+ options: {
6403
+ widget: "EmptyBox"
6404
+ },
6405
+ config: {
6406
+ layout: 2
6407
+ }
6408
+ },
6409
+ {
6410
+ type: "Control",
6411
+ scope: "#/properties/backIcon",
6412
+ options: {
6413
+ widget: "Box"
6414
+ },
6415
+ config: {
6416
+ layout: 1,
6417
+ main: {
6418
+ iconName: "PrevIcon",
6419
+ onClick: "backHandler"
6420
+ },
6421
+ style: {
6422
+ fill: theme.palette.primary.dark,
6423
+ width: 20,
6424
+ height: 20,
6425
+ display: "flex",
6426
+ alignItems: "center",
6427
+ justifyContent: "center",
6428
+ marginRight: "-8px",
6429
+ cursor: "pointer"
6430
+ }
6431
+ }
6432
+ },
6433
+ {
6434
+ type: "Control",
6435
+ scope: "#/properties/text",
6436
+ options: {
6437
+ widget: "Box"
6438
+ },
6439
+ config: {
6440
+ layout: 9,
6441
+ main: {
6442
+ heading: "Previous Page",
6443
+ onClick: "backHandler"
6444
+ },
6445
+ style: {
6446
+ color: theme.palette.primary.dark,
6447
+ fontSize: "12px",
6448
+ cursor: "pointer",
6449
+ marginLeft: "-6px"
6450
+ }
6451
+ }
6452
+ }
6453
+ ]
6454
+ }
6455
+ ]
6440
6456
  }
6441
- },
6442
- {
6443
- type: "Control",
6444
- scope: "#/properties/notify",
6445
- options: {
6446
- widget: "Notify"
6447
- },
6448
- layout: 6
6449
- }
6450
- ]
6457
+ ]
6458
+ };
6459
+ return uiSchema;
6451
6460
  };
6452
6461
  const CoreSection = {
6453
6462
  type: "HorizontalLayout",
@@ -7488,7 +7497,7 @@ const sectionLabels = {
7488
7497
  };
7489
7498
  const refreshPage = (type, store2) => {
7490
7499
  var _a;
7491
- const UiSchema = _.cloneDeep(componentBasicUiSchema);
7500
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
7492
7501
  if (type) {
7493
7502
  const sectionUiSchema = {
7494
7503
  Core: CoreSection,