@gsc-basic/components 1.0.1 → 1.0.2
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 +34 -30
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +26 -20
- package/dist/es/node_modules/@codemirror/language/dist/index.js +77 -77
- 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 +3 -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 +768 -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/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 +186 -0
- package/dist/es/src/Grid/src/components/ActionBar.css +1 -0
- package/dist/es/src/Grid/src/components/ActionBar.vue.js +58 -0
- package/dist/es/src/Grid/src/components/CellEditor.css +1 -0
- package/dist/es/src/Grid/src/components/CellEditor.vue.js +121 -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 +61 -0
- package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -0
- package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +86 -0
- package/dist/es/src/Grid/src/components/DataTable.css +1 -0
- package/dist/es/src/Grid/src/components/DataTable.vue.js +533 -0
- package/dist/es/src/Grid/src/components/Pager.css +1 -0
- package/dist/es/src/Grid/src/components/Pager.vue.js +55 -0
- package/dist/es/src/Grid/src/components/QueryBar.css +1 -0
- package/dist/es/src/Grid/src/components/QueryBar.vue.js +184 -0
- package/dist/es/src/Grid/src/composables/useCellEditor.js +20 -0
- package/dist/es/src/Grid/src/composables/useGridTable.js +212 -0
- package/dist/es/src/Grid/src/styles/antd.css +1 -0
- package/dist/es/src/Grid/src/utils/exportCsv.js +15 -0
- package/dist/es/src/index.js +23 -21
- 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/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/antd.css +1 -0
- package/dist/lib/src/Grid/src/utils/exportCsv.js +3 -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 +6 -3
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# @gsc-basic/components 开发说明
|
|
2
|
+
|
|
3
|
+
使用 Vite 以 library mode 构建,默认样式体系为 UnoCSS。
|
|
4
|
+
|
|
5
|
+
## 目录结构(核心)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
packages/components
|
|
9
|
+
index.js # 包入口(默认导出 install + re-export src/index.js)
|
|
10
|
+
package.json
|
|
11
|
+
vite.config.mjs # library build 配置(含 @ 别名)
|
|
12
|
+
uno.config.mjs # 本包 UnoCSS 配置(含 shadcn preset)
|
|
13
|
+
tsconfig.json # TS 项目编辑器别名:@/* -> src/*(shadcn 组件使用 TS)
|
|
14
|
+
|
|
15
|
+
components.json # shadcn-vue CLI 配置(本仓库 shadcn 部分使用 TS:typescript=true)
|
|
16
|
+
tailwind.config.js # 仅用于满足 shadcn-vue CLI 的占位文件(真实样式用 UnoCSS)
|
|
17
|
+
|
|
18
|
+
src/
|
|
19
|
+
index.js # 组件库对外导出入口(仅导出业务组件)
|
|
20
|
+
styles/tokens.css # 设计变量(含 shadcn tokens + dark 覆盖)
|
|
21
|
+
|
|
22
|
+
<ComponentName>/ # 对外组件(示例:Grid/、ConfigProvider/ 等)
|
|
23
|
+
index.js # withInstall 包装导出
|
|
24
|
+
src/*.vue # 组件实现
|
|
25
|
+
|
|
26
|
+
components/ui/** # shadcn-vue 生成/维护的内部 UI 组件(不要从 src/index.js 导出)
|
|
27
|
+
lib/** # 内部工具(例如 cn class 合并)
|
|
28
|
+
|
|
29
|
+
stories/**/*.stories.js # Storybook stories
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 新增“对外组件”的推荐流程
|
|
33
|
+
|
|
34
|
+
1. 建目录:`packages/components/src/<ComponentName>/src/<ComponentName>.vue`
|
|
35
|
+
|
|
36
|
+
2. 写导出文件:`packages/components/src/<ComponentName>/index.js`
|
|
37
|
+
|
|
38
|
+
推荐模板:
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
import { withInstall } from '@gsc-basic/utils';
|
|
42
|
+
import Comp from './src/<ComponentName>.vue';
|
|
43
|
+
|
|
44
|
+
export const GscComponentName = withInstall(Comp);
|
|
45
|
+
export default GscComponentName;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
3. 在 `packages/components/src/index.js` 里 re-export:
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
export * from './<ComponentName>';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
4. 增加 Storybook:`packages/components/stories/<ComponentName>.stories.js`
|
|
55
|
+
|
|
56
|
+
## Storybook / stories 编写规范
|
|
57
|
+
|
|
58
|
+
- stories 目录:`packages/components/stories/**/*.stories.js`
|
|
59
|
+
- 组件库对外组件:推荐从 `@gsc-basic/components` 引入(走真实导出路径)
|
package/dist/es/index.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import * as e from "./src/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { default as a } from "./src/locale/lang/zh-CN.js";
|
|
3
|
+
import { default as s } from "./src/locale/lang/en-US.js";
|
|
4
|
+
import { default as d } from "./src/locale/lang/ja-JP.js";
|
|
5
|
+
import { configProviderContextKey as p, defaultInitialZIndex as m, defaultNamespace as u, localeContextKey as C, sizeInjectionKey as G, zIndexContextKey as g } from "./src/ConfigProvider/src/constants.js";
|
|
6
|
+
import { provideGlobalConfig as b, useGlobalComponentSettings as I, useGlobalConfig as K } from "./src/ConfigProvider/src/useGlobalConfig.js";
|
|
7
|
+
import { GscConfigProvider as S } from "./src/ConfigProvider/index.js";
|
|
8
|
+
import { GscCodeEditor as v } from "./src/CodeEditor/index.js";
|
|
9
|
+
import { GscScaleScreen as N } from "./src/ScaleScreen/index.js";
|
|
10
|
+
import { GscVideoBackground as k } from "./src/VideoBackground/index.js";
|
|
11
|
+
import { GscGrid as E } from "./src/Grid/index.js";
|
|
12
|
+
const n = {
|
|
13
|
+
install: (t) => {
|
|
14
|
+
for (const r in e) {
|
|
15
|
+
const o = e[r];
|
|
16
|
+
o && (typeof o == "function" || typeof o == "object") && "install" in o && t.use(o);
|
|
17
|
+
}
|
|
15
18
|
}
|
|
16
19
|
};
|
|
17
20
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
v as GscCodeEditor,
|
|
22
|
+
S as GscConfigProvider,
|
|
23
|
+
E as GscGrid,
|
|
24
|
+
N as GscScaleScreen,
|
|
25
|
+
k as GscVideoBackground,
|
|
26
|
+
p as configProviderContextKey,
|
|
27
|
+
n as default,
|
|
28
|
+
m as defaultInitialZIndex,
|
|
29
|
+
u as defaultNamespace,
|
|
30
|
+
s as enUS,
|
|
31
|
+
d as jaJP,
|
|
32
|
+
C as localeContextKey,
|
|
33
|
+
b as provideGlobalConfig,
|
|
34
|
+
G as sizeInjectionKey,
|
|
35
|
+
I as useGlobalComponentSettings,
|
|
36
|
+
K as useGlobalConfig,
|
|
37
|
+
g as zIndexContextKey,
|
|
38
|
+
a as zhCN
|
|
35
39
|
};
|
|
@@ -4,7 +4,7 @@ import { IndentContext as ie, getIndentation as ue, indentString as R, syntaxTre
|
|
|
4
4
|
import { NodeProp as F } from "../../../@lezer/common/dist/index.js";
|
|
5
5
|
const Ye = (e) => {
|
|
6
6
|
let { state: t } = e, r = t.doc.lineAt(t.selection.main.from), n = X(e.state, r.from);
|
|
7
|
-
return n.line ? Ze(e) : n.block ?
|
|
7
|
+
return n.line ? Ze(e) : n.block ? _e(e) : !1;
|
|
8
8
|
};
|
|
9
9
|
function Q(e, t) {
|
|
10
10
|
return ({ state: r, dispatch: n }) => {
|
|
@@ -22,7 +22,7 @@ const Ze = /* @__PURE__ */ Q(
|
|
|
22
22
|
fe,
|
|
23
23
|
0
|
|
24
24
|
/* CommentOption.Toggle */
|
|
25
|
-
),
|
|
25
|
+
), _e = /* @__PURE__ */ Q(
|
|
26
26
|
(e, t) => fe(e, t, et(t)),
|
|
27
27
|
0
|
|
28
28
|
/* CommentOption.Toggle */
|
|
@@ -32,7 +32,7 @@ function X(e, t) {
|
|
|
32
32
|
return r.length ? r[0] : {};
|
|
33
33
|
}
|
|
34
34
|
const M = 50;
|
|
35
|
-
function
|
|
35
|
+
function we(e, { open: t, close: r }, n, l) {
|
|
36
36
|
let o = e.sliceDoc(n - M, n), c = e.sliceDoc(l, l + M), s = /\s*$/.exec(o)[0].length, i = /^\s*/.exec(c)[0].length, f = o.length - s;
|
|
37
37
|
if (o.slice(f - t.length, f) == t && c.slice(i, i + r.length) == r)
|
|
38
38
|
return {
|
|
@@ -67,7 +67,7 @@ function fe(e, t, r = t.selection.ranges) {
|
|
|
67
67
|
let n = r.map((o) => X(t, o.from).block);
|
|
68
68
|
if (!n.every((o) => o))
|
|
69
69
|
return null;
|
|
70
|
-
let l = r.map((o, c) =>
|
|
70
|
+
let l = r.map((o, c) => we(t, n[c], o.from, o.to));
|
|
71
71
|
if (e != 2 && !l.every((o) => o))
|
|
72
72
|
return { changes: t.changes(r.map((o, c) => l[c] ? [] : [{ from: o.from, insert: n[c].open + " " }, { from: o.to, insert: " " + n[c].close }])) };
|
|
73
73
|
if (e != 1 && l.some((o) => o)) {
|
|
@@ -441,7 +441,7 @@ const be = (e) => Te(e, !1), Re = (e) => Te(e, !0);
|
|
|
441
441
|
function ve(e, t) {
|
|
442
442
|
return y(e, (r) => e.moveVertically(r, t, xe(e).height));
|
|
443
443
|
}
|
|
444
|
-
const j = (e) => ve(e, !1),
|
|
444
|
+
const j = (e) => ve(e, !1), _ = (e) => ve(e, !0), Tt = (e) => y(e, (t) => S(e, t, !0)), bt = (e) => y(e, (t) => S(e, t, !1)), Rt = (e) => y(e, (t) => S(e, t, !d(e))), vt = (e) => y(e, (t) => S(e, t, d(e))), It = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).from)), Ut = (e) => y(e, (t) => a.cursor(e.lineBlockAt(t.head).to)), w = ({ state: e, dispatch: t }) => (t(k(e, { anchor: 0 })), !0), ee = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.doc.length })), !0), te = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: 0 })), !0), ne = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: e.doc.length })), !0), Vt = ({ state: e, dispatch: t }) => (t(e.update({ selection: { anchor: 0, head: e.doc.length }, userEvent: "select" })), !0), Nt = ({ state: e, dispatch: t }) => {
|
|
445
445
|
let r = N(e).map(({ from: n, to: l }) => a.range(n, Math.min(l + 1, e.doc.length)));
|
|
446
446
|
return t(e.update({ selection: a.create(r), userEvent: "select" })), !0;
|
|
447
447
|
}, Pt = ({ state: e, dispatch: t }) => {
|
|
@@ -608,9 +608,15 @@ function Ge(e, t, r) {
|
|
|
608
608
|
if (e.readOnly)
|
|
609
609
|
return !1;
|
|
610
610
|
let n = [];
|
|
611
|
-
for (let
|
|
612
|
-
r ? n.push({ from:
|
|
613
|
-
|
|
611
|
+
for (let o of N(e))
|
|
612
|
+
r ? n.push({ from: o.from, insert: e.doc.slice(o.from, o.to) + e.lineBreak }) : n.push({ from: o.to, insert: e.lineBreak + e.doc.slice(o.from, o.to) });
|
|
613
|
+
let l = e.changes(n);
|
|
614
|
+
return t(e.update({
|
|
615
|
+
changes: l,
|
|
616
|
+
selection: e.selection.map(l, r ? 1 : -1),
|
|
617
|
+
scrollIntoView: !0,
|
|
618
|
+
userEvent: "input.copyline"
|
|
619
|
+
})), !0;
|
|
614
620
|
}
|
|
615
621
|
const Yt = ({ state: e, dispatch: t }) => Ge(e, t, !1), Zt = ({ state: e, dispatch: t }) => Ge(e, t, !0), jt = (e) => {
|
|
616
622
|
if (e.state.readOnly)
|
|
@@ -625,19 +631,19 @@ const Yt = ({ state: e, dispatch: t }) => Ge(e, t, !1), Zt = ({ state: e, dispat
|
|
|
625
631
|
}).map(r);
|
|
626
632
|
return e.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0;
|
|
627
633
|
};
|
|
628
|
-
function
|
|
634
|
+
function _t(e, t) {
|
|
629
635
|
if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1)))
|
|
630
636
|
return { from: t, to: t };
|
|
631
637
|
let r = W(e).resolveInner(t), n = r.childBefore(t), l = r.childAfter(t), o;
|
|
632
638
|
return n && l && n.to <= t && l.from >= t && (o = n.type.prop(F.closedBy)) && o.indexOf(l.name) > -1 && e.doc.lineAt(n.to).from == e.doc.lineAt(l.from).from && !/\S/.test(e.sliceDoc(n.to, l.from)) ? { from: n.to, to: l.from } : null;
|
|
633
639
|
}
|
|
634
|
-
const re = /* @__PURE__ */ Fe(!1),
|
|
640
|
+
const re = /* @__PURE__ */ Fe(!1), wt = /* @__PURE__ */ Fe(!0);
|
|
635
641
|
function Fe(e) {
|
|
636
642
|
return ({ state: t, dispatch: r }) => {
|
|
637
643
|
if (t.readOnly)
|
|
638
644
|
return !1;
|
|
639
645
|
let n = t.changeByRange((l) => {
|
|
640
|
-
let { from: o, to: c } = l, s = t.doc.lineAt(o), i = !e && o == c &&
|
|
646
|
+
let { from: o, to: c } = l, s = t.doc.lineAt(o), i = !e && o == c && _t(t, o);
|
|
641
647
|
e && (o = c = (c <= s.to ? s : t.doc.lineAt(c)).to);
|
|
642
648
|
let f = new ie(t, { simulateBreak: o, simulateDoubleBreak: !!i }), u = ue(f, o);
|
|
643
649
|
for (u == null && (u = $(/^\s*/.exec(t.doc.lineAt(o).text)[0], t.tabSize)); c < s.to && /\s/.test(s.text[c - s.from]); )
|
|
@@ -714,15 +720,15 @@ const en = ({ state: e, dispatch: t }) => {
|
|
|
714
720
|
{ key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: dt, shift: Mt, preventDefault: !0 },
|
|
715
721
|
{ mac: "Cmd-ArrowRight", run: Bt, shift: vt, preventDefault: !0 },
|
|
716
722
|
{ key: "ArrowUp", run: Se, shift: be, preventDefault: !0 },
|
|
717
|
-
{ mac: "Cmd-ArrowUp", run:
|
|
723
|
+
{ mac: "Cmd-ArrowUp", run: w, shift: te },
|
|
718
724
|
{ mac: "Ctrl-ArrowUp", run: Z, shift: j },
|
|
719
725
|
{ key: "ArrowDown", run: De, shift: Re, preventDefault: !0 },
|
|
720
726
|
{ mac: "Cmd-ArrowDown", run: ee, shift: ne },
|
|
721
|
-
{ mac: "Ctrl-ArrowDown", run: q, shift:
|
|
727
|
+
{ mac: "Ctrl-ArrowDown", run: q, shift: _ },
|
|
722
728
|
{ key: "PageUp", run: Z, shift: j },
|
|
723
|
-
{ key: "PageDown", run: q, shift:
|
|
729
|
+
{ key: "PageDown", run: q, shift: _ },
|
|
724
730
|
{ key: "Home", run: kt, shift: bt, preventDefault: !0 },
|
|
725
|
-
{ key: "Mod-Home", run:
|
|
731
|
+
{ key: "Mod-Home", run: w, shift: te },
|
|
726
732
|
{ key: "End", run: yt, shift: Tt, preventDefault: !0 },
|
|
727
733
|
{ key: "Mod-End", run: ee, shift: ne },
|
|
728
734
|
{ key: "Enter", run: re, shift: re },
|
|
@@ -743,7 +749,7 @@ const en = ({ state: e, dispatch: t }) => {
|
|
|
743
749
|
{ key: "Mod-Alt-ArrowUp", run: Jt },
|
|
744
750
|
{ key: "Mod-Alt-ArrowDown", run: Gt },
|
|
745
751
|
{ key: "Escape", run: Ft },
|
|
746
|
-
{ key: "Mod-Enter", run:
|
|
752
|
+
{ key: "Mod-Enter", run: wt },
|
|
747
753
|
{ key: "Alt-l", mac: "Ctrl-l", run: Nt },
|
|
748
754
|
{ key: "Mod-i", run: Pt, preventDefault: !0 },
|
|
749
755
|
{ key: "Mod-[", run: He },
|
|
@@ -763,7 +769,7 @@ export {
|
|
|
763
769
|
ye as cursorCharLeft,
|
|
764
770
|
ke as cursorCharRight,
|
|
765
771
|
ee as cursorDocEnd,
|
|
766
|
-
|
|
772
|
+
w as cursorDocStart,
|
|
767
773
|
ht as cursorGroupLeft,
|
|
768
774
|
dt as cursorGroupRight,
|
|
769
775
|
kt as cursorLineBoundaryBackward,
|
|
@@ -795,7 +801,7 @@ export {
|
|
|
795
801
|
ze as indentMore,
|
|
796
802
|
en as indentSelection,
|
|
797
803
|
hn as indentWithTab,
|
|
798
|
-
|
|
804
|
+
wt as insertBlankLine,
|
|
799
805
|
re as insertNewlineAndIndent,
|
|
800
806
|
rt as invertedEffects,
|
|
801
807
|
nt as isolateHistory,
|
|
@@ -819,7 +825,7 @@ export {
|
|
|
819
825
|
Ut as selectLineEnd,
|
|
820
826
|
It as selectLineStart,
|
|
821
827
|
be as selectLineUp,
|
|
822
|
-
|
|
828
|
+
_ as selectPageDown,
|
|
823
829
|
j as selectPageUp,
|
|
824
830
|
Pt as selectParentSyntax,
|
|
825
831
|
Et as selectSyntaxLeft,
|
|
@@ -828,7 +834,7 @@ export {
|
|
|
828
834
|
$t as splitLine,
|
|
829
835
|
rn as standardKeymap,
|
|
830
836
|
je as toggleBlockComment,
|
|
831
|
-
|
|
837
|
+
_e as toggleBlockCommentByLine,
|
|
832
838
|
Ye as toggleComment,
|
|
833
839
|
Ze as toggleLineComment,
|
|
834
840
|
tn as toggleTabFocusMode,
|