impaktapps-ui-builder 0.0.75 → 0.0.76-filteringOption

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.
@@ -6268,7 +6268,7 @@ const ComponentSchema = {
6268
6268
  }
6269
6269
  }
6270
6270
  },
6271
- disableColumnFilter: {
6271
+ enableColumnFilter: {
6272
6272
  type: "array",
6273
6273
  items: {
6274
6274
  type: "object",
@@ -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: 11, sm: 5.5, md: 5.5, lg: 5.5 },
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,8 @@ 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
+ getMultiSelectField("filteringOptions", "Filtering Options"),
7537
7574
  getInputField("selectKey", "Selection Key"),
7538
- emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
7539
7575
  buildWrapper("Tree Table Properties", [
7540
7576
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
7541
7577
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -7546,7 +7582,7 @@ const buildPropertiesSection = function(type) {
7546
7582
  ]),
7547
7583
  getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
7548
7584
  sizeHolder,
7549
- getArrayControl("disableColumnFilter", "keyName", "Component Name")
7585
+ getArrayControl("enableColumnFilter", "keyName", "Component Name")
7550
7586
  ];
7551
7587
  break;
7552
7588
  case "Radio":
@@ -11939,8 +11975,8 @@ const buildUiSchema = (config, store2) => {
11939
11975
  sizeMap[e.keyName] = e.value;
11940
11976
  });
11941
11977
  }
11942
- if (config.disableColumnFilter) {
11943
- config.disableColumnFilter.map((e) => {
11978
+ if (config.enableColumnFilter) {
11979
+ config.enableColumnFilter.map((e) => {
11944
11980
  filterMap[e.keyName] = true;
11945
11981
  });
11946
11982
  }
@@ -11954,7 +11990,8 @@ const buildUiSchema = (config, store2) => {
11954
11990
  type: cellElem.columnFormat,
11955
11991
  widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
11956
11992
  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
11993
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
11994
+ columnFilterModeOptions: config.filteringOptions
11958
11995
  };
11959
11996
  } else {
11960
11997
  return {
@@ -11962,7 +11999,8 @@ const buildUiSchema = (config, store2) => {
11962
11999
  type: cellElem.columnFormat,
11963
12000
  header: cellElem.label || cellElem.name,
11964
12001
  size: sizeMap[cellElem.name] || 180,
11965
- enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false
12002
+ enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
12003
+ columnFilterModeOptions: config.filteringOptions
11966
12004
  };
11967
12005
  }
11968
12006
  });