impaktapps-ui-builder 1.0.195 → 1.0.197

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"),
@@ -8261,6 +8280,9 @@ const buildPropertiesSection = function(type) {
8261
8280
  getMultiSelectField("filteringOptions", "Filtering Options"),
8262
8281
  getSelectField("maxPageSize", "Max Page Size"),
8263
8282
  getSelectField("initialDensity", "Initial Toggle Density"),
8283
+ getInputField("expandedKey", "Expand Row ID Key"),
8284
+ getInputField("parentIdKey", "Expand Parent Key"),
8285
+ emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8264
8286
  buildWrapper("Tree Table Properties", [
8265
8287
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8266
8288
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -8876,6 +8898,7 @@ const sectionLabels = {
8876
8898
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8877
8899
  RankCard: ["Core", "Properties", "Events", "Style"],
8878
8900
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8901
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8879
8902
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8880
8903
  Timer: ["Core", "Events", "Style"],
8881
8904
  Rank: ["Core", "Events", "Style"],
@@ -9504,7 +9527,8 @@ const EventSchema = {
9504
9527
  { title: "Fail", const: "Fail" },
9505
9528
  { title: "onClose", const: "onClose" },
9506
9529
  { title: "Key Down", const: "onKeyDown" },
9507
- { title: "Set Style", const: "setStyle" }
9530
+ { title: "Set Style", const: "setStyle" },
9531
+ { title: "Expand Node", const: "onNodeExpandChange" }
9508
9532
  ]
9509
9533
  },
9510
9534
  Handler: {
@@ -10977,6 +11001,13 @@ var service = (funcParams) => {
10977
11001
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10978
11002
  return response == null ? void 0 : response.data;
10979
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
+ },
10980
11011
  getSelectOptions: async function(param) {
10981
11012
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10982
11013
  const apiBody = [
@@ -11848,6 +11879,12 @@ const buildTable = (config2, componentScope2) => {
11848
11879
  if (config2.selectKey) {
11849
11880
  table.config.main.selectKey = config2.selectKey;
11850
11881
  }
11882
+ if (config2.expandedKey) {
11883
+ table.config.main.expandedKey = config2.expandedKey;
11884
+ }
11885
+ if (config2.parentIdKey) {
11886
+ table.config.main.parentIdKey = config2.parentIdKey;
11887
+ }
11851
11888
  if (config2.maxPageSize) {
11852
11889
  table.config.main.maxPageSize = config2.maxPageSize;
11853
11890
  }
@@ -13354,6 +13391,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13354
13391
  }
13355
13392
  return PdfViewer;
13356
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
+ };
13357
13435
  let schema = {
13358
13436
  type: "object",
13359
13437
  properties: {},
@@ -13517,6 +13595,9 @@ const buildUiSchema = (config2, store2) => {
13517
13595
  case "MetricCard":
13518
13596
  elements = buildMetricCard(config2, componentScope2);
13519
13597
  break;
13598
+ case "HierarchyChart":
13599
+ elements = buildHierarchyChart(config2, componentScope2);
13600
+ break;
13520
13601
  case "Graph":
13521
13602
  switch (config2.graphType) {
13522
13603
  case "BarGraph":