hlrender 0.0.294 → 0.0.295
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/{_pdf-98100e69.js → _pdf-013c5e13.js} +7 -7
- package/{_txt-60276314.js → _txt-c8b4bede.js} +7 -7
- package/{_unsupport-ceb6d576.js → _unsupport-f7d2e6bc.js} +1 -1
- package/{affix-widget-c98e8da3.js → affix-widget-bba16424.js} +17 -17
- package/{alert-widget-0945cbd5.js → alert-widget-6dd0b2fa.js} +17 -17
- package/{anchor-widget-af4a9b75.js → anchor-widget-12ef6131.js} +14 -14
- package/{auto-complete-widget-e0f5c61d.js → auto-complete-widget-b93415c6.js} +17 -17
- package/{avatar-widget-2271739c.js → avatar-widget-0876cdf6.js} +17 -17
- package/{backtop-widget-d6435e9d.js → backtop-widget-df47e3c0.js} +17 -17
- package/{badge-widget-f180aff1.js → badge-widget-23a59e2a.js} +20 -20
- package/{barcode-widget-a7542823.js → barcode-widget-3f3c8034.js} +23 -23
- package/{baseImp-bde6d061.js → baseCommonField-c2a132bc.js} +3321 -3659
- package/baseDataType-af503f9f.js +4 -0
- package/{breadcrumb-widget-19c4d1cb.js → breadcrumb-widget-e6607a19.js} +14 -14
- package/{button-widget-64356b28.js → button-widget-96f338f7.js} +17 -17
- package/{cache-widget-24b2c545.js → cache-widget-55248be9.js} +16 -16
- package/{card-widget-2a63440a.js → card-widget-d8aa3bfc.js} +36 -36
- package/{carousel-widget-8e9f4e4a.js → carousel-widget-04bbc0ea.js} +15 -15
- package/{cascader-widget-f44c67e4.js → cascader-widget-445be0fb.js} +22 -22
- package/{chart-widget-b561fb94.js → chart-widget-17fb249b.js} +39 -39
- package/{checkbox-widget-d4d82de4.js → checkbox-widget-8fb1a06e.js} +16 -16
- package/{collapse-widget-88d38154.js → collapse-widget-a03aab9f.js} +15 -15
- package/{color-picker-widget-48f1f21b.js → color-picker-widget-54d62083.js} +16 -16
- package/{cont-cell-widget-e6f1f23f.js → cont-cell-widget-8b78509f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-3cef1846.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-df01b74e.js} +5 -5
- package/{cont-widget-242443bd.js → cont-widget-d6b8de57.js} +5 -5
- package/content-wrapper-7179adf7.js +17 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-300eb1df.js → content-wrapper.vue_vue_type_script_setup_true_lang-0ff5e6b6.js} +7 -7
- package/{countdown-widget-5d9eee99.js → countdown-widget-cfbbbcf7.js} +22 -22
- package/{cssClass-b6ffbe49.js → cssClass-22b82172.js} +2 -2
- package/{date-picker-range-widget-1d17c0b9.js → date-picker-range-widget-3b5c6b30.js} +33 -33
- package/{date-picker-widget-d4ae31b9.js → date-picker-widget-5fbdf144.js} +34 -34
- package/default-slot-widget-e8f0af5f.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e7ef56b2.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-89cd92f6.js} +7 -7
- package/{descriptions-widget-5d258add.js → descriptions-widget-29b846f3.js} +15 -15
- package/{dialog-5587563a.js → dialog-6ce4ec4d.js} +2 -2
- package/{dialog-widget-9ec264b9.js → dialog-widget-3ca10228.js} +16 -16
- package/{divider-widget-b892467d.js → divider-widget-5331c181.js} +17 -17
- package/{drag-wrapper-d0bb3542.js → drag-wrapper-26233757.js} +15 -15
- package/{drawer-widget-bacbf3b9.js → drawer-widget-f7e1999e.js} +16 -16
- package/{dropdown-widget-2891a654.js → dropdown-widget-a8212368.js} +18 -18
- package/{empty-widget-16da6341.js → empty-widget-bdadedc8.js} +17 -17
- package/{expression-b41be0ff.js → expression-2443dc1e.js} +1555 -1383
- package/feedback-widget-b05aed00.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-703d26c8.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-88314dd9.js} +6 -6
- package/{fieldobj-94bc6810.js → fieldobj-e86c52db.js} +1 -1
- package/{file-upload-widget-8972c42a.js → file-upload-widget-6e16f54e.js} +63 -63
- package/{form-item-wrapper-ac5a2e6c.js → form-item-wrapper-3ee6dc3f.js} +20 -20
- package/{form-widget-e911dd38.js → form-widget-48c38fde.js} +79 -80
- package/{global-provide-inject-d9978a87.js → globalProvideInject-af5ac9ca.js} +3251 -2918
- package/{grid-col-widget-0e95f478.js → grid-col-widget-58a0d1cb.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ccd59210.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4295e0db.js} +5 -5
- package/{grid-widget-c31ceb61.js → grid-widget-72fdf5b6.js} +5 -5
- package/{hcard-widget-9c42f69d.js → hcard-widget-ded3cb09.js} +26 -26
- package/{html-text-widget-324cc78f.js → html-text-widget-9bcad0c0.js} +15 -15
- package/icon-59a05cd7.js +443 -0
- package/{icon-widget-fda80b2f.js → icon-widget-faf382c4.js} +14 -14
- package/iframe-widget-346fc34a.js +131 -0
- package/{image-widget-91670b2a.js → image-widget-e1d8417c.js} +14 -14
- package/{index-9569518a.js → index-4feb900a.js} +8 -8
- package/{enum-type-2272b21a.js → index-efb59a41.js} +236 -230
- package/index-f1d89bf9.js +238 -0
- package/{input-number-widget-6af1a806.js → input-number-widget-54403c5a.js} +20 -20
- package/{input-tag-widget-e79e3ca8.js → input-tag-widget-90b052f2.js} +17 -17
- package/{input-widget-e900c408.js → input-widget-1f10477c.js} +17 -17
- package/{label-wrapper-d47b7510.js → label-wrapper-d53597ed.js} +6 -6
- package/{label-wrapper.vue_vue_type_style_index_0_lang-0cd2db40.js → label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js} +10 -10
- package/{link-widget-a83e8ad8.js → link-widget-f292713e.js} +17 -17
- package/{ltable-col-widget-32308922.js → ltable-col-widget-c6d79791.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8ffaa9bd.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ec0e162d.js} +9 -9
- package/{ltable-widget-01227068.js → ltable-widget-6317e3dd.js} +11 -11
- package/{mask-1d8061d6.js → mask-4a7b3f05.js} +1 -1
- package/{mention-widget-e4d14f9e.js → mention-widget-9a67d9b9.js} +17 -17
- package/{menu-widget-90a4e514.js → menu-widget-54832d22.js} +35 -35
- package/{model-widget-b2ab2a66.js → model-widget-12d7b5c6.js} +43 -43
- package/multirow-a7933e2a.js +235 -0
- package/{multirow-widget-6aeec74f.js → multirow-widget-9dbaaf3b.js} +45 -45
- package/package.json +1 -1
- package/{pagination-widget-3384acc8.js → pagination-widget-19e07f93.js} +14 -14
- package/{picture-upload-widget-0136854d.js → picture-upload-widget-91ac5961.js} +51 -51
- package/{progress-widget-6bb724f8.js → progress-widget-8285d220.js} +40 -40
- package/{qrcode-widget-67664447.js → qrcode-widget-8768fadb.js} +23 -23
- package/{radio-widget-a0f4c8b3.js → radio-widget-24625a8c.js} +16 -16
- package/{range-widget-95c81efd.js → range-widget-6a148c19.js} +23 -23
- package/{rate-widget-ca72a9c4.js → rate-widget-ddade3d7.js} +16 -16
- package/render.es.js +242 -240
- package/render.style.css +1 -1
- package/render.umd.js +359 -359
- package/{result-widget-a7e658a4.js → result-widget-8555b393.js} +15 -15
- package/{rich-editor-widget-07cec2b8.js → rich-editor-widget-3b1d1572.js} +21 -21
- package/{router-widget-a9b410cb.js → router-widget-c502fff7.js} +14 -14
- package/{segmented-widget-b6e628cd.js → segmented-widget-ae88e4e3.js} +32 -32
- package/{select-widget-4dfcfcc6.js → select-widget-35456918.js} +16 -16
- package/{sfc-37c9efec.js → sfc-88854d51.js} +137 -136
- package/{sfcview-31637b7c.js → sfcview-a6d34fe7.js} +20 -20
- package/share-field-5b8d348c.js +863 -0
- package/{share-file-9d953df4.js → share-file-b9b6df9d.js} +28 -29
- package/{skeleton-widget-9d7254e3.js → skeleton-widget-7cd026e6.js} +17 -17
- package/{skeletonItem-widget-e5e37d4b.js → skeletonItem-widget-62ebc963.js} +14 -14
- package/{slider-widget-f7a57876.js → slider-widget-11a26a3b.js} +16 -16
- package/{slot-16fbbcdc.js → slot-9c90ab7a.js} +6 -6
- package/{space-widget-58982bb0.js → space-widget-275b883e.js} +15 -15
- package/{splitter-widget-f0e0e551.js → splitter-widget-246cee74.js} +15 -15
- package/{static-text-widget-9cc64929.js → static-text-widget-580387f7.js} +15 -15
- package/{statistic-widget-54d155c0.js → statistic-widget-4190eaed.js} +17 -17
- package/{steps-widget-02981dd4.js → steps-widget-66d08511.js} +14 -14
- package/{subMenu-widget-e2597b01.js → subMenu-widget-b29e61fc.js} +9 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4276cd8e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js} +19 -20
- package/{switch-widget-d112fa32.js → switch-widget-8da4f2c4.js} +16 -16
- package/{tab-pane-widget-d58a494f.js → tab-pane-widget-d70dc524.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7f06dac7.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee3f66bd.js} +5 -5
- package/table-col-widget-566de20c.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-28606dc9.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-30b20027.js} +26 -27
- package/{table-widget-1943b520.js → table-widget-b1f7edeb.js} +45 -45
- package/{tabs-widget-a5481d38.js → tabs-widget-bb5c52de.js} +7 -7
- package/{tag-widget-6c5f2150.js → tag-widget-3c185f23.js} +17 -17
- package/{text-widget-7ebdc604.js → text-widget-c7386d8e.js} +17 -17
- package/{textarea-widget-3bb3df4b.js → textarea-widget-0fe10859.js} +16 -16
- package/{time-picker-range-widget-4f4a6335.js → time-picker-range-widget-77a300e1.js} +28 -29
- package/{time-picker-widget-ac27a332.js → time-picker-widget-3b22e5ee.js} +23 -23
- package/{time-select-widget-8a3e89ea.js → time-select-widget-a04bcbfb.js} +16 -16
- package/{timeline-widget-8821de41.js → timeline-widget-708d7749.js} +20 -20
- package/{tmpl-widget-b6dcd84c.js → tmpl-widget-c66af7cd.js} +28 -28
- package/{tooltip-widget-8a89701e.js → tooltip-widget-0cc7c09b.js} +15 -15
- package/{tour-widget-f01275ca.js → tour-widget-6218b953.js} +36 -36
- package/{transfer-widget-56f7d28a.js → transfer-widget-a3056089.js} +17 -17
- package/{tree-select-widget-bd90c0c0.js → tree-select-widget-fe844fb2.js} +16 -16
- package/{tree-widget-7163694c.js → tree-widget-342893a6.js} +24 -24
- package/uuid-1013bfdd.js +16 -0
- package/{verifycode-widget-774deadf.js → verifycode-widget-63f3390d.js} +39 -39
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js} +45 -46
- package/{wrapper-widget-fdc188cf.js → wrapper-widget-a3570b05.js} +7 -7
- package/content-wrapper-fea4fcf0.js +0 -17
- package/default-slot-widget-6796bb79.js +0 -27
- package/enum-type-6135428c.js +0 -271
- package/feedback-widget-35a1e6ae.js +0 -27
- package/icon-4e8380f7.js +0 -181
- package/iframe-widget-8f8f17f2.js +0 -131
- package/index-86338f51.js +0 -239
- package/multirow-4e9816b6.js +0 -236
- package/share-field-85f172d9.js +0 -874
- package/table-col-widget-613c082c.js +0 -23
- package/uuid-4c2ca70a.js +0 -199
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
2
|
var Fe = (t, i, s) => i in t ? Ve(t, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[i] = s;
|
|
3
3
|
var Y = (t, i, s) => (Fe(t, typeof i != "symbol" ? i + "" : i, s), s);
|
|
4
|
-
import {
|
|
5
|
-
import { B as w, P as M,
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { d as
|
|
4
|
+
import { f as Xe, i as Wt, h as J, H as Bt, o as H, d as B, j as mt, n as Ee, I as Ge, c as Kt, y as ke, k as Qe } from "./index-efb59a41.js";
|
|
5
|
+
import { W as R, B as w, P as M, o as Re, F as He, p as Je, c as gt, q as Ye, C as Ze } from "./baseCommonField-c2a132bc.js";
|
|
6
|
+
import { g as rt, B as F, s as _t, r as ti, C as Se } from "./expression-2443dc1e.js";
|
|
7
|
+
import { t as ei, e as Ae, i as $e, I as ii } from "./globalProvideInject-af5ac9ca.js";
|
|
8
|
+
import { H as Yt, d as Zt, ag as si } from "./icon-59a05cd7.js";
|
|
9
|
+
import { d as Ne } from "./slot-9c90ab7a.js";
|
|
10
10
|
import "vue";
|
|
11
|
-
import "./
|
|
11
|
+
import "./baseDataType-af503f9f.js";
|
|
12
12
|
import "axios";
|
|
13
|
-
import "./dialog-
|
|
13
|
+
import "./dialog-6ce4ec4d.js";
|
|
14
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./uuid-
|
|
15
|
+
import "./uuid-1013bfdd.js";
|
|
16
16
|
import "element-plus";
|
|
17
17
|
import "./source-map-b04aec4a.js";
|
|
18
18
|
import "./esprima-e8d15055.js";
|
|
@@ -165,7 +165,7 @@ function Ut() {
|
|
|
165
165
|
}, Tt.Output = s, Tt;
|
|
166
166
|
}
|
|
167
167
|
var Et = {}, ee;
|
|
168
|
-
function
|
|
168
|
+
function Ce() {
|
|
169
169
|
if (ee)
|
|
170
170
|
return Et;
|
|
171
171
|
ee = 1;
|
|
@@ -351,10 +351,10 @@ function ri() {
|
|
|
351
351
|
this.__parent_token && (i.parent = this.__parent_token), this.__tokens.push(i), this.__tokens_length += 1;
|
|
352
352
|
}, At.TokenStream = t, At;
|
|
353
353
|
}
|
|
354
|
-
var
|
|
354
|
+
var $t = {}, Nt = {}, re;
|
|
355
355
|
function bt() {
|
|
356
356
|
if (re)
|
|
357
|
-
return
|
|
357
|
+
return Nt;
|
|
358
358
|
re = 1;
|
|
359
359
|
function t(i, s) {
|
|
360
360
|
this._input = i, this._starting_pattern = null, this._match_pattern = null, this._until_pattern = null, this._until_after = !1, s && (this._starting_pattern = this._input.get_regexp(s._starting_pattern, !0), this._match_pattern = this._input.get_regexp(s._match_pattern, !0), this._until_pattern = this._input.get_regexp(s._until_pattern), this._until_after = s._until_after);
|
|
@@ -379,12 +379,12 @@ function bt() {
|
|
|
379
379
|
}, t.prototype._create = function() {
|
|
380
380
|
return new t(this._input, this);
|
|
381
381
|
}, t.prototype._update = function() {
|
|
382
|
-
},
|
|
382
|
+
}, Nt.Pattern = t, Nt;
|
|
383
383
|
}
|
|
384
384
|
var oe;
|
|
385
385
|
function oi() {
|
|
386
386
|
if (oe)
|
|
387
|
-
return
|
|
387
|
+
return $t;
|
|
388
388
|
oe = 1;
|
|
389
389
|
var t = bt().Pattern;
|
|
390
390
|
function i(s, e) {
|
|
@@ -417,14 +417,14 @@ function oi() {
|
|
|
417
417
|
for (var n = 0, r = [], u = s.exec(e); u; )
|
|
418
418
|
r.push(e.substring(n, u.index)), n = u.index + u[0].length, u = s.exec(e);
|
|
419
419
|
return n < e.length ? r.push(e.substring(n, e.length)) : r.push(""), r;
|
|
420
|
-
},
|
|
420
|
+
}, $t.WhitespacePattern = i, $t;
|
|
421
421
|
}
|
|
422
422
|
var le;
|
|
423
423
|
function dt() {
|
|
424
424
|
if (le)
|
|
425
425
|
return ut;
|
|
426
426
|
le = 1;
|
|
427
|
-
var t = qt().InputScanner, i =
|
|
427
|
+
var t = qt().InputScanner, i = Ce().Token, s = ri().TokenStream, e = oi().WhitespacePattern, n = {
|
|
428
428
|
START: "TK_START",
|
|
429
429
|
RAW: "TK_RAW",
|
|
430
430
|
EOF: "TK_EOF"
|
|
@@ -464,10 +464,10 @@ function dt() {
|
|
|
464
464
|
return this._patterns.whitespace.read();
|
|
465
465
|
}, ut.Tokenizer = r, ut.TOKEN = n, ut;
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var Ct = {}, ue;
|
|
468
468
|
function Vt() {
|
|
469
469
|
if (ue)
|
|
470
|
-
return
|
|
470
|
+
return Ct;
|
|
471
471
|
ue = 1;
|
|
472
472
|
function t(i, s) {
|
|
473
473
|
i = typeof i == "string" ? i : i.source, s = typeof s == "string" ? s : s.source, this.__directives_block_pattern = new RegExp(i + / beautify( \w+[:]\w+)+ /.source + s, "g"), this.__directive_pattern = / (\w+)[:](\w+)/g, this.__directives_end_ignore_pattern = new RegExp(i + /\sbeautify\signore:end\s/.source + s, "g");
|
|
@@ -482,7 +482,7 @@ function Vt() {
|
|
|
482
482
|
return s;
|
|
483
483
|
}, t.prototype.readIgnored = function(i) {
|
|
484
484
|
return i.readUntilAfter(this.__directives_end_ignore_pattern);
|
|
485
|
-
},
|
|
485
|
+
}, Ct.Directives = t, Ct;
|
|
486
486
|
}
|
|
487
487
|
var Pt = {}, pe;
|
|
488
488
|
function Le() {
|
|
@@ -576,9 +576,9 @@ function pt() {
|
|
|
576
576
|
START: s.START,
|
|
577
577
|
RAW: s.RAW,
|
|
578
578
|
EOF: s.EOF
|
|
579
|
-
}, x = new e(/\/\*/, /\*\//), y = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, b = /[0-9]/, v = /[^\d\.]/, A = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),
|
|
580
|
-
|
|
581
|
-
var
|
|
579
|
+
}, x = new e(/\/\*/, /\*\//), y = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, b = /[0-9]/, v = /[^\d\.]/, A = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), N = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
|
|
580
|
+
N = N.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), N = "\\?\\.(?!\\d) " + N, N = N.replace(/ /g, "|");
|
|
581
|
+
var C = new RegExp(N), p = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), _ = p.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), h = new RegExp("^(?:" + _.join("|") + ")$"), k, O = function(c, g) {
|
|
582
582
|
i.call(this, c, g), this._patterns.whitespace = this._patterns.whitespace.matching(
|
|
583
583
|
/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
|
|
584
584
|
/\u2028\u2029/.source
|
|
@@ -588,7 +588,7 @@ function pt() {
|
|
|
588
588
|
template: T,
|
|
589
589
|
identifier: T.starting_with(n.identifier).matching(n.identifierMatch),
|
|
590
590
|
number: f.matching(y),
|
|
591
|
-
punct: f.matching(
|
|
591
|
+
punct: f.matching(C),
|
|
592
592
|
// comment ends just before nearest linefeed or end of file
|
|
593
593
|
comment: f.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),
|
|
594
594
|
// /* ... */ comment ends with nearest */ or end of file
|
|
@@ -706,8 +706,8 @@ function pt() {
|
|
|
706
706
|
var f = "", T = this.__patterns.xml.read_match();
|
|
707
707
|
if (T) {
|
|
708
708
|
for (var a = T[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), d = a.indexOf("{") === 0, m = 0; T; ) {
|
|
709
|
-
var S = !!T[1],
|
|
710
|
-
if (!P && (
|
|
709
|
+
var S = !!T[1], $ = T[2], P = !!T[T.length - 1] || $.slice(0, 8) === "![CDATA[";
|
|
710
|
+
if (!P && ($ === a || d && $.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (S ? --m : ++m), f += T[0], m <= 0)
|
|
711
711
|
break;
|
|
712
712
|
T = this.__patterns.xml.read_match();
|
|
713
713
|
}
|
|
@@ -758,7 +758,7 @@ function li() {
|
|
|
758
758
|
if (fe)
|
|
759
759
|
return Ot;
|
|
760
760
|
fe = 1;
|
|
761
|
-
var t = Ut().Output, i =
|
|
761
|
+
var t = Ut().Output, i = Ce().Token, s = Pe(), e = je().Options, n = pt().Tokenizer, r = pt().line_starters, u = pt().positionable_operators, o = pt().TOKEN;
|
|
762
762
|
function l(a, d) {
|
|
763
763
|
return d.indexOf(a) !== -1;
|
|
764
764
|
}
|
|
@@ -776,7 +776,7 @@ function li() {
|
|
|
776
776
|
function v(a, d) {
|
|
777
777
|
return a && a.type === o.RESERVED && l(a.text, d);
|
|
778
778
|
}
|
|
779
|
-
var A = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"],
|
|
779
|
+
var A = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], N = ["before-newline", "after-newline", "preserve-newline"], C = y(N), p = [C.before_newline, C.preserve_newline], _ = {
|
|
780
780
|
BlockStatement: "BlockStatement",
|
|
781
781
|
// 'BLOCK'
|
|
782
782
|
Statement: "Statement",
|
|
@@ -819,8 +819,8 @@ function li() {
|
|
|
819
819
|
return !0;
|
|
820
820
|
}
|
|
821
821
|
function g(a, d) {
|
|
822
|
-
for (var m = 0, S = a.length,
|
|
823
|
-
if (
|
|
822
|
+
for (var m = 0, S = a.length, $; m < S; m++)
|
|
823
|
+
if ($ = a[m], $ && $.indexOf(d) !== 0)
|
|
824
824
|
return !1;
|
|
825
825
|
return !0;
|
|
826
826
|
}
|
|
@@ -882,8 +882,8 @@ function li() {
|
|
|
882
882
|
}, f.prototype.handle_whitespace_and_comments = function(a, d) {
|
|
883
883
|
var m = a.newlines, S = this._options.keep_array_indentation && O(this._flags.mode);
|
|
884
884
|
if (a.comments_before)
|
|
885
|
-
for (var
|
|
886
|
-
this.handle_whitespace_and_comments(
|
|
885
|
+
for (var $ = a.comments_before.next(); $; )
|
|
886
|
+
this.handle_whitespace_and_comments($, d), this.handle_token($, d), $ = a.comments_before.next();
|
|
887
887
|
if (S)
|
|
888
888
|
for (var P = 0; P < m; P += 1)
|
|
889
889
|
this.print_newline(P > 0, d);
|
|
@@ -898,8 +898,8 @@ function li() {
|
|
|
898
898
|
if (d = d === void 0 ? !1 : d, !this._output.just_added_newline()) {
|
|
899
899
|
var m = this._options.preserve_newlines && a.newlines || d, S = l(this._flags.last_token.text, u) || l(a.text, u);
|
|
900
900
|
if (S) {
|
|
901
|
-
var
|
|
902
|
-
m = m &&
|
|
901
|
+
var $ = l(this._flags.last_token.text, u) && l(this._options.operator_position, p) || l(a.text, u);
|
|
902
|
+
m = m && $;
|
|
903
903
|
}
|
|
904
904
|
if (m)
|
|
905
905
|
this.print_newline(!1, !0);
|
|
@@ -979,7 +979,7 @@ function li() {
|
|
|
979
979
|
this.handle_whitespace_and_comments(a);
|
|
980
980
|
var d = this._tokens.peek(), m = this._tokens.peek(1);
|
|
981
981
|
this._flags.last_word === "switch" && this._flags.last_token.type === o.END_EXPR ? (this.set_mode(_.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(_.BlockStatement) : m && (l(m.text, [":", ","]) && l(d.type, [o.STRING, o.WORD, o.RESERVED]) || l(d.text, ["get", "set", "..."]) && l(m.type, [o.WORD, o.RESERVED])) ? l(this._last_last_text, ["class", "interface"]) && !l(m.text, [":", ","]) ? this.set_mode(_.BlockStatement) : this.set_mode(_.ObjectLiteral) : this._flags.last_token.type === o.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(_.BlockStatement) : l(this._flags.last_token.type, [o.EQUALS, o.START_EXPR, o.COMMA, o.OPERATOR]) || v(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(_.ObjectLiteral) : this.set_mode(_.BlockStatement), this._flags.last_token && v(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
|
|
982
|
-
var S = !d.comments_before && d.text === "}",
|
|
982
|
+
var S = !d.comments_before && d.text === "}", $ = S && this._flags.last_word === "function" && this._flags.last_token.type === o.END_EXPR;
|
|
983
983
|
if (this._options.brace_preserve_inline) {
|
|
984
984
|
var P = 0, L = null;
|
|
985
985
|
this._flags.inline_frame = !0;
|
|
@@ -990,7 +990,7 @@ function li() {
|
|
|
990
990
|
}
|
|
991
991
|
while (L.type !== o.EOF && !(L.type === o.END_BLOCK && L.opened === a));
|
|
992
992
|
}
|
|
993
|
-
(this._options.brace_style === "expand" || this._options.brace_style === "none" && a.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && (
|
|
993
|
+
(this._options.brace_style === "expand" || this._options.brace_style === "none" && a.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && ($ || this._flags.last_token.type === o.EQUALS || v(this._flags.last_token, A) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (O(this._previous_flags.mode) && (this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.COMMA) && ((this._flags.last_token.type === o.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(a), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== o.OPERATOR && this._flags.last_token.type !== o.START_EXPR && (l(this._flags.last_token.type, [o.START_BLOCK, o.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(a), this.indent(), !S && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
|
|
994
994
|
}, f.prototype.handle_end_block = function(a) {
|
|
995
995
|
for (this.handle_whitespace_and_comments(a); this._flags.mode === _.Statement; )
|
|
996
996
|
this.restore_mode();
|
|
@@ -1072,35 +1072,35 @@ function li() {
|
|
|
1072
1072
|
this.print_token(a), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
|
-
var
|
|
1076
|
-
if (a.text === ":" ? this._flags.ternary_depth === 0 ?
|
|
1077
|
-
var
|
|
1075
|
+
var $ = !0, P = !0, L = !1;
|
|
1076
|
+
if (a.text === ":" ? this._flags.ternary_depth === 0 ? $ = !1 : (this._flags.ternary_depth -= 1, L = !0) : a.text === "?" && (this._flags.ternary_depth += 1), !m && !d && this._options.preserve_newlines && l(a.text, u)) {
|
|
1077
|
+
var q = a.text === ":", lt = q && L, wt = q && !L;
|
|
1078
1078
|
switch (this._options.operator_position) {
|
|
1079
|
-
case
|
|
1080
|
-
this._output.space_before_token = !wt, this.print_token(a), (!
|
|
1079
|
+
case C.before_newline:
|
|
1080
|
+
this._output.space_before_token = !wt, this.print_token(a), (!q || lt) && this.allow_wrap_or_preserved_newline(a), this._output.space_before_token = !0;
|
|
1081
1081
|
return;
|
|
1082
|
-
case
|
|
1083
|
-
this._output.space_before_token = !0, !
|
|
1082
|
+
case C.after_newline:
|
|
1083
|
+
this._output.space_before_token = !0, !q || lt ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(a) : this._output.space_before_token = !1, this.print_token(a), this._output.space_before_token = !0;
|
|
1084
1084
|
return;
|
|
1085
|
-
case
|
|
1086
|
-
wt || this.allow_wrap_or_preserved_newline(a),
|
|
1085
|
+
case C.preserve_newline:
|
|
1086
|
+
wt || this.allow_wrap_or_preserved_newline(a), $ = !(this._output.just_added_newline() || wt), this._output.space_before_token = $, this.print_token(a), this._output.space_before_token = !0;
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
if (d) {
|
|
1091
|
-
this.allow_wrap_or_preserved_newline(a),
|
|
1091
|
+
this.allow_wrap_or_preserved_newline(a), $ = !1;
|
|
1092
1092
|
var Ht = this._tokens.peek();
|
|
1093
1093
|
P = Ht && l(Ht.type, [o.WORD, o.RESERVED]);
|
|
1094
1094
|
} else if (a.text === "...")
|
|
1095
|
-
this.allow_wrap_or_preserved_newline(a),
|
|
1095
|
+
this.allow_wrap_or_preserved_newline(a), $ = this._flags.last_token.type === o.START_BLOCK, P = !1;
|
|
1096
1096
|
else if (l(a.text, ["--", "++", "!", "~"]) || m) {
|
|
1097
|
-
if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR) && this.allow_wrap_or_preserved_newline(a),
|
|
1097
|
+
if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR) && this.allow_wrap_or_preserved_newline(a), $ = !1, P = !1, a.newlines && (a.text === "--" || a.text === "++" || a.text === "~")) {
|
|
1098
1098
|
var Jt = v(this._flags.last_token, A) && a.newlines;
|
|
1099
1099
|
Jt && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(Jt, !0);
|
|
1100
1100
|
}
|
|
1101
|
-
this._flags.last_token.text === ";" && E(this._flags.mode) && (
|
|
1101
|
+
this._flags.last_token.text === ";" && E(this._flags.mode) && ($ = !0), this._flags.last_token.type === o.RESERVED ? $ = !0 : this._flags.last_token.type === o.END_EXPR ? $ = !(this._flags.last_token.text === "]" && (a.text === "--" || a.text === "++")) : this._flags.last_token.type === o.OPERATOR && ($ = l(a.text, ["--", "-", "++", "+"]) && l(this._flags.last_token.text, ["--", "-", "++", "+"]), l(a.text, ["+", "-"]) && l(this._flags.last_token.text, ["--", "++"]) && (P = !0)), (this._flags.mode === _.BlockStatement && !this._flags.inline_frame || this._flags.mode === _.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
|
|
1102
1102
|
}
|
|
1103
|
-
this._output.space_before_token = this._output.space_before_token ||
|
|
1103
|
+
this._output.space_before_token = this._output.space_before_token || $, this.print_token(a), this._output.space_before_token = P;
|
|
1104
1104
|
}, f.prototype.handle_block_comment = function(a, d) {
|
|
1105
1105
|
if (this._output.raw) {
|
|
1106
1106
|
this._output.add_raw_token(a), a.directives && a.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
|
|
@@ -1116,10 +1116,10 @@ function li() {
|
|
|
1116
1116
|
} else
|
|
1117
1117
|
this.print_block_commment(a, d);
|
|
1118
1118
|
}, f.prototype.print_block_commment = function(a, d) {
|
|
1119
|
-
var m = k(a.text), S,
|
|
1119
|
+
var m = k(a.text), S, $ = !1, P = !1, L = a.whitespace_before, q = L.length;
|
|
1120
1120
|
if (this.print_newline(!1, d), this.print_token_line_indentation(a), this._output.add_token(m[0]), this.print_newline(!1, d), m.length > 1) {
|
|
1121
|
-
for (m = m.slice(1),
|
|
1122
|
-
|
|
1121
|
+
for (m = m.slice(1), $ = c(m, "*"), P = g(m, L), $ && (this._flags.alignment = 1), S = 0; S < m.length; S++)
|
|
1122
|
+
$ ? (this.print_token_line_indentation(a), this._output.add_token(x(m[S]))) : P && m[S] ? (this.print_token_line_indentation(a), this._output.add_token(m[S].substring(q))) : (this._output.current_line.set_indent(-1), this._output.add_token(m[S])), this.print_newline(!1, d);
|
|
1123
1123
|
this._flags.alignment = 0;
|
|
1124
1124
|
}
|
|
1125
1125
|
}, f.prototype.handle_comment = function(a, d) {
|
|
@@ -1212,23 +1212,23 @@ function hi() {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
return A;
|
|
1214
1214
|
}, b.prototype.eatWhitespace = function(v) {
|
|
1215
|
-
for (var A = o.test(this._input.peek()),
|
|
1215
|
+
for (var A = o.test(this._input.peek()), N = 0; o.test(this._input.peek()); )
|
|
1216
1216
|
this._ch = this._input.next(), v && this._ch === `
|
|
1217
|
-
` && (
|
|
1217
|
+
` && (N === 0 || N < this._options.max_preserve_newlines) && (N++, this._output.add_new_line(!0));
|
|
1218
1218
|
return A;
|
|
1219
1219
|
}, b.prototype.foundNestedPseudoClass = function() {
|
|
1220
|
-
for (var v = 0, A = 1,
|
|
1221
|
-
if (
|
|
1220
|
+
for (var v = 0, A = 1, N = this._input.peek(A); N; ) {
|
|
1221
|
+
if (N === "{")
|
|
1222
1222
|
return !0;
|
|
1223
|
-
if (
|
|
1223
|
+
if (N === "(")
|
|
1224
1224
|
v += 1;
|
|
1225
|
-
else if (
|
|
1225
|
+
else if (N === ")") {
|
|
1226
1226
|
if (v === 0)
|
|
1227
1227
|
return !1;
|
|
1228
1228
|
v -= 1;
|
|
1229
|
-
} else if (
|
|
1229
|
+
} else if (N === ";" || N === "}")
|
|
1230
1230
|
return !1;
|
|
1231
|
-
A++,
|
|
1231
|
+
A++, N = this._input.peek(A);
|
|
1232
1232
|
}
|
|
1233
1233
|
return !1;
|
|
1234
1234
|
}, b.prototype.print_string = function(v) {
|
|
@@ -1246,9 +1246,9 @@ function hi() {
|
|
|
1246
1246
|
A === "auto" && (A = `
|
|
1247
1247
|
`, v && r.test(v || "") && (A = v.match(r)[0])), v = v.replace(u, `
|
|
1248
1248
|
`);
|
|
1249
|
-
var
|
|
1250
|
-
this._output = new i(this._options,
|
|
1251
|
-
for (var
|
|
1249
|
+
var N = v.match(/^[\t ]*/)[0];
|
|
1250
|
+
this._output = new i(this._options, N), this._input = new s(v), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
|
|
1251
|
+
for (var C = 0, p = !1, _ = !1, h = !1, k = !1, O = !1, E = this._ch, c = !1, g, f, T; g = this._input.read(l), f = g !== "", T = E, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), E = this._ch, this._ch; )
|
|
1252
1252
|
if (this._ch === "/" && this._input.peek() === "*") {
|
|
1253
1253
|
this._output.add_new_line(), this._input.back();
|
|
1254
1254
|
var a = this._input.read(x), d = n.get_directives(a);
|
|
@@ -1258,14 +1258,14 @@ function hi() {
|
|
|
1258
1258
|
else if (this._ch === "$") {
|
|
1259
1259
|
this.preserveSingleSpace(f), this.print_string(this._ch);
|
|
1260
1260
|
var m = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
|
1261
|
-
m.match(/[ :]$/) && (m = this.eatString(": ").replace(/\s$/, ""), this.print_string(m), this._output.space_before_token = !0), m = m.replace(/\s$/, ""),
|
|
1261
|
+
m.match(/[ :]$/) && (m = this.eatString(": ").replace(/\s$/, ""), this.print_string(m), this._output.space_before_token = !0), m = m.replace(/\s$/, ""), C === 0 && m.indexOf(":") !== -1 && (_ = !0, this.indent());
|
|
1262
1262
|
} else if (this._ch === "@")
|
|
1263
1263
|
if (this.preserveSingleSpace(f), this._input.peek() === "{")
|
|
1264
1264
|
this.print_string(this._ch + this.eatString("}"));
|
|
1265
1265
|
else {
|
|
1266
1266
|
this.print_string(this._ch);
|
|
1267
1267
|
var S = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
|
1268
|
-
S.match(/[ :]$/) && (S = this.eatString(": ").replace(/\s$/, ""), this.print_string(S), this._output.space_before_token = !0), S = S.replace(/\s$/, ""),
|
|
1268
|
+
S.match(/[ :]$/) && (S = this.eatString(": ").replace(/\s$/, ""), this.print_string(S), this._output.space_before_token = !0), S = S.replace(/\s$/, ""), C === 0 && S.indexOf(":") !== -1 ? (_ = !0, this.indent()) : S in this.NESTED_AT_RULE ? (this._nestedLevel += 1, S in this.CONDITIONAL_GROUP_RULE && (h = !0)) : C === 0 && !_ && (k = !0);
|
|
1269
1269
|
}
|
|
1270
1270
|
else if (this._ch === "#" && this._input.peek() === "{")
|
|
1271
1271
|
this.preserveSingleSpace(f), this.print_string(this._ch + this.eatString("}"));
|
|
@@ -1274,29 +1274,29 @@ function hi() {
|
|
|
1274
1274
|
else if (this._ch === "}")
|
|
1275
1275
|
this.outdent(), this._output.add_new_line(), T === "{" && this._output.trim(!0), _ && (this.outdent(), _ = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
|
|
1276
1276
|
else if (this._ch === ":") {
|
|
1277
|
-
for (var
|
|
1278
|
-
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[
|
|
1277
|
+
for (var $ = 0; $ < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; $++)
|
|
1278
|
+
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[$])) {
|
|
1279
1279
|
c = !0;
|
|
1280
1280
|
break;
|
|
1281
1281
|
}
|
|
1282
|
-
(p || h) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !k &&
|
|
1282
|
+
(p || h) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !k && C === 0 ? (this.print_string(":"), _ || (_ = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
|
|
1283
1283
|
} else if (this._ch === '"' || this._ch === "'") {
|
|
1284
1284
|
var P = T === '"' || T === "'";
|
|
1285
1285
|
this.preserveSingleSpace(P || f), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
|
|
1286
1286
|
} else if (this._ch === ";")
|
|
1287
|
-
c = !1,
|
|
1287
|
+
c = !1, C === 0 ? (_ && (this.outdent(), _ = !1), k = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
|
|
1288
1288
|
else if (this._ch === "(")
|
|
1289
1289
|
if (this._input.lookBack("url"))
|
|
1290
|
-
this.print_string(this._ch), this.eatWhitespace(),
|
|
1290
|
+
this.print_string(this._ch), this.eatWhitespace(), C++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), C && (C--, this.outdent()));
|
|
1291
1291
|
else {
|
|
1292
1292
|
var L = !1;
|
|
1293
|
-
this._input.lookBack("with") && (L = !0), this.preserveSingleSpace(f || L), this.print_string(this._ch), _ && T === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), O = !0) : (this.eatWhitespace(),
|
|
1293
|
+
this._input.lookBack("with") && (L = !0), this.preserveSingleSpace(f || L), this.print_string(this._ch), _ && T === "$" && this._options.selector_separator_newline ? (this._output.add_new_line(), O = !0) : (this.eatWhitespace(), C++, this.indent());
|
|
1294
1294
|
}
|
|
1295
1295
|
else if (this._ch === ")")
|
|
1296
|
-
|
|
1296
|
+
C && (C--, this.outdent()), O && this._input.peek() === ";" && this._options.selector_separator_newline && (O = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
|
|
1297
1297
|
else if (this._ch === ",")
|
|
1298
|
-
this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!_ || O) &&
|
|
1299
|
-
else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !_ &&
|
|
1298
|
+
this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!_ || O) && C === 0 && !k ? this._output.add_new_line() : this._output.space_before_token = !0;
|
|
1299
|
+
else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !_ && C === 0)
|
|
1300
1300
|
this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
|
|
1301
1301
|
else if (this._ch === "]")
|
|
1302
1302
|
this.print_string(this._ch);
|
|
@@ -1307,8 +1307,8 @@ function hi() {
|
|
|
1307
1307
|
else if (this._ch === "!" && !this._input.lookBack("\\"))
|
|
1308
1308
|
this._output.space_before_token = !0, this.print_string(this._ch);
|
|
1309
1309
|
else {
|
|
1310
|
-
var
|
|
1311
|
-
this.preserveSingleSpace(
|
|
1310
|
+
var q = T === '"' || T === "'";
|
|
1311
|
+
this.preserveSingleSpace(q || f), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === `
|
|
1312
1312
|
` && c && this._output.add_new_line();
|
|
1313
1313
|
}
|
|
1314
1314
|
var lt = this._output.get_code(A);
|
|
@@ -1677,8 +1677,8 @@ function di() {
|
|
|
1677
1677
|
var k = this;
|
|
1678
1678
|
if (_.text !== "") {
|
|
1679
1679
|
var O = _.text, E, c = 1, g = "", f = "";
|
|
1680
|
-
h.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? E = this._js_beautify : h.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? E = this._css_beautify : h.custom_beautifier_name === "html" && (E = function(
|
|
1681
|
-
var L = new v(
|
|
1680
|
+
h.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? E = this._js_beautify : h.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? E = this._css_beautify : h.custom_beautifier_name === "html" && (E = function($, P) {
|
|
1681
|
+
var L = new v($, P, k._js_beautify, k._css_beautify);
|
|
1682
1682
|
return L.beautify();
|
|
1683
1683
|
}), this._options.indent_scripts === "keep" ? c = 0 : this._options.indent_scripts === "separate" && (c = -p.indent_level);
|
|
1684
1684
|
var T = p.get_full_indent(c);
|
|
@@ -1751,7 +1751,7 @@ function di() {
|
|
|
1751
1751
|
}, v.prototype._calcluate_parent_multiline = function(p, _) {
|
|
1752
1752
|
_.parent && p._output.just_added_newline() && !((_.is_inline_element || _.is_unformatted) && _.parent.is_inline_element) && (_.parent.multiline_content = !0);
|
|
1753
1753
|
};
|
|
1754
|
-
var
|
|
1754
|
+
var N = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], C = ["a", "audio", "del", "ins", "map", "noscript", "video"];
|
|
1755
1755
|
return v.prototype._do_optional_end_element = function(p) {
|
|
1756
1756
|
var _ = null;
|
|
1757
1757
|
if (!(p.is_empty_element || !p.is_start_tag || !p.parent)) {
|
|
@@ -1761,9 +1761,9 @@ function di() {
|
|
|
1761
1761
|
_ = _ || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
|
|
1762
1762
|
else if (p.tag_name === "dd" || p.tag_name === "dt")
|
|
1763
1763
|
_ = _ || this._tag_stack.try_pop("dt", ["dl"]), _ = _ || this._tag_stack.try_pop("dd", ["dl"]);
|
|
1764
|
-
else if (p.parent.tag_name === "p" &&
|
|
1764
|
+
else if (p.parent.tag_name === "p" && N.indexOf(p.tag_name) !== -1) {
|
|
1765
1765
|
var h = p.parent.parent;
|
|
1766
|
-
(!h ||
|
|
1766
|
+
(!h || C.indexOf(h.tag_name) === -1) && (_ = _ || this._tag_stack.try_pop("p"));
|
|
1767
1767
|
} else
|
|
1768
1768
|
p.tag_name === "rp" || p.tag_name === "rt" ? (_ = _ || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), _ = _ || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : p.tag_name === "optgroup" ? _ = _ || this._tag_stack.try_pop("optgroup", ["select"]) : p.tag_name === "option" ? _ = _ || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : p.tag_name === "colgroup" ? _ = _ || this._tag_stack.try_pop("caption", ["table"]) : p.tag_name === "thead" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"])) : p.tag_name === "tbody" || p.tag_name === "tfoot" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"]), _ = _ || this._tag_stack.try_pop("thead", ["table"]), _ = _ || this._tag_stack.try_pop("tbody", ["table"])) : p.tag_name === "tr" ? (_ = _ || this._tag_stack.try_pop("caption", ["table"]), _ = _ || this._tag_stack.try_pop("colgroup", ["table"]), _ = _ || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (p.tag_name === "th" || p.tag_name === "td") && (_ = _ || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), _ = _ || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
|
|
1769
1769
|
return p.parent = this._tag_stack.get_parser_token(), _;
|
|
@@ -1807,6 +1807,7 @@ function gi() {
|
|
|
1807
1807
|
e.js_beautify = e.js, e.css_beautify = e.css, e.html_beautify = e.html, s.exports = i(e, e, e);
|
|
1808
1808
|
})(t);
|
|
1809
1809
|
})(ai);
|
|
1810
|
+
var W = /* @__PURE__ */ ((t) => (t.typescript = "typescript", t.javascript = "javascript", t.css = "css", t.html = "html", t.json = "json", t.sql = "sql", t.text = "text", t))(W || {});
|
|
1810
1811
|
const Mt = {
|
|
1811
1812
|
html: {
|
|
1812
1813
|
indent_size: "2",
|
|
@@ -1868,13 +1869,13 @@ const Mt = {
|
|
|
1868
1869
|
};
|
|
1869
1870
|
function ft(t, i) {
|
|
1870
1871
|
switch (t) {
|
|
1871
|
-
case
|
|
1872
|
+
case W.html:
|
|
1872
1873
|
return it.html(i, Mt.html);
|
|
1873
|
-
case
|
|
1874
|
+
case W.css:
|
|
1874
1875
|
return it.css(i, Mt.css);
|
|
1875
|
-
case
|
|
1876
|
+
case W.javascript:
|
|
1876
1877
|
return it.js(i, Mt.js);
|
|
1877
|
-
case
|
|
1878
|
+
case W.json: {
|
|
1878
1879
|
var s = Xe(i);
|
|
1879
1880
|
return Wt(s) && i ? i : J(s, void 0, " ");
|
|
1880
1881
|
}
|
|
@@ -1913,7 +1914,7 @@ const bi = (t) => {
|
|
|
1913
1914
|
return { [i]: Wt(s) ? null : s };
|
|
1914
1915
|
}
|
|
1915
1916
|
}, Be = (t) => {
|
|
1916
|
-
var i =
|
|
1917
|
+
var i = $e(t);
|
|
1917
1918
|
return We(i);
|
|
1918
1919
|
}, We = (t) => {
|
|
1919
1920
|
let i = {};
|
|
@@ -1932,7 +1933,7 @@ const bi = (t) => {
|
|
|
1932
1933
|
}, Ft = (t) => {
|
|
1933
1934
|
var n;
|
|
1934
1935
|
let i = {};
|
|
1935
|
-
|
|
1936
|
+
ei(t, (r) => {
|
|
1936
1937
|
B(i, bi(r));
|
|
1937
1938
|
});
|
|
1938
1939
|
const s = We(t);
|
|
@@ -1983,7 +1984,7 @@ const bi = (t) => {
|
|
|
1983
1984
|
if (o.formItemFlag)
|
|
1984
1985
|
x = { [l]: yi(o) };
|
|
1985
1986
|
else if (o.type !== R.form) {
|
|
1986
|
-
var y =
|
|
1987
|
+
var y = $e(o);
|
|
1987
1988
|
x = Xt(y);
|
|
1988
1989
|
}
|
|
1989
1990
|
B(n, x);
|
|
@@ -2036,7 +2037,7 @@ const bi = (t) => {
|
|
|
2036
2037
|
}`;
|
|
2037
2038
|
return `
|
|
2038
2039
|
export default {
|
|
2039
|
-
${[Bt(l) ? void 0 : ` props: {${l}}`, b, y, x].filter((
|
|
2040
|
+
${[Bt(l) ? void 0 : ` props: {${l}}`, b, y, x].filter((N) => !mt(N)).join(",")}
|
|
2040
2041
|
}`;
|
|
2041
2042
|
}, wi = function(t, i, s) {
|
|
2042
2043
|
var p, _, h;
|
|
@@ -2048,13 +2049,13 @@ const bi = (t) => {
|
|
|
2048
2049
|
` : void 0, v = y ? `onMounted(()=>{
|
|
2049
2050
|
${y}
|
|
2050
2051
|
pageMounted(props.ctx);}
|
|
2051
|
-
});` : void 0, A = "const props=defineProps({ctx:{type:Object},viewParams:{type:String}});",
|
|
2052
|
+
});` : void 0, A = "const props=defineProps({ctx:{type:Object},viewParams:{type:String}});", N = Bt(r) ? void 0 : o.join(`
|
|
2052
2053
|
`);
|
|
2053
|
-
return `${(h = [l, A,
|
|
2054
|
+
return `${(h = [l, A, N, b, v].filter((k) => !mt(k))) == null ? void 0 : h.join(`
|
|
2054
2055
|
`)}
|
|
2055
2056
|
`;
|
|
2056
2057
|
};
|
|
2057
|
-
class
|
|
2058
|
+
class K {
|
|
2058
2059
|
constructor() {
|
|
2059
2060
|
Y(this, "exContent");
|
|
2060
2061
|
Y(this, "tag");
|
|
@@ -2069,7 +2070,7 @@ const Oi = (t) => {
|
|
|
2069
2070
|
}, Ti = (t) => {
|
|
2070
2071
|
var s;
|
|
2071
2072
|
return Se((s = H(t)) == null ? void 0 : s.map((e) => t[e] ? `${e}="${t[e]}"` : ""), " ");
|
|
2072
|
-
}, Ei = (t, i) => `<el-row ${
|
|
2073
|
+
}, Ei = (t, i) => `<el-row ${z(t)}>
|
|
2073
2074
|
${t.cols.map((n) => ki(n, i)).join("")}
|
|
2074
2075
|
</el-row>
|
|
2075
2076
|
`, ki = (t, i) => {
|
|
@@ -2082,13 +2083,13 @@ const Oi = (t) => {
|
|
|
2082
2083
|
const n = yt(t, i);
|
|
2083
2084
|
return vt(t, { wdName: "el-col", props: n });
|
|
2084
2085
|
}, Ri = (t, i) => `<div class="table-container">
|
|
2085
|
-
<table ${
|
|
2086
|
+
<table ${z(t, "table-layout")}>
|
|
2086
2087
|
<tbody>
|
|
2087
2088
|
${t.rows.map((n) => Si(n, i)).join("")}
|
|
2088
2089
|
</tbody>
|
|
2089
2090
|
</table>
|
|
2090
2091
|
</div>`, Si = (t, i) => `<tr>${t.cols.filter((s) => !s.merged).map((s) => Ai(s, i)).join("")}</tr>`, Ai = (t, i) => {
|
|
2091
|
-
const s = t.options, e =
|
|
2092
|
+
const s = t.options, e = z(t);
|
|
2092
2093
|
["colspan", "rowspan"].forEach((o) => {
|
|
2093
2094
|
let l = w.getOptions(t, o);
|
|
2094
2095
|
const x = Qe(l) && !isNaN(l) && l !== 1 ? l : "";
|
|
@@ -2097,8 +2098,8 @@ const Oi = (t) => {
|
|
|
2097
2098
|
const r = yt(t, i);
|
|
2098
2099
|
let u = [];
|
|
2099
2100
|
return s.cellWidth && u.push("width: " + s.cellWidth + " !important"), s.cellHeight && u.push("height: " + s.cellHeight + " !important"), vt(t, { wdName: "td", props: r, classAttr: e, styleArray: u });
|
|
2100
|
-
},
|
|
2101
|
-
const s =
|
|
2101
|
+
}, $i = (t, i) => {
|
|
2102
|
+
const s = z(t), e = t.tabs && t.tabs.length > 0 ? `v-model="${w.getName(t)}ActiveTab"` : "", n = yt(t, i);
|
|
2102
2103
|
return `
|
|
2103
2104
|
<el-tabs ${e} type="${t.displayType}" ${n} ${s}>
|
|
2104
2105
|
${t.tabs.map((u) => {
|
|
@@ -2111,18 +2112,18 @@ const Oi = (t) => {
|
|
|
2111
2112
|
}).join("")}
|
|
2112
2113
|
</el-tabs>
|
|
2113
2114
|
`;
|
|
2114
|
-
},
|
|
2115
|
+
}, Ni = (t) => {
|
|
2115
2116
|
var n;
|
|
2116
2117
|
const { slots: i } = gt(t, void 0, { s_slots: !0 });
|
|
2117
2118
|
var s = [
|
|
2118
2119
|
D("header", w.getOptions(t, "label")),
|
|
2119
|
-
D("default", X((n =
|
|
2120
|
+
D("default", X((n = Ne(i.value, "default")) == null ? void 0 : n.widgetList), !0)
|
|
2120
2121
|
];
|
|
2121
2122
|
let e = {
|
|
2122
2123
|
exContent: s.join("")
|
|
2123
2124
|
};
|
|
2124
2125
|
return I(t, e);
|
|
2125
|
-
},
|
|
2126
|
+
}, Ci = (t) => {
|
|
2126
2127
|
const i = w.getOptions(t, "label"), s = w.getOptions(t, "labelTooltip"), e = w.getOptions(t, "labelIconClass"), n = w.getOptions(t, "labelIconPosition");
|
|
2127
2128
|
if (!s && !e)
|
|
2128
2129
|
return i;
|
|
@@ -2130,13 +2131,13 @@ const Oi = (t) => {
|
|
|
2130
2131
|
return o ? F(o, "<template #label>", "</template>") : i;
|
|
2131
2132
|
}, Pi = (t, i) => {
|
|
2132
2133
|
var o;
|
|
2133
|
-
const s =
|
|
2134
|
+
const s = z(t), e = w.getOptions(t, "modelName") || w.getName(t), n = t.widgetList && t.widgetList.length > 0 ? `:model="${e}"` : "", r = yt(t, {});
|
|
2134
2135
|
return `
|
|
2135
2136
|
<el-form ${n} ${r} ${s}>
|
|
2136
2137
|
${(o = t.widgetList) == null ? void 0 : o.map((l) => {
|
|
2137
|
-
const x = w.getOptions(l, "labelHidden"), y = w.getOptions(l, "label"), b = w.getOptions(l, "labelWidth"), v = w.getOptions(l, "labelPosition"), A = x ? "" : y,
|
|
2138
|
+
const x = w.getOptions(l, "labelHidden"), y = w.getOptions(l, "label"), b = w.getOptions(l, "labelWidth"), v = w.getOptions(l, "labelPosition"), A = x ? "" : y, N = x ? 'label-width="0"' : b ? `label-width="${b}"` : "", C = !x && v ? `label-position="${v}"` : "", p = Ci(l);
|
|
2138
2139
|
let _ = X([l], i);
|
|
2139
|
-
const h = ` prop="${w.getName(t)}"`, k = `<el-form-item label="${A}" ${
|
|
2140
|
+
const h = ` prop="${w.getName(t)}"`, k = `<el-form-item label="${A}" ${N} ${C} ${s} ${h}>
|
|
2140
2141
|
${p}
|
|
2141
2142
|
${_}
|
|
2142
2143
|
</el-form-item>`;
|
|
@@ -2146,7 +2147,7 @@ const Oi = (t) => {
|
|
|
2146
2147
|
`;
|
|
2147
2148
|
}, ji = (t) => `${t.cols.map((s) => Gt(s)).join("")}`, Gt = (t) => {
|
|
2148
2149
|
var b, v;
|
|
2149
|
-
const i = t, s = `${M.getValue(i.partName)}`, e = `${M.getValue(i.direction)}`, n = `${M.getValue(i.cellWidth)}`, r = `${M.getValue(i.cellHeight)}`, u =
|
|
2150
|
+
const i = t, s = `${M.getValue(i.partName)}`, e = `${M.getValue(i.direction)}`, n = `${M.getValue(i.cellWidth)}`, r = `${M.getValue(i.cellHeight)}`, u = z({ type: R.contCell, options: i }), o = { width: n, height: r }, l = { direction: e }, x = `el-${s}`;
|
|
2150
2151
|
return x ? `
|
|
2151
2152
|
<${x} ${u} ${Ti(l)} ${Oi(o)}>
|
|
2152
2153
|
${(v = (b = t == null ? void 0 : t.children) == null ? void 0 : b.map((A) => Gt(A))) == null ? void 0 : v.join("")}
|
|
@@ -2161,28 +2162,28 @@ const Oi = (t) => {
|
|
|
2161
2162
|
return `<el-radio-group ${s}>${e}</el-radio-group>`;
|
|
2162
2163
|
};
|
|
2163
2164
|
function Ii(t) {
|
|
2164
|
-
const i = w.getOptions(t, "buttonStyle") ? "el-radio-button" : "el-radio", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, n = new
|
|
2165
|
+
const i = w.getOptions(t, "buttonStyle") ? "el-radio-button" : "el-radio", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, n = new K();
|
|
2165
2166
|
return n.tag = i, n.autoProp = !1, n.exContent = "{{item.label}}", n.exProp = [
|
|
2166
2167
|
s,
|
|
2167
2168
|
e,
|
|
2168
2169
|
j("item.value", ":label"),
|
|
2169
2170
|
j(w.getOptions(t, "disabled") ? "true" : "item.disabled", ":disabled"),
|
|
2170
2171
|
j(w.getOptions(t, "border") ? "true" : "item.border", ":border")
|
|
2171
|
-
].join(" "),
|
|
2172
|
+
].join(" "), U(t, n);
|
|
2172
2173
|
}
|
|
2173
2174
|
const Mi = (t, i) => {
|
|
2174
2175
|
const s = G(t, i), e = Bi(t);
|
|
2175
2176
|
return `<el-checkbox-group ${s}>${e}</el-checkbox-group>`;
|
|
2176
2177
|
};
|
|
2177
2178
|
function Bi(t) {
|
|
2178
|
-
const i = w.getOptions(t, "buttonStyle") ? "el-checkbox-button" : "el-checkbox", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, n = new
|
|
2179
|
+
const i = w.getOptions(t, "buttonStyle") ? "el-checkbox-button" : "el-checkbox", s = w.getOptions(t, "border") ? "border" : "", e = `style="display: ${w.getOptions(t, "displayStyle")}"`, n = new K();
|
|
2179
2180
|
return n.tag = i, n.autoProp = !1, n.exContent = "{{item.label}}", n.exProp = [
|
|
2180
2181
|
s,
|
|
2181
2182
|
e,
|
|
2182
2183
|
j("item.value", ":label"),
|
|
2183
2184
|
j(w.getOptions(t, "disabled") ? "true" : "item.disabled", ":disabled"),
|
|
2184
2185
|
j(w.getOptions(t, "border") ? "true" : "item.border", ":border")
|
|
2185
|
-
].join(" "),
|
|
2186
|
+
].join(" "), U(t, n);
|
|
2186
2187
|
}
|
|
2187
2188
|
const Wi = (t, i) => {
|
|
2188
2189
|
const s = G(t, i), e = Ki(t);
|
|
@@ -2199,8 +2200,8 @@ function Ki(t) {
|
|
|
2199
2200
|
}) ? zi(t) : Ui(t) : "";
|
|
2200
2201
|
}
|
|
2201
2202
|
function Ui(t) {
|
|
2202
|
-
const i = "el-option", s = new
|
|
2203
|
-
return s.tag = i, s.autoProp = !0,
|
|
2203
|
+
const i = "el-option", s = new K();
|
|
2204
|
+
return s.tag = i, s.autoProp = !0, U(t, s);
|
|
2204
2205
|
}
|
|
2205
2206
|
function zi(t) {
|
|
2206
2207
|
var i = w.getOptions(t, rt.optionItems);
|
|
@@ -2229,7 +2230,7 @@ function Te(t) {
|
|
|
2229
2230
|
`;
|
|
2230
2231
|
}
|
|
2231
2232
|
const Vi = (t, i) => {
|
|
2232
|
-
const s =
|
|
2233
|
+
const s = z(t, "");
|
|
2233
2234
|
var e = w.getOptions(t, rt.optionItems);
|
|
2234
2235
|
const n = G(t, i);
|
|
2235
2236
|
return `
|
|
@@ -2243,7 +2244,7 @@ const Vi = (t, i) => {
|
|
|
2243
2244
|
delete s.children;
|
|
2244
2245
|
const e = Kt({ type: R.eltableCol, options: s }), n = G(e, i), { slots: r } = gt(e, void 0, { s_slots: !0 });
|
|
2245
2246
|
var u = [
|
|
2246
|
-
D("default", X((l =
|
|
2247
|
+
D("default", X((l = Ne(r.value, "default")) == null ? void 0 : l.widgetList), !1)
|
|
2247
2248
|
];
|
|
2248
2249
|
return `
|
|
2249
2250
|
<el-table-column ${n}>
|
|
@@ -2292,7 +2293,7 @@ const Vi = (t, i) => {
|
|
|
2292
2293
|
let n = {
|
|
2293
2294
|
exProp: [
|
|
2294
2295
|
`:options="${w.getOptions(t, "name")}Options"`,
|
|
2295
|
-
`:props="${
|
|
2296
|
+
`:props="${ti(J(e), '"', "'")}"`
|
|
2296
2297
|
].join(" ")
|
|
2297
2298
|
};
|
|
2298
2299
|
return I(t, n);
|
|
@@ -2307,7 +2308,7 @@ const Vi = (t, i) => {
|
|
|
2307
2308
|
};
|
|
2308
2309
|
return I(t, s);
|
|
2309
2310
|
}, ts = (t) => I(t, { tag: "iframe", autoProp: !0 }), es = (t) => {
|
|
2310
|
-
const i = w.getOptions(t, "label"), s =
|
|
2311
|
+
const i = w.getOptions(t, "label"), s = z(t, "");
|
|
2311
2312
|
return `<router-view name="${i}" :key="$route.fullPath" ${s}></router-view>`;
|
|
2312
2313
|
};
|
|
2313
2314
|
function is(t) {
|
|
@@ -2318,8 +2319,8 @@ function is(t) {
|
|
|
2318
2319
|
V("name", "item?.name"),
|
|
2319
2320
|
V("label", "item?.label")
|
|
2320
2321
|
];
|
|
2321
|
-
const n = new
|
|
2322
|
-
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""),
|
|
2322
|
+
const n = new K();
|
|
2323
|
+
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""), U(t, n);
|
|
2323
2324
|
}
|
|
2324
2325
|
const ss = (t) => {
|
|
2325
2326
|
t.options;
|
|
@@ -2340,8 +2341,8 @@ function ns(t) {
|
|
|
2340
2341
|
], e = [
|
|
2341
2342
|
'v-bind="item"'
|
|
2342
2343
|
];
|
|
2343
|
-
const n = new
|
|
2344
|
-
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""),
|
|
2344
|
+
const n = new K();
|
|
2345
|
+
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""), U(t, n);
|
|
2345
2346
|
}
|
|
2346
2347
|
function as(t) {
|
|
2347
2348
|
const i = ot(t);
|
|
@@ -2352,8 +2353,8 @@ function as(t) {
|
|
|
2352
2353
|
'v-bind="item"',
|
|
2353
2354
|
V("name", "item?.value")
|
|
2354
2355
|
];
|
|
2355
|
-
const n = new
|
|
2356
|
-
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""),
|
|
2356
|
+
const n = new K();
|
|
2357
|
+
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""), U(t, n);
|
|
2357
2358
|
}
|
|
2358
2359
|
const _s = (t) => {
|
|
2359
2360
|
const i = rs(t), s = w.getOptions(t, "title"), e = w.getOptions(t, "extra");
|
|
@@ -2373,16 +2374,16 @@ function rs(t) {
|
|
|
2373
2374
|
'<div v-html="item?.content"></div>',
|
|
2374
2375
|
D("label", "{{item?.label}}")
|
|
2375
2376
|
];
|
|
2376
|
-
const e = new
|
|
2377
|
-
return e.tag = i, e.autoProp = !0, e.exContent = s.join(""),
|
|
2377
|
+
const e = new K();
|
|
2378
|
+
return e.tag = i, e.autoProp = !0, e.exContent = s.join(""), U(t, e);
|
|
2378
2379
|
}
|
|
2379
2380
|
function os(t) {
|
|
2380
2381
|
const i = ot(t);
|
|
2381
2382
|
var s = [
|
|
2382
2383
|
`<a :href="item.to" :target="item.replace===true?'_self':'_blank'">{{ item.label }}</a>`
|
|
2383
2384
|
];
|
|
2384
|
-
const e = new
|
|
2385
|
-
return e.tag = i, e.autoProp = !1, e.exContent = s.join(""),
|
|
2385
|
+
const e = new K();
|
|
2386
|
+
return e.tag = i, e.autoProp = !1, e.exContent = s.join(""), U(t, e);
|
|
2386
2387
|
}
|
|
2387
2388
|
function qe(t) {
|
|
2388
2389
|
if (!(t != null && t.length))
|
|
@@ -2418,8 +2419,8 @@ function ps(t) {
|
|
|
2418
2419
|
], e = [
|
|
2419
2420
|
V("status", "item?.status")
|
|
2420
2421
|
];
|
|
2421
|
-
const n = new
|
|
2422
|
-
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""),
|
|
2422
|
+
const n = new K();
|
|
2423
|
+
return n.tag = i, n.autoProp = !1, n.exContent = s.join(""), n.exProp = e.join(""), U(t, n);
|
|
2423
2424
|
}
|
|
2424
2425
|
const hs = (t) => I(t, { tag: "div", exContent: w.getOptions(t, "content"), autoProp: !1 }), fs = (t) => {
|
|
2425
2426
|
var i = t == null ? void 0 : t.options;
|
|
@@ -2429,17 +2430,17 @@ const hs = (t) => I(t, { tag: "div", exContent: w.getOptions(t, "content"), auto
|
|
|
2429
2430
|
const e = i == null ? void 0 : i.exContent, n = i == null ? void 0 : i.tag, r = i == null ? void 0 : i.exProp, u = i == null ? void 0 : i.autoProp, o = s == null ? void 0 : s.readonly, l = w.getOptions(t, "content"), x = w.getOptions(t, "label"), y = w.getOptions(t, "name"), b = t == null ? void 0 : t.formItemFlag, v = Qt(t, s);
|
|
2430
2431
|
let A = u !== !1 ? (k = (h = Object.values(v)) == null ? void 0 : h.filter((E) => !!E)) == null ? void 0 : k.join(" ") : "";
|
|
2431
2432
|
A = [r || "", A || ""].join(" ");
|
|
2432
|
-
const { originSlots:
|
|
2433
|
+
const { originSlots: N } = gt(t, void 0, { s_slots: !0 }), C = (O = N.value) == null ? void 0 : O.map((E) => {
|
|
2433
2434
|
var c;
|
|
2434
2435
|
return ((c = E == null ? void 0 : E.widgetList) == null ? void 0 : c.length) > 0 ? vt(E, { wdName: "template", props: `#${E == null ? void 0 : E.slotName}` }) : D(E == null ? void 0 : E.slotName, Ye(E.default) || E.default || ((E == null ? void 0 : E.slotName) == _t.default ? l || x : ""));
|
|
2435
2436
|
}).join(" ");
|
|
2436
|
-
let p = [e,
|
|
2437
|
+
let p = [e, C].join(" ");
|
|
2437
2438
|
if (o && b)
|
|
2438
2439
|
return `<span>{{${y}}}</span>`;
|
|
2439
2440
|
const _ = n || `el-${t == null ? void 0 : t.type}`;
|
|
2440
2441
|
return `<${_} ${A}>${p}</${_}>`;
|
|
2441
2442
|
};
|
|
2442
|
-
function
|
|
2443
|
+
function U(t, i) {
|
|
2443
2444
|
const s = i.autoProp !== !1 ? 'v-bind="item"' : "";
|
|
2444
2445
|
return `
|
|
2445
2446
|
<${i.tag} v-for="(item, index) in ${w.getOptions(t, "name")}Options" :key="index" ${s || ""} ${i.exProp || ""}>
|
|
@@ -2468,7 +2469,7 @@ const ot = (t) => `el-${t == null ? void 0 : t.type}-item`, et = (t) => {
|
|
|
2468
2469
|
}
|
|
2469
2470
|
return I(t, { exContent: i });
|
|
2470
2471
|
};
|
|
2471
|
-
function
|
|
2472
|
+
function z(t, i = "") {
|
|
2472
2473
|
const s = t == null ? void 0 : t.options;
|
|
2473
2474
|
let e = [];
|
|
2474
2475
|
i && i !== "" && e.push(i);
|
|
@@ -2476,7 +2477,7 @@ function U(t, i = "") {
|
|
|
2476
2477
|
return n && Array.isArray(n) && n.length > 0 && e.push(Array.from(n).join(" ")), e.length > 0 ? `class="${e.join(" ")}"` : "";
|
|
2477
2478
|
}
|
|
2478
2479
|
const vt = (t, i) => {
|
|
2479
|
-
const s =
|
|
2480
|
+
const s = z(t) || "", e = (i == null ? void 0 : i.wdName) || "", n = i == null ? void 0 : i.styleArray, r = (i == null ? void 0 : i.classAttr) || "", u = (i == null ? void 0 : i.props) || "";
|
|
2480
2481
|
let o = (n == null ? void 0 : n.length) > 0 ? `style="${n == null ? void 0 : n.join(";")}"` : "";
|
|
2481
2482
|
return e ? `
|
|
2482
2483
|
<${e} ${s} ${o} ${r} ${u}>
|
|
@@ -2487,11 +2488,11 @@ const vt = (t, i) => {
|
|
|
2487
2488
|
`;
|
|
2488
2489
|
}, ds = () => {
|
|
2489
2490
|
var t = {};
|
|
2490
|
-
return t[R.grid + ""] = Ei, t[R.table + ""] = Ri, t[R.tabs + ""] =
|
|
2491
|
+
return t[R.grid + ""] = Ei, t[R.table + ""] = Ri, t[R.tabs + ""] = $i, t[R.cont + ""] = ji, t[R.contCell + ""] = Gt, t[R.form + ""] = Pi, t;
|
|
2491
2492
|
}, ms = ds(), X = (t, i) => {
|
|
2492
2493
|
var s = [];
|
|
2493
2494
|
return t == null || t.forEach((e) => {
|
|
2494
|
-
e.category ===
|
|
2495
|
+
e.category === Ze.container ? s.push(gs(e, i)) : s.push(ys(e, i));
|
|
2495
2496
|
}), s.length ? s.join(`
|
|
2496
2497
|
`) : "";
|
|
2497
2498
|
}, gs = (t, i) => {
|
|
@@ -2568,7 +2569,7 @@ const vt = (t, i) => {
|
|
|
2568
2569
|
}, bs = () => {
|
|
2569
2570
|
var s, e;
|
|
2570
2571
|
var t = {};
|
|
2571
|
-
(s =
|
|
2572
|
+
(s = ii(R)) == null || s.filter((n) => ![R.range, R.multirow].includes(n.label)).forEach((n) => {
|
|
2572
2573
|
t[n.label] = cs;
|
|
2573
2574
|
});
|
|
2574
2575
|
const i = {
|
|
@@ -2586,7 +2587,7 @@ const vt = (t, i) => {
|
|
|
2586
2587
|
[R.staticText]: hs,
|
|
2587
2588
|
[R.htmlText]: fs,
|
|
2588
2589
|
[R.eltable]: Vi,
|
|
2589
|
-
[R.card]:
|
|
2590
|
+
[R.card]: Ni,
|
|
2590
2591
|
[R.router]: es,
|
|
2591
2592
|
[R.descriptions]: _s,
|
|
2592
2593
|
[R.dropdown]: ss,
|
|
@@ -2633,7 +2634,7 @@ const vt = (t, i) => {
|
|
|
2633
2634
|
return "";
|
|
2634
2635
|
}, Ks = (t, i, s = !1, e = !1, n = {}) => {
|
|
2635
2636
|
var r = ws(i, e), u = s ? wi(t, i, n) : xi(t, i, n), o = Os(t), l = Ts(t, i, s);
|
|
2636
|
-
const x = ft(
|
|
2637
|
+
const x = ft(W.html, r), y = ft(W.javascript, u), b = ft(W.css, o), v = ft(W.css, l);
|
|
2637
2638
|
return `
|
|
2638
2639
|
${F(x, "<template>", "</template>", void 0, !0)}
|
|
2639
2640
|
${F(y, `<script${s ? " setup" : ""}>`, "<\/script>", void 0, !0)}
|