@ai-matrx/design-system 0.86.364 → 0.86.366

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 (69) hide show
  1. package/CHANGELOG.md +14 -1
  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/controls.cjs +2 -2
  13. package/dist/controls.cjs.map +1 -1
  14. package/dist/controls.js +3 -3
  15. package/dist/data-table/data-row-inspector.cjs +2 -2
  16. package/dist/data-table/data-row-inspector.cjs.map +1 -1
  17. package/dist/data-table/data-row-inspector.js +3 -3
  18. package/dist/data-table/data-row-window.cjs +2 -2
  19. package/dist/data-table/data-row-window.cjs.map +1 -1
  20. package/dist/data-table/data-row-window.js +4 -4
  21. package/dist/data-table/drill-chart.cjs +2 -2
  22. package/dist/data-table/drill-chart.cjs.map +1 -1
  23. package/dist/data-table/drill-chart.js +2 -2
  24. package/dist/data-table/index.cjs +2 -2
  25. package/dist/data-table/index.cjs.map +1 -1
  26. package/dist/data-table/index.js +5 -5
  27. package/dist/data-table/uuid-cell.cjs +2 -2
  28. package/dist/data-table/uuid-cell.cjs.map +1 -1
  29. package/dist/data-table/uuid-cell.js +2 -2
  30. package/dist/desktop.cjs +2 -2
  31. package/dist/desktop.cjs.map +1 -1
  32. package/dist/desktop.js +3 -3
  33. package/dist/email-input-dialog.cjs +2 -2
  34. package/dist/email-input-dialog.cjs.map +1 -1
  35. package/dist/email-input-dialog.js +2 -2
  36. package/dist/error-sentence.cjs +2 -2
  37. package/dist/error-sentence.cjs.map +1 -1
  38. package/dist/error-sentence.js +1 -1
  39. package/dist/index.cjs +54 -12
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +7 -2
  42. package/dist/index.d.ts +7 -2
  43. package/dist/index.js +58 -16
  44. package/dist/index.js.map +1 -1
  45. package/dist/lite-table.cjs +2 -2
  46. package/dist/lite-table.cjs.map +1 -1
  47. package/dist/lite-table.js +3 -3
  48. package/dist/record-list.cjs +2 -2
  49. package/dist/record-list.cjs.map +1 -1
  50. package/dist/record-list.js +3 -3
  51. package/dist/swipe-deck.cjs +14 -5
  52. package/dist/swipe-deck.cjs.map +1 -1
  53. package/dist/swipe-deck.css +6 -0
  54. package/dist/swipe-deck.d.cts +11 -0
  55. package/dist/swipe-deck.d.ts +11 -0
  56. package/dist/swipe-deck.js +14 -5
  57. package/dist/swipe-deck.js.map +1 -1
  58. package/dist/text-input-dialog.cjs +2 -2
  59. package/dist/text-input-dialog.cjs.map +1 -1
  60. package/dist/text-input-dialog.js +2 -2
  61. package/package.json +2 -2
  62. package/dist/chunk-HS6GMHKZ.js.map +0 -1
  63. /package/dist/{chunk-RO5CRIOL.js.map → chunk-3JEAXZKX.js.map} +0 -0
  64. /package/dist/{chunk-5Z5GTXKL.js.map → chunk-FEITX4L3.js.map} +0 -0
  65. /package/dist/{chunk-GUGBVQ4T.js.map → chunk-OAK4ENIP.js.map} +0 -0
  66. /package/dist/{chunk-UGUVTE77.js.map → chunk-QEQDJBNK.js.map} +0 -0
  67. /package/dist/{chunk-QJ6SQNXD.js.map → chunk-TBWKBTPM.js.map} +0 -0
  68. /package/dist/{chunk-2QFA6CK4.js.map → chunk-UAIBCPMB.js.map} +0 -0
  69. /package/dist/{chunk-VOLSYNJY.js.map → chunk-VG765KBC.js.map} +0 -0
@@ -10,14 +10,14 @@ import {
10
10
  ReadEmpty,
11
11
  ReadStaleNotice,
12
12
  readOf
13
- } from "./chunk-GUGBVQ4T.js";
13
+ } from "./chunk-OAK4ENIP.js";
14
14
  import "./chunk-WUI5OFCH.js";
15
15
  import "./chunk-HEFTQUJ5.js";
16
16
  import {
17
17
  MAC_LIST_ATTRIBUTE
18
18
  } from "./chunk-5JZSBNEY.js";
19
19
  import "./chunk-K4XCB576.js";
20
- import "./chunk-5Z5GTXKL.js";
20
+ import "./chunk-FEITX4L3.js";
21
21
  import {
22
22
  Checkbox
23
23
  } from "./chunk-VLLUUOYJ.js";
@@ -31,7 +31,7 @@ import "./chunk-BKCJUFD3.js";
31
31
  import "./chunk-MOZRIHJF.js";
32
32
  import "./chunk-AKSKVT2M.js";
33
33
  import "./chunk-BNXNIN2S.js";
34
- import "./chunk-HS6GMHKZ.js";
34
+ import "./chunk-CZGTZJPS.js";
35
35
  import "./chunk-B5D3VIMC.js";
36
36
  import "./chunk-WFITMVDB.js";
37
37
  import "./chunk-WAT2XW7L.js";
@@ -109,7 +109,7 @@ var RULES = [
109
109
  { 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." },
110
110
  { 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." },
111
111
  { code: "ECONNREFUSED", test: /\bECONNREFUSED\b|connection refused/i, cause: "The service isn't answering. It may have stopped; start it again." },
112
- { 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." },
112
+ { 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." },
113
113
  { code: "TIMEOUT", test: /\bETIMEDOUT\b|timed? ?out|\bTIMEOUT\b|deadline exceeded/i, cause: "It took too long to answer. Try again in a moment." },
114
114
  { code: "ENOSPC", test: /\bENOSPC\b|no space left/i, cause: "The disk is full. Free some space, then try again." },
115
115
  { code: "ENOMEM", test: /\bENOMEM\b|out of memory|cannot allocate memory/i, cause: "The computer ran out of memory. Close something and try again." },
@@ -173,7 +173,7 @@ function offlineText(text2) {
173
173
  return t !== "" && (describeError(t).code === "OFFLINE" || /networkerror|network request failed|load failed/i.test(t));
174
174
  }
175
175
  var ANY_HOST_CODES = /* @__PURE__ */ new Set(["OFFLINE", "TIMEOUT", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "RATE_LIMIT", "SERVER"]);
176
- var MACHINE_PREFIX = /^\s*(?:\[[\w./-]+\]\s*|[a-z][\w]*(?:[._][\w]+)+:\s+)/;
176
+ var MACHINE_PREFIX = /^\s*(?:\[[\w./-]+\]\s*|[a-z][\w]*(?:[._][\w]+)+:\s+|[a-z]+(?:[A-Z][a-z0-9]*)+:\s+)/;
177
177
  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;
178
178
  function peopleErrorSentence(error, message, options = {}) {
179
179
  const card = options.card === true;
@@ -469,6 +469,10 @@ function fitText(box, inner, text2, min, max) {
469
469
  else box.removeAttribute("data-sd-overflow");
470
470
  return size;
471
471
  }
472
+ function markOverflow(box, inner) {
473
+ if (inner.offsetHeight > box.clientHeight + 1) box.setAttribute("data-sd-overflow", "");
474
+ else box.removeAttribute("data-sd-overflow");
475
+ }
472
476
  function keepFitted(box, run) {
473
477
  run();
474
478
  let alive = true;
@@ -2416,7 +2420,8 @@ function SwipeDeck(props) {
2416
2420
  conflict,
2417
2421
  labels,
2418
2422
  suggestedDir,
2419
- more: cardMoreShown,
2423
+ more: props.moreOnCard === false ? [] : cardMoreShown,
2424
+ titleSize: props.titleSize ?? "fit",
2420
2425
  detail: detailNow,
2421
2426
  onDetail: (d) => setCardDetail({ id: step.item.id, detail: d }),
2422
2427
  body: cardContext && props.renderCardBody ? props.renderCardBody(cardContext) : null,
@@ -2516,6 +2521,7 @@ function CardView({
2516
2521
  onChoose,
2517
2522
  more,
2518
2523
  onChooseMore,
2524
+ titleSize,
2519
2525
  detail,
2520
2526
  onDetail,
2521
2527
  body,
@@ -2548,9 +2554,11 @@ function CardView({
2548
2554
  const box = layer.current;
2549
2555
  if (!box || !inner.current || !hero.current) return;
2550
2556
  return keepFitted(box, () => {
2551
- if (inner.current && hero.current) fitText(box, inner.current, hero.current, 20, heroMax(box));
2557
+ if (!inner.current || !hero.current) return;
2558
+ if (titleSize === "fit") fitText(box, inner.current, hero.current, 20, heroMax(box));
2559
+ else markOverflow(box, inner.current);
2552
2560
  });
2553
- }, [item.text, partsKey, item.members?.length, more.length]);
2561
+ }, [item.text, partsKey, item.members?.length, more.length, titleSize]);
2554
2562
  const nodes = [];
2555
2563
  for (let i = 0; i < tokens.length; ) {
2556
2564
  const p = parts.find((x) => x.start === i);
@@ -2581,6 +2589,7 @@ function CardView({
2581
2589
  ref: layer,
2582
2590
  className: "matrx-sd-layer",
2583
2591
  "data-sd-item": item.id,
2592
+ "data-sd-title": titleSize === "page" ? "page" : void 0,
2584
2593
  "aria-label": [item.kicker, item.text].filter(Boolean).join(": "),
2585
2594
  onDoubleClick: (e) => {
2586
2595
  const t = e.target instanceof Element ? e.target.closest("[data-sd-t]") : null;