@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
|
@@ -1,100 +1,105 @@
|
|
|
1
1
|
import { normalizeColumnState as e, setColumnHidden as t } from "../core/columns.js";
|
|
2
2
|
import { anchorNameFor as n, trackAnchor as r } from "../internal/anchor.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, createTextVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeStyle as m, onBeforeUnmount as h, openBlock as g, ref as _, renderList as v, shallowRef as y, toDisplayString as b, unref as x, useId as S, useModel as C, vModelText as w, withDirectives as T } from "vue";
|
|
4
5
|
// src/components/VGridColumnMenu.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var E = { class: "vg-column-menu" }, D = ["aria-controls", "popovertarget"], O = ["id", "aria-label"], k = ["placeholder", "aria-label"], A = { class: "vg-column-list" }, j = { class: "vg-column-option" }, M = [
|
|
6
7
|
"checked",
|
|
7
8
|
"disabled",
|
|
8
9
|
"onChange"
|
|
9
|
-
],
|
|
10
|
+
], N = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "vg-text-muted vg-column-none"
|
|
12
|
-
},
|
|
13
|
+
}, P = /*@__PURE__*/ d({
|
|
13
14
|
__name: "VGridColumnMenu",
|
|
14
|
-
props: /*@__PURE__*/
|
|
15
|
+
props: /*@__PURE__*/ f({
|
|
15
16
|
columns: {},
|
|
16
|
-
label: {
|
|
17
|
-
filterPlaceholder: {
|
|
18
|
-
resetLabel: {
|
|
17
|
+
label: {},
|
|
18
|
+
filterPlaceholder: {},
|
|
19
|
+
resetLabel: {}
|
|
19
20
|
}, {
|
|
20
21
|
columnState: { default: void 0 },
|
|
21
22
|
columnStateModifiers: {}
|
|
22
23
|
}),
|
|
23
24
|
emits: ["update:columnState"],
|
|
24
|
-
setup(
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
setup(d) {
|
|
26
|
+
let f = d, P = i(), F = o(() => ({
|
|
27
|
+
label: f.label ?? P.value.columns ?? "Columns",
|
|
28
|
+
filter: f.filterPlaceholder ?? P.value.filterColumns ?? "Filter columns…",
|
|
29
|
+
reset: f.resetLabel ?? P.value.resetColumns ?? "Reset columns"
|
|
30
|
+
})), I = C(d, "columnState"), L = S(), R = y(), z = y(), B = y(), V = _(""), H = n(`columns-${L}`), U = o(() => e(f.columns, I.value)), W = o(() => new Map(f.columns.map((e) => [e.key, e]))), G = o(() => {
|
|
31
|
+
let e = V.value.trim().toLowerCase();
|
|
32
|
+
return U.value.order.map((e) => W.value.get(e)).filter((e) => e.hideable !== !1).filter((t) => !e || (t.header ?? t.key).toLowerCase().includes(e));
|
|
33
|
+
}), K = o(() => U.value.order.length - U.value.hidden.length);
|
|
34
|
+
function q(e) {
|
|
35
|
+
return !U.value.hidden.includes(e);
|
|
31
36
|
}
|
|
32
|
-
function
|
|
33
|
-
let n =
|
|
34
|
-
n &&
|
|
37
|
+
function J(e) {
|
|
38
|
+
let n = q(e);
|
|
39
|
+
n && K.value <= 1 || (I.value = t(U.value, e, n));
|
|
35
40
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
41
|
+
function Y() {
|
|
42
|
+
I.value = e(f.columns, null);
|
|
38
43
|
}
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
function
|
|
42
|
-
|
|
44
|
+
let X = () => {};
|
|
45
|
+
h(() => X());
|
|
46
|
+
function Z(e) {
|
|
47
|
+
X(), e.newState === "open" && (z.value && R.value && (X = r(z.value, R.value, "bottom-end")), p(() => B.value?.focus({ preventScroll: !0 })));
|
|
43
48
|
}
|
|
44
|
-
return (e, t) => (
|
|
49
|
+
return (e, t) => (g(), c("span", E, [l("button", {
|
|
45
50
|
ref_key: "trigger",
|
|
46
|
-
ref:
|
|
51
|
+
ref: R,
|
|
47
52
|
type: "button",
|
|
48
53
|
class: "vg-button",
|
|
49
54
|
"aria-haspopup": "dialog",
|
|
50
|
-
"aria-controls":
|
|
51
|
-
popovertarget:
|
|
52
|
-
style:
|
|
53
|
-
}, [t[1] ||=
|
|
55
|
+
"aria-controls": x(L),
|
|
56
|
+
popovertarget: x(L),
|
|
57
|
+
style: m({ "anchor-name": x(H) })
|
|
58
|
+
}, [t[1] ||= l("svg", {
|
|
54
59
|
viewBox: "0 0 16 16",
|
|
55
60
|
"aria-hidden": "true",
|
|
56
61
|
class: "vg-button-icon"
|
|
57
|
-
}, [
|
|
62
|
+
}, [l("path", {
|
|
58
63
|
d: "M2 3h12M2 8h12M2 13h12",
|
|
59
64
|
fill: "none",
|
|
60
65
|
stroke: "currentColor",
|
|
61
66
|
"stroke-width": "1.5",
|
|
62
67
|
"stroke-linecap": "round"
|
|
63
|
-
})], -1),
|
|
64
|
-
id:
|
|
68
|
+
})], -1), u(" " + b(F.value.label), 1)], 12, D), l("div", {
|
|
69
|
+
id: x(L),
|
|
65
70
|
ref_key: "panel",
|
|
66
|
-
ref:
|
|
71
|
+
ref: z,
|
|
67
72
|
popover: "auto",
|
|
68
73
|
role: "dialog",
|
|
69
|
-
"aria-label":
|
|
74
|
+
"aria-label": F.value.label,
|
|
70
75
|
class: "vg-menu vg-column-panel",
|
|
71
76
|
"data-placement": "bottom-end",
|
|
72
|
-
style:
|
|
73
|
-
onToggle:
|
|
77
|
+
style: m({ "position-anchor": x(H) }),
|
|
78
|
+
onToggle: Z
|
|
74
79
|
}, [
|
|
75
|
-
|
|
80
|
+
T(l("input", {
|
|
76
81
|
ref_key: "filterInput",
|
|
77
|
-
ref:
|
|
78
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
82
|
+
ref: B,
|
|
83
|
+
"onUpdate:modelValue": t[0] ||= (e) => V.value = e,
|
|
79
84
|
type: "search",
|
|
80
85
|
class: "vg-input",
|
|
81
|
-
placeholder:
|
|
82
|
-
"aria-label":
|
|
83
|
-
}, null, 8,
|
|
84
|
-
|
|
86
|
+
placeholder: F.value.filter,
|
|
87
|
+
"aria-label": F.value.filter
|
|
88
|
+
}, null, 8, k), [[w, V.value]]),
|
|
89
|
+
l("ul", A, [(g(!0), c(a, null, v(G.value, (e) => (g(), c("li", { key: e.key }, [l("label", j, [l("input", {
|
|
85
90
|
type: "checkbox",
|
|
86
|
-
checked:
|
|
87
|
-
disabled:
|
|
88
|
-
onChange: (t) =>
|
|
89
|
-
}, null, 40,
|
|
90
|
-
|
|
91
|
+
checked: q(e.key),
|
|
92
|
+
disabled: q(e.key) && K.value <= 1,
|
|
93
|
+
onChange: (t) => J(e.key)
|
|
94
|
+
}, null, 40, M), l("span", null, b(e.header ?? e.key), 1)])]))), 128)), G.value.length ? s("", !0) : (g(), c("li", N, b(x(P).noMatchingColumns ?? "No matching columns"), 1))]),
|
|
95
|
+
l("button", {
|
|
91
96
|
type: "button",
|
|
92
97
|
class: "vg-button vg-button-ghost",
|
|
93
|
-
onClick:
|
|
94
|
-
},
|
|
95
|
-
], 44,
|
|
98
|
+
onClick: Y
|
|
99
|
+
}, b(F.value.reset), 1)
|
|
100
|
+
], 44, O)]));
|
|
96
101
|
}
|
|
97
102
|
});
|
|
98
|
-
export {
|
|
103
|
+
export { P as default };
|
|
99
104
|
|
|
100
105
|
//# sourceMappingURL=VGridColumnMenu.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VGridColumnMenu.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeStyle","_createTextVNode","_toDisplayString","_withDirectives","_vModelText","_Fragment","_renderList","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","VGridColumnMenu_vue_vue_type_script_setup_true_lang_default","\"columnState\"","\"columnStateModifiers\"","props","__props","columnState","useModel","id","useId","trigger","shallowRef","panel","filterInput","filter","ref","anchor","anchorNameFor","state","
|
|
1
|
+
{"version":3,"file":"VGridColumnMenu.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeStyle","_createTextVNode","_toDisplayString","_withDirectives","_vModelText","_Fragment","_renderList","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","VGridColumnMenu_vue_vue_type_script_setup_true_lang_default","\"columnState\"","\"columnStateModifiers\"","props","__props","m","useMessages","text","computed","columnState","useModel","id","useId","trigger","shallowRef","panel","filterInput","filter","ref","anchor","anchorNameFor","state","normalizeColumnState","byKey","c","items","q","key","col","visibleCount","isVisible","toggle","visible","setColumnHidden","reset","stopTracking","onToggle","event","trackAnchor","nextTick","openBlock","createElementBlock","createElementVNode","unref","normalizeStyle","_cache","createTextVNode","toDisplayString","withDirectives","$event","vModelText","Fragment","renderList","createCommentVNode"],"sources":["../../src/components/VGridColumnMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, ref, shallowRef, useId } from 'vue'\nimport { normalizeColumnState, setColumnHidden } from '../core/columns'\nimport { anchorNameFor, trackAnchor } from '../internal/anchor'\nimport type { ColumnDef, ColumnState } from '../types'\nimport { useMessages } from '../internal/messages'\n\nconst props = withDefaults(\n defineProps<{\n columns: readonly ColumnDef[]\n /** The button. Default: `messages.columns`, else `Columns`. */\n label?: string\n /** Default: `messages.filterColumns`, else `Filter columns…`. */\n filterPlaceholder?: string\n /** Default: `messages.resetColumns`, else `Reset columns`. */\n resetLabel?: string\n }>(),\n {},\n)\nconst m = useMessages()\nconst text = computed(() => ({\n label: props.label ?? m.value.columns ?? 'Columns',\n filter: props.filterPlaceholder ?? m.value.filterColumns ?? 'Filter columns…',\n reset: props.resetLabel ?? m.value.resetColumns ?? 'Reset columns',\n}))\n\nconst columnState = defineModel<ColumnState | undefined>('columnState', { default: undefined })\n\nconst id = useId()\nconst trigger = shallowRef<HTMLButtonElement>()\nconst panel = shallowRef<HTMLElement>()\nconst filterInput = shallowRef<HTMLInputElement>()\nconst filter = ref('')\nconst anchor = anchorNameFor(`columns-${id}`)\n\nconst state = computed(() => normalizeColumnState(props.columns, columnState.value))\nconst byKey = computed(() => new Map(props.columns.map((c) => [c.key, c])))\n\nconst items = computed(() => {\n const q = filter.value.trim().toLowerCase()\n return state.value.order\n .map((key) => byKey.value.get(key)!)\n .filter((col) => col.hideable !== false)\n .filter((col) => !q || (col.header ?? col.key).toLowerCase().includes(q))\n})\n\nconst visibleCount = computed(() => state.value.order.length - state.value.hidden.length)\n\nfunction isVisible(key: string) {\n return !state.value.hidden.includes(key)\n}\n\nfunction toggle(key: string) {\n const visible = isVisible(key)\n // Never allow hiding the last visible column.\n if (visible && visibleCount.value <= 1) return\n columnState.value = setColumnHidden(state.value, key, visible)\n}\n\nfunction reset() {\n columnState.value = normalizeColumnState(props.columns, null)\n}\n\nlet stopTracking = () => {}\nonBeforeUnmount(() => stopTracking())\n\nfunction onToggle(event: Event) {\n stopTracking()\n if ((event as ToggleEvent).newState !== 'open') return\n // Placed, followed and hidden by CSS anchor positioning; JS only where unsupported.\n if (panel.value && trigger.value)\n stopTracking = trackAnchor(panel.value, trigger.value, 'bottom-end')\n nextTick(() => filterInput.value?.focus({ preventScroll: true }))\n}\n</script>\n\n<template>\n <span class=\"vg-column-menu\">\n <button\n ref=\"trigger\"\n type=\"button\"\n class=\"vg-button\"\n aria-haspopup=\"dialog\"\n :aria-controls=\"id\"\n :popovertarget=\"id\"\n :style=\"{ 'anchor-name': anchor }\"\n >\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" class=\"vg-button-icon\">\n <path\n d=\"M2 3h12M2 8h12M2 13h12\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n </svg>\n {{ text.label }}\n </button>\n <div\n :id=\"id\"\n ref=\"panel\"\n popover=\"auto\"\n role=\"dialog\"\n :aria-label=\"text.label\"\n class=\"vg-menu vg-column-panel\"\n data-placement=\"bottom-end\"\n :style=\"{ 'position-anchor': anchor }\"\n @toggle=\"onToggle\"\n >\n <input\n ref=\"filterInput\"\n v-model=\"filter\"\n type=\"search\"\n class=\"vg-input\"\n :placeholder=\"text.filter\"\n :aria-label=\"text.filter\"\n />\n <ul class=\"vg-column-list\">\n <li v-for=\"col in items\" :key=\"col.key\">\n <label class=\"vg-column-option\">\n <input\n type=\"checkbox\"\n :checked=\"isVisible(col.key)\"\n :disabled=\"isVisible(col.key) && visibleCount <= 1\"\n @change=\"toggle(col.key)\"\n />\n <span>{{ col.header ?? col.key }}</span>\n </label>\n </li>\n <li v-if=\"!items.length\" class=\"vg-text-muted vg-column-none\">\n {{ m.noMatchingColumns ?? 'No matching columns' }}\n </li>\n </ul>\n <button type=\"button\" class=\"vg-button vg-button-ghost\" @click=\"reset\">\n {{ text.reset }}\n </button>\n </div>\n </span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAOA,IAAMuB,IAAQC,GAYRC,IAAIC,EAAY,GAChBC,IAAOC,SAAgB;GAC3B,OAAOL,EAAM,SAASE,EAAE,MAAM,WAAW;GACzC,QAAQF,EAAM,qBAAqBE,EAAE,MAAM,iBAAiB;GAC5D,OAAOF,EAAM,cAAcE,EAAE,MAAM,gBAAgB;EACrD,EAAE,GAEII,IAAc7B,EAAoCwB,GAAC,aAAqC,GAExFO,IAAKC,EAAM,GACXC,IAAUC,EAA8B,GACxCC,IAAQD,EAAwB,GAChCE,IAAcF,EAA6B,GAC3CG,IAASC,EAAI,EAAE,GACfC,IAASC,EAAc,WAAWT,GAAI,GAEtCU,IAAQb,QAAec,EAAqBnB,EAAM,SAASM,EAAY,KAAK,CAAC,GAC7Ec,IAAQf,QAAe,IAAI,IAAIL,EAAM,QAAQ,KAAK,MAAM,CAACqB,EAAE,KAAKA,CAAC,CAAC,CAAC,CAAC,GAEpEC,IAAQjB,QAAe;G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D;GAC3D,GAAA/C,EAAAoB,EAAA,MAAK,KAAK,GAAA,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isFilterActive as e, parseQuickFilter as t, quickFilterText as n } from "../core/filter.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useMessages as r } from "../internal/messages.js";
|
|
3
|
+
import { computed as i, createElementBlock as a, createElementVNode as o, defineComponent as s, onBeforeUnmount as c, openBlock as l, ref as u, toDisplayString as d, unref as f, watch as p } from "vue";
|
|
3
4
|
// src/components/VGridFilterInput.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var m = ["aria-label"], h = [
|
|
5
6
|
"inputmode",
|
|
6
7
|
"placeholder",
|
|
7
8
|
"aria-label",
|
|
8
9
|
"value"
|
|
9
|
-
],
|
|
10
|
+
], g = ["aria-label", "value"], _ = { value: "any" }, v = { value: "true" }, y = { value: "false" }, b = { value: "null" }, x = ["aria-label"], S = /*@__PURE__*/ s({
|
|
10
11
|
__name: "VGridFilterInput",
|
|
11
12
|
props: {
|
|
12
13
|
column: {},
|
|
@@ -14,76 +15,76 @@ var f = ["aria-label"], p = [
|
|
|
14
15
|
modelValue: {}
|
|
15
16
|
},
|
|
16
17
|
emits: ["update:modelValue", "open"],
|
|
17
|
-
setup(
|
|
18
|
-
let
|
|
19
|
-
text: "Filter…",
|
|
18
|
+
setup(s, { emit: S }) {
|
|
19
|
+
let C = s, w = S, T = i(() => C.column.header ?? C.column.key), E = r(), D = i(() => E.value.filterColumn?.(T.value) ?? `Filter ${T.value}`), O = i(() => (typeof C.column.filter == "object" ? C.column.filter.placeholder : void 0) ?? {
|
|
20
|
+
text: E.value.filterPlaceholder ?? "Filter…",
|
|
20
21
|
number: "> 10, 5..20",
|
|
21
22
|
date: "> 2026-01-01",
|
|
22
23
|
boolean: "",
|
|
23
24
|
set: "",
|
|
24
25
|
custom: ""
|
|
25
|
-
}[
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
}[C.type]), k = u(n(C.modelValue)), A = u(!1);
|
|
27
|
+
p(() => C.modelValue, (e) => {
|
|
28
|
+
A.value || (k.value = n(e));
|
|
28
29
|
});
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
|
|
30
|
+
let j = 0;
|
|
31
|
+
c(() => window.clearTimeout(j));
|
|
32
|
+
function M(e) {
|
|
33
|
+
k.value = e, window.clearTimeout(j), j = window.setTimeout(() => w("update:modelValue", t(C.type, e)), 200);
|
|
33
34
|
}
|
|
34
|
-
let
|
|
35
|
-
function
|
|
36
|
-
|
|
35
|
+
let N = i(() => e(C.modelValue) && !n(C.modelValue)), P = i(() => C.modelValue?.type === "boolean" ? String(C.modelValue.value) : "any");
|
|
36
|
+
function F(e) {
|
|
37
|
+
w("update:modelValue", e === "any" ? void 0 : {
|
|
37
38
|
type: "boolean",
|
|
38
39
|
value: e === "null" ? null : e === "true"
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
let
|
|
42
|
-
let t =
|
|
43
|
-
return e(t) ? t?.type === "set" ? `${t.values.length} selected` : "Custom" : "All";
|
|
44
|
-
}),
|
|
45
|
-
return (e, t) => (
|
|
42
|
+
let I = i(() => {
|
|
43
|
+
let t = C.modelValue;
|
|
44
|
+
return e(t) ? t?.type === "set" ? E.value.valuesSelected?.(t.values.length) ?? `${t.values.length} selected` : E.value.customFilter ?? "Custom" : E.value.all ?? "All";
|
|
45
|
+
}), L = (e) => e.stopPropagation();
|
|
46
|
+
return (e, t) => (l(), a("div", {
|
|
46
47
|
class: "vg-filter-input",
|
|
47
|
-
onPointerdown:
|
|
48
|
-
onClick:
|
|
49
|
-
onKeydown:
|
|
50
|
-
}, [
|
|
48
|
+
onPointerdown: L,
|
|
49
|
+
onClick: L,
|
|
50
|
+
onKeydown: L
|
|
51
|
+
}, [N.value ? (l(), a("button", {
|
|
51
52
|
key: 0,
|
|
52
53
|
type: "button",
|
|
53
54
|
class: "vg-input vg-filter-summary",
|
|
54
|
-
"aria-label": `${
|
|
55
|
-
onClick: t[0] ||= (e) =>
|
|
56
|
-
}, " Custom filter ", 8,
|
|
55
|
+
"aria-label": `${T.value}: edit filter`,
|
|
56
|
+
onClick: t[0] ||= (e) => w("open")
|
|
57
|
+
}, " Custom filter ", 8, m)) : s.type === "text" || s.type === "number" || s.type === "date" ? (l(), a("input", {
|
|
57
58
|
key: 1,
|
|
58
59
|
class: "vg-input",
|
|
59
60
|
type: "search",
|
|
60
|
-
inputmode:
|
|
61
|
-
placeholder:
|
|
62
|
-
"aria-label":
|
|
63
|
-
value:
|
|
64
|
-
onFocus: t[1] ||= (e) =>
|
|
65
|
-
onBlur: t[2] ||= (e) =>
|
|
66
|
-
onInput: t[3] ||= (e) =>
|
|
67
|
-
}, null, 40,
|
|
61
|
+
inputmode: s.type === "number" ? "decimal" : void 0,
|
|
62
|
+
placeholder: O.value,
|
|
63
|
+
"aria-label": D.value,
|
|
64
|
+
value: k.value,
|
|
65
|
+
onFocus: t[1] ||= (e) => A.value = !0,
|
|
66
|
+
onBlur: t[2] ||= (e) => A.value = !1,
|
|
67
|
+
onInput: t[3] ||= (e) => M(e.target.value)
|
|
68
|
+
}, null, 40, h)) : s.type === "boolean" ? (l(), a("select", {
|
|
68
69
|
key: 2,
|
|
69
70
|
class: "vg-input",
|
|
70
|
-
"aria-label":
|
|
71
|
-
value:
|
|
72
|
-
onChange: t[4] ||= (e) =>
|
|
73
|
-
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]
|
|
71
|
+
"aria-label": D.value,
|
|
72
|
+
value: P.value,
|
|
73
|
+
onChange: t[4] ||= (e) => F(e.target.value)
|
|
74
|
+
}, [
|
|
75
|
+
o("option", _, d(f(E).all ?? "All"), 1),
|
|
76
|
+
o("option", v, d(f(E).yes ?? "Yes"), 1),
|
|
77
|
+
o("option", y, d(f(E).no ?? "No"), 1),
|
|
78
|
+
o("option", b, d(f(E).emptyValue ?? "Empty"), 1)
|
|
79
|
+
], 40, g)) : (l(), a("button", {
|
|
79
80
|
key: 3,
|
|
80
81
|
type: "button",
|
|
81
82
|
class: "vg-input vg-filter-summary",
|
|
82
|
-
"aria-label": `Filter ${
|
|
83
|
-
onClick: t[5] ||= (e) =>
|
|
84
|
-
},
|
|
83
|
+
"aria-label": f(E).filterSummary?.(T.value, I.value) ?? `Filter ${T.value}: ${I.value}`,
|
|
84
|
+
onClick: t[5] ||= (e) => w("open")
|
|
85
|
+
}, d(I.value), 9, x))], 32));
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
|
-
export {
|
|
88
|
+
export { S as default };
|
|
88
89
|
|
|
89
90
|
//# sourceMappingURL=VGridFilterInput.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VGridFilterInput.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","VGridFilterInput_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","title","computed","placeholder","text","ref","quickFilterText","focused","f","timer","onInput","value","parseQuickFilter","advanced","isFilterActive","boolValue","setBool","v","summary","stop","openBlock","createElementBlock","_cache","$event","createElementVNode","toDisplayString"],"sources":["../../src/components/VGridFilterInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport {\n isFilterActive,\n parseQuickFilter,\n quickFilterText,\n type ColumnFilter,\n type FilterType,\n} from '../core/filter'\nimport type { ColumnDef, ColumnFilterOptions } from '../types'\n\n/** The filter-row editor of one column (inside its header cell). */\nconst props = defineProps<{\n column: ColumnDef\n type: FilterType | 'custom'\n modelValue: ColumnFilter | undefined\n}>()\nconst emit = defineEmits<{ 'update:modelValue': [filter: ColumnFilter | undefined]; open: [] }>()\n\nconst title = computed(() => props.column.header ?? props.column.key)\nconst placeholder = computed(\n () =>\n (typeof props.column.filter === 'object'\n ? (props.column.filter as ColumnFilterOptions).placeholder\n : undefined) ??\n {\n text: 'Filter…',\n number: '> 10, 5..20',\n date: '> 2026-01-01',\n boolean: '',\n set: '',\n custom: '',\n }[props.type],\n)\n\n// Text shorthand: local while typing (debounced), synced from the model when it changes elsewhere.\nconst text = ref(quickFilterText(props.modelValue))\nconst focused = ref(false)\nwatch(\n () => props.modelValue,\n (f) => {\n if (!focused.value) text.value = quickFilterText(f)\n },\n)\nlet timer = 0\nonBeforeUnmount(() => window.clearTimeout(timer))\nfunction onInput(value: string) {\n text.value = value\n window.clearTimeout(timer)\n timer = window.setTimeout(\n () => emit('update:modelValue', parseQuickFilter(props.type as FilterType, value)),\n 200,\n )\n}\n/** A filter set in the popover that the shorthand can't express (e.g. \"does not contain\"). */\nconst advanced = computed(\n () => isFilterActive(props.modelValue) && !quickFilterText(props.modelValue),\n)\n\nconst boolValue = computed(() =>\n props.modelValue?.type === 'boolean' ? String(props.modelValue.value) : 'any',\n)\nfunction setBool(v: string) {\n emit(\n 'update:modelValue',\n v === 'any' ? undefined : { type: 'boolean', value: v === 'null' ? null : v === 'true' },\n )\n}\nconst summary = computed(() => {\n const f = props.modelValue\n if (!isFilterActive(f)) return 'All'\n return f?.type === 'set'
|
|
1
|
+
{"version":3,"file":"VGridFilterInput.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_unref","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","VGridFilterInput_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","title","computed","m","useMessages","filterLabel","placeholder","text","ref","quickFilterText","focused","f","timer","onInput","value","parseQuickFilter","advanced","isFilterActive","boolValue","setBool","v","summary","stop","openBlock","createElementBlock","_cache","$event","createElementVNode","toDisplayString","unref"],"sources":["../../src/components/VGridFilterInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport {\n isFilterActive,\n parseQuickFilter,\n quickFilterText,\n type ColumnFilter,\n type FilterType,\n} from '../core/filter'\nimport type { ColumnDef, ColumnFilterOptions } from '../types'\nimport { useMessages } from '../internal/messages'\n\n/** The filter-row editor of one column (inside its header cell). */\nconst props = defineProps<{\n column: ColumnDef\n type: FilterType | 'custom'\n modelValue: ColumnFilter | undefined\n}>()\nconst emit = defineEmits<{ 'update:modelValue': [filter: ColumnFilter | undefined]; open: [] }>()\n\nconst title = computed(() => props.column.header ?? props.column.key)\nconst m = useMessages()\nconst filterLabel = computed(() => m.value.filterColumn?.(title.value) ?? `Filter ${title.value}`)\nconst placeholder = computed(\n () =>\n (typeof props.column.filter === 'object'\n ? (props.column.filter as ColumnFilterOptions).placeholder\n : undefined) ??\n {\n text: m.value.filterPlaceholder ?? 'Filter…',\n number: '> 10, 5..20',\n date: '> 2026-01-01',\n boolean: '',\n set: '',\n custom: '',\n }[props.type],\n)\n\n// Text shorthand: local while typing (debounced), synced from the model when it changes elsewhere.\nconst text = ref(quickFilterText(props.modelValue))\nconst focused = ref(false)\nwatch(\n () => props.modelValue,\n (f) => {\n if (!focused.value) text.value = quickFilterText(f)\n },\n)\nlet timer = 0\nonBeforeUnmount(() => window.clearTimeout(timer))\nfunction onInput(value: string) {\n text.value = value\n window.clearTimeout(timer)\n timer = window.setTimeout(\n () => emit('update:modelValue', parseQuickFilter(props.type as FilterType, value)),\n 200,\n )\n}\n/** A filter set in the popover that the shorthand can't express (e.g. \"does not contain\"). */\nconst advanced = computed(\n () => isFilterActive(props.modelValue) && !quickFilterText(props.modelValue),\n)\n\nconst boolValue = computed(() =>\n props.modelValue?.type === 'boolean' ? String(props.modelValue.value) : 'any',\n)\nfunction setBool(v: string) {\n emit(\n 'update:modelValue',\n v === 'any' ? undefined : { type: 'boolean', value: v === 'null' ? null : v === 'true' },\n )\n}\nconst summary = computed(() => {\n const f = props.modelValue\n if (!isFilterActive(f)) return m.value.all ?? 'All'\n return f?.type === 'set'\n ? (m.value.valuesSelected?.(f.values.length) ?? `${f.values.length} selected`)\n : (m.value.customFilter ?? 'Custom')\n})\n\n// Keep typing / clicking in the filter row from starting a column drag or a sort.\nconst stop = (e: Event) => e.stopPropagation()\n</script>\n\n<template>\n <div class=\"vg-filter-input\" @pointerdown=\"stop\" @click=\"stop\" @keydown=\"stop\">\n <button\n v-if=\"advanced\"\n type=\"button\"\n class=\"vg-input vg-filter-summary\"\n :aria-label=\"`${title}: edit filter`\"\n @click=\"emit('open')\"\n >\n Custom filter\n </button>\n <input\n v-else-if=\"type === 'text' || type === 'number' || type === 'date'\"\n class=\"vg-input\"\n type=\"search\"\n :inputmode=\"type === 'number' ? 'decimal' : undefined\"\n :placeholder=\"placeholder\"\n :aria-label=\"filterLabel\"\n :value=\"text\"\n @focus=\"focused = true\"\n @blur=\"focused = false\"\n @input=\"onInput(($event.target as HTMLInputElement).value)\"\n />\n <select\n v-else-if=\"type === 'boolean'\"\n class=\"vg-input\"\n :aria-label=\"filterLabel\"\n :value=\"boolValue\"\n @change=\"setBool(($event.target as HTMLSelectElement).value)\"\n >\n <option value=\"any\">{{ m.all ?? 'All' }}</option>\n <option value=\"true\">{{ m.yes ?? 'Yes' }}</option>\n <option value=\"false\">{{ m.no ?? 'No' }}</option>\n <option value=\"null\">{{ m.emptyValue ?? 'Empty' }}</option>\n </select>\n <button\n v-else\n type=\"button\"\n class=\"vg-input vg-filter-summary\"\n :aria-label=\"m.filterSummary?.(title, summary) ?? `Filter ${title}: ${summary}`\"\n @click=\"emit('open')\"\n >\n {{ summary }}\n </button>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAaA,IAAMe,IAAQC,GAKRC,IAAOH,GAEPI,IAAQC,QAAeJ,EAAM,OAAO,UAAUA,EAAM,OAAO,GAAG,GAC9DK,IAAIC,EAAY,GAChBC,IAAcH,QAAeC,EAAE,MAAM,eAAeF,EAAM,KAAK,KAAK,UAAUA,EAAM,OAAO,GAC3FK,IAAcJ,S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