@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260615090046 → 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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
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
|
@@ -6127,6 +6127,7 @@ var DataList = (props) => {
|
|
|
6127
6127
|
lastPropertyChanged: ""
|
|
6128
6128
|
};
|
|
6129
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(",");
|
|
6130
6131
|
const handleFilterChange = (0, import_react55.useCallback)(
|
|
6131
6132
|
(updatedValues) => {
|
|
6132
6133
|
dispatch({
|
|
@@ -6622,6 +6623,7 @@ function mapApiToColumns(siteForm) {
|
|
|
6622
6623
|
name: col.columnName,
|
|
6623
6624
|
controlType: viewControlMap[col.controlTypeCode] ?? ViewControlTypes.lineText,
|
|
6624
6625
|
enableSorting: col.enableSorting ?? false,
|
|
6626
|
+
isSearchable: col.isSearchable ?? false,
|
|
6625
6627
|
width: "w-2/12",
|
|
6626
6628
|
showAsLink: col.showAsLink ?? false,
|
|
6627
6629
|
linkUrlSegment: col.linkUrlSegment ?? void 0,
|
package/dist/index.mjs
CHANGED
|
@@ -4515,6 +4515,7 @@ var DataList = (props) => {
|
|
|
4515
4515
|
lastPropertyChanged: ""
|
|
4516
4516
|
};
|
|
4517
4517
|
const [formState, dispatch] = useReducer2(FormReducer_default, initialState);
|
|
4518
|
+
const searchableColumns = props.columns.filter((x) => x.isSearchable).map((x) => x.name).join(",");
|
|
4518
4519
|
const handleFilterChange = useCallback3(
|
|
4519
4520
|
(updatedValues) => {
|
|
4520
4521
|
dispatch({
|
|
@@ -5009,6 +5010,7 @@ function mapApiToColumns(siteForm) {
|
|
|
5009
5010
|
name: col.columnName,
|
|
5010
5011
|
controlType: viewControlMap[col.controlTypeCode] ?? ViewControlTypes.lineText,
|
|
5011
5012
|
enableSorting: col.enableSorting ?? false,
|
|
5013
|
+
isSearchable: col.isSearchable ?? false,
|
|
5012
5014
|
width: "w-2/12",
|
|
5013
5015
|
showAsLink: col.showAsLink ?? false,
|
|
5014
5016
|
linkUrlSegment: col.linkUrlSegment ?? void 0,
|
package/package.json
CHANGED