@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,295 +0,0 @@
1
- var f = {
2
- addition: "inserted",
3
- attributes: "propertyName",
4
- bold: "strong",
5
- cite: "keyword",
6
- code: "monospace",
7
- definitionList: "list",
8
- deletion: "deleted",
9
- div: "punctuation",
10
- em: "emphasis",
11
- footnote: "variable",
12
- footCite: "qualifier",
13
- header: "heading",
14
- html: "comment",
15
- image: "atom",
16
- italic: "emphasis",
17
- link: "link",
18
- linkDefinition: "link",
19
- list1: "list",
20
- list2: "list.special",
21
- list3: "list",
22
- notextile: "string.special",
23
- pre: "operator",
24
- p: "content",
25
- quote: "bracket",
26
- span: "quote",
27
- specialChar: "character",
28
- strong: "strong",
29
- sub: "content.special",
30
- sup: "content.special",
31
- table: "variableName.special",
32
- tableHeading: "operator"
33
- };
34
- function h(i, e) {
35
- e.mode = r.newLayout, e.tableHeading = !1, e.layoutType === "definitionList" && e.spanningLayout && i.match(l("definitionListEnd"), !1) && (e.spanningLayout = !1);
36
- }
37
- function s(i, e, n) {
38
- if (n === "_")
39
- return i.eat("_") ? a(i, e, "italic", /__/, 2) : a(i, e, "em", /_/, 1);
40
- if (n === "*")
41
- return i.eat("*") ? a(i, e, "bold", /\*\*/, 2) : a(i, e, "strong", /\*/, 1);
42
- if (n === "[")
43
- return i.match(/\d+\]/) && (e.footCite = !0), u(e);
44
- if (n === "(") {
45
- var o = i.match(/^(r|tm|c)\)/);
46
- if (o)
47
- return f.specialChar;
48
- }
49
- if (n === "<" && i.match(/(\w+)[^>]+>[^<]+<\/\1>/))
50
- return f.html;
51
- if (n === "?" && i.eat("?"))
52
- return a(i, e, "cite", /\?\?/, 2);
53
- if (n === "=" && i.eat("="))
54
- return a(i, e, "notextile", /==/, 2);
55
- if (n === "-" && !i.eat("-"))
56
- return a(i, e, "deletion", /-/, 1);
57
- if (n === "+")
58
- return a(i, e, "addition", /\+/, 1);
59
- if (n === "~")
60
- return a(i, e, "sub", /~/, 1);
61
- if (n === "^")
62
- return a(i, e, "sup", /\^/, 1);
63
- if (n === "%")
64
- return a(i, e, "span", /%/, 1);
65
- if (n === "@")
66
- return a(i, e, "code", /@/, 1);
67
- if (n === "!") {
68
- var c = a(i, e, "image", /(?:\([^\)]+\))?!/, 1);
69
- return i.match(/^:\S+/), c;
70
- }
71
- return u(e);
72
- }
73
- function a(i, e, n, o, c) {
74
- var d = i.pos > c ? i.string.charAt(i.pos - c - 1) : null, p = i.peek();
75
- if (e[n]) {
76
- if ((!p || /\W/.test(p)) && d && /\S/.test(d)) {
77
- var y = u(e);
78
- return e[n] = !1, y;
79
- }
80
- } else (!d || /\W/.test(d)) && p && /\S/.test(p) && i.match(new RegExp("^.*\\S" + o.source + "(?:\\W|$)"), !1) && (e[n] = !0, e.mode = r.attributes);
81
- return u(e);
82
- }
83
- function u(i) {
84
- var e = b(i);
85
- if (e) return e;
86
- var n = [];
87
- return i.layoutType && n.push(f[i.layoutType]), n = n.concat(g(
88
- i,
89
- "addition",
90
- "bold",
91
- "cite",
92
- "code",
93
- "deletion",
94
- "em",
95
- "footCite",
96
- "image",
97
- "italic",
98
- "link",
99
- "span",
100
- "strong",
101
- "sub",
102
- "sup",
103
- "table",
104
- "tableHeading"
105
- )), i.layoutType === "header" && n.push(f.header + "-" + i.header), n.length ? n.join(" ") : null;
106
- }
107
- function b(i) {
108
- var e = i.layoutType;
109
- switch (e) {
110
- case "notextile":
111
- case "code":
112
- case "pre":
113
- return f[e];
114
- default:
115
- return i.notextile ? f.notextile + (e ? " " + f[e] : "") : null;
116
- }
117
- }
118
- function g(i) {
119
- for (var e = [], n = 1; n < arguments.length; ++n)
120
- i[arguments[n]] && e.push(f[arguments[n]]);
121
- return e;
122
- }
123
- function m(i) {
124
- var e = i.spanningLayout, n = i.layoutType;
125
- for (var o in i) i.hasOwnProperty(o) && delete i[o];
126
- i.mode = r.newLayout, e && (i.layoutType = n, i.spanningLayout = !0);
127
- }
128
- var t = {
129
- cache: {},
130
- single: {
131
- bc: "bc",
132
- bq: "bq",
133
- definitionList: /- .*?:=+/,
134
- definitionListEnd: /.*=:\s*$/,
135
- div: "div",
136
- drawTable: /\|.*\|/,
137
- foot: /fn\d+/,
138
- header: /h[1-6]/,
139
- html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,
140
- link: /[^"]+":\S/,
141
- linkDefinition: /\[[^\s\]]+\]\S+/,
142
- list: /(?:#+|\*+)/,
143
- notextile: "notextile",
144
- para: "p",
145
- pre: "pre",
146
- table: "table",
147
- tableCellAttributes: /[\/\\]\d+/,
148
- tableHeading: /\|_\./,
149
- tableText: /[^"_\*\[\(\?\+~\^%@|-]+/,
150
- text: /[^!"_=\*\[\(<\?\+~\^%@-]+/
151
- },
152
- attributes: {
153
- align: /(?:<>|<|>|=)/,
154
- selector: /\([^\(][^\)]+\)/,
155
- lang: /\[[^\[\]]+\]/,
156
- pad: /(?:\(+|\)+){1,2}/,
157
- css: /\{[^\}]+\}/
158
- },
159
- createRe: function(i) {
160
- switch (i) {
161
- case "drawTable":
162
- return t.makeRe("^", t.single.drawTable, "$");
163
- case "html":
164
- return t.makeRe("^", t.single.html, "(?:", t.single.html, ")*", "$");
165
- case "linkDefinition":
166
- return t.makeRe("^", t.single.linkDefinition, "$");
167
- case "listLayout":
168
- return t.makeRe("^", t.single.list, l("allAttributes"), "*\\s+");
169
- case "tableCellAttributes":
170
- return t.makeRe("^", t.choiceRe(
171
- t.single.tableCellAttributes,
172
- l("allAttributes")
173
- ), "+\\.");
174
- case "type":
175
- return t.makeRe("^", l("allTypes"));
176
- case "typeLayout":
177
- return t.makeRe(
178
- "^",
179
- l("allTypes"),
180
- l("allAttributes"),
181
- "*\\.\\.?",
182
- "(\\s+|$)"
183
- );
184
- case "attributes":
185
- return t.makeRe("^", l("allAttributes"), "+");
186
- case "allTypes":
187
- return t.choiceRe(
188
- t.single.div,
189
- t.single.foot,
190
- t.single.header,
191
- t.single.bc,
192
- t.single.bq,
193
- t.single.notextile,
194
- t.single.pre,
195
- t.single.table,
196
- t.single.para
197
- );
198
- case "allAttributes":
199
- return t.choiceRe(
200
- t.attributes.selector,
201
- t.attributes.css,
202
- t.attributes.lang,
203
- t.attributes.align,
204
- t.attributes.pad
205
- );
206
- default:
207
- return t.makeRe("^", t.single[i]);
208
- }
209
- },
210
- makeRe: function() {
211
- for (var i = "", e = 0; e < arguments.length; ++e) {
212
- var n = arguments[e];
213
- i += typeof n == "string" ? n : n.source;
214
- }
215
- return new RegExp(i);
216
- },
217
- choiceRe: function() {
218
- for (var i = [arguments[0]], e = 1; e < arguments.length; ++e)
219
- i[e * 2 - 1] = "|", i[e * 2] = arguments[e];
220
- return i.unshift("(?:"), i.push(")"), t.makeRe.apply(null, i);
221
- }
222
- };
223
- function l(i) {
224
- return t.cache[i] || (t.cache[i] = t.createRe(i));
225
- }
226
- var r = {
227
- newLayout: function(i, e) {
228
- if (i.match(l("typeLayout"), !1))
229
- return e.spanningLayout = !1, (e.mode = r.blockType)(i, e);
230
- var n;
231
- return b(e) || (i.match(l("listLayout"), !1) ? n = r.list : i.match(l("drawTable"), !1) ? n = r.table : i.match(l("linkDefinition"), !1) ? n = r.linkDefinition : i.match(l("definitionList")) ? n = r.definitionList : i.match(l("html"), !1) && (n = r.html)), (e.mode = n || r.text)(i, e);
232
- },
233
- blockType: function(i, e) {
234
- var n, o;
235
- if (e.layoutType = null, n = i.match(l("type")))
236
- o = n[0];
237
- else
238
- return (e.mode = r.text)(i, e);
239
- return (n = o.match(l("header"))) ? (e.layoutType = "header", e.header = parseInt(n[0][1])) : o.match(l("bq")) ? e.layoutType = "quote" : o.match(l("bc")) ? e.layoutType = "code" : o.match(l("foot")) ? e.layoutType = "footnote" : o.match(l("notextile")) ? e.layoutType = "notextile" : o.match(l("pre")) ? e.layoutType = "pre" : o.match(l("div")) ? e.layoutType = "div" : o.match(l("table")) && (e.layoutType = "table"), e.mode = r.attributes, u(e);
240
- },
241
- text: function(i, e) {
242
- if (i.match(l("text"))) return u(e);
243
- var n = i.next();
244
- return n === '"' ? (e.mode = r.link)(i, e) : s(i, e, n);
245
- },
246
- attributes: function(i, e) {
247
- return e.mode = r.layoutLength, i.match(l("attributes")) ? f.attributes : u(e);
248
- },
249
- layoutLength: function(i, e) {
250
- return i.eat(".") && i.eat(".") && (e.spanningLayout = !0), e.mode = r.text, u(e);
251
- },
252
- list: function(i, e) {
253
- var n = i.match(l("list"));
254
- e.listDepth = n[0].length;
255
- var o = (e.listDepth - 1) % 3;
256
- return o ? o === 1 ? e.layoutType = "list2" : e.layoutType = "list3" : e.layoutType = "list1", e.mode = r.attributes, u(e);
257
- },
258
- link: function(i, e) {
259
- return e.mode = r.text, i.match(l("link")) ? (i.match(/\S+/), f.link) : u(e);
260
- },
261
- linkDefinition: function(i) {
262
- return i.skipToEnd(), f.linkDefinition;
263
- },
264
- definitionList: function(i, e) {
265
- return i.match(l("definitionList")), e.layoutType = "definitionList", i.match(/\s*$/) ? e.spanningLayout = !0 : e.mode = r.attributes, u(e);
266
- },
267
- html: function(i) {
268
- return i.skipToEnd(), f.html;
269
- },
270
- table: function(i, e) {
271
- return e.layoutType = "table", (e.mode = r.tableCell)(i, e);
272
- },
273
- tableCell: function(i, e) {
274
- return i.match(l("tableHeading")) ? e.tableHeading = !0 : i.eat("|"), e.mode = r.tableCellAttributes, u(e);
275
- },
276
- tableCellAttributes: function(i, e) {
277
- return e.mode = r.tableText, i.match(l("tableCellAttributes")) ? f.attributes : u(e);
278
- },
279
- tableText: function(i, e) {
280
- return i.match(l("tableText")) ? u(e) : i.peek() === "|" ? (e.mode = r.tableCell, u(e)) : s(i, e, i.next());
281
- }
282
- };
283
- const k = {
284
- name: "textile",
285
- startState: function() {
286
- return { mode: r.newLayout };
287
- },
288
- token: function(i, e) {
289
- return i.sol() && h(i, e), e.mode(i, e);
290
- },
291
- blankLine: m
292
- };
293
- export {
294
- k as textile
295
- };
@@ -1,155 +0,0 @@
1
- var c = {}, l = {
2
- allTags: !0,
3
- closeAll: !0,
4
- list: !0,
5
- newJournal: !0,
6
- newTiddler: !0,
7
- permaview: !0,
8
- saveChanges: !0,
9
- search: !0,
10
- slider: !0,
11
- tabs: !0,
12
- tag: !0,
13
- tagging: !0,
14
- tags: !0,
15
- tiddler: !0,
16
- timeline: !0,
17
- today: !0,
18
- version: !0,
19
- option: !0,
20
- with: !0,
21
- filter: !0
22
- }, f = /[\w_\-]/i, k = /^\-\-\-\-+$/, h = /^\/\*\*\*$/, d = /^\*\*\*\/$/, a = /^<<<$/, p = /^\/\/\{\{\{$/, w = /^\/\/\}\}\}$/, b = /^<!--\{\{\{-->$/, v = /^<!--\}\}\}-->$/, S = /^\{\{\{$/, y = /^\}\}\}$/, $ = /.*?\}\}\}/;
23
- function o(e, t, r) {
24
- return t.tokenize = r, r(e, t);
25
- }
26
- function i(e, t) {
27
- var r = e.sol(), n = e.peek();
28
- if (t.block = !1, r && /[<\/\*{}\-]/.test(n)) {
29
- if (e.match(S))
30
- return t.block = !0, o(e, t, u);
31
- if (e.match(a))
32
- return "quote";
33
- if (e.match(h) || e.match(d) || e.match(p) || e.match(w) || e.match(b) || e.match(v))
34
- return "comment";
35
- if (e.match(k))
36
- return "contentSeparator";
37
- }
38
- if (e.next(), r && /[\/\*!#;:>|]/.test(n)) {
39
- if (n == "!")
40
- return e.skipToEnd(), "header";
41
- if (n == "*")
42
- return e.eatWhile("*"), "comment";
43
- if (n == "#")
44
- return e.eatWhile("#"), "comment";
45
- if (n == ";")
46
- return e.eatWhile(";"), "comment";
47
- if (n == ":")
48
- return e.eatWhile(":"), "comment";
49
- if (n == ">")
50
- return e.eatWhile(">"), "quote";
51
- if (n == "|")
52
- return "header";
53
- }
54
- if (n == "{" && e.match("{{"))
55
- return o(e, t, u);
56
- if (/[hf]/i.test(n) && /[ti]/i.test(e.peek()) && e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))
57
- return "link";
58
- if (n == '"')
59
- return "string";
60
- if (n == "~" || /[\[\]]/.test(n) && e.match(n))
61
- return "brace";
62
- if (n == "@")
63
- return e.eatWhile(f), "link";
64
- if (/\d/.test(n))
65
- return e.eatWhile(/\d/), "number";
66
- if (n == "/") {
67
- if (e.eat("%"))
68
- return o(e, t, z);
69
- if (e.eat("/"))
70
- return o(e, t, W);
71
- }
72
- if (n == "_" && e.eat("_"))
73
- return o(e, t, x);
74
- if (n == "-" && e.eat("-")) {
75
- if (e.peek() != " ")
76
- return o(e, t, g);
77
- if (e.peek() == " ")
78
- return "brace";
79
- }
80
- return n == "'" && e.eat("'") ? o(e, t, C) : n == "<" && e.eat("<") ? o(e, t, T) : (e.eatWhile(/[\w\$_]/), c.propertyIsEnumerable(e.current()) ? "keyword" : null);
81
- }
82
- function z(e, t) {
83
- for (var r = !1, n; n = e.next(); ) {
84
- if (n == "/" && r) {
85
- t.tokenize = i;
86
- break;
87
- }
88
- r = n == "%";
89
- }
90
- return "comment";
91
- }
92
- function C(e, t) {
93
- for (var r = !1, n; n = e.next(); ) {
94
- if (n == "'" && r) {
95
- t.tokenize = i;
96
- break;
97
- }
98
- r = n == "'";
99
- }
100
- return "strong";
101
- }
102
- function u(e, t) {
103
- var r = t.block;
104
- return r && e.current() ? "comment" : !r && e.match($) || r && e.sol() && e.match(y) ? (t.tokenize = i, "comment") : (e.next(), "comment");
105
- }
106
- function W(e, t) {
107
- for (var r = !1, n; n = e.next(); ) {
108
- if (n == "/" && r) {
109
- t.tokenize = i;
110
- break;
111
- }
112
- r = n == "/";
113
- }
114
- return "emphasis";
115
- }
116
- function x(e, t) {
117
- for (var r = !1, n; n = e.next(); ) {
118
- if (n == "_" && r) {
119
- t.tokenize = i;
120
- break;
121
- }
122
- r = n == "_";
123
- }
124
- return "link";
125
- }
126
- function g(e, t) {
127
- for (var r = !1, n; n = e.next(); ) {
128
- if (n == "-" && r) {
129
- t.tokenize = i;
130
- break;
131
- }
132
- r = n == "-";
133
- }
134
- return "deleted";
135
- }
136
- function T(e, t) {
137
- if (e.current() == "<<")
138
- return "meta";
139
- var r = e.next();
140
- return r ? r == ">" && e.peek() == ">" ? (e.next(), t.tokenize = i, "meta") : (e.eatWhile(/[\w\$_]/), l.propertyIsEnumerable(e.current()) ? "keyword" : null) : (t.tokenize = i, null);
141
- }
142
- const m = {
143
- name: "tiddlywiki",
144
- startState: function() {
145
- return { tokenize: i };
146
- },
147
- token: function(e, t) {
148
- if (e.eatSpace()) return null;
149
- var r = t.tokenize(e, t);
150
- return r;
151
- }
152
- };
153
- export {
154
- m as tiddlyWiki
155
- };
@@ -1,181 +0,0 @@
1
- function c(e, t, n) {
2
- return function(r, a) {
3
- for (; !r.eol(); ) {
4
- if (r.match(t)) {
5
- a.tokenize = o;
6
- break;
7
- }
8
- r.next();
9
- }
10
- return n && (a.tokenize = n), e;
11
- };
12
- }
13
- function f(e) {
14
- return function(t, n) {
15
- for (; !t.eol(); )
16
- t.next();
17
- return n.tokenize = o, e;
18
- };
19
- }
20
- function o(e, t) {
21
- function n(p) {
22
- return t.tokenize = p, p(e, t);
23
- }
24
- var r = e.sol(), a = e.next();
25
- switch (a) {
26
- //switch is generally much faster than if, so it is used here
27
- case "{":
28
- return e.eat("/"), e.eatSpace(), e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/), t.tokenize = h, "tag";
29
- case "_":
30
- if (e.eat("_"))
31
- return n(c("strong", "__", o));
32
- break;
33
- case "'":
34
- if (e.eat("'"))
35
- return n(c("em", "''", o));
36
- break;
37
- case "(":
38
- if (e.eat("("))
39
- return n(c("link", "))", o));
40
- break;
41
- case "[":
42
- return n(c("url", "]", o));
43
- case "|":
44
- if (e.eat("|"))
45
- return n(c("comment", "||"));
46
- break;
47
- case "-":
48
- if (e.eat("="))
49
- return n(c("header string", "=-", o));
50
- if (e.eat("-"))
51
- return n(c("error tw-deleted", "--", o));
52
- break;
53
- case "=":
54
- if (e.match("=="))
55
- return n(c("tw-underline", "===", o));
56
- break;
57
- case ":":
58
- if (e.eat(":"))
59
- return n(c("comment", "::"));
60
- break;
61
- case "^":
62
- return n(c("tw-box", "^"));
63
- case "~":
64
- if (e.match("np~"))
65
- return n(c("meta", "~/np~"));
66
- break;
67
- }
68
- if (r)
69
- switch (a) {
70
- case "!":
71
- return e.match("!!!!!") || e.match("!!!!") || e.match("!!!") || e.match("!!"), n(f("header string"));
72
- case "*":
73
- //unordered list line item, or <li /> at start of line
74
- case "#":
75
- //ordered list line item, or <li /> at start of line
76
- case "+":
77
- return n(f("tw-listitem bracket"));
78
- }
79
- return null;
80
- }
81
- var g, s;
82
- function h(e, t) {
83
- var n = e.next(), r = e.peek();
84
- return n == "}" ? (t.tokenize = o, "tag") : n == "(" || n == ")" ? "bracket" : n == "=" ? (s = "equals", r == ">" && (e.next(), r = e.peek()), /[\'\"]/.test(r) || (t.tokenize = z()), "operator") : /[\'\"]/.test(n) ? (t.tokenize = w(n), t.tokenize(e, t)) : (e.eatWhile(/[^\s\u00a0=\"\'\/?]/), "keyword");
85
- }
86
- function w(e) {
87
- return function(t, n) {
88
- for (; !t.eol(); )
89
- if (t.next() == e) {
90
- n.tokenize = h;
91
- break;
92
- }
93
- return "string";
94
- };
95
- }
96
- function z() {
97
- return function(e, t) {
98
- for (; !e.eol(); ) {
99
- var n = e.next(), r = e.peek();
100
- if (n == " " || n == "," || /[ )}]/.test(r)) {
101
- t.tokenize = h;
102
- break;
103
- }
104
- }
105
- return "string";
106
- };
107
- }
108
- var i, l;
109
- function k() {
110
- for (var e = arguments.length - 1; e >= 0; e--) i.cc.push(arguments[e]);
111
- }
112
- function u() {
113
- return k.apply(null, arguments), !0;
114
- }
115
- function b(e, t) {
116
- var n = i.context && i.context.noIndent;
117
- i.context = {
118
- prev: i.context,
119
- pluginName: e,
120
- indent: i.indented,
121
- startOfLine: t,
122
- noIndent: n
123
- };
124
- }
125
- function x() {
126
- i.context && (i.context = i.context.prev);
127
- }
128
- function L(e) {
129
- if (e == "openPlugin")
130
- return i.pluginName = g, u(d, N(i.startOfLine));
131
- if (e == "closePlugin") {
132
- var t = !1;
133
- return i.context ? (t = i.context.pluginName != g, x()) : t = !0, t && (l = "error"), u(P(t));
134
- } else return e == "string" && ((!i.context || i.context.name != "!cdata") && b("!cdata"), i.tokenize == o && x()), u();
135
- }
136
- function N(e) {
137
- return function(t) {
138
- return t == "selfclosePlugin" || t == "endPlugin" || t == "endPlugin" && b(i.pluginName, e), u();
139
- };
140
- }
141
- function P(e) {
142
- return function(t) {
143
- return e && (l = "error"), t == "endPlugin" ? u() : k();
144
- };
145
- }
146
- function d(e) {
147
- return e == "keyword" ? (l = "attribute", u(d)) : e == "equals" ? u(O, d) : k();
148
- }
149
- function O(e) {
150
- return e == "keyword" ? (l = "string", u()) : e == "string" ? u(v) : k();
151
- }
152
- function v(e) {
153
- return e == "string" ? u(v) : k();
154
- }
155
- const S = {
156
- name: "tiki",
157
- startState: function() {
158
- return { tokenize: o, cc: [], indented: 0, startOfLine: !0, pluginName: null, context: null };
159
- },
160
- token: function(e, t) {
161
- if (e.sol() && (t.startOfLine = !0, t.indented = e.indentation()), e.eatSpace()) return null;
162
- l = s = g = null;
163
- var n = t.tokenize(e, t);
164
- if ((n || s) && n != "comment")
165
- for (i = t; ; ) {
166
- var r = t.cc.pop() || L;
167
- if (r(s || n)) break;
168
- }
169
- return t.startOfLine = !1, l || n;
170
- },
171
- indent: function(e, t, n) {
172
- var r = e.context;
173
- if (r && r.noIndent) return 0;
174
- for (r && /^{\//.test(t) && (r = r.prev); r && !r.startOfLine; )
175
- r = r.prev;
176
- return r ? r.indent + n.unit : 0;
177
- }
178
- };
179
- export {
180
- S as tiki
181
- };
@@ -1,49 +0,0 @@
1
- const l = {
2
- name: "toml",
3
- startState: function() {
4
- return {
5
- inString: !1,
6
- stringType: "",
7
- lhs: !0,
8
- inArray: 0
9
- };
10
- },
11
- token: function(n, e) {
12
- if (!e.inString && (n.peek() == '"' || n.peek() == "'") && (e.stringType = n.peek(), n.next(), e.inString = !0), n.sol() && e.inArray === 0 && (e.lhs = !0), e.inString) {
13
- for (; e.inString && !n.eol(); )
14
- n.peek() === e.stringType ? (n.next(), e.inString = !1) : n.peek() === "\\" ? (n.next(), n.next()) : n.match(/^.[^\\\"\']*/);
15
- return e.lhs ? "property" : "string";
16
- } else {
17
- if (e.inArray && n.peek() === "]")
18
- return n.next(), e.inArray--, "bracket";
19
- if (e.lhs && n.peek() === "[" && n.skipTo("]"))
20
- return n.next(), n.peek() === "]" && n.next(), "atom";
21
- if (n.peek() === "#")
22
- return n.skipToEnd(), "comment";
23
- if (n.eatSpace())
24
- return null;
25
- if (e.lhs && n.eatWhile(function(i) {
26
- return i != "=" && i != " ";
27
- }))
28
- return "property";
29
- if (e.lhs && n.peek() === "=")
30
- return n.next(), e.lhs = !1, null;
31
- if (!e.lhs && n.match(/^\d\d\d\d[\d\-\:\.T]*Z/))
32
- return "atom";
33
- if (!e.lhs && (n.match("true") || n.match("false")))
34
- return "atom";
35
- if (!e.lhs && n.peek() === "[")
36
- return e.inArray++, n.next(), "bracket";
37
- if (!e.lhs && n.match(/^\-?\d+(?:\.\d+)?/))
38
- return "number";
39
- n.eatSpace() || n.next();
40
- }
41
- return null;
42
- },
43
- languageData: {
44
- commentTokens: { line: "#" }
45
- }
46
- };
47
- export {
48
- l as toml
49
- };