impaktapps-ui-builder 0.0.76 → 0.0.78

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.
@@ -6279,6 +6279,25 @@ const ComponentSchema = {
6279
6279
  }
6280
6280
  }
6281
6281
  },
6282
+ filteringOptions: {
6283
+ type: "array",
6284
+ items: {
6285
+ oneOf: [
6286
+ { const: "fuzzy", title: "Fuzzy" },
6287
+ { const: "contains", title: "Contain" },
6288
+ { const: "startsWith", title: "Starts with" },
6289
+ { const: "endsWith", title: "Ends with" },
6290
+ { const: "equals", title: "Equals" },
6291
+ { const: "notEquals", title: "Not Equals" },
6292
+ { const: "between", title: "Between" },
6293
+ { const: "betweenInclusive", title: "Between inclusive" },
6294
+ { const: "greaterThan", title: "Greater than" },
6295
+ { const: "greaterThanOrEqualTo", title: "Greater than or equal to" },
6296
+ { const: "lessThan", title: "Less than" },
6297
+ { const: "lessThanOrEqualTo", title: "Less than or equal to" }
6298
+ ]
6299
+ }
6300
+ },
6282
6301
  legendLabels: {
6283
6302
  type: "array",
6284
6303
  items: {
@@ -7352,6 +7371,23 @@ const getSelectField = (scope, label, options) => {
7352
7371
  }
7353
7372
  };
7354
7373
  };
7374
+ const getMultiSelectField = (scope, label) => {
7375
+ return {
7376
+ type: "Control",
7377
+ scope: `#/properties/${scope}`,
7378
+ options: {
7379
+ widget: "MultipleSelect"
7380
+ },
7381
+ config: {
7382
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
7383
+ main: {
7384
+ multiple: true,
7385
+ label,
7386
+ options: []
7387
+ }
7388
+ }
7389
+ };
7390
+ };
7355
7391
  const GraphSection = {
7356
7392
  type: "WrapperLayout",
7357
7393
  elements: []
@@ -7534,8 +7570,12 @@ const buildPropertiesSection = function(type) {
7534
7570
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
7535
7571
  getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
7536
7572
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
7573
+ getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
7574
+ getRadioInputField("disableFullScreenToggle", "Disable Full Screen Toggle", ["YES", "NO"]),
7575
+ getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
7576
+ getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
7577
+ getMultiSelectField("filteringOptions", "Filtering Options"),
7537
7578
  getInputField("selectKey", "Selection Key"),
7538
- emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7539
7579
  buildWrapper("Tree Table Properties", [
7540
7580
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7541
7581
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -10701,6 +10741,18 @@ const buildTable = (config, componentScope) => {
10701
10741
  if (config.disableSorting) {
10702
10742
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
10703
10743
  }
10744
+ if (config.disableEditColumn) {
10745
+ table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
10746
+ }
10747
+ if (config.disableFullScreenToggle) {
10748
+ table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
10749
+ }
10750
+ if (config.disableDensityToggle) {
10751
+ table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
10752
+ }
10753
+ if (config.disableDownloadFile) {
10754
+ table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
10755
+ }
10704
10756
  if (config.Table_Download_Keys_Name) {
10705
10757
  table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
10706
10758
  }
@@ -10730,6 +10782,24 @@ const buildLazyLoadingTable = (config, componentScope) => {
10730
10782
  if (config.downloadAllData) {
10731
10783
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10732
10784
  }
10785
+ if (config.disableFilters) {
10786
+ table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
10787
+ }
10788
+ if (config.disableSorting) {
10789
+ table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
10790
+ }
10791
+ if (config.disableEditColumn) {
10792
+ table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
10793
+ }
10794
+ if (config.disableFullScreenToggle) {
10795
+ table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
10796
+ }
10797
+ if (config.disableDensityToggle) {
10798
+ table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
10799
+ }
10800
+ if (config.disableDownloadFile) {
10801
+ table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
10802
+ }
10733
10803
  if (config.Table_Download_Keys_Name) {
10734
10804
  table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
10735
10805
  }
@@ -11954,7 +12024,8 @@ const buildUiSchema = (config, store2) => {
11954
12024
  type: cellElem.columnFormat,
11955
12025
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11956
12026
  elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
11957
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false
12027
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12028
+ columnFilterModeOptions: config.filteringOptions
11958
12029
  };
11959
12030
  } else {
11960
12031
  return {
@@ -11962,7 +12033,8 @@ const buildUiSchema = (config, store2) => {
11962
12033
  type: cellElem.columnFormat,
11963
12034
  header: cellElem.label || cellElem.name,
11964
12035
  size: sizeMap[cellElem.name] || 180,
11965
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false
12036
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12037
+ columnFilterModeOptions: config.filteringOptions
11966
12038
  };
11967
12039
  }
11968
12040
  });