@web-utils/component 1.2.5 → 1.2.6

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 (111) hide show
  1. package/README.md +27 -27
  2. package/dist/chunks/163eed3b.js +16 -1
  3. package/dist/chunks/2bd4e340.js +184 -0
  4. package/dist/chunks/6499de3a.js +30 -1
  5. package/dist/chunks/7af3ceb1.js +75 -0
  6. package/dist/chunks/86bcadec.js +24 -0
  7. package/dist/chunks/8bbde9bf.js +81 -1
  8. package/dist/chunks/90bd3d52.js +26 -1
  9. package/dist/chunks/92404ceb.js +126 -0
  10. package/dist/chunks/a73fe8ee.js +11 -0
  11. package/dist/chunks/df803484.js +60 -0
  12. package/dist/components/address-input/index.js +113 -1
  13. package/dist/components/aside-menu/index.js +58 -1
  14. package/dist/components/awesome-button/index.js +82 -1
  15. package/dist/components/capsule-tab/index.js +52 -1
  16. package/dist/components/chunk-file-uploader/index.js +119 -1
  17. package/dist/components/chunk-file-uploader-button/index.js +60 -1
  18. package/dist/components/chunk-file-uploader-drop/index.js +65 -1
  19. package/dist/components/chunk-file-uploader-file/index.js +311 -1
  20. package/dist/components/chunk-file-uploader-files/index.js +49 -1
  21. package/dist/components/chunk-file-uploader-list/index.js +50 -1
  22. package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
  23. package/dist/components/code-mirror-editor/index.js +310 -6
  24. package/dist/components/color-picker/index.js +110 -1
  25. package/dist/components/confirm-button/index.js +57 -1
  26. package/dist/components/confirmable/index.js +28 -1
  27. package/dist/components/context-menu/index.js +236 -1
  28. package/dist/components/custom-scrollbar/index.js +150 -1
  29. package/dist/components/data-table-picker/index.js +137 -1
  30. package/dist/components/dynamic-table/index.js +195 -1
  31. package/dist/components/e-charts/index.js +229 -1
  32. package/dist/components/editable-progress/index.js +141 -1
  33. package/dist/components/editable-tree/index.js +789 -1
  34. package/dist/components/egd-collapse/index.js +79 -1
  35. package/dist/components/egd-collapse-item/index.js +132 -1
  36. package/dist/components/el-color-picker-dropdown/index.js +170 -1
  37. package/dist/components/element-dialog/index.js +242 -1
  38. package/dist/components/empty-view/index.js +69 -1
  39. package/dist/components/error-view/index.js +61 -1
  40. package/dist/components/flex-column/index.js +50 -1
  41. package/dist/components/flex-item/index.js +66 -1
  42. package/dist/components/flex-row/index.js +50 -1
  43. package/dist/components/flex-scroller/index.js +47 -1
  44. package/dist/components/form-button/index.js +80 -1
  45. package/dist/components/form-cascader/index.js +151 -1
  46. package/dist/components/form-checkbox-group/index.js +192 -1
  47. package/dist/components/form-date-picker/index.js +182 -1
  48. package/dist/components/form-holder/index.js +90 -1
  49. package/dist/components/form-input/index.js +106 -1
  50. package/dist/components/form-input-email/index.js +97 -1
  51. package/dist/components/form-input-id-card/index.js +104 -1
  52. package/dist/components/form-input-number/index.js +123 -1
  53. package/dist/components/form-input-phone-number/index.js +98 -1
  54. package/dist/components/form-input-time/index.js +124 -1
  55. package/dist/components/form-item/index.js +120 -1
  56. package/dist/components/form-item-config-provider/index.js +63 -1
  57. package/dist/components/form-item-group/index.js +169 -1
  58. package/dist/components/form-radio-group/index.js +170 -1
  59. package/dist/components/form-select/index.js +154 -1
  60. package/dist/components/form-switch/index.js +97 -1
  61. package/dist/components/form-textarea/index.js +102 -1
  62. package/dist/components/form-view/index.js +343 -1
  63. package/dist/components/guide-steps/index.js +94 -1
  64. package/dist/components/icon-card/index.js +62 -1
  65. package/dist/components/iframe-window/index.js +99 -1
  66. package/dist/components/input-number/index.js +274 -1
  67. package/dist/components/input-number-range/index.js +110 -1
  68. package/dist/components/j-s-x-component/index.js +16 -1
  69. package/dist/components/keep-view-alive/index.js +119 -1
  70. package/dist/components/loading-view/index.js +61 -1
  71. package/dist/components/nav-bar/index.js +52 -1
  72. package/dist/components/not-implement/index.js +35 -1
  73. package/dist/components/page/index.js +40 -1
  74. package/dist/components/page-header/index.js +56 -1
  75. package/dist/components/page-index/index.js +151 -1
  76. package/dist/components/page-index-top/index.js +119 -1
  77. package/dist/components/page-skeleton/index.js +56 -1
  78. package/dist/components/page-skeleton-new/index.js +98 -1
  79. package/dist/components/pageable-table/index.js +429 -1
  80. package/dist/components/pageable-view/index.js +328 -2
  81. package/dist/components/photo-swipe/index.js +187 -1
  82. package/dist/components/resize-observer/index.js +62 -1
  83. package/dist/components/search-popover/index.js +391 -2
  84. package/dist/components/sign-panel/index.js +242 -1
  85. package/dist/components/split-pane/index.js +209 -1
  86. package/dist/components/stateful/index.js +84 -1
  87. package/dist/components/static-pageable-table/index.js +92 -1
  88. package/dist/components/swiper/index.js +158 -1
  89. package/dist/components/tab/index.js +145 -1
  90. package/dist/components/tab-item/index.js +73 -1
  91. package/dist/components/table-column/index.js +89 -1
  92. package/dist/components/table-view/index.js +363 -1
  93. package/dist/components/tag-render/index.js +97 -1
  94. package/dist/components/tinymce-editor/index.js +173 -1
  95. package/dist/components/tinymce-wrapper/index.js +618 -1
  96. package/dist/components/toolbar/index.js +217 -1
  97. package/dist/components/toolbar-button/index.js +90 -1
  98. package/dist/components/trigger/index.js +71 -1
  99. package/dist/components/vue-tags-input/index.js +439 -1
  100. package/dist/components/watermark/index.js +63 -1
  101. package/dist/components/x-dialog/index.js +173 -1
  102. package/dist/index.css +2102 -1
  103. package/dist/index.es.js +2992 -2075
  104. package/package.json +29 -29
  105. package/web-types.json +22 -16
  106. package/dist/chunks/23bd3525.js +0 -1
  107. package/dist/chunks/65f4f4f2.js +0 -1
  108. package/dist/chunks/8473fc69.js +0 -1
  109. package/dist/chunks/a125d16c.js +0 -1
  110. package/dist/chunks/addb6ed5.js +0 -1
  111. package/dist/chunks/f15477c7.js +0 -1
@@ -1,6 +1,310 @@
1
- import F from"codemirror";import"codemirror/lib/codemirror.css";import"codemirror/theme/idea.css";import"codemirror/mode/javascript/javascript";import"codemirror/addon/edit/matchbrackets";import"codemirror/addon/lint/javascript-lint";import"codemirror/addon/lint/json-lint";import"codemirror/addon/lint/lint";import"codemirror/addon/lint/lint.css";import"codemirror/addon/fold/foldcode";import"codemirror/addon/fold/foldgutter";import"codemirror/addon/fold/foldgutter.css";import"codemirror/addon/fold/brace-fold";import"codemirror/addon/fold/comment-fold";import{n as M}from"../../chunks/6499de3a.js";var C=function(){var r={},l=function(){var d={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(u,t,n,p,s,e,o){var i=e.length-1;switch(s){case 1:this.$=u.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
2
- `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(u);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=e[i-1];case 13:this.$={};break;case 14:this.$=e[i-1];break;case 15:this.$=[e[i-2],e[i]];break;case 16:this.$={},this.$[e[i][0]]=e[i][1];break;case 17:this.$=e[i-2],e[i-2][e[i][0]]=e[i][1];break;case 18:this.$=[];break;case 19:this.$=e[i-1];break;case 20:this.$=[e[i]];break;case 21:this.$=e[i-2],e[i-2].push(e[i])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(u,t){throw new Error(u)},parse:function(u){function t(y){s.length=s.length-2*y,e.length=e.length-y,o.length=o.length-y}function n(){var y;return y=p.lexer.lex()||1,typeof y!="number"&&(y=p.symbols_[y]||y),y}var p=this,s=[0],e=[null],o=[],i=this.table,k="",m=0,N=0,_=0,$=2,L=1;this.lexer.setInput(u),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var b=this.lexer.yylloc;o.push(b),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var h,v,a,c,w,g={},S,f,A,E;;){if(a=s[s.length-1],this.defaultActions[a]?c=this.defaultActions[a]:(h==null&&(h=n()),c=i[a]&&i[a][h]),typeof c=="undefined"||!c.length||!c[0]){if(!_){E=[];for(S in i[a])this.terminals_[S]&&S>2&&E.push("'"+this.terminals_[S]+"'");var x="";this.lexer.showPosition?x="Parse error on line "+(m+1)+`:
3
- `+this.lexer.showPosition()+`
4
- Expecting `+E.join(", ")+", got '"+this.terminals_[h]+"'":x="Parse error on line "+(m+1)+": Unexpected "+(h==1?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:b,expected:E})}if(_==3){if(h==L)throw new Error(x||"Parsing halted.");N=this.lexer.yyleng,k=this.lexer.yytext,m=this.lexer.yylineno,b=this.lexer.yylloc,h=n()}for(;!($.toString()in i[a]);){if(a==0)throw new Error(x||"Parsing halted.");t(1),a=s[s.length-1]}v=h,h=$,a=s[s.length-1],c=i[a]&&i[a][$],_=3}if(c[0]instanceof Array&&c.length>1)throw new Error("Parse Error: multiple actions possible at state: "+a+", token: "+h);switch(c[0]){case 1:s.push(h),e.push(this.lexer.yytext),o.push(this.lexer.yylloc),s.push(c[1]),h=null,v?(h=v,v=null):(N=this.lexer.yyleng,k=this.lexer.yytext,m=this.lexer.yylineno,b=this.lexer.yylloc,_>0&&_--);break;case 2:if(f=this.productions_[c[1]][1],g.$=e[e.length-f],g._$={first_line:o[o.length-(f||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(f||1)].first_column,last_column:o[o.length-1].last_column},w=this.performAction.call(g,k,N,m,this.yy,c[1],e,o),typeof w!="undefined")return w;f&&(s=s.slice(0,-1*f*2),e=e.slice(0,-1*f),o=o.slice(0,-1*f)),s.push(this.productions_[c[1]][0]),e.push(g.$),o.push(g._$),A=i[s[s.length-2]][s[s.length-1]],s.push(A);break;case 3:return!0}}return!0}},J=function(){var u={EOF:1,parseError:function(t,n){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,n)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t;var n=t.match(/\n/);return n&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},less:function(t){this._input=this.match.slice(t)+this._input},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
- `+n+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,p,s,e;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),i=0;i<o.length&&(p=this._input.match(this.rules[o[i]]),!(p&&(!n||p[0].length>n[0].length)&&(n=p,s=i,!this.options.flex)));i++);if(n)return e=n[0].match(/\n.*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-1:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],t=this.performAction.call(this,this.yy,this,o[s],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return typeof t!="undefined"?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return u.options={},u.performAction=function(t,n,p,s){switch(p){case 0:break;case 1:return 6;case 2:return n.yytext=n.yytext.substr(1,n.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},u.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],u.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},u}();return d.lexer=J,d}();return r.parser=l,r.parse=function(){return l.parse.apply(l,arguments)},r}(),j=function(){var r=this,l=r.$createElement,d=r._self._c||l;return d("div",{staticClass:"code-mirror-editor"},[d("textarea",{ref:"editor"})])},P=[];window.jsonlint=C;const O=r=>{if(r)try{return JSON.stringify(JSON.parse(r),null,1)}catch{}return r},R=r=>{if(r)try{return JSON.stringify(JSON.parse(r))}catch{}return r},T={name:"CodeMirrorEditor",inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{type:String,default:""}},watch:{value(r){var l;(l=this.editor)==null||l.setValue(O(r))}},mounted(){this.editor=F.fromTextArea(this.$refs.editor,{mode:"application/json",theme:"idea",tabSize:2,indentUnit:2,lint:!0,foldGutter:!0,smartIndent:!0,lineWrapping:!0,matchBrackets:!0}),this.editor.setValue(O(this.value)),this.editor.on("blur",this.change),this.editor.on("focus",this.focus),this.editor.setOption("extraKeys",{"Ctrl-Alt-L"(r){r.setValue(O(r.getValue()),null,1)}})},beforeDestroy(){var r,l;(r=this.editor)==null||r.off("blur",this.change),(l=this.editor)==null||l.toTextArea()},methods:{focus(){var r,l;(l=(r=this.elFormItem).clearValidate)==null||l.call(r)},change(){var r;this.$emit("input",R((r=this.editor)==null?void 0:r.getValue()))}}},I={};var U=M(T,j,P,!1,V,null,null,null);function V(r){for(let l in I)this[l]=I[l]}var z=function(){return U.exports}();export{z as default};
1
+ import F from "codemirror";
2
+ import "codemirror/lib/codemirror.css";
3
+ import "codemirror/theme/idea.css";
4
+ import "codemirror/mode/javascript/javascript";
5
+ import "codemirror/addon/edit/matchbrackets";
6
+ import "codemirror/addon/lint/javascript-lint";
7
+ import "codemirror/addon/lint/json-lint";
8
+ import "codemirror/addon/lint/lint";
9
+ import "codemirror/addon/lint/lint.css";
10
+ import "codemirror/addon/fold/foldcode";
11
+ import "codemirror/addon/fold/foldgutter";
12
+ import "codemirror/addon/fold/foldgutter.css";
13
+ import "codemirror/addon/fold/brace-fold";
14
+ import "codemirror/addon/fold/comment-fold";
15
+ import { n as j } from "../../chunks/6499de3a.js";
16
+ var M = function() {
17
+ var i = {}, l = function() {
18
+ var m = { trace: function() {
19
+ }, yy: {}, symbols_: { error: 2, JSONString: 3, STRING: 4, JSONNumber: 5, NUMBER: 6, JSONNullLiteral: 7, NULL: 8, JSONBooleanLiteral: 9, TRUE: 10, FALSE: 11, JSONText: 12, JSONValue: 13, EOF: 14, JSONObject: 15, JSONArray: 16, "{": 17, "}": 18, JSONMemberList: 19, JSONMember: 20, ":": 21, ",": 22, "[": 23, "]": 24, JSONElementList: 25, $accept: 0, $end: 1 }, terminals_: { 2: "error", 4: "STRING", 6: "NUMBER", 8: "NULL", 10: "TRUE", 11: "FALSE", 14: "EOF", 17: "{", 18: "}", 21: ":", 22: ",", 23: "[", 24: "]" }, productions_: [0, [3, 1], [5, 1], [7, 1], [9, 1], [9, 1], [12, 2], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [15, 2], [15, 3], [20, 3], [19, 1], [19, 3], [16, 2], [16, 3], [25, 1], [25, 3]], performAction: function(u, t, n, p, s, e, o) {
20
+ var r = e.length - 1;
21
+ switch (s) {
22
+ case 1:
23
+ this.$ = u.replace(/\\(\\|")/g, "$1").replace(/\\n/g, `
24
+ `).replace(/\\r/g, "\r").replace(/\\t/g, " ").replace(/\\v/g, "\v").replace(/\\f/g, "\f").replace(/\\b/g, "\b");
25
+ break;
26
+ case 2:
27
+ this.$ = Number(u);
28
+ break;
29
+ case 3:
30
+ this.$ = null;
31
+ break;
32
+ case 4:
33
+ this.$ = !0;
34
+ break;
35
+ case 5:
36
+ this.$ = !1;
37
+ break;
38
+ case 6:
39
+ return this.$ = e[r - 1];
40
+ case 13:
41
+ this.$ = {};
42
+ break;
43
+ case 14:
44
+ this.$ = e[r - 1];
45
+ break;
46
+ case 15:
47
+ this.$ = [e[r - 2], e[r]];
48
+ break;
49
+ case 16:
50
+ this.$ = {}, this.$[e[r][0]] = e[r][1];
51
+ break;
52
+ case 17:
53
+ this.$ = e[r - 2], e[r - 2][e[r][0]] = e[r][1];
54
+ break;
55
+ case 18:
56
+ this.$ = [];
57
+ break;
58
+ case 19:
59
+ this.$ = e[r - 1];
60
+ break;
61
+ case 20:
62
+ this.$ = [e[r]];
63
+ break;
64
+ case 21:
65
+ this.$ = e[r - 2], e[r - 2].push(e[r]);
66
+ }
67
+ }, table: [{ 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 12: 1, 13: 2, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 1: [3] }, { 14: [1, 16] }, { 14: [2, 7], 18: [2, 7], 22: [2, 7], 24: [2, 7] }, { 14: [2, 8], 18: [2, 8], 22: [2, 8], 24: [2, 8] }, { 14: [2, 9], 18: [2, 9], 22: [2, 9], 24: [2, 9] }, { 14: [2, 10], 18: [2, 10], 22: [2, 10], 24: [2, 10] }, { 14: [2, 11], 18: [2, 11], 22: [2, 11], 24: [2, 11] }, { 14: [2, 12], 18: [2, 12], 22: [2, 12], 24: [2, 12] }, { 14: [2, 3], 18: [2, 3], 22: [2, 3], 24: [2, 3] }, { 14: [2, 4], 18: [2, 4], 22: [2, 4], 24: [2, 4] }, { 14: [2, 5], 18: [2, 5], 22: [2, 5], 24: [2, 5] }, { 14: [2, 1], 18: [2, 1], 21: [2, 1], 22: [2, 1], 24: [2, 1] }, { 14: [2, 2], 18: [2, 2], 22: [2, 2], 24: [2, 2] }, { 3: 20, 4: [1, 12], 18: [1, 17], 19: 18, 20: 19 }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 23, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15], 24: [1, 21], 25: 22 }, { 1: [2, 6] }, { 14: [2, 13], 18: [2, 13], 22: [2, 13], 24: [2, 13] }, { 18: [1, 24], 22: [1, 25] }, { 18: [2, 16], 22: [2, 16] }, { 21: [1, 26] }, { 14: [2, 18], 18: [2, 18], 22: [2, 18], 24: [2, 18] }, { 22: [1, 28], 24: [1, 27] }, { 22: [2, 20], 24: [2, 20] }, { 14: [2, 14], 18: [2, 14], 22: [2, 14], 24: [2, 14] }, { 3: 20, 4: [1, 12], 20: 29 }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 30, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 14: [2, 19], 18: [2, 19], 22: [2, 19], 24: [2, 19] }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 31, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 18: [2, 17], 22: [2, 17] }, { 18: [2, 15], 22: [2, 15] }, { 22: [2, 21], 24: [2, 21] }], defaultActions: { 16: [2, 6] }, parseError: function(u, t) {
68
+ throw new Error(u);
69
+ }, parse: function(u) {
70
+ function t(y) {
71
+ s.length = s.length - 2 * y, e.length = e.length - y, o.length = o.length - y;
72
+ }
73
+ function n() {
74
+ var y;
75
+ return y = p.lexer.lex() || 1, typeof y != "number" && (y = p.symbols_[y] || y), y;
76
+ }
77
+ var p = this, s = [0], e = [null], o = [], r = this.table, k = "", d = 0, N = 0, _ = 0, $ = 2, L = 1;
78
+ this.lexer.setInput(u), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
79
+ var b = this.lexer.yylloc;
80
+ o.push(b), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
81
+ for (var h, S, a, c, w, g = {}, v, f, A, E; ; ) {
82
+ if (a = s[s.length - 1], this.defaultActions[a] ? c = this.defaultActions[a] : (h == null && (h = n()), c = r[a] && r[a][h]), typeof c > "u" || !c.length || !c[0]) {
83
+ if (!_) {
84
+ E = [];
85
+ for (v in r[a])
86
+ this.terminals_[v] && v > 2 && E.push("'" + this.terminals_[v] + "'");
87
+ var x = "";
88
+ this.lexer.showPosition ? x = "Parse error on line " + (d + 1) + `:
89
+ ` + this.lexer.showPosition() + `
90
+ Expecting ` + E.join(", ") + ", got '" + this.terminals_[h] + "'" : x = "Parse error on line " + (d + 1) + ": Unexpected " + (h == 1 ? "end of input" : "'" + (this.terminals_[h] || h) + "'"), this.parseError(x, { text: this.lexer.match, token: this.terminals_[h] || h, line: this.lexer.yylineno, loc: b, expected: E });
91
+ }
92
+ if (_ == 3) {
93
+ if (h == L)
94
+ throw new Error(x || "Parsing halted.");
95
+ N = this.lexer.yyleng, k = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, h = n();
96
+ }
97
+ for (; !($.toString() in r[a]); ) {
98
+ if (a == 0)
99
+ throw new Error(x || "Parsing halted.");
100
+ t(1), a = s[s.length - 1];
101
+ }
102
+ S = h, h = $, a = s[s.length - 1], c = r[a] && r[a][$], _ = 3;
103
+ }
104
+ if (c[0] instanceof Array && c.length > 1)
105
+ throw new Error("Parse Error: multiple actions possible at state: " + a + ", token: " + h);
106
+ switch (c[0]) {
107
+ case 1:
108
+ s.push(h), e.push(this.lexer.yytext), o.push(this.lexer.yylloc), s.push(c[1]), h = null, S ? (h = S, S = null) : (N = this.lexer.yyleng, k = this.lexer.yytext, d = this.lexer.yylineno, b = this.lexer.yylloc, _ > 0 && _--);
109
+ break;
110
+ case 2:
111
+ if (f = this.productions_[c[1]][1], g.$ = e[e.length - f], g._$ = { first_line: o[o.length - (f || 1)].first_line, last_line: o[o.length - 1].last_line, first_column: o[o.length - (f || 1)].first_column, last_column: o[o.length - 1].last_column }, w = this.performAction.call(g, k, N, d, this.yy, c[1], e, o), typeof w < "u")
112
+ return w;
113
+ f && (s = s.slice(0, -1 * f * 2), e = e.slice(0, -1 * f), o = o.slice(0, -1 * f)), s.push(this.productions_[c[1]][0]), e.push(g.$), o.push(g._$), A = r[s[s.length - 2]][s[s.length - 1]], s.push(A);
114
+ break;
115
+ case 3:
116
+ return !0;
117
+ }
118
+ }
119
+ return !0;
120
+ } }, J = function() {
121
+ var u = { EOF: 1, parseError: function(t, n) {
122
+ if (!this.yy.parseError)
123
+ throw new Error(t);
124
+ this.yy.parseError(t, n);
125
+ }, setInput: function(t) {
126
+ return this._input = t, this._more = this._less = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this;
127
+ }, input: function() {
128
+ var t = this._input[0];
129
+ this.yytext += t, this.yyleng++, this.match += t, this.matched += t;
130
+ var n = t.match(/\n/);
131
+ return n && this.yylineno++, this._input = this._input.slice(1), t;
132
+ }, unput: function(t) {
133
+ return this._input = t + this._input, this;
134
+ }, more: function() {
135
+ return this._more = !0, this;
136
+ }, less: function(t) {
137
+ this._input = this.match.slice(t) + this._input;
138
+ }, pastInput: function() {
139
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
140
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
141
+ }, upcomingInput: function() {
142
+ var t = this.match;
143
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
144
+ }, showPosition: function() {
145
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
146
+ return t + this.upcomingInput() + `
147
+ ` + n + "^";
148
+ }, next: function() {
149
+ if (this.done)
150
+ return this.EOF;
151
+ this._input || (this.done = !0);
152
+ var t, n, p, s, e;
153
+ this._more || (this.yytext = "", this.match = "");
154
+ for (var o = this._currentRules(), r = 0; r < o.length && (p = this._input.match(this.rules[o[r]]), !(p && (!n || p[0].length > n[0].length) && (n = p, s = r, !this.options.flex))); r++)
155
+ ;
156
+ if (n)
157
+ return e = n[0].match(/\n.*/g), e && (this.yylineno += e.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: e ? e[e.length - 1].length - 1 : this.yylloc.last_column + n[0].length }, this.yytext += n[0], this.match += n[0], this.yyleng = this.yytext.length, this._more = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], t = this.performAction.call(this, this.yy, this, o[s], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), t || void 0;
158
+ if (this._input === "")
159
+ return this.EOF;
160
+ this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
161
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
162
+ }, lex: function() {
163
+ var t = this.next();
164
+ return typeof t < "u" ? t : this.lex();
165
+ }, begin: function(t) {
166
+ this.conditionStack.push(t);
167
+ }, popState: function() {
168
+ return this.conditionStack.pop();
169
+ }, _currentRules: function() {
170
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
171
+ }, topState: function() {
172
+ return this.conditionStack[this.conditionStack.length - 2];
173
+ }, pushState: function(t) {
174
+ this.begin(t);
175
+ } };
176
+ return u.options = {}, u.performAction = function(t, n, p, s) {
177
+ switch (p) {
178
+ case 0:
179
+ break;
180
+ case 1:
181
+ return 6;
182
+ case 2:
183
+ return n.yytext = n.yytext.substr(1, n.yyleng - 2), 4;
184
+ case 3:
185
+ return 17;
186
+ case 4:
187
+ return 18;
188
+ case 5:
189
+ return 23;
190
+ case 6:
191
+ return 24;
192
+ case 7:
193
+ return 22;
194
+ case 8:
195
+ return 21;
196
+ case 9:
197
+ return 10;
198
+ case 10:
199
+ return 11;
200
+ case 11:
201
+ return 8;
202
+ case 12:
203
+ return 14;
204
+ case 13:
205
+ return "INVALID";
206
+ }
207
+ }, u.rules = [/^(?:\s+)/, /^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/, /^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/, /^(?:\{)/, /^(?:\})/, /^(?:\[)/, /^(?:\])/, /^(?:,)/, /^(?::)/, /^(?:true\b)/, /^(?:false\b)/, /^(?:null\b)/, /^(?:$)/, /^(?:.)/], u.conditions = { INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], inclusive: !0 } }, u;
208
+ }();
209
+ return m.lexer = J, m;
210
+ }();
211
+ return i.parser = l, i.parse = function() {
212
+ return l.parse.apply(l, arguments);
213
+ }, i;
214
+ }(), P = function() {
215
+ var i = this, l = i.$createElement, m = i._self._c || l;
216
+ return m("div", {
217
+ staticClass: "code-mirror-editor"
218
+ }, [m("textarea", {
219
+ ref: "editor"
220
+ })]);
221
+ }, R = [];
222
+ window.jsonlint = M;
223
+ const O = (i) => {
224
+ if (i)
225
+ try {
226
+ return JSON.stringify(JSON.parse(i), null, 1);
227
+ } catch {
228
+ }
229
+ return i;
230
+ }, T = (i) => {
231
+ if (i)
232
+ try {
233
+ return JSON.stringify(JSON.parse(i));
234
+ } catch {
235
+ }
236
+ return i;
237
+ }, U = {
238
+ name: "CodeMirrorEditor",
239
+ inject: {
240
+ elForm: {
241
+ default: ""
242
+ },
243
+ elFormItem: {
244
+ default: ""
245
+ }
246
+ },
247
+ props: {
248
+ value: {
249
+ type: String,
250
+ default: ""
251
+ }
252
+ },
253
+ watch: {
254
+ value(i) {
255
+ var l;
256
+ (l = this.editor) == null || l.setValue(O(i));
257
+ }
258
+ },
259
+ mounted() {
260
+ this.editor = F.fromTextArea(this.$refs.editor, {
261
+ mode: "application/json",
262
+ theme: "idea",
263
+ tabSize: 2,
264
+ indentUnit: 2,
265
+ lint: !0,
266
+ foldGutter: !0,
267
+ smartIndent: !0,
268
+ lineWrapping: !0,
269
+ matchBrackets: !0
270
+ }), this.editor.setValue(O(this.value)), this.editor.on("blur", this.change), this.editor.on("focus", this.focus), this.editor.setOption("extraKeys", {
271
+ "Ctrl-Alt-L"(i) {
272
+ i.setValue(O(i.getValue()), null, 1);
273
+ }
274
+ });
275
+ },
276
+ beforeDestroy() {
277
+ var i, l;
278
+ (i = this.editor) == null || i.off("blur", this.change), (l = this.editor) == null || l.toTextArea();
279
+ },
280
+ methods: {
281
+ focus() {
282
+ var i, l;
283
+ (l = (i = this.elFormItem).clearValidate) == null || l.call(i);
284
+ },
285
+ change() {
286
+ var i;
287
+ this.$emit("input", T((i = this.editor) == null ? void 0 : i.getValue()));
288
+ }
289
+ }
290
+ }, I = {};
291
+ var V = /* @__PURE__ */ j(
292
+ U,
293
+ P,
294
+ R,
295
+ !1,
296
+ C,
297
+ null,
298
+ null,
299
+ null
300
+ );
301
+ function C(i) {
302
+ for (let l in I)
303
+ this[l] = I[l];
304
+ }
305
+ const rt = /* @__PURE__ */ function() {
306
+ return V.exports;
307
+ }();
308
+ export {
309
+ rt as default
310
+ };
@@ -1 +1,110 @@
1
- import s from"element-ui/packages/color-picker/src/color";import l from"element-ui/src/utils/clickoutside";import{n}from"../../chunks/6499de3a.js";var a=function(){var e=this,i=e.$createElement,r=e._self._c||i;return r("ElColorPickerDropdown",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOutside,expression:"onClickOutside"}],ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{offset:e.offset,"append-to-body":e.appendToBody,color:e.color,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})},c=[];const d={name:"ColorPicker",directives:{Clickoutside:l},props:{popperClass:String,predefine:Array,visible:Boolean,hideOnClickOutside:{type:Boolean,default:!0},value:String,offset:Number,anchor:HTMLElement,appendToBody:{type:Boolean,default:!0}},data(){return{color:new s({enableAlpha:!1}),showPicker:!1}},watch:{value:{immediate:!0,handler(e){e&&e!==this.color.value&&this.color.fromString(e)}},visible:{immediate:!0,async handler(e){e?(await this.$nextTick(),this.$refs.dropdown.referenceElm=this.anchor):this.$refs.dropdown&&this.$refs.dropdown.doDestroy(!0),this.showPicker=e}}},methods:{confirmValue(){this.emitInput(this.color),this.$emit("pick",this.color.value),this.hide()},clearValue(){this.$emit("clear"),this.hide()},emitInput(e){this.$emit("input",e.value)},onClickOutside(){this.hideOnClickOutside&&this.hide()},hide(){this.$emit("update:visible",!1)}}},o={};var u=n(d,a,c,!1,p,null,null,null);function p(e){for(let i in o)this[i]=o[i]}var h=function(){return u.exports}();export{h as default};
1
+ import s from "element-ui/packages/color-picker/src/color";
2
+ import l from "element-ui/src/utils/clickoutside";
3
+ import { n } from "../../chunks/6499de3a.js";
4
+ var c = function() {
5
+ var e = this, i = e.$createElement, t = e._self._c || i;
6
+ return t("ElColorPickerDropdown", {
7
+ directives: [{
8
+ name: "clickoutside",
9
+ rawName: "v-clickoutside",
10
+ value: e.onClickOutside,
11
+ expression: "onClickOutside"
12
+ }],
13
+ ref: "dropdown",
14
+ class: ["el-color-picker__panel", e.popperClass || ""],
15
+ attrs: {
16
+ offset: e.offset,
17
+ "append-to-body": e.appendToBody,
18
+ color: e.color,
19
+ predefine: e.predefine
20
+ },
21
+ on: {
22
+ pick: e.confirmValue,
23
+ clear: e.clearValue
24
+ },
25
+ model: {
26
+ value: e.showPicker,
27
+ callback: function(r) {
28
+ e.showPicker = r;
29
+ },
30
+ expression: "showPicker"
31
+ }
32
+ });
33
+ }, a = [];
34
+ const d = {
35
+ name: "ColorPicker",
36
+ directives: { Clickoutside: l },
37
+ props: {
38
+ popperClass: String,
39
+ predefine: Array,
40
+ visible: Boolean,
41
+ hideOnClickOutside: {
42
+ type: Boolean,
43
+ default: !0
44
+ },
45
+ value: String,
46
+ offset: Number,
47
+ anchor: HTMLElement,
48
+ appendToBody: {
49
+ type: Boolean,
50
+ default: !0
51
+ }
52
+ },
53
+ data() {
54
+ return {
55
+ color: new s({ enableAlpha: !1 }),
56
+ showPicker: !1
57
+ };
58
+ },
59
+ watch: {
60
+ value: {
61
+ immediate: !0,
62
+ handler(e) {
63
+ e && e !== this.color.value && this.color.fromString(e);
64
+ }
65
+ },
66
+ visible: {
67
+ immediate: !0,
68
+ async handler(e) {
69
+ e ? (await this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = e;
70
+ }
71
+ }
72
+ },
73
+ methods: {
74
+ confirmValue() {
75
+ this.emitInput(this.color), this.$emit("pick", this.color.value), this.hide();
76
+ },
77
+ clearValue() {
78
+ this.$emit("clear"), this.hide();
79
+ },
80
+ emitInput(e) {
81
+ this.$emit("input", e.value);
82
+ },
83
+ onClickOutside() {
84
+ this.hideOnClickOutside && this.hide();
85
+ },
86
+ hide() {
87
+ this.$emit("update:visible", !1);
88
+ }
89
+ }
90
+ }, o = {};
91
+ var u = /* @__PURE__ */ n(
92
+ d,
93
+ c,
94
+ a,
95
+ !1,
96
+ p,
97
+ null,
98
+ null,
99
+ null
100
+ );
101
+ function p(e) {
102
+ for (let i in o)
103
+ this[i] = o[i];
104
+ }
105
+ const k = /* @__PURE__ */ function() {
106
+ return u.exports;
107
+ }();
108
+ export {
109
+ k as default
110
+ };
@@ -1 +1,57 @@
1
- import{c as e}from"../../chunks/65f4f4f2.js";import{n as o}from"../../chunks/6499de3a.js";const i={props:{type:{type:String,default:"danger"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,text:{type:String,default:"\u5220\u9664"},tag:{type:String,default:"ElButton"}}},r={name:"ConfirmButton",mixins:[e,i]};let a,l;const n={};var u=o(r,a,l,!1,s,null,null,null);function s(_){for(let t in n)this[t]=n[t]}var p=function(){return u.exports}();export{p as default};
1
+ import { c as e } from "../../chunks/7af3ceb1.js";
2
+ import { n as o } from "../../chunks/6499de3a.js";
3
+ const i = {
4
+ props: {
5
+ type: {
6
+ type: String,
7
+ default: "danger"
8
+ },
9
+ size: String,
10
+ icon: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ nativeType: {
15
+ type: String,
16
+ default: "button"
17
+ },
18
+ loading: Boolean,
19
+ disabled: Boolean,
20
+ plain: Boolean,
21
+ autofocus: Boolean,
22
+ round: Boolean,
23
+ text: {
24
+ type: String,
25
+ default: "\u5220\u9664"
26
+ },
27
+ tag: {
28
+ type: String,
29
+ default: "ElButton"
30
+ }
31
+ }
32
+ }, l = {
33
+ name: "ConfirmButton",
34
+ mixins: [e, i]
35
+ };
36
+ let r, a;
37
+ const n = {};
38
+ var u = /* @__PURE__ */ o(
39
+ l,
40
+ r,
41
+ a,
42
+ !1,
43
+ s,
44
+ null,
45
+ null,
46
+ null
47
+ );
48
+ function s(p) {
49
+ for (let t in n)
50
+ this[t] = n[t];
51
+ }
52
+ const f = /* @__PURE__ */ function() {
53
+ return u.exports;
54
+ }();
55
+ export {
56
+ f as default
57
+ };
@@ -1 +1,28 @@
1
- import{c as o}from"../../chunks/65f4f4f2.js";import{n as t}from"../../chunks/6499de3a.js";const r={name:"Confirmable",mixins:[o]};let _,i;const e={};var l=t(r,_,i,!1,s,null,null,null);function s(c){for(let n in e)this[n]=e[n]}var a=function(){return l.exports}();export{a as default};
1
+ import { c as o } from "../../chunks/7af3ceb1.js";
2
+ import { n as t } from "../../chunks/6499de3a.js";
3
+ const r = {
4
+ name: "Confirmable",
5
+ mixins: [o]
6
+ };
7
+ let _, i;
8
+ const e = {};
9
+ var s = /* @__PURE__ */ t(
10
+ r,
11
+ _,
12
+ i,
13
+ !1,
14
+ l,
15
+ null,
16
+ null,
17
+ null
18
+ );
19
+ function l(c) {
20
+ for (let n in e)
21
+ this[n] = e[n];
22
+ }
23
+ const u = /* @__PURE__ */ function() {
24
+ return s.exports;
25
+ }();
26
+ export {
27
+ u as default
28
+ };