@gsc-basic/components 1.0.2 → 1.0.3
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/dist/es/index.js +43 -29
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +15 -15
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +5 -5
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +3 -3
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +8 -8
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +6 -6
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +3 -3
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +7 -7
- package/dist/es/node_modules/@codemirror/search/dist/index.js +9 -9
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7 -7
- package/dist/es/node_modules/@lezer/lr/dist/index.js +4 -2
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +146 -142
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +7 -7
- package/dist/es/node_modules/@vueuse/core/dist/index.js +1 -1
- package/dist/es/node_modules/codemirror/dist/index.js +3 -3
- package/dist/es/src/Button/index.js +6 -0
- package/dist/es/src/Button/src/Button.css +1 -0
- package/dist/es/src/Button/src/Button.vue.js +41 -0
- package/dist/es/src/Button/src/Button2.css +1 -0
- package/dist/es/src/CodeEditor/src/index.css +1 -1
- package/dist/es/src/CodeEditor/src/index.vue.js +54 -51
- package/dist/es/src/CodeEditor/src/index2.css +1 -1
- package/dist/es/src/ConfigProvider/index.js +1 -2
- package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +9 -9
- package/dist/es/src/Form/index.js +6 -0
- package/dist/es/src/Form/src/Form.css +1 -0
- package/dist/es/src/Form/src/Form.vue.js +208 -0
- package/dist/es/src/Form/src/styles/form.css +1 -0
- package/dist/es/src/Grid/src/Grid.css +1 -1
- package/dist/es/src/Grid/src/Grid.vue.js +77 -83
- package/dist/es/src/Grid/src/components/ActionBar.css +1 -1
- package/dist/es/src/Grid/src/components/ActionBar.vue.js +43 -36
- package/dist/es/src/Grid/src/components/CellEditor.css +1 -1
- package/dist/es/src/Grid/src/components/CellEditor.vue.js +80 -69
- package/dist/es/src/Grid/src/components/CellEditor2.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +45 -34
- package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +72 -49
- package/dist/es/src/Grid/src/components/DataTable.css +1 -1
- package/dist/es/src/Grid/src/components/DataTable.vue.js +251 -228
- package/dist/es/src/Grid/src/components/Pager.css +1 -1
- package/dist/es/src/Grid/src/components/Pager.vue.js +40 -31
- package/dist/es/src/Grid/src/components/QueryBar.css +1 -1
- package/dist/es/src/Grid/src/components/QueryBar.vue.js +119 -147
- package/dist/es/src/Grid/src/composables/useGridTable.js +45 -44
- package/dist/es/src/Grid/src/styles/table.css +1 -0
- package/dist/es/src/Overlay/index.js +61 -0
- package/dist/es/src/Overlay/src/Message.css +1 -0
- package/dist/es/src/Overlay/src/Message.vue.js +36 -0
- package/dist/es/src/Overlay/src/Message2.css +1 -0
- package/dist/es/src/Overlay/src/Modal.css +1 -0
- package/dist/es/src/Overlay/src/Modal.vue.js +67 -0
- package/dist/es/src/Overlay/src/Modal2.css +1 -0
- package/dist/es/src/Overlay/src/Notice.css +1 -0
- package/dist/es/src/Overlay/src/Notice.vue.js +37 -0
- package/dist/es/src/Overlay/src/Notice2.css +1 -0
- package/dist/es/src/ScaleScreen/src/index.vue.js +2 -2
- package/dist/es/src/VideoBackground/src/index.vue.js +8 -8
- package/dist/es/src/index.js +39 -25
- package/dist/es/src/styles/tokens.css +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -1
- package/dist/lib/src/Button/index.js +1 -0
- package/dist/lib/src/Button/src/Button.css +1 -0
- package/dist/lib/src/Button/src/Button.vue.js +1 -0
- package/dist/lib/src/Button/src/Button2.css +1 -0
- package/dist/lib/src/CodeEditor/src/index.css +1 -1
- package/dist/lib/src/CodeEditor/src/index.vue.js +1 -1
- package/dist/lib/src/CodeEditor/src/index2.css +1 -1
- package/dist/lib/src/ConfigProvider/index.js +1 -1
- package/dist/lib/src/Form/index.js +1 -0
- package/dist/lib/src/Form/src/Form.css +1 -0
- package/dist/lib/src/Form/src/Form.vue.js +1 -0
- package/dist/lib/src/Form/src/styles/form.css +1 -0
- package/dist/lib/src/Grid/src/Grid.css +1 -1
- package/dist/lib/src/Grid/src/Grid.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/ActionBar.css +1 -1
- package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor.css +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/DataTable.css +1 -1
- package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/Pager.css +1 -1
- package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/QueryBar.css +1 -1
- package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -1
- package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -1
- package/dist/lib/src/Grid/src/styles/table.css +1 -0
- package/dist/lib/src/Overlay/index.js +1 -0
- package/dist/lib/src/Overlay/src/Message.css +1 -0
- package/dist/lib/src/Overlay/src/Message.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Message2.css +1 -0
- package/dist/lib/src/Overlay/src/Modal.css +1 -0
- package/dist/lib/src/Overlay/src/Modal.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Modal2.css +1 -0
- package/dist/lib/src/Overlay/src/Notice.css +1 -0
- package/dist/lib/src/Overlay/src/Notice.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Notice2.css +1 -0
- package/dist/lib/src/index.js +1 -1
- package/dist/lib/src/styles/tokens.css +1 -1
- package/package.json +9 -9
- package/dist/es/src/Grid/src/styles/antd.css +0 -1
- package/dist/es/src/Grid/src/utils/exportCsv.js +0 -15
- package/dist/lib/src/Grid/src/styles/antd.css +0 -1
- package/dist/lib/src/Grid/src/utils/exportCsv.js +0 -3
|
@@ -1,61 +1,72 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useLocale as
|
|
1
|
+
import { ref as C, watch as F, openBlock as o, createElementBlock as a, withModifiers as m, withDirectives as v, createElementVNode as f, toDisplayString as i, unref as n, Fragment as V, renderList as h, vModelSelect as N, withKeys as S, vModelText as b, createVNode as y, withCtx as g, createTextVNode as _ } from "vue";
|
|
2
|
+
import { useLocale as B } from "../../../hooks/useLocale.js";
|
|
3
|
+
import { GscButton as x } from "../../../Button/index.js";
|
|
3
4
|
import './ColumnFilter.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import K from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const M = { value: "" }, D = ["value"], E = ["onKeydown"], L = { class: "mt-3 flex gap-2 justify-end" }, T = {
|
|
6
7
|
__name: "ColumnFilter",
|
|
7
8
|
props: { value: [String, Number], type: { type: String, default: "text" }, options: Array },
|
|
8
9
|
emits: ["update:value", "apply", "clear"],
|
|
9
|
-
setup(u, { emit:
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
e.value =
|
|
10
|
+
setup(u, { emit: k }) {
|
|
11
|
+
const c = u, r = k, { t: s } = B(), e = C(c.value ?? "");
|
|
12
|
+
F(() => c.value, (d) => {
|
|
13
|
+
e.value = d ?? "";
|
|
13
14
|
});
|
|
14
|
-
function
|
|
15
|
-
|
|
15
|
+
function p() {
|
|
16
|
+
r("update:value", e.value), r("apply");
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
e.value = "",
|
|
18
|
+
function w() {
|
|
19
|
+
e.value = "", r("update:value", ""), r("clear");
|
|
19
20
|
}
|
|
20
|
-
return (
|
|
21
|
+
return (d, l) => (o(), a("div", {
|
|
21
22
|
class: "gsc-popover absolute top-full left-0 mt-2 min-w-44 p-3 z-20",
|
|
22
|
-
onClick: l[2] || (l[2] =
|
|
23
|
+
onClick: l[2] || (l[2] = m(() => {
|
|
23
24
|
}, ["stop"]))
|
|
24
25
|
}, [
|
|
25
|
-
u.type === "select" ?
|
|
26
|
+
u.type === "select" ? v((o(), a("select", {
|
|
26
27
|
key: 0,
|
|
27
28
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => e.value = t),
|
|
28
29
|
class: "gsc-control"
|
|
29
30
|
}, [
|
|
30
|
-
|
|
31
|
-
(
|
|
31
|
+
f("option", M, i(n(s)("gsc.grid.columnFilter.all")), 1),
|
|
32
|
+
(o(!0), a(V, null, h(u.options || [], (t) => (o(), a("option", {
|
|
32
33
|
key: t.value,
|
|
33
34
|
value: t.value
|
|
34
|
-
},
|
|
35
|
+
}, i(t.label), 9, D))), 128))
|
|
35
36
|
], 512)), [
|
|
36
|
-
[
|
|
37
|
-
]) :
|
|
37
|
+
[N, e.value]
|
|
38
|
+
]) : v((o(), a("input", {
|
|
38
39
|
key: 1,
|
|
39
40
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => e.value = t),
|
|
40
41
|
type: "text",
|
|
41
42
|
class: "gsc-control",
|
|
42
|
-
onKeydown:
|
|
43
|
-
}, null, 40,
|
|
44
|
-
[
|
|
43
|
+
onKeydown: S(m(p, ["prevent"]), ["enter"])
|
|
44
|
+
}, null, 40, E)), [
|
|
45
|
+
[b, e.value]
|
|
45
46
|
]),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
onClick:
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
f("div", L, [
|
|
48
|
+
y(n(x), {
|
|
49
|
+
variant: "default",
|
|
50
|
+
onClick: w
|
|
51
|
+
}, {
|
|
52
|
+
default: g(() => [
|
|
53
|
+
_(i(n(s)("gsc.grid.columnFilter.clear")), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
y(n(x), {
|
|
58
|
+
variant: "primary",
|
|
59
|
+
onClick: p
|
|
60
|
+
}, {
|
|
61
|
+
default: g(() => [
|
|
62
|
+
_(i(n(s)("gsc.grid.columnFilter.apply")), 1)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
55
66
|
])
|
|
56
67
|
]));
|
|
57
68
|
}
|
|
58
|
-
},
|
|
69
|
+
}, I = /* @__PURE__ */ K(T, [["__scopeId", "data-v-aa324207"]]);
|
|
59
70
|
export {
|
|
60
|
-
|
|
71
|
+
I as default
|
|
61
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-ac85ebd4],[data-v-ac85ebd4]:before,[data-v-ac85ebd4]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-ac85ebd4]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-ac85ebd4]{position:absolute}.relative[data-v-ac85ebd4]{position:relative}.right-0[data-v-ac85ebd4]{right:0}.z-20[data-v-ac85ebd4]{z-index:20}.mt-1[data-v-ac85ebd4]{margin-top:.25rem}.mt-2[data-v-ac85ebd4]{margin-top:.5rem}.max-h-64[data-v-ac85ebd4]{max-height:16rem}.w-72[data-v-ac85ebd4]{width:18rem}.flex[data-v-ac85ebd4]{display:flex}.table[data-v-ac85ebd4]{display:table}.cursor-pointer[data-v-ac85ebd4]{cursor:pointer}.items-center[data-v-ac85ebd4]{align-items:center}.justify-between[data-v-ac85ebd4]{justify-content:space-between}.gap-2[data-v-ac85ebd4]{gap:.5rem}.overflow-auto[data-v-ac85ebd4]{overflow:auto}.truncate[data-v-ac85ebd4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-md[data-v-ac85ebd4]{border-radius:.375rem}.hover\:bg-\[rgba\(0\,0\,0\,0\.02\)\][data-v-ac85ebd4]:hover{--un-bg-opacity:.02;background-color:#00000005;background-color:rgba(0,0,0,var(--un-bg-opacity))}.p-2[data-v-ac85ebd4]{padding:.5rem}.px-2[data-v-ac85ebd4]{padding-left:.5rem;padding-right:.5rem}.py-1[data-v-ac85ebd4]{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5[data-v-ac85ebd4]{padding-top:.375rem;padding-bottom:.375rem}.pr-1[data-v-ac85ebd4]{padding-right:.25rem}.pt-2[data-v-ac85ebd4]{padding-top:.5rem}.text-sm[data-v-ac85ebd4]{font-size:.875rem;line-height:1.25rem}.text-\[rgba\(0\,0\,0\,0\.88\)\][data-v-ac85ebd4]{--un-text-opacity:.88;color:#000000e0;color:rgba(0,0,0,var(--un-text-opacity))}.font-medium[data-v-ac85ebd4]{font-weight:500}
|
|
@@ -1,86 +1,109 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useLocale as
|
|
1
|
+
import { ref as y, computed as C, onMounted as S, onBeforeUnmount as V, openBlock as c, createElementBlock as a, createVNode as u, unref as t, withModifiers as v, withCtx as d, createTextVNode as m, toDisplayString as o, createElementVNode as s, Fragment as w, renderList as E, createCommentVNode as A } from "vue";
|
|
2
|
+
import { useLocale as L } from "../../../hooks/useLocale.js";
|
|
3
|
+
import { GscButton as g } from "../../../Button/index.js";
|
|
3
4
|
import './ColumnSettings.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import B from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const D = { class: "relative" }, N = { class: "flex items-center justify-between px-2 py-1" }, j = { class: "text-sm font-medium text-[rgba(0,0,0,0.88)]" }, I = { class: "max-h-64 overflow-auto pr-1 mt-1" }, M = ["checked", "onChange"], $ = ["title"], q = { class: "mt-2 flex items-center justify-between gap-2 gsc-divider-top pt-2" }, z = {
|
|
6
7
|
__name: "ColumnSettings",
|
|
7
8
|
props: {
|
|
8
9
|
table: { type: Object, required: !0 }
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
11
|
+
setup(h) {
|
|
12
|
+
const _ = h, i = y(!1), { t: l } = L(), p = C(() => {
|
|
12
13
|
try {
|
|
13
|
-
return
|
|
14
|
+
return _.table.getAllLeafColumns?.() || [];
|
|
14
15
|
} catch {
|
|
15
16
|
return [];
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
|
-
function p() {
|
|
19
|
-
a.value.forEach((l) => l.toggleVisibility(!0));
|
|
20
|
-
}
|
|
21
19
|
function b() {
|
|
22
|
-
|
|
20
|
+
p.value.forEach((r) => r.toggleVisibility(!0));
|
|
21
|
+
}
|
|
22
|
+
function k() {
|
|
23
|
+
p.value.forEach((r) => r.toggleVisibility(!1));
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
25
|
+
function f() {
|
|
26
|
+
i.value = !1;
|
|
26
27
|
}
|
|
27
|
-
return
|
|
28
|
-
document.addEventListener("click",
|
|
29
|
-
}),
|
|
30
|
-
document.removeEventListener("click",
|
|
31
|
-
}), (
|
|
32
|
-
t(
|
|
28
|
+
return S(() => {
|
|
29
|
+
document.addEventListener("click", f);
|
|
30
|
+
}), V(() => {
|
|
31
|
+
document.removeEventListener("click", f);
|
|
32
|
+
}), (r, n) => (c(), a("div", D, [
|
|
33
|
+
u(t(g), {
|
|
33
34
|
type: "button",
|
|
34
|
-
|
|
35
|
-
onClick: n[0] || (n[0] = (e) =>
|
|
36
|
-
},
|
|
37
|
-
|
|
35
|
+
variant: "default",
|
|
36
|
+
onClick: n[0] || (n[0] = v((e) => i.value = !i.value, ["stop"]))
|
|
37
|
+
}, {
|
|
38
|
+
default: d(() => [
|
|
39
|
+
m(o(t(l)("gsc.grid.columnSettings.trigger")), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}),
|
|
43
|
+
i.value ? (c(), a("div", {
|
|
38
44
|
key: 0,
|
|
39
45
|
class: "gsc-popover absolute right-0 mt-2 w-72 p-2 z-20",
|
|
40
|
-
onClick: n[2] || (n[2] =
|
|
46
|
+
onClick: n[2] || (n[2] = v(() => {
|
|
41
47
|
}, ["stop"]))
|
|
42
48
|
}, [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
t(
|
|
49
|
+
s("div", N, [
|
|
50
|
+
s("div", j, o(t(l)("gsc.grid.columnSettings.title")), 1),
|
|
51
|
+
u(t(g), {
|
|
46
52
|
type: "button",
|
|
47
|
-
|
|
48
|
-
onClick: n[1] || (n[1] = (e) =>
|
|
49
|
-
},
|
|
53
|
+
variant: "text",
|
|
54
|
+
onClick: n[1] || (n[1] = (e) => i.value = !1)
|
|
55
|
+
}, {
|
|
56
|
+
default: d(() => [
|
|
57
|
+
m(o(t(l)("gsc.grid.columnSettings.close")), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
})
|
|
50
61
|
]),
|
|
51
|
-
|
|
52
|
-
(
|
|
62
|
+
s("div", I, [
|
|
63
|
+
(c(!0), a(w, null, E(p.value, (e) => (c(), a("label", {
|
|
53
64
|
key: e.id,
|
|
54
65
|
class: "flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-[rgba(0,0,0,0.02)] cursor-pointer"
|
|
55
66
|
}, [
|
|
56
|
-
|
|
67
|
+
s("input", {
|
|
57
68
|
type: "checkbox",
|
|
58
69
|
class: "gsc-checkbox",
|
|
59
70
|
checked: e.getIsVisible(),
|
|
60
|
-
onChange: (
|
|
61
|
-
}, null, 40,
|
|
62
|
-
|
|
71
|
+
onChange: (x) => e.toggleVisibility(!!x.target.checked)
|
|
72
|
+
}, null, 40, M),
|
|
73
|
+
s("span", {
|
|
63
74
|
class: "text-sm truncate",
|
|
64
75
|
title: String(e.columnDef?.header ?? e.id)
|
|
65
|
-
},
|
|
76
|
+
}, o(String(e.columnDef?.header ?? e.id)), 9, $)
|
|
66
77
|
]))), 128))
|
|
67
78
|
]),
|
|
68
|
-
|
|
69
|
-
t(
|
|
79
|
+
s("div", q, [
|
|
80
|
+
u(t(g), {
|
|
70
81
|
type: "button",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}, s(c(i)("gsc.grid.columnSettings.checkAll")), 1),
|
|
74
|
-
t("button", {
|
|
75
|
-
type: "button",
|
|
76
|
-
class: "gsc-btn gsc-btn-default px-2",
|
|
82
|
+
variant: "default",
|
|
83
|
+
class: "px-2",
|
|
77
84
|
onClick: b
|
|
78
|
-
},
|
|
85
|
+
}, {
|
|
86
|
+
default: d(() => [
|
|
87
|
+
m(o(t(l)("gsc.grid.columnSettings.checkAll")), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}),
|
|
91
|
+
u(t(g), {
|
|
92
|
+
type: "button",
|
|
93
|
+
variant: "default",
|
|
94
|
+
class: "px-2",
|
|
95
|
+
onClick: k
|
|
96
|
+
}, {
|
|
97
|
+
default: d(() => [
|
|
98
|
+
m(o(t(l)("gsc.grid.columnSettings.uncheckAll")), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
})
|
|
79
102
|
])
|
|
80
|
-
])) :
|
|
103
|
+
])) : A("", !0)
|
|
81
104
|
]));
|
|
82
105
|
}
|
|
83
|
-
},
|
|
106
|
+
}, H = /* @__PURE__ */ B(z, [["__scopeId", "data-v-ac85ebd4"]]);
|
|
84
107
|
export {
|
|
85
|
-
|
|
108
|
+
H as default
|
|
86
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-506c5c98],[data-v-506c5c98]:before,[data-v-506c5c98]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-506c5c98]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-material-symbols\:filter-alt-outline[data-v-506c5c98]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' vertical-align='-0.125em' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11 20q-.425 0-.712-.288T10 19v-6L4.2 5.6q-.375-.5-.112-1.05T5 4h14q.65 0 .913.55T19.8 5.6L14 13v6q0 .425-.288.713T13 20zm1-7.7L16.95 6h-9.9zm0 0'/%3E%3C/svg%3E");-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' vertical-align='-0.125em' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11 20q-.425 0-.712-.288T10 19v-6L4.2 5.6q-.375-.5-.112-1.05T5 4h14q.65 0 .913.55T19.8 5.6L14 13v6q0 .425-.288.713T13 20zm1-7.7L16.95 6h-9.9zm0 0'/%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' vertical-align='-0.125em' display='inline-block' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M11 20q-.425 0-.712-.288T10 19v-6L4.2 5.6q-.375-.5-.112-1.05T5 4h14q.65 0 .913.55T19.8 5.6L14 13v6q0 .425-.288.713T13 20zm1-7.7L16.95 6h-9.9zm0 0'/%3E%3C/svg%3E") no-repeat;-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;vertical-align:-.125em;display:inline-block;width:1em;height:1em}.absolute[data-v-506c5c98]{position:absolute}.relative[data-v-506c5c98]{position:relative}.sticky[data-v-506c5c98]{position:sticky}.right-0[data-v-506c5c98]{right:0}.top-0[data-v-506c5c98]{top:0}.z-10[data-v-506c5c98]{z-index:10}.ml-auto[data-v-506c5c98]{margin-left:auto}.mt-0\.5[data-v-506c5c98]{margin-top:.125rem}.h-6[data-v-506c5c98]{height:1.5rem}.h-full[data-v-506c5c98]{height:100%}.min-w-0[data-v-506c5c98]{min-width:0}.w-2[data-v-506c5c98]{width:.5rem}.w-full[data-v-506c5c98]{width:100%}.flex[data-v-506c5c98]{display:flex}.flex-1[data-v-506c5c98]{flex:1 1 0%}.shrink-0[data-v-506c5c98]{flex-shrink:0}.table[data-v-506c5c98]{display:table}.cursor-pointer[data-v-506c5c98]{cursor:pointer}.cursor-grab[data-v-506c5c98]{cursor:grab}.cursor-col-resize[data-v-506c5c98]{cursor:col-resize}.select-none[data-v-506c5c98]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-start[data-v-506c5c98]{align-items:flex-start}.items-center[data-v-506c5c98]{align-items:center}.gap-1[data-v-506c5c98]{gap:.25rem}.gap-2[data-v-506c5c98]{gap:.5rem}.overflow-auto[data-v-506c5c98]{overflow:auto}.truncate[data-v-506c5c98]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words[data-v-506c5c98]{overflow-wrap:break-word}.px[data-v-506c5c98]{padding-left:1rem;padding-right:1rem}.px-2[data-v-506c5c98]{padding-left:.5rem;padding-right:.5rem}.px-3[data-v-506c5c98]{padding-left:.75rem;padding-right:.75rem}.py-10[data-v-506c5c98]{padding-top:2.5rem;padding-bottom:2.5rem}.text-center[data-v-506c5c98]{text-align:center}.align-top[data-v-506c5c98]{vertical-align:top}.text-sm[data-v-506c5c98]{font-size:.875rem;line-height:1.25rem}.text-xs[data-v-506c5c98]{font-size:.75rem;line-height:1rem}.text-\[rgba\(0\,0\,0\,0\.25\)\][data-v-506c5c98]{--un-text-opacity:.25;color:#00000040;color:rgba(0,0,0,var(--un-text-opacity))}.text-\[rgba\(0\,0\,0\,0\.45\)\][data-v-506c5c98],.hover\:text-\[rgba\(0\,0\,0\,0\.45\)\][data-v-506c5c98]:hover{--un-text-opacity:.45;color:#00000073;color:rgba(0,0,0,var(--un-text-opacity))}
|