@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,38 @@
1
+ import { FieldApi as a } from "../../../form-core/dist/esm/FieldApi.js";
2
+ import { useStore as d } from "../../../vue-store/dist/esm/index.js";
3
+ import { defineComponent as m, onMounted as f, onUnmounted as l, watch as u } from "vue";
4
+ function s(e) {
5
+ const t = (() => {
6
+ const r = new a({
7
+ ...e,
8
+ form: e.form,
9
+ name: e.name
10
+ });
11
+ return r.Field = p, r;
12
+ })(), n = d(t.store, (o) => o);
13
+ let i;
14
+ return f(() => {
15
+ i = t.mount();
16
+ }), l(() => {
17
+ i();
18
+ }), u(
19
+ () => e,
20
+ () => {
21
+ t.update({ ...e, form: e.form });
22
+ }
23
+ ), { api: t, state: n };
24
+ }
25
+ const p = m(
26
+ (e, t) => {
27
+ const n = s({ ...e, ...t.attrs });
28
+ return () => t.slots.default({
29
+ field: n.api,
30
+ state: n.state.value
31
+ });
32
+ },
33
+ { name: "Field", inheritAttrs: !1 }
34
+ );
35
+ export {
36
+ p as Field,
37
+ s as useField
38
+ };
@@ -0,0 +1,33 @@
1
+ import { FormApi as d } from "../../../form-core/dist/esm/FormApi.js";
2
+ import { useStore as i } from "../../../vue-store/dist/esm/index.js";
3
+ import { defineComponent as l, h as f, onMounted as p } from "vue";
4
+ import { Field as c, useField as F } from "./useField.js";
5
+ function v(n) {
6
+ const s = (() => {
7
+ const t = new d(n), o = t;
8
+ return o.Field = l(
9
+ (e, r) => () => f(
10
+ c,
11
+ { ...e, ...r.attrs, form: t },
12
+ r.slots
13
+ ),
14
+ {
15
+ name: "APIField",
16
+ inheritAttrs: !1
17
+ }
18
+ ), o.useField = (e) => F({ ...e, form: t }), o.useStore = (e) => i(t.store, e), o.Subscribe = l(
19
+ (e, r) => {
20
+ const u = { ...e, ...r.attrs }.selector ?? ((a) => a), m = i(t.store, u);
21
+ return () => r.slots.default(m.value);
22
+ },
23
+ {
24
+ name: "Subscribe",
25
+ inheritAttrs: !1
26
+ }
27
+ ), o;
28
+ })();
29
+ return p(s.mount), s.update(n), s;
30
+ }
31
+ export {
32
+ v as useForm
33
+ };
@@ -0,0 +1,48 @@
1
+ import { ref as u, watch as c, toRaw as l, readonly as p } from "vue";
2
+ function O(t, e = (n) => n) {
3
+ const n = u(e(t.state));
4
+ return c(
5
+ () => t,
6
+ (r, s, i) => {
7
+ const a = r.subscribe(() => {
8
+ const f = e(r.state);
9
+ h(l(n.value), f) || (n.value = f);
10
+ });
11
+ i(() => {
12
+ a();
13
+ });
14
+ },
15
+ { immediate: !0 }
16
+ ), p(n);
17
+ }
18
+ function h(t, e) {
19
+ if (Object.is(t, e))
20
+ return !0;
21
+ if (typeof t != "object" || t === null || typeof e != "object" || e === null)
22
+ return !1;
23
+ if (t instanceof Map && e instanceof Map) {
24
+ if (t.size !== e.size) return !1;
25
+ for (const [r, s] of t)
26
+ if (!e.has(r) || !Object.is(s, e.get(r))) return !1;
27
+ return !0;
28
+ }
29
+ if (t instanceof Set && e instanceof Set) {
30
+ if (t.size !== e.size) return !1;
31
+ for (const r of t)
32
+ if (!e.has(r)) return !1;
33
+ return !0;
34
+ }
35
+ if (t instanceof Date && e instanceof Date)
36
+ return t.getTime() === e.getTime();
37
+ const n = Object.keys(t);
38
+ if (n.length !== Object.keys(e).length)
39
+ return !1;
40
+ for (let r = 0; r < n.length; r++)
41
+ if (!Object.prototype.hasOwnProperty.call(e, n[r]) || !Object.is(t[n[r]], e[n[r]]))
42
+ return !1;
43
+ return !0;
44
+ }
45
+ export {
46
+ h as shallow,
47
+ O as useStore
48
+ };
@@ -0,0 +1,159 @@
1
+ import { createTable as m } from "../../../table-core/build/lib/index.js";
2
+ import { ColumnFaceting as G, ColumnFiltering as T, ColumnGrouping as k, ColumnOrdering as j, ColumnPinning as z, ColumnSizing as D, ColumnVisibility as H, GlobalFaceting as I, GlobalFiltering as N, Headers as U, RowExpanding as $, RowPagination as B, RowPinning as K, RowSelection as L, RowSorting as O, _getVisibleLeafColumns as W, aggregationFns as X, buildHeaderGroups as Y, createCell as q, createColumn as J, createRow as Q, defaultColumnSizing as Z, expandRows as _, filterFns as ee, flattenBy as te, functionalUpdate as ne, getCoreRowModel as re, getFilteredRowModel as oe, getMemoOptions as ae, getPaginationRowModel as le, getSortedRowModel as ue, isFunction as ie, isNumberArray as ge, isRowSelected as se, isSubRowSelected as fe, makeStateUpdater as ce, memo as de, orderColumns as me, passiveEventSupported as we, reSplitAlphaNumeric as Re, selectRowsFn as Se, shouldAutoRemoveFilter as he, sortingFns as Ce } from "../../../table-core/build/lib/index.js";
3
+ import { isRef as w, shallowRef as R, watch as S, ref as h, watchEffect as C, defineComponent as y, h as b, unref as p } from "vue";
4
+ function g() {
5
+ return !0;
6
+ }
7
+ const v = /* @__PURE__ */ Symbol("merge-proxy"), F = {
8
+ get(e, t, a) {
9
+ return t === v ? a : e.get(t);
10
+ },
11
+ has(e, t) {
12
+ return e.has(t);
13
+ },
14
+ set: g,
15
+ deleteProperty: g,
16
+ getOwnPropertyDescriptor(e, t) {
17
+ return {
18
+ configurable: !0,
19
+ enumerable: !0,
20
+ get() {
21
+ return e.get(t);
22
+ },
23
+ set: g,
24
+ deleteProperty: g
25
+ };
26
+ },
27
+ ownKeys(e) {
28
+ return e.keys();
29
+ }
30
+ };
31
+ function s(e) {
32
+ return "value" in e ? e.value : e;
33
+ }
34
+ function i() {
35
+ for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
36
+ t[a] = arguments[a];
37
+ return new Proxy({
38
+ get(r) {
39
+ for (let n = t.length - 1; n >= 0; n--) {
40
+ const o = s(t[n])[r];
41
+ if (o !== void 0) return o;
42
+ }
43
+ },
44
+ has(r) {
45
+ for (let n = t.length - 1; n >= 0; n--)
46
+ if (r in s(t[n])) return !0;
47
+ return !1;
48
+ },
49
+ keys() {
50
+ const r = [];
51
+ for (let n = 0; n < t.length; n++) r.push(...Object.keys(s(t[n])));
52
+ return [...Array.from(new Set(r))];
53
+ }
54
+ }, F);
55
+ }
56
+ const A = y({
57
+ props: ["render", "props"],
58
+ setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? b(e.render, e.props) : e.render
59
+ });
60
+ function f(e) {
61
+ return i(e, {
62
+ data: p(e.data)
63
+ });
64
+ }
65
+ function E(e) {
66
+ const t = w(e.data), a = i({
67
+ state: {},
68
+ // Dummy state
69
+ onStateChange: () => {
70
+ },
71
+ // noop
72
+ renderFallbackValue: null,
73
+ mergeOptions(o, l) {
74
+ return t ? {
75
+ ...o,
76
+ ...l
77
+ } : i(o, l);
78
+ }
79
+ }, t ? f(e) : e), r = m(a);
80
+ if (t) {
81
+ const o = R(e.data);
82
+ S(o, () => {
83
+ r.setState((l) => ({
84
+ ...l,
85
+ data: o.value
86
+ }));
87
+ }, {
88
+ immediate: !0
89
+ });
90
+ }
91
+ const n = h(r.initialState);
92
+ return C(() => {
93
+ r.setOptions((o) => {
94
+ var l;
95
+ const c = new Proxy({}, {
96
+ get: (u, d) => n.value[d]
97
+ });
98
+ return i(o, t ? f(e) : e, {
99
+ // merge the initialState and `options.state`
100
+ // create a new proxy on each `setOptions` call
101
+ // and get the value from state on each property access
102
+ state: i(c, (l = e.state) != null ? l : {}),
103
+ // Similarly, we'll maintain both our internal state and any user-provided
104
+ // state.
105
+ onStateChange: (u) => {
106
+ u instanceof Function ? n.value = u(n.value) : n.value = u, e.onStateChange == null || e.onStateChange(u);
107
+ }
108
+ });
109
+ });
110
+ }), r;
111
+ }
112
+ export {
113
+ G as ColumnFaceting,
114
+ T as ColumnFiltering,
115
+ k as ColumnGrouping,
116
+ j as ColumnOrdering,
117
+ z as ColumnPinning,
118
+ D as ColumnSizing,
119
+ H as ColumnVisibility,
120
+ A as FlexRender,
121
+ I as GlobalFaceting,
122
+ N as GlobalFiltering,
123
+ U as Headers,
124
+ $ as RowExpanding,
125
+ B as RowPagination,
126
+ K as RowPinning,
127
+ L as RowSelection,
128
+ O as RowSorting,
129
+ W as _getVisibleLeafColumns,
130
+ X as aggregationFns,
131
+ Y as buildHeaderGroups,
132
+ q as createCell,
133
+ J as createColumn,
134
+ Q as createRow,
135
+ m as createTable,
136
+ Z as defaultColumnSizing,
137
+ _ as expandRows,
138
+ ee as filterFns,
139
+ te as flattenBy,
140
+ ne as functionalUpdate,
141
+ re as getCoreRowModel,
142
+ oe as getFilteredRowModel,
143
+ ae as getMemoOptions,
144
+ le as getPaginationRowModel,
145
+ ue as getSortedRowModel,
146
+ ie as isFunction,
147
+ ge as isNumberArray,
148
+ se as isRowSelected,
149
+ fe as isSubRowSelected,
150
+ ce as makeStateUpdater,
151
+ de as memo,
152
+ me as orderColumns,
153
+ we as passiveEventSupported,
154
+ Re as reSplitAlphaNumeric,
155
+ Se as selectRowsFn,
156
+ he as shouldAutoRemoveFilter,
157
+ Ce as sortingFns,
158
+ E as useVueTable
159
+ };
@@ -1,6 +1,6 @@
1
1
  import { useTimeoutFn as w, isClient as T, toArray as h, watchImmediate as q, createSingletonPromise as I, isObject as O } from "../../shared/dist/index.js";
2
2
  import { tryOnScopeDispose as J } from "../../shared/dist/index.js";
3
- import { computed as b, shallowRef as y, toValue as m, readonly as x, getCurrentInstance as W, onMounted as j, unref as B, toRaw as F } from "vue";
3
+ import { computed as b, shallowRef as y, readonly as x, toValue as m, getCurrentInstance as W, onMounted as j, unref as B, toRaw as F } from "vue";
4
4
  const N = T ? window : void 0, E = T ? window.navigator : void 0;
5
5
  function V(e) {
6
6
  var i;
@@ -1,7 +1,7 @@
1
1
  import { lineNumbers as t, highlightActiveLineGutter as e, highlightSpecialChars as i, drawSelection as o, dropCursor as r, rectangularSelection as a, crosshairCursor as l, highlightActiveLine as m, keymap as p } from "../../@codemirror/view/dist/index.js";
2
2
  import { EditorView as V } from "../../@codemirror/view/dist/index.js";
3
3
  import { EditorState as h } from "../../@codemirror/state/dist/index.js";
4
- import { foldGutter as c, indentOnInput as n, syntaxHighlighting as s, bracketMatching as f, defaultHighlightStyle as g, foldKeymap as u } from "../../@codemirror/language/dist/index.js";
4
+ import { foldGutter as c, indentOnInput as n, syntaxHighlighting as s, defaultHighlightStyle as f, bracketMatching as g, foldKeymap as u } from "../../@codemirror/language/dist/index.js";
5
5
  import { history as y, defaultKeymap as d, historyKeymap as S } from "../../@codemirror/commands/dist/index.js";
6
6
  import { highlightSelectionMatches as K, searchKeymap as k } from "../../@codemirror/search/dist/index.js";
7
7
  import { closeBrackets as b, autocompletion as w, closeBracketsKeymap as x, completionKeymap as C } from "../../@codemirror/autocomplete/dist/index.js";
@@ -16,8 +16,8 @@ const I = [
16
16
  r(),
17
17
  h.allowMultipleSelections.of(!0),
18
18
  n(),
19
- s(g, { fallback: !0 }),
20
- f(),
19
+ s(f, { fallback: !0 }),
20
+ g(),
21
21
  b(),
22
22
  w(),
23
23
  a(),
@@ -0,0 +1,6 @@
1
+ import { withInstall as t } from "@gsc-basic/utils";
2
+ import o from "./src/Button.vue.js";
3
+ const n = t(o);
4
+ export {
5
+ n as GscButton
6
+ };
@@ -0,0 +1 @@
1
+ .gsc-btn[data-v-ceb757ec]{height:32px;padding:4px 15px;border-radius:6px;font-size:14px;line-height:22px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:border-color .2s,background-color .2s,color .2s,box-shadow .2s}.gsc-btn[data-v-ceb757ec]:disabled{cursor:not-allowed;opacity:.5}.gsc-btn-default[data-v-ceb757ec]{border:1px solid var(--gsc-basic-border);background:var(--gsc-basic-bg);color:var(--gsc-basic-text-primary)}.gsc-btn-link[data-v-ceb757ec]{border:0;background:transparent;color:var(--gsc-basic-primary);padding:0 4px}.gsc-btn-primary[data-v-ceb757ec]{border:1px solid var(--gsc-basic-primary);background:var(--gsc-basic-primary);color:var(--gsc-basic-bg)}.gsc-btn-danger[data-v-ceb757ec]{border:1px solid var(--gsc-basic-danger);background:var(--gsc-basic-danger);color:var(--gsc-basic-bg)}.gsc-btn-text[data-v-ceb757ec]{border:1px solid transparent;background:transparent;color:var(--gsc-basic-text-secondary);padding:0 8px;height:24px;border-radius:6px;font-size:12px;line-height:22px}.gsc-btn-sm[data-v-ceb757ec]{height:28px;padding:0 10px;font-size:14px;line-height:22px}.gsc-btn-icon[data-v-ceb757ec]{width:32px;padding:0;display:inline-flex;align-items:center;justify-content:center}.gsc-btn-icon-sm[data-v-ceb757ec]{width:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}
@@ -0,0 +1,41 @@
1
+ import { computed as s, openBlock as l, createElementBlock as c, mergeProps as u, renderSlot as d } from "vue";
2
+ import './Button2.css';import './Button.css';/* empty css */
3
+ /* empty css */
4
+ import p from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const f = ["disabled", "type"], m = {
6
+ __name: "Button",
7
+ props: {
8
+ variant: { type: String, default: "default" },
9
+ size: { type: String, default: "" },
10
+ disabled: { type: Boolean, default: !1 },
11
+ type: { type: String, default: "button" }
12
+ },
13
+ emits: ["click"],
14
+ setup(n) {
15
+ const t = n, a = s(() => {
16
+ switch (t.variant) {
17
+ case "primary":
18
+ return "gsc-btn-primary";
19
+ case "link":
20
+ return "gsc-btn-link";
21
+ case "danger":
22
+ return "gsc-btn-danger";
23
+ case "text":
24
+ return "gsc-btn-text";
25
+ default:
26
+ return "gsc-btn-default";
27
+ }
28
+ }), i = s(() => t.size ? t.size === "sm" ? "gsc-btn-sm" : t.size === "icon" ? "gsc-btn-icon" : "" : "");
29
+ return (e, r) => (l(), c("button", u(e.$attrs, {
30
+ class: ["gsc-btn", a.value, i.value].filter(Boolean).join(" "),
31
+ disabled: n.disabled || e.$attrs.disabled,
32
+ type: n.type,
33
+ onClick: r[0] || (r[0] = (o) => e.$emit("click", o))
34
+ }), [
35
+ d(e.$slots, "default", {}, void 0, !0)
36
+ ], 16, f));
37
+ }
38
+ }, v = /* @__PURE__ */ p(m, [["__scopeId", "data-v-ceb757ec"]]);
39
+ export {
40
+ v as default
41
+ };
@@ -0,0 +1 @@
1
+ [data-v-ceb757ec],[data-v-ceb757ec]:before,[data-v-ceb757ec]: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-ceb757ec]::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: }.inline-flex[data-v-ceb757ec]{display:inline-flex}.border[data-v-ceb757ec]{border-width:1px}.transition[data-v-ceb757ec]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
@@ -1 +1 @@
1
- .gsc-basic-code-editor[data-v-8fba7df2]{min-width:380px;border:1px solid var(--gsc-basic-border-color);border-radius:var(--gsc-basic-border-radius-base)}.gsc-basic-code-editor__copy-btn[data-v-8fba7df2]{height:20px;padding:0 12px;border:0;background-color:transparent;font-size:12px;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease,opacity .2s ease}.gsc-basic-code-editor__copy-btn[data-v-8fba7df2]:disabled{cursor:not-allowed;opacity:.5}.gsc-basic-code-editor[data-v-8fba7df2] .cm-editor{border:0 solid var(--gsc-basic-border-color);border-width:1px 0}
1
+ .gsc-basic-code-editor[data-v-1a48abc7]{min-width:380px;border:1px solid var(--gsc-basic-border-color);border-radius:var(--gsc-basic-border-radius-base)}.gsc-basic-code-editor__copy-btn[data-v-1a48abc7]{height:20px;padding:0 12px;border:0;background-color:transparent;font-size:12px;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease,opacity .2s ease}.gsc-basic-code-editor__copy-btn[data-v-1a48abc7]:disabled{cursor:not-allowed;opacity:.5}.gsc-basic-code-editor[data-v-1a48abc7] .cm-editor{border:0 solid var(--gsc-basic-border-color);border-width:1px 0}
@@ -1,8 +1,8 @@
1
- import { computed as d, unref as o, reactive as C, createElementBlock as _, openBlock as V, normalizeClass as B, createVNode as T, createElementVNode as l, normalizeStyle as D, isRef as N, createTextVNode as z, toDisplayString as n } from "vue";
2
- import { useClipboard as L } from "../../../node_modules/@vueuse/core/dist/index.js";
3
- import { Codemirror as O } from "../../../node_modules/vue-codemirror/dist/vue-codemirror.esm.js";
4
- import { oneDark as q } from "../../../node_modules/@codemirror/theme-one-dark/dist/index.js";
5
- import { json as G, jsonParseLinter as J } from "../../../node_modules/@codemirror/lang-json/dist/index.js";
1
+ import { computed as d, unref as o, reactive as V, openBlock as _, createElementBlock as B, normalizeClass as T, createVNode as p, normalizeStyle as D, isRef as N, createElementVNode as c, withCtx as z, createTextVNode as L, toDisplayString as l } from "vue";
2
+ import { useClipboard as O } from "../../../node_modules/@vueuse/core/dist/index.js";
3
+ import { Codemirror as q } from "../../../node_modules/vue-codemirror/dist/vue-codemirror.esm.js";
4
+ import { oneDark as G } from "../../../node_modules/@codemirror/theme-one-dark/dist/index.js";
5
+ import { json as J, jsonParseLinter as w } from "../../../node_modules/@codemirror/lang-json/dist/index.js";
6
6
  import { java as A } from "../../../node_modules/@codemirror/lang-java/dist/index.js";
7
7
  import { sql as F } from "../../../node_modules/@codemirror/lang-sql/dist/index.js";
8
8
  import { javascript as I } from "../../../node_modules/@codemirror/lang-javascript/dist/index.js";
@@ -10,13 +10,14 @@ import { yaml as M } from "../../../node_modules/@codemirror/lang-yaml/dist/inde
10
10
  import { xml as P } from "../../../node_modules/@codemirror/lang-xml/dist/index.js";
11
11
  import { python as R } from "../../../node_modules/@codemirror/lang-python/dist/index.js";
12
12
  import { linter as U, lintGutter as $ } from "../../../node_modules/@codemirror/lint/dist/index.js";
13
- import { useModelBinding as w } from "@gsc-basic/hooks";
14
- import { useNamespace as H } from "../../hooks/useNamespace.js";
15
- import { useLocale as K } from "../../hooks/useLocale.js";
13
+ import { useModelBinding as H } from "@gsc-basic/hooks";
14
+ import { useNamespace as K } from "../../hooks/useNamespace.js";
15
+ import { useLocale as Q } from "../../hooks/useLocale.js";
16
+ import { GscButton as W } from "../../Button/index.js";
16
17
  import './index2.css';import './index.css';/* empty css */
17
18
  /* empty css */
18
- import Q from "../../../_virtual/_plugin-vue_export-helper.js";
19
- const W = { class: "flex items-center justify-between py-1 text-xs dark:text-gray-200 dark:bg-gray-800" }, X = ["disabled"], Y = { class: "flex" }, Z = { class: "pr-2" }, ee = { class: "pr-2" }, te = { class: "pr-2" }, oe = /* @__PURE__ */ Object.assign({
19
+ import X from "../../../_virtual/_plugin-vue_export-helper.js";
20
+ const Y = { class: "flex items-center justify-between py-1 text-xs dark:text-gray-200 dark:bg-gray-800" }, Z = { class: "flex" }, ee = { class: "pr-2" }, te = { class: "pr-2" }, oe = { class: "pr-2" }, se = /* @__PURE__ */ Object.assign({
20
21
  name: "GscCodeEditor"
21
22
  }, {
22
23
  __name: "index",
@@ -45,8 +46,8 @@ const W = { class: "flex items-center justify-between py-1 text-xs dark:text-gra
45
46
  },
46
47
  emits: ["change", "update:modelValue"],
47
48
  setup(s) {
48
- const a = s, { prefixCls: p } = H("code-editor"), { t: r } = K(), m = {
49
- json: () => [G(), U(J()), $()],
49
+ const a = s, { prefixCls: m } = K("code-editor"), { t: r } = Q(), f = {
50
+ json: () => [J(), U(w()), $()],
50
51
  java: () => [A()],
51
52
  sql: () => [F()],
52
53
  yaml: () => [M()],
@@ -56,73 +57,75 @@ const W = { class: "flex items-center justify-between py-1 text-xs dark:text-gra
56
57
  jsx: !0,
57
58
  typescript: !0
58
59
  })]
59
- }, f = d(() => {
60
- const e = [...m[a.language]?.() ?? []];
61
- return a.isDarkTheme && e.push(q), e;
62
- }), g = d(() => {
60
+ }, g = d(() => {
61
+ const e = [...f[a.language]?.() ?? []];
62
+ return a.isDarkTheme && e.push(G), e;
63
+ }), y = d(() => {
63
64
  if (a.placeholder)
64
65
  return a.placeholder;
65
66
  const t = `gsc.codeEditor.placeholder.${a.language}`, e = r(t);
66
67
  return e === t ? r("gsc.codeEditor.placeholder.default") : e;
67
- }), [i, y] = w(a, "modelValue", "update:modelValue");
68
+ }), [n, h] = H(a, "modelValue", "update:modelValue");
68
69
  try {
69
- a.language === "json" && y(JSON.stringify(JSON.parse(o(i)), null, 2));
70
+ a.language === "json" && h(JSON.stringify(JSON.parse(o(n)), null, 2));
70
71
  } catch {
71
72
  }
72
- const h = d(() => {
73
- const t = o(i);
73
+ const x = d(() => {
74
+ const t = o(n);
74
75
  return !t || t.length === 0;
75
76
  }), {
76
77
  copy: b,
77
- copied: x,
78
- isSupported: v
79
- } = L({
80
- source: i,
78
+ copied: v,
79
+ isSupported: j
80
+ } = O({
81
+ source: n,
81
82
  legacy: !0
82
- }), u = d(() => !v.value || h.value), j = d(() => r(x.value ? "gsc.codeEditor.action.copied" : "gsc.codeEditor.action.copy")), E = () => {
83
+ }), u = d(() => !j.value || x.value), E = d(() => r(v.value ? "gsc.codeEditor.action.copied" : "gsc.codeEditor.action.copy")), S = () => {
83
84
  u.value || b();
84
- }, c = C({
85
+ }, i = V({
85
86
  lines: null,
86
87
  cursor: null,
87
88
  length: null
88
- }), S = (t) => {
89
+ }), C = (t) => {
89
90
  const e = t.state.selection.ranges;
90
- c.cursor = e[0].anchor, c.length = t.state.doc.length, c.lines = t.state.doc.lines;
91
+ i.cursor = e[0].anchor, i.length = t.state.doc.length, i.lines = t.state.doc.lines;
91
92
  };
92
- return (t, e) => (V(), _("div", {
93
- class: B([o(p), s.isDarkTheme ? "dark-bg" : "light-bg"])
93
+ return (t, e) => (_(), B("div", {
94
+ class: T([o(m), s.isDarkTheme ? "dark-bg" : "light-bg"])
94
95
  }, [
95
- T(o(O), {
96
- modelValue: o(i),
97
- "onUpdate:modelValue": e[0] || (e[0] = (k) => N(i) ? i.value = k : null),
98
- placeholder: g.value,
96
+ p(o(q), {
97
+ modelValue: o(n),
98
+ "onUpdate:modelValue": e[0] || (e[0] = (k) => N(n) ? n.value = k : null),
99
+ placeholder: y.value,
99
100
  style: D(s.editorStyle),
100
101
  autofocus: s.autofocus,
101
102
  "indent-with-tab": !0,
102
103
  "tab-size": 2,
103
104
  disabled: s.disabled,
104
- extensions: f.value,
105
- onUpdate: S
105
+ extensions: g.value,
106
+ onUpdate: C
106
107
  }, null, 8, ["modelValue", "placeholder", "style", "autofocus", "disabled", "extensions"]),
107
- l("div", W, [
108
- l("button", {
109
- class: "gsc-basic-code-editor__copy-btn dark:text-gray-200",
110
- type: "button",
108
+ c("div", Y, [
109
+ p(o(W), {
110
+ variant: "text",
111
111
  disabled: u.value,
112
- onClick: E
113
- }, [
114
- e[1] || (e[1] = l("i", { class: "i-material-symbols:content-copy-outline" }, null, -1)),
115
- z(" " + n(j.value), 1)
116
- ], 8, X),
117
- l("div", Y, [
118
- l("span", Z, n(o(r)("gsc.codeEditor.info.length")) + ": " + n(c.length), 1),
119
- l("span", ee, n(o(r)("gsc.codeEditor.info.lines")) + ": " + n(c.lines), 1),
120
- l("span", te, n(o(r)("gsc.codeEditor.info.cursor")) + ": " + n(c.cursor), 1)
112
+ onClick: S
113
+ }, {
114
+ default: z(() => [
115
+ e[1] || (e[1] = c("i", { class: "i-material-symbols:content-copy-outline" }, null, -1)),
116
+ L(" " + l(E.value), 1)
117
+ ]),
118
+ _: 1
119
+ }, 8, ["disabled"]),
120
+ c("div", Z, [
121
+ c("span", ee, l(o(r)("gsc.codeEditor.info.length")) + ": " + l(i.length), 1),
122
+ c("span", te, l(o(r)("gsc.codeEditor.info.lines")) + ": " + l(i.lines), 1),
123
+ c("span", oe, l(o(r)("gsc.codeEditor.info.cursor")) + ": " + l(i.cursor), 1)
121
124
  ])
122
125
  ])
123
126
  ], 2));
124
127
  }
125
- }), je = /* @__PURE__ */ Q(oe, [["__scopeId", "data-v-8fba7df2"]]);
128
+ }), Se = /* @__PURE__ */ X(se, [["__scopeId", "data-v-1a48abc7"]]);
126
129
  export {
127
- je as default
130
+ Se as default
128
131
  };
@@ -1 +1 @@
1
- [data-v-8fba7df2],[data-v-8fba7df2]:before,[data-v-8fba7df2]: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-8fba7df2]::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\:content-copy-outline[data-v-8fba7df2]{--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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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}.flex[data-v-8fba7df2]{display:flex}.items-center[data-v-8fba7df2]{align-items:center}.justify-between[data-v-8fba7df2]{justify-content:space-between}.border[data-v-8fba7df2]{border-width:1px}.dark .dark\:bg-gray-800[data-v-8fba7df2]{--un-bg-opacity:1;background-color:#1f2937}@supports (color: rgb(0 0 0 / 0)){.dark .dark\:bg-gray-800[data-v-8fba7df2]{background-color:rgb(31 41 55 / var(--un-bg-opacity))}}.py-1[data-v-8fba7df2]{padding-top:.25rem;padding-bottom:.25rem}.pr-2[data-v-8fba7df2]{padding-right:.5rem}.text-xs[data-v-8fba7df2]{font-size:.75rem;line-height:1rem}.dark .dark\:text-gray-200[data-v-8fba7df2]{--un-text-opacity:1;color:#e5e7eb}@supports (color: rgb(0 0 0 / 0)){.dark .dark\:text-gray-200[data-v-8fba7df2]{color:rgb(229 231 235 / var(--un-text-opacity))}}.transition[data-v-8fba7df2]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease[data-v-8fba7df2]{transition-timing-function:cubic-bezier(.4,0,.2,1)}
1
+ [data-v-1a48abc7],[data-v-1a48abc7]:before,[data-v-1a48abc7]: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-1a48abc7]::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\:content-copy-outline[data-v-1a48abc7]{--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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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='M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V6h2v14h11v2zm4-6V4z'/%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}.flex[data-v-1a48abc7]{display:flex}.items-center[data-v-1a48abc7]{align-items:center}.justify-between[data-v-1a48abc7]{justify-content:space-between}.border[data-v-1a48abc7]{border-width:1px}.dark .dark\:bg-gray-800[data-v-1a48abc7]{--un-bg-opacity:1;background-color:#1f2937}@supports (color: rgb(0 0 0 / 0)){.dark .dark\:bg-gray-800[data-v-1a48abc7]{background-color:rgb(31 41 55 / var(--un-bg-opacity))}}.py-1[data-v-1a48abc7]{padding-top:.25rem;padding-bottom:.25rem}.pr-2[data-v-1a48abc7]{padding-right:.5rem}.text-xs[data-v-1a48abc7]{font-size:.75rem;line-height:1rem}.dark .dark\:text-gray-200[data-v-1a48abc7]{--un-text-opacity:1;color:#e5e7eb}@supports (color: rgb(0 0 0 / 0)){.dark .dark\:text-gray-200[data-v-1a48abc7]{color:rgb(229 231 235 / var(--un-text-opacity))}}.transition[data-v-1a48abc7]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease[data-v-1a48abc7]{transition-timing-function:cubic-bezier(.4,0,.2,1)}
@@ -2,6 +2,5 @@ import { withInstall as o } from "@gsc-basic/utils";
2
2
  import r from "./src/configProvider.js";
3
3
  const f = o(r);
4
4
  export {
5
- f as GscConfigProvider,
6
- f as default
5
+ f as GscConfigProvider
7
6
  };
@@ -1,22 +1,22 @@
1
- import { getCurrentInstance as a, inject as v, ref as g, computed as n, unref as o, provide as C } from "vue";
1
+ import { getCurrentInstance as a, provide as v, computed as n, unref as o, inject as g, ref as C } from "vue";
2
2
  import { deepMerge as m } from "@gsc-basic/utils";
3
3
  import { useLocale as x } from "../../hooks/useLocale.js";
4
- import { configProviderContextKey as d, defaultInitialZIndex as z, localeContextKey as I, zIndexContextKey as b, sizeInjectionKey as G } from "./constants.js";
5
- const c = g();
4
+ import { configProviderContextKey as d, localeContextKey as z, zIndexContextKey as I, sizeInjectionKey as b, defaultInitialZIndex as G } from "./constants.js";
5
+ const c = C();
6
6
  function p(t, e = void 0) {
7
- const i = a() ? v(d, c) : c;
7
+ const i = a() ? g(d, c) : c;
8
8
  return t ? n(() => i.value?.[t] ?? e) : i;
9
9
  }
10
10
  function F(t) {
11
11
  const e = p(), i = x(n(() => e.value?.locale)), u = n(() => o(t) || e.value?.size || "");
12
12
  return y(n(() => o(e) || {})), {
13
13
  locale: i,
14
- zIndex: e.value?.zIndex || z,
14
+ zIndex: e.value?.zIndex || G,
15
15
  size: u
16
16
  };
17
17
  }
18
18
  const y = (t, e, i = !1) => {
19
- const u = !!a(), f = u ? p() : void 0, l = e?.provide ?? (u ? C : void 0);
19
+ const u = !!a(), f = u ? p() : void 0, l = e?.provide ?? (u ? v : void 0);
20
20
  if (!l) {
21
21
  console.warn(
22
22
  "provideGlobalConfig",
@@ -29,12 +29,12 @@ const y = (t, e, i = !1) => {
29
29
  return f?.value ? m(f.value, s) : s;
30
30
  });
31
31
  return l(d, r), l(
32
- I,
32
+ z,
33
33
  n(() => o(r).locale)
34
34
  ), l(
35
- b,
35
+ I,
36
36
  n(() => o(r).zIndex)
37
- ), l(G, {
37
+ ), l(b, {
38
38
  size: n(() => o(r).size || "")
39
39
  }), (i || !c.value) && (c.value = o(r)), r;
40
40
  };
@@ -0,0 +1,6 @@
1
+ import { withInstall as o } from "@gsc-basic/utils";
2
+ import r from "./src/Form.vue.js";
3
+ const i = o(r);
4
+ export {
5
+ i as GscForm
6
+ };
@@ -0,0 +1 @@
1
+ [data-v-86e89bcb],[data-v-86e89bcb]:before,[data-v-86e89bcb]: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-86e89bcb]::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: }.grid-cols-1[data-v-86e89bcb]{grid-template-columns:repeat(1,minmax(0,1fr))}.mb-0\.5[data-v-86e89bcb]{margin-bottom:.125rem}.ml-2[data-v-86e89bcb]{margin-left:.5rem}.mr-3[data-v-86e89bcb]{margin-right:.75rem}.w-full[data-v-86e89bcb]{width:100%}.flex[data-v-86e89bcb]{display:flex}.inline-flex[data-v-86e89bcb]{display:inline-flex}.items-center[data-v-86e89bcb]{align-items:center}.gap-1[data-v-86e89bcb]{gap:.25rem}.gap-2[data-v-86e89bcb]{gap:.5rem}.text-left[data-v-86e89bcb]{text-align:left}@media(min-width:768px){.md\:grid-cols-2[data-v-86e89bcb]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:992px){.lg\:col-span-2[data-v-86e89bcb]{grid-column:span 2/span 2}.lg\:col-span-3[data-v-86e89bcb]{grid-column:span 3/span 3}.lg\:col-span-4[data-v-86e89bcb]{grid-column:span 4/span 4}.lg\:grid-cols-3[data-v-86e89bcb]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1200px){.xl\:grid-cols-4[data-v-86e89bcb]{grid-template-columns:repeat(4,minmax(0,1fr))}}