@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/carousel.js +3 -3
  3. package/dist/{chunk-RO5CRIOL.js → chunk-3JEAXZKX.js} +2 -2
  4. package/dist/{chunk-HS6GMHKZ.js → chunk-CZGTZJPS.js} +3 -3
  5. package/dist/chunk-CZGTZJPS.js.map +1 -0
  6. package/dist/{chunk-5Z5GTXKL.js → chunk-FEITX4L3.js} +2 -2
  7. package/dist/{chunk-GUGBVQ4T.js → chunk-OAK4ENIP.js} +3 -3
  8. package/dist/{chunk-UGUVTE77.js → chunk-QEQDJBNK.js} +2 -2
  9. package/dist/{chunk-QJ6SQNXD.js → chunk-TBWKBTPM.js} +2 -2
  10. package/dist/{chunk-2QFA6CK4.js → chunk-UAIBCPMB.js} +2 -2
  11. package/dist/{chunk-VOLSYNJY.js → chunk-VG765KBC.js} +2 -2
  12. package/dist/content-transfer.css +3 -1
  13. package/dist/controls.cjs +2 -2
  14. package/dist/controls.cjs.map +1 -1
  15. package/dist/controls.css +7 -2
  16. package/dist/controls.js +3 -3
  17. package/dist/data-table/data-row-inspector.cjs +2 -2
  18. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  19. package/dist/data-table/data-row-inspector.js +3 -3
  20. package/dist/data-table/data-row-window.cjs +2 -2
  21. package/dist/data-table/data-row-window.cjs.map +1 -1
  22. package/dist/data-table/data-row-window.js +4 -4
  23. package/dist/data-table/drill-chart.cjs +2 -2
  24. package/dist/data-table/drill-chart.cjs.map +1 -1
  25. package/dist/data-table/drill-chart.js +2 -2
  26. package/dist/data-table/index.cjs +8 -3
  27. package/dist/data-table/index.cjs.map +1 -1
  28. package/dist/data-table/index.d.cts +7 -0
  29. package/dist/data-table/index.d.ts +7 -0
  30. package/dist/data-table/index.js +11 -6
  31. package/dist/data-table/index.js.map +1 -1
  32. package/dist/data-table/types.cjs.map +1 -1
  33. package/dist/data-table/types.d.cts +7 -0
  34. package/dist/data-table/types.d.ts +7 -0
  35. package/dist/data-table/uuid-cell.cjs +2 -2
  36. package/dist/data-table/uuid-cell.cjs.map +1 -1
  37. package/dist/data-table/uuid-cell.js +2 -2
  38. package/dist/desktop.cjs +2 -2
  39. package/dist/desktop.cjs.map +1 -1
  40. package/dist/desktop.js +3 -3
  41. package/dist/email-input-dialog.cjs +2 -2
  42. package/dist/email-input-dialog.cjs.map +1 -1
  43. package/dist/email-input-dialog.js +2 -2
  44. package/dist/error-sentence.cjs +2 -2
  45. package/dist/error-sentence.cjs.map +1 -1
  46. package/dist/error-sentence.js +1 -1
  47. package/dist/index.cjs +55 -31
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +19 -4
  50. package/dist/index.d.ts +19 -4
  51. package/dist/index.js +59 -35
  52. package/dist/index.js.map +1 -1
  53. package/dist/lite-table.cjs +2 -2
  54. package/dist/lite-table.cjs.map +1 -1
  55. package/dist/lite-table.js +3 -3
  56. package/dist/record-list.cjs +2 -2
  57. package/dist/record-list.cjs.map +1 -1
  58. package/dist/record-list.js +3 -3
  59. package/dist/swipe-deck.cjs +3 -3
  60. package/dist/swipe-deck.cjs.map +1 -1
  61. package/dist/swipe-deck.css +9 -0
  62. package/dist/swipe-deck.js +3 -3
  63. package/dist/swipe-deck.js.map +1 -1
  64. package/dist/text-input-dialog.cjs +2 -2
  65. package/dist/text-input-dialog.cjs.map +1 -1
  66. package/dist/text-input-dialog.js +2 -2
  67. package/package.json +2 -2
  68. package/dist/chunk-HS6GMHKZ.js.map +0 -1
  69. /package/dist/{chunk-RO5CRIOL.js.map → chunk-3JEAXZKX.js.map} +0 -0
  70. /package/dist/{chunk-5Z5GTXKL.js.map → chunk-FEITX4L3.js.map} +0 -0
  71. /package/dist/{chunk-GUGBVQ4T.js.map → chunk-OAK4ENIP.js.map} +0 -0
  72. /package/dist/{chunk-UGUVTE77.js.map → chunk-QEQDJBNK.js.map} +0 -0
  73. /package/dist/{chunk-QJ6SQNXD.js.map → chunk-TBWKBTPM.js.map} +0 -0
  74. /package/dist/{chunk-2QFA6CK4.js.map → chunk-UAIBCPMB.js.map} +0 -0
  75. /package/dist/{chunk-VOLSYNJY.js.map → chunk-VG765KBC.js.map} +0 -0
@@ -13,11 +13,11 @@ import {
13
13
  } from "../chunk-N3LMBQYT.js";
14
14
  import {
15
15
  ErrorBox
16
- } from "../chunk-5Z5GTXKL.js";
16
+ } from "../chunk-FEITX4L3.js";
17
17
  import {
18
18
  Skeleton
19
19
  } from "../chunk-DRSBLHOF.js";
20
- import "../chunk-HS6GMHKZ.js";
20
+ import "../chunk-CZGTZJPS.js";
21
21
  import "../chunk-IMOOQQOO.js";
22
22
  import {
23
23
  cn
@@ -3883,7 +3883,7 @@ var RULES = [
3883
3883
  { code: "EACCES", test: /\bEACCES\b|\bEPERM\b|permission denied|operation not permitted|not authori[sz]ed by the user/i, cause: "Matrx isn't allowed to do that. Grant access in System Settings \u203A Privacy & Security, then try again." },
3884
3884
  { code: "EADDRINUSE", test: /\bEADDRINUSE\b|address already in use|port .* (is )?(already )?in use/i, cause: "Another program is already using that port. Stop it, or choose another port." },
3885
3885
  { code: "ECONNREFUSED", test: /\bECONNREFUSED\b|connection refused/i, cause: "The service isn't answering. It may have stopped; start it again." },
3886
- { code: "OFFLINE", test: /\bENOTFOUND\b|\bEAI_AGAIN\b|\bENETUNREACH\b|getaddrinfo|network (is )?unreachable|failed to fetch|offline/i, cause: "Can't reach the internet. Check the connection and try again." },
3886
+ { code: "OFFLINE", test: /\bENOTFOUND\b|\bEAI_AGAIN\b|\bENETUNREACH\b|getaddrinfo|network (is )?unreachable|failed to fetch|offline|(?:could ?n[o']t|cannot|can't) be reached/i, cause: "Can't reach the internet. Check the connection and try again." },
3887
3887
  { code: "TIMEOUT", test: /\bETIMEDOUT\b|timed? ?out|\bTIMEOUT\b|deadline exceeded/i, cause: "It took too long to answer. Try again in a moment." },
3888
3888
  { code: "ENOSPC", test: /\bENOSPC\b|no space left/i, cause: "The disk is full. Free some space, then try again." },
3889
3889
  { code: "ENOMEM", test: /\bENOMEM\b|out of memory|cannot allocate memory/i, cause: "The computer ran out of memory. Close something and try again." },
@@ -3947,7 +3947,7 @@ function offlineText(text) {
3947
3947
  return t !== "" && (describeError(t).code === "OFFLINE" || /networkerror|network request failed|load failed/i.test(t));
3948
3948
  }
3949
3949
  var ANY_HOST_CODES = /* @__PURE__ */ new Set(["OFFLINE", "TIMEOUT", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "RATE_LIMIT", "SERVER"]);
3950
- var MACHINE_PREFIX = /^\s*(?:\[[\w./-]+\]\s*|[a-z][\w]*(?:[._][\w]+)+:\s+)/;
3950
+ var MACHINE_PREFIX = /^\s*(?:\[[\w./-]+\]\s*|[a-z][\w]*(?:[._][\w]+)+:\s+|[a-z]+(?:[A-Z][a-z0-9]*)+:\s+)/;
3951
3951
  var RAW_TEXT = /\b(?:Type|Reference|Syntax|Range|Internal|Eval|URI)Error\b|\bat\s+[\w$.<>]+\s*\(|\.(?:[cm]?[jt]sx?|py):\d+|(?:^|[\s(])(?:\/[\w.@-]+){2,}|\bundefined is not\b|\bcannot read propert(?:y|ies)\b|\bis not a function\b|\bunexpected token\b/i;
3952
3952
  function peopleErrorSentence(error, message, options = {}) {
3953
3953
  const card = options.card === true;
@@ -23763,9 +23763,14 @@ function MatrxDataTableCore(coreProps) {
23763
23763
  };
23764
23764
  const selectionNoun = selection?.noun ?? "row";
23765
23765
  const selectionCount = allMatching && selectionMatchingTotal !== void 0 ? selectionMatchingTotal : selectedIdSet.size;
23766
- const offerSelectAllMatching = Boolean(selection) && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
23766
+ const offerSelectAllMatching = Boolean(selection) && selection?.selectAllMatching !== false && !allMatching && allOnPageSelected && selectionMatchingTotal !== void 0 && selectionMatchingTotal > selectedIdSet.size;
23767
23767
  const selectAllMatching = () => {
23768
23768
  if (!selection || selectionMatchingTotal === void 0) return;
23769
+ if (typeof selection.selectAllMatching === "function") {
23770
+ lastToggledIndex.current = null;
23771
+ selection.selectAllMatching();
23772
+ return;
23773
+ }
23769
23774
  lastToggledIndex.current = null;
23770
23775
  if (selectionMatchingTotal <= orderedRows.length) {
23771
23776
  const next = new Set(selectedIdSet);