impaktapps-ui-builder 1.0.320 → 1.0.330

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.
Files changed (35) hide show
  1. package/dist/impaktapps-ui-builder.es.js +330 -43
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +8 -8
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +1 -1
  12. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +3 -0
  13. package/package.json +1 -1
  14. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +3 -3
  15. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +11 -7
  16. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -2
  17. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +3 -0
  18. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  19. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  20. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  21. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  22. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -3
  23. package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
  24. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +17 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -0
  26. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +46 -15
  27. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -1
  28. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
  29. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  30. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  31. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +5 -6
  32. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +20 -5
  33. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +3 -4
  34. package/src/impaktapps-ui-builder/builder/services/component.ts +40 -8
  35. package/src/impaktapps-ui-builder/runtime/services/service.ts +32 -3
@@ -6272,7 +6272,8 @@ const ComponentSchema = {
6272
6272
  { title: "Rank", const: "Rank" },
6273
6273
  { title: "Rank Card", const: "RankCard" },
6274
6274
  { title: "Metric Card", const: "MetricCard" },
6275
- { title: "Bow and Arrow", const: "RunnerBoyProgressBar" },
6275
+ { title: "Hierarchy Chart", const: "HierarchyChart" },
6276
+ { title: "Runner Boy", const: "RunnerBoyProgressBar" },
6276
6277
  { title: "Table", const: "Table" },
6277
6278
  { title: "Tabs", const: "TabSection" },
6278
6279
  { title: "Text", const: "Text" },
@@ -6280,7 +6281,8 @@ const ComponentSchema = {
6280
6281
  { title: "Timer", const: "Timer" },
6281
6282
  { title: "Upload", const: "UploadFile" },
6282
6283
  { title: "Tree ", const: "TreeMap" },
6283
- { title: "Thought of the day", const: "Thought" }
6284
+ { title: "Thought of the day", const: "Thought" },
6285
+ { title: "PDF", const: "PdfViewer" }
6284
6286
  ]
6285
6287
  },
6286
6288
  elementType: {
@@ -6334,6 +6336,13 @@ const ComponentSchema = {
6334
6336
  { title: "Standard", const: "standard" }
6335
6337
  ]
6336
6338
  },
6339
+ linkType: {
6340
+ oneOf: [
6341
+ { title: "Step", const: "step" },
6342
+ { title: "Diagonal", const: "diagonal" },
6343
+ { title: "Line", const: "line" }
6344
+ ]
6345
+ },
6337
6346
  positionVertical: {
6338
6347
  oneOf: [
6339
6348
  { title: "Top", const: "top" },
@@ -6656,7 +6665,8 @@ const ComponentSchema = {
6656
6665
  title: "Stack Horizontal Bar Graph",
6657
6666
  const: "HorizontalStackBarGraph"
6658
6667
  },
6659
- { title: "Area Graph", const: "AreaGraph" }
6668
+ { title: "Area Graph", const: "AreaGraph" },
6669
+ { title: "StackBar And Line Graph", const: "StackBarLineGraph" }
6660
6670
  ]
6661
6671
  },
6662
6672
  iconName: {
@@ -6709,7 +6719,12 @@ const ComponentSchema = {
6709
6719
  { title: "Clone Icon", const: "CloneIcon" },
6710
6720
  { title: "Detail Icon", const: "DetailIcon" },
6711
6721
  { title: "Report View Icon", const: "ReportViewIcon" },
6712
- { title: "Payout", const: "Payout" }
6722
+ { title: "Payout", const: "Payout" },
6723
+ { title: "Info Outlined", const: "InfoOutlinedIcon" },
6724
+ { title: "Territory Add", const: "TerritoryAdd" },
6725
+ { title: "Territory Edit", const: "TerritoryEdit" },
6726
+ { title: "Territory Delete", const: "TerritoryDelete" },
6727
+ { title: "Git Compare", const: "GitCompare" }
6713
6728
  ]
6714
6729
  },
6715
6730
  color: {
@@ -7815,7 +7830,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
7815
7830
  ]
7816
7831
  };
7817
7832
  };
7818
- const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
7833
+ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel, arrayLabel) => {
7819
7834
  return {
7820
7835
  type: "Control",
7821
7836
  scope: `#/properties/${parentScope}`,
@@ -7824,7 +7839,9 @@ const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScop
7824
7839
  },
7825
7840
  config: {
7826
7841
  layout: 12,
7827
- main: {},
7842
+ main: {
7843
+ label: arrayLabel
7844
+ },
7828
7845
  style: {
7829
7846
  marginLeft: "-24px",
7830
7847
  marginBottom: "24px !important",
@@ -8079,7 +8096,8 @@ const buildPropertiesSection = function(type) {
8079
8096
  getSelectField("variant", "Variant"),
8080
8097
  getInputField("toolTip", "Tooltip"),
8081
8098
  getSelectField("toolTipPosition", "Tooltip Position"),
8082
- 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 }),
8083
8101
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
8084
8102
  getInputField("keyName", "Event Key Name")
8085
8103
  ];
@@ -8148,6 +8166,17 @@ const buildPropertiesSection = function(type) {
8148
8166
  emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
8149
8167
  ];
8150
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;
8151
8180
  case "MetricCard":
8152
8181
  uiSchema.elements = [
8153
8182
  getInputField("url", "Image Url"),
@@ -8156,7 +8185,7 @@ const buildPropertiesSection = function(type) {
8156
8185
  getInputField("description", "Description"),
8157
8186
  getSelectField("growthRate", "Growth Rate"),
8158
8187
  getInputField("color", "Card Color"),
8159
- emptyBox$1("MetricEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 })
8188
+ emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8160
8189
  ];
8161
8190
  break;
8162
8191
  case "Button":
@@ -8190,22 +8219,24 @@ const buildPropertiesSection = function(type) {
8190
8219
  getInputField("subHeader", "Sub Header"),
8191
8220
  getSelectField("graphType", "Graph Type"),
8192
8221
  getInputField("leftLabel", "Left Label"),
8222
+ getInputField("rightLabel", "Right Label"),
8193
8223
  getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
8194
8224
  getInputField("bottomLabel", "Bottom Label"),
8195
8225
  emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
8196
8226
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
8197
8227
  getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
8198
- getInputField("yAxisValue", "Y-AxisValue"),
8199
- getInputField("xAxisValue", "X-AxisValue"),
8228
+ getInputField("yAxisValue", "Y-Axis Key"),
8229
+ getInputField("xAxisValue", "X-Axis Key"),
8200
8230
  getSelectField("xAxisType", "X-AxisType"),
8201
8231
  getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
8202
8232
  getInputField("leftMargin", "Left Margin"),
8203
- getInputField("xAxisTickCount", "X Axis TickCount"),
8204
8233
  getInputField("yAxisTickCount", "Y Axis TickCount"),
8234
+ getInputField("xAxisTickCount", "X Axis TickCount"),
8205
8235
  getSelectField("xAxisFormatType", "X Axis Format Type"),
8206
- emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
8207
- getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
8208
- getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color")
8236
+ getInputField("growthRateKey", "Growth Rate Key"),
8237
+ getInputField("tooltipUnit", "Tooltip Unit"),
8238
+ getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
8239
+ getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors")
8209
8240
  ];
8210
8241
  break;
8211
8242
  case "WrapperSection":
@@ -8217,7 +8248,10 @@ const buildPropertiesSection = function(type) {
8217
8248
  getInputField("rowSpacing", "Row Spacing"),
8218
8249
  getInputField("columnSpacing", "Column Spacing"),
8219
8250
  getInputField("spacing", "Spacing"),
8220
- emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
8251
+ getInputField("iconUrl", "Icon Url"),
8252
+ getInputField("wrapperId", "Wrapper Id"),
8253
+ emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
8254
+ emptyBox$1("WrapperSectionEmpty2")
8221
8255
  ];
8222
8256
  break;
8223
8257
  case "TabSection":
@@ -8247,11 +8281,13 @@ const buildPropertiesSection = function(type) {
8247
8281
  getMultiSelectField("filteringOptions", "Filtering Options"),
8248
8282
  getSelectField("maxPageSize", "Max Page Size"),
8249
8283
  getSelectField("initialDensity", "Initial Toggle Density"),
8284
+ getInputField("rowIdKey", "Row ID Key"),
8285
+ getInputField("parentIdKey", "Parent ID Key"),
8286
+ emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
8250
8287
  buildWrapper("Tree Table Properties", [
8251
8288
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
8252
8289
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
8253
8290
  getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
8254
- getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
8255
8291
  getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
8256
8292
  getInputField("defaultColumnSize", "Default Column Size"),
8257
8293
  ,
@@ -8289,12 +8325,18 @@ const buildPropertiesSection = function(type) {
8289
8325
  getSelectField("toolTipPosition", "Tooltip Position")
8290
8326
  ];
8291
8327
  break;
8328
+ case "PdfViewer":
8329
+ uiSchema.elements = [
8330
+ getInputField("scale", "Zoom"),
8331
+ emptyBox$1("PdfViewer", { xs: 6, sm: 6, md: 8, lg: 9 })
8332
+ ];
8333
+ break;
8292
8334
  case "Date":
8293
8335
  uiSchema.elements = [
8294
8336
  getSelectField("variant", "Variant"),
8295
8337
  getInputField("toolTip", "Tooltip"),
8296
8338
  getSelectField("toolTipPosition", "Tooltip Position"),
8297
- emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8339
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8298
8340
  ];
8299
8341
  break;
8300
8342
  case "DateTime":
@@ -8302,7 +8344,7 @@ const buildPropertiesSection = function(type) {
8302
8344
  getSelectField("variant", "Variant"),
8303
8345
  getInputField("toolTip", "Tooltip"),
8304
8346
  getSelectField("toolTipPosition", "Tooltip Position"),
8305
- emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
8347
+ emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
8306
8348
  ];
8307
8349
  break;
8308
8350
  case "Thought":
@@ -8381,13 +8423,13 @@ const StyleSection = {
8381
8423
  }
8382
8424
  ]
8383
8425
  };
8384
- const TableSection = (theme) => {
8426
+ const TableSection = (theme, scopeName = "elements") => {
8385
8427
  const uiSchema = {
8386
8428
  type: "HorizontalLayout",
8387
8429
  elements: [
8388
8430
  {
8389
8431
  type: "Control",
8390
- scope: "#/properties/elements",
8432
+ scope: `#/properties/${scopeName}`,
8391
8433
  options: {
8392
8434
  widget: "Table"
8393
8435
  },
@@ -8398,7 +8440,7 @@ const TableSection = (theme) => {
8398
8440
  {
8399
8441
  widget: {
8400
8442
  type: "Control",
8401
- scope: "#/properties/New_Record",
8443
+ scope: `#/properties/${scopeName}_New_Record`,
8402
8444
  options: {
8403
8445
  widget: "IconButton"
8404
8446
  },
@@ -8425,7 +8467,7 @@ const TableSection = (theme) => {
8425
8467
  {
8426
8468
  widget: {
8427
8469
  type: "Control",
8428
- scope: "#/properties/Paste_Component",
8470
+ scope: scopeName === "elements" ? `#/properties/Paste_Component` : `#/properties/Paste_TabsComponent`,
8429
8471
  options: {
8430
8472
  widget: "IconButton"
8431
8473
  },
@@ -8490,7 +8532,7 @@ const TableSection = (theme) => {
8490
8532
  },
8491
8533
  {
8492
8534
  type: "Control",
8493
- scope: "#/properties/Copy_Component",
8535
+ scope: scopeName === "elements" ? `#/properties/Copy_Component` : `#/properties/Copy_TabsComponent`,
8494
8536
  options: {
8495
8537
  widget: "Button"
8496
8538
  },
@@ -8683,6 +8725,10 @@ var buildConfig = (FormData) => {
8683
8725
  if (formData.events) {
8684
8726
  delete formData.events;
8685
8727
  }
8728
+ if (formData.tabLabelElements) {
8729
+ component.tabLabelElements = formData.tabLabelElements || [];
8730
+ delete formData.tabLabelElements;
8731
+ }
8686
8732
  component = { ...formData, ...component };
8687
8733
  return component;
8688
8734
  };
@@ -8841,7 +8887,7 @@ const sectionLabels = {
8841
8887
  LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
8842
8888
  WrapperSection: ["Core", "Components", "Properties", "Style"],
8843
8889
  HorizontalLayout: ["Core", "Components", "Properties", "Style"],
8844
- TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
8890
+ TabSection: ["Core", "Components", "TabTitles", "Properties", "Style", "Validation"],
8845
8891
  SpeedoMeter: ["Core", "Properties", "Events", "Style"],
8846
8892
  card: ["Core", "Properties", "Events", "Style", "Validation"],
8847
8893
  UploadFile: ["Core", "Events", "Style", "Validation"],
@@ -8853,6 +8899,7 @@ const sectionLabels = {
8853
8899
  ProgressBar: ["Core", "Properties", "Events", "Style"],
8854
8900
  RankCard: ["Core", "Properties", "Events", "Style"],
8855
8901
  MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
8902
+ HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
8856
8903
  Slider: ["Core", "Components", "Events", "Style", "Validation"],
8857
8904
  Timer: ["Core", "Events", "Style"],
8858
8905
  Rank: ["Core", "Events", "Style"],
@@ -8862,8 +8909,9 @@ const sectionLabels = {
8862
8909
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
8863
8910
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
8864
8911
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
8865
- PopUp: ["Core", "Components", "Properties", "Style"],
8912
+ PopUp: ["Core", "Components", "Properties", "Events", "Style"],
8866
8913
  PopOver: ["Core", "Components", "Properties", "Style"],
8914
+ PdfViewer: ["Core", "Properties", "Style"],
8867
8915
  Stepper: ["Core", "Components", "Properties", "Events", "Style"],
8868
8916
  DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
8869
8917
  InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -8888,6 +8936,7 @@ function refreshPage(type, store2) {
8888
8936
  Style: StyleSection,
8889
8937
  Events: EventSection(store2.theme.myTheme),
8890
8938
  Components: TableSection(store2.theme.myTheme),
8939
+ TabTitles: TableSection(store2.theme.myTheme, "tabLabelElements"),
8891
8940
  Properties: buildPropertiesSection(type),
8892
8941
  Validation: ValidationSection
8893
8942
  };
@@ -9085,8 +9134,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9085
9134
  const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
9086
9135
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9087
9136
  if (path) {
9088
- const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
9089
- const finalPath = `${path2}.elements[${rowId}]`;
9137
+ let finalPath = `${path}`;
9138
+ if ((_c = dynamicData2 == null ? void 0 : dynamicData2.path) == null ? void 0 : _c.startsWith("tabLabel")) {
9139
+ finalPath = `${finalPath}.tabLabelElements[${rowId}]`;
9140
+ } else {
9141
+ finalPath = `${finalPath}.elements[${rowId}]`;
9142
+ }
9090
9143
  store2.searchParams.set("path", finalPath);
9091
9144
  store2.setSearchParams(store2.searchParams);
9092
9145
  this.setPage();
@@ -9098,7 +9151,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9098
9151
  var _a;
9099
9152
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9100
9153
  const rowId = sessionStorage.getItem("rowId");
9101
- store2.formData.elements.splice(rowId, 1);
9154
+ const isTabLabelElements = sessionStorage.getItem("isTabLabelElements") === "true";
9155
+ if (isTabLabelElements) {
9156
+ store2.formData.tabLabelElements.splice(rowId, 1);
9157
+ } else {
9158
+ store2.formData.elements.splice(rowId, 1);
9159
+ }
9102
9160
  const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
9103
9161
  const data = path ? _.get(response, path) : response;
9104
9162
  store2.setFormdata(data);
@@ -9106,6 +9164,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9106
9164
  store2.updateDialog("popUpComponentSection");
9107
9165
  }
9108
9166
  sessionStorage.removeItem("rowId");
9167
+ sessionStorage.removeItem("isTabLabelElements");
9109
9168
  },
9110
9169
  deleteEvent: function(shouldUpdateDialog = true) {
9111
9170
  var _a;
@@ -9126,9 +9185,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9126
9185
  if (!Array.isArray(store2.formData.elements)) {
9127
9186
  store2.formData.elements = [];
9128
9187
  }
9188
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9189
+ store2.formData.tabLabelElements = [];
9190
+ }
9129
9191
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
9130
9192
  saveFormdataInSessionStorage(store2.ctx.core.data, path);
9131
- const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
9193
+ let finalPath = `${path}`;
9194
+ if (dynamicData2.path.startsWith("tabLabel")) {
9195
+ finalPath = `${finalPath}.tabLabelElements[${store2.formData.tabLabelElements.length}]`;
9196
+ } else {
9197
+ finalPath = `${finalPath}.elements[${store2.formData.elements.length}]`;
9198
+ }
9132
9199
  store2.searchParams.set("path", finalPath);
9133
9200
  store2.setSearchParams(store2.searchParams);
9134
9201
  this.setPage();
@@ -9163,6 +9230,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9163
9230
  deletePopUpComponent: function() {
9164
9231
  const rowId = dynamicData2.path.split(".")[1];
9165
9232
  sessionStorage.setItem("rowId", rowId);
9233
+ sessionStorage.setItem("isTabLabelElements", dynamicData2.path.startsWith("tabLabel") ? "true" : "false");
9166
9234
  store2.updateDialog("popUpComponentSection");
9167
9235
  },
9168
9236
  deletePopUpEvent: function() {
@@ -9209,9 +9277,17 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9209
9277
  if (!Array.isArray(store2.formData.events)) {
9210
9278
  store2.formData.events = [];
9211
9279
  }
9280
+ if (!Array.isArray(store2.formData.tabLabelElements)) {
9281
+ store2.formData.tabLabelElements = [];
9282
+ }
9212
9283
  saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
9213
9284
  const formData = getFormdataFromSessionStorage(pastedElementParentPath);
9214
- const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
9285
+ const currentLength = {
9286
+ "TabsComponent": formData.tabLabelElements.length,
9287
+ "Component": formData.elements.length,
9288
+ "Events": formData.events.length
9289
+ };
9290
+ const insertElementIndex = currentLength[elementType] || 0;
9215
9291
  const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
9216
9292
  const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
9217
9293
  const notificationMessages = {
@@ -9246,6 +9322,9 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
9246
9322
  if (elementType === "Component") {
9247
9323
  return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
9248
9324
  }
9325
+ if (elementType === "TabsComponent") {
9326
+ return `${parentPath}.tabLabelElements[${rowId}]`;
9327
+ }
9249
9328
  return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
9250
9329
  },
9251
9330
  ElementPathSetter: function(uiSchema, copiedFormData) {
@@ -9447,7 +9526,10 @@ const EventSchema = {
9447
9526
  { title: "Row Movement", const: "onRowMovement" },
9448
9527
  { title: "Download", const: "onDownload" },
9449
9528
  { title: "Fail", const: "Fail" },
9450
- { title: "Key Down", const: "onKeyDown" }
9529
+ { title: "onClose", const: "onClose" },
9530
+ { title: "Key Down", const: "onKeyDown" },
9531
+ { title: "Set Style", const: "setStyle" },
9532
+ { title: "Expand Node", const: "onNodeExpandChange" }
9451
9533
  ]
9452
9534
  },
9453
9535
  Handler: {
@@ -10833,6 +10915,25 @@ var service = (funcParams) => {
10833
10915
  funcParams.store.setUiSchema(uiSchema);
10834
10916
  });
10835
10917
  },
10918
+ getStyle: () => {
10919
+ var _a, _b, _c, _d;
10920
+ const cloneEventGroup = _.cloneDeep(eventGroups);
10921
+ if (cloneEventGroup.setStyle) {
10922
+ let finalResponse = {};
10923
+ const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
10924
+ if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
10925
+ for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
10926
+ finalResponse = executeEvents({
10927
+ ...executeEventsParameters,
10928
+ config: eventConfig,
10929
+ componentName: path
10930
+ });
10931
+ }
10932
+ return finalResponse;
10933
+ }
10934
+ }
10935
+ return {};
10936
+ },
10836
10937
  onCellRenderer: (cellParams) => {
10837
10938
  var _a, _b, _c, _d, _e;
10838
10939
  const cloneEventGroup = _.cloneDeep(eventGroups);
@@ -10862,6 +10963,9 @@ var service = (funcParams) => {
10862
10963
  onFileDelete: async function() {
10863
10964
  this.callHandler("onFileDelete");
10864
10965
  },
10966
+ onClose: function() {
10967
+ this.callHandler("onClose");
10968
+ },
10865
10969
  onMount: function() {
10866
10970
  this.callHandler("onMount");
10867
10971
  },
@@ -10885,18 +10989,26 @@ var service = (funcParams) => {
10885
10989
  return response == null ? void 0 : response.data;
10886
10990
  },
10887
10991
  onPaginationChange: async function(paginationValues) {
10888
- var _a, _b;
10992
+ var _a;
10889
10993
  const apiBody = [
10890
10994
  { key: "size", value: paginationValues.pagination.pageSize },
10891
10995
  { key: "pageIndex", value: paginationValues.pagination.pageIndex },
10892
10996
  { key: "sorting", value: paginationValues.sorting || [] },
10893
10997
  { key: "filters", value: paginationValues.tableColumnConfig || [] },
10894
10998
  { key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
10895
- { key: "expandedRowIds", value: (_b = paginationValues.expandedRowIds) != null ? _b : [] }
10999
+ { key: "parentIds", value: paginationValues.parentIds },
11000
+ { key: "isExpandAll", value: paginationValues.isExpandAll }
10896
11001
  ];
10897
11002
  const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
10898
11003
  return response == null ? void 0 : response.data;
10899
11004
  },
11005
+ onNodeExpandChange: async function(param) {
11006
+ const apiBody = [
11007
+ { key: "expandedNodeId", value: param.expandedNodeId }
11008
+ ];
11009
+ const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
11010
+ return response == null ? void 0 : response.data;
11011
+ },
10900
11012
  getSelectOptions: async function(param) {
10901
11013
  if (param.serachValue !== "" && param.serachValue !== void 0) {
10902
11014
  const apiBody = [
@@ -10912,8 +11024,8 @@ var service = (funcParams) => {
10912
11024
  return;
10913
11025
  const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
10914
11026
  const promises = ChangeEventsKeysArray.flatMap((componentName) => {
10915
- var _a, _b;
10916
- if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName] || ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName]) === void 0) {
11027
+ var _a;
11028
+ if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName]) === funcParams.store.newData[componentName]) {
10917
11029
  return [];
10918
11030
  }
10919
11031
  return eventGroups.onChange[componentName].map(
@@ -11211,6 +11323,21 @@ const AreaBarGraph = {
11211
11323
  style: { containerStyle: {}, labelStyle: { margin: {} } }
11212
11324
  }
11213
11325
  };
11326
+ const StackBarLineG = {
11327
+ type: "Control",
11328
+ scope: "#/properties/graph",
11329
+ options: {
11330
+ widget: "Graph"
11331
+ },
11332
+ config: {
11333
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
11334
+ main: {
11335
+ type: "StackBarLineGraph",
11336
+ legendLabels: null
11337
+ },
11338
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
11339
+ }
11340
+ };
11214
11341
  const buildHorizontalBarGraph = (config2, componentScope2) => {
11215
11342
  const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
11216
11343
  horizontalBarGraph.scope = componentScope2;
@@ -11495,9 +11622,11 @@ const buildWrapperSection = (config2, componentScope2) => {
11495
11622
  wrapper.config.main.divider = config2.divider === "YES" ? true : false;
11496
11623
  wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
11497
11624
  wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
11625
+ wrapper.config.main.icon = config2.iconUrl;
11498
11626
  wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
11499
11627
  wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
11500
11628
  wrapper.config.main.spacing = Number(config2.spacing);
11629
+ wrapper.config.main.wrapperId = config2.wrapperId;
11501
11630
  if (config2.defaultStyle) {
11502
11631
  wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
11503
11632
  }
@@ -11553,6 +11682,9 @@ const buildTextField = (config2, componentScope2) => {
11553
11682
  if (config2.toolTipPosition) {
11554
11683
  inputField.config.main.toolTipPosition = config2.toolTipPosition;
11555
11684
  }
11685
+ if (config2.iconName) {
11686
+ inputField.config.main.startIcon = config2.iconName;
11687
+ }
11556
11688
  inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
11557
11689
  inputField.scope = componentScope2;
11558
11690
  return inputField;
@@ -11707,9 +11839,6 @@ const buildTable = (config2, componentScope2) => {
11707
11839
  if (config2.paginateExpandedRows) {
11708
11840
  table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
11709
11841
  }
11710
- if (config2.treeStructure) {
11711
- table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
11712
- }
11713
11842
  if (config2.SelectionAvailable) {
11714
11843
  table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
11715
11844
  }
@@ -11752,6 +11881,12 @@ const buildTable = (config2, componentScope2) => {
11752
11881
  if (config2.selectKey) {
11753
11882
  table.config.main.selectKey = config2.selectKey;
11754
11883
  }
11884
+ if (config2.rowIdKey) {
11885
+ table.config.main.rowIdKey = config2.rowIdKey;
11886
+ }
11887
+ if (config2.parentIdKey) {
11888
+ table.config.main.parentIdKey = config2.parentIdKey;
11889
+ }
11755
11890
  if (config2.maxPageSize) {
11756
11891
  table.config.main.maxPageSize = config2.maxPageSize;
11757
11892
  }
@@ -12139,7 +12274,6 @@ const DateTime = {
12139
12274
  const buildDate = (config2, componentScope2) => {
12140
12275
  const dateInputField = _.cloneDeep(DateInputField);
12141
12276
  dateInputField.config.main.label = config2.label;
12142
- dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12143
12277
  dateInputField.scope = componentScope2;
12144
12278
  if (config2.layout) {
12145
12279
  dateInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12161,7 +12295,6 @@ const buildDate = (config2, componentScope2) => {
12161
12295
  const buildDateTime = (config2, componentScope2) => {
12162
12296
  const dateTimeInputField = _.cloneDeep(DateTime);
12163
12297
  dateTimeInputField.config.main.label = config2.label;
12164
- dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
12165
12298
  dateTimeInputField.scope = componentScope2;
12166
12299
  if (config2.layout) {
12167
12300
  dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
@@ -12509,6 +12642,9 @@ const buildEmptyBox = (config2, componentScope2) => {
12509
12642
  if (config2.layout) {
12510
12643
  EmptyBox.config.layout = createLayoutFormat(config2.layout);
12511
12644
  }
12645
+ if (config2.style) {
12646
+ EmptyBox.config.style = JSON.parse(config2.style);
12647
+ }
12512
12648
  return EmptyBox;
12513
12649
  };
12514
12650
  const ArrayUiSchema = {
@@ -12703,6 +12839,7 @@ const PopUP = {
12703
12839
  },
12704
12840
  main: {
12705
12841
  label: "PopUp",
12842
+ onClose: "onClose",
12706
12843
  fullScreen: false,
12707
12844
  fullWidth: false,
12708
12845
  maxWidth: false,
@@ -12980,12 +13117,12 @@ const buildAreaGraph = (config2, componentScope2) => {
12980
13117
  if (config2.xAxisFormatType) {
12981
13118
  AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
12982
13119
  }
12983
- if (config2.xAxisTickCount) {
12984
- AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
12985
- }
12986
13120
  if (config2.yAxisTickCount) {
12987
13121
  AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
12988
13122
  }
13123
+ if (config2.xAxisTickCount) {
13124
+ AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13125
+ }
12989
13126
  if (config2.xAxisValue) {
12990
13127
  AreaGraph.config.main.xAxisValue = config2.xAxisValue;
12991
13128
  }
@@ -13008,6 +13145,71 @@ const buildAreaGraph = (config2, componentScope2) => {
13008
13145
  }
13009
13146
  return AreaGraph;
13010
13147
  };
13148
+ const buildStackBarLineGraph = (config2, componentScope2) => {
13149
+ const StackBarLineGraph = _.cloneDeep(StackBarLineG);
13150
+ StackBarLineGraph.scope = componentScope2;
13151
+ if (config2.layout) {
13152
+ StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
13153
+ }
13154
+ StackBarLineGraph.config.main.type = config2.graphType;
13155
+ StackBarLineGraph.scope = componentScope2;
13156
+ StackBarLineGraph.config.main.header = config2.heading;
13157
+ StackBarLineGraph.config.main.subHeader = config2.subHeader;
13158
+ if (config2.legendHide) {
13159
+ StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
13160
+ }
13161
+ if (config2.bottomAxisAngle) {
13162
+ StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
13163
+ }
13164
+ if (config2.legendLabels) {
13165
+ StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
13166
+ }
13167
+ if (config2.legendDirection) {
13168
+ StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
13169
+ }
13170
+ if (config2.height) {
13171
+ StackBarLineGraph.config.style.containerStyle.height = config2.height;
13172
+ }
13173
+ if (config2.pieArcColors) {
13174
+ StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
13175
+ }
13176
+ if (config2.yAxisTickCount) {
13177
+ StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
13178
+ }
13179
+ if (config2.xAxisTickCount) {
13180
+ StackBarLineGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
13181
+ }
13182
+ if (config2.xAxisValue) {
13183
+ StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
13184
+ }
13185
+ if (config2.xAxisType) {
13186
+ StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
13187
+ }
13188
+ if (config2.bottomLabel) {
13189
+ StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
13190
+ }
13191
+ if (config2.leftLabel) {
13192
+ StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
13193
+ }
13194
+ if (config2.rightLabel) {
13195
+ StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
13196
+ }
13197
+ if (config2.disableLeftLabel) {
13198
+ StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
13199
+ }
13200
+ if (config2.growthRateKey) {
13201
+ StackBarLineGraph.config.main.growthRateKey = config2.growthRateKey;
13202
+ }
13203
+ if (config2.tooltipUnit) {
13204
+ StackBarLineGraph.config.main.tooltipUnit = config2.tooltipUnit;
13205
+ }
13206
+ if (config2.leftMargin) {
13207
+ StackBarLineGraph.config.style.labelStyle.margin = {
13208
+ left: config2.leftMargin
13209
+ };
13210
+ }
13211
+ return StackBarLineGraph;
13212
+ };
13011
13213
  const cameraUiSchema = {
13012
13214
  type: "Control",
13013
13215
  scope: "#/properties/camera",
@@ -13161,6 +13363,77 @@ const buildOTP_Input = (config2, componentScope2) => {
13161
13363
  OTP.config.main.length = +config2.length;
13162
13364
  return OTP;
13163
13365
  };
13366
+ var pdfViewer = {
13367
+ type: "Control",
13368
+ scope: "#/properties/pdfviewer",
13369
+ options: {
13370
+ widget: "PdfViewer"
13371
+ },
13372
+ config: {
13373
+ layout: {
13374
+ xs: 12,
13375
+ sm: 12,
13376
+ md: 12,
13377
+ lg: 12
13378
+ },
13379
+ main: {
13380
+ title: "PDF"
13381
+ }
13382
+ }
13383
+ };
13384
+ const buildPdfViewer = (config2, componentScope2) => {
13385
+ const PdfViewer = _.cloneDeep(pdfViewer);
13386
+ PdfViewer.scope = componentScope2;
13387
+ PdfViewer.config.main.scale = config2.scale;
13388
+ if (config2.layout) {
13389
+ PdfViewer.config.layout = createLayoutFormat(config2.layout);
13390
+ }
13391
+ if (config2.style) {
13392
+ PdfViewer.config.style = JSON.parse(config2.style);
13393
+ }
13394
+ return PdfViewer;
13395
+ };
13396
+ const HierarchyChart = {
13397
+ type: "Control",
13398
+ scope: "#/properties/HierarchyChart",
13399
+ options: {
13400
+ widget: "HierarchyChart"
13401
+ },
13402
+ config: {
13403
+ layout: { xs: 12, sm: 12, md: 12, lg: 12 },
13404
+ main: {},
13405
+ style: { containerStyle: {}, labelStyle: { margin: {} } }
13406
+ }
13407
+ };
13408
+ const buildHierarchyChart = (config2, componentScope2, store2) => {
13409
+ const hierarchyChart = _.cloneDeep(HierarchyChart);
13410
+ hierarchyChart.scope = componentScope2;
13411
+ if (config2.style) {
13412
+ hierarchyChart.config.style = JSON.parse(config2.style);
13413
+ }
13414
+ if (config2.layout) {
13415
+ hierarchyChart.config.layout = createLayoutFormat(config2.layout);
13416
+ }
13417
+ if (config2.linkType) {
13418
+ hierarchyChart.config.main.linkType = config2.linkType;
13419
+ }
13420
+ if (config2.stepPercent) {
13421
+ hierarchyChart.config.main.stepPercent = config2.stepPercent;
13422
+ }
13423
+ if (config2.nodeWidth) {
13424
+ hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
13425
+ }
13426
+ if (config2.nodeHeight) {
13427
+ hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
13428
+ }
13429
+ if (config2.chartHeight) {
13430
+ hierarchyChart.config.main.chartHeight = config2.chartHeight;
13431
+ }
13432
+ if (config2.lazyLoading) {
13433
+ hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
13434
+ }
13435
+ return hierarchyChart;
13436
+ };
13164
13437
  let schema = {
13165
13438
  type: "object",
13166
13439
  properties: {},
@@ -13324,6 +13597,9 @@ const buildUiSchema = (config2, store2) => {
13324
13597
  case "MetricCard":
13325
13598
  elements = buildMetricCard(config2, componentScope2);
13326
13599
  break;
13600
+ case "HierarchyChart":
13601
+ elements = buildHierarchyChart(config2, componentScope2);
13602
+ break;
13327
13603
  case "Graph":
13328
13604
  switch (config2.graphType) {
13329
13605
  case "BarGraph":
@@ -13343,6 +13619,9 @@ const buildUiSchema = (config2, store2) => {
13343
13619
  case "AreaGraph":
13344
13620
  elements = buildAreaGraph(config2, componentScope2);
13345
13621
  break;
13622
+ case "StackBarLineGraph":
13623
+ elements = buildStackBarLineGraph(config2, componentScope2);
13624
+ break;
13346
13625
  default:
13347
13626
  elements = buildStackbarGraph(config2, componentScope2);
13348
13627
  break;
@@ -13391,6 +13670,9 @@ const buildUiSchema = (config2, store2) => {
13391
13670
  case "Camera":
13392
13671
  elements = buildCamera(config2, componentScope2);
13393
13672
  break;
13673
+ case "PdfViewer":
13674
+ elements = buildPdfViewer(config2, componentScope2);
13675
+ break;
13394
13676
  default:
13395
13677
  schema = {
13396
13678
  type: "object",
@@ -13494,6 +13776,11 @@ const buildUiSchema = (config2, store2) => {
13494
13776
  });
13495
13777
  }
13496
13778
  }
13779
+ if (config2.tabLabelElements) {
13780
+ elements.tabLabelElements = config2.tabLabelElements.map((e, elemInd) => {
13781
+ return buildUiSchema(e, store2);
13782
+ });
13783
+ }
13497
13784
  return elements;
13498
13785
  };
13499
13786
  export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, downloadFile$1 as downloadFile, downloadFileFromUrl, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };