impaktapps-ui-builder 0.0.591 → 0.0.592-alpha.10

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 (47) hide show
  1. package/dist/impaktapps-ui-builder.es.js +384 -300
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +2 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +104 -83
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
  11. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  12. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
  15. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
  17. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -1
  18. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  20. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
  21. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
  22. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -7
  23. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
  24. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +65 -47
  25. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +132 -90
  26. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
  27. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
  28. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
  29. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
  30. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
  31. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  32. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
  33. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
  34. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  35. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
  36. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +15 -31
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +18 -11
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +7 -16
  41. package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
  42. package/src/impaktapps-ui-builder/builder/services/event.ts +33 -7
  43. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
  44. package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
  45. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  46. package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
  47. package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -5
@@ -66,7 +66,7 @@ const PageMasterUiSchema = (theme) => {
66
66
  widget: "InputField"
67
67
  },
68
68
  config: {
69
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
69
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
70
70
  main: {
71
71
  label: "Name",
72
72
  options: [],
@@ -84,7 +84,7 @@ const PageMasterUiSchema = (theme) => {
84
84
  widget: "SelectInputField"
85
85
  },
86
86
  config: {
87
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
87
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
88
88
  main: {
89
89
  label: "Template",
90
90
  options: [
@@ -104,7 +104,7 @@ const PageMasterUiSchema = (theme) => {
104
104
  widget: "InputField"
105
105
  },
106
106
  config: {
107
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
107
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
108
108
  main: {
109
109
  label: "Label",
110
110
  options: [],
@@ -112,6 +112,16 @@ const PageMasterUiSchema = (theme) => {
112
112
  required: true
113
113
  }
114
114
  }
115
+ },
116
+ {
117
+ type: "Control",
118
+ scope: "#/properties/EmptyBox",
119
+ config: {
120
+ layout: { xs: 6, sm: 6, md: 0, lg: 0 }
121
+ },
122
+ options: {
123
+ widget: "EmptyBox"
124
+ }
115
125
  }
116
126
  ]
117
127
  },
@@ -317,7 +327,7 @@ const PageMasterUiSchema = (theme) => {
317
327
  widget: "EmptyBox"
318
328
  },
319
329
  config: {
320
- layout: { xs: 0, sm: 8, md: 8, lg: 8 }
330
+ layout: { xs: 8, sm: 10 }
321
331
  }
322
332
  },
323
333
  {
@@ -327,7 +337,7 @@ const PageMasterUiSchema = (theme) => {
327
337
  widget: "Button"
328
338
  },
329
339
  config: {
330
- layout: 11.9,
340
+ layout: { xs: 4, sm: 2 },
331
341
  main: {
332
342
  name: "Save",
333
343
  startIcon: "ApproveIcon",
@@ -335,10 +345,6 @@ const PageMasterUiSchema = (theme) => {
335
345
  type: "text",
336
346
  onClick: "saveHandler",
337
347
  size: "medium"
338
- },
339
- style: {
340
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
341
- float: "right"
342
348
  }
343
349
  }
344
350
  },
@@ -592,7 +598,7 @@ const PageMasterUiSchema = (theme) => {
592
598
  height: 0,
593
599
  margin: 0,
594
600
  top: 0,
595
- right: "82px",
601
+ right: { xs: "12px", sm: "84px" },
596
602
  position: "absolute",
597
603
  fontSize: "12px",
598
604
  cursor: "pointer",
@@ -614,6 +620,7 @@ const PageMasterUiSchema = (theme) => {
614
620
  onClick: "backHandler"
615
621
  },
616
622
  style: {
623
+ display: { xs: "none", sm: "flex" },
617
624
  textAlign: "left",
618
625
  lineHeight: 1,
619
626
  height: 0,
@@ -6339,7 +6346,8 @@ const ComponentSchema = {
6339
6346
  { title: "Stack Bar Graph", const: "StackBarGraph" },
6340
6347
  { title: "Line Graph", const: "LineGraph" },
6341
6348
  { title: "Pie Graph", const: "PieGraph" },
6342
- { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" }
6349
+ { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
6350
+ { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
6343
6351
  ]
6344
6352
  },
6345
6353
  iconName: {
@@ -6426,7 +6434,7 @@ const componentBasicUiSchema = (theme) => {
6426
6434
  widget: "SelectInputField"
6427
6435
  },
6428
6436
  config: {
6429
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6437
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6430
6438
  main: {
6431
6439
  label: "Type"
6432
6440
  }
@@ -6439,7 +6447,7 @@ const componentBasicUiSchema = (theme) => {
6439
6447
  widget: "InputField"
6440
6448
  },
6441
6449
  config: {
6442
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6450
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6443
6451
  main: {
6444
6452
  label: "Name",
6445
6453
  options: [],
@@ -6455,7 +6463,7 @@ const componentBasicUiSchema = (theme) => {
6455
6463
  widget: "InputField"
6456
6464
  },
6457
6465
  config: {
6458
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6466
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6459
6467
  main: {
6460
6468
  label: "Label",
6461
6469
  options: [],
@@ -6471,7 +6479,7 @@ const componentBasicUiSchema = (theme) => {
6471
6479
  widget: "SelectInputField"
6472
6480
  },
6473
6481
  config: {
6474
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6482
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6475
6483
  main: {
6476
6484
  label: "Column Format"
6477
6485
  }
@@ -6481,7 +6489,7 @@ const componentBasicUiSchema = (theme) => {
6481
6489
  type: "Control",
6482
6490
  scope: "#/properties/proc",
6483
6491
  config: {
6484
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6492
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6485
6493
  },
6486
6494
  options: {
6487
6495
  widget: "EmptyBox"
@@ -6491,7 +6499,7 @@ const componentBasicUiSchema = (theme) => {
6491
6499
  type: "Control",
6492
6500
  scope: "#/properties/proc",
6493
6501
  config: {
6494
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6502
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6495
6503
  },
6496
6504
  options: {
6497
6505
  widget: "EmptyBox"
@@ -6512,7 +6520,7 @@ const componentBasicUiSchema = (theme) => {
6512
6520
  widget: "SelectInputField"
6513
6521
  },
6514
6522
  config: {
6515
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6523
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6516
6524
  main: {
6517
6525
  label: "Screen Size"
6518
6526
  }
@@ -6525,7 +6533,7 @@ const componentBasicUiSchema = (theme) => {
6525
6533
  widget: "InputField"
6526
6534
  },
6527
6535
  config: {
6528
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6536
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6529
6537
  main: {
6530
6538
  label: "Value",
6531
6539
  type: "number",
@@ -6538,7 +6546,7 @@ const componentBasicUiSchema = (theme) => {
6538
6546
  type: "Control",
6539
6547
  scope: "#/properties/proc",
6540
6548
  config: {
6541
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6549
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6542
6550
  },
6543
6551
  options: {
6544
6552
  widget: "EmptyBox"
@@ -6741,17 +6749,7 @@ const componentBasicUiSchema = (theme) => {
6741
6749
  widget: "EmptyBox"
6742
6750
  },
6743
6751
  config: {
6744
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6745
- }
6746
- },
6747
- {
6748
- type: "Control",
6749
- scope: "#/properties/EmptyBox",
6750
- options: {
6751
- widget: "EmptyBox"
6752
- },
6753
- config: {
6754
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6752
+ layout: { xs: 4, sm: 8 }
6755
6753
  }
6756
6754
  },
6757
6755
  {
@@ -6761,7 +6759,7 @@ const componentBasicUiSchema = (theme) => {
6761
6759
  widget: "Button"
6762
6760
  },
6763
6761
  config: {
6764
- layout: 1.8,
6762
+ layout: { xs: 4, sm: 2 },
6765
6763
  main: {
6766
6764
  name: "Ok",
6767
6765
  startIcon: "ApproveIcon",
@@ -6769,9 +6767,6 @@ const componentBasicUiSchema = (theme) => {
6769
6767
  type: "text",
6770
6768
  onClick: "okHandler",
6771
6769
  size: "medium"
6772
- },
6773
- style: {
6774
- float: "right"
6775
6770
  }
6776
6771
  }
6777
6772
  },
@@ -6782,7 +6777,7 @@ const componentBasicUiSchema = (theme) => {
6782
6777
  widget: "Button"
6783
6778
  },
6784
6779
  config: {
6785
- layout: 1.8,
6780
+ layout: { xs: 4, sm: 2 },
6786
6781
  main: {
6787
6782
  name: "Save & Exit",
6788
6783
  startIcon: "ApproveIcon",
@@ -6790,9 +6785,6 @@ const componentBasicUiSchema = (theme) => {
6790
6785
  type: "text",
6791
6786
  onClick: "saveHandler",
6792
6787
  size: "medium"
6793
- },
6794
- style: {
6795
- float: "right"
6796
6788
  }
6797
6789
  }
6798
6790
  },
@@ -6864,7 +6856,7 @@ const componentBasicUiSchema = (theme) => {
6864
6856
  height: 0,
6865
6857
  margin: 0,
6866
6858
  top: 0,
6867
- right: "90px",
6859
+ right: { xs: "12px", sm: "84px" },
6868
6860
  position: "absolute",
6869
6861
  fontSize: "12px",
6870
6862
  cursor: "pointer",
@@ -6886,6 +6878,7 @@ const componentBasicUiSchema = (theme) => {
6886
6878
  onClick: "backHandler"
6887
6879
  },
6888
6880
  style: {
6881
+ display: { xs: "none", sm: "flex" },
6889
6882
  textAlign: "left",
6890
6883
  lineHeight: 1,
6891
6884
  height: 0,
@@ -6896,7 +6889,7 @@ const componentBasicUiSchema = (theme) => {
6896
6889
  marginLeft: "2px",
6897
6890
  marginRight: 0,
6898
6891
  top: 3,
6899
- right: "20px",
6892
+ right: "12px",
6900
6893
  position: "absolute",
6901
6894
  ":hover": {
6902
6895
  color: theme.palette.primary.dark
@@ -6920,7 +6913,7 @@ const CoreSection = {
6920
6913
  widget: "SelectInputField"
6921
6914
  },
6922
6915
  config: {
6923
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6916
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6924
6917
  main: {
6925
6918
  label: "Type",
6926
6919
  type: "text"
@@ -6934,7 +6927,7 @@ const CoreSection = {
6934
6927
  widget: "InputField"
6935
6928
  },
6936
6929
  config: {
6937
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6930
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6938
6931
  main: {
6939
6932
  label: "Name"
6940
6933
  }
@@ -6947,7 +6940,7 @@ const CoreSection = {
6947
6940
  widget: "InputField"
6948
6941
  },
6949
6942
  config: {
6950
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6943
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6951
6944
  main: {
6952
6945
  label: "Label"
6953
6946
  }
@@ -6960,7 +6953,7 @@ const CoreSection = {
6960
6953
  widget: "SelectInputField"
6961
6954
  },
6962
6955
  config: {
6963
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6956
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
6964
6957
  main: {
6965
6958
  label: "Column Format"
6966
6959
  }
@@ -6970,7 +6963,7 @@ const CoreSection = {
6970
6963
  type: "Control",
6971
6964
  scope: "#/properties/proc",
6972
6965
  config: {
6973
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6966
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6974
6967
  },
6975
6968
  options: {
6976
6969
  widget: "EmptyBox"
@@ -6980,7 +6973,7 @@ const CoreSection = {
6980
6973
  type: "Control",
6981
6974
  scope: "#/properties/proc",
6982
6975
  config: {
6983
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6976
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
6984
6977
  },
6985
6978
  options: {
6986
6979
  widget: "EmptyBox"
@@ -7002,7 +6995,7 @@ const CoreSection = {
7002
6995
  widget: "SelectInputField"
7003
6996
  },
7004
6997
  config: {
7005
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6998
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7006
6999
  main: {
7007
7000
  label: "Screen Size"
7008
7001
  }
@@ -7015,7 +7008,7 @@ const CoreSection = {
7015
7008
  widget: "InputField"
7016
7009
  },
7017
7010
  config: {
7018
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7011
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7019
7012
  main: {
7020
7013
  label: "Value",
7021
7014
  type: "number",
@@ -7028,7 +7021,7 @@ const CoreSection = {
7028
7021
  type: "Control",
7029
7022
  scope: "#/properties/proc",
7030
7023
  config: {
7031
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7024
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7032
7025
  },
7033
7026
  options: {
7034
7027
  widget: "EmptyBox"
@@ -7141,17 +7134,29 @@ const EventSection = (theme) => {
7141
7134
  };
7142
7135
  return uiSchema;
7143
7136
  };
7144
- var emptyBox = {
7145
- type: "Control",
7146
- scope: "#/properties/emptyBox",
7147
- options: {
7148
- widget: "EmptyBox"
7149
- },
7150
- config: {
7151
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
7152
- main: {},
7153
- style: {}
7137
+ const emptyBox$1 = (scope, layout) => {
7138
+ if (layout !== void 0) {
7139
+ return {
7140
+ type: "Control",
7141
+ scope: `#/properties/${scope}`,
7142
+ options: {
7143
+ widget: "EmptyBox"
7144
+ },
7145
+ config: {
7146
+ layout
7147
+ }
7148
+ };
7154
7149
  }
7150
+ return {
7151
+ type: "Control",
7152
+ scope: "#/properties/empty",
7153
+ options: {
7154
+ widget: "EmptyBox"
7155
+ },
7156
+ config: {
7157
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7158
+ }
7159
+ };
7155
7160
  };
7156
7161
  const cardLayout = {
7157
7162
  type: "Control",
@@ -7168,7 +7173,7 @@ const cardLayout = {
7168
7173
  widget: "SelectInputField"
7169
7174
  },
7170
7175
  config: {
7171
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7176
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7172
7177
  main: {
7173
7178
  label: "Screen Size"
7174
7179
  }
@@ -7181,7 +7186,7 @@ const cardLayout = {
7181
7186
  widget: "InputField"
7182
7187
  },
7183
7188
  config: {
7184
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7189
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7185
7190
  main: {
7186
7191
  label: "Value",
7187
7192
  type: "number",
@@ -7190,7 +7195,7 @@ const cardLayout = {
7190
7195
  }
7191
7196
  }
7192
7197
  },
7193
- emptyBox
7198
+ emptyBox$1("cardEmpty")
7194
7199
  ]
7195
7200
  }
7196
7201
  }
@@ -7212,14 +7217,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7212
7217
  widget: "InputField"
7213
7218
  },
7214
7219
  config: {
7215
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7220
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7216
7221
  main: {
7217
7222
  label: childLabel || "Labels for Tab"
7218
7223
  }
7219
7224
  }
7220
7225
  },
7221
- emptyBox,
7222
- emptyBox
7226
+ emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7227
+ emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7223
7228
  ]
7224
7229
  }
7225
7230
  }
@@ -7233,13 +7238,13 @@ sizeHolder.options.detail.elements[1] = {
7233
7238
  widget: "InputField"
7234
7239
  },
7235
7240
  config: {
7236
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7241
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7237
7242
  main: {
7238
7243
  label: "Size"
7239
7244
  }
7240
7245
  }
7241
7246
  };
7242
- sizeHolder.options.detail.elements[2] = emptyBox;
7247
+ sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
7243
7248
  const getInputField = (scope, label) => {
7244
7249
  return {
7245
7250
  type: "Control",
@@ -7248,7 +7253,7 @@ const getInputField = (scope, label) => {
7248
7253
  widget: "InputField"
7249
7254
  },
7250
7255
  config: {
7251
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7256
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7252
7257
  main: {
7253
7258
  label
7254
7259
  }
@@ -7263,7 +7268,7 @@ const getRadioInputField = (scope, label, options) => {
7263
7268
  widget: "RadioInputField"
7264
7269
  },
7265
7270
  config: {
7266
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7271
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
7267
7272
  main: {
7268
7273
  label,
7269
7274
  options
@@ -7281,7 +7286,9 @@ const buildWrapper = (label, elements) => {
7281
7286
  },
7282
7287
  wrapperStyle: {
7283
7288
  marginTop: "-6px",
7284
- marginBottom: "-8px"
7289
+ marginBottom: "-8px",
7290
+ marginLeft: "-34px",
7291
+ width: "108%"
7285
7292
  },
7286
7293
  componentsBoxStyle: {
7287
7294
  marginLeft: "24px"
@@ -7326,7 +7333,7 @@ const getSelectField = (scope, label, options) => {
7326
7333
  widget: "SelectInputField"
7327
7334
  },
7328
7335
  config: {
7329
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7336
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7330
7337
  main: {
7331
7338
  label,
7332
7339
  type: "text"
@@ -7335,7 +7342,7 @@ const getSelectField = (scope, label, options) => {
7335
7342
  };
7336
7343
  };
7337
7344
  const GraphSection = {
7338
- type: "HorizontalLayout",
7345
+ type: "WrapperLayout",
7339
7346
  elements: []
7340
7347
  };
7341
7348
  const buildPropertiesSection = function(type) {
@@ -7348,7 +7355,7 @@ const buildPropertiesSection = function(type) {
7348
7355
  getInputField("graphHeight", "Graph Height"),
7349
7356
  getInputField("graphWidth", "Graph Width"),
7350
7357
  getInputField("graphZoomHeight", "Zoom Height"),
7351
- emptyBox
7358
+ emptyBox$1("TreeEmpty", { xs: 6, sm: 6, md: 4, lg: 4 })
7352
7359
  ];
7353
7360
  break;
7354
7361
  case "InputSlider":
@@ -7356,9 +7363,9 @@ const buildPropertiesSection = function(type) {
7356
7363
  getInputField("max", "Max Limit"),
7357
7364
  getInputField("step", "Step"),
7358
7365
  getInputField("min", "Min Limit"),
7366
+ emptyBox$1("InputSliderEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7359
7367
  getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
7360
- emptyBox,
7361
- emptyBox
7368
+ emptyBox$1("InputSliderEmpty2", { xs: 0, sm: 0, md: 8, lg: 8 })
7362
7369
  ];
7363
7370
  break;
7364
7371
  case "DataGrid":
@@ -7367,8 +7374,8 @@ const buildPropertiesSection = function(type) {
7367
7374
  getInputField("elevation", "Card Elevation"),
7368
7375
  getInputField("height", "Grid height"),
7369
7376
  getInputField("justifyContent", "justifyContent"),
7370
- emptyBox,
7371
- emptyBox,
7377
+ emptyBox$1("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7378
+ emptyBox$1("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7372
7379
  cardLayout
7373
7380
  ];
7374
7381
  break;
@@ -7379,7 +7386,7 @@ const buildPropertiesSection = function(type) {
7379
7386
  getInputField("resetText", "Reset Text"),
7380
7387
  getInputField("completeText", "Complete Text"),
7381
7388
  getSelectField("orientation", "Orientation Type"),
7382
- emptyBox,
7389
+ emptyBox$1("Stepper", { xs: 6, sm: 6, md: 4, lg: 4 }),
7383
7390
  getArrayControl("sectionLabels", "label")
7384
7391
  ];
7385
7392
  break;
@@ -7387,22 +7394,23 @@ const buildPropertiesSection = function(type) {
7387
7394
  uiSchema.elements = [
7388
7395
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
7389
7396
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
7390
- getInputField("maxWidth", "Max. Width")
7397
+ getInputField("maxWidth", "Max. Width"),
7398
+ emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7391
7399
  ];
7392
7400
  break;
7393
7401
  case "Text":
7394
7402
  uiSchema.elements = [
7395
7403
  getInputField("placeholder", "Placeholder"),
7396
- emptyBox,
7397
- emptyBox,
7404
+ emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7405
+ emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
7398
7406
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
7399
7407
  ];
7400
7408
  break;
7401
7409
  case "TextArea":
7402
7410
  uiSchema.elements = [
7403
7411
  getInputField("placeholder", "Placeholder"),
7404
- emptyBox,
7405
- emptyBox
7412
+ emptyBox$1("TextAreaEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
7413
+ emptyBox$1("TextAreaEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
7406
7414
  ];
7407
7415
  break;
7408
7416
  case "SpeedoMeter":
@@ -7412,7 +7420,7 @@ const buildPropertiesSection = function(type) {
7412
7420
  getInputField("heading", "Container Heading"),
7413
7421
  getInputField("speedoCaption", "Speedometer Caption"),
7414
7422
  getInputField("width", "Speedometer Width"),
7415
- emptyBox
7423
+ emptyBox$1("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7416
7424
  ];
7417
7425
  break;
7418
7426
  case "RankCard":
@@ -7421,8 +7429,8 @@ const buildPropertiesSection = function(type) {
7421
7429
  getInputField("image", "Image Url"),
7422
7430
  getInputField("title", "Card Title"),
7423
7431
  getInputField("description", "Card Description"),
7424
- emptyBox,
7425
- emptyBox
7432
+ emptyBox$1("RankCardEmpty1"),
7433
+ emptyBox$1("RankCardEmpty2")
7426
7434
  ];
7427
7435
  break;
7428
7436
  case "LeaderBoard":
@@ -7431,8 +7439,8 @@ const buildPropertiesSection = function(type) {
7431
7439
  getInputField("firstImage", "First Image url"),
7432
7440
  getInputField("secondImage", "Second Image url"),
7433
7441
  getInputField("thirdImage", "Third Image url"),
7434
- emptyBox,
7435
- emptyBox,
7442
+ emptyBox$1("LeaderBoardEmpty1"),
7443
+ emptyBox$1("LeaderBoardEmpty2"),
7436
7444
  getTextArea("functionCode", "Write Compare Code", false)
7437
7445
  ];
7438
7446
  break;
@@ -7449,8 +7457,8 @@ const buildPropertiesSection = function(type) {
7449
7457
  getInputField("bottomLabel_1", "First BottomLabel"),
7450
7458
  getInputField("bottomLabel_2", "Second BottomLabel"),
7451
7459
  getInputField("bottomLabel_3", "Third BottomLabel"),
7452
- emptyBox,
7453
- emptyBox
7460
+ emptyBox$1("ProgressBarCardEmpty1"),
7461
+ emptyBox$1("ProgressBarCardEmpty2")
7454
7462
  ];
7455
7463
  break;
7456
7464
  case "card":
@@ -7458,7 +7466,7 @@ const buildPropertiesSection = function(type) {
7458
7466
  getInputField("url", "Image Url"),
7459
7467
  getInputField("label", "Label"),
7460
7468
  getInputField("description", "Description"),
7461
- emptyBox
7469
+ emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
7462
7470
  ];
7463
7471
  break;
7464
7472
  case "Button":
@@ -7468,7 +7476,7 @@ const buildPropertiesSection = function(type) {
7468
7476
  getSelectField("color", "Color"),
7469
7477
  getInputField("tooltipMessage", "Tooltip Message"),
7470
7478
  getSelectField("defaultStyle", "Default Style"),
7471
- emptyBox
7479
+ emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
7472
7480
  ];
7473
7481
  break;
7474
7482
  case "Graph":
@@ -7478,10 +7486,11 @@ const buildPropertiesSection = function(type) {
7478
7486
  getSelectField("graphType", "Graph Type"),
7479
7487
  getInputField("leftLabel", "Left Label"),
7480
7488
  getInputField("bottomLabel", "Bottom Label"),
7489
+ emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7481
7490
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7482
7491
  getInputField("yAxisValue", "Y-AxisValue"),
7483
7492
  getInputField("xAxisValue", "X-AxisValue"),
7484
- emptyBox,
7493
+ emptyBox$1("GraphEmpty2"),
7485
7494
  getArrayControl("legendLabels", "label"),
7486
7495
  getArrayControl("pieArcColors", "color")
7487
7496
  ];
@@ -7492,15 +7501,15 @@ const buildPropertiesSection = function(type) {
7492
7501
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7493
7502
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7494
7503
  getInputField("rowSpacing", "Row Spacing"),
7495
- emptyBox,
7496
- emptyBox
7504
+ emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7505
+ emptyBox$1("WrapperSectionEmpty2")
7497
7506
  ];
7498
7507
  break;
7499
7508
  case "TabSection":
7500
7509
  uiSchema.elements = [
7501
7510
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7502
7511
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7503
- emptyBox,
7512
+ emptyBox$1("TabEmpty"),
7504
7513
  getArrayControl("sectionLabels", "label")
7505
7514
  ];
7506
7515
  break;
@@ -7513,14 +7522,14 @@ const buildPropertiesSection = function(type) {
7513
7522
  getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
7514
7523
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7515
7524
  getInputField("selectKey", "Selection Key"),
7516
- emptyBox,
7525
+ emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
7517
7526
  buildWrapper("Tree Table Properties", [
7518
7527
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7519
7528
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
7520
7529
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
7521
7530
  getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
7522
- emptyBox,
7523
- emptyBox
7531
+ emptyBox$1("LazyLoadingTableEmpty2"),
7532
+ emptyBox$1("LazyLoadingTableEmpty3")
7524
7533
  ]),
7525
7534
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
7526
7535
  sizeHolder
@@ -7535,14 +7544,14 @@ const buildPropertiesSection = function(type) {
7535
7544
  uiSchema.elements = [
7536
7545
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7537
7546
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7538
- emptyBox
7547
+ emptyBox$1("SelectEmpty")
7539
7548
  ];
7540
7549
  break;
7541
7550
  case "MultipleSelect":
7542
7551
  uiSchema.elements = [
7543
7552
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7544
- emptyBox,
7545
- emptyBox
7553
+ emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
7554
+ emptyBox$1("MultipleSelectEmpty2")
7546
7555
  ];
7547
7556
  break;
7548
7557
  }
@@ -7702,7 +7711,7 @@ const ValueTab = {
7702
7711
  widget: "InputField"
7703
7712
  },
7704
7713
  config: {
7705
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7714
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7706
7715
  main: {
7707
7716
  label: "Label"
7708
7717
  }
@@ -7715,7 +7724,7 @@ const ValueTab = {
7715
7724
  widget: "InputField"
7716
7725
  },
7717
7726
  config: {
7718
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7727
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7719
7728
  main: {
7720
7729
  label: "Value"
7721
7730
  }
@@ -7728,7 +7737,7 @@ const ValueTab = {
7728
7737
  widget: "EmptyBox"
7729
7738
  },
7730
7739
  config: {
7731
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7740
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
7732
7741
  }
7733
7742
  }
7734
7743
  ]
@@ -7756,7 +7765,7 @@ const ValidationSection = {
7756
7765
  widget: "SelectInputField"
7757
7766
  },
7758
7767
  config: {
7759
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7768
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7760
7769
  main: {
7761
7770
  label: "Validation Type"
7762
7771
  }
@@ -7769,7 +7778,7 @@ const ValidationSection = {
7769
7778
  widget: "InputField"
7770
7779
  },
7771
7780
  config: {
7772
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7781
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7773
7782
  main: {
7774
7783
  label: "Validation Value"
7775
7784
  }
@@ -7782,7 +7791,7 @@ const ValidationSection = {
7782
7791
  widget: "EmptyBox"
7783
7792
  },
7784
7793
  config: {
7785
- layout: { xs: 0, sm: 4 }
7794
+ layout: { xs: 0, sm: 0, md: 4 }
7786
7795
  }
7787
7796
  }
7788
7797
  ]
@@ -7838,8 +7847,8 @@ const flatObjectValueInArray = (config = []) => {
7838
7847
  });
7839
7848
  return data;
7840
7849
  };
7841
- const clearFromLocalStorage = () => {
7842
- localStorage.removeItem("pageFormdata");
7850
+ const clearFromSessionStorage = () => {
7851
+ sessionStorage.removeItem("pageFormdata");
7843
7852
  };
7844
7853
  const getNavigationHistory = (config, path) => {
7845
7854
  if (path) {
@@ -7865,19 +7874,19 @@ const getNavigationHistory = (config, path) => {
7865
7874
  }
7866
7875
  return void 0;
7867
7876
  };
7868
- const saveFormdataInLocalStorage = (formData, path) => {
7877
+ const saveFormdataInSessionStorage = (formData, path) => {
7869
7878
  let updatedFormdata;
7870
7879
  if (path) {
7871
- const pageFormdata = getFormdataFromLocalStorage();
7880
+ const pageFormdata = getFormdataFromSessionStorage();
7872
7881
  updatedFormdata = _.set(pageFormdata, path, buildConfig(formData));
7873
7882
  } else {
7874
7883
  updatedFormdata = buildConfig(formData);
7875
7884
  }
7876
- localStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
7885
+ sessionStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
7877
7886
  return updatedFormdata;
7878
7887
  };
7879
- const getFormdataFromLocalStorage = (path) => {
7880
- const pageFormdata = localStorage.getItem("pageFormdata") ? JSON.parse(localStorage.getItem("pageFormdata")) : void 0;
7888
+ const getFormdataFromSessionStorage = (path) => {
7889
+ const pageFormdata = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
7881
7890
  let returnValue;
7882
7891
  if (path) {
7883
7892
  returnValue = _.get(pageFormdata, path);
@@ -7892,8 +7901,8 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
7892
7901
  var _a, _b;
7893
7902
  (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7894
7903
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7895
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
7896
- const config = JSON.parse(localStorage.getItem("pageFormdata"));
7904
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
7905
+ const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
7897
7906
  if (_.isEmpty(store2.ctx.core.errors)) {
7898
7907
  try {
7899
7908
  const saveReturn = await submitHandler(store2, service2, config);
@@ -7905,7 +7914,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
7905
7914
  }
7906
7915
  const navigateHandler = (store2, isSubmitted, pageName) => {
7907
7916
  if (isSubmitted) {
7908
- localStorage.removeItem("pageFormdata");
7917
+ sessionStorage.removeItem("pageFormdata");
7909
7918
  store2.navigate(pageName || -1);
7910
7919
  store2.setNotify({
7911
7920
  SuccessMessage: "Submit Successfully",
@@ -7923,7 +7932,7 @@ function okHandler(store2) {
7923
7932
  var _a;
7924
7933
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7925
7934
  if (_.isEmpty(store2.ctx.core.errors)) {
7926
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
7935
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
7927
7936
  store2.navigate(-1);
7928
7937
  store2.setNotify({
7929
7938
  SuccessMessage: "Save Successfully",
@@ -8000,7 +8009,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8000
8009
  getFormdata: function() {
8001
8010
  var _a;
8002
8011
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8003
- return getFormdataFromLocalStorage(path);
8012
+ return getFormdataFromSessionStorage(path);
8004
8013
  },
8005
8014
  getSchema: function() {
8006
8015
  return ComponentSchema;
@@ -8018,7 +8027,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8018
8027
  const rowId = dynamicData2.path.split(".")[1];
8019
8028
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8020
8029
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8021
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8030
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8022
8031
  if (path) {
8023
8032
  const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
8024
8033
  const finalPath = `${path2}.elements[${rowId}]`;
@@ -8032,27 +8041,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8032
8041
  deleteComponents: function(shouldUpdateDialog = true) {
8033
8042
  var _a;
8034
8043
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8035
- const rowId = localStorage.getItem("rowId");
8044
+ const rowId = sessionStorage.getItem("rowId");
8036
8045
  store2.formData.elements.splice(rowId, 1);
8037
- const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
8046
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8038
8047
  const data = path ? _.get(response, path) : response;
8039
8048
  store2.setFormdata(data);
8040
8049
  if (shouldUpdateDialog) {
8041
8050
  store2.updateDialog("popUpComponentSection");
8042
8051
  }
8043
- localStorage.removeItem("rowId");
8052
+ sessionStorage.removeItem("rowId");
8044
8053
  },
8045
8054
  deleteEvent: function(shouldUpdateDialog = true) {
8046
8055
  var _a;
8047
8056
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8048
- const rowId = localStorage.getItem("rowId");
8057
+ const rowId = sessionStorage.getItem("rowId");
8049
8058
  store2.formData.events.splice(rowId, 1);
8050
- const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
8059
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
8051
8060
  store2.setFormdata(_.get(response, path));
8052
8061
  if (shouldUpdateDialog) {
8053
8062
  store2.updateDialog("popUpEventSection");
8054
8063
  }
8055
- localStorage.removeItem("rowId");
8064
+ sessionStorage.removeItem("rowId");
8056
8065
  },
8057
8066
  widgetAddClickHandler: function() {
8058
8067
  var _a;
@@ -8060,7 +8069,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8060
8069
  store2.formData.elements = [];
8061
8070
  }
8062
8071
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8063
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8072
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8064
8073
  const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
8065
8074
  store2.searchParams.set("path", finalPath);
8066
8075
  store2.setSearchParams(store2.searchParams);
@@ -8071,7 +8080,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8071
8080
  const rowId = dynamicData2.path.split(".")[1];
8072
8081
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8073
8082
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
8074
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8083
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8075
8084
  const finalPath = `${path}.events[${rowId}]`;
8076
8085
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8077
8086
  },
@@ -8082,7 +8091,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8082
8091
  if (!Array.isArray(store2.formData.events)) {
8083
8092
  store2.formData.events = [];
8084
8093
  }
8085
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
8094
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8086
8095
  const finalPath = `${path}.events[${store2.formData.events.length}]`;
8087
8096
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8088
8097
  },
@@ -8091,12 +8100,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8091
8100
  },
8092
8101
  deletePopUpComponent: function() {
8093
8102
  const rowId = dynamicData2.path.split(".")[1];
8094
- localStorage.setItem("rowId", rowId);
8103
+ sessionStorage.setItem("rowId", rowId);
8095
8104
  store2.updateDialog("popUpComponentSection");
8096
8105
  },
8097
8106
  deletePopUpEvent: function() {
8098
8107
  const rowId = dynamicData2.path.split(".")[1];
8099
- localStorage.setItem("rowId", rowId);
8108
+ sessionStorage.setItem("rowId", rowId);
8100
8109
  store2.updateDialog("popUpEventSection");
8101
8110
  }
8102
8111
  };
@@ -8116,11 +8125,11 @@ var pageMaster = (funcParams) => {
8116
8125
  var _a;
8117
8126
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8118
8127
  const config = await funcParams.pageConfigProvider(id);
8119
- const formData = getFormdataFromLocalStorage();
8128
+ const formData = getFormdataFromSessionStorage();
8120
8129
  if (formData) {
8121
8130
  return formData;
8122
8131
  }
8123
- saveFormdataInLocalStorage(config);
8132
+ saveFormdataInSessionStorage(config);
8124
8133
  return config;
8125
8134
  },
8126
8135
  getUiSchema: function() {
@@ -8130,7 +8139,7 @@ var pageMaster = (funcParams) => {
8130
8139
  return PageMasterSchema;
8131
8140
  },
8132
8141
  backHandler: () => {
8133
- localStorage.removeItem("pageFormdata");
8142
+ sessionStorage.removeItem("pageFormdata");
8134
8143
  store2.navigate("/PageMasterRecords");
8135
8144
  },
8136
8145
  onAddClickHandler: function() {
@@ -8139,7 +8148,7 @@ var pageMaster = (funcParams) => {
8139
8148
  if (!Array.isArray(store2.formData.elements)) {
8140
8149
  store2.formData.elements = [];
8141
8150
  }
8142
- const response = saveFormdataInLocalStorage(store2.ctx.core.data);
8151
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data);
8143
8152
  if (id) {
8144
8153
  store2.navigate(
8145
8154
  `/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
@@ -8162,7 +8171,7 @@ var pageMaster = (funcParams) => {
8162
8171
  if (!Array.isArray(store2.formData.events)) {
8163
8172
  store2.formData.events = [];
8164
8173
  }
8165
- saveFormdataInLocalStorage(store2.ctx.core.data);
8174
+ saveFormdataInSessionStorage(store2.ctx.core.data);
8166
8175
  const finalPath = `events[${store2.formData.events.length}]`;
8167
8176
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8168
8177
  },
@@ -8170,26 +8179,26 @@ var pageMaster = (funcParams) => {
8170
8179
  var _a;
8171
8180
  const rowId = dynamicData2.path.split(".")[1];
8172
8181
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8173
- saveFormdataInLocalStorage(store2.ctx.core.data);
8182
+ saveFormdataInSessionStorage(store2.ctx.core.data);
8174
8183
  const finalPath = `events[${rowId}]`;
8175
8184
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
8176
8185
  },
8177
8186
  deleteEvent: function() {
8178
- const rowId = localStorage.getItem("rowId");
8187
+ const rowId = sessionStorage.getItem("rowId");
8179
8188
  store2.formData.events.splice(rowId, 1);
8180
- const response = saveFormdataInLocalStorage(store2.ctx.core.data);
8189
+ const response = saveFormdataInSessionStorage(store2.ctx.core.data);
8181
8190
  store2.setFormdata(response);
8182
8191
  store2.updateDialog("popUpPageMasterEvent");
8183
- localStorage.removeItem("rowId");
8192
+ sessionStorage.removeItem("rowId");
8184
8193
  },
8185
8194
  deletePopUpComponent: function() {
8186
8195
  const rowId = dynamicData2.path.split(".")[1];
8187
- localStorage.setItem("rowId", rowId);
8196
+ sessionStorage.setItem("rowId", rowId);
8188
8197
  store2.updateDialog("popUpPageMasterComponent");
8189
8198
  },
8190
8199
  deletePopUpEvent: function() {
8191
8200
  const rowId = dynamicData2.path.split(".")[1];
8192
- localStorage.setItem("rowId", rowId);
8201
+ sessionStorage.setItem("rowId", rowId);
8193
8202
  store2.updateDialog("popUpPageMasterEvent");
8194
8203
  }
8195
8204
  };
@@ -8328,7 +8337,7 @@ const EventUiSchema = (theme) => {
8328
8337
  widget: "SelectInputField"
8329
8338
  },
8330
8339
  config: {
8331
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8340
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8332
8341
  main: {
8333
8342
  label: "Event Type",
8334
8343
  type: "text"
@@ -8448,17 +8457,7 @@ const EventUiSchema = (theme) => {
8448
8457
  widget: "EmptyBox"
8449
8458
  },
8450
8459
  config: {
8451
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8452
- }
8453
- },
8454
- {
8455
- type: "Control",
8456
- scope: "#/properties/EmptyBox",
8457
- options: {
8458
- widget: "EmptyBox"
8459
- },
8460
- config: {
8461
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8460
+ layout: { xs: 4, sm: 8 }
8462
8461
  }
8463
8462
  },
8464
8463
  {
@@ -8468,7 +8467,7 @@ const EventUiSchema = (theme) => {
8468
8467
  widget: "Button"
8469
8468
  },
8470
8469
  config: {
8471
- layout: 1.8,
8470
+ layout: { xs: 4, sm: 2 },
8472
8471
  main: {
8473
8472
  name: "Ok",
8474
8473
  startIcon: "ApproveIcon",
@@ -8489,7 +8488,7 @@ const EventUiSchema = (theme) => {
8489
8488
  widget: "Button"
8490
8489
  },
8491
8490
  config: {
8492
- layout: 1.8,
8491
+ layout: { xs: 4, sm: 2 },
8493
8492
  main: {
8494
8493
  name: "Save & Exit",
8495
8494
  startIcon: "ApproveIcon",
@@ -8665,7 +8664,7 @@ const EventUiSchema = (theme) => {
8665
8664
  height: 0,
8666
8665
  margin: 0,
8667
8666
  top: 0,
8668
- right: "82px",
8667
+ right: { xs: "12px", sm: "84px" },
8669
8668
  position: "absolute",
8670
8669
  fontSize: "12px",
8671
8670
  cursor: "pointer",
@@ -8687,6 +8686,7 @@ const EventUiSchema = (theme) => {
8687
8686
  onClick: "backHandler"
8688
8687
  },
8689
8688
  style: {
8689
+ display: { xs: "none", sm: "flex" },
8690
8690
  textAlign: "left",
8691
8691
  lineHeight: 1,
8692
8692
  height: 0,
@@ -8721,7 +8721,7 @@ const APISection = {
8721
8721
  widget: "SelectInputField"
8722
8722
  },
8723
8723
  config: {
8724
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8724
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8725
8725
  main: {
8726
8726
  label: "Method",
8727
8727
  type: "text"
@@ -8735,7 +8735,7 @@ const APISection = {
8735
8735
  widget: "InputField"
8736
8736
  },
8737
8737
  config: {
8738
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8738
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8739
8739
  main: {
8740
8740
  label: "Path",
8741
8741
  type: "text",
@@ -8751,7 +8751,7 @@ const APISection = {
8751
8751
  widget: "EmptyBox"
8752
8752
  },
8753
8753
  config: {
8754
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8754
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8755
8755
  }
8756
8756
  },
8757
8757
  {
@@ -8761,7 +8761,7 @@ const APISection = {
8761
8761
  widget: "EmptyBox"
8762
8762
  },
8763
8763
  config: {
8764
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8764
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8765
8765
  }
8766
8766
  },
8767
8767
  {
@@ -8780,7 +8780,7 @@ const APISection = {
8780
8780
  widget: "InputField"
8781
8781
  },
8782
8782
  config: {
8783
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8783
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8784
8784
  main: {
8785
8785
  label: "Key"
8786
8786
  }
@@ -8793,7 +8793,7 @@ const APISection = {
8793
8793
  widget: "InputField"
8794
8794
  },
8795
8795
  config: {
8796
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8796
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8797
8797
  main: {
8798
8798
  label: "Value"
8799
8799
  }
@@ -8806,7 +8806,7 @@ const APISection = {
8806
8806
  widget: "EmptyBox"
8807
8807
  },
8808
8808
  config: {
8809
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8809
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8810
8810
  }
8811
8811
  }
8812
8812
  ]
@@ -8829,7 +8829,7 @@ const APISection = {
8829
8829
  widget: "InputField"
8830
8830
  },
8831
8831
  config: {
8832
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8832
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8833
8833
  main: {
8834
8834
  label: "Key"
8835
8835
  }
@@ -8842,7 +8842,7 @@ const APISection = {
8842
8842
  widget: "InputField"
8843
8843
  },
8844
8844
  config: {
8845
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8845
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
8846
8846
  main: {
8847
8847
  label: "Value"
8848
8848
  }
@@ -8855,7 +8855,7 @@ const APISection = {
8855
8855
  widget: "EmptyBox"
8856
8856
  },
8857
8857
  config: {
8858
- layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8858
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 }
8859
8859
  }
8860
8860
  }
8861
8861
  ]
@@ -8883,7 +8883,7 @@ const refreshSectionUiSchema = {
8883
8883
  widget: "InputField"
8884
8884
  },
8885
8885
  config: {
8886
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8886
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
8887
8887
  main: {
8888
8888
  label: "Value"
8889
8889
  }
@@ -8896,7 +8896,7 @@ const refreshSectionUiSchema = {
8896
8896
  widget: "EmptyBox"
8897
8897
  },
8898
8898
  config: {
8899
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8899
+ layout: { xs: 0, sm: 6, md: 4, lg: 4 },
8900
8900
  main: {}
8901
8901
  }
8902
8902
  },
@@ -8907,7 +8907,7 @@ const refreshSectionUiSchema = {
8907
8907
  widget: "EmptyBox"
8908
8908
  },
8909
8909
  config: {
8910
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8910
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
8911
8911
  main: {}
8912
8912
  }
8913
8913
  }
@@ -8917,6 +8917,18 @@ const refreshSectionUiSchema = {
8917
8917
  }
8918
8918
  ]
8919
8919
  };
8920
+ var emptyBox = {
8921
+ type: "Control",
8922
+ scope: "#/properties/emptyBox",
8923
+ options: {
8924
+ widget: "EmptyBox"
8925
+ },
8926
+ config: {
8927
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8928
+ main: {},
8929
+ style: {}
8930
+ }
8931
+ };
8920
8932
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8921
8933
  return {
8922
8934
  setPage: async function() {
@@ -8932,7 +8944,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8932
8944
  if (handlerType) {
8933
8945
  if (handlerType === "custom") {
8934
8946
  uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8935
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8947
+ uiSchema.elements[1].elements[0].elements[3] = {
8948
+ type: "Control",
8949
+ scope: "#/properties/emptyBox",
8950
+ options: {
8951
+ widget: "EmptyBox"
8952
+ },
8953
+ config: {
8954
+ layout: { xs: 0, sm: 6, md: 0, lg: 0 },
8955
+ main: {},
8956
+ style: {}
8957
+ }
8958
+ };
8959
+ uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
8936
8960
  schema2.required = ["eventType", "Handler", "eventCode"];
8937
8961
  } else if (handlerType === "api") {
8938
8962
  uiSchema.elements[1].elements[0].elements[2] = emptyBox;
@@ -8940,7 +8964,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8940
8964
  schema2.required = ["eventType", "Handler", "method", "path"];
8941
8965
  } else if (handlerType === "inBuiltFunction") {
8942
8966
  uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8943
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8967
+ uiSchema.elements[1].elements[0].elements[3] = {
8968
+ type: "Control",
8969
+ scope: "#/properties/emptyBox",
8970
+ options: {
8971
+ widget: "EmptyBox"
8972
+ },
8973
+ config: {
8974
+ layout: { xs: 6, sm: 6, md: 0, lg: 0 },
8975
+ main: {},
8976
+ style: {}
8977
+ }
8978
+ };
8979
+ uiSchema.elements[1].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8944
8980
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8945
8981
  } else if (handlerType === "refresh") {
8946
8982
  uiSchema.elements[1].elements[0].elements[2] = emptyBox;
@@ -8980,7 +9016,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8980
9016
  if (!Array.isArray(store2.formData.events)) {
8981
9017
  store2.formData.events = [];
8982
9018
  }
8983
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
9019
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8984
9020
  const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
8985
9021
  store2.searchParams.set("path", finalPath);
8986
9022
  store2.setSearchParams(store2.searchParams);
@@ -8990,7 +9026,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8990
9026
  var _a;
8991
9027
  const rowId = dynamicData2.path.split(".")[1];
8992
9028
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8993
- saveFormdataInLocalStorage(store2.ctx.core.data, path);
9029
+ saveFormdataInSessionStorage(store2.ctx.core.data, path);
8994
9030
  const finalPath = `${path}.events[${rowId}]`;
8995
9031
  store2.searchParams.set("path", finalPath);
8996
9032
  store2.setSearchParams(store2.searchParams);
@@ -9005,7 +9041,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
9005
9041
  },
9006
9042
  deletePopUpEvent: function() {
9007
9043
  const rowId = dynamicData2.path.split(".")[1];
9008
- localStorage.setItem("rowId", rowId);
9044
+ sessionStorage.setItem("rowId", rowId);
9009
9045
  store2.updateDialog("popUpEvent");
9010
9046
  }
9011
9047
  };
@@ -9177,7 +9213,7 @@ function executeCustomHandler(params) {
9177
9213
  return response;
9178
9214
  }
9179
9215
  }
9180
- function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder2) {
9216
+ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
9181
9217
  if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
9182
9218
  store2.setSchema((pre) => {
9183
9219
  var _a;
@@ -9221,9 +9257,9 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
9221
9257
  }
9222
9258
  } else {
9223
9259
  if (handlerResponse) {
9224
- formDataHolder2[componentName] = handlerResponse.data;
9260
+ formDataHolder[componentName] = handlerResponse.data;
9225
9261
  store2.setFormdata((pre) => {
9226
- return { ...pre, ...formDataHolder2 };
9262
+ return { ...pre, ...formDataHolder };
9227
9263
  });
9228
9264
  }
9229
9265
  }
@@ -9244,7 +9280,7 @@ const buildBodyFormat = (body2, formData, userValue2, store2) => {
9244
9280
  finalBody[elem.key] = value;
9245
9281
  } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
9246
9282
  const finalpath = elem.value.substring(7);
9247
- const value = JSON.parse(localStorage.getItem(finalpath) || '""');
9283
+ const value = JSON.parse(sessionStorage.getItem(finalpath) || '""');
9248
9284
  finalBody[elem.key] = value;
9249
9285
  } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
9250
9286
  const finalpath = elem.value.substring(1);
@@ -9313,7 +9349,6 @@ const notifyUiSchema = {
9313
9349
  },
9314
9350
  layout: 6
9315
9351
  };
9316
- let formDataHolder = {};
9317
9352
  let pageData = false;
9318
9353
  const extractEvents = (eventConfig) => {
9319
9354
  function extractsConfigEvents(eventConfigObj) {
@@ -9356,6 +9391,7 @@ const extractEvents = (eventConfig) => {
9356
9391
  };
9357
9392
  var service = (funcParams) => {
9358
9393
  eventGroups = {};
9394
+ const formDataHolder = {};
9359
9395
  if (pageData) {
9360
9396
  if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
9361
9397
  eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
@@ -9378,12 +9414,12 @@ var service = (funcParams) => {
9378
9414
  var _a, _b, _c, _d;
9379
9415
  funcParams.store.setFormdata({});
9380
9416
  funcParams.store.newData = {};
9381
- const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
9417
+ const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
9382
9418
  if (pageBasicDetailString) {
9383
9419
  pageData = JSON.parse(pageBasicDetailString);
9384
9420
  } else {
9385
9421
  pageData = await funcParams.pageDataProvider();
9386
- localStorage.setItem("pagemasterMetaData", JSON.stringify({
9422
+ sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
9387
9423
  schema: pageData == null ? void 0 : pageData.schema,
9388
9424
  uiSchema: pageData == null ? void 0 : pageData.uiSchema,
9389
9425
  config: pageData == null ? void 0 : pageData.config
@@ -9457,7 +9493,7 @@ var service = (funcParams) => {
9457
9493
  height: 0,
9458
9494
  margin: 0,
9459
9495
  top: 0,
9460
- right: "82px",
9496
+ right: { xs: "12px", sm: "84px" },
9461
9497
  position: "absolute",
9462
9498
  fontSize: "12px",
9463
9499
  cursor: "pointer",
@@ -9479,6 +9515,7 @@ var service = (funcParams) => {
9479
9515
  onClick: "backHandler"
9480
9516
  },
9481
9517
  style: {
9518
+ display: { xs: "none", sm: "flex" },
9482
9519
  textAlign: "left",
9483
9520
  lineHeight: 1,
9484
9521
  height: 0,
@@ -10105,7 +10142,7 @@ const buildProgressBar = (config, componentScope) => {
10105
10142
  if (config.layout) {
10106
10143
  ProgressBar.config.layout = config.layout;
10107
10144
  }
10108
- ProgressBar.config.main.heading = config.heading;
10145
+ ProgressBar.config.main.heading = config.label;
10109
10146
  if (config.bottomLabel_3) {
10110
10147
  ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
10111
10148
  }
@@ -10166,7 +10203,6 @@ const LineGraph = {
10166
10203
  hideBottomAxisLine: false,
10167
10204
  legend: {
10168
10205
  labelColor: "green",
10169
- legendTitle: "Our Assests",
10170
10206
  direction: "row",
10171
10207
  align: "right",
10172
10208
  colorRectWidth: 20
@@ -10199,11 +10235,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10199
10235
  if (config.layout) {
10200
10236
  horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10201
10237
  }
10238
+ horizontalBarGraph.config.main.type = config.graphType;
10202
10239
  horizontalBarGraph.scope = componentScope;
10203
10240
  horizontalBarGraph.config.main.header = config.heading;
10204
10241
  if (config.barColor) {
10205
10242
  horizontalBarGraph.config.barStyle.color = config.barColor;
10206
10243
  }
10244
+ if (config.xAxisValue) {
10245
+ horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
10246
+ }
10207
10247
  if (config.containerBackground) {
10208
10248
  horizontalBarGraph.config.containerStyle.background = config.containerBackground;
10209
10249
  }
@@ -10335,6 +10375,9 @@ const buildPieGraph = (config, componentScope) => {
10335
10375
  if (config.legendLabels) {
10336
10376
  pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10337
10377
  }
10378
+ if (config.xAxisValue) {
10379
+ pieGraph.config.main.xAxisValue = config.xAxisValue;
10380
+ }
10338
10381
  if (config.pieArcColors) {
10339
10382
  pieGraph.config.style = {
10340
10383
  pieStyle: {
@@ -10357,6 +10400,9 @@ const buildStackbarGraph = (config, componentScope) => {
10357
10400
  if (config.barColor) {
10358
10401
  barGraph.config.barStyle.color = config.barColor;
10359
10402
  }
10403
+ if (config.xAxisValue) {
10404
+ barGraph.config.main.xAxisValue = config.xAxisValue;
10405
+ }
10360
10406
  if (config.height) {
10361
10407
  barGraph.config.style.containerStyle.height = config.height;
10362
10408
  }
@@ -10450,7 +10496,7 @@ var TextInputField = {
10450
10496
  widget: "InputField"
10451
10497
  },
10452
10498
  config: {
10453
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10499
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
10454
10500
  main: {
10455
10501
  label: ""
10456
10502
  },
@@ -10483,7 +10529,7 @@ var SelectInputField = {
10483
10529
  widget: "SelectInputField"
10484
10530
  },
10485
10531
  config: {
10486
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10532
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
10487
10533
  main: {
10488
10534
  label: "",
10489
10535
  type: "text",
@@ -10707,7 +10753,7 @@ const uploadFile = {
10707
10753
  "style": {
10708
10754
  "backgroundColor": "none"
10709
10755
  },
10710
- layout: { xs: 11, sm: 4, md: 4, lg: 4 }
10756
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 }
10711
10757
  },
10712
10758
  "options": {
10713
10759
  "widget": "UploadFile"
@@ -10724,7 +10770,7 @@ const downloadFile = {
10724
10770
  "style": {
10725
10771
  "backgroundColor": "none"
10726
10772
  },
10727
- layout: { xs: 11, sm: 4, md: 4, lg: 4 }
10773
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 }
10728
10774
  },
10729
10775
  "options": {
10730
10776
  "widget": "DownloadFile"
@@ -10769,121 +10815,158 @@ const buildDownloadFile = (config, componentScope) => {
10769
10815
  }
10770
10816
  return DownloadFile;
10771
10817
  };
10772
- var Card = {
10773
- type: "WrapperLayout",
10774
- config: {
10775
- main: {
10776
- rowSpacing: 0.5
10777
- },
10778
- componentsBoxStyle: {
10779
- position: "relative",
10780
- color: "white",
10781
- height: { xs: "120px", md: "160px" },
10782
- width: "100%",
10783
- textAlign: "left",
10784
- background: "#3f51b5",
10785
- borderRadius: "20px"
10786
- },
10787
- layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10788
- },
10789
- elements: [
10790
- {
10791
- type: "Control",
10792
- scope: "#/properties/programType",
10793
- config: {
10794
- main: {
10795
- heading: "$5000.00"
10796
- },
10797
- style: {
10798
- position: "absolute",
10799
- left: "10%",
10800
- top: "15%",
10801
- color: "#f5effc",
10802
- height: "80px",
10803
- display: "flex",
10804
- fontSize: { xs: "24px", md: "32px" },
10805
- alignItems: "center",
10806
- background: "inherit",
10807
- justifyContent: "flex-start"
10808
- },
10809
- layout: 5
10818
+ function Card(theme) {
10819
+ const uiSchema = {
10820
+ type: "WrapperLayout",
10821
+ config: {
10822
+ main: {},
10823
+ wrapperStyle: {},
10824
+ componentsBoxStyle: {
10825
+ flexDirection: "row",
10826
+ flexWrap: "nowrap",
10827
+ width: "100%",
10828
+ background: "transparent",
10829
+ border: `1.5px solid ${theme.palette.primary.main}`,
10830
+ borderRadius: "20px",
10831
+ padding: "0px 20px 0px 20px",
10832
+ "&: hover": {
10833
+ background: `${theme.palette.primary.main}`,
10834
+ border: `1.5px solid black`,
10835
+ "& p": {
10836
+ color: "white"
10837
+ }
10838
+ }
10810
10839
  },
10811
- options: {
10812
- widget: "Box"
10813
- }
10840
+ layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10814
10841
  },
10815
- {
10816
- type: "Control",
10817
- scope: "#/properties/programType",
10818
- config: {
10819
- main: {
10820
- url: "https://www.svgrepo.com/show/500606/loading.svg"
10821
- },
10822
- style: {
10823
- color: "#f5effc",
10824
- objectFit: "contain",
10825
- position: "absolute",
10826
- top: "10px",
10827
- right: "10px",
10828
- height: "80%",
10829
- width: "35%",
10830
- display: "flex",
10831
- fontSize: "34px",
10832
- alignItems: "center",
10833
- background: "inherit",
10834
- padding: "20px",
10835
- justifyContent: "left"
10842
+ elements: [
10843
+ {
10844
+ type: "HorizontalLayout",
10845
+ config: {
10846
+ layout: 8
10836
10847
  },
10837
- layout: 5
10848
+ elements: [
10849
+ {
10850
+ type: "WrapperLayout",
10851
+ config: {
10852
+ main: {
10853
+ columnSpacing: 0,
10854
+ gap: 0
10855
+ },
10856
+ wrapperStyle: {
10857
+ marginTop: "4px",
10858
+ background: "transparent"
10859
+ },
10860
+ componentsBoxStyle: {
10861
+ flexDirection: "column",
10862
+ flexWrap: "nowrap",
10863
+ width: "100%",
10864
+ height: "inherit",
10865
+ background: "transparent",
10866
+ borderRadius: "0px"
10867
+ },
10868
+ layout: 12
10869
+ },
10870
+ elements: [
10871
+ {
10872
+ type: "Control",
10873
+ scope: "#/properties/programType",
10874
+ config: {
10875
+ main: {
10876
+ heading: "$5000.00"
10877
+ },
10878
+ style: {
10879
+ color: "black",
10880
+ display: "flex",
10881
+ fontSize: { xs: "24px", md: "28px" },
10882
+ fontWeight: "bold",
10883
+ background: "inherit",
10884
+ justifyContent: "flex-start",
10885
+ width: "calc(100%+8px)",
10886
+ margin: "-8px"
10887
+ },
10888
+ layout: 12
10889
+ },
10890
+ options: {
10891
+ widget: "Box"
10892
+ }
10893
+ },
10894
+ {
10895
+ type: "Control",
10896
+ scope: "#/properties/programType",
10897
+ config: {
10898
+ main: {
10899
+ heading: "Total Earnings"
10900
+ },
10901
+ style: {
10902
+ color: "black",
10903
+ fontSize: "16px",
10904
+ justifyContent: "center",
10905
+ textWrap: "wrap",
10906
+ background: "inherit",
10907
+ width: "calc(100%+8pc)",
10908
+ margin: "-8px",
10909
+ lineHeight: "1"
10910
+ },
10911
+ layout: 12
10912
+ },
10913
+ options: {
10914
+ widget: "Box"
10915
+ }
10916
+ }
10917
+ ]
10918
+ }
10919
+ ]
10838
10920
  },
10839
- options: {
10840
- widget: "Image"
10841
- }
10842
- },
10843
- {
10844
- type: "Control",
10845
- scope: "#/properties/programType",
10846
- config: {
10847
- main: {
10848
- heading: "Total Earnings"
10849
- },
10850
- style: {
10851
- position: "absolute",
10852
- top: "calc(60%)",
10853
- alignItems: "center",
10854
- color: "#8999e8",
10855
- fontSize: "16px",
10856
- left: "10%",
10857
- background: "inherit",
10858
- justifyContent: "center"
10921
+ {
10922
+ type: "Control",
10923
+ scope: "#/properties/programType",
10924
+ config: {
10925
+ main: {
10926
+ url: "https://www.svgrepo.com/show/500606/loading.svg"
10927
+ },
10928
+ style: {
10929
+ containerStyle: {
10930
+ height: "100%",
10931
+ display: "flex",
10932
+ justifyContent: "center"
10933
+ },
10934
+ imageStyle: {
10935
+ height: "100%",
10936
+ fontSize: "none",
10937
+ padding: "4px",
10938
+ marginLeft: "8px"
10939
+ }
10940
+ },
10941
+ layout: 4
10859
10942
  },
10860
- layout: 12
10861
- },
10862
- options: {
10863
- widget: "Box"
10943
+ options: {
10944
+ widget: "Image"
10945
+ }
10864
10946
  }
10865
- }
10866
- ]
10867
- };
10868
- const buildCard = (config, componentScope) => {
10869
- const card = _.cloneDeep(Card);
10947
+ ]
10948
+ };
10949
+ return uiSchema;
10950
+ }
10951
+ const buildCard = (config, componentScope, store2) => {
10952
+ const card = _.cloneDeep(Card(store2.theme.myTheme));
10870
10953
  if (config.style) {
10871
10954
  card.config.style = JSON.parse(config.style);
10872
10955
  }
10873
- card.elements[0].scope = `#/properties/${config.name}/properties/value`;
10956
+ card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
10874
10957
  card.elements[1].scope = `#/properties/${config.name}/properties/url`;
10875
- card.elements[2].scope = `#/properties/${config.name}/properties/description`;
10958
+ card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
10876
10959
  if (config.layout) {
10877
10960
  card.config.layout = createLayoutFormat(config.layout);
10878
10961
  }
10879
10962
  if (config.label) {
10880
- card.elements[0].config.main.heading = config.label;
10963
+ card.elements[0].elements[0].elements[0].config.main.heading = config.label;
10881
10964
  }
10882
10965
  if (config.url) {
10883
10966
  card.elements[1].config.main.url = config.url;
10884
10967
  }
10885
10968
  if (config.description) {
10886
- card.elements[2].config.main.heading = config.description;
10969
+ card.elements[0].elements[0].elements[1].config.main.heading = config.description;
10887
10970
  }
10888
10971
  return card;
10889
10972
  };
@@ -10894,7 +10977,7 @@ var DateInputField = {
10894
10977
  widget: "DateInputField"
10895
10978
  },
10896
10979
  config: {
10897
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10980
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
10898
10981
  main: {
10899
10982
  label: "",
10900
10983
  type: "date"
@@ -10908,7 +10991,7 @@ const DateTime = {
10908
10991
  widget: "DateTimeInputField"
10909
10992
  },
10910
10993
  config: {
10911
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10994
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
10912
10995
  main: {
10913
10996
  label: "DateTime",
10914
10997
  type: "date"
@@ -11035,7 +11118,7 @@ var MultipleSelect = {
11035
11118
  widget: "MultipleSelect"
11036
11119
  },
11037
11120
  config: {
11038
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
11121
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
11039
11122
  main: {
11040
11123
  label: "",
11041
11124
  type: "text",
@@ -11201,7 +11284,7 @@ const RadioUiSchema = {
11201
11284
  widget: "RadioInputField"
11202
11285
  },
11203
11286
  config: {
11204
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
11287
+ layout: { xs: 12, sm: 6, md: 4, lg: 4 },
11205
11288
  main: {
11206
11289
  label: "Enabled",
11207
11290
  options: ["YES", "NO"],
@@ -11310,7 +11393,7 @@ const FileInput = {
11310
11393
  widget: "FileInputField"
11311
11394
  },
11312
11395
  config: {
11313
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
11396
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
11314
11397
  main: {
11315
11398
  required: false,
11316
11399
  onUpload: "onFileUpload",
@@ -11664,7 +11747,7 @@ const buildSchema = (config, tableName, isArrayType) => {
11664
11747
  }
11665
11748
  return schema;
11666
11749
  };
11667
- const buildUiSchema = (config) => {
11750
+ const buildUiSchema = (config, store2) => {
11668
11751
  let elements = {};
11669
11752
  const componentScope = `#/properties/${config.name}`;
11670
11753
  switch (config.type) {
@@ -11747,7 +11830,7 @@ const buildUiSchema = (config) => {
11747
11830
  elements = buildEmptyBox(config);
11748
11831
  break;
11749
11832
  case "card":
11750
- elements = buildCard(config);
11833
+ elements = buildCard(config, componentScope, store2);
11751
11834
  break;
11752
11835
  case "Graph":
11753
11836
  switch (config.graphType) {
@@ -11762,6 +11845,7 @@ const buildUiSchema = (config) => {
11762
11845
  elements = buildPieGraph(config, componentScope);
11763
11846
  break;
11764
11847
  case "HorizontalBarGraph":
11848
+ case "HorizontalStackBarGraph":
11765
11849
  elements = buildHorizontalBarGraph(config, componentScope);
11766
11850
  break;
11767
11851
  }
@@ -11824,7 +11908,7 @@ const buildUiSchema = (config) => {
11824
11908
  header: cellElem.label || cellElem.name,
11825
11909
  size: sizeMap[cellElem.name] || 180,
11826
11910
  type: cellElem.columnFormat,
11827
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11911
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
11828
11912
  };
11829
11913
  });
11830
11914
  } else if (config.type == "Table") {
@@ -11841,8 +11925,8 @@ const buildUiSchema = (config) => {
11841
11925
  header: cellElem.label || cellElem.name,
11842
11926
  size: sizeMap[cellElem.name] || 180,
11843
11927
  type: cellElem.columnFormat,
11844
- widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
11845
- elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
11928
+ widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11929
+ elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
11846
11930
  };
11847
11931
  } else {
11848
11932
  return {
@@ -11855,15 +11939,15 @@ const buildUiSchema = (config) => {
11855
11939
  });
11856
11940
  } else if (config.type == "Array") {
11857
11941
  elements.options.detail.elements = config.elements.map((e, elemInd) => {
11858
- return buildUiSchema(e);
11942
+ return buildUiSchema(e, store2);
11859
11943
  });
11860
11944
  } else {
11861
11945
  elements.elements = config.elements.map((e, elemInd) => {
11862
- return buildUiSchema(e);
11946
+ return buildUiSchema(e, store2);
11863
11947
  });
11864
11948
  }
11865
11949
  }
11866
11950
  return elements;
11867
11951
  };
11868
- export { buildConfig, buildSchema, buildUiSchema, clearFromLocalStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
11952
+ export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
11869
11953
  //# sourceMappingURL=impaktapps-ui-builder.es.js.map