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

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,295 @@ 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
+ type: "HorizontalLayout",
6243
+ elements: [
6244
+ {
6245
+ type: "Control",
6246
+ scope: "#/properties/key",
6247
+ options: {
6248
+ widget: "SelectInputField"
6249
+ },
6250
+ config: {
6251
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6252
+ main: {
6253
+ label: "Screen Size"
6254
+ }
6255
+ }
6334
6256
  },
6335
- config: {
6336
- layout: {
6337
- xs: 11,
6338
- sm: 11,
6339
- md: 5.5,
6340
- lg: 5.5
6257
+ {
6258
+ type: "Control",
6259
+ scope: "#/properties/value",
6260
+ options: {
6261
+ widget: "InputField"
6341
6262
  },
6342
- main: {
6343
- label: "Screen Size"
6263
+ config: {
6264
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6265
+ main: {
6266
+ label: "Value",
6267
+ type: "number",
6268
+ helperText: "Number should be in range of 0 to 12",
6269
+ errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6270
+ }
6344
6271
  }
6345
- }
6346
- },
6347
- {
6348
- type: "Control",
6349
- scope: "#/properties/value",
6350
- options: {
6351
- widget: "InputField"
6352
6272
  },
6353
- config: {
6354
- layout: {
6355
- xs: 11,
6356
- sm: 11,
6357
- md: 5.5,
6358
- lg: 5.5
6273
+ {
6274
+ type: "Control",
6275
+ scope: "#/properties/emptyBox",
6276
+ options: {
6277
+ widget: "EmptyBox"
6359
6278
  },
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."
6279
+ config: {
6280
+ layout: { xs: 0, sm: 4 }
6365
6281
  }
6366
6282
  }
6367
- }
6368
- ]
6283
+ ]
6284
+ }
6369
6285
  }
6370
6286
  }
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"
6287
+ ]
6288
+ }
6289
+ ]
6391
6290
  },
6392
- config: {
6393
- layout: {
6394
- xs: 11,
6395
- sm: 11,
6396
- md: 2.5,
6397
- lg: 2.5
6291
+ {
6292
+ type: "Control",
6293
+ scope: "#/properties/btn",
6294
+ options: {
6295
+ widget: "Button"
6398
6296
  },
6399
- main: {
6400
- name: "Ok",
6401
- startIcon: "ApproveIcon",
6402
- variant: "contained",
6403
- color: "info",
6404
- type: "text",
6405
- onClick: "okHandler",
6406
- size: "small"
6297
+ config: {
6298
+ layout: {
6299
+ xs: 11,
6300
+ sm: 11,
6301
+ md: 2.5,
6302
+ lg: 2.5
6303
+ },
6304
+ main: {
6305
+ name: "Ok",
6306
+ startIcon: "ApproveIcon",
6307
+ variant: "contained",
6308
+ color: "info",
6309
+ type: "text",
6310
+ onClick: "okHandler",
6311
+ size: "small"
6312
+ },
6313
+ style: {
6314
+ marginBottom: "8px",
6315
+ float: "right"
6316
+ }
6317
+ }
6318
+ },
6319
+ {
6320
+ type: "Control",
6321
+ scope: "#/properties/btnSubmit",
6322
+ options: {
6323
+ widget: "Button"
6407
6324
  },
6408
- style: {
6409
- marginBottom: "8px",
6410
- float: "right"
6325
+ config: {
6326
+ layout: {
6327
+ xs: 11,
6328
+ sm: 11,
6329
+ md: 2.5,
6330
+ lg: 2.5
6331
+ },
6332
+ main: {
6333
+ name: "Save & Exit",
6334
+ startIcon: "ApproveIcon",
6335
+ variant: "contained",
6336
+ color: "info",
6337
+ type: "text",
6338
+ onClick: "saveHandler",
6339
+ size: "small"
6340
+ },
6341
+ style: {
6342
+ marginBottom: "8px",
6343
+ float: "right"
6344
+ }
6411
6345
  }
6412
- }
6413
- },
6414
- {
6415
- type: "Control",
6416
- scope: "#/properties/btnSubmit",
6417
- options: {
6418
- widget: "Button"
6419
6346
  },
6420
- config: {
6421
- layout: {
6422
- xs: 11,
6423
- sm: 11,
6424
- md: 2.5,
6425
- lg: 2.5
6347
+ {
6348
+ type: "Control",
6349
+ scope: "#/properties/notify",
6350
+ options: {
6351
+ widget: "Notify"
6426
6352
  },
6427
- main: {
6428
- name: "Save & Exit",
6429
- startIcon: "ApproveIcon",
6430
- variant: "contained",
6431
- color: "info",
6432
- type: "text",
6433
- onClick: "saveHandler",
6434
- size: "small"
6353
+ layout: 6
6354
+ },
6355
+ {
6356
+ type: "HorizontalLayout",
6357
+ config: {
6358
+ style: {
6359
+ position: "fixed",
6360
+ bottom: 5,
6361
+ overflow: "visible",
6362
+ margin: "0",
6363
+ width: "100vw"
6364
+ }
6435
6365
  },
6436
- style: {
6437
- marginBottom: "8px",
6438
- float: "right"
6439
- }
6366
+ elements: [
6367
+ {
6368
+ type: "Control",
6369
+ scope: "#/properties/EmptyBox",
6370
+ options: {
6371
+ widget: "EmptyBox"
6372
+ },
6373
+ config: {
6374
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6375
+ }
6376
+ },
6377
+ {
6378
+ type: "Control",
6379
+ scope: "#/properties/FooterText",
6380
+ options: {
6381
+ widget: "Box"
6382
+ },
6383
+ config: {
6384
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6385
+ main: {
6386
+ heading: "Copywriter@ACT21.IO"
6387
+ },
6388
+ style: {
6389
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
6390
+ fontSize: "12px"
6391
+ }
6392
+ }
6393
+ },
6394
+ {
6395
+ type: "HorizontalLayout",
6396
+ config: {
6397
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
6398
+ },
6399
+ elements: [
6400
+ {
6401
+ type: "Control",
6402
+ scope: "#/properties/EmptyBox",
6403
+ options: {
6404
+ widget: "EmptyBox"
6405
+ },
6406
+ config: {
6407
+ layout: 2
6408
+ }
6409
+ },
6410
+ {
6411
+ type: "Control",
6412
+ scope: "#/properties/backIcon",
6413
+ options: {
6414
+ widget: "Box"
6415
+ },
6416
+ config: {
6417
+ layout: 1,
6418
+ main: {
6419
+ iconName: "PrevIcon",
6420
+ onClick: "backHandler"
6421
+ },
6422
+ style: {
6423
+ fill: theme.palette.primary.dark,
6424
+ width: 20,
6425
+ height: 20,
6426
+ display: "flex",
6427
+ alignItems: "center",
6428
+ justifyContent: "center",
6429
+ marginRight: "-8px",
6430
+ cursor: "pointer"
6431
+ }
6432
+ }
6433
+ },
6434
+ {
6435
+ type: "Control",
6436
+ scope: "#/properties/text",
6437
+ options: {
6438
+ widget: "Box"
6439
+ },
6440
+ config: {
6441
+ layout: 9,
6442
+ main: {
6443
+ heading: "Previous Page",
6444
+ onClick: "backHandler"
6445
+ },
6446
+ style: {
6447
+ color: theme.palette.primary.dark,
6448
+ fontSize: "12px",
6449
+ cursor: "pointer",
6450
+ marginLeft: "-6px"
6451
+ }
6452
+ }
6453
+ }
6454
+ ]
6455
+ }
6456
+ ]
6440
6457
  }
6441
- },
6442
- {
6443
- type: "Control",
6444
- scope: "#/properties/notify",
6445
- options: {
6446
- widget: "Notify"
6447
- },
6448
- layout: 6
6449
- }
6450
- ]
6458
+ ]
6459
+ };
6460
+ return uiSchema;
6451
6461
  };
6452
6462
  const CoreSection = {
6453
6463
  type: "HorizontalLayout",
@@ -7488,7 +7498,7 @@ const sectionLabels = {
7488
7498
  };
7489
7499
  const refreshPage = (type, store2) => {
7490
7500
  var _a;
7491
- const UiSchema = _.cloneDeep(componentBasicUiSchema);
7501
+ const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
7492
7502
  if (type) {
7493
7503
  const sectionUiSchema = {
7494
7504
  Core: CoreSection,