@ai-matrx/design-system 0.86.365 → 0.86.367
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 +16 -0
- package/dist/carousel.js +3 -3
- package/dist/{chunk-RO5CRIOL.js → chunk-3JEAXZKX.js} +2 -2
- package/dist/{chunk-HS6GMHKZ.js → chunk-CZGTZJPS.js} +3 -3
- package/dist/chunk-CZGTZJPS.js.map +1 -0
- package/dist/{chunk-5Z5GTXKL.js → chunk-FEITX4L3.js} +2 -2
- package/dist/{chunk-GUGBVQ4T.js → chunk-OAK4ENIP.js} +3 -3
- package/dist/{chunk-UGUVTE77.js → chunk-QEQDJBNK.js} +2 -2
- package/dist/{chunk-QJ6SQNXD.js → chunk-TBWKBTPM.js} +2 -2
- package/dist/{chunk-2QFA6CK4.js → chunk-UAIBCPMB.js} +2 -2
- package/dist/{chunk-VOLSYNJY.js → chunk-VG765KBC.js} +2 -2
- package/dist/content-transfer.css +3 -1
- package/dist/controls.cjs +2 -2
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.css +7 -2
- package/dist/controls.js +3 -3
- package/dist/data-table/data-row-inspector.cjs +2 -2
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +3 -3
- package/dist/data-table/data-row-window.cjs +2 -2
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +4 -4
- package/dist/data-table/drill-chart.cjs +2 -2
- package/dist/data-table/drill-chart.cjs.map +1 -1
- package/dist/data-table/drill-chart.js +2 -2
- package/dist/data-table/index.cjs +8 -3
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +7 -0
- package/dist/data-table/index.d.ts +7 -0
- package/dist/data-table/index.js +11 -6
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +7 -0
- package/dist/data-table/types.d.ts +7 -0
- package/dist/data-table/uuid-cell.cjs +2 -2
- package/dist/data-table/uuid-cell.cjs.map +1 -1
- package/dist/data-table/uuid-cell.js +2 -2
- package/dist/desktop.cjs +2 -2
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.js +3 -3
- package/dist/email-input-dialog.cjs +2 -2
- package/dist/email-input-dialog.cjs.map +1 -1
- package/dist/email-input-dialog.js +2 -2
- package/dist/error-sentence.cjs +2 -2
- package/dist/error-sentence.cjs.map +1 -1
- package/dist/error-sentence.js +1 -1
- package/dist/index.cjs +55 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +59 -35
- package/dist/index.js.map +1 -1
- package/dist/lite-table.cjs +2 -2
- package/dist/lite-table.cjs.map +1 -1
- package/dist/lite-table.js +3 -3
- package/dist/record-list.cjs +2 -2
- package/dist/record-list.cjs.map +1 -1
- package/dist/record-list.js +3 -3
- package/dist/swipe-deck.cjs +3 -3
- package/dist/swipe-deck.cjs.map +1 -1
- package/dist/swipe-deck.css +9 -0
- package/dist/swipe-deck.js +3 -3
- package/dist/swipe-deck.js.map +1 -1
- package/dist/text-input-dialog.cjs +2 -2
- package/dist/text-input-dialog.cjs.map +1 -1
- package/dist/text-input-dialog.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-HS6GMHKZ.js.map +0 -1
- /package/dist/{chunk-RO5CRIOL.js.map → chunk-3JEAXZKX.js.map} +0 -0
- /package/dist/{chunk-5Z5GTXKL.js.map → chunk-FEITX4L3.js.map} +0 -0
- /package/dist/{chunk-GUGBVQ4T.js.map → chunk-OAK4ENIP.js.map} +0 -0
- /package/dist/{chunk-UGUVTE77.js.map → chunk-QEQDJBNK.js.map} +0 -0
- /package/dist/{chunk-QJ6SQNXD.js.map → chunk-TBWKBTPM.js.map} +0 -0
- /package/dist/{chunk-2QFA6CK4.js.map → chunk-UAIBCPMB.js.map} +0 -0
- /package/dist/{chunk-VOLSYNJY.js.map → chunk-VG765KBC.js.map} +0 -0
|
@@ -4003,6 +4003,13 @@ interface MatrxDataTableSelectionConfig<T> {
|
|
|
4003
4003
|
allMatching?: boolean;
|
|
4004
4004
|
/** Told whenever "all matching" turns on or off. */
|
|
4005
4005
|
onAllMatchingChange?: (allMatching: boolean) => void;
|
|
4006
|
+
/**
|
|
4007
|
+
* WHO ANSWERS "Select all N" (a host that owns bulk selection, like the entity-list shell, has ONE
|
|
4008
|
+
* answer; its banner and this bar must never disagree). Omit: the table offers and runs its own.
|
|
4009
|
+
* `false`: the host cannot serve "everything matching" — the bar does not offer it. A function:
|
|
4010
|
+
* the host's resolver — the bar offers it and a click runs the host's, not the table's own.
|
|
4011
|
+
*/
|
|
4012
|
+
selectAllMatching?: false | (() => void);
|
|
4006
4013
|
/**
|
|
4007
4014
|
* Rows that cannot be acted on in bulk render NO checkbox at all — the cell
|
|
4008
4015
|
* stays for alignment, the control is absent from the DOM. A grayed control
|
|
@@ -4003,6 +4003,13 @@ interface MatrxDataTableSelectionConfig<T> {
|
|
|
4003
4003
|
allMatching?: boolean;
|
|
4004
4004
|
/** Told whenever "all matching" turns on or off. */
|
|
4005
4005
|
onAllMatchingChange?: (allMatching: boolean) => void;
|
|
4006
|
+
/**
|
|
4007
|
+
* WHO ANSWERS "Select all N" (a host that owns bulk selection, like the entity-list shell, has ONE
|
|
4008
|
+
* answer; its banner and this bar must never disagree). Omit: the table offers and runs its own.
|
|
4009
|
+
* `false`: the host cannot serve "everything matching" — the bar does not offer it. A function:
|
|
4010
|
+
* the host's resolver — the bar offers it and a click runs the host's, not the table's own.
|
|
4011
|
+
*/
|
|
4012
|
+
selectAllMatching?: false | (() => void);
|
|
4006
4013
|
/**
|
|
4007
4014
|
* Rows that cannot be acted on in bulk render NO checkbox at all — the cell
|
|
4008
4015
|
* stays for alignment, the control is absent from the DOM. A grayed control
|
package/dist/data-table/index.js
CHANGED
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
import "../chunk-K4XCB576.js";
|
|
150
150
|
import {
|
|
151
151
|
ErrorBox
|
|
152
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-FEITX4L3.js";
|
|
153
153
|
import {
|
|
154
154
|
Skeleton
|
|
155
155
|
} from "../chunk-DRSBLHOF.js";
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
MacLookLayer,
|
|
172
172
|
useMacLookAttributes,
|
|
173
173
|
withMacLookDefaults
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-QEQDJBNK.js";
|
|
175
175
|
import "../chunk-YC5GAO35.js";
|
|
176
176
|
import {
|
|
177
177
|
Checkbox
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
searchValueVariants,
|
|
216
216
|
stringifyCellValue,
|
|
217
217
|
tokenFromColumnName
|
|
218
|
-
} from "../chunk-
|
|
218
|
+
} from "../chunk-UAIBCPMB.js";
|
|
219
219
|
import {
|
|
220
220
|
TIME_RANGE_PRESETS,
|
|
221
221
|
TIME_RANGE_PRESET_VALUES,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
RecordId,
|
|
258
258
|
shortUuid,
|
|
259
259
|
useTableNotice
|
|
260
|
-
} from "../chunk-
|
|
260
|
+
} from "../chunk-3JEAXZKX.js";
|
|
261
261
|
import {
|
|
262
262
|
Badge,
|
|
263
263
|
Button as Button2,
|
|
@@ -293,7 +293,7 @@ import {
|
|
|
293
293
|
import "../chunk-BNXNIN2S.js";
|
|
294
294
|
import {
|
|
295
295
|
peopleErrorSentence
|
|
296
|
-
} from "../chunk-
|
|
296
|
+
} from "../chunk-CZGTZJPS.js";
|
|
297
297
|
import "../chunk-ORXB4A5E.js";
|
|
298
298
|
import {
|
|
299
299
|
MatrxDataTableProvider,
|
|
@@ -11601,9 +11601,14 @@ function MatrxDataTableCore(coreProps) {
|
|
|
11601
11601
|
};
|
|
11602
11602
|
const selectionNoun = selection?.noun ?? "row";
|
|
11603
11603
|
const selectionCount = allMatching && selectionMatchingTotal !== void 0 ? selectionMatchingTotal : selectedIdSet.size;
|
|
11604
|
-
const offerSelectAllMatching = Boolean(selection) && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
|
|
11604
|
+
const offerSelectAllMatching = Boolean(selection) && selection?.selectAllMatching !== false && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
|
|
11605
11605
|
const selectAllMatching = () => {
|
|
11606
11606
|
if (!selection || selectionMatchingTotal === void 0) return;
|
|
11607
|
+
if (typeof selection.selectAllMatching === "function") {
|
|
11608
|
+
lastToggledIndex.current = null;
|
|
11609
|
+
selection.selectAllMatching();
|
|
11610
|
+
return;
|
|
11611
|
+
}
|
|
11607
11612
|
lastToggledIndex.current = null;
|
|
11608
11613
|
if (selectionMatchingTotal <= orderedRows.length) {
|
|
11609
11614
|
const next = new Set(selectedIdSet);
|