impaktapps-ui-builder 1.0.485 → 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" },
@@ -8088,7 +8096,8 @@ const buildPropertiesSection = function(type) {
8088
8096
  getSelectField("variant", "Variant"),
8089
8097
  getInputField("toolTip", "Tooltip"),
8090
8098
  getSelectField("toolTipPosition", "Tooltip Position"),
8091
- emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
8099
+ getSelectField("iconName", "Start Icon"),
8100
+ emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
8092
8101
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8093
8102
  getInputField("keyName", "Event Key Name")
8094
8103
  ];
@@ -8157,6 +8166,17 @@ const buildPropertiesSection = function(type) {
8157
8166
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8158
8167
  ];
8159
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;
8160
8180
  case "MetricCard":
8161
8181
  uiSchema.elements = [
8162
8182
  getInputField("url", "Image Url"),
@@ -8878,6 +8898,7 @@ const sectionLabels = {
8878
8898
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8879
8899
  RankCard: ["Core", "Properties", "Events", "Style"],
8880
8900
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8901
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8881
8902
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8882
8903
  Timer: ["Core", "Events", "Style"],
8883
8904
  Rank: ["Core", "Events", "Style"],
@@ -9506,7 +9527,8 @@ const EventSchema = {
9506
9527
  { title: "Fail", const: "Fail" },
9507
9528
  { title: "onClose", const: "onClose" },
9508
9529
  { title: "Key Down", const: "onKeyDown" },
9509
- { title: "Set Style", const: "setStyle" }
9530
+ { title: "Set Style", const: "setStyle" },
9531
+ { title: "Expand Node", const: "onNodeExpandChange" }
9510
9532
  ]
9511
9533
  },
9512
9534
  Handler: {
@@ -10979,6 +11001,13 @@ var service = (funcParams) => {
10979
11001
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10980
11002
  return response == null ? void 0 : response.data;
10981
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
+ },
10982
11011
  getSelectOptions: async function(param) {
10983
11012
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10984
11013
  const apiBody = [
@@ -11651,6 +11680,9 @@ const buildTextField = (config2, componentScope2) => {
11651
11680
  if (config2.toolTipPosition) {
11652
11681
  inputField.config.main.toolTipPosition = config2.toolTipPosition;
11653
11682
  }
11683
+ if (config2.iconName) {
11684
+ inputField.config.main.startIcon = config2.iconName;
11685
+ }
11654
11686
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11655
11687
  inputField.scope = componentScope2;
11656
11688
  return inputField;
@@ -12608,6 +12640,9 @@ const buildEmptyBox = (config2, componentScope2) => {
12608
12640
  if (config2.layout) {
12609
12641
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
12610
12642
  }
12643
+ if (config2.style) {
12644
+ EmptyBox.config.style = JSON.parse(config2.style);
12645
+ }
12611
12646
  return EmptyBox;
12612
12647
  };
12613
12648
  const ArrayUiSchema = {
@@ -13356,6 +13391,47 @@ const buildPdfViewer = (config2, componentScope2) => {
13356
13391
  }
13357
13392
  return PdfViewer;
13358
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
+ };
13359
13435
  let schema = {
13360
13436
  type: "object",
13361
13437
  properties: {},
@@ -13519,6 +13595,9 @@ const buildUiSchema = (config2, store2) => {
13519
13595
  case "MetricCard":
13520
13596
  elements = buildMetricCard(config2, componentScope2);
13521
13597
  break;
13598
+ case "HierarchyChart":
13599
+ elements = buildHierarchyChart(config2, componentScope2);
13600
+ break;
13522
13601
  case "Graph":
13523
13602
  switch (config2.graphType) {
13524
13603
  case "BarGraph":