@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.
- package/CHANGELOG.md +14 -1
- 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/controls.cjs +2 -2
- package/dist/controls.cjs.map +1 -1
- 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 +2 -2
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +5 -5
- 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 +54 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +58 -16
- 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 +14 -5
- package/dist/swipe-deck.cjs.map +1 -1
- package/dist/swipe-deck.css +6 -0
- package/dist/swipe-deck.d.cts +11 -0
- package/dist/swipe-deck.d.ts +11 -0
- package/dist/swipe-deck.js +14 -5
- 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
package/dist/record-list.js
CHANGED
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
ReadEmpty,
|
|
11
11
|
ReadStaleNotice,
|
|
12
12
|
readOf
|
|
13
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
34
|
+
import "./chunk-CZGTZJPS.js";
|
|
35
35
|
import "./chunk-B5D3VIMC.js";
|
|
36
36
|
import "./chunk-WFITMVDB.js";
|
|
37
37
|
import "./chunk-WAT2XW7L.js";
|
package/dist/swipe-deck.cjs
CHANGED
|
@@ -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
|
|
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;
|