@vef-framework/components 1.0.126 → 1.0.128
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/cjs/index.cjs +2 -0
- package/cjs/vef-intellisense-code-editor/loader.cjs +97 -97
- package/cjs/vef-json-viewer/index.cjs +3 -1
- package/esm/index.js +1 -0
- package/esm/vef-access-denied/props.js +2 -0
- package/esm/vef-action-buttons/props.js +2 -0
- package/esm/vef-approval-flow-editor/props.js +2 -0
- package/esm/vef-area-chart/props.js +2 -0
- package/esm/vef-auto-sizer/props.js +2 -0
- package/esm/vef-avatar/props.js +2 -0
- package/esm/vef-avatar-group/props.js +2 -0
- package/esm/vef-badge/props.js +2 -0
- package/esm/vef-bar-chart/props.js +2 -0
- package/esm/vef-bool/props.js +2 -0
- package/esm/vef-breadcrumb/props.js +2 -0
- package/esm/vef-button/props.js +2 -0
- package/esm/vef-card/props.js +2 -0
- package/esm/vef-card-meta/props.js +2 -0
- package/esm/vef-chart-container/props.js +2 -0
- package/esm/vef-chart-legend-content/props.js +2 -0
- package/esm/vef-chart-tooltip-content/props.js +2 -0
- package/esm/vef-checkbox/props.js +2 -0
- package/esm/vef-code-editor/props.js +2 -0
- package/esm/vef-col/props.js +2 -0
- package/esm/vef-color-picker/props.js +2 -0
- package/esm/vef-compact/props.js +2 -0
- package/esm/vef-config-provider/props.js +2 -0
- package/esm/vef-container/props.js +2 -0
- package/esm/vef-crud-page/props.js +2 -0
- package/esm/vef-crud-page/types.js +2 -0
- package/esm/vef-data-grid/props.js +2 -0
- package/esm/vef-data-table/props.js +2 -0
- package/esm/vef-divider/props.js +2 -0
- package/esm/vef-drawer/components/button-props.js +2 -0
- package/esm/vef-drawer/props.js +2 -0
- package/esm/vef-dropdown/props.js +2 -0
- package/esm/vef-empty/props.js +2 -0
- package/esm/vef-empty-placeholder/props.js +2 -0
- package/esm/vef-error/props.js +2 -0
- package/esm/vef-filter/components/fields/props.js +2 -0
- package/esm/vef-filter/props.js +2 -0
- package/esm/vef-filter/types.js +2 -0
- package/esm/vef-flex/props.js +2 -0
- package/esm/vef-float-button/props.js +2 -0
- package/esm/vef-float-button-group/props.js +2 -0
- package/esm/vef-form/components/fields/props.js +2 -0
- package/esm/vef-form/props.js +2 -0
- package/esm/vef-form/types.js +2 -0
- package/esm/vef-form-drawer/props.js +2 -0
- package/esm/vef-form-modal/props.js +2 -0
- package/esm/vef-generic-select/props.js +2 -0
- package/esm/vef-grid-item/props.js +2 -0
- package/esm/vef-icon/props.js +2 -0
- package/esm/vef-icon-select/props.js +2 -0
- package/esm/vef-input/props.js +2 -0
- package/esm/vef-input-number/props.js +2 -0
- package/esm/vef-intellisense-code-editor/loader.js +97 -97
- package/esm/vef-intellisense-code-editor/props.js +2 -0
- package/esm/vef-json-viewer/index.js +3 -1
- package/esm/vef-json-viewer/props.js +2 -0
- package/esm/vef-layout/props.js +2 -0
- package/esm/vef-line-chart/props.js +2 -0
- package/esm/vef-loading-placeholder/props.js +2 -0
- package/esm/vef-login/props.js +2 -0
- package/esm/vef-menu/props.js +2 -0
- package/esm/vef-modal/components/button-props.js +2 -0
- package/esm/vef-modal/props.js +2 -0
- package/esm/vef-not-found/props.js +2 -0
- package/esm/vef-page/props.js +2 -0
- package/esm/vef-paragraph/props.js +2 -0
- package/esm/vef-password/props.js +2 -0
- package/esm/vef-pie-chart/props.js +2 -0
- package/esm/vef-popconfirm/props.js +2 -0
- package/esm/vef-popover/props.js +2 -0
- package/esm/vef-radio/props.js +2 -0
- package/esm/vef-rate/props.js +2 -0
- package/esm/vef-responsive-container/props.js +2 -0
- package/esm/vef-responsive-item/props.js +2 -0
- package/esm/vef-ribbon/props.js +2 -0
- package/esm/vef-row/props.js +2 -0
- package/esm/vef-scroll-area/props.js +2 -0
- package/esm/vef-segment/props.js +2 -0
- package/esm/vef-select/props.js +2 -0
- package/esm/vef-slider/props.js +2 -0
- package/esm/vef-sortable-list/props.js +2 -0
- package/esm/vef-space/props.js +2 -0
- package/esm/vef-spin/props.js +2 -0
- package/esm/vef-splitter/props.js +2 -0
- package/esm/vef-splitter-panel/props.js +2 -0
- package/esm/vef-status/props.js +2 -0
- package/esm/vef-table/components/columns/props.js +2 -0
- package/esm/vef-table/props.js +2 -0
- package/esm/vef-table/types.js +2 -0
- package/esm/vef-tabs/props.js +2 -0
- package/esm/vef-tag/props.js +2 -0
- package/esm/vef-temporal-picker/props.js +2 -0
- package/esm/vef-text/props.js +2 -0
- package/esm/vef-textarea/props.js +2 -0
- package/esm/vef-title/props.js +2 -0
- package/esm/vef-tooltip/props.js +2 -0
- package/esm/vef-tree-select/props.js +2 -0
- package/esm/vef-virtual-grid/props.js +2 -0
- package/esm/vef-virtual-list/props.js +2 -0
- package/package.json +4 -4
- package/types/index.d.ts +1 -0
package/cjs/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ var index$G = require('./vef-icon-select/index.cjs');
|
|
|
49
49
|
var index$H = require('./vef-input/index.cjs');
|
|
50
50
|
var index$I = require('./vef-input-number/index.cjs');
|
|
51
51
|
var index$J = require('./vef-intellisense-code-editor/index.cjs');
|
|
52
|
+
var loader = require('./vef-intellisense-code-editor/loader.cjs');
|
|
52
53
|
var index$K = require('./vef-json-viewer/index.cjs');
|
|
53
54
|
var index$L = require('./vef-layout/index.cjs');
|
|
54
55
|
var index$M = require('./vef-line-chart/index.cjs');
|
|
@@ -145,6 +146,7 @@ exports.VefIconSelect = index$G.default;
|
|
|
145
146
|
exports.VefInput = index$H.default;
|
|
146
147
|
exports.VefInputNumber = index$I.default;
|
|
147
148
|
exports.VefIntellisenseCodeEditor = index$J.default;
|
|
149
|
+
exports.initializeIntellisenseCodeEditor = loader.initializeIntellisenseCodeEditor;
|
|
148
150
|
exports.VefJsonViewer = index$K.default;
|
|
149
151
|
exports.VefLayout = index$L.default;
|
|
150
152
|
exports.VefLineChart = index$M.default;
|
|
@@ -30,104 +30,104 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
var monaco__namespace = /*#__PURE__*/_interopNamespaceDefault(monaco);
|
|
31
31
|
|
|
32
32
|
"use strict";
|
|
33
|
-
self.MonacoEnvironment = {
|
|
34
|
-
getWorker(_, label) {
|
|
35
|
-
if (label === "json") {
|
|
36
|
-
return new JsonWorker();
|
|
37
|
-
}
|
|
38
|
-
if (label === "css" || label === "scss" || label === "less") {
|
|
39
|
-
return new CssWorker();
|
|
40
|
-
}
|
|
41
|
-
if (label === "html" || label === "handlebars" || label === "razor") {
|
|
42
|
-
return new HtmlWorker();
|
|
43
|
-
}
|
|
44
|
-
if (label === "typescript" || label === "javascript") {
|
|
45
|
-
return new TsWorker();
|
|
46
|
-
}
|
|
47
|
-
return new EditorWorker();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
monaco__namespace.editor.defineTheme("github-light", githubLight.default);
|
|
51
|
-
monaco__namespace.languages.typescript.typescriptDefaults.setInlayHintsOptions({
|
|
52
|
-
includeInlayVariableTypeHints: true,
|
|
53
|
-
includeInlayEnumMemberValueHints: true,
|
|
54
|
-
includeInlayFunctionParameterTypeHints: true,
|
|
55
|
-
includeInlayPropertyDeclarationTypeHints: true,
|
|
56
|
-
includeInlayFunctionLikeReturnTypeHints: true,
|
|
57
|
-
includeInlayParameterNameHints: "all",
|
|
58
|
-
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
59
|
-
});
|
|
60
|
-
monaco__namespace.languages.typescript.typescriptDefaults.setEagerModelSync(true);
|
|
61
|
-
monaco__namespace.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
|
62
|
-
noSemanticValidation: false,
|
|
63
|
-
noSuggestionDiagnostics: false,
|
|
64
|
-
noSyntaxValidation: false,
|
|
65
|
-
onlyVisible: false
|
|
66
|
-
});
|
|
67
|
-
monaco__namespace.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
68
|
-
target: monaco__namespace.languages.typescript.ScriptTarget.ES2020,
|
|
69
|
-
lib: ["ES2020"],
|
|
70
|
-
module: monaco__namespace.languages.typescript.ModuleKind.ESNext,
|
|
71
|
-
moduleResolution: monaco__namespace.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
72
|
-
jsx: monaco__namespace.languages.typescript.JsxEmit.React,
|
|
73
|
-
strict: true,
|
|
74
|
-
skipLibCheck: true,
|
|
75
|
-
esModuleInterop: true,
|
|
76
|
-
noEmit: true,
|
|
77
|
-
baseUrl: ".",
|
|
78
|
-
noFallthroughCasesInSwitch: true,
|
|
79
|
-
allowSyntheticDefaultImports: true
|
|
80
|
-
});
|
|
81
|
-
monaco__namespace.languages.typescript.javascriptDefaults.setModeConfiguration({
|
|
82
|
-
inlayHints: true,
|
|
83
|
-
codeActions: true,
|
|
84
|
-
completionItems: true,
|
|
85
|
-
definitions: true,
|
|
86
|
-
diagnostics: true,
|
|
87
|
-
documentHighlights: true,
|
|
88
|
-
documentSymbols: true,
|
|
89
|
-
hovers: true,
|
|
90
|
-
references: true,
|
|
91
|
-
onTypeFormattingEdits: true,
|
|
92
|
-
rename: true,
|
|
93
|
-
signatureHelp: true,
|
|
94
|
-
documentRangeFormattingEdits: true
|
|
95
|
-
});
|
|
96
|
-
monaco__namespace.languages.typescript.javascriptDefaults.setInlayHintsOptions({
|
|
97
|
-
includeInlayVariableTypeHints: true,
|
|
98
|
-
includeInlayEnumMemberValueHints: true,
|
|
99
|
-
includeInlayFunctionParameterTypeHints: true,
|
|
100
|
-
includeInlayPropertyDeclarationTypeHints: true,
|
|
101
|
-
includeInlayFunctionLikeReturnTypeHints: true,
|
|
102
|
-
includeInlayParameterNameHints: "all",
|
|
103
|
-
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
104
|
-
});
|
|
105
|
-
monaco__namespace.languages.typescript.javascriptDefaults.setEagerModelSync(true);
|
|
106
|
-
monaco__namespace.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
107
|
-
noSemanticValidation: false,
|
|
108
|
-
noSuggestionDiagnostics: false,
|
|
109
|
-
noSyntaxValidation: false,
|
|
110
|
-
onlyVisible: false
|
|
111
|
-
});
|
|
112
|
-
monaco__namespace.languages.typescript.javascriptDefaults.setCompilerOptions({
|
|
113
|
-
target: monaco__namespace.languages.typescript.ScriptTarget.ES2020,
|
|
114
|
-
lib: ["ES2020"],
|
|
115
|
-
module: monaco__namespace.languages.typescript.ModuleKind.ESNext,
|
|
116
|
-
moduleResolution: monaco__namespace.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
117
|
-
jsx: monaco__namespace.languages.typescript.JsxEmit.React,
|
|
118
|
-
strict: true,
|
|
119
|
-
skipLibCheck: true,
|
|
120
|
-
esModuleInterop: true,
|
|
121
|
-
noEmit: true,
|
|
122
|
-
allowJs: true,
|
|
123
|
-
baseUrl: ".",
|
|
124
|
-
noFallthroughCasesInSwitch: true,
|
|
125
|
-
allowSyntheticDefaultImports: true
|
|
126
|
-
});
|
|
127
|
-
monaco__namespace.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
128
|
-
validate: true
|
|
129
|
-
});
|
|
130
33
|
function initializeIntellisenseCodeEditor() {
|
|
34
|
+
self.MonacoEnvironment = {
|
|
35
|
+
getWorker(_, label) {
|
|
36
|
+
if (label === "json") {
|
|
37
|
+
return new JsonWorker();
|
|
38
|
+
}
|
|
39
|
+
if (label === "css" || label === "scss" || label === "less") {
|
|
40
|
+
return new CssWorker();
|
|
41
|
+
}
|
|
42
|
+
if (label === "html" || label === "handlebars" || label === "razor") {
|
|
43
|
+
return new HtmlWorker();
|
|
44
|
+
}
|
|
45
|
+
if (label === "typescript" || label === "javascript") {
|
|
46
|
+
return new TsWorker();
|
|
47
|
+
}
|
|
48
|
+
return new EditorWorker();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
monaco__namespace.editor.defineTheme("github-light", githubLight.default);
|
|
52
|
+
monaco__namespace.languages.typescript.typescriptDefaults.setInlayHintsOptions({
|
|
53
|
+
includeInlayVariableTypeHints: true,
|
|
54
|
+
includeInlayEnumMemberValueHints: true,
|
|
55
|
+
includeInlayFunctionParameterTypeHints: true,
|
|
56
|
+
includeInlayPropertyDeclarationTypeHints: true,
|
|
57
|
+
includeInlayFunctionLikeReturnTypeHints: true,
|
|
58
|
+
includeInlayParameterNameHints: "all",
|
|
59
|
+
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
60
|
+
});
|
|
61
|
+
monaco__namespace.languages.typescript.typescriptDefaults.setEagerModelSync(true);
|
|
62
|
+
monaco__namespace.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
|
63
|
+
noSemanticValidation: false,
|
|
64
|
+
noSuggestionDiagnostics: false,
|
|
65
|
+
noSyntaxValidation: false,
|
|
66
|
+
onlyVisible: false
|
|
67
|
+
});
|
|
68
|
+
monaco__namespace.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
69
|
+
target: monaco__namespace.languages.typescript.ScriptTarget.ES2020,
|
|
70
|
+
lib: ["ES2020"],
|
|
71
|
+
module: monaco__namespace.languages.typescript.ModuleKind.ESNext,
|
|
72
|
+
moduleResolution: monaco__namespace.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
73
|
+
jsx: monaco__namespace.languages.typescript.JsxEmit.React,
|
|
74
|
+
strict: true,
|
|
75
|
+
skipLibCheck: true,
|
|
76
|
+
esModuleInterop: true,
|
|
77
|
+
noEmit: true,
|
|
78
|
+
baseUrl: ".",
|
|
79
|
+
noFallthroughCasesInSwitch: true,
|
|
80
|
+
allowSyntheticDefaultImports: true
|
|
81
|
+
});
|
|
82
|
+
monaco__namespace.languages.typescript.javascriptDefaults.setModeConfiguration({
|
|
83
|
+
inlayHints: true,
|
|
84
|
+
codeActions: true,
|
|
85
|
+
completionItems: true,
|
|
86
|
+
definitions: true,
|
|
87
|
+
diagnostics: true,
|
|
88
|
+
documentHighlights: true,
|
|
89
|
+
documentSymbols: true,
|
|
90
|
+
hovers: true,
|
|
91
|
+
references: true,
|
|
92
|
+
onTypeFormattingEdits: true,
|
|
93
|
+
rename: true,
|
|
94
|
+
signatureHelp: true,
|
|
95
|
+
documentRangeFormattingEdits: true
|
|
96
|
+
});
|
|
97
|
+
monaco__namespace.languages.typescript.javascriptDefaults.setInlayHintsOptions({
|
|
98
|
+
includeInlayVariableTypeHints: true,
|
|
99
|
+
includeInlayEnumMemberValueHints: true,
|
|
100
|
+
includeInlayFunctionParameterTypeHints: true,
|
|
101
|
+
includeInlayPropertyDeclarationTypeHints: true,
|
|
102
|
+
includeInlayFunctionLikeReturnTypeHints: true,
|
|
103
|
+
includeInlayParameterNameHints: "all",
|
|
104
|
+
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
105
|
+
});
|
|
106
|
+
monaco__namespace.languages.typescript.javascriptDefaults.setEagerModelSync(true);
|
|
107
|
+
monaco__namespace.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
108
|
+
noSemanticValidation: false,
|
|
109
|
+
noSuggestionDiagnostics: false,
|
|
110
|
+
noSyntaxValidation: false,
|
|
111
|
+
onlyVisible: false
|
|
112
|
+
});
|
|
113
|
+
monaco__namespace.languages.typescript.javascriptDefaults.setCompilerOptions({
|
|
114
|
+
target: monaco__namespace.languages.typescript.ScriptTarget.ES2020,
|
|
115
|
+
lib: ["ES2020"],
|
|
116
|
+
module: monaco__namespace.languages.typescript.ModuleKind.ESNext,
|
|
117
|
+
moduleResolution: monaco__namespace.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
118
|
+
jsx: monaco__namespace.languages.typescript.JsxEmit.React,
|
|
119
|
+
strict: true,
|
|
120
|
+
skipLibCheck: true,
|
|
121
|
+
esModuleInterop: true,
|
|
122
|
+
noEmit: true,
|
|
123
|
+
allowJs: true,
|
|
124
|
+
baseUrl: ".",
|
|
125
|
+
noFallthroughCasesInSwitch: true,
|
|
126
|
+
allowSyntheticDefaultImports: true
|
|
127
|
+
});
|
|
128
|
+
monaco__namespace.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
129
|
+
validate: true
|
|
130
|
+
});
|
|
131
131
|
react.loader.config({
|
|
132
132
|
"vs/nls": {
|
|
133
133
|
availableLanguages: {
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
|
-
var
|
|
7
|
+
var JsonViewerModule = require('@microlink/react-json-view');
|
|
8
|
+
var shared = require('@vef-framework/shared');
|
|
8
9
|
|
|
9
10
|
"use strict";
|
|
11
|
+
const JsonViewer = shared.unwrapModule(JsonViewerModule);
|
|
10
12
|
function VefJsonViewer({
|
|
11
13
|
data,
|
|
12
14
|
sortKeys = false,
|
package/esm/index.js
CHANGED
|
@@ -48,6 +48,7 @@ export { default as VefIconSelect } from './vef-icon-select/index.js';
|
|
|
48
48
|
export { default as VefInput } from './vef-input/index.js';
|
|
49
49
|
export { default as VefInputNumber } from './vef-input-number/index.js';
|
|
50
50
|
export { default as VefIntellisenseCodeEditor } from './vef-intellisense-code-editor/index.js';
|
|
51
|
+
export { initializeIntellisenseCodeEditor } from './vef-intellisense-code-editor/loader.js';
|
|
51
52
|
export { default as VefJsonViewer } from './vef-json-viewer/index.js';
|
|
52
53
|
export { default as VefLayout } from './vef-layout/index.js';
|
|
53
54
|
export { default as VefLineChart } from './vef-line-chart/index.js';
|
|
@@ -9,104 +9,104 @@ import TsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker'
|
|
|
9
9
|
import github_light_default from './themes/github-light.json.js';
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
|
-
self.MonacoEnvironment = {
|
|
13
|
-
getWorker(_, label) {
|
|
14
|
-
if (label === "json") {
|
|
15
|
-
return new JsonWorker();
|
|
16
|
-
}
|
|
17
|
-
if (label === "css" || label === "scss" || label === "less") {
|
|
18
|
-
return new CssWorker();
|
|
19
|
-
}
|
|
20
|
-
if (label === "html" || label === "handlebars" || label === "razor") {
|
|
21
|
-
return new HtmlWorker();
|
|
22
|
-
}
|
|
23
|
-
if (label === "typescript" || label === "javascript") {
|
|
24
|
-
return new TsWorker();
|
|
25
|
-
}
|
|
26
|
-
return new EditorWorker();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
monaco.editor.defineTheme("github-light", github_light_default);
|
|
30
|
-
monaco.languages.typescript.typescriptDefaults.setInlayHintsOptions({
|
|
31
|
-
includeInlayVariableTypeHints: true,
|
|
32
|
-
includeInlayEnumMemberValueHints: true,
|
|
33
|
-
includeInlayFunctionParameterTypeHints: true,
|
|
34
|
-
includeInlayPropertyDeclarationTypeHints: true,
|
|
35
|
-
includeInlayFunctionLikeReturnTypeHints: true,
|
|
36
|
-
includeInlayParameterNameHints: "all",
|
|
37
|
-
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
38
|
-
});
|
|
39
|
-
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
|
|
40
|
-
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
|
41
|
-
noSemanticValidation: false,
|
|
42
|
-
noSuggestionDiagnostics: false,
|
|
43
|
-
noSyntaxValidation: false,
|
|
44
|
-
onlyVisible: false
|
|
45
|
-
});
|
|
46
|
-
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
47
|
-
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
48
|
-
lib: ["ES2020"],
|
|
49
|
-
module: monaco.languages.typescript.ModuleKind.ESNext,
|
|
50
|
-
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
51
|
-
jsx: monaco.languages.typescript.JsxEmit.React,
|
|
52
|
-
strict: true,
|
|
53
|
-
skipLibCheck: true,
|
|
54
|
-
esModuleInterop: true,
|
|
55
|
-
noEmit: true,
|
|
56
|
-
baseUrl: ".",
|
|
57
|
-
noFallthroughCasesInSwitch: true,
|
|
58
|
-
allowSyntheticDefaultImports: true
|
|
59
|
-
});
|
|
60
|
-
monaco.languages.typescript.javascriptDefaults.setModeConfiguration({
|
|
61
|
-
inlayHints: true,
|
|
62
|
-
codeActions: true,
|
|
63
|
-
completionItems: true,
|
|
64
|
-
definitions: true,
|
|
65
|
-
diagnostics: true,
|
|
66
|
-
documentHighlights: true,
|
|
67
|
-
documentSymbols: true,
|
|
68
|
-
hovers: true,
|
|
69
|
-
references: true,
|
|
70
|
-
onTypeFormattingEdits: true,
|
|
71
|
-
rename: true,
|
|
72
|
-
signatureHelp: true,
|
|
73
|
-
documentRangeFormattingEdits: true
|
|
74
|
-
});
|
|
75
|
-
monaco.languages.typescript.javascriptDefaults.setInlayHintsOptions({
|
|
76
|
-
includeInlayVariableTypeHints: true,
|
|
77
|
-
includeInlayEnumMemberValueHints: true,
|
|
78
|
-
includeInlayFunctionParameterTypeHints: true,
|
|
79
|
-
includeInlayPropertyDeclarationTypeHints: true,
|
|
80
|
-
includeInlayFunctionLikeReturnTypeHints: true,
|
|
81
|
-
includeInlayParameterNameHints: "all",
|
|
82
|
-
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
83
|
-
});
|
|
84
|
-
monaco.languages.typescript.javascriptDefaults.setEagerModelSync(true);
|
|
85
|
-
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
86
|
-
noSemanticValidation: false,
|
|
87
|
-
noSuggestionDiagnostics: false,
|
|
88
|
-
noSyntaxValidation: false,
|
|
89
|
-
onlyVisible: false
|
|
90
|
-
});
|
|
91
|
-
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
|
|
92
|
-
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
93
|
-
lib: ["ES2020"],
|
|
94
|
-
module: monaco.languages.typescript.ModuleKind.ESNext,
|
|
95
|
-
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
96
|
-
jsx: monaco.languages.typescript.JsxEmit.React,
|
|
97
|
-
strict: true,
|
|
98
|
-
skipLibCheck: true,
|
|
99
|
-
esModuleInterop: true,
|
|
100
|
-
noEmit: true,
|
|
101
|
-
allowJs: true,
|
|
102
|
-
baseUrl: ".",
|
|
103
|
-
noFallthroughCasesInSwitch: true,
|
|
104
|
-
allowSyntheticDefaultImports: true
|
|
105
|
-
});
|
|
106
|
-
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
107
|
-
validate: true
|
|
108
|
-
});
|
|
109
12
|
function initializeIntellisenseCodeEditor() {
|
|
13
|
+
self.MonacoEnvironment = {
|
|
14
|
+
getWorker(_, label) {
|
|
15
|
+
if (label === "json") {
|
|
16
|
+
return new JsonWorker();
|
|
17
|
+
}
|
|
18
|
+
if (label === "css" || label === "scss" || label === "less") {
|
|
19
|
+
return new CssWorker();
|
|
20
|
+
}
|
|
21
|
+
if (label === "html" || label === "handlebars" || label === "razor") {
|
|
22
|
+
return new HtmlWorker();
|
|
23
|
+
}
|
|
24
|
+
if (label === "typescript" || label === "javascript") {
|
|
25
|
+
return new TsWorker();
|
|
26
|
+
}
|
|
27
|
+
return new EditorWorker();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
monaco.editor.defineTheme("github-light", github_light_default);
|
|
31
|
+
monaco.languages.typescript.typescriptDefaults.setInlayHintsOptions({
|
|
32
|
+
includeInlayVariableTypeHints: true,
|
|
33
|
+
includeInlayEnumMemberValueHints: true,
|
|
34
|
+
includeInlayFunctionParameterTypeHints: true,
|
|
35
|
+
includeInlayPropertyDeclarationTypeHints: true,
|
|
36
|
+
includeInlayFunctionLikeReturnTypeHints: true,
|
|
37
|
+
includeInlayParameterNameHints: "all",
|
|
38
|
+
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
39
|
+
});
|
|
40
|
+
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
|
|
41
|
+
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
|
|
42
|
+
noSemanticValidation: false,
|
|
43
|
+
noSuggestionDiagnostics: false,
|
|
44
|
+
noSyntaxValidation: false,
|
|
45
|
+
onlyVisible: false
|
|
46
|
+
});
|
|
47
|
+
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
48
|
+
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
49
|
+
lib: ["ES2020"],
|
|
50
|
+
module: monaco.languages.typescript.ModuleKind.ESNext,
|
|
51
|
+
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
52
|
+
jsx: monaco.languages.typescript.JsxEmit.React,
|
|
53
|
+
strict: true,
|
|
54
|
+
skipLibCheck: true,
|
|
55
|
+
esModuleInterop: true,
|
|
56
|
+
noEmit: true,
|
|
57
|
+
baseUrl: ".",
|
|
58
|
+
noFallthroughCasesInSwitch: true,
|
|
59
|
+
allowSyntheticDefaultImports: true
|
|
60
|
+
});
|
|
61
|
+
monaco.languages.typescript.javascriptDefaults.setModeConfiguration({
|
|
62
|
+
inlayHints: true,
|
|
63
|
+
codeActions: true,
|
|
64
|
+
completionItems: true,
|
|
65
|
+
definitions: true,
|
|
66
|
+
diagnostics: true,
|
|
67
|
+
documentHighlights: true,
|
|
68
|
+
documentSymbols: true,
|
|
69
|
+
hovers: true,
|
|
70
|
+
references: true,
|
|
71
|
+
onTypeFormattingEdits: true,
|
|
72
|
+
rename: true,
|
|
73
|
+
signatureHelp: true,
|
|
74
|
+
documentRangeFormattingEdits: true
|
|
75
|
+
});
|
|
76
|
+
monaco.languages.typescript.javascriptDefaults.setInlayHintsOptions({
|
|
77
|
+
includeInlayVariableTypeHints: true,
|
|
78
|
+
includeInlayEnumMemberValueHints: true,
|
|
79
|
+
includeInlayFunctionParameterTypeHints: true,
|
|
80
|
+
includeInlayPropertyDeclarationTypeHints: true,
|
|
81
|
+
includeInlayFunctionLikeReturnTypeHints: true,
|
|
82
|
+
includeInlayParameterNameHints: "all",
|
|
83
|
+
includeInlayParameterNameHintsWhenArgumentMatchesName: true
|
|
84
|
+
});
|
|
85
|
+
monaco.languages.typescript.javascriptDefaults.setEagerModelSync(true);
|
|
86
|
+
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
87
|
+
noSemanticValidation: false,
|
|
88
|
+
noSuggestionDiagnostics: false,
|
|
89
|
+
noSyntaxValidation: false,
|
|
90
|
+
onlyVisible: false
|
|
91
|
+
});
|
|
92
|
+
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
|
|
93
|
+
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
94
|
+
lib: ["ES2020"],
|
|
95
|
+
module: monaco.languages.typescript.ModuleKind.ESNext,
|
|
96
|
+
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
|
|
97
|
+
jsx: monaco.languages.typescript.JsxEmit.React,
|
|
98
|
+
strict: true,
|
|
99
|
+
skipLibCheck: true,
|
|
100
|
+
esModuleInterop: true,
|
|
101
|
+
noEmit: true,
|
|
102
|
+
allowJs: true,
|
|
103
|
+
baseUrl: ".",
|
|
104
|
+
noFallthroughCasesInSwitch: true,
|
|
105
|
+
allowSyntheticDefaultImports: true
|
|
106
|
+
});
|
|
107
|
+
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
108
|
+
validate: true
|
|
109
|
+
});
|
|
110
110
|
loader.config({
|
|
111
111
|
"vs/nls": {
|
|
112
112
|
availableLanguages: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
|
-
import
|
|
3
|
+
import JsonViewerModule from '@microlink/react-json-view';
|
|
4
|
+
import { unwrapModule } from '@vef-framework/shared';
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
7
|
+
const JsonViewer = unwrapModule(JsonViewerModule);
|
|
6
8
|
function VefJsonViewer({
|
|
7
9
|
data,
|
|
8
10
|
sortKeys = false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.128",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Components fundamental to the VEF framework",
|
|
7
7
|
"author": "Venus",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@uiw/codemirror-extensions-langs": "^4.23.10",
|
|
49
49
|
"@uiw/codemirror-theme-material": "^4.23.10",
|
|
50
50
|
"@uiw/react-codemirror": "^4.23.10",
|
|
51
|
-
"@vef-framework/core": "1.0.
|
|
52
|
-
"@vef-framework/hooks": "1.0.
|
|
53
|
-
"@vef-framework/shared": "1.0.
|
|
51
|
+
"@vef-framework/core": "1.0.128",
|
|
52
|
+
"@vef-framework/hooks": "1.0.128",
|
|
53
|
+
"@vef-framework/shared": "1.0.128",
|
|
54
54
|
"@xyflow/react": "^12.4.4",
|
|
55
55
|
"clsx": "2.1.1",
|
|
56
56
|
"codemirror-json-schema": "^0.8.0",
|
package/types/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export { default as VefIconSelect, type VefIconSelectProps } from "./vef-icon-se
|
|
|
46
46
|
export { default as VefInput, type VefInputInstance, type VefInputProps } from "./vef-input";
|
|
47
47
|
export { default as VefInputNumber, type VefInputNumberInstance, type VefInputNumberProps } from "./vef-input-number";
|
|
48
48
|
export { default as VefIntellisenseCodeEditor, type LanguageName as IntellisenseCodeEditorLanguageName, type VefIntellisenseCodeEditorProps } from "./vef-intellisense-code-editor";
|
|
49
|
+
export { initializeIntellisenseCodeEditor } from "./vef-intellisense-code-editor/loader";
|
|
49
50
|
export { default as VefJsonViewer, type VefJsonViewerProps } from "./vef-json-viewer";
|
|
50
51
|
export { default as VefLayout, type VefLayoutProps } from "./vef-layout";
|
|
51
52
|
export { default as VefLineChart, type VefLineChartProps } from "./vef-line-chart";
|