@vc-shell/framework 1.1.21 → 1.1.23

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 (222) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/core/composables/useAppInsights/index.ts +11 -1
  3. package/core/composables/useBladeRegistry/index.ts +176 -0
  4. package/core/composables/useDynamicProperties/index.ts +380 -255
  5. package/core/composables/useErrorHandler/index.ts +2 -3
  6. package/core/composables/useKeyboardNavigation/index.ts +52 -10
  7. package/core/composables/useLanguages/index.ts +78 -78
  8. package/core/plugins/modularity/index.ts +17 -6
  9. package/core/services/global-search-service/index.ts +36 -0
  10. package/dist/core/composables/useAppInsights/index.d.ts +5 -2
  11. package/dist/core/composables/useAppInsights/index.d.ts.map +1 -1
  12. package/dist/core/composables/useBladeRegistry/index.d.ts +48 -0
  13. package/dist/core/composables/useBladeRegistry/index.d.ts.map +1 -0
  14. package/dist/core/composables/useDynamicProperties/index.d.ts +12 -9
  15. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  16. package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
  17. package/dist/core/composables/useKeyboardNavigation/index.d.ts.map +1 -1
  18. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  19. package/dist/core/services/global-search-service/index.d.ts +10 -0
  20. package/dist/core/services/global-search-service/index.d.ts.map +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts +7 -12
  23. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/index.d.ts.map +1 -1
  24. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeActions.d.ts +15 -0
  25. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeActions.d.ts.map +1 -0
  26. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.d.ts +11 -0
  27. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.d.ts.map +1 -0
  28. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeState.d.ts +15 -0
  29. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeState.d.ts.map +1 -0
  30. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeWatchers.d.ts +6 -0
  31. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeWatchers.d.ts.map +1 -0
  32. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/routerUtils.d.ts +28 -0
  33. package/dist/shared/components/blade-navigation/composables/useBladeNavigation/internal/routerUtils.d.ts.map +1 -0
  34. package/dist/shared/components/blade-navigation/plugin.d.ts.map +1 -1
  35. package/dist/shared/components/blade-navigation/types/index.d.ts +5 -5
  36. package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
  37. package/dist/shared/components/notification-template/notification-template.vue.d.ts +2 -2
  38. package/dist/shared/components/notification-template/notification-template.vue.d.ts.map +1 -1
  39. package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
  40. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  41. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  42. package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
  43. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  44. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  45. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  46. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  47. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  50. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  51. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  52. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  53. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  54. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  55. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  56. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  57. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  58. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  59. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  60. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  61. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
  62. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  63. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +2 -0
  64. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -1
  65. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  66. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  67. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  68. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  69. 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
  70. 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
  71. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
  78. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  79. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  80. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  81. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  82. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  83. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  84. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  85. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  86. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  87. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  88. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  89. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  90. package/package.json +4 -4
  91. package/shared/components/blade-navigation/composables/useBladeNavigation/index.ts +199 -597
  92. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeActions.ts +151 -0
  93. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeRouteResolver.ts +243 -0
  94. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeState.ts +93 -0
  95. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/bladeWatchers.ts +90 -0
  96. package/shared/components/blade-navigation/composables/useBladeNavigation/internal/routerUtils.ts +150 -0
  97. package/shared/components/blade-navigation/plugin.ts +17 -12
  98. package/shared/components/blade-navigation/types/index.ts +2 -4
  99. package/shared/components/notification-template/notification-template.vue +2 -2
  100. package/shared/modules/dynamic/index.ts +2 -8
  101. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +4 -0
  102. package/ui/components/organisms/vc-app/vc-app.vue +11 -6
  103. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +10 -1
  104. package/dist/apl-B2DGVGxc.js +0 -76
  105. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  106. package/dist/asn1-jKiBa2Ya.js +0 -95
  107. package/dist/asterisk-DS281yxp.js +0 -271
  108. package/dist/brainfuck-C_p9pTT8.js +0 -34
  109. package/dist/clike-DGTaUp48.js +0 -620
  110. package/dist/clojure-CCKyeQKf.js +0 -800
  111. package/dist/cmake-CuaCgAKt.js +0 -28
  112. package/dist/cobol-BlTKFDRj.js +0 -72
  113. package/dist/coffeescript-BVCvwO8I.js +0 -179
  114. package/dist/commonlisp-D_kxz07b.js +0 -75
  115. package/dist/crystal-D309uH6_.js +0 -217
  116. package/dist/css-BkF-NPzE.js +0 -1553
  117. package/dist/cypher-BMq4Fwjl.js +0 -68
  118. package/dist/d-BZcgY6La.js +0 -127
  119. package/dist/diff-Cg9d_RX2.js +0 -18
  120. package/dist/dockerfile-DIy8NleC.js +0 -194
  121. package/dist/dtd-CtLokQ-U.js +0 -84
  122. package/dist/dylan-QYeExnWK.js +0 -234
  123. package/dist/ebnf-DUPDuY4r.js +0 -78
  124. package/dist/ecl-CiXN-g_D.js +0 -121
  125. package/dist/eiffel-yQhjl4T1.js +0 -110
  126. package/dist/elm-CNT9vbN0.js +0 -108
  127. package/dist/erlang-CFOYdy9e.js +0 -487
  128. package/dist/factor-DDOC7X6P.js +0 -65
  129. package/dist/fcl-CPC2WYrI.js +0 -103
  130. package/dist/forth-BmxRyE9S.js +0 -60
  131. package/dist/fortran-9bvPyrOW.js +0 -442
  132. package/dist/framework.js +0 -290
  133. package/dist/gas-cpmYfFX2.js +0 -183
  134. package/dist/gherkin-CJuwpceU.js +0 -34
  135. package/dist/groovy-DZeT_VM-.js +0 -146
  136. package/dist/haskell-Bvt3Qq1t.js +0 -375
  137. package/dist/haxe-70NVW1pR.js +0 -359
  138. package/dist/http-D9LttvKF.js +0 -44
  139. package/dist/idl-B6TRFYjl.js +0 -947
  140. package/dist/index-0xMdBsaq.js +0 -611
  141. package/dist/index-B6RKUVy8.js +0 -134
  142. package/dist/index-BXAxQnpt.js +0 -71
  143. package/dist/index-Ba3wq-Du.js +0 -147479
  144. package/dist/index-BgMVbUF5.js +0 -249
  145. package/dist/index-CE1KKIYQ.js +0 -268
  146. package/dist/index-CSMBCpee.js +0 -75
  147. package/dist/index-DCiQjA10.js +0 -58
  148. package/dist/index-DLIwas3l.js +0 -93
  149. package/dist/index-DwOkUUXE.js +0 -288
  150. package/dist/index-DwsB54rD.js +0 -308
  151. package/dist/index-Dyg1bSFn.js +0 -341
  152. package/dist/index-GpoS3tMh.js +0 -137
  153. package/dist/index-J_8wNmd3.js +0 -98
  154. package/dist/index-VLNTEhMQ.js +0 -156
  155. package/dist/index-WZKioztF.js +0 -299
  156. package/dist/index-_7O686wp.js +0 -538
  157. package/dist/index.css +0 -9
  158. package/dist/javascript-C2yteZeJ.js +0 -691
  159. package/dist/jinja2-DnB6dQmV.js +0 -154
  160. package/dist/julia-DpvXAuO6.js +0 -241
  161. package/dist/livescript-CanGTf8u.js +0 -272
  162. package/dist/lua-XplVlWi_.js +0 -217
  163. package/dist/mathematica-jaRHnSxC.js +0 -35
  164. package/dist/mbox-BctzC1hL.js +0 -76
  165. package/dist/mirc-CFBPAOaF.js +0 -72
  166. package/dist/mllike-BSnXJBGA.js +0 -272
  167. package/dist/modelica-vUgVs--1.js +0 -93
  168. package/dist/mscgen-Cpl0NYLN.js +0 -104
  169. package/dist/mumps-CQoS1kWX.js +0 -25
  170. package/dist/nginx-zDPm3Z74.js +0 -89
  171. package/dist/nsis-fePjrhq7.js +0 -62
  172. package/dist/ntriples-CsNjv2QF.js +0 -79
  173. package/dist/octave-C8PmmSRH.js +0 -143
  174. package/dist/oz-Ce8aN8oE.js +0 -151
  175. package/dist/pascal-De0D6mP7.js +0 -77
  176. package/dist/perl-B4bSCe1C.js +0 -915
  177. package/dist/pig-D24Z8EXi.js +0 -54
  178. package/dist/powershell-DkYVfTzP.js +0 -249
  179. package/dist/properties-Dn9wna3M.js +0 -26
  180. package/dist/protobuf-BPIjwpzm.js +0 -49
  181. package/dist/pug-CwAQJzGR.js +0 -248
  182. package/dist/puppet-nyd4dhjf.js +0 -45
  183. package/dist/python-BkR3uSy8.js +0 -313
  184. package/dist/q-DXjKs-tC.js +0 -83
  185. package/dist/r-LKEuhEGI.js +0 -104
  186. package/dist/rpm-IznJm2Xc.js +0 -57
  187. package/dist/ruby-CcYfvIk6.js +0 -228
  188. package/dist/sas-7E8yHoCW.js +0 -105
  189. package/dist/scheme-DjibxsNh.js +0 -124
  190. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +0 -110
  191. package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +0 -1
  192. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +0 -147
  193. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +0 -1
  194. package/dist/shell-C0C2sNA_.js +0 -182
  195. package/dist/sieve-Bwz7vjP5.js +0 -72
  196. package/dist/simple-mode-B0dvCdAA.js +0 -89
  197. package/dist/smalltalk-Bhddl2pB.js +0 -48
  198. package/dist/solr-BNlsLglM.js +0 -41
  199. package/dist/sparql-FarWu_Gb.js +0 -197
  200. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  201. package/dist/sql-CfG5lQ3l.js +0 -282
  202. package/dist/stex-Du4h4KAU.js +0 -129
  203. package/dist/stylus-CAdqWld3.js +0 -250
  204. package/dist/swift-DSxqR9R6.js +0 -230
  205. package/dist/tcl-xfoLljhY.js +0 -81
  206. package/dist/textile-D1AWE-pc.js +0 -295
  207. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  208. package/dist/tiki-__Kn3CeS.js +0 -181
  209. package/dist/toml-BHiuTcfn.js +0 -49
  210. package/dist/troff-D2UO-fKf.js +0 -35
  211. package/dist/ttcn-Bsa4sfRm.js +0 -123
  212. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  213. package/dist/turtle-xwJUxoPV.js +0 -80
  214. package/dist/vb-c2kQGd6-.js +0 -74
  215. package/dist/vbscript-1f_Dhg5H.js +0 -324
  216. package/dist/velocity-DJd0pTTC.js +0 -96
  217. package/dist/verilog-CiS1jyi5.js +0 -262
  218. package/dist/vhdl-T9HkrbI2.js +0 -106
  219. package/dist/webidl-CjfDENEo.js +0 -155
  220. package/dist/xquery-BUQdORAS.js +0 -422
  221. package/dist/yacas-C0absKBh.js +0 -73
  222. package/dist/z80-Pki2zAjW.js +0 -61
@@ -1,81 +0,0 @@
1
- function s(r) {
2
- for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e) n[t[e]] = !0;
3
- return n;
4
- }
5
- var f = s("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), u = s("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
6
- function i(r, n, t) {
7
- return n.tokenize = t, t(r, n);
8
- }
9
- function o(r, n) {
10
- var t = n.beforeParams;
11
- n.beforeParams = !1;
12
- var e = r.next();
13
- if ((e == '"' || e == "'") && n.inParams)
14
- return i(r, n, p(e));
15
- if (/[\[\]{}\(\),;\.]/.test(e))
16
- return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
17
- if (/\d/.test(e))
18
- return r.eatWhile(/[\w\.]/), "number";
19
- if (e == "#")
20
- return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
21
- if (e == '"')
22
- return r.skipTo(/"/), "comment";
23
- if (e == "$")
24
- return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
25
- if (c.test(e))
26
- return r.eatWhile(c), "comment";
27
- r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
28
- var a = r.current().toLowerCase();
29
- return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
30
- }
31
- function p(r) {
32
- return function(n, t) {
33
- for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
34
- if (a == r && !e) {
35
- l = !0;
36
- break;
37
- }
38
- e = !e && a == "\\";
39
- }
40
- return l && (t.tokenize = o), "string";
41
- };
42
- }
43
- function d(r, n) {
44
- for (var t = !1, e; e = r.next(); ) {
45
- if (e == "#" && t) {
46
- n.tokenize = o;
47
- break;
48
- }
49
- t = e == "*";
50
- }
51
- return "comment";
52
- }
53
- function k(r, n) {
54
- for (var t = 0, e; e = r.next(); ) {
55
- if (e == "#" && t == 2) {
56
- n.tokenize = o;
57
- break;
58
- }
59
- e == "]" ? t++ : e != " " && (t = 0);
60
- }
61
- return "meta";
62
- }
63
- const m = {
64
- name: "tcl",
65
- startState: function() {
66
- return {
67
- tokenize: o,
68
- beforeParams: !1,
69
- inParams: !1
70
- };
71
- },
72
- token: function(r, n) {
73
- return r.eatSpace() ? null : n.tokenize(r, n);
74
- },
75
- languageData: {
76
- commentTokens: { line: "#" }
77
- }
78
- };
79
- export {
80
- m as tcl
81
- };
@@ -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
- };