@gsc-basic/components 1.0.1 → 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.
Files changed (164) hide show
  1. package/README.md +59 -0
  2. package/dist/es/index.js +48 -30
  3. package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +15 -15
  4. package/dist/es/node_modules/@codemirror/commands/dist/index.js +31 -25
  5. package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +3 -3
  6. package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +8 -8
  7. package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +1 -1
  8. package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +1 -1
  9. package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +6 -6
  10. package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +3 -3
  11. package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +1 -1
  12. package/dist/es/node_modules/@codemirror/language/dist/index.js +77 -77
  13. package/dist/es/node_modules/@codemirror/lint/dist/index.js +7 -7
  14. package/dist/es/node_modules/@codemirror/search/dist/index.js +432 -465
  15. package/dist/es/node_modules/@codemirror/state/dist/index.js +272 -268
  16. package/dist/es/node_modules/@codemirror/view/dist/index.js +1732 -1647
  17. package/dist/es/node_modules/@lezer/common/dist/index.js +191 -190
  18. package/dist/es/node_modules/@lezer/lr/dist/index.js +5 -3
  19. package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +178 -0
  20. package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +13 -0
  21. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +406 -0
  22. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +772 -0
  23. package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +55 -0
  24. package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +109 -0
  25. package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +45 -0
  26. package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +213 -0
  27. package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +29 -0
  28. package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +74 -0
  29. package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +79 -0
  30. package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +21 -0
  31. package/dist/es/node_modules/@tanstack/store/dist/esm/types.js +6 -0
  32. package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +1885 -0
  33. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +38 -0
  34. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +33 -0
  35. package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +48 -0
  36. package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +159 -0
  37. package/dist/es/node_modules/@vueuse/core/dist/index.js +1 -1
  38. package/dist/es/node_modules/codemirror/dist/index.js +3 -3
  39. package/dist/es/src/Button/index.js +6 -0
  40. package/dist/es/src/Button/src/Button.css +1 -0
  41. package/dist/es/src/Button/src/Button.vue.js +41 -0
  42. package/dist/es/src/Button/src/Button2.css +1 -0
  43. package/dist/es/src/CodeEditor/src/index.css +1 -1
  44. package/dist/es/src/CodeEditor/src/index.vue.js +54 -51
  45. package/dist/es/src/CodeEditor/src/index2.css +1 -1
  46. package/dist/es/src/ConfigProvider/index.js +1 -2
  47. package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +9 -9
  48. package/dist/es/src/Form/index.js +6 -0
  49. package/dist/es/src/Form/src/Form.css +1 -0
  50. package/dist/es/src/Form/src/Form.vue.js +208 -0
  51. package/dist/es/src/Form/src/styles/form.css +1 -0
  52. package/dist/es/src/Grid/index.js +6 -0
  53. package/dist/es/src/Grid/src/Grid.css +1 -0
  54. package/dist/es/src/Grid/src/Grid.vue.js +180 -0
  55. package/dist/es/src/Grid/src/components/ActionBar.css +1 -0
  56. package/dist/es/src/Grid/src/components/ActionBar.vue.js +65 -0
  57. package/dist/es/src/Grid/src/components/CellEditor.css +1 -0
  58. package/dist/es/src/Grid/src/components/CellEditor.vue.js +132 -0
  59. package/dist/es/src/Grid/src/components/CellEditor2.css +1 -0
  60. package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -0
  61. package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +72 -0
  62. package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -0
  63. package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +109 -0
  64. package/dist/es/src/Grid/src/components/DataTable.css +1 -0
  65. package/dist/es/src/Grid/src/components/DataTable.vue.js +556 -0
  66. package/dist/es/src/Grid/src/components/Pager.css +1 -0
  67. package/dist/es/src/Grid/src/components/Pager.vue.js +64 -0
  68. package/dist/es/src/Grid/src/components/QueryBar.css +1 -0
  69. package/dist/es/src/Grid/src/components/QueryBar.vue.js +156 -0
  70. package/dist/es/src/Grid/src/composables/useCellEditor.js +20 -0
  71. package/dist/es/src/Grid/src/composables/useGridTable.js +213 -0
  72. package/dist/es/src/Grid/src/styles/table.css +1 -0
  73. package/dist/es/src/Overlay/index.js +61 -0
  74. package/dist/es/src/Overlay/src/Message.css +1 -0
  75. package/dist/es/src/Overlay/src/Message.vue.js +36 -0
  76. package/dist/es/src/Overlay/src/Message2.css +1 -0
  77. package/dist/es/src/Overlay/src/Modal.css +1 -0
  78. package/dist/es/src/Overlay/src/Modal.vue.js +67 -0
  79. package/dist/es/src/Overlay/src/Modal2.css +1 -0
  80. package/dist/es/src/Overlay/src/Notice.css +1 -0
  81. package/dist/es/src/Overlay/src/Notice.vue.js +37 -0
  82. package/dist/es/src/Overlay/src/Notice2.css +1 -0
  83. package/dist/es/src/ScaleScreen/src/index.vue.js +2 -2
  84. package/dist/es/src/VideoBackground/src/index.vue.js +8 -8
  85. package/dist/es/src/index.js +35 -19
  86. package/dist/es/src/locale/lang/en-US.js +40 -0
  87. package/dist/es/src/locale/lang/ja-JP.js +42 -2
  88. package/dist/es/src/locale/lang/zh-CN.js +42 -2
  89. package/dist/es/src/styles/tokens.css +1 -1
  90. package/dist/lib/index.js +1 -1
  91. package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -1
  92. package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -1
  93. package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -2
  94. package/dist/lib/node_modules/@codemirror/state/dist/index.js +4 -4
  95. package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -5
  96. package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -1
  97. package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
  98. package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +1 -0
  99. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +1 -0
  100. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +1 -0
  101. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -0
  102. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +1 -0
  103. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +1 -0
  104. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +1 -0
  105. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +1 -0
  106. package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +1 -0
  107. package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +1 -0
  108. package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +1 -0
  109. package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +1 -0
  110. package/dist/lib/node_modules/@tanstack/store/dist/esm/types.js +1 -0
  111. package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +4 -0
  112. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +1 -0
  113. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +1 -0
  114. package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +1 -0
  115. package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +1 -0
  116. package/dist/lib/src/Button/index.js +1 -0
  117. package/dist/lib/src/Button/src/Button.css +1 -0
  118. package/dist/lib/src/Button/src/Button.vue.js +1 -0
  119. package/dist/lib/src/Button/src/Button2.css +1 -0
  120. package/dist/lib/src/CodeEditor/src/index.css +1 -1
  121. package/dist/lib/src/CodeEditor/src/index.vue.js +1 -1
  122. package/dist/lib/src/CodeEditor/src/index2.css +1 -1
  123. package/dist/lib/src/ConfigProvider/index.js +1 -1
  124. package/dist/lib/src/Form/index.js +1 -0
  125. package/dist/lib/src/Form/src/Form.css +1 -0
  126. package/dist/lib/src/Form/src/Form.vue.js +1 -0
  127. package/dist/lib/src/Form/src/styles/form.css +1 -0
  128. package/dist/lib/src/Grid/index.js +1 -0
  129. package/dist/lib/src/Grid/src/Grid.css +1 -0
  130. package/dist/lib/src/Grid/src/Grid.vue.js +1 -0
  131. package/dist/lib/src/Grid/src/components/ActionBar.css +1 -0
  132. package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -0
  133. package/dist/lib/src/Grid/src/components/CellEditor.css +1 -0
  134. package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -0
  135. package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -0
  136. package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -0
  137. package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -0
  138. package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -0
  139. package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -0
  140. package/dist/lib/src/Grid/src/components/DataTable.css +1 -0
  141. package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -0
  142. package/dist/lib/src/Grid/src/components/Pager.css +1 -0
  143. package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -0
  144. package/dist/lib/src/Grid/src/components/QueryBar.css +1 -0
  145. package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -0
  146. package/dist/lib/src/Grid/src/composables/useCellEditor.js +1 -0
  147. package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -0
  148. package/dist/lib/src/Grid/src/styles/table.css +1 -0
  149. package/dist/lib/src/Overlay/index.js +1 -0
  150. package/dist/lib/src/Overlay/src/Message.css +1 -0
  151. package/dist/lib/src/Overlay/src/Message.vue.js +1 -0
  152. package/dist/lib/src/Overlay/src/Message2.css +1 -0
  153. package/dist/lib/src/Overlay/src/Modal.css +1 -0
  154. package/dist/lib/src/Overlay/src/Modal.vue.js +1 -0
  155. package/dist/lib/src/Overlay/src/Modal2.css +1 -0
  156. package/dist/lib/src/Overlay/src/Notice.css +1 -0
  157. package/dist/lib/src/Overlay/src/Notice.vue.js +1 -0
  158. package/dist/lib/src/Overlay/src/Notice2.css +1 -0
  159. package/dist/lib/src/index.js +1 -1
  160. package/dist/lib/src/locale/lang/en-US.js +1 -1
  161. package/dist/lib/src/locale/lang/ja-JP.js +1 -1
  162. package/dist/lib/src/locale/lang/zh-CN.js +1 -1
  163. package/dist/lib/src/styles/tokens.css +1 -1
  164. package/package.json +11 -8
@@ -0,0 +1,72 @@
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";
4
+ import './ColumnFilter.css';/* empty css */
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 = {
7
+ __name: "ColumnFilter",
8
+ props: { value: [String, Number], type: { type: String, default: "text" }, options: Array },
9
+ emits: ["update:value", "apply", "clear"],
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 ?? "";
14
+ });
15
+ function p() {
16
+ r("update:value", e.value), r("apply");
17
+ }
18
+ function w() {
19
+ e.value = "", r("update:value", ""), r("clear");
20
+ }
21
+ return (d, l) => (o(), a("div", {
22
+ class: "gsc-popover absolute top-full left-0 mt-2 min-w-44 p-3 z-20",
23
+ onClick: l[2] || (l[2] = m(() => {
24
+ }, ["stop"]))
25
+ }, [
26
+ u.type === "select" ? v((o(), a("select", {
27
+ key: 0,
28
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => e.value = t),
29
+ class: "gsc-control"
30
+ }, [
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", {
33
+ key: t.value,
34
+ value: t.value
35
+ }, i(t.label), 9, D))), 128))
36
+ ], 512)), [
37
+ [N, e.value]
38
+ ]) : v((o(), a("input", {
39
+ key: 1,
40
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => e.value = t),
41
+ type: "text",
42
+ class: "gsc-control",
43
+ onKeydown: S(m(p, ["prevent"]), ["enter"])
44
+ }, null, 40, E)), [
45
+ [b, e.value]
46
+ ]),
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
+ })
66
+ ])
67
+ ]));
68
+ }
69
+ }, I = /* @__PURE__ */ K(T, [["__scopeId", "data-v-aa324207"]]);
70
+ export {
71
+ I as default
72
+ };
@@ -0,0 +1 @@
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}
@@ -0,0 +1,109 @@
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";
4
+ import './ColumnSettings.css';/* empty css */
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 = {
7
+ __name: "ColumnSettings",
8
+ props: {
9
+ table: { type: Object, required: !0 }
10
+ },
11
+ setup(h) {
12
+ const _ = h, i = y(!1), { t: l } = L(), p = C(() => {
13
+ try {
14
+ return _.table.getAllLeafColumns?.() || [];
15
+ } catch {
16
+ return [];
17
+ }
18
+ });
19
+ function b() {
20
+ p.value.forEach((r) => r.toggleVisibility(!0));
21
+ }
22
+ function k() {
23
+ p.value.forEach((r) => r.toggleVisibility(!1));
24
+ }
25
+ function f() {
26
+ i.value = !1;
27
+ }
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), {
34
+ type: "button",
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", {
44
+ key: 0,
45
+ class: "gsc-popover absolute right-0 mt-2 w-72 p-2 z-20",
46
+ onClick: n[2] || (n[2] = v(() => {
47
+ }, ["stop"]))
48
+ }, [
49
+ s("div", N, [
50
+ s("div", j, o(t(l)("gsc.grid.columnSettings.title")), 1),
51
+ u(t(g), {
52
+ type: "button",
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
+ })
61
+ ]),
62
+ s("div", I, [
63
+ (c(!0), a(w, null, E(p.value, (e) => (c(), a("label", {
64
+ key: e.id,
65
+ class: "flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-[rgba(0,0,0,0.02)] cursor-pointer"
66
+ }, [
67
+ s("input", {
68
+ type: "checkbox",
69
+ class: "gsc-checkbox",
70
+ checked: e.getIsVisible(),
71
+ onChange: (x) => e.toggleVisibility(!!x.target.checked)
72
+ }, null, 40, M),
73
+ s("span", {
74
+ class: "text-sm truncate",
75
+ title: String(e.columnDef?.header ?? e.id)
76
+ }, o(String(e.columnDef?.header ?? e.id)), 9, $)
77
+ ]))), 128))
78
+ ]),
79
+ s("div", q, [
80
+ u(t(g), {
81
+ type: "button",
82
+ variant: "default",
83
+ class: "px-2",
84
+ onClick: b
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
+ })
102
+ ])
103
+ ])) : A("", !0)
104
+ ]));
105
+ }
106
+ }, H = /* @__PURE__ */ B(z, [["__scopeId", "data-v-ac85ebd4"]]);
107
+ export {
108
+ H as default
109
+ };
@@ -0,0 +1 @@
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))}