@jetlinks-web/components 2.1.2 → 2.2.0
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/es/EditTable/FormItem.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/MonacoEditor/Monaco.js +1 -9
- package/es/MonacoEditor/style/index.css +4 -0
- package/es/MonacoEditor/style/index.js +1 -0
- package/es/MonacoEditor/style/index.less +4 -0
- package/es/RadioButton/RadioButton.js +66 -0
- package/es/RadioButton/index.js +6 -0
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/style/index.css +4 -0
- package/es/style/index.less +1 -0
- package/es/style.js +2 -1
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/MonacoEditor/Monaco.js +1 -9
- package/lib/MonacoEditor/style/index.css +4 -0
- package/lib/MonacoEditor/style/index.js +3 -1
- package/lib/MonacoEditor/style/index.less +4 -0
- package/lib/RadioButton/RadioButton.js +66 -0
- package/lib/RadioButton/index.js +13 -0
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/style/components.less +1 -0
- package/lib/style/index.css +4 -0
- package/lib/style/index.less +1 -0
- package/lib/style.js +2 -1
- package/package.json +8 -8
- package/es/MonacoEditor/grammars.js +0 -125
- package/es/MonacoEditor/tips.js +0 -1056
- package/lib/MonacoEditor/grammars.js +0 -137
- package/lib/MonacoEditor/tips.js +0 -1062
package/es/EditTable/FormItem.js
CHANGED
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924739516"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
} */
|
|
7
7
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
8
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924738720"), n = n(), _popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
11
|
import { ref } from 'vue';
|
|
12
12
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -33,7 +33,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
33
33
|
"nextTick": "setup-const",
|
|
34
34
|
"monaco": "setup-const",
|
|
35
35
|
"omit": "setup-maybe-ref",
|
|
36
|
-
"loadGrammars": "setup-maybe-ref",
|
|
37
36
|
"props": "setup-reactive-const",
|
|
38
37
|
"emit": "setup-const",
|
|
39
38
|
"dom": "setup-ref",
|
|
@@ -52,7 +51,6 @@ import { openBlock as _openBlock, createElementBlock as _createElementBlock } fr
|
|
|
52
51
|
import { ref, onMounted, watch, onUnmounted, toRaw, nextTick } from 'vue';
|
|
53
52
|
import * as monaco from 'monaco-editor';
|
|
54
53
|
import { omit } from 'lodash-es';
|
|
55
|
-
import { loadGrammars } from './grammars';
|
|
56
54
|
const __sfc_main__ = Object.assign({
|
|
57
55
|
name: 'JMonacoEditor'
|
|
58
56
|
}, {
|
|
@@ -149,11 +147,6 @@ const __sfc_main__ = Object.assign({
|
|
|
149
147
|
});
|
|
150
148
|
onMounted(async () => {
|
|
151
149
|
const _model = monaco.editor.createModel(props.modelValue, props.language);
|
|
152
|
-
const defaultOptions = Object.assign({
|
|
153
|
-
suggest: {
|
|
154
|
-
preview: true,
|
|
155
|
-
},
|
|
156
|
-
}, omit(props.options, ['readOnly']));
|
|
157
150
|
instance.value = monaco.editor.create(dom.value, {
|
|
158
151
|
model: _model,
|
|
159
152
|
tabSize: 2,
|
|
@@ -161,9 +154,8 @@ const __sfc_main__ = Object.assign({
|
|
|
161
154
|
scrollBeyondLastLine: false,
|
|
162
155
|
theme: props.theme,
|
|
163
156
|
formatOnPaste: true,
|
|
164
|
-
...
|
|
157
|
+
...(omit(props.options, ['readOnly']) || {}),
|
|
165
158
|
});
|
|
166
|
-
loadGrammars(monaco, instance.value);
|
|
167
159
|
instance.value.onDidChangeModelContent(() => {
|
|
168
160
|
//
|
|
169
161
|
const value = toRaw(instance.value).getValue();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"value": "props",
|
|
3
|
+
"options": "props",
|
|
4
|
+
"columns": "props",
|
|
5
|
+
"props": "setup-reactive-const",
|
|
6
|
+
"emit": "setup-const",
|
|
7
|
+
"myValue": "setup-maybe-ref",
|
|
8
|
+
"styles": "setup-maybe-ref",
|
|
9
|
+
"onClick": "setup-const"
|
|
10
|
+
} */
|
|
11
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924739727"), n = n(), _popScopeId(), n);
|
|
13
|
+
const _hoisted_1 = ["onClick"];
|
|
14
|
+
const __sfc_main__ = Object.assign({
|
|
15
|
+
name: 'JRadioButton',
|
|
16
|
+
}, {
|
|
17
|
+
props: {
|
|
18
|
+
value: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: undefined
|
|
21
|
+
},
|
|
22
|
+
options: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => []
|
|
25
|
+
},
|
|
26
|
+
columns: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 3
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ['update:value'],
|
|
32
|
+
setup(__props, { emit: __emit }) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const emit = __emit;
|
|
35
|
+
const myValue = ref(props.value);
|
|
36
|
+
const styles = computed(() => {
|
|
37
|
+
return {
|
|
38
|
+
'grid-template-columns': `repeat(${props.columns}, 1fr)`
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
const onClick = (record) => {
|
|
42
|
+
if (myValue.value !== record.value) {
|
|
43
|
+
myValue.value = record.value;
|
|
44
|
+
emit('update:value', record.value);
|
|
45
|
+
emit('select', record.value);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
watch(() => props.value, () => {
|
|
49
|
+
myValue.value = props.value;
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
53
|
+
class: "radio-button",
|
|
54
|
+
style: _normalizeStyle(_unref(styles))
|
|
55
|
+
}, [
|
|
56
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
|
|
57
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
58
|
+
onClick: $event => (onClick(item)),
|
|
59
|
+
class: _normalizeClass(["radio-button-item", { 'active': _unref(myValue) === item.value }])
|
|
60
|
+
}, _toDisplayString(item.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1));
|
|
61
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
62
|
+
], 4 /* STYLE */));
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export default __sfc_main__;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} */
|
|
22
22
|
import { defineComponent as _defineComponent } from 'vue';
|
|
23
23
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
24
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924741250"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
78
78
|
} */
|
|
79
79
|
import { defineComponent as _defineComponent } from 'vue';
|
|
80
80
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
81
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924740375"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
} */
|
|
37
37
|
import { defineComponent as _defineComponent } from 'vue';
|
|
38
38
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
39
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924740471"), n = n(), _popScopeId(), n);
|
|
40
40
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
41
41
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
42
42
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
package/es/style/index.css
CHANGED
package/es/style/index.less
CHANGED
package/es/style.js
CHANGED
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924739491"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
} */
|
|
7
7
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
8
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924738728"), n = n(), _popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
11
|
import { ref } from 'vue';
|
|
12
12
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -33,7 +33,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
33
33
|
"nextTick": "setup-const",
|
|
34
34
|
"monaco": "setup-const",
|
|
35
35
|
"omit": "setup-maybe-ref",
|
|
36
|
-
"loadGrammars": "setup-maybe-ref",
|
|
37
36
|
"props": "setup-reactive-const",
|
|
38
37
|
"emit": "setup-const",
|
|
39
38
|
"dom": "setup-ref",
|
|
@@ -52,7 +51,6 @@ import { openBlock as _openBlock, createElementBlock as _createElementBlock } fr
|
|
|
52
51
|
import { ref, onMounted, watch, onUnmounted, toRaw, nextTick } from 'vue';
|
|
53
52
|
import * as monaco from 'monaco-editor';
|
|
54
53
|
import { omit } from 'lodash-es';
|
|
55
|
-
import { loadGrammars } from './grammars';
|
|
56
54
|
const __sfc_main__ = Object.assign({
|
|
57
55
|
name: 'JMonacoEditor'
|
|
58
56
|
}, {
|
|
@@ -149,11 +147,6 @@ const __sfc_main__ = Object.assign({
|
|
|
149
147
|
});
|
|
150
148
|
onMounted(async () => {
|
|
151
149
|
const _model = monaco.editor.createModel(props.modelValue, props.language);
|
|
152
|
-
const defaultOptions = Object.assign({
|
|
153
|
-
suggest: {
|
|
154
|
-
preview: true,
|
|
155
|
-
},
|
|
156
|
-
}, omit(props.options, ['readOnly']));
|
|
157
150
|
instance.value = monaco.editor.create(dom.value, {
|
|
158
151
|
model: _model,
|
|
159
152
|
tabSize: 2,
|
|
@@ -161,9 +154,8 @@ const __sfc_main__ = Object.assign({
|
|
|
161
154
|
scrollBeyondLastLine: false,
|
|
162
155
|
theme: props.theme,
|
|
163
156
|
formatOnPaste: true,
|
|
164
|
-
...
|
|
157
|
+
...(omit(props.options, ['readOnly']) || {}),
|
|
165
158
|
});
|
|
166
|
-
loadGrammars(monaco, instance.value);
|
|
167
159
|
instance.value.onDidChangeModelContent(() => {
|
|
168
160
|
//
|
|
169
161
|
const value = toRaw(instance.value).getValue();
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"value": "props",
|
|
3
|
+
"options": "props",
|
|
4
|
+
"columns": "props",
|
|
5
|
+
"props": "setup-reactive-const",
|
|
6
|
+
"emit": "setup-const",
|
|
7
|
+
"myValue": "setup-maybe-ref",
|
|
8
|
+
"styles": "setup-maybe-ref",
|
|
9
|
+
"onClick": "setup-const"
|
|
10
|
+
} */
|
|
11
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924739717"), n = n(), _popScopeId(), n);
|
|
13
|
+
const _hoisted_1 = ["onClick"];
|
|
14
|
+
const __sfc_main__ = Object.assign({
|
|
15
|
+
name: 'JRadioButton',
|
|
16
|
+
}, {
|
|
17
|
+
props: {
|
|
18
|
+
value: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: undefined
|
|
21
|
+
},
|
|
22
|
+
options: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => []
|
|
25
|
+
},
|
|
26
|
+
columns: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 3
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ['update:value'],
|
|
32
|
+
setup(__props, { emit: __emit }) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const emit = __emit;
|
|
35
|
+
const myValue = ref(props.value);
|
|
36
|
+
const styles = computed(() => {
|
|
37
|
+
return {
|
|
38
|
+
'grid-template-columns': `repeat(${props.columns}, 1fr)`
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
const onClick = (record) => {
|
|
42
|
+
if (myValue.value !== record.value) {
|
|
43
|
+
myValue.value = record.value;
|
|
44
|
+
emit('update:value', record.value);
|
|
45
|
+
emit('select', record.value);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
watch(() => props.value, () => {
|
|
49
|
+
myValue.value = props.value;
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
53
|
+
class: "radio-button",
|
|
54
|
+
style: _normalizeStyle(_unref(styles))
|
|
55
|
+
}, [
|
|
56
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
|
|
57
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
58
|
+
onClick: $event => (onClick(item)),
|
|
59
|
+
class: _normalizeClass(["radio-button-item", { 'active': _unref(myValue) === item.value }])
|
|
60
|
+
}, _toDisplayString(item.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1));
|
|
61
|
+
}), 256 /* UNKEYED_FRAGMENT */))
|
|
62
|
+
], 4 /* STYLE */));
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _RadioButton = _interopRequireDefault(require("./RadioButton.js"));
|
|
9
|
+
_RadioButton.default.install = function (app) {
|
|
10
|
+
app.component(_RadioButton.default.name, _RadioButton.default);
|
|
11
|
+
return app;
|
|
12
|
+
};
|
|
13
|
+
var _default = exports.default = _RadioButton.default;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} */
|
|
22
22
|
import { defineComponent as _defineComponent } from 'vue';
|
|
23
23
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
24
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924741261"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
78
78
|
} */
|
|
79
79
|
import { defineComponent as _defineComponent } from 'vue';
|
|
80
80
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
81
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924740311"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
} */
|
|
37
37
|
import { defineComponent as _defineComponent } from 'vue';
|
|
38
38
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
39
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1724924740452"), n = n(), _popScopeId(), n);
|
|
40
40
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
41
41
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
42
42
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
package/lib/style/index.css
CHANGED
package/lib/style/index.less
CHANGED
package/lib/style.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"@jetlinks-web",
|
|
9
|
+
"components"
|
|
10
|
+
],
|
|
8
11
|
"files": [
|
|
9
12
|
"lib",
|
|
10
13
|
"es"
|
|
@@ -19,11 +22,8 @@
|
|
|
19
22
|
"@vueuse/router": "^10.9.0",
|
|
20
23
|
"async-validator": "^4.2.5",
|
|
21
24
|
"echarts": "^5.4.3",
|
|
22
|
-
"monaco-editor": "^0.
|
|
23
|
-
"monaco-editor-textmate": "^4.0.0",
|
|
24
|
-
"monaco-textmate": "^3.0.1",
|
|
25
|
+
"monaco-editor": "^0.40.0",
|
|
25
26
|
"resize-observer-polyfill": "^1.5.1",
|
|
26
|
-
"shiki": "^0.14.6",
|
|
27
27
|
"sortablejs": "^1.15.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"webpack-merge": "^5.0.0",
|
|
141
141
|
"webpackbar": "^5.0.2",
|
|
142
142
|
"@jetlinks-web/constants": "^1.0.2",
|
|
143
|
-
"@jetlinks-web/
|
|
144
|
-
"@jetlinks-web/
|
|
143
|
+
"@jetlinks-web/utils": "^1.1.0",
|
|
144
|
+
"@jetlinks-web/hooks": "^1.0.13"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": {
|
|
147
147
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
3
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
-
import { wireTmGrammars } from "monaco-editor-textmate";
|
|
6
|
-
import { Registry } from "monaco-textmate";
|
|
7
|
-
import tsJson from 'shiki/languages/typescript.tmLanguage.json';
|
|
8
|
-
import jsJson from 'shiki/languages/javascript.tmLanguage.json';
|
|
9
|
-
import htmlJson from 'shiki/languages/html.tmLanguage.json';
|
|
10
|
-
import cssJson from 'shiki/languages/css.tmLanguage.json';
|
|
11
|
-
function dispatchGrammars(_x) {
|
|
12
|
-
return _dispatchGrammars.apply(this, arguments);
|
|
13
|
-
}
|
|
14
|
-
function _dispatchGrammars() {
|
|
15
|
-
_dispatchGrammars = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(scopeName) {
|
|
16
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17
|
-
while (1) switch (_context.prev = _context.next) {
|
|
18
|
-
case 0:
|
|
19
|
-
_context.t0 = scopeName;
|
|
20
|
-
_context.next = _context.t0 === "source.js" ? 3 : _context.t0 === "source.ts" ? 4 : _context.t0 === "source.js" ? 5 : _context.t0 === "text.html.basic" ? 6 : _context.t0 === "source.css" ? 7 : 8;
|
|
21
|
-
break;
|
|
22
|
-
case 3:
|
|
23
|
-
return _context.abrupt("return", {
|
|
24
|
-
format: "json",
|
|
25
|
-
content: import('shiki/languages/vue.tmLanguage.json')
|
|
26
|
-
});
|
|
27
|
-
case 4:
|
|
28
|
-
return _context.abrupt("return", {
|
|
29
|
-
format: "json",
|
|
30
|
-
content: tsJson
|
|
31
|
-
});
|
|
32
|
-
case 5:
|
|
33
|
-
return _context.abrupt("return", {
|
|
34
|
-
format: "json",
|
|
35
|
-
content: jsJson
|
|
36
|
-
});
|
|
37
|
-
case 6:
|
|
38
|
-
return _context.abrupt("return", {
|
|
39
|
-
format: "json",
|
|
40
|
-
content: htmlJson
|
|
41
|
-
});
|
|
42
|
-
case 7:
|
|
43
|
-
return _context.abrupt("return", {
|
|
44
|
-
format: "json",
|
|
45
|
-
content: cssJson
|
|
46
|
-
});
|
|
47
|
-
case 8:
|
|
48
|
-
return _context.abrupt("return", {
|
|
49
|
-
format: "json",
|
|
50
|
-
content: {
|
|
51
|
-
scopeName: "source",
|
|
52
|
-
patterns: []
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
case 9:
|
|
56
|
-
case "end":
|
|
57
|
-
return _context.stop();
|
|
58
|
-
}
|
|
59
|
-
}, _callee);
|
|
60
|
-
}));
|
|
61
|
-
return _dispatchGrammars.apply(this, arguments);
|
|
62
|
-
}
|
|
63
|
-
export function loadGrammars(_x2, _x3) {
|
|
64
|
-
return _loadGrammars.apply(this, arguments);
|
|
65
|
-
}
|
|
66
|
-
function _loadGrammars() {
|
|
67
|
-
_loadGrammars = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(monaco, editor) {
|
|
68
|
-
var registry, grammars, _iterator, _step, lang;
|
|
69
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
70
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
71
|
-
case 0:
|
|
72
|
-
registry = new Registry({
|
|
73
|
-
getGrammarDefinition: function () {
|
|
74
|
-
var _getGrammarDefinition = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(scopeName) {
|
|
75
|
-
var dispatch;
|
|
76
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
77
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
78
|
-
case 0:
|
|
79
|
-
_context2.next = 2;
|
|
80
|
-
return dispatchGrammars(scopeName);
|
|
81
|
-
case 2:
|
|
82
|
-
dispatch = _context2.sent;
|
|
83
|
-
console.log('scopeName', scopeName, dispatch);
|
|
84
|
-
return _context2.abrupt("return", JSON.parse(JSON.stringify(dispatch)));
|
|
85
|
-
case 5:
|
|
86
|
-
case "end":
|
|
87
|
-
return _context2.stop();
|
|
88
|
-
}
|
|
89
|
-
}, _callee2);
|
|
90
|
-
}));
|
|
91
|
-
function getGrammarDefinition(_x4) {
|
|
92
|
-
return _getGrammarDefinition.apply(this, arguments);
|
|
93
|
-
}
|
|
94
|
-
return getGrammarDefinition;
|
|
95
|
-
}()
|
|
96
|
-
});
|
|
97
|
-
grammars = new Map();
|
|
98
|
-
grammars.set("vue", "source.js");
|
|
99
|
-
grammars.set("javascript", "source.js");
|
|
100
|
-
grammars.set("typescript", "source.ts");
|
|
101
|
-
grammars.set("css", "source.css");
|
|
102
|
-
grammars.set("html", "text.html.basic");
|
|
103
|
-
_iterator = _createForOfIteratorHelper(grammars.keys());
|
|
104
|
-
try {
|
|
105
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
106
|
-
lang = _step.value;
|
|
107
|
-
monaco.languages.register({
|
|
108
|
-
id: lang
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
} catch (err) {
|
|
112
|
-
_iterator.e(err);
|
|
113
|
-
} finally {
|
|
114
|
-
_iterator.f();
|
|
115
|
-
}
|
|
116
|
-
_context3.next = 11;
|
|
117
|
-
return wireTmGrammars(monaco, registry, grammars, editor);
|
|
118
|
-
case 11:
|
|
119
|
-
case "end":
|
|
120
|
-
return _context3.stop();
|
|
121
|
-
}
|
|
122
|
-
}, _callee3);
|
|
123
|
-
}));
|
|
124
|
-
return _loadGrammars.apply(this, arguments);
|
|
125
|
-
}
|