impaktapps-ui-builder 0.0.76 → 0.0.79-alpha.1

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,7 +7570,13 @@ 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", ["YES", "NO"]),
7575
+ getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
7576
+ getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
7537
7577
  getInputField("selectKey", "Selection Key"),
7578
+ getMultiSelectField("filteringOptions", "Filtering Options"),
7579
+ emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7538
7580
  emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7539
7581
  buildWrapper("Tree Table Properties", [
7540
7582
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
@@ -10701,6 +10743,18 @@ const buildTable = (config, componentScope) => {
10701
10743
  if (config.disableSorting) {
10702
10744
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
10703
10745
  }
10746
+ if (config.disableEditColumn) {
10747
+ table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
10748
+ }
10749
+ if (config.disableFullScreenToggle) {
10750
+ table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
10751
+ }
10752
+ if (config.disableDensityToggle) {
10753
+ table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
10754
+ }
10755
+ if (config.disableDownloadFile) {
10756
+ table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
10757
+ }
10704
10758
  if (config.Table_Download_Keys_Name) {
10705
10759
  table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
10706
10760
  }
@@ -10730,6 +10784,24 @@ const buildLazyLoadingTable = (config, componentScope) => {
10730
10784
  if (config.downloadAllData) {
10731
10785
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
10732
10786
  }
10787
+ if (config.disableFilters) {
10788
+ table.config.main.disableFilters = config.disableFilters === "YES" ? true : false;
10789
+ }
10790
+ if (config.disableSorting) {
10791
+ table.config.main.disableSorting = config.disableSorting === "YES" ? true : false;
10792
+ }
10793
+ if (config.disableEditColumn) {
10794
+ table.config.main.disableEditColumn = config.disableEditColumn === "YES" ? true : false;
10795
+ }
10796
+ if (config.disableFullScreenToggle) {
10797
+ table.config.main.disableFullScreenToggle = config.disableFullScreenToggle === "YES" ? true : false;
10798
+ }
10799
+ if (config.disableDensityToggle) {
10800
+ table.config.main.disableDensityToggle = config.disableDensityToggle === "YES" ? true : false;
10801
+ }
10802
+ if (config.disableDownloadFile) {
10803
+ table.config.main.disableDownloadFile = config.disableDownloadFile === "YES" ? true : false;
10804
+ }
10733
10805
  if (config.Table_Download_Keys_Name) {
10734
10806
  table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
10735
10807
  }
@@ -11954,7 +12026,8 @@ const buildUiSchema = (config, store2) => {
11954
12026
  type: cellElem.columnFormat,
11955
12027
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11956
12028
  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
12029
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
12030
+ columnFilterModeOptions: config.filteringOptions
11958
12031
  };
11959
12032
  } else {
11960
12033
  return {
@@ -11962,7 +12035,8 @@ const buildUiSchema = (config, store2) => {
11962
12035
  type: cellElem.columnFormat,
11963
12036
  header: cellElem.label || cellElem.name,
11964
12037
  size: sizeMap[cellElem.name] || 180,
11965
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false
12038
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12039
+ columnFilterModeOptions: config.filteringOptions
11966
12040
  };
11967
12041
  }
11968
12042
  });