@nocopypaste/vue-grid 0.6.0 → 0.7.0
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/AGENTS.md +7 -1
- package/CHANGELOG.md +24 -0
- package/README.md +143 -67
- package/agent/api.json +51 -9
- package/agent/api.md +14 -6
- package/agent/grid-config.schema.json +9 -11
- package/dist/agent/api.js +51 -9
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +545 -520
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js +4 -3
- package/dist/components/VGridCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/components/VGridColumnMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js +50 -49
- package/dist/components/VGridFilterInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js +151 -146
- package/dist/components/VGridFilterPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js +44 -43
- package/dist/components/VGridFilterPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js +10 -8
- package/dist/components/VGridGroupCells.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js +62 -57
- package/dist/components/VGridHeader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js +59 -58
- package/dist/components/VGridMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js +62 -55
- package/dist/components/VGridPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridResizeHandle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VGridResizeHandle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/VGridRows.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js +27 -26
- package/dist/components/VGridSearch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js +12 -11
- package/dist/components/VGridSelectionBanner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js +37 -30
- package/dist/components/VGridStatusBar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useGridExport.js +21 -6
- package/dist/composables/useGridExport.js.map +1 -1
- package/dist/composables/useGridMenus.js +41 -41
- package/dist/composables/useGridMenus.js.map +1 -1
- package/dist/composables/useStatusBar.js +9 -0
- package/dist/composables/useStatusBar.js.map +1 -1
- package/dist/features/export.js.map +1 -1
- package/dist/internal/context.js.map +1 -1
- package/dist/internal/messages.js +20 -0
- package/dist/internal/messages.js.map +1 -0
- package/dist/internal/print.js +51 -0
- package/dist/internal/print.js.map +1 -0
- package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js +31 -30
- package/dist/renderers/ActionsMenuCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js +28 -27
- package/dist/renderers/ChangeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js +22 -21
- package/dist/renderers/CopyCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js +37 -36
- package/dist/renderers/DetailsCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js +16 -15
- package/dist/renderers/EditCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/renderers/IconToggleCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js +21 -20
- package/dist/renderers/JsonCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/JsonTreeCell.vue_vue_type_script_setup_true_lang.js +21 -20
- package/dist/renderers/JsonTreeCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/ListCell.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/renderers/ListCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/renderers/MultiLineCell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/renderers/parts/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/types/components/VGrid.vue.d.ts +34 -7
- package/dist/types/components/VGridColumnMenu.vue.d.ts +4 -5
- package/dist/types/components/VGridMenu.vue.d.ts +1 -1
- package/dist/types/components/VGridPagination.vue.d.ts +8 -3
- package/dist/types/components/VGridSearch.vue.d.ts +2 -2
- package/dist/types/composables/useGridExport.d.ts +2 -1
- package/dist/types/composables/useGridMenus.d.ts +3 -1
- package/dist/types/composables/useStatusBar.d.ts +7 -0
- package/dist/types/features/export.d.ts +2 -1
- package/dist/types/internal/context.d.ts +5 -1
- package/dist/types/internal/messages.d.ts +16 -0
- package/dist/types/internal/print.d.ts +16 -0
- package/dist/types/renderers/parts/CopyButton.vue.d.ts +1 -3
- package/dist/types/types.d.ts +300 -0
- package/llms-full.txt +164 -74
- package/llms.txt +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
return new Promise((t) => {
|
|
3
|
+
let n = document.createElement("iframe");
|
|
4
|
+
n.setAttribute("aria-hidden", "true"), n.tabIndex = -1, n.title = e.title ?? "Print", Object.assign(n.style, {
|
|
5
|
+
position: "fixed",
|
|
6
|
+
insetInlineStart: "-10000px",
|
|
7
|
+
insetBlockStart: "0",
|
|
8
|
+
width: "1000px",
|
|
9
|
+
height: "1000px",
|
|
10
|
+
border: "0"
|
|
11
|
+
}), document.body.appendChild(n);
|
|
12
|
+
let r = n.contentWindow, i = n.contentDocument, a = (e, t, n) => {
|
|
13
|
+
let r = i.createElement(e);
|
|
14
|
+
return t !== void 0 && (r.textContent = t), n && (r.className = n), r;
|
|
15
|
+
}, o = (t) => e.align[t] === "start" ? void 0 : e.align[t];
|
|
16
|
+
i.title = e.title ?? "", i.documentElement.lang = document.documentElement.lang || "en";
|
|
17
|
+
let s = a("style", "\n@page { margin: 12mm; }\n@page landscape { size: landscape; }\nhtml { font: 9.5pt/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #111; }\nbody { margin: 0; }\nh1 { font-size: 12pt; margin: 0 0 6pt; }\ntable { border-collapse: collapse; width: 100%; }\nth, td { border: 0.5pt solid #bbb; padding: 2pt 4pt; text-align: start; vertical-align: top;\n overflow-wrap: anywhere; white-space: pre-line; }\nthead th { background: #eef1f5; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }\n.total td { font-weight: 700; border-top: 1pt solid #666; }\ntr { break-inside: avoid; }\n.end { text-align: end; font-variant-numeric: tabular-nums; }\n.center { text-align: center; }\n" + (e.landscape ? "body { page: landscape; }" : ""));
|
|
18
|
+
i.head.append(s), e.title && i.body.append(a("h1", e.title));
|
|
19
|
+
let c = a("table");
|
|
20
|
+
if (e.header) {
|
|
21
|
+
let t = a("tr");
|
|
22
|
+
e.header.forEach((e, n) => {
|
|
23
|
+
let r = a("th", e, o(n));
|
|
24
|
+
r.scope = "col", t.append(r);
|
|
25
|
+
});
|
|
26
|
+
let n = a("thead");
|
|
27
|
+
n.append(t), c.append(n);
|
|
28
|
+
}
|
|
29
|
+
let l = a("tbody");
|
|
30
|
+
for (let t of e.body) {
|
|
31
|
+
let e = a("tr");
|
|
32
|
+
t.forEach((t, n) => e.append(a("td", t, o(n)))), l.append(e);
|
|
33
|
+
}
|
|
34
|
+
if (c.append(l), e.footer) {
|
|
35
|
+
let t = a("tr");
|
|
36
|
+
e.footer.forEach((e, n) => t.append(a("td", e, o(n)))), t.className = "total", l.append(t);
|
|
37
|
+
}
|
|
38
|
+
i.body.append(c);
|
|
39
|
+
let u = !1, d = () => {
|
|
40
|
+
u || (u = !0, window.removeEventListener("focus", d), n.remove(), t());
|
|
41
|
+
};
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
r.addEventListener("afterprint", d, { once: !0 }), r.focus();
|
|
44
|
+
let e = Date.now();
|
|
45
|
+
r.print(), Date.now() - e > 250 ? d() : u || window.addEventListener("focus", d, { once: !0 });
|
|
46
|
+
}, 0);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export { e as printTable };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=print.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.js","names":["printTable","frame","t","win","doc","el","node","tag","text","className","cls","i","style","table","row","th","h","thead","body","line","done","finish","resolve","started"],"sources":["../../src/internal/print.ts"],"sourcesContent":["import type { Align } from '../types'\n\n/** A table to print: text cells, with the header repeated on every page. */\nexport interface PrintTable {\n title?: string\n header?: readonly string[]\n body: readonly (readonly string[])[]\n /** A last, bold line (the totals row). */\n footer?: readonly string[]\n align: readonly Align[]\n landscape?: boolean\n}\n\nconst CSS = `\n@page { margin: 12mm; }\n@page landscape { size: landscape; }\nhtml { font: 9.5pt/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #111; }\nbody { margin: 0; }\nh1 { font-size: 12pt; margin: 0 0 6pt; }\ntable { border-collapse: collapse; width: 100%; }\nth, td { border: 0.5pt solid #bbb; padding: 2pt 4pt; text-align: start; vertical-align: top;\n overflow-wrap: anywhere; white-space: pre-line; }\nthead th { background: #eef1f5; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }\n.total td { font-weight: 700; border-top: 1pt solid #666; }\ntr { break-inside: avoid; }\n.end { text-align: end; font-variant-numeric: tabular-nums; }\n.center { text-align: center; }\n`\n\n/**\n * Prints a table from a hidden frame: the browser's print dialog, with a real `<table>` (so the\n * header repeats on each page), built with DOM calls only. Resolves when printing is over.\n */\nexport function printTable(t: PrintTable): Promise<void> {\n return new Promise((resolve) => {\n const frame = document.createElement('iframe')\n frame.setAttribute('aria-hidden', 'true')\n frame.tabIndex = -1\n frame.title = t.title ?? 'Print'\n // Off-screen but laid out: some browsers print an invisible frame blank.\n Object.assign(frame.style, {\n position: 'fixed',\n insetInlineStart: '-10000px',\n insetBlockStart: '0',\n width: '1000px',\n height: '1000px',\n border: '0',\n })\n document.body.appendChild(frame)\n const win = frame.contentWindow!\n const doc = frame.contentDocument!\n const el = <K extends keyof HTMLElementTagNameMap>(\n tag: K,\n text?: string,\n className?: string,\n ) => {\n const node = doc.createElement(tag)\n if (text !== undefined) node.textContent = text\n if (className) node.className = className\n return node\n }\n const cls = (i: number) => (t.align[i] === 'start' ? undefined : t.align[i])\n\n doc.title = t.title ?? ''\n doc.documentElement.lang = document.documentElement.lang || 'en'\n const style = el('style', CSS + (t.landscape ? 'body { page: landscape; }' : ''))\n doc.head.append(style)\n if (t.title) doc.body.append(el('h1', t.title))\n const table = el('table')\n if (t.header) {\n const row = el('tr')\n t.header.forEach((h, i) => {\n const th = el('th', h, cls(i))\n th.scope = 'col'\n row.append(th)\n })\n const thead = el('thead')\n thead.append(row)\n table.append(thead)\n }\n const body = el('tbody')\n for (const line of t.body) {\n const row = el('tr')\n line.forEach((text, i) => row.append(el('td', text, cls(i))))\n body.append(row)\n }\n table.append(body)\n if (t.footer) {\n const row = el('tr')\n t.footer.forEach((text, i) => row.append(el('td', text, cls(i))))\n // A last body row, not a <tfoot>: browsers repeat a table footer on every printed page.\n row.className = 'total'\n body.append(row)\n }\n doc.body.append(table)\n\n let done = false\n const finish = () => {\n if (done) return\n done = true\n window.removeEventListener('focus', finish)\n frame.remove()\n resolve()\n }\n // After layout. `print()` blocks until the dialog closes in most browsers; where it doesn't,\n // `afterprint` (or the page getting focus back) ends it.\n setTimeout(() => {\n win.addEventListener('afterprint', finish, { once: true })\n win.focus()\n const started = Date.now()\n win.print()\n // It blocked while the dialog was open: printing is over.\n if (Date.now() - started > 250) finish()\n else if (!done) window.addEventListener('focus', finish, { once: true })\n }, 0)\n })\n}\n"],"mappings":"AAiCA,SAAgBA,EAAW,GAA8B;CACvD,OAAO,IAAI,SAAS,MAAY;EAC9B,IAAMC,IAAQ,SAAS,cAAc,QAAQ;EAa7C,AAZAA,EAAM,aAAa,eAAe,MAAM,GACxC,EAAM,WAAW,IACjB,EAAM,QAAQC,EAAE,SAAS,SAEzB,OAAO,OAAOD,EAAM,OAAO;GACzB,UAAU;GACV,kBAAkB;GAClB,iBAAiB;GACjB,OAAO;GACP,QAAQ;GACR,QAAQ;EACV,CAAC,GACD,SAAS,KAAK,YAAYA,CAAK;EAC/B,IAAME,IAAMF,EAAM,eACZG,IAAMH,EAAM,iBACZI,KACJ,GACA,GACA,MACG;GACH,IAAMC,IAAOF,EAAI,cAAcG,CAAG;GAGlC,OAFIC,MAAS,KAAA,MAAW,EAAK,cAAcA,IACvCC,MAAW,EAAK,YAAYA,IACzBH;EACT,GACMI,KAAO,MAAeR,EAAE,MAAMS,OAAO,UAAU,KAAA,IAAYT,EAAE,MAAMS;EAGzE,AADA,EAAI,QAAQT,EAAE,SAAS,IACvB,EAAI,gBAAgB,OAAO,SAAS,gBAAgB,QAAQ;EAC5D,IAAMU,IAAQP,EAA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EAAI,MAAM;GACV,IAAMoB,IAAU,KAAK,IAAI;GAGzB,AAFApB,EAAI,MAAM,GAEN,KAAK,IAAI,IAAIoB,IAAU,MAAKF,EAAO,IAC7BD,KAAM,OAAO,iBAAiB,SAASC,GAAQ,EAAE,MAAM,GAAK,CAAC;EACzE,GAAG,CAAC;CACN,CAAC;AACH"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import e from "../components/VGridMenu.js";
|
|
2
2
|
import { anchorNameFor as t } from "../internal/anchor.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useMessages as n } from "../internal/messages.js";
|
|
4
|
+
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeStyle as l, openBlock as u, ref as d, unref as f, useId as p, withModifiers as m } from "vue";
|
|
4
5
|
// src/renderers/ActionsMenuCell.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var h = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "vg-actions-menu"
|
|
8
|
-
},
|
|
9
|
+
}, g = ["aria-label", "aria-expanded"], _ = /*@__PURE__*/ c({
|
|
9
10
|
__name: "ActionsMenuCell",
|
|
10
11
|
props: {
|
|
11
12
|
value: {},
|
|
@@ -17,59 +18,59 @@ var m = {
|
|
|
17
18
|
options: {}
|
|
18
19
|
},
|
|
19
20
|
emits: ["action"],
|
|
20
|
-
setup(
|
|
21
|
-
let
|
|
22
|
-
let e =
|
|
23
|
-
return (typeof e == "function" ? e(
|
|
21
|
+
setup(c, { emit: _ }) {
|
|
22
|
+
let v = c, y = n(), b = _, x = p(), S = `vg-actions-${x}`, C = t(`actions-${x}`), w = d(!1), T = r(() => {
|
|
23
|
+
let e = v.options.actions;
|
|
24
|
+
return (typeof e == "function" ? e(v.row) : e) ?? [];
|
|
24
25
|
});
|
|
25
|
-
function
|
|
26
|
-
|
|
26
|
+
function E(e) {
|
|
27
|
+
b("action", e.name, e);
|
|
27
28
|
}
|
|
28
|
-
return (t, n) =>
|
|
29
|
+
return (t, n) => T.value.length ? (u(), a("span", h, [o("button", {
|
|
29
30
|
type: "button",
|
|
30
31
|
class: "vg-icon-button",
|
|
31
|
-
"aria-label":
|
|
32
|
+
"aria-label": c.options.label ?? f(y).actions ?? "Actions",
|
|
32
33
|
"aria-haspopup": "menu",
|
|
33
|
-
"aria-expanded":
|
|
34
|
-
"aria-controls":
|
|
35
|
-
popovertarget:
|
|
36
|
-
style:
|
|
37
|
-
onClick: n[0] ||=
|
|
38
|
-
}, [...n[3] ||= [
|
|
34
|
+
"aria-expanded": w.value,
|
|
35
|
+
"aria-controls": S,
|
|
36
|
+
popovertarget: S,
|
|
37
|
+
style: l({ "anchor-name": f(C) }),
|
|
38
|
+
onClick: n[0] ||= m(() => {}, ["stop"])
|
|
39
|
+
}, [...n[3] ||= [o("svg", {
|
|
39
40
|
viewBox: "0 0 16 16",
|
|
40
41
|
"aria-hidden": "true"
|
|
41
42
|
}, [
|
|
42
|
-
|
|
43
|
+
o("circle", {
|
|
43
44
|
cx: "8",
|
|
44
45
|
cy: "3",
|
|
45
46
|
r: "1.5"
|
|
46
47
|
}),
|
|
47
|
-
|
|
48
|
+
o("circle", {
|
|
48
49
|
cx: "8",
|
|
49
50
|
cy: "8",
|
|
50
51
|
r: "1.5"
|
|
51
52
|
}),
|
|
52
|
-
|
|
53
|
+
o("circle", {
|
|
53
54
|
cx: "8",
|
|
54
55
|
cy: "13",
|
|
55
56
|
r: "1.5"
|
|
56
57
|
})
|
|
57
|
-
], -1)]], 12,
|
|
58
|
-
id:
|
|
59
|
-
items:
|
|
60
|
-
label:
|
|
61
|
-
"anchor-name":
|
|
58
|
+
], -1)]], 12, g), s(e, {
|
|
59
|
+
id: S,
|
|
60
|
+
items: T.value,
|
|
61
|
+
label: c.options.label ?? f(y).actions ?? "Actions",
|
|
62
|
+
"anchor-name": f(C),
|
|
62
63
|
placement: "bottom-end",
|
|
63
|
-
onSelect:
|
|
64
|
-
onOpen: n[1] ||= (e) =>
|
|
65
|
-
onClose: n[2] ||= (e) =>
|
|
64
|
+
onSelect: E,
|
|
65
|
+
onOpen: n[1] ||= (e) => w.value = !0,
|
|
66
|
+
onClose: n[2] ||= (e) => w.value = !1
|
|
66
67
|
}, null, 8, [
|
|
67
68
|
"items",
|
|
68
69
|
"label",
|
|
69
70
|
"anchor-name"
|
|
70
|
-
])])) :
|
|
71
|
+
])])) : i("", !0);
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
|
-
export {
|
|
74
|
+
export { _ as default };
|
|
74
75
|
|
|
75
76
|
//# sourceMappingURL=ActionsMenuCell.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsMenuCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","
|
|
1
|
+
{"version":3,"file":"ActionsMenuCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeStyle","_withModifiers","_createVNode","VGridMenu","VGridMenu_default","_hoisted_1","_hoisted_2","ActionsMenuCell_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","m","useMessages","emit","uid","useId","menuId","anchor","anchorNameFor","open","ref","items","computed","a","choose","item","openBlock","createElementBlock","createElementVNode","unref","normalizeStyle","_cache","withModifiers","createVNode","createCommentVNode"],"sources":["../../src/renderers/ActionsMenuCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, useId } from 'vue'\nimport VGridMenu from '../components/VGridMenu.vue'\nimport { anchorNameFor } from '../internal/anchor'\nimport type { CellRendererEmits, CellRendererProps, MenuAction, MenuItem } from '../types'\nimport type { ActionsMenuOptions } from './options'\nimport { useMessages } from '../internal/messages'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, ActionsMenuOptions>>()\nconst m = useMessages()\nconst emit = defineEmits<CellRendererEmits>()\n\nconst uid = useId()\nconst menuId = `vg-actions-${uid}`\n// The trigger is the anchor; the menu is positioned against it purely in CSS and follows it\n// while the grid scrolls (no JS placement, no close-on-scroll).\nconst anchor = anchorNameFor(`actions-${uid}`)\nconst open = ref(false)\n\nconst items = computed<MenuItem[]>(() => {\n const a = props.options.actions\n return (typeof a === 'function' ? a(props.row) : a) ?? []\n})\n\nfunction choose(item: MenuAction) {\n emit('action', item.name, item)\n}\n</script>\n\n<template>\n <span v-if=\"items.length\" class=\"vg-actions-menu\">\n <button\n type=\"button\"\n class=\"vg-icon-button\"\n :aria-label=\"options.label ?? m.actions ?? 'Actions'\"\n aria-haspopup=\"menu\"\n :aria-expanded=\"open\"\n :aria-controls=\"menuId\"\n :popovertarget=\"menuId\"\n :style=\"{ 'anchor-name': anchor }\"\n @click.stop\n >\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n <circle cx=\"8\" cy=\"3\" r=\"1.5\" />\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" />\n <circle cx=\"8\" cy=\"13\" r=\"1.5\" />\n </svg>\n </button>\n <VGridMenu\n :id=\"menuId\"\n :items=\"items\"\n :label=\"options.label ?? m.actions ?? 'Actions'\"\n :anchor-name=\"anchor\"\n placement=\"bottom-end\"\n @select=\"choose\"\n @open=\"open = true\"\n @close=\"open = false\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAQA,IAAMa,IAAQC,GACRC,IAAIC,EAAY,GAChBC,IAAOL,GAEPM,IAAMC,EAAM,GACZC,IAAS,cAAcF,KAGvBG,IAASC,EAAc,WAAWJ,GAAK,GACvCK,IAAOC,EAAI,EAAK,GAEhBC,IAAQC,QAA2B;GACvC,IAAMC,IAAId,EAAM,QAAQ;GACxB,QAAQ,OAAOc,KAAM,aAAaA,EAAEd,EAAM,GAAG,IAAIc,MAAM,CAAC;EAC1D,CAAC;EAED,SAASC,EAAO,GAAkB;GAChC,EAAK,UAAUC,EAAK,MAAMA,CAAI;EAChC;E,iBAIcJ,EAAA,MAAM,UAAlBzB,EAAA,GAAAC,EA4BO,QA5BPQ,GA4BO,CA3BLP,EAgBS,UAAA;GAfP,MAAK;GACL,OAAM;GACL,cAAYY,EAAA,QAAQ,SAASX,EAAAY,CAAA,CAAC,CAAC,WAAO;GACvC,iBAAc;GACb,iBAAeQ,EAAA;GACf,iBAAeH;GACf,eAAeA;GACf,OAAKhB,EAAA,EAAA,eAAmBD,EAAAkB,CAAA,EAAM,CAAA;GAC9B,SAAK,AAAAc,EAAA,OAAA9B,QAAN,CAAA,GAAW,CAAA,MAAA,CAAA;E,iBAEXH,EAIM,OAAA;GAJD,SAAQ;GAAY,eAAY;;GACnCA,EAAgC,UAAA;IAAxB,IAAG;IAAI,IAAG;IAAI,GAAE;;GACxBA,EAAgC,UAAA;IAAxB,IAAG;IAAI,IAAG;IAAI,GAAE;;GACxBA,EAAiC,UAAA;IAAzB,IAAG;IAAI,IAAG;IAAK,GAAE;;E,kBAG7BI,EASEC,GAAA;GARC,IAAIa;GACJ,OAAOK,EAAA;GACP,OAAOX,EAAA,QAAQ,SAASX,EAAAY,CAAA,CAAC,CAAC,WAAO;GACjC,eAAaZ,EAAAkB,CAAA;GACd,WAAU;GACT,UAAQO;GACR,QAAI,AAAAO,EAAA,QAAA,MAAE,EAAA,QAAI;GACV,SAAK,AAAAA,EAAA,QAAA,MAAE,EAAA,QAAI"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { useGridContext as e } from "../registry/plugin.js";
|
|
2
2
|
import { formatCurrency as t, formatNumber as n, toNumber as r } from "./format.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useMessages as i } from "../internal/messages.js";
|
|
4
|
+
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, toDisplayString as p } from "vue";
|
|
4
5
|
// src/renderers/ChangeCell.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var m = [
|
|
6
7
|
"title",
|
|
7
8
|
"role",
|
|
8
9
|
"aria-label"
|
|
9
|
-
],
|
|
10
|
+
], h = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "vg-change-icon",
|
|
12
13
|
viewBox: "0 0 10 10",
|
|
13
14
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
15
|
+
}, g = {
|
|
15
16
|
key: 0,
|
|
16
17
|
d: "M5 1.5 9 7.5H1z"
|
|
17
|
-
},
|
|
18
|
+
}, _ = {
|
|
18
19
|
key: 1,
|
|
19
20
|
d: "M5 8.5 1 2.5h8z"
|
|
20
|
-
},
|
|
21
|
+
}, v = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "vg-sr-only"
|
|
23
|
-
},
|
|
24
|
+
}, y = { class: "vg-change-value" }, b = /*@__PURE__*/ u({
|
|
24
25
|
__name: "ChangeCell",
|
|
25
26
|
props: {
|
|
26
27
|
value: {},
|
|
@@ -31,29 +32,29 @@ var p = [
|
|
|
31
32
|
column: {},
|
|
32
33
|
options: {}
|
|
33
34
|
},
|
|
34
|
-
setup(
|
|
35
|
-
let
|
|
36
|
-
if (
|
|
37
|
-
if (
|
|
38
|
-
if (
|
|
39
|
-
let e = r(
|
|
35
|
+
setup(u) {
|
|
36
|
+
let b = u, x = i(), S = e(), C = o(() => {
|
|
37
|
+
if (b.options.direction) return b.options.direction(b.value, b.row) ?? "equal";
|
|
38
|
+
if (b.value === !0 || b.value === "true") return "up";
|
|
39
|
+
if (b.value === !1 || b.value === "false") return "down";
|
|
40
|
+
let e = r(b.value);
|
|
40
41
|
return e === null || e === 0 ? "equal" : e > 0 ? "up" : "down";
|
|
41
|
-
}),
|
|
42
|
-
let { currency: e, format: i, placeholder: a } =
|
|
43
|
-
return typeof
|
|
44
|
-
}),
|
|
45
|
-
up: "Increased",
|
|
46
|
-
down: "Decreased",
|
|
42
|
+
}), w = o(() => {
|
|
43
|
+
let { currency: e, format: i, placeholder: a } = b.options;
|
|
44
|
+
return typeof b.value == "boolean" || b.value === "true" || b.value === "false" ? "" : r(b.value) === null ? b.value === null || b.value === void 0 ? a ?? "" : String(b.value) : e ? t(b.value, S.value, typeof e == "string" ? e : void 0, i) : n(b.value, S.value, i);
|
|
45
|
+
}), T = o(() => ({
|
|
46
|
+
up: x.value.increased ?? "Increased",
|
|
47
|
+
down: x.value.decreased ?? "Decreased",
|
|
47
48
|
equal: ""
|
|
48
|
-
})[
|
|
49
|
-
return (e, t) => (
|
|
50
|
-
class:
|
|
51
|
-
title:
|
|
52
|
-
role:
|
|
53
|
-
"aria-label":
|
|
54
|
-
}, [
|
|
49
|
+
})[C.value]), E = o(() => b.options.iconOnly || !w.value);
|
|
50
|
+
return (e, t) => (f(), c("span", {
|
|
51
|
+
class: d(["vg-change", `vg-change-${C.value}`]),
|
|
52
|
+
title: E.value ? T.value || void 0 : w.value,
|
|
53
|
+
role: E.value && T.value ? "img" : void 0,
|
|
54
|
+
"aria-label": E.value && T.value ? [T.value, w.value].filter(Boolean).join(" ") : void 0
|
|
55
|
+
}, [C.value === "equal" ? s("", !0) : (f(), c("svg", h, [C.value === "up" ? (f(), c("path", g)) : (f(), c("path", _))])), E.value ? s("", !0) : (f(), c(a, { key: 1 }, [T.value ? (f(), c("span", v, p(T.value), 1)) : s("", !0), l("span", y, p(w.value), 1)], 64))], 10, m));
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
|
-
export {
|
|
58
|
+
export { b as default };
|
|
58
59
|
|
|
59
60
|
//# sourceMappingURL=ChangeCell.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_Fragment","_toDisplayString","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","ChangeCell_vue_vue_type_script_setup_true_lang_default","props","__props","ctx","useGridContext","direction","computed","n","toNumber","text","placeholder","currency","formatCurrency","format","formatNumber","srLabel","iconOnly","openBlock","createElementBlock","normalizeClass","createCommentVNode","Fragment","toDisplayString","createElementVNode"],"sources":["../../src/renderers/ChangeCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { useGridContext } from '../registry/plugin'\nimport type { CellRendererProps } from '../types'\nimport { formatCurrency, formatNumber, toNumber } from './format'\nimport type { ChangeOptions } from './options'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, ChangeOptions>>()\nconst ctx = useGridContext()\n\nconst direction = computed(() => {\n if (props.options.direction) return props.options.direction(props.value, props.row) ?? 'equal'\n // Booleans (also as strings, as some APIs send them) are a trend flag.\n if (props.value === true || props.value === 'true') return 'up'\n if (props.value === false || props.value === 'false') return 'down'\n const n = toNumber(props.value)\n return n === null || n === 0 ? 'equal' : n > 0 ? 'up' : 'down'\n})\n\nconst text = computed(() => {\n const { currency, format, placeholder } = props.options\n if (typeof props.value === 'boolean' || props.value === 'true' || props.value === 'false')\n return ''\n if (toNumber(props.value) === null) {\n return props.value === null || props.value === undefined\n ? (placeholder ?? '')\n : String(props.value)\n }\n if (currency)\n return formatCurrency(\n props.value,\n ctx.value,\n typeof currency === 'string' ? currency : undefined,\n format,\n )\n return formatNumber(props.value, ctx.value, format)\n})\n\nconst srLabel = computed(()
|
|
1
|
+
{"version":3,"file":"ChangeCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_Fragment","_toDisplayString","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","ChangeCell_vue_vue_type_script_setup_true_lang_default","props","__props","m","useMessages","ctx","useGridContext","direction","computed","n","toNumber","text","placeholder","currency","formatCurrency","format","formatNumber","srLabel","iconOnly","openBlock","createElementBlock","normalizeClass","createCommentVNode","Fragment","toDisplayString","createElementVNode"],"sources":["../../src/renderers/ChangeCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { useGridContext } from '../registry/plugin'\nimport type { CellRendererProps } from '../types'\nimport { formatCurrency, formatNumber, toNumber } from './format'\nimport type { ChangeOptions } from './options'\nimport { useMessages } from '../internal/messages'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, ChangeOptions>>()\nconst m = useMessages()\nconst ctx = useGridContext()\n\nconst direction = computed(() => {\n if (props.options.direction) return props.options.direction(props.value, props.row) ?? 'equal'\n // Booleans (also as strings, as some APIs send them) are a trend flag.\n if (props.value === true || props.value === 'true') return 'up'\n if (props.value === false || props.value === 'false') return 'down'\n const n = toNumber(props.value)\n return n === null || n === 0 ? 'equal' : n > 0 ? 'up' : 'down'\n})\n\nconst text = computed(() => {\n const { currency, format, placeholder } = props.options\n if (typeof props.value === 'boolean' || props.value === 'true' || props.value === 'false')\n return ''\n if (toNumber(props.value) === null) {\n return props.value === null || props.value === undefined\n ? (placeholder ?? '')\n : String(props.value)\n }\n if (currency)\n return formatCurrency(\n props.value,\n ctx.value,\n typeof currency === 'string' ? currency : undefined,\n format,\n )\n return formatNumber(props.value, ctx.value, format)\n})\n\nconst srLabel = computed(\n () =>\n ({\n up: m.value.increased ?? 'Increased',\n down: m.value.decreased ?? 'Decreased',\n equal: '',\n })[direction.value],\n)\nconst iconOnly = computed(() => props.options.iconOnly || !text.value)\n</script>\n\n<template>\n <span\n :class=\"['vg-change', `vg-change-${direction}`]\"\n :title=\"iconOnly ? srLabel || undefined : text\"\n :role=\"iconOnly && srLabel ? 'img' : undefined\"\n :aria-label=\"iconOnly && srLabel ? [srLabel, text].filter(Boolean).join(' ') : undefined\"\n >\n <svg v-if=\"direction !== 'equal'\" class=\"vg-change-icon\" viewBox=\"0 0 10 10\" aria-hidden=\"true\">\n <path v-if=\"direction === 'up'\" d=\"M5 1.5 9 7.5H1z\" />\n <path v-else d=\"M5 8.5 1 2.5h8z\" />\n </svg>\n <template v-if=\"!iconOnly\">\n <span v-if=\"srLabel\" class=\"vg-sr-only\">{{ srLabel }}</span>\n <span class=\"vg-change-value\">{{ text }}</span>\n </template>\n </span>\n</template>\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D,EAAA,QAAO,QAAW,KAAA;GACpC,cAAYC,EAAA,SAAYD,EAAA,QAAO,CAAIA,EAAA,OAASN,EAAA,KAAI,CAAA,CAAE,OAAO,OAAO,CAAA,CAAE,KAAI,GAAA,IAAQ,KAAA;E,IAEpEJ,EAAA,UAAS,U,aAApBnB,EAAA,GAAAC,EAGM,OAHNM,GAGM,CAFQY,EAAA,UAAS,QAArBnB,EAAA,GAAAC,EAAsD,QAAtDO,CAAsD,MACtDR,EAAA,GAAAC,EAAmC,QAAnCQ,CAAmC,E,KAEpBqB,EAAA,Q,aAAjB9B,EAAA,GAAAC,EAGWE,GAAA,EAAA,KAAA,EAAA,GAAA,CAFG0B,EAAA,SAAZ7B,EAAA,GAAAC,EAA4D,QAA5DS,GAA4DN,EAAjByB,EAAA,KAAO,GAAA,CAAA,K,WAClDxB,EAA+C,QAA/CM,GAA+CP,EAAdmB,EAAA,KAAI,GAAA,CAAA,C"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import e from "./parts/CopyButton.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useMessages as t } from "../internal/messages.js";
|
|
3
|
+
import { computed as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, toDisplayString as l, unref as u } from "vue";
|
|
3
4
|
// src/renderers/CopyCell.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var d = ["title"], f = {
|
|
5
6
|
key: 1,
|
|
6
7
|
class: "vg-text vg-text-muted"
|
|
7
|
-
},
|
|
8
|
+
}, p = /*@__PURE__*/ o({
|
|
8
9
|
__name: "CopyCell",
|
|
9
10
|
props: {
|
|
10
11
|
value: {},
|
|
@@ -16,29 +17,29 @@ var l = ["title"], u = {
|
|
|
16
17
|
options: {}
|
|
17
18
|
},
|
|
18
19
|
emits: ["action"],
|
|
19
|
-
setup(
|
|
20
|
-
let
|
|
21
|
-
if (
|
|
22
|
-
if (typeof
|
|
20
|
+
setup(o, { emit: p }) {
|
|
21
|
+
let m = o, h = t(), g = p, _ = n(() => m.value === null || m.value === void 0 || m.value === ""), v = n(() => {
|
|
22
|
+
if (_.value) return "";
|
|
23
|
+
if (typeof m.value != "object") return String(m.value);
|
|
23
24
|
try {
|
|
24
|
-
return JSON.stringify(
|
|
25
|
+
return JSON.stringify(m.value) ?? String(m.value);
|
|
25
26
|
} catch {
|
|
26
|
-
return String(
|
|
27
|
+
return String(m.value);
|
|
27
28
|
}
|
|
28
|
-
}),
|
|
29
|
-
return (t,
|
|
29
|
+
}), y = n(() => m.options.copyValue?.(m.value, m.row) ?? v.value), b = n(() => m.options.title ? `${m.options.title}: ${y.value}` : y.value);
|
|
30
|
+
return (t, n) => _.value ? o.options.placeholder ? (c(), i("span", f, l(o.options.placeholder), 1)) : r("", !0) : (c(), i("span", {
|
|
30
31
|
key: 0,
|
|
31
|
-
class:
|
|
32
|
-
}, [
|
|
32
|
+
class: s(["vg-copy", { "vg-copy-icon-only": o.options.iconOnly }])
|
|
33
|
+
}, [o.options.iconOnly ? r("", !0) : (c(), i("span", {
|
|
33
34
|
key: 0,
|
|
34
35
|
class: "vg-text vg-text-ellipsis",
|
|
35
|
-
title:
|
|
36
|
-
},
|
|
37
|
-
text:
|
|
38
|
-
label:
|
|
39
|
-
title:
|
|
40
|
-
onCopied:
|
|
41
|
-
onFailed:
|
|
36
|
+
title: b.value
|
|
37
|
+
}, l(v.value), 9, d)), a(e, {
|
|
38
|
+
text: y.value,
|
|
39
|
+
label: o.options.label ?? (o.options.title ? `${u(h).copy ?? "Copy"} ${o.options.title}` : u(h).copy ?? "Copy"),
|
|
40
|
+
title: b.value,
|
|
41
|
+
onCopied: n[0] ||= (e) => g("action", "copy", e),
|
|
42
|
+
onFailed: n[1] ||= (e) => g("action", "copy-error", e)
|
|
42
43
|
}, null, 8, [
|
|
43
44
|
"text",
|
|
44
45
|
"label",
|
|
@@ -46,6 +47,6 @@ var l = ["title"], u = {
|
|
|
46
47
|
])], 2));
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
export {
|
|
50
|
+
export { p as default };
|
|
50
51
|
|
|
51
52
|
//# sourceMappingURL=CopyCell.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_toDisplayString","_createVNode","CopyButton","CopyButton_default","_hoisted_1","_hoisted_2","CopyCell_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","isEmpty","computed","text","copyValue","tooltip","openBlock","createElementBlock","toDisplayString","createCommentVNode","normalizeClass","createVNode","_cache","$event"],"sources":["../../src/renderers/CopyCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport type { CellRendererEmits, CellRendererProps } from '../types'\nimport type { CopyOptions } from './options'\nimport CopyButton from './parts/CopyButton.vue'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, CopyOptions>>()\nconst emit = defineEmits<CellRendererEmits>()\n\nconst isEmpty = computed(\n () => props.value === null || props.value === undefined || props.value === '',\n)\nconst text = computed(() => {\n if (isEmpty.value) return ''\n if (typeof props.value !== 'object') return String(props.value)\n try {\n return JSON.stringify(props.value) ?? String(props.value)\n } catch {\n return String(props.value) // cyclic or BigInt inside\n }\n})\nconst copyValue = computed(() => props.options.copyValue?.(props.value, props.row) ?? text.value)\nconst tooltip = computed(() =>\n props.options.title ? `${props.options.title}: ${copyValue.value}` : copyValue.value,\n)\n</script>\n\n<template>\n <span v-if=\"!isEmpty\" :class=\"['vg-copy', { 'vg-copy-icon-only': options.iconOnly }]\">\n <span v-if=\"!options.iconOnly\" class=\"vg-text vg-text-ellipsis\" :title=\"tooltip\">{{\n text\n }}</span>\n <CopyButton\n :text=\"copyValue\"\n :label=\"options.label
|
|
1
|
+
{"version":3,"file":"CopyCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_toDisplayString","_createVNode","CopyButton","_unref","CopyButton_default","_hoisted_1","_hoisted_2","CopyCell_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","m","useMessages","emit","isEmpty","computed","text","copyValue","tooltip","openBlock","createElementBlock","toDisplayString","createCommentVNode","normalizeClass","createVNode","unref","_cache","$event"],"sources":["../../src/renderers/CopyCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport type { CellRendererEmits, CellRendererProps } from '../types'\nimport type { CopyOptions } from './options'\nimport CopyButton from './parts/CopyButton.vue'\nimport { useMessages } from '../internal/messages'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, CopyOptions>>()\nconst m = useMessages()\nconst emit = defineEmits<CellRendererEmits>()\n\nconst isEmpty = computed(\n () => props.value === null || props.value === undefined || props.value === '',\n)\nconst text = computed(() => {\n if (isEmpty.value) return ''\n if (typeof props.value !== 'object') return String(props.value)\n try {\n return JSON.stringify(props.value) ?? String(props.value)\n } catch {\n return String(props.value) // cyclic or BigInt inside\n }\n})\nconst copyValue = computed(() => props.options.copyValue?.(props.value, props.row) ?? text.value)\nconst tooltip = computed(() =>\n props.options.title ? `${props.options.title}: ${copyValue.value}` : copyValue.value,\n)\n</script>\n\n<template>\n <span v-if=\"!isEmpty\" :class=\"['vg-copy', { 'vg-copy-icon-only': options.iconOnly }]\">\n <span v-if=\"!options.iconOnly\" class=\"vg-text vg-text-ellipsis\" :title=\"tooltip\">{{\n text\n }}</span>\n <CopyButton\n :text=\"copyValue\"\n :label=\"\n options.label ??\n (options.title ? `${m.copy ?? 'Copy'} ${options.title}` : (m.copy ?? 'Copy'))\n \"\n :title=\"tooltip\"\n @copied=\"emit('action', 'copy', $event)\"\n @failed=\"emit('action', 'copy-error', $event)\"\n />\n </span>\n <span v-else-if=\"options.placeholder\" class=\"vg-text vg-text-muted\">{{\n options.placeholder\n }}</span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAOA,IAAMY,IAAQC,GACRC,IAAIC,E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AA,QAAA,MAAEb,EAAI,UAAA,cAAyBc,CAAM"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { anchorNameFor as e, trackAnchor as t } from "../internal/anchor.js";
|
|
2
2
|
import { resolveOption as n, resolveTone as r, safeTone as i } from "./options.js";
|
|
3
3
|
import { CrossIcon as a, InfoIcon as o } from "./parts/icons.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useMessages as s } from "../internal/messages.js";
|
|
5
|
+
import { Fragment as c, computed as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, openBlock as y, renderList as b, shallowRef as x, toDisplayString as S, unref as C, useId as w, withModifiers as T } from "vue";
|
|
5
6
|
// src/renderers/DetailsCell.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var E = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "vg-details"
|
|
9
|
-
},
|
|
10
|
+
}, D = ["aria-label", "title"], O = ["aria-label"], k = { class: "vg-details-header" }, A = ["aria-label"], j = { class: "vg-details-list" }, M = ["title"], N = { class: "vg-details-label" }, P = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "vg-details-detail"
|
|
12
|
-
},
|
|
13
|
+
}, F = /*@__PURE__*/ h({
|
|
13
14
|
__name: "DetailsCell",
|
|
14
15
|
props: {
|
|
15
16
|
value: {},
|
|
@@ -20,63 +21,63 @@ var T = {
|
|
|
20
21
|
column: {},
|
|
21
22
|
options: {}
|
|
22
23
|
},
|
|
23
|
-
setup(
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
24
|
+
setup(h) {
|
|
25
|
+
let F = h, I = s(), L = w(), R = `vg-details-${L}`, z = e(`details-${L}`), B = x(), V = x(), H = l(() => F.options.label ? F.options.label(F.value, F.row) : F.value == null ? "" : String(F.value)), U = l(() => r(F.options.tone, F.value, F.row) ?? "neutral"), W = l(() => F.options.items?.(F.value, F.row) ?? []), G = l(() => n(F.options.title, F.value, F.row) ?? F.column.header ?? ""), K = l(() => `${F.options.triggerLabel ?? I.value.details ?? "Details"}${G.value ? `: ${G.value}` : ""}`), q = () => {};
|
|
26
|
+
v(() => q());
|
|
27
|
+
function J(e) {
|
|
28
|
+
q(), e.newState === "open" && V.value && B.value && (q = t(V.value, B.value, "bottom-start"));
|
|
28
29
|
}
|
|
29
|
-
return (e, t) =>
|
|
30
|
+
return (e, t) => H.value || W.value.length ? (y(), d("span", E, [H.value ? (y(), d("span", {
|
|
30
31
|
key: 0,
|
|
31
|
-
class:
|
|
32
|
+
class: g([
|
|
32
33
|
"vg-status-badge",
|
|
33
34
|
"vg-status-soft",
|
|
34
|
-
`vg-tone-${
|
|
35
|
+
`vg-tone-${U.value}`
|
|
35
36
|
])
|
|
36
|
-
},
|
|
37
|
+
}, S(H.value), 3)) : u("", !0), W.value.length ? (y(), d(c, { key: 1 }, [f("button", {
|
|
37
38
|
ref_key: "trigger",
|
|
38
|
-
ref:
|
|
39
|
+
ref: B,
|
|
39
40
|
type: "button",
|
|
40
41
|
class: "vg-icon-button",
|
|
41
|
-
"aria-label":
|
|
42
|
-
title:
|
|
42
|
+
"aria-label": K.value,
|
|
43
|
+
title: K.value,
|
|
43
44
|
"aria-haspopup": "dialog",
|
|
44
|
-
"aria-controls":
|
|
45
|
-
popovertarget:
|
|
46
|
-
style:
|
|
47
|
-
onClick: t[0] ||=
|
|
48
|
-
}, [
|
|
49
|
-
id:
|
|
45
|
+
"aria-controls": R,
|
|
46
|
+
popovertarget: R,
|
|
47
|
+
style: _({ "anchor-name": C(z) }),
|
|
48
|
+
onClick: t[0] ||= T(() => {}, ["stop"])
|
|
49
|
+
}, [m(C(o))], 12, D), f("div", {
|
|
50
|
+
id: R,
|
|
50
51
|
ref_key: "panel",
|
|
51
|
-
ref:
|
|
52
|
+
ref: V,
|
|
52
53
|
popover: "auto",
|
|
53
54
|
role: "dialog",
|
|
54
|
-
"aria-label":
|
|
55
|
+
"aria-label": G.value || K.value,
|
|
55
56
|
class: "vg-menu vg-details-panel",
|
|
56
57
|
"data-placement": "bottom-start",
|
|
57
|
-
style:
|
|
58
|
-
onToggle:
|
|
59
|
-
onClick: t[1] ||=
|
|
60
|
-
}, [
|
|
58
|
+
style: _({ "position-anchor": C(z) }),
|
|
59
|
+
onToggle: J,
|
|
60
|
+
onClick: t[1] ||= T(() => {}, ["stop"])
|
|
61
|
+
}, [f("header", k, [f("strong", null, S(G.value), 1), f("button", {
|
|
61
62
|
type: "button",
|
|
62
63
|
class: "vg-icon-button",
|
|
63
|
-
"aria-label": "Close",
|
|
64
|
-
popovertarget:
|
|
64
|
+
"aria-label": C(I).close ?? "Close",
|
|
65
|
+
popovertarget: R,
|
|
65
66
|
popovertargetaction: "hide"
|
|
66
|
-
}, [
|
|
67
|
+
}, [m(C(a))], 8, A)]), f("ul", j, [(y(!0), d(c, null, b(W.value, (e, t) => (y(), d("li", {
|
|
67
68
|
key: t,
|
|
68
69
|
class: "vg-details-item",
|
|
69
70
|
title: e.tooltip
|
|
70
|
-
}, [
|
|
71
|
+
}, [f("span", N, [p(S(e.label) + " ", 1), e.detail ? (y(), d("span", P, S(e.detail), 1)) : u("", !0)]), e.value ? (y(), d("span", {
|
|
71
72
|
key: 0,
|
|
72
|
-
class:
|
|
73
|
+
class: g([
|
|
73
74
|
"vg-status-badge",
|
|
74
75
|
"vg-status-soft",
|
|
75
|
-
`vg-tone-${
|
|
76
|
+
`vg-tone-${C(i)(e.tone) ?? "neutral"}`
|
|
76
77
|
])
|
|
77
|
-
},
|
|
78
|
+
}, S(e.value), 3)) : u("", !0)], 8, M))), 128))])], 44, O)], 64)) : u("", !0)])) : u("", !0);
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
|
-
export {
|
|
81
|
+
export { F as default };
|
|
81
82
|
|
|
82
83
|
//# sourceMappingURL=DetailsCell.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_toDisplayString","_Fragment","_createElementVNode","_normalizeStyle","_unref","_withModifiers","_createVNode","_renderList","_createTextVNode","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","DetailsCell_vue_vue_type_script_setup_true_lang_default","props","__props","uid","useId","panelId","anchor","anchorNameFor","trigger","shallowRef","panel","label","computed","tone","resolveTone","items","title","resolveOption","triggerLabel","stopTracking","onToggle","event","trackAnchor","openBlock","createElementBlock","normalizeClass","toDisplayString","createCommentVNode","Fragment","createElementVNode","normalizeStyle","unref","_cache","withModifiers","createVNode","InfoIcon","CrossIcon","renderList","i","item","createTextVNode","safeTone"],"sources":["../../src/renderers/DetailsCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, shallowRef, useId } from 'vue'\nimport { anchorNameFor, trackAnchor } from '../internal/anchor'\nimport type { CellRendererProps } from '../types'\nimport { resolveOption, resolveTone, safeTone, type DetailsOptions } from './options'\nimport { CrossIcon, InfoIcon } from './parts/icons'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, DetailsOptions>>()\n\nconst uid = useId()\nconst panelId = `vg-details-${uid}`\nconst anchor = anchorNameFor(`details-${uid}`)\nconst trigger = shallowRef<HTMLButtonElement>()\nconst panel = shallowRef<HTMLElement>()\n\nconst label = computed(() =>\n props.options.label\n ? props.options.label(props.value, props.row)\n : props.value == null\n ? ''\n : String(props.value),\n)\nconst tone = computed(() => resolveTone(props.options.tone, props.value, props.row) ?? 'neutral')\nconst items = computed(() => props.options.items?.(props.value, props.row) ?? [])\nconst title = computed(\n () => resolveOption(props.options.title, props.value, props.row) ?? props.column.header ?? '',\n)\nconst triggerLabel = computed(\n ()
|
|
1
|
+
{"version":3,"file":"DetailsCell.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_normalizeClass","_toDisplayString","_Fragment","_createElementVNode","_normalizeStyle","_unref","_withModifiers","_createVNode","_renderList","_createTextVNode","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","DetailsCell_vue_vue_type_script_setup_true_lang_default","props","__props","m","useMessages","uid","useId","panelId","anchor","anchorNameFor","trigger","shallowRef","panel","label","computed","tone","resolveTone","items","title","resolveOption","triggerLabel","stopTracking","onToggle","event","trackAnchor","openBlock","createElementBlock","normalizeClass","toDisplayString","createCommentVNode","Fragment","createElementVNode","normalizeStyle","unref","_cache","withModifiers","createVNode","InfoIcon","CrossIcon","renderList","i","item","createTextVNode","safeTone"],"sources":["../../src/renderers/DetailsCell.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, shallowRef, useId } from 'vue'\nimport { anchorNameFor, trackAnchor } from '../internal/anchor'\nimport type { CellRendererProps } from '../types'\nimport { resolveOption, resolveTone, safeTone, type DetailsOptions } from './options'\nimport { CrossIcon, InfoIcon } from './parts/icons'\nimport { useMessages } from '../internal/messages'\n\nconst props = defineProps<CellRendererProps<unknown, unknown, DetailsOptions>>()\nconst m = useMessages()\n\nconst uid = useId()\nconst panelId = `vg-details-${uid}`\nconst anchor = anchorNameFor(`details-${uid}`)\nconst trigger = shallowRef<HTMLButtonElement>()\nconst panel = shallowRef<HTMLElement>()\n\nconst label = computed(() =>\n props.options.label\n ? props.options.label(props.value, props.row)\n : props.value == null\n ? ''\n : String(props.value),\n)\nconst tone = computed(() => resolveTone(props.options.tone, props.value, props.row) ?? 'neutral')\nconst items = computed(() => props.options.items?.(props.value, props.row) ?? [])\nconst title = computed(\n () => resolveOption(props.options.title, props.value, props.row) ?? props.column.header ?? '',\n)\nconst triggerLabel = computed(\n () =>\n `${props.options.triggerLabel ?? m.value.details ?? 'Details'}${title.value ? `: ${title.value}` : ''}`,\n)\n\nlet stopTracking = () => {}\nonBeforeUnmount(() => stopTracking())\n\nfunction onToggle(event: Event) {\n stopTracking()\n // Placed, followed and hidden by CSS anchor positioning; JS only where unsupported.\n if ((event as ToggleEvent).newState === 'open' && panel.value && trigger.value) {\n stopTracking = trackAnchor(panel.value, trigger.value, 'bottom-start')\n }\n}\n</script>\n\n<template>\n <span v-if=\"label || items.length\" class=\"vg-details\">\n <span v-if=\"label\" :class=\"['vg-status-badge', 'vg-status-soft', `vg-tone-${tone}`]\">{{\n label\n }}</span>\n <template v-if=\"items.length\">\n <button\n ref=\"trigger\"\n type=\"button\"\n class=\"vg-icon-button\"\n :aria-label=\"triggerLabel\"\n :title=\"triggerLabel\"\n aria-haspopup=\"dialog\"\n :aria-controls=\"panelId\"\n :popovertarget=\"panelId\"\n :style=\"{ 'anchor-name': anchor }\"\n @click.stop\n >\n <InfoIcon />\n </button>\n <div\n :id=\"panelId\"\n ref=\"panel\"\n popover=\"auto\"\n role=\"dialog\"\n :aria-label=\"title || triggerLabel\"\n class=\"vg-menu vg-details-panel\"\n data-placement=\"bottom-start\"\n :style=\"{ 'position-anchor': anchor }\"\n @toggle=\"onToggle\"\n @click.stop\n >\n <header class=\"vg-details-header\">\n <strong>{{ title }}</strong>\n <button\n type=\"button\"\n class=\"vg-icon-button\"\n :aria-label=\"m.close ?? 'Close'\"\n :popovertarget=\"panelId\"\n popovertargetaction=\"hide\"\n >\n <CrossIcon />\n </button>\n </header>\n <ul class=\"vg-details-list\">\n <li v-for=\"(item, i) in items\" :key=\"i\" class=\"vg-details-item\" :title=\"item.tooltip\">\n <span class=\"vg-details-label\">\n {{ item.label }}\n <span v-if=\"item.detail\" class=\"vg-details-detail\">{{ item.detail }}</span>\n </span>\n <span\n v-if=\"item.value\"\n :class=\"[\n 'vg-status-badge',\n 'vg-status-soft',\n `vg-tone-${safeTone(item.tone) ?? 'neutral'}`,\n ]\"\n >{{ item.value }}</span\n >\n </li>\n </ul>\n </div>\n </template>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;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