impaktapps-ui-builder 1.0.486 → 1.0.487

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"),
@@ -8879,6 +8898,7 @@ const sectionLabels = {
8879
8898
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8880
8899
  RankCard: ["Core", "Properties", "Events", "Style"],
8881
8900
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8901
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8882
8902
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8883
8903
  Timer: ["Core", "Events", "Style"],
8884
8904
  Rank: ["Core", "Events", "Style"],
@@ -9507,7 +9527,8 @@ const EventSchema = {
9507
9527
  { title: "Fail", const: "Fail" },
9508
9528
  { title: "onClose", const: "onClose" },
9509
9529
  { title: "Key Down", const: "onKeyDown" },
9510
- { title: "Set Style", const: "setStyle" }
9530
+ { title: "Set Style", const: "setStyle" },
9531
+ { title: "Expand Node", const: "onNodeExpandChange" }
9511
9532
  ]
9512
9533
  },
9513
9534
  Handler: {
@@ -10980,6 +11001,13 @@ var service = (funcParams) => {
10980
11001
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10981
11002
  return response == null ? void 0 : response.data;
10982
11003
  },
11004
+ onNodeExpandChange: async function(param) {
11005
+ const apiBody = [
11006
+ { key: "expandedNodeId", value: param.expandedNodeId }
11007
+ ];
11008
+ const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
11009
+ return response == null ? void 0 : response.data;
11010
+ },
10983
11011
  getSelectOptions: async function(param) {
10984
11012
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10985
11013
  const apiBody = [
@@ -12612,6 +12640,9 @@ const buildEmptyBox = (config2, componentScope2) => {
12612
12640
  if (config2.layout) {
12613
12641
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
12614
12642
  }
12643
+ if (config2.style) {
12644
+ EmptyBox.config.style = JSON.parse(config2.style);
12645
+ }
12615
12646
  return EmptyBox;
12616
12647
  };
12617
12648
  const ArrayUiSchema = {
@@ -13360,6 +13391,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13360
13391
  }
13361
13392
  return PdfViewer;
13362
13393
  };
13394
+ const HierarchyChart = {
13395
+ type: "Control",
13396
+ scope: "#/properties/HierarchyChart",
13397
+ options: {
13398
+ widget: "HierarchyChart"
13399
+ },
13400
+ config: {
13401
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13402
+ main: {},
13403
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13404
+ }
13405
+ };
13406
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13407
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13408
+ hierarchyChart.scope = componentScope2;
13409
+ if (config2.style) {
13410
+ hierarchyChart.config.style = JSON.parse(config2.style);
13411
+ }
13412
+ if (config2.layout) {
13413
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13414
+ }
13415
+ if (config2.linkType) {
13416
+ hierarchyChart.config.main.linkType = config2.linkType;
13417
+ }
13418
+ if (config2.stepPercent) {
13419
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13420
+ }
13421
+ if (config2.nodeWidth) {
13422
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13423
+ }
13424
+ if (config2.nodeHeight) {
13425
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13426
+ }
13427
+ if (config2.chartHeight) {
13428
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13429
+ }
13430
+ if (config2.lazyLoading) {
13431
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13432
+ }
13433
+ return hierarchyChart;
13434
+ };
13363
13435
  let schema = {
13364
13436
  type: "object",
13365
13437
  properties: {},
@@ -13523,6 +13595,9 @@ const buildUiSchema = (config2, store2) => {
13523
13595
  case "MetricCard":
13524
13596
  elements = buildMetricCard(config2, componentScope2);
13525
13597
  break;
13598
+ case "HierarchyChart":
13599
+ elements = buildHierarchyChart(config2, componentScope2);
13600
+ break;
13526
13601
  case "Graph":
13527
13602
  switch (config2.graphType) {
13528
13603
  case "BarGraph":