@ai-matrx/design-system 0.20.8 → 0.20.9
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/CHANGELOG.md +6 -0
- package/dist/data-table/index.cjs +3 -3
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +3 -3
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-table/index.js
CHANGED
|
@@ -6396,8 +6396,8 @@ function projectColumnDragOrder(orderedIds, preview2) {
|
|
|
6396
6396
|
function inferTableSearchRole(field) {
|
|
6397
6397
|
const key = field.replace(/([a-z])([A-Z])/g, "$1_$2").toLowerCase().replace(/[\s-]+/g, "_");
|
|
6398
6398
|
if (key === "id" || key === "uuid" || key.endsWith("_id")) return "id";
|
|
6399
|
-
if (/^(name|label|title|key|slug|display_name|common_name|model_name)$/.test(key) || /_(name|label|title)$/.test(key)) return "name";
|
|
6400
|
-
if (/^(description|summary|details|blurb)$/.test(key) || key.endsWith("_description")) return "description";
|
|
6399
|
+
if (/^(name|alias|label|title|key|slug|display_name|common_name|model_name)$/.test(key) || /_(name|label|title)$/.test(key)) return "name";
|
|
6400
|
+
if (/^(description|summary|details|notes|blurb)$/.test(key) || key.endsWith("_description")) return "description";
|
|
6401
6401
|
return "other";
|
|
6402
6402
|
}
|
|
6403
6403
|
function searchableFields(row, columns) {
|
|
@@ -10472,7 +10472,7 @@ function MatrxDataTableCore({
|
|
|
10472
10472
|
"div",
|
|
10473
10473
|
{
|
|
10474
10474
|
"data-matrx-cell-content": true,
|
|
10475
|
-
className: "min-w-0 max-w-full flex-1 whitespace-normal break-words [overflow-wrap:anywhere] sm:[&_*]:min-w-0 sm:[&_*]:
|
|
10475
|
+
className: "min-w-0 max-w-full flex-1 whitespace-normal break-words [overflow-wrap:anywhere] sm:[&_*]:min-w-0 sm:[&_*]:whitespace-normal sm:[&_*]:[overflow-wrap:anywhere] sm:[&_.truncate]:whitespace-nowrap sm:[&_[data-slot=badge]]:whitespace-nowrap sm:[&_[data-slot=badge]]:[overflow-wrap:normal] sm:[&_[data-matrx-cell-control]]:w-max sm:[&_[data-matrx-cell-control]]:min-w-max sm:[&_[data-matrx-cell-control]]:max-w-none sm:[&_[data-matrx-cell-control]]:whitespace-nowrap sm:[&_[data-matrx-cell-control]]:[overflow-wrap:normal] sm:[&_[data-matrx-cell-control]_*]:whitespace-nowrap sm:[&_[data-matrx-cell-control]_*]:[overflow-wrap:normal]",
|
|
10476
10476
|
children: renderRecordCell(row, col, index)
|
|
10477
10477
|
}
|
|
10478
10478
|
)
|