impaktapps-ui-builder 1.0.195 → 1.0.196-test

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" },
@@ -8158,6 +8166,17 @@ const buildPropertiesSection = function(type) {
8158
8166
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8159
8167
  ];
8160
8168
  break;
8169
+ case "HierarchyChart":
8170
+ uiSchema.elements = [
8171
+ getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
8172
+ getSelectField("linkType", "Link Type"),
8173
+ getInputField("nodeWidth", "Node Width"),
8174
+ getInputField("nodeHeight", "Node Height"),
8175
+ getInputField("chartHeight", "Chart Height"),
8176
+ getInputField("stepPercent", "Link Bend Position"),
8177
+ emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
8178
+ ];
8179
+ break;
8161
8180
  case "MetricCard":
8162
8181
  uiSchema.elements = [
8163
8182
  getInputField("url", "Image Url"),
@@ -8876,6 +8895,7 @@ const sectionLabels = {
8876
8895
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8877
8896
  RankCard: ["Core", "Properties", "Events", "Style"],
8878
8897
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8898
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8879
8899
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8880
8900
  Timer: ["Core", "Events", "Style"],
8881
8901
  Rank: ["Core", "Events", "Style"],
@@ -9504,7 +9524,8 @@ const EventSchema = {
9504
9524
  { title: "Fail", const: "Fail" },
9505
9525
  { title: "onClose", const: "onClose" },
9506
9526
  { title: "Key Down", const: "onKeyDown" },
9507
- { title: "Set Style", const: "setStyle" }
9527
+ { title: "Set Style", const: "setStyle" },
9528
+ { title: "Expand Node", const: "onNodeExpandChange" }
9508
9529
  ]
9509
9530
  },
9510
9531
  Handler: {
@@ -10489,7 +10510,7 @@ function downloadFile$1({ data, name }) {
10489
10510
  URL.revokeObjectURL(url);
10490
10511
  }
10491
10512
  const downloadFileFromUrl = (response, service2) => {
10492
- let url = `${service2.defaults.baseURL}/${response.path}`;
10513
+ let url = `${service2.defaults.baseURL}${response.path}`;
10493
10514
  if (response == null ? void 0 : response.params) {
10494
10515
  const keysArray = Object.keys(response == null ? void 0 : response.params);
10495
10516
  keysArray.map((e, i) => {
@@ -10977,6 +10998,13 @@ var service = (funcParams) => {
10977
10998
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10978
10999
  return response == null ? void 0 : response.data;
10979
11000
  },
11001
+ onNodeExpandChange: async function(param) {
11002
+ const apiBody = [
11003
+ { key: "expandedNodeId", value: param.expandedNodeId }
11004
+ ];
11005
+ const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
11006
+ return response == null ? void 0 : response.data;
11007
+ },
10980
11008
  getSelectOptions: async function(param) {
10981
11009
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10982
11010
  const apiBody = [
@@ -13354,6 +13382,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13354
13382
  }
13355
13383
  return PdfViewer;
13356
13384
  };
13385
+ const HierarchyChart = {
13386
+ type: "Control",
13387
+ scope: "#/properties/HierarchyChart",
13388
+ options: {
13389
+ widget: "HierarchyChart"
13390
+ },
13391
+ config: {
13392
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13393
+ main: {},
13394
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13395
+ }
13396
+ };
13397
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13398
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13399
+ hierarchyChart.scope = componentScope2;
13400
+ if (config2.style) {
13401
+ hierarchyChart.config.style = JSON.parse(config2.style);
13402
+ }
13403
+ if (config2.layout) {
13404
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13405
+ }
13406
+ if (config2.linkType) {
13407
+ hierarchyChart.config.main.linkType = config2.linkType;
13408
+ }
13409
+ if (config2.stepPercent) {
13410
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13411
+ }
13412
+ if (config2.nodeWidth) {
13413
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13414
+ }
13415
+ if (config2.nodeHeight) {
13416
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13417
+ }
13418
+ if (config2.chartHeight) {
13419
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13420
+ }
13421
+ if (config2.lazyLoading) {
13422
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13423
+ }
13424
+ return hierarchyChart;
13425
+ };
13357
13426
  let schema = {
13358
13427
  type: "object",
13359
13428
  properties: {},
@@ -13517,6 +13586,9 @@ const buildUiSchema = (config2, store2) => {
13517
13586
  case "MetricCard":
13518
13587
  elements = buildMetricCard(config2, componentScope2);
13519
13588
  break;
13589
+ case "HierarchyChart":
13590
+ elements = buildHierarchyChart(config2, componentScope2);
13591
+ break;
13520
13592
  case "Graph":
13521
13593
  switch (config2.graphType) {
13522
13594
  case "BarGraph":