impaktapps-ui-builder 1.0.293-hdb → 1.0.293

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,6 +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: "Hierarchy Chart", const: "HierarchyChart" },
6275
6276
  { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6276
6277
  { title: "Table", const: "Table" },
6277
6278
  { title: "Tabs", const: "TabSection" },
@@ -6335,6 +6336,13 @@ const ComponentSchema = {
6335
6336
  { title: "Standard", const: "standard" }
6336
6337
  ]
6337
6338
  },
6339
+ linkType: {
6340
+ oneOf: [
6341
+ { title: "Step", const: "step" },
6342
+ { title: "Diagonal", const: "diagonal" },
6343
+ { title: "Line", const: "line" }
6344
+ ]
6345
+ },
6338
6346
  positionVertical: {
6339
6347
  oneOf: [
6340
6348
  { title: "Top", const: "top" },
@@ -6711,7 +6719,12 @@ const ComponentSchema = {
6711
6719
  { title: "Clone Icon", const: "CloneIcon" },
6712
6720
  { title: "Detail Icon", const: "DetailIcon" },
6713
6721
  { title: "Report View Icon", const: "ReportViewIcon" },
6714
- { title: "Payout", const: "Payout" }
6722
+ { title: "Payout", const: "Payout" },
6723
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6724
+ { title: "Territory Add", const: "TerritoryAdd" },
6725
+ { title: "Territory Edit", const: "TerritoryEdit" },
6726
+ { title: "Territory Delete", const: "TerritoryDelete" },
6727
+ { title: "Git Compare", const: "GitCompare" }
6715
6728
  ]
6716
6729
  },
6717
6730
  color: {
@@ -8152,6 +8165,17 @@ const buildPropertiesSection = function(type) {
8152
8165
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8153
8166
  ];
8154
8167
  break;
8168
+ case "HierarchyChart":
8169
+ uiSchema.elements = [
8170
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8171
+ getSelectField("linkType", "Link Type"),
8172
+ getInputField("nodeWidth", "Node Width"),
8173
+ getInputField("nodeHeight", "Node Height"),
8174
+ getInputField("chartHeight", "Chart Height"),
8175
+ getInputField("stepPercent", "Link Bend Position"),
8176
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8177
+ ];
8178
+ break;
8155
8179
  case "MetricCard":
8156
8180
  uiSchema.elements = [
8157
8181
  getInputField("url", "Image Url"),
@@ -8697,9 +8721,9 @@ var buildConfig = (FormData) => {
8697
8721
  if (formData.events) {
8698
8722
  delete formData.events;
8699
8723
  }
8700
- if (formData.tabLabelsElements) {
8701
- component.tabLabelsElements = formData.tabLabelsElements || [];
8702
- delete formData.tabLabelsElements;
8724
+ if (formData.tabLabelElements) {
8725
+ component.tabLabelElements = formData.tabLabelElements || [];
8726
+ delete formData.tabLabelElements;
8703
8727
  }
8704
8728
  component = { ...formData, ...component };
8705
8729
  return component;
@@ -8859,7 +8883,7 @@ const sectionLabels = {
8859
8883
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8860
8884
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8861
8885
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8862
- TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
8886
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8863
8887
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8864
8888
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8865
8889
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8871,6 +8895,7 @@ const sectionLabels = {
8871
8895
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8872
8896
  RankCard: ["Core", "Properties", "Events", "Style"],
8873
8897
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8898
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8874
8899
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8875
8900
  Timer: ["Core", "Events", "Style"],
8876
8901
  Rank: ["Core", "Events", "Style"],
@@ -8907,7 +8932,7 @@ function refreshPage(type, store2) {
8907
8932
  Style: StyleSection,
8908
8933
  Events: EventSection(store2.theme.myTheme),
8909
8934
  Components: TableSection(store2.theme.myTheme),
8910
- TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
8935
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8911
8936
  Properties: buildPropertiesSection(type),
8912
8937
  Validation: ValidationSection
8913
8938
  };
@@ -9106,8 +9131,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9106
9131
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9107
9132
  if (path) {
9108
9133
  let finalPath = `${path}`;
9109
- if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
9110
- finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
9134
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9135
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9111
9136
  } else {
9112
9137
  finalPath = `${finalPath}.elements[${rowId}]`;
9113
9138
  }
@@ -9124,7 +9149,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9124
9149
  const rowId = sessionStorage.getItem("rowId");
9125
9150
  const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9126
9151
  if (isTabLabelElements) {
9127
- store2.formData.tabLabelsElements.splice(rowId, 1);
9152
+ store2.formData.tabLabelElements.splice(rowId, 1);
9128
9153
  } else {
9129
9154
  store2.formData.elements.splice(rowId, 1);
9130
9155
  }
@@ -9156,14 +9181,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9156
9181
  if (!Array.isArray(store2.formData.elements)) {
9157
9182
  store2.formData.elements = [];
9158
9183
  }
9159
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9160
- store2.formData.tabLabelsElements = [];
9184
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9185
+ store2.formData.tabLabelElements = [];
9161
9186
  }
9162
9187
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9163
9188
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9164
9189
  let finalPath = `${path}`;
9165
- if (dynamicData2.path.startsWith("tabLabels")) {
9166
- finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
9190
+ if (dynamicData2.path.startsWith("tabLabel")) {
9191
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9167
9192
  } else {
9168
9193
  finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9169
9194
  }
@@ -9201,7 +9226,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9201
9226
  deletePopUpComponent: function() {
9202
9227
  const rowId = dynamicData2.path.split(".")[1];
9203
9228
  sessionStorage.setItem("rowId", rowId);
9204
- sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
9229
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9205
9230
  store2.updateDialog("popUpComponentSection");
9206
9231
  },
9207
9232
  deletePopUpEvent: function() {
@@ -9248,13 +9273,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9248
9273
  if (!Array.isArray(store2.formData.events)) {
9249
9274
  store2.formData.events = [];
9250
9275
  }
9251
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9252
- store2.formData.tabLabelsElements = [];
9276
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9277
+ store2.formData.tabLabelElements = [];
9253
9278
  }
9254
9279
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9255
9280
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9256
9281
  const currentLength = {
9257
- "TabsComponent": formData.tabLabelsElements.length,
9282
+ "TabsComponent": formData.tabLabelElements.length,
9258
9283
  "Component": formData.elements.length,
9259
9284
  "Events": formData.events.length
9260
9285
  };
@@ -9294,7 +9319,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9294
9319
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9295
9320
  }
9296
9321
  if (elementType === "TabsComponent") {
9297
- return `${parentPath}.tabLabelsElements[${rowId}]`;
9322
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9298
9323
  }
9299
9324
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9300
9325
  },
@@ -10971,6 +10996,13 @@ var service = (funcParams) => {
10971
10996
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10972
10997
  return response == null ? void 0 : response.data;
10973
10998
  },
10999
+ onNodeExpandChange: async function(param) {
11000
+ const apiBody = [
11001
+ { key: "expandedNodeId", value: param.expandedNodeId }
11002
+ ];
11003
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
11004
+ return response == null ? void 0 : response.data;
11005
+ },
10974
11006
  getSelectOptions: async function(param) {
10975
11007
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10976
11008
  const apiBody = [
@@ -13345,6 +13377,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13345
13377
  }
13346
13378
  return PdfViewer;
13347
13379
  };
13380
+ const HierarchyChart = {
13381
+ type: "Control",
13382
+ scope: "#/properties/HierarchyChart",
13383
+ options: {
13384
+ widget: "HierarchyChart"
13385
+ },
13386
+ config: {
13387
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13388
+ main: {},
13389
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13390
+ }
13391
+ };
13392
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13393
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13394
+ hierarchyChart.scope = componentScope2;
13395
+ if (config2.style) {
13396
+ hierarchyChart.config.style = JSON.parse(config2.style);
13397
+ }
13398
+ if (config2.layout) {
13399
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13400
+ }
13401
+ if (config2.linkType) {
13402
+ hierarchyChart.config.main.linkType = config2.linkType;
13403
+ }
13404
+ if (config2.stepPercent) {
13405
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13406
+ }
13407
+ if (config2.nodeWidth) {
13408
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13409
+ }
13410
+ if (config2.nodeHeight) {
13411
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13412
+ }
13413
+ if (config2.chartHeight) {
13414
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13415
+ }
13416
+ if (config2.lazyLoading) {
13417
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13418
+ }
13419
+ return hierarchyChart;
13420
+ };
13348
13421
  let schema = {
13349
13422
  type: "object",
13350
13423
  properties: {},
@@ -13508,6 +13581,9 @@ const buildUiSchema = (config2, store2) => {
13508
13581
  case "MetricCard":
13509
13582
  elements = buildMetricCard(config2, componentScope2);
13510
13583
  break;
13584
+ case "HierarchyChart":
13585
+ elements = buildHierarchyChart(config2, componentScope2);
13586
+ break;
13511
13587
  case "Graph":
13512
13588
  switch (config2.graphType) {
13513
13589
  case "BarGraph":
@@ -13684,8 +13760,8 @@ const buildUiSchema = (config2, store2) => {
13684
13760
  });
13685
13761
  }
13686
13762
  }
13687
- if (config2.tabLabelsElements) {
13688
- elements.tabLabelsElements = config2.tabLabelsElements.map((e, elemInd) => {
13763
+ if (config2.tabLabelElements) {
13764
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13689
13765
  return buildUiSchema(e, store2);
13690
13766
  });
13691
13767
  }