@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.
- package/README.md +59 -0
- package/dist/es/index.js +48 -30
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +15 -15
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +31 -25
- 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 +77 -77
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +7 -7
- package/dist/es/node_modules/@codemirror/search/dist/index.js +432 -465
- package/dist/es/node_modules/@codemirror/state/dist/index.js +272 -268
- package/dist/es/node_modules/@codemirror/view/dist/index.js +1732 -1647
- package/dist/es/node_modules/@lezer/common/dist/index.js +191 -190
- package/dist/es/node_modules/@lezer/lr/dist/index.js +5 -3
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +178 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +13 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +406 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +772 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +55 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +109 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +45 -0
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +213 -0
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +29 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +74 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +79 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +21 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/types.js +6 -0
- package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +1885 -0
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +38 -0
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +33 -0
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +48 -0
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +159 -0
- 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/index.js +6 -0
- package/dist/es/src/Grid/src/Grid.css +1 -0
- package/dist/es/src/Grid/src/Grid.vue.js +180 -0
- package/dist/es/src/Grid/src/components/ActionBar.css +1 -0
- package/dist/es/src/Grid/src/components/ActionBar.vue.js +65 -0
- package/dist/es/src/Grid/src/components/CellEditor.css +1 -0
- package/dist/es/src/Grid/src/components/CellEditor.vue.js +132 -0
- package/dist/es/src/Grid/src/components/CellEditor2.css +1 -0
- package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -0
- package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +72 -0
- package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -0
- package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +109 -0
- package/dist/es/src/Grid/src/components/DataTable.css +1 -0
- package/dist/es/src/Grid/src/components/DataTable.vue.js +556 -0
- package/dist/es/src/Grid/src/components/Pager.css +1 -0
- package/dist/es/src/Grid/src/components/Pager.vue.js +64 -0
- package/dist/es/src/Grid/src/components/QueryBar.css +1 -0
- package/dist/es/src/Grid/src/components/QueryBar.vue.js +156 -0
- package/dist/es/src/Grid/src/composables/useCellEditor.js +20 -0
- package/dist/es/src/Grid/src/composables/useGridTable.js +213 -0
- 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 +35 -19
- package/dist/es/src/locale/lang/en-US.js +40 -0
- package/dist/es/src/locale/lang/ja-JP.js +42 -2
- package/dist/es/src/locale/lang/zh-CN.js +42 -2
- package/dist/es/src/styles/tokens.css +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -1
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -1
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -2
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -5
- package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -1
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +1 -0
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +1 -0
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +1 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +1 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +1 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +1 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/types.js +1 -0
- package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +4 -0
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +1 -0
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +1 -0
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +1 -0
- package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +1 -0
- 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/index.js +1 -0
- package/dist/lib/src/Grid/src/Grid.css +1 -0
- package/dist/lib/src/Grid/src/Grid.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/ActionBar.css +1 -0
- package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/CellEditor.css +1 -0
- package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -0
- package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -0
- package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -0
- package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/DataTable.css +1 -0
- package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/Pager.css +1 -0
- package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -0
- package/dist/lib/src/Grid/src/components/QueryBar.css +1 -0
- package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -0
- package/dist/lib/src/Grid/src/composables/useCellEditor.js +1 -0
- package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -0
- 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/locale/lang/en-US.js +1 -1
- package/dist/lib/src/locale/lang/ja-JP.js +1 -1
- package/dist/lib/src/locale/lang/zh-CN.js +1 -1
- package/dist/lib/src/styles/tokens.css +1 -1
- 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,
|
|
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,
|
|
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(
|
|
20
|
-
|
|
19
|
+
s(f, { fallback: !0 }),
|
|
20
|
+
g(),
|
|
21
21
|
b(),
|
|
22
22
|
w(),
|
|
23
23
|
a(),
|
|
@@ -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-
|
|
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
|
|
2
|
-
import { useClipboard as
|
|
3
|
-
import { Codemirror as
|
|
4
|
-
import { oneDark as
|
|
5
|
-
import { json as
|
|
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
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import { useLocale as
|
|
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
|
|
19
|
-
const
|
|
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:
|
|
49
|
-
json: () => [
|
|
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
|
-
},
|
|
60
|
-
const e = [...
|
|
61
|
-
return a.isDarkTheme && e.push(
|
|
62
|
-
}),
|
|
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
|
-
}), [
|
|
68
|
+
}), [n, h] = H(a, "modelValue", "update:modelValue");
|
|
68
69
|
try {
|
|
69
|
-
a.language === "json" &&
|
|
70
|
+
a.language === "json" && h(JSON.stringify(JSON.parse(o(n)), null, 2));
|
|
70
71
|
} catch {
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
-
const t = o(
|
|
73
|
+
const x = d(() => {
|
|
74
|
+
const t = o(n);
|
|
74
75
|
return !t || t.length === 0;
|
|
75
76
|
}), {
|
|
76
77
|
copy: b,
|
|
77
|
-
copied:
|
|
78
|
-
isSupported:
|
|
79
|
-
} =
|
|
80
|
-
source:
|
|
78
|
+
copied: v,
|
|
79
|
+
isSupported: j
|
|
80
|
+
} = O({
|
|
81
|
+
source: n,
|
|
81
82
|
legacy: !0
|
|
82
|
-
}), u = d(() => !
|
|
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
|
-
},
|
|
85
|
+
}, i = V({
|
|
85
86
|
lines: null,
|
|
86
87
|
cursor: null,
|
|
87
88
|
length: null
|
|
88
|
-
}),
|
|
89
|
+
}), C = (t) => {
|
|
89
90
|
const e = t.state.selection.ranges;
|
|
90
|
-
|
|
91
|
+
i.cursor = e[0].anchor, i.length = t.state.doc.length, i.lines = t.state.doc.lines;
|
|
91
92
|
};
|
|
92
|
-
return (t, e) => (
|
|
93
|
-
class:
|
|
93
|
+
return (t, e) => (_(), B("div", {
|
|
94
|
+
class: T([o(m), s.isDarkTheme ? "dark-bg" : "light-bg"])
|
|
94
95
|
}, [
|
|
95
|
-
|
|
96
|
-
modelValue: o(
|
|
97
|
-
"onUpdate:modelValue": e[0] || (e[0] = (k) => N(
|
|
98
|
-
placeholder:
|
|
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:
|
|
105
|
-
onUpdate:
|
|
105
|
+
extensions: g.value,
|
|
106
|
+
onUpdate: C
|
|
106
107
|
}, null, 8, ["modelValue", "placeholder", "style", "autofocus", "disabled", "extensions"]),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
type: "button",
|
|
108
|
+
c("div", Y, [
|
|
109
|
+
p(o(W), {
|
|
110
|
+
variant: "text",
|
|
111
111
|
disabled: u.value,
|
|
112
|
-
onClick:
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
}),
|
|
128
|
+
}), Se = /* @__PURE__ */ X(se, [["__scopeId", "data-v-1a48abc7"]]);
|
|
126
129
|
export {
|
|
127
|
-
|
|
130
|
+
Se as default
|
|
128
131
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
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)}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { getCurrentInstance as a,
|
|
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,
|
|
5
|
-
const c =
|
|
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() ?
|
|
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 ||
|
|
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 ?
|
|
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
|
-
|
|
32
|
+
z,
|
|
33
33
|
n(() => o(r).locale)
|
|
34
34
|
), l(
|
|
35
|
-
|
|
35
|
+
I,
|
|
36
36
|
n(() => o(r).zIndex)
|
|
37
|
-
), l(
|
|
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 @@
|
|
|
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))}}
|