impaktapps-ui-builder 1.0.320 → 1.0.380

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.
@@ -6272,7 +6272,7 @@ const ComponentSchema = {
6272
6272
  { title: "Rank", const: "Rank" },
6273
6273
  { title: "Rank Card", const: "RankCard" },
6274
6274
  { title: "Metric Card", const: "MetricCard" },
6275
- { title: "Bow and Arrow", const: "RunnerBoyProgressBar" },
6275
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6276
6276
  { title: "Table", const: "Table" },
6277
6277
  { title: "Tabs", const: "TabSection" },
6278
6278
  { title: "Text", const: "Text" },
@@ -6280,7 +6280,8 @@ const ComponentSchema = {
6280
6280
  { title: "Timer", const: "Timer" },
6281
6281
  { title: "Upload", const: "UploadFile" },
6282
6282
  { title: "Tree ", const: "TreeMap" },
6283
- { title: "Thought of the day", const: "Thought" }
6283
+ { title: "Thought of the day", const: "Thought" },
6284
+ { title: "Split View Container", const: "SplitViewContainer" }
6284
6285
  ]
6285
6286
  },
6286
6287
  elementType: {
@@ -8220,6 +8221,12 @@ const buildPropertiesSection = function(type) {
8220
8221
  emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8221
8222
  ];
8222
8223
  break;
8224
+ case "SplitViewContainer":
8225
+ uiSchema.elements = [
8226
+ getInputField("collapsePanelHeight", "Expanded Panel Height"),
8227
+ emptyBox$1("splitViewContainer", { xs: 6, sm: 6, md: 8, lg: 9 })
8228
+ ];
8229
+ break;
8223
8230
  case "TabSection":
8224
8231
  uiSchema.elements = [
8225
8232
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
@@ -8294,7 +8301,7 @@ const buildPropertiesSection = function(type) {
8294
8301
  getSelectField("variant", "Variant"),
8295
8302
  getInputField("toolTip", "Tooltip"),
8296
8303
  getSelectField("toolTipPosition", "Tooltip Position"),
8297
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8304
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8298
8305
  ];
8299
8306
  break;
8300
8307
  case "DateTime":
@@ -8302,7 +8309,7 @@ const buildPropertiesSection = function(type) {
8302
8309
  getSelectField("variant", "Variant"),
8303
8310
  getInputField("toolTip", "Tooltip"),
8304
8311
  getSelectField("toolTipPosition", "Tooltip Position"),
8305
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8312
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8306
8313
  ];
8307
8314
  break;
8308
8315
  case "Thought":
@@ -8862,7 +8869,7 @@ const sectionLabels = {
8862
8869
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8863
8870
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8864
8871
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8865
- PopUp: ["Core", "Components", "Properties", "Style"],
8872
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8866
8873
  PopOver: ["Core", "Components", "Properties", "Style"],
8867
8874
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8868
8875
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
@@ -8875,7 +8882,8 @@ const sectionLabels = {
8875
8882
  Image: ["Core", "Properties", "Events", "Style"],
8876
8883
  FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
8877
8884
  Camera: ["Core", "Properties", "Events", "Style", "Validation"],
8878
- OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
8885
+ OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"],
8886
+ SplitViewContainer: ["Core", "Components", "Properties", "Style"]
8879
8887
  };
8880
8888
  function refreshPage(type, store2) {
8881
8889
  var _a, _b;
@@ -9447,7 +9455,9 @@ const EventSchema = {
9447
9455
  { title: "Row Movement", const: "onRowMovement" },
9448
9456
  { title: "Download", const: "onDownload" },
9449
9457
  { title: "Fail", const: "Fail" },
9450
- { title: "Key Down", const: "onKeyDown" }
9458
+ { title: "onClose", const: "onClose" },
9459
+ { title: "Key Down", const: "onKeyDown" },
9460
+ { title: "Set Style", const: "setStyle" }
9451
9461
  ]
9452
9462
  },
9453
9463
  Handler: {
@@ -10833,6 +10843,25 @@ var service = (funcParams) => {
10833
10843
  funcParams.store.setUiSchema(uiSchema);
10834
10844
  });
10835
10845
  },
10846
+ getStyle: () => {
10847
+ var _a, _b, _c, _d;
10848
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10849
+ if (cloneEventGroup.setStyle) {
10850
+ let finalResponse = {};
10851
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10852
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10853
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10854
+ finalResponse = executeEvents({
10855
+ ...executeEventsParameters,
10856
+ config: eventConfig,
10857
+ componentName: path
10858
+ });
10859
+ }
10860
+ return finalResponse;
10861
+ }
10862
+ }
10863
+ return {};
10864
+ },
10836
10865
  onCellRenderer: (cellParams) => {
10837
10866
  var _a, _b, _c, _d, _e;
10838
10867
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10862,6 +10891,9 @@ var service = (funcParams) => {
10862
10891
  onFileDelete: async function() {
10863
10892
  this.callHandler("onFileDelete");
10864
10893
  },
10894
+ onClose: function() {
10895
+ this.callHandler("onClose");
10896
+ },
10865
10897
  onMount: function() {
10866
10898
  this.callHandler("onMount");
10867
10899
  },
@@ -12139,7 +12171,6 @@ const DateTime = {
12139
12171
  const buildDate = (config2, componentScope2) => {
12140
12172
  const dateInputField = _.cloneDeep(DateInputField);
12141
12173
  dateInputField.config.main.label = config2.label;
12142
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12143
12174
  dateInputField.scope = componentScope2;
12144
12175
  if (config2.layout) {
12145
12176
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12161,7 +12192,6 @@ const buildDate = (config2, componentScope2) => {
12161
12192
  const buildDateTime = (config2, componentScope2) => {
12162
12193
  const dateTimeInputField = _.cloneDeep(DateTime);
12163
12194
  dateTimeInputField.config.main.label = config2.label;
12164
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12165
12195
  dateTimeInputField.scope = componentScope2;
12166
12196
  if (config2.layout) {
12167
12197
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12703,6 +12733,7 @@ const PopUP = {
12703
12733
  },
12704
12734
  main: {
12705
12735
  label: "PopUp",
12736
+ onClose: "onClose",
12706
12737
  fullScreen: false,
12707
12738
  fullWidth: false,
12708
12739
  maxWidth: false,
@@ -13161,6 +13192,31 @@ const buildOTP_Input = (config2, componentScope2) => {
13161
13192
  OTP.config.main.length = +config2.length;
13162
13193
  return OTP;
13163
13194
  };
13195
+ var SplitViewContainer = {
13196
+ type: "Control",
13197
+ scope: "#/properties/SplitViewContainerPath",
13198
+ options: {
13199
+ widget: "SplitViewContainer"
13200
+ },
13201
+ config: {
13202
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13203
+ main: {}
13204
+ }
13205
+ };
13206
+ const buildSplitViewContainer = (config2, componentScope2, store2) => {
13207
+ const splitViewContainer = _.cloneDeep(SplitViewContainer);
13208
+ splitViewContainer.scope = componentScope2;
13209
+ if (config2.collapsePanelHeight) {
13210
+ splitViewContainer.config.main.collapsePanelHeight = config2.collapsePanelHeight;
13211
+ }
13212
+ if (config2.style) {
13213
+ splitViewContainer.config.style = JSON.parse(config2.style);
13214
+ }
13215
+ if (config2.layout) {
13216
+ splitViewContainer.config.layout = createLayoutFormat(config2.layout);
13217
+ }
13218
+ return splitViewContainer;
13219
+ };
13164
13220
  let schema = {
13165
13221
  type: "object",
13166
13222
  properties: {},
@@ -13391,6 +13447,8 @@ const buildUiSchema = (config2, store2) => {
13391
13447
  case "Camera":
13392
13448
  elements = buildCamera(config2, componentScope2);
13393
13449
  break;
13450
+ case "SplitViewContainer":
13451
+ elements = buildSplitViewContainer(config2, componentScope2);
13394
13452
  default:
13395
13453
  schema = {
13396
13454
  type: "object",