@vc-shell/framework 1.1.16 → 1.1.17

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 (176) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/core/composables/useDynamicProperties/index.ts +19 -0
  3. package/dist/core/composables/useDynamicProperties/index.d.ts +2 -0
  4. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  5. package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
  6. package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
  7. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  8. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  9. package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
  10. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  11. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  12. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  13. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  14. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  15. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  18. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  19. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  20. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  21. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  22. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  23. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  24. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  25. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  26. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  27. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  28. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  29. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
  30. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  31. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +6 -0
  32. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
  33. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  34. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  35. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  36. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  37. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  38. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  39. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  40. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  41. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  42. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  43. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  44. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
  45. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  46. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  47. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts +2 -0
  48. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  49. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  50. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  51. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  52. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  53. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  54. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  55. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  56. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  57. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  58. package/package.json +4 -4
  59. package/shared/modules/dynamic/components/fields/DynamicProperty.ts +11 -4
  60. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +13 -0
  61. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +43 -6
  62. package/dist/apl-B2DGVGxc.js +0 -76
  63. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  64. package/dist/asn1-jKiBa2Ya.js +0 -95
  65. package/dist/asterisk-DS281yxp.js +0 -271
  66. package/dist/brainfuck-C_p9pTT8.js +0 -34
  67. package/dist/clike-DGTaUp48.js +0 -620
  68. package/dist/clojure-CCKyeQKf.js +0 -800
  69. package/dist/cmake-CuaCgAKt.js +0 -28
  70. package/dist/cobol-BlTKFDRj.js +0 -72
  71. package/dist/coffeescript-BVCvwO8I.js +0 -179
  72. package/dist/commonlisp-D_kxz07b.js +0 -75
  73. package/dist/crystal-D309uH6_.js +0 -217
  74. package/dist/css-BkF-NPzE.js +0 -1553
  75. package/dist/cypher-BMq4Fwjl.js +0 -68
  76. package/dist/d-BZcgY6La.js +0 -127
  77. package/dist/diff-Cg9d_RX2.js +0 -18
  78. package/dist/dockerfile-DIy8NleC.js +0 -194
  79. package/dist/dtd-CtLokQ-U.js +0 -84
  80. package/dist/dylan-QYeExnWK.js +0 -234
  81. package/dist/ebnf-DUPDuY4r.js +0 -78
  82. package/dist/ecl-CiXN-g_D.js +0 -121
  83. package/dist/eiffel-yQhjl4T1.js +0 -110
  84. package/dist/elm-CNT9vbN0.js +0 -108
  85. package/dist/erlang-CFOYdy9e.js +0 -487
  86. package/dist/factor-DDOC7X6P.js +0 -65
  87. package/dist/fcl-CPC2WYrI.js +0 -103
  88. package/dist/forth-BmxRyE9S.js +0 -60
  89. package/dist/fortran-9bvPyrOW.js +0 -442
  90. package/dist/framework.js +0 -290
  91. package/dist/gas-cpmYfFX2.js +0 -183
  92. package/dist/gherkin-CJuwpceU.js +0 -34
  93. package/dist/groovy-DZeT_VM-.js +0 -146
  94. package/dist/haskell-Bvt3Qq1t.js +0 -375
  95. package/dist/haxe-70NVW1pR.js +0 -359
  96. package/dist/http-D9LttvKF.js +0 -44
  97. package/dist/idl-B6TRFYjl.js +0 -947
  98. package/dist/index-BM57ACvV.js +0 -288
  99. package/dist/index-BNnWb4d2.js +0 -58
  100. package/dist/index-BX16sgSt.js +0 -299
  101. package/dist/index-BcycCrhu.js +0 -75
  102. package/dist/index-BsgNPf1t.js +0 -268
  103. package/dist/index-Bu2q0_3Y.js +0 -249
  104. package/dist/index-C29QNU9R.js +0 -341
  105. package/dist/index-C4hgh3UO.js +0 -71
  106. package/dist/index-CZUA_odG.js +0 -147409
  107. package/dist/index-DCpm6RA0.js +0 -134
  108. package/dist/index-DLq0u-Q_.js +0 -538
  109. package/dist/index-DMnyda0K.js +0 -93
  110. package/dist/index-DUFYvPbO.js +0 -156
  111. package/dist/index-DaUvPRtj.js +0 -611
  112. package/dist/index-DcBib1nM.js +0 -308
  113. package/dist/index-IcBXwZve.js +0 -137
  114. package/dist/index-bDzs_LWh.js +0 -98
  115. package/dist/index.css +0 -9
  116. package/dist/javascript-C2yteZeJ.js +0 -691
  117. package/dist/jinja2-DnB6dQmV.js +0 -154
  118. package/dist/julia-DpvXAuO6.js +0 -241
  119. package/dist/livescript-CanGTf8u.js +0 -272
  120. package/dist/lua-XplVlWi_.js +0 -217
  121. package/dist/mathematica-jaRHnSxC.js +0 -35
  122. package/dist/mbox-BctzC1hL.js +0 -76
  123. package/dist/mirc-CFBPAOaF.js +0 -72
  124. package/dist/mllike-BSnXJBGA.js +0 -272
  125. package/dist/modelica-vUgVs--1.js +0 -93
  126. package/dist/mscgen-Cpl0NYLN.js +0 -104
  127. package/dist/mumps-CQoS1kWX.js +0 -25
  128. package/dist/nginx-zDPm3Z74.js +0 -89
  129. package/dist/nsis-fePjrhq7.js +0 -62
  130. package/dist/ntriples-CsNjv2QF.js +0 -79
  131. package/dist/octave-C8PmmSRH.js +0 -143
  132. package/dist/oz-Ce8aN8oE.js +0 -151
  133. package/dist/pascal-De0D6mP7.js +0 -77
  134. package/dist/perl-B4bSCe1C.js +0 -915
  135. package/dist/pig-D24Z8EXi.js +0 -54
  136. package/dist/powershell-DkYVfTzP.js +0 -249
  137. package/dist/properties-Dn9wna3M.js +0 -26
  138. package/dist/protobuf-BPIjwpzm.js +0 -49
  139. package/dist/pug-CwAQJzGR.js +0 -248
  140. package/dist/puppet-nyd4dhjf.js +0 -45
  141. package/dist/python-BkR3uSy8.js +0 -313
  142. package/dist/q-DXjKs-tC.js +0 -83
  143. package/dist/r-LKEuhEGI.js +0 -104
  144. package/dist/rpm-IznJm2Xc.js +0 -57
  145. package/dist/ruby-CcYfvIk6.js +0 -228
  146. package/dist/sas-7E8yHoCW.js +0 -105
  147. package/dist/scheme-DjibxsNh.js +0 -124
  148. package/dist/shell-C0C2sNA_.js +0 -182
  149. package/dist/sieve-Bwz7vjP5.js +0 -72
  150. package/dist/simple-mode-B0dvCdAA.js +0 -89
  151. package/dist/smalltalk-Bhddl2pB.js +0 -48
  152. package/dist/solr-BNlsLglM.js +0 -41
  153. package/dist/sparql-FarWu_Gb.js +0 -197
  154. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  155. package/dist/sql-CfG5lQ3l.js +0 -282
  156. package/dist/stex-Du4h4KAU.js +0 -129
  157. package/dist/stylus-CAdqWld3.js +0 -250
  158. package/dist/swift-DSxqR9R6.js +0 -230
  159. package/dist/tcl-xfoLljhY.js +0 -81
  160. package/dist/textile-D1AWE-pc.js +0 -295
  161. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  162. package/dist/tiki-__Kn3CeS.js +0 -181
  163. package/dist/toml-BHiuTcfn.js +0 -49
  164. package/dist/troff-D2UO-fKf.js +0 -35
  165. package/dist/ttcn-Bsa4sfRm.js +0 -123
  166. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  167. package/dist/turtle-xwJUxoPV.js +0 -80
  168. package/dist/vb-c2kQGd6-.js +0 -74
  169. package/dist/vbscript-1f_Dhg5H.js +0 -324
  170. package/dist/velocity-DJd0pTTC.js +0 -96
  171. package/dist/verilog-CiS1jyi5.js +0 -262
  172. package/dist/vhdl-T9HkrbI2.js +0 -106
  173. package/dist/webidl-CjfDENEo.js +0 -155
  174. package/dist/xquery-BUQdORAS.js +0 -422
  175. package/dist/yacas-C0absKBh.js +0 -73
  176. package/dist/z80-Pki2zAjW.js +0 -61
@@ -1,308 +0,0 @@
1
- import { b as G, E as A, s as N, C as I, t as p, o as Y, a as j, L as U, g as k, q as Z, i as B, f as D, u as M } from "./index-CZUA_odG.js";
2
- const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
3
- function re(e) {
4
- return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
5
- }
6
- function ne(e) {
7
- return e == 9 || e == 10 || e == 13 || e == 32;
8
- }
9
- let Q = null, V = null, X = 0;
10
- function W(e, t) {
11
- let o = e.pos + t;
12
- if (V == e && X == o) return Q;
13
- for (; ne(e.peek(t)); ) t++;
14
- let O = "";
15
- for (; ; ) {
16
- let r = e.peek(t);
17
- if (!re(r)) break;
18
- O += String.fromCharCode(r), t++;
19
- }
20
- return V = e, X = o, Q = O || null;
21
- }
22
- function _(e, t) {
23
- this.name = e, this.parent = t;
24
- }
25
- const ae = new I({
26
- start: null,
27
- shift(e, t, o, O) {
28
- return t == h ? new _(W(O, 1) || "", e) : e;
29
- },
30
- reduce(e, t) {
31
- return t == Oe && e ? e.parent : e;
32
- },
33
- reuse(e, t, o, O) {
34
- let r = t.type.id;
35
- return r == h || r == oe ? new _(W(O, 1) || "", e) : e;
36
- },
37
- strict: !1
38
- }), le = new A((e, t) => {
39
- if (e.next == 60) {
40
- if (e.advance(), e.next == 47) {
41
- e.advance();
42
- let o = W(e, 0);
43
- if (!o) return e.acceptToken(H);
44
- if (t.context && o == t.context.name) return e.acceptToken(F);
45
- for (let O = t.context; O; O = O.parent) if (O.name == o) return e.acceptToken(L, -2);
46
- e.acceptToken(K);
47
- } else if (e.next != 33 && e.next != 63)
48
- return e.acceptToken(h);
49
- }
50
- }, { contextual: !0 });
51
- function y(e, t) {
52
- return new A((o) => {
53
- let O = 0, r = t.charCodeAt(0);
54
- e: for (; !(o.next < 0); o.advance(), O++)
55
- if (o.next == r) {
56
- for (let a = 1; a < t.length; a++)
57
- if (o.peek(a) != t.charCodeAt(a)) continue e;
58
- break;
59
- }
60
- O && o.acceptToken(e);
61
- });
62
- }
63
- const se = y(J, "-->"), ie = y(ee, "?>"), ce = y(te, "]]>"), $e = N({
64
- Text: p.content,
65
- "StartTag StartCloseTag EndTag SelfCloseEndTag": p.angleBracket,
66
- TagName: p.tagName,
67
- "MismatchedCloseTag/TagName": [p.tagName, p.invalid],
68
- AttributeName: p.attributeName,
69
- AttributeValue: p.attributeValue,
70
- Is: p.definitionOperator,
71
- "EntityReference CharacterReference": p.character,
72
- Comment: p.blockComment,
73
- ProcessingInst: p.processingInstruction,
74
- DoctypeDecl: p.documentMeta,
75
- Cdata: p.special(p.string)
76
- }), me = G.deserialize({
77
- version: 14,
78
- states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G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qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",
81
- nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
82
- maxTerm: 50,
83
- context: ae,
84
- nodeProps: [
85
- ["closedBy", 1, "SelfCloseEndTag EndTag", 13, "CloseTag MissingCloseTag"],
86
- ["openedBy", 12, "StartTag StartCloseTag", 19, "OpenTag", 20, "StartTag"],
87
- ["isolate", -6, 13, 18, 19, 21, 22, 24, ""]
88
- ],
89
- propSources: [$e],
90
- skippedNodes: [0],
91
- repeatNodeCount: 9,
92
- tokenData: "!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o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'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",
93
- tokenizers: [le, se, ie, ce, 0, 1, 2, 3, 4],
94
- topRules: { Document: [0, 6] },
95
- tokenPrec: 0
96
- });
97
- function T(e, t) {
98
- let o = t && t.getChild("TagName");
99
- return o ? e.sliceString(o.from, o.to) : "";
100
- }
101
- function P(e, t) {
102
- let o = t && t.firstChild;
103
- return !o || o.name != "OpenTag" ? "" : T(e, o);
104
- }
105
- function Se(e, t, o) {
106
- let O = t && t.getChildren("Attribute").find((a) => a.from <= o && a.to >= o), r = O && O.getChild("AttributeName");
107
- return r ? e.sliceString(r.from, r.to) : "";
108
- }
109
- function C(e) {
110
- for (let t = e && e.parent; t; t = t.parent)
111
- if (t.name == "Element")
112
- return t;
113
- return null;
114
- }
115
- function ge(e, t) {
116
- var o;
117
- let O = k(e).resolveInner(t, -1), r = null;
118
- for (let a = O; !r && a.parent; a = a.parent)
119
- (a.name == "OpenTag" || a.name == "CloseTag" || a.name == "SelfClosingTag" || a.name == "MismatchedCloseTag") && (r = a);
120
- if (r && (r.to > t || r.lastChild.type.isError)) {
121
- let a = r.parent;
122
- if (O.name == "TagName")
123
- return r.name == "CloseTag" || r.name == "MismatchedCloseTag" ? { type: "closeTag", from: O.from, context: a } : { type: "openTag", from: O.from, context: C(a) };
124
- if (O.name == "AttributeName")
125
- return { type: "attrName", from: O.from, context: r };
126
- if (O.name == "AttributeValue")
127
- return { type: "attrValue", from: O.from, context: r };
128
- let s = O == r || O.name == "Attribute" ? O.childBefore(t) : O;
129
- return s?.name == "StartTag" ? { type: "openTag", from: t, context: C(a) } : s?.name == "StartCloseTag" && s.to <= t ? { type: "closeTag", from: t, context: a } : s?.name == "Is" ? { type: "attrValue", from: t, context: r } : s ? { type: "attrName", from: t, context: r } : null;
130
- } else if (O.name == "StartCloseTag")
131
- return { type: "closeTag", from: t, context: O.parent };
132
- for (; O.parent && O.to == t && !(!((o = O.lastChild) === null || o === void 0) && o.type.isError); )
133
- O = O.parent;
134
- return O.name == "Element" || O.name == "Text" || O.name == "Document" ? { type: "tag", from: t, context: O.name == "Element" ? O : C(O) } : null;
135
- }
136
- class ue {
137
- constructor(t, o, O) {
138
- this.attrs = o, this.attrValues = O, this.children = [], this.name = t.name, this.completion = Object.assign(Object.assign({ type: "type" }, t.completion || {}), { label: this.name }), this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name }), this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 }), this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" }), this.text = t.textContent ? t.textContent.map((r) => ({ label: r, type: "text" })) : [];
139
- }
140
- }
141
- const b = /^[:\-\.\w\u00b7-\uffff]*$/;
142
- function E(e) {
143
- return Object.assign(Object.assign({ type: "property" }, e.completion || {}), { label: e.name });
144
- }
145
- function R(e) {
146
- return typeof e == "string" ? { label: `"${e}"`, type: "constant" } : /^"/.test(e.label) ? e : Object.assign(Object.assign({}, e), { label: `"${e.label}"` });
147
- }
148
- function pe(e, t) {
149
- let o = [], O = [], r = /* @__PURE__ */ Object.create(null);
150
- for (let n of t) {
151
- let m = E(n);
152
- o.push(m), n.global && O.push(m), n.values && (r[n.name] = n.values.map(R));
153
- }
154
- let a = [], s = [], f = /* @__PURE__ */ Object.create(null);
155
- for (let n of e) {
156
- let m = O, c = r;
157
- n.attributes && (m = m.concat(n.attributes.map((l) => typeof l == "string" ? o.find((d) => d.label == l) || { label: l, type: "property" } : (l.values && (c == r && (c = Object.create(c)), c[l.name] = l.values.map(R)), E(l)))));
158
- let u = new ue(n, m, c);
159
- f[u.name] = u, a.push(u), n.top && s.push(u);
160
- }
161
- s.length || (s = a);
162
- for (let n = 0; n < a.length; n++) {
163
- let m = e[n], c = a[n];
164
- if (m.children)
165
- for (let u of m.children)
166
- f[u] && c.children.push(f[u]);
167
- else
168
- c.children = a;
169
- }
170
- return (n) => {
171
- var m;
172
- let { doc: c } = n.state, u = ge(n.state, n.pos);
173
- if (!u || u.type == "tag" && !n.explicit)
174
- return null;
175
- let { type: l, from: d, context: S } = u;
176
- if (l == "openTag") {
177
- let i = s, $ = P(c, S);
178
- if ($) {
179
- let g = f[$];
180
- i = g?.children || a;
181
- }
182
- return {
183
- from: d,
184
- options: i.map((g) => g.completion),
185
- validFor: b
186
- };
187
- } else if (l == "closeTag") {
188
- let i = P(c, S);
189
- return i ? {
190
- from: d,
191
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == ">" ? 1 : 0),
192
- options: [((m = f[i]) === null || m === void 0 ? void 0 : m.closeNameCompletion) || { label: i + ">", type: "type" }],
193
- validFor: b
194
- } : null;
195
- } else if (l == "attrName") {
196
- let i = f[T(c, S)];
197
- return {
198
- from: d,
199
- options: i?.attrs || O,
200
- validFor: b
201
- };
202
- } else if (l == "attrValue") {
203
- let i = Se(c, S, d);
204
- if (!i)
205
- return null;
206
- let $ = f[T(c, S)], g = ($?.attrValues || r)[i];
207
- return !g || !g.length ? null : {
208
- from: d,
209
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == '"' ? 1 : 0),
210
- options: g,
211
- validFor: /^"[^"]*"?$/
212
- };
213
- } else if (l == "tag") {
214
- let i = P(c, S), $ = f[i], g = [], q = S && S.lastChild;
215
- i && (!q || q.name != "CloseTag" || T(c, q) != i) && g.push($ ? $.closeCompletion : { label: "</" + i + ">", type: "type", boost: 2 });
216
- let v = g.concat(($?.children || (S ? a : s)).map((x) => x.openCompletion));
217
- if (S && $?.text.length) {
218
- let x = S.firstChild;
219
- x.to > n.pos - 20 && !/\S/.test(n.state.sliceDoc(x.to, n.pos)) && (v = v.concat($.text));
220
- }
221
- return {
222
- from: d,
223
- options: v,
224
- validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
225
- };
226
- } else
227
- return null;
228
- };
229
- }
230
- const w = /* @__PURE__ */ j.define({
231
- name: "xml",
232
- parser: /* @__PURE__ */ me.configure({
233
- props: [
234
- /* @__PURE__ */ B.add({
235
- Element(e) {
236
- let t = /^\s*<\//.test(e.textAfter);
237
- return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
238
- },
239
- "OpenTag CloseTag SelfClosingTag"(e) {
240
- return e.column(e.node.from) + e.unit;
241
- }
242
- }),
243
- /* @__PURE__ */ D.add({
244
- Element(e) {
245
- let t = e.firstChild, o = e.lastChild;
246
- return !t || t.name != "OpenTag" ? null : { from: t.to, to: o.name == "CloseTag" ? o.from : e.to };
247
- }
248
- }),
249
- /* @__PURE__ */ M.add({
250
- "OpenTag CloseTag": (e) => e.getChild("TagName")
251
- })
252
- ]
253
- }),
254
- languageData: {
255
- commentTokens: { block: { open: "<!--", close: "-->" } },
256
- indentOnInput: /^\s*<\/$/
257
- }
258
- });
259
- function qe(e = {}) {
260
- let t = [w.data.of({
261
- autocomplete: pe(e.elements || [], e.attributes || [])
262
- })];
263
- return e.autoCloseTags !== !1 && t.push(fe), new U(w, t);
264
- }
265
- function z(e, t, o = e.length) {
266
- if (!t)
267
- return "";
268
- let O = t.firstChild, r = O && O.getChild("TagName");
269
- return r ? e.sliceString(r.from, Math.min(r.to, o)) : "";
270
- }
271
- const fe = /* @__PURE__ */ Y.inputHandler.of((e, t, o, O, r) => {
272
- if (e.composing || e.state.readOnly || t != o || O != ">" && O != "/" || !w.isActiveAt(e.state, t, -1))
273
- return !1;
274
- let a = r(), { state: s } = a, f = s.changeByRange((n) => {
275
- var m, c, u;
276
- let { head: l } = n, d = s.doc.sliceString(l - 1, l) == O, S = k(s).resolveInner(l, -1), i;
277
- if (d && O == ">" && S.name == "EndTag") {
278
- let $ = S.parent;
279
- if (((c = (m = $.parent) === null || m === void 0 ? void 0 : m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (i = z(s.doc, $.parent, l))) {
280
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `</${i}>`;
281
- return { range: n, changes: { from: l, to: g, insert: q } };
282
- }
283
- } else if (d && O == "/" && S.name == "StartCloseTag") {
284
- let $ = S.parent;
285
- if (S.from == l - 2 && ((u = $.lastChild) === null || u === void 0 ? void 0 : u.name) != "CloseTag" && (i = z(s.doc, $, l))) {
286
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `${i}>`;
287
- return {
288
- range: Z.cursor(l + q.length, -1),
289
- changes: { from: l, to: g, insert: q }
290
- };
291
- }
292
- }
293
- return { range: n };
294
- });
295
- return f.changes.empty ? !1 : (e.dispatch([
296
- a,
297
- s.update(f, {
298
- userEvent: "input.complete",
299
- scrollIntoView: !0
300
- })
301
- ]), !0);
302
- });
303
- export {
304
- fe as autoCloseTags,
305
- pe as completeFromSchema,
306
- qe as xml,
307
- w as xmlLanguage
308
- };