impaktapps-ui-builder 1.0.292-hdb → 1.0.292

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" },
@@ -8152,6 +8160,17 @@ const buildPropertiesSection = function(type) {
8152
8160
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8153
8161
  ];
8154
8162
  break;
8163
+ case "HierarchyChart":
8164
+ uiSchema.elements = [
8165
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8166
+ getSelectField("linkType", "Link Type"),
8167
+ getInputField("nodeWidth", "Node Width"),
8168
+ getInputField("nodeHeight", "Node Height"),
8169
+ getInputField("chartHeight", "Chart Height"),
8170
+ getInputField("stepPercent", "Link Bend Position"),
8171
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8172
+ ];
8173
+ break;
8155
8174
  case "MetricCard":
8156
8175
  uiSchema.elements = [
8157
8176
  getInputField("url", "Image Url"),
@@ -8697,9 +8716,9 @@ var buildConfig = (FormData) => {
8697
8716
  if (formData.events) {
8698
8717
  delete formData.events;
8699
8718
  }
8700
- if (formData.tabLabelsElements) {
8701
- component.tabLabelsElements = formData.tabLabelsElements || [];
8702
- delete formData.tabLabelsElements;
8719
+ if (formData.tabLabelElements) {
8720
+ component.tabLabelElements = formData.tabLabelElements || [];
8721
+ delete formData.tabLabelElements;
8703
8722
  }
8704
8723
  component = { ...formData, ...component };
8705
8724
  return component;
@@ -8859,7 +8878,7 @@ const sectionLabels = {
8859
8878
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8860
8879
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8861
8880
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8862
- TabSection: ["Core", "Components", "TabLebelComponet", "Properties", "Style", "Validation"],
8881
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8863
8882
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8864
8883
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8865
8884
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8871,6 +8890,7 @@ const sectionLabels = {
8871
8890
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8872
8891
  RankCard: ["Core", "Properties", "Events", "Style"],
8873
8892
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8893
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8874
8894
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8875
8895
  Timer: ["Core", "Events", "Style"],
8876
8896
  Rank: ["Core", "Events", "Style"],
@@ -8907,7 +8927,7 @@ function refreshPage(type, store2) {
8907
8927
  Style: StyleSection,
8908
8928
  Events: EventSection(store2.theme.myTheme),
8909
8929
  Components: TableSection(store2.theme.myTheme),
8910
- TabLebelComponet: TableSection(store2.theme.myTheme, "tabLabelsElements"),
8930
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8911
8931
  Properties: buildPropertiesSection(type),
8912
8932
  Validation: ValidationSection
8913
8933
  };
@@ -9106,8 +9126,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9106
9126
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9107
9127
  if (path) {
9108
9128
  let finalPath = `${path}`;
9109
- if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabels")) {
9110
- finalPath = `${finalPath}.tabLabelsElements[${rowId}]`;
9129
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9130
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9111
9131
  } else {
9112
9132
  finalPath = `${finalPath}.elements[${rowId}]`;
9113
9133
  }
@@ -9124,7 +9144,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9124
9144
  const rowId = sessionStorage.getItem("rowId");
9125
9145
  const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9126
9146
  if (isTabLabelElements) {
9127
- store2.formData.tabLabelsElements.splice(rowId, 1);
9147
+ store2.formData.tabLabelElements.splice(rowId, 1);
9128
9148
  } else {
9129
9149
  store2.formData.elements.splice(rowId, 1);
9130
9150
  }
@@ -9156,14 +9176,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9156
9176
  if (!Array.isArray(store2.formData.elements)) {
9157
9177
  store2.formData.elements = [];
9158
9178
  }
9159
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9160
- store2.formData.tabLabelsElements = [];
9179
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9180
+ store2.formData.tabLabelElements = [];
9161
9181
  }
9162
9182
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9163
9183
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9164
9184
  let finalPath = `${path}`;
9165
- if (dynamicData2.path.startsWith("tabLabels")) {
9166
- finalPath = `${finalPath}.tabLabelsElements[${store2.formData.tabLabelsElements.length}]`;
9185
+ if (dynamicData2.path.startsWith("tabLabel")) {
9186
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9167
9187
  } else {
9168
9188
  finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9169
9189
  }
@@ -9201,7 +9221,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9201
9221
  deletePopUpComponent: function() {
9202
9222
  const rowId = dynamicData2.path.split(".")[1];
9203
9223
  sessionStorage.setItem("rowId", rowId);
9204
- sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabels") ? "true" : "false");
9224
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9205
9225
  store2.updateDialog("popUpComponentSection");
9206
9226
  },
9207
9227
  deletePopUpEvent: function() {
@@ -9248,13 +9268,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9248
9268
  if (!Array.isArray(store2.formData.events)) {
9249
9269
  store2.formData.events = [];
9250
9270
  }
9251
- if (!Array.isArray(store2.formData.tabLabelsElements)) {
9252
- store2.formData.tabLabelsElements = [];
9271
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9272
+ store2.formData.tabLabelElements = [];
9253
9273
  }
9254
9274
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9255
9275
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9256
9276
  const currentLength = {
9257
- "TabsComponent": formData.tabLabelsElements.length,
9277
+ "TabsComponent": formData.tabLabelElements.length,
9258
9278
  "Component": formData.elements.length,
9259
9279
  "Events": formData.events.length
9260
9280
  };
@@ -9294,7 +9314,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9294
9314
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9295
9315
  }
9296
9316
  if (elementType === "TabsComponent") {
9297
- return `${parentPath}.tabLabelsElements[${rowId}]`;
9317
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9298
9318
  }
9299
9319
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9300
9320
  },
@@ -10971,6 +10991,13 @@ var service = (funcParams) => {
10971
10991
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10972
10992
  return response == null ? void 0 : response.data;
10973
10993
  },
10994
+ onNodeExpandChange: async function(param) {
10995
+ const apiBody = [
10996
+ { key: "expandedNodeId", value: param.expandedNodeId }
10997
+ ];
10998
+ const response = await this.callExecuteEvents(param, apiBody, "onLoad");
10999
+ return response == null ? void 0 : response.data;
11000
+ },
10974
11001
  getSelectOptions: async function(param) {
10975
11002
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10976
11003
  const apiBody = [
@@ -13345,6 +13372,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13345
13372
  }
13346
13373
  return PdfViewer;
13347
13374
  };
13375
+ const HierarchyChart = {
13376
+ type: "Control",
13377
+ scope: "#/properties/HierarchyChart",
13378
+ options: {
13379
+ widget: "HierarchyChart"
13380
+ },
13381
+ config: {
13382
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13383
+ main: {},
13384
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13385
+ }
13386
+ };
13387
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13388
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13389
+ hierarchyChart.scope = componentScope2;
13390
+ if (config2.style) {
13391
+ hierarchyChart.config.style = JSON.parse(config2.style);
13392
+ }
13393
+ if (config2.layout) {
13394
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13395
+ }
13396
+ if (config2.linkType) {
13397
+ hierarchyChart.config.main.linkType = config2.linkType;
13398
+ }
13399
+ if (config2.stepPercent) {
13400
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13401
+ }
13402
+ if (config2.nodeWidth) {
13403
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13404
+ }
13405
+ if (config2.nodeHeight) {
13406
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13407
+ }
13408
+ if (config2.chartHeight) {
13409
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13410
+ }
13411
+ if (config2.lazyLoading) {
13412
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13413
+ }
13414
+ return hierarchyChart;
13415
+ };
13348
13416
  let schema = {
13349
13417
  type: "object",
13350
13418
  properties: {},
@@ -13508,6 +13576,9 @@ const buildUiSchema = (config2, store2) => {
13508
13576
  case "MetricCard":
13509
13577
  elements = buildMetricCard(config2, componentScope2);
13510
13578
  break;
13579
+ case "HierarchyChart":
13580
+ elements = buildHierarchyChart(config2, componentScope2);
13581
+ break;
13511
13582
  case "Graph":
13512
13583
  switch (config2.graphType) {
13513
13584
  case "BarGraph":
@@ -13684,6 +13755,11 @@ const buildUiSchema = (config2, store2) => {
13684
13755
  });
13685
13756
  }
13686
13757
  }
13758
+ if (config2.tabLabelElements) {
13759
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13760
+ return buildUiSchema(e, store2);
13761
+ });
13762
+ }
13687
13763
  return elements;
13688
13764
  };
13689
13765
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };