@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260615084103 → 0.8.1-dev.20260615104724

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.
package/dist/index.d.mts CHANGED
@@ -287,6 +287,7 @@ interface DataListColumn {
287
287
  emptyValueLabel?: string;
288
288
  addhref?: boolean;
289
289
  customProps?: any;
290
+ isSearchable: boolean;
290
291
  }
291
292
  interface FilterColumn {
292
293
  placeholder: string;
@@ -368,6 +369,7 @@ interface SiteFormDataListColumnData {
368
369
  showAsLink: boolean;
369
370
  linkUrlSegment?: string;
370
371
  emptyValueLabel?: string;
372
+ isSearchable: boolean;
371
373
  }
372
374
  interface SiteFormDataFormSectionRowData {
373
375
  siteFormDataFormRowId: number;
package/dist/index.d.ts CHANGED
@@ -287,6 +287,7 @@ interface DataListColumn {
287
287
  emptyValueLabel?: string;
288
288
  addhref?: boolean;
289
289
  customProps?: any;
290
+ isSearchable: boolean;
290
291
  }
291
292
  interface FilterColumn {
292
293
  placeholder: string;
@@ -368,6 +369,7 @@ interface SiteFormDataListColumnData {
368
369
  showAsLink: boolean;
369
370
  linkUrlSegment?: string;
370
371
  emptyValueLabel?: string;
372
+ isSearchable: boolean;
371
373
  }
372
374
  interface SiteFormDataFormSectionRowData {
373
375
  siteFormDataFormRowId: number;
package/dist/index.js CHANGED
@@ -4968,6 +4968,9 @@ var OdataBuilder = class {
4968
4968
  let skip = (obj && obj["$skip"]) ?? "0";
4969
4969
  let top = (obj && obj["$top"]) ?? Constants.pagesize.toString();
4970
4970
  queryString = `$skip=${skip}&$top=${top}&$count=true`;
4971
+ if (obj?.["searchTerm"] && obj["searchTerm"].trim() !== "") {
4972
+ queryString += `&searchTerm=${encodeURIComponent(obj["searchTerm"])}`;
4973
+ }
4971
4974
  if (obj) {
4972
4975
  if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
4973
4976
  queryString = queryString + `&$filter=${encodeURIComponent(obj["$filter"])}`;
@@ -6124,6 +6127,7 @@ var DataList = (props) => {
6124
6127
  lastPropertyChanged: ""
6125
6128
  };
6126
6129
  const [formState, dispatch] = (0, import_react55.useReducer)(FormReducer_default, initialState);
6130
+ const searchableColumns = props.columns.filter((x) => x.isSearchable).map((x) => x.name).join(",");
6127
6131
  const handleFilterChange = (0, import_react55.useCallback)(
6128
6132
  (updatedValues) => {
6129
6133
  dispatch({
@@ -6619,6 +6623,7 @@ function mapApiToColumns(siteForm) {
6619
6623
  name: col.columnName,
6620
6624
  controlType: viewControlMap[col.controlTypeCode] ?? ViewControlTypes.lineText,
6621
6625
  enableSorting: col.enableSorting ?? false,
6626
+ isSearchable: col.isSearchable ?? false,
6622
6627
  width: "w-2/12",
6623
6628
  showAsLink: col.showAsLink ?? false,
6624
6629
  linkUrlSegment: col.linkUrlSegment ?? void 0,
@@ -6679,7 +6684,6 @@ var DataListRenderer = ({
6679
6684
  setDataset(result);
6680
6685
  };
6681
6686
  fetchData();
6682
- console.log(query, "bdhbfdhvd");
6683
6687
  }, [serviceRoute, query, params]);
6684
6688
  const [tabItem, setTabItem] = (0, import_react56.useState)();
6685
6689
  const activeTab = tabItem?.find((tab) => tab.isActive);
package/dist/index.mjs CHANGED
@@ -3363,6 +3363,9 @@ var OdataBuilder = class {
3363
3363
  let skip = (obj && obj["$skip"]) ?? "0";
3364
3364
  let top = (obj && obj["$top"]) ?? Constants.pagesize.toString();
3365
3365
  queryString = `$skip=${skip}&$top=${top}&$count=true`;
3366
+ if (obj?.["searchTerm"] && obj["searchTerm"].trim() !== "") {
3367
+ queryString += `&searchTerm=${encodeURIComponent(obj["searchTerm"])}`;
3368
+ }
3366
3369
  if (obj) {
3367
3370
  if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
3368
3371
  queryString = queryString + `&$filter=${encodeURIComponent(obj["$filter"])}`;
@@ -4512,6 +4515,7 @@ var DataList = (props) => {
4512
4515
  lastPropertyChanged: ""
4513
4516
  };
4514
4517
  const [formState, dispatch] = useReducer2(FormReducer_default, initialState);
4518
+ const searchableColumns = props.columns.filter((x) => x.isSearchable).map((x) => x.name).join(",");
4515
4519
  const handleFilterChange = useCallback3(
4516
4520
  (updatedValues) => {
4517
4521
  dispatch({
@@ -5006,6 +5010,7 @@ function mapApiToColumns(siteForm) {
5006
5010
  name: col.columnName,
5007
5011
  controlType: viewControlMap[col.controlTypeCode] ?? ViewControlTypes.lineText,
5008
5012
  enableSorting: col.enableSorting ?? false,
5013
+ isSearchable: col.isSearchable ?? false,
5009
5014
  width: "w-2/12",
5010
5015
  showAsLink: col.showAsLink ?? false,
5011
5016
  linkUrlSegment: col.linkUrlSegment ?? void 0,
@@ -5066,7 +5071,6 @@ var DataListRenderer = ({
5066
5071
  setDataset(result);
5067
5072
  };
5068
5073
  fetchData();
5069
- console.log(query, "bdhbfdhvd");
5070
5074
  }, [serviceRoute, query, params]);
5071
5075
  const [tabItem, setTabItem] = useState10();
5072
5076
  const activeTab = tabItem?.find((tab) => tab.isActive);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260615084103",
3
+ "version": "0.8.1-dev.20260615104724",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",