@lingshugroup/web-plus 0.0.6-beta → 0.0.8-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/lib/packages/ls-components/components/jsonEditor/Index.vue/index2.cjs +1 -1
  2. package/lib/packages/ls-components/components/jsonEditor/Index.vue/index2.js +4 -4
  3. package/lib/packages/ls-components/components/jsonEditor/Index.vue/index2.js.br +0 -0
  4. package/lib/packages/ls-components/components/jsonEditor/Index.vue/index2.js.gz +0 -0
  5. package/package.json +116 -2
  6. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/__commonjsHelpers__-f3sTPFkQ/index.cjs +0 -1
  7. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/__commonjsHelpers__-f3sTPFkQ/index.js +0 -11
  8. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/full-width-button-handler-wnoSIg42/index.cjs +0 -1
  9. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/full-width-button-handler-wnoSIg42/index.js +0 -7
  10. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.cjs +0 -15
  11. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.js +0 -598
  12. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.js.br +0 -0
  13. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.js.gz +0 -0
  14. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/string-styles-MN5CgF9s/index.cjs +0 -117
  15. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/string-styles-MN5CgF9s/index.js +0 -121
  16. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/string-styles-MN5CgF9s/index.js.br +0 -0
  17. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/string-styles-MN5CgF9s/index.js.gz +0 -0
  18. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/styles-handler-G8NSk43t/index.cjs +0 -1
  19. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/styles-handler-G8NSk43t/index.js +0 -18
  20. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-jsoneditor-HKMtDzoB/index.cjs +0 -167
  21. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-jsoneditor-HKMtDzoB/index.js +0 -47804
  22. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-jsoneditor-HKMtDzoB/index.js.br +0 -0
  23. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-jsoneditor-HKMtDzoB/index.js.gz +0 -0
  24. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-picker-NKbIFE8h/index.cjs +0 -8
  25. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-picker-NKbIFE8h/index.js +0 -551
  26. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-picker-NKbIFE8h/index.js.br +0 -0
  27. package/lib/node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/vanilla-picker-NKbIFE8h/index.js.gz +0 -0
@@ -1 +1 @@
1
- "use strict";var v=Object.defineProperty;var u=(o,r)=>v(o,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../../node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.cjs"),y=require("../types/index.cjs"),_=require("../../_hooks/useNamespace/index.cjs"),b=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),V=e.defineComponent({name:"LSJsonEditor"}),q=e.defineComponent({...V,props:y.lsJsonEditorProps,setup(o,{expose:r}){const l=_.useNamespace("json-editor").b(),i=o,d=e.useAttrs(),c=e.ref({mode:"text",height:600,navigationBar:!1,readOnly:!0}),n=e.ref({}),s=e.ref(""),f=e.computed(()=>{const t=b.default(c.value,d);return typeof t["read-only"]<"u"&&(t.readOnly=t["read-only"]),typeof t["navigation-bar"]<"u"&&(t.navigationBar=t["navigation-bar"]),t.readOnly||(t.mode="tree",s.value="editor-status"),t});e.watch(()=>i.jsonValue,t=>{n.value=t},{immediate:!0,deep:!0});function m(){return n.value}return u(m,"getJsonValue"),r({getJsonValue:m}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l))},[e.createVNode(e.unref(g.default),e.mergeProps(e.unref(f),{modelValue:e.unref(n),"onUpdate:modelValue":a[0]||(a[0]=p=>e.isRef(n)?n.value=p:null),class:e.unref(s)}),null,16,["modelValue","class"])],2))}});exports.default=q;
1
+ "use strict";var v=Object.defineProperty;var u=(o,r)=>v(o,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("vue3-ts-jsoneditor"),y=require("../types/index.cjs"),_=require("../../_hooks/useNamespace/index.cjs"),b=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),V=e.defineComponent({name:"LSJsonEditor"}),q=e.defineComponent({...V,props:y.lsJsonEditorProps,setup(o,{expose:r}){const l=_.useNamespace("json-editor").b(),i=o,d=e.useAttrs(),c=e.ref({mode:"text",height:600,navigationBar:!1,readOnly:!0}),n=e.ref({}),s=e.ref(""),f=e.computed(()=>{const t=b.default(c.value,d);return typeof t["read-only"]<"u"&&(t.readOnly=t["read-only"]),typeof t["navigation-bar"]<"u"&&(t.navigationBar=t["navigation-bar"]),t.readOnly||(t.mode="tree",s.value="editor-status"),t});e.watch(()=>i.jsonValue,t=>{n.value=t},{immediate:!0,deep:!0});function m(){return n.value}return u(m,"getJsonValue"),r({getJsonValue:m}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l))},[e.createVNode(e.unref(g),e.mergeProps(e.unref(f),{modelValue:e.unref(n),"onUpdate:modelValue":a[0]||(a[0]=p=>e.isRef(n)?n.value=p:null),class:e.unref(s)}),null,16,["modelValue","class"])],2))}});exports.default=q;
@@ -1,7 +1,7 @@
1
1
  var y = Object.defineProperty;
2
2
  var i = (n, r) => y(n, "name", { value: r, configurable: !0 });
3
- import { defineComponent as d, useAttrs as V, ref as s, computed as _, watch as b, openBlock as x, createElementBlock as A, normalizeClass as B, unref as o, createVNode as C, mergeProps as E, isRef as j } from "vue";
4
- import J from "../../../../../node_modules/.pnpm/vue3-ts-jsoneditor@2.11.2_@lezer_common@1.2.2_typescript@5.5.4/node_modules/vue3-ts-jsoneditor/dist/index/index.js";
3
+ import { defineComponent as d, useAttrs as V, ref as s, computed as _, watch as b, openBlock as x, createElementBlock as A, normalizeClass as B, unref as o, createVNode as C, mergeProps as E, isRef as J } from "vue";
4
+ import j from "vue3-ts-jsoneditor";
5
5
  import { lsJsonEditorProps as O } from "../types/index.js";
6
6
  import { useNamespace as h } from "../../_hooks/useNamespace/index.js";
7
7
  import k from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
@@ -38,9 +38,9 @@ const N = d({
38
38
  }), (e, l) => (x(), A("div", {
39
39
  class: B(o(u))
40
40
  }, [
41
- C(o(J), E(o(p), {
41
+ C(o(j), E(o(p), {
42
42
  modelValue: o(t),
43
- "onUpdate:modelValue": l[0] || (l[0] = (g) => j(t) ? t.value = g : null),
43
+ "onUpdate:modelValue": l[0] || (l[0] = (g) => J(t) ? t.value = g : null),
44
44
  class: o(a)
45
45
  }), null, 16, ["modelValue", "class"])
46
46
  ], 2));
package/package.json CHANGED
@@ -1,11 +1,125 @@
1
1
  {
2
2
  "name": "@lingshugroup/web-plus",
3
- "version": "0.0.6-beta",
3
+ "version": "0.0.8-beta",
4
4
  "description": "零数科技前端UI组件库(Vue3)",
5
5
  "type": "module",
6
6
  "main": "./lib/index/index.cjs",
7
7
  "module": "./lib/index/index.js",
8
- "exports": "./build/exports.json",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./lib/index/index.js",
11
+ "require": "./lib/index/index.cjs"
12
+ },
13
+ "./directives": {
14
+ "import": "./lib/directives/index.js",
15
+ "require": "./lib/directives/index.cjs"
16
+ },
17
+ "./hooks": {
18
+ "import": "./lib/hooks/index.js",
19
+ "require": "./lib/hooks/index.cjs"
20
+ },
21
+ "./utils": {
22
+ "import": "./lib/utils/index.js",
23
+ "require": "./lib/utils/index.cjs"
24
+ },
25
+ "./backTop": {
26
+ "import": "./lib/backTop/index.js",
27
+ "require": "./lib/backTop/index.cjs"
28
+ },
29
+ "./bellMessage": {
30
+ "import": "./lib/bellMessage/index.js",
31
+ "require": "./lib/bellMessage/index.cjs"
32
+ },
33
+ "./breadcrumb": {
34
+ "import": "./lib/breadcrumb/index.js",
35
+ "require": "./lib/breadcrumb/index.cjs"
36
+ },
37
+ "./button": {
38
+ "import": "./lib/button/index.js",
39
+ "require": "./lib/button/index.cjs"
40
+ },
41
+ "./chart": {
42
+ "import": "./lib/chart/index.js",
43
+ "require": "./lib/chart/index.cjs"
44
+ },
45
+ "./confirm": {
46
+ "import": "./lib/confirm/index.js",
47
+ "require": "./lib/confirm/index.cjs"
48
+ },
49
+ "./containerBox": {
50
+ "import": "./lib/containerBox/index.js",
51
+ "require": "./lib/containerBox/index.cjs"
52
+ },
53
+ "./descriptions": {
54
+ "import": "./lib/descriptions/index.js",
55
+ "require": "./lib/descriptions/index.cjs"
56
+ },
57
+ "./dialog": {
58
+ "import": "./lib/dialog/index.js",
59
+ "require": "./lib/dialog/index.cjs"
60
+ },
61
+ "./editor": {
62
+ "import": "./lib/editor/index.js",
63
+ "require": "./lib/editor/index.cjs"
64
+ },
65
+ "./flowBox": {
66
+ "import": "./lib/flowBox/index.js",
67
+ "require": "./lib/flowBox/index.cjs"
68
+ },
69
+ "./form": {
70
+ "import": "./lib/form/index.js",
71
+ "require": "./lib/form/index.cjs"
72
+ },
73
+ "./icon": {
74
+ "import": "./lib/icon/index.js",
75
+ "require": "./lib/icon/index.cjs"
76
+ },
77
+ "./jsonEditor": {
78
+ "import": "./lib/jsonEditor/index.js",
79
+ "require": "./lib/jsonEditor/index.cjs"
80
+ },
81
+ "./layout": {
82
+ "import": "./lib/layout/index.js",
83
+ "require": "./lib/layout/index.cjs"
84
+ },
85
+ "./list": {
86
+ "import": "./lib/list/index.js",
87
+ "require": "./lib/list/index.cjs"
88
+ },
89
+ "./live": {
90
+ "import": "./lib/live/index.js",
91
+ "require": "./lib/live/index.cjs"
92
+ },
93
+ "./map": {
94
+ "import": "./lib/map/index.js",
95
+ "require": "./lib/map/index.cjs"
96
+ },
97
+ "./menu": {
98
+ "import": "./lib/menu/index.js",
99
+ "require": "./lib/menu/index.cjs"
100
+ },
101
+ "./preview": {
102
+ "import": "./lib/preview/index.js",
103
+ "require": "./lib/preview/index.cjs"
104
+ },
105
+ "./print": {
106
+ "import": "./lib/print/index.js",
107
+ "require": "./lib/print/index.cjs"
108
+ },
109
+ "./table": {
110
+ "import": "./lib/table/index.js",
111
+ "require": "./lib/table/index.cjs"
112
+ },
113
+ "./upload": {
114
+ "import": "./lib/upload/index.js",
115
+ "require": "./lib/upload/index.cjs"
116
+ },
117
+ "./tree": {
118
+ "import": "./lib/tree/index.js",
119
+ "require": "./lib/tree/index.cjs"
120
+ },
121
+ "./lib/index.css": "./lib/index.css"
122
+ },
9
123
  "scripts": {
10
124
  "dev": "vite",
11
125
  "build": "vite build",
@@ -1 +0,0 @@
1
- "use strict";var e=Object.defineProperty;var l=(o,t)=>e(o,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}l(a,"l");exports.c=u;exports.g=a;
@@ -1,11 +0,0 @@
1
- var a = Object.defineProperty;
2
- var l = (o, t) => a(o, "name", { value: t, configurable: !0 });
3
- var f = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function u(o) {
5
- return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
6
- }
7
- l(u, "l");
8
- export {
9
- f as c,
10
- u as g
11
- };
@@ -1 +0,0 @@
1
- "use strict";var o=Object.defineProperty;var t=(e,n)=>o(e,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=t(e=>window==null?void 0:window.document.querySelector(e),"t"),d=t(e=>window==null?void 0:window.document.createElement(e),"n");exports.createElement=d;exports.getElement=l;
@@ -1,7 +0,0 @@
1
- var o = Object.defineProperty;
2
- var n = (e, t) => o(e, "name", { value: t, configurable: !0 });
3
- const l = /* @__PURE__ */ n((e) => window == null ? void 0 : window.document.querySelector(e), "t"), w = /* @__PURE__ */ n((e) => window == null ? void 0 : window.document.createElement(e), "n");
4
- export {
5
- w as createElement,
6
- l as getElement
7
- };
@@ -1,15 +0,0 @@
1
- "use strict";var D=Object.defineProperty;var o=(a,s)=>D(a,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),K=["selection","mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","indentation","tabSize","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns","validator","onClassName","onRenderValue","onRenderMenu"],G=["selection","mode","mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","indentation","tabSize","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns","validator","parser","validationParser","pathParser","onClassName","onRenderValue","onRenderMenu"],X=o((a={},s)=>{const u={};for(const l of G){const v=s[l]!==void 0?s[l]:a[l];v!==void 0&&(u[l]=v)}return u},"de"),Y=`
2
- <svg
3
- class="fa-icon svelte-1dof0an"
4
- viewBox="0 0 1024 1024"
5
- version="1.1"
6
- xmlns="http://www.w3.org/2000/svg"
7
- p-id="1927" xmlns:xlink="http://www.w3.org/1999/xlink"
8
- width="24"
9
- height="24"
10
- >
11
- <path d="M63.989383 105.442494l0 268.396843c0 18.935258 15.368012 34.304294 34.304294 34.304294 18.936281 0 34.304294-15.369036 34.304294-34.304294L132.597971 180.156126l218.107483 218.176045c12.82919 12.830213 33.618679 12.830213 46.515407 0 12.830213-12.897751 12.830213-33.686217 0-46.51643l-218.176045-218.107483 193.683211 0c18.935258 0 34.304294-15.369036 34.304294-34.304294 0-18.935258-15.369036-34.304294-34.304294-34.304294L104.331183 65.09967C79.288834 65.09967 63.989383 77.999468 63.989383 105.442494L63.989383 105.442494z" p-id="1928" fill="#e6e6e6"></path><path d="M917.688719 65.09967 649.290853 65.09967c-18.935258 0-34.304294 15.369036-34.304294 34.304294 0 18.936281 15.369036 34.304294 34.304294 34.304294l193.683211 0-218.176045 218.107483c-12.830213 12.82919-12.830213 33.618679 0 46.51643 12.897751 12.830213 33.686217 12.830213 46.515407 0L889.420909 180.156126l0 193.683211c0 18.935258 15.369036 34.304294 34.304294 34.304294 18.936281 0 34.304294-15.369036 34.304294-34.304294L958.029496 105.442494C958.029496 77.999468 942.79963 65.09967 917.688719 65.09967L917.688719 65.09967z" p-id="1929" fill="#e6e6e6"></path>
12
- <path d="M104.331183 957.013353l268.397866 0c18.935258 0 34.304294-15.368012 34.304294-34.304294 0-18.936281-15.369036-34.304294-34.304294-34.304294L179.045839 888.404766l218.176045-218.107483c12.830213-12.82919 12.830213-33.618679 0-46.515407-12.897751-12.830213-33.686217-12.830213-46.515407 0l-218.107483 218.176045L132.598994 648.27471c0-18.935258-15.368012-34.304294-34.304294-34.304294-18.936281 0-34.304294 15.369036-34.304294 34.304294l0 268.397866C63.989383 944.115602 79.288834 957.013353 104.331183 957.013353L104.331183 957.013353z" p-id="1930" fill="#e6e6e6"></path>
13
- <path d="M958.029496 916.671553 958.029496 648.27471c0-18.935258-15.368012-34.304294-34.304294-34.304294-18.935258 0-34.304294 15.369036-34.304294 34.304294l0 193.683211L671.313425 623.781876c-12.82919-12.830213-33.618679-12.830213-46.515407 0-12.830213 12.897751-12.830213 33.686217 0 46.515407l218.176045 218.107483L649.290853 888.404766c-18.935258 0-34.304294 15.368012-34.304294 34.304294 0 18.936281 15.369036 34.304294 34.304294 34.304294l268.397866 0C942.79963 957.013353 958.029496 944.115602 958.029496 916.671553L958.029496 916.671553z" p-id="1931" fill="#e6e6e6"></path>
14
- </svg>
15
- `,M=o((a,s,u=!1)=>{const l=a&&typeof a[s]<"u";return!l&&u&&console.warn("Typeguard warn!!! The object has no property: ",s),l},"T"),Z=n.defineComponent({name:"JsonEditor",props:{modelValue:[Object,Array,Number,String,Boolean,String,null],value:[Object,Array,Number,String,Boolean,String,null],json:[Object,Array,Number,String,Boolean,null],text:String,jsonString:String,selection:{type:Object,default:null},mode:{type:String,default:"tree"},mainMenuBar:{type:Boolean,default:void 0},navigationBar:{type:Boolean,default:void 0},statusBar:{type:Boolean,default:void 0},askToFormat:{type:Boolean,default:void 0},readOnly:{type:Boolean,default:void 0},indentation:[String,Number],tabSize:Number,escapeControlCharacters:{type:Boolean,default:void 0},escapeUnicodeCharacters:{type:Boolean,default:void 0},flattenColumns:{type:Boolean,default:void 0},validator:Function,parser:Object,validationParser:Object,pathParser:Object,queryLanguagesIds:Array,queryLanguageId:String,onClassName:Function,onRenderValue:Function,onRenderMenu:Function,height:[String,Number],fullWidthButton:{type:Boolean,default:void 0},darkTheme:{type:Boolean,default:void 0}},emits:["update:modelValue","update:json","update:text","update:jsonString","update:selection","change","error","change-mode","update:mode","change-query-language","focus","blur"],setup(a,{expose:s,emit:u}){const l=n.inject("jsonEditorOptions",{}),v=n.ref(),d=n.ref(null),p=n.ref(!1),h=n.ref(!1),m=n.ref(!1),f=n.ref("tree"),r=n.ref(null),T=n.computed(()=>{const e=a.height||(l==null?void 0:l.height);return e&&!p.value?{height:e+"px"}:{}}),w=n.computed(()=>a.darkTheme||(l==null?void 0:l.darkTheme)),y=n.computed(()=>a.queryLanguagesIds||(l==null?void 0:l.queryLanguagesIds)),$=n.computed(()=>a.queryLanguageId||(l==null?void 0:l.queryLanguageId)),g=n.reactive({}),O=o(async()=>{var e;if(typeof window>"u"||typeof y.value>"u"||!((e=y.value)!=null&&e.length))return;for(const c of y.value)if(!g[c])switch(c){case"javascript":{const{javascriptQueryLanguage:i}=await Promise.resolve().then(()=>require("../vanilla-jsoneditor-HKMtDzoB/index.cjs"));g[c]=i;break}case"lodash":{const{lodashQueryLanguage:i}=await Promise.resolve().then(()=>require("../vanilla-jsoneditor-HKMtDzoB/index.cjs"));g[c]=i;break}case"jmespath":{const{jmespathQueryLanguage:i}=await Promise.resolve().then(()=>require("../vanilla-jsoneditor-HKMtDzoB/index.cjs"));g[c]=i;break}}const t=Object.values(g);if(t.length!==0)return t},"N"),j=o(()=>{d.value&&(d.value.removeEventListener("click",B),d.value=null)},"L"),P=o(async()=>{if(typeof window>"u")return;const{getElement:e,createElement:t}=await Promise.resolve().then(()=>require("../full-width-button-handler-wnoSIg42/index.cjs")),{setFullWidthButtonStyle:c}=await Promise.resolve().then(()=>require("../styles-handler-G8NSk43t/index.cjs"));await c();const i=e(".jse-full-width"),_=(l==null?void 0:l.fullWidthButton)!==void 0?l==null?void 0:l.fullWidthButton:!0;if(!(a.fullWidthButton!==void 0?a.fullWidthButton:_)||i)return;d.value&&j();const k=e(".jse-menu"),H=Array.from(k.classList).find(J=>J.startsWith("svelte-"));d.value=t("button"),d.value.classList.add("jse-full-width"),d.value.classList.add("jse-button"),d.value.classList.add(H),d.value.innerHTML+=Y,k.appendChild(d.value),d.value.addEventListener("click",B)},"V"),B=o(()=>{var e,t;p.value=!p.value,p.value?(e=d.value)==null||e.classList.add("jse-full-width--active"):(t=d.value)==null||t.classList.remove("jse-full-width--active")},"b"),b=o(async e=>{var t;f.value==="tree"&&await((t=r.value)==null?void 0:t.expand(()=>e))},"C"),E=o((e,t,c)=>{if(m.value){m.value=!1;return}h.value=!0,M(e,"json")&&(u("update:json",e.json),u("update:modelValue",e.json)),M(e,"text")&&(u("update:text",e.text),u("update:jsonString",e.text),u("update:modelValue",e.text)),u("change",e,t,c)},"W"),A=o(e=>{u("error",e)},"q"),N=o(e=>{f.value=e,u("change-mode",e),u("update:mode",e)},"A"),R=o(e=>{u("change-query-language",e)},"I"),V=o(()=>{u("focus")},"R"),z=o(()=>{u("blur")},"z"),F=o(e=>{u("update:selection",e)},"J"),W=o((e,t)=>(n.nextTick(()=>{P()}),typeof a.onRenderMenu=="function"?a.onRenderMenu(e,t):e),"Q"),L=o(async()=>{const e={fullWidthButton:!0,...l||{}},t=await O();return{...X(e,a),queryLanguages:t,queryLanguageId:$.value,onChange:E,onError:A,onChangeMode:N,onChangeQueryLanguage:R,onFocus:V,onBlur:z,onRenderMenu:W,onSelect:F}},"j"),S=n.ref(!0),x=o(()=>{const e=o((i={})=>i===null||typeof i>"u"||typeof i=="number"||typeof i=="bigint"||typeof i=="string"||typeof i=="boolean"?{json:i}:Array.isArray(i)?{json:[...i]}:{json:{...i}},"e"),t=o((i="")=>({text:i||""}),"t"),c=a.modelValue||a.value;return c?f.value==="text"&&typeof c=="string"?t(c):e(c):a.json?e(a.json):a.text?t(a.text):a.jsonString?t(a.jsonString):t()},"S"),I=o(async()=>{if(!(typeof window>"u")){if(!r.value){const e=await L(),{JSONEditor:t}=await Promise.resolve().then(()=>require("../vanilla-jsoneditor-HKMtDzoB/index.cjs"));S.value=!1,r.value=new t({target:v.value,props:e}),await r.value.set(x())}await r.value.focus()}},"U"),C=o(async()=>{const e=await L();r.value.updateProps(e)},"x"),U=o(()=>{if(h.value){h.value=!1;return}m.value=!0,r.value.update(x())},"O"),Q=o(()=>{r.value&&(r.value.destroy(),r.value=null),j()},"_");return n.watch([...K.map(e=>()=>a[e])],C,{deep:!0}),n.watch([()=>a.modelValue,()=>a.value,()=>a.json,()=>a.text,()=>a.jsonString],U,{deep:!0}),n.watch(()=>a.mode,e=>{e!==f.value&&(f.value=e,C())}),n.watch(()=>w.value,async e=>{if(e){const{setDarkThemeStyle:t}=await Promise.resolve().then(()=>require("../styles-handler-G8NSk43t/index.cjs"));await t()}},{immediate:!0}),n.onMounted(()=>{n.nextTick(()=>{I()})}),n.onBeforeUnmount(()=>{Q()}),s({async $collapseAll(){await b(!1)},async $expandAll(){await b(!0)},async $expand(e){var t;await((t=r.value)==null?void 0:t.expand(e))},$get(){var e;return(e=r.value)==null?void 0:e.get()},async $set(e){var t;await((t=r.value)==null?void 0:t.set(e))},async $update(e){var t;await((t=r.value)==null?void 0:t.update(e))},async $updateProps(e){var t;await((t=r.value)==null?void 0:t.updateProps(e))},async $refresh(){var e;await((e=r.value)==null?void 0:e.refresh())},async $focus(){var e;await((e=r.value)==null?void 0:e.focus())},async $destroy(){var e;await((e=r.value)==null?void 0:e.destroy())},async $patch(e){var t;return await((t=r.value)==null?void 0:t.patch(e))},$transform(e){var t;(t=r.value)==null||t.transform(e)},async $scrollTo(e){var t;await((t=r.value)==null?void 0:t.scrollTo(e))},$findElement(e){var t;return(t=r.value)==null?void 0:t.findElement(e)},async $acceptAutoRepair(){var e;return await((e=r.value)==null?void 0:e.acceptAutoRepair())},$validate(){var e;return(e=r.value)==null?void 0:e.validate()}}),{max:p,getHeight:T,container:v,darkThemeStyle:w,fallbackSlot:S}}}),ee=o((a,s)=>{const u=a.__vccOpts||a;for(const[l,v]of s)u[l]=v;return u},"ve");function te(a,s,u,l,v,d){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue-ts-json-editor",{"vue-ts-json-editor--max-box":a.max,"jse-theme-dark":a.darkThemeStyle}]),style:n.normalizeStyle(a.getHeight),ref:"container",onKeydown:s[0]||(s[0]=n.withModifiers(()=>{},["stop"]))},[a.fallbackSlot?n.renderSlot(a.$slots,"default",{key:0}):n.createCommentVNode("",!0)],38)}o(te,"ge");const q=ee(Z,[["render",te]]);q.install=()=>{console.error(`Default import not working!!! Use "import {JsonEditorPlugin} from 'vue3-ts-jsoneditor';"`)};exports.default=q;