@threadlabs/looma 0.18.5 → 0.19.0

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 (215) hide show
  1. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
  2. package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
  3. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
  4. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
  5. package/dist/index.js +1 -1
  6. package/editor/chunks/extensions.js +39 -3
  7. package/editor/extensions/preset.d.ts +2 -0
  8. package/editor/extensions/table-commands.d.ts +1 -1
  9. package/editor/table-overlay.d.ts +8 -3
  10. package/package.json +2 -1
  11. package/styles/ui-editor-table-overlay.css +30 -0
  12. package/styles/ui-editor-table-toolbar.css +7 -2
  13. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  14. package/vanilla/UiEditorTableOverlay.js +9 -3
  15. package/vue/UiEditorTableOverlay.d.ts +8 -0
  16. package/vue/UiEditorTableOverlay.vue +45 -2
  17. package/vue/UiEditorTableToolbar.vue +7 -2
  18. package/vue/chunks/1c.js +106 -0
  19. package/vue/chunks/UiEditorTableOverlay.js +14 -4
  20. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  21. package/vue/chunks/abnf.js +61 -0
  22. package/vue/chunks/accesslog.js +72 -0
  23. package/vue/chunks/actionscript.js +139 -0
  24. package/vue/chunks/ada.js +183 -0
  25. package/vue/chunks/angelscript.js +141 -0
  26. package/vue/chunks/apache.js +88 -0
  27. package/vue/chunks/applescript.js +99 -0
  28. package/vue/chunks/arcade.js +405 -0
  29. package/vue/chunks/arduino.js +871 -0
  30. package/vue/chunks/armasm.js +65 -0
  31. package/vue/chunks/asciidoc.js +181 -0
  32. package/vue/chunks/aspectj.js +202 -0
  33. package/vue/chunks/autohotkey.js +54 -0
  34. package/vue/chunks/autoit.js +132 -0
  35. package/vue/chunks/avrasm.js +46 -0
  36. package/vue/chunks/awk.js +58 -0
  37. package/vue/chunks/axapta.js +167 -0
  38. package/vue/chunks/bash.js +358 -0
  39. package/vue/chunks/basic.js +221 -0
  40. package/vue/chunks/bnf.js +27 -0
  41. package/vue/chunks/brainfuck.js +40 -0
  42. package/vue/chunks/c.js +265 -0
  43. package/vue/chunks/cal.js +136 -0
  44. package/vue/chunks/capnproto.js +86 -0
  45. package/vue/chunks/ceylon.js +125 -0
  46. package/vue/chunks/clean.js +54 -0
  47. package/vue/chunks/clojure-repl.js +17 -0
  48. package/vue/chunks/clojure.js +133 -0
  49. package/vue/chunks/cmake.js +23 -0
  50. package/vue/chunks/coffeescript.js +291 -0
  51. package/vue/chunks/coq.js +436 -0
  52. package/vue/chunks/cos.js +77 -0
  53. package/vue/chunks/cpp.js +492 -0
  54. package/vue/chunks/crmsh.js +80 -0
  55. package/vue/chunks/crystal.js +260 -0
  56. package/vue/chunks/csharp.js +376 -0
  57. package/vue/chunks/csp.js +52 -0
  58. package/vue/chunks/css.js +890 -0
  59. package/vue/chunks/d.js +184 -0
  60. package/vue/chunks/dart.js +226 -0
  61. package/vue/chunks/delphi.js +227 -0
  62. package/vue/chunks/diff.js +40 -0
  63. package/vue/chunks/django.js +43 -0
  64. package/vue/chunks/dns.js +66 -0
  65. package/vue/chunks/dockerfile.js +35 -0
  66. package/vue/chunks/dos.js +147 -0
  67. package/vue/chunks/dsconfig.js +55 -0
  68. package/vue/chunks/dts.js +119 -0
  69. package/vue/chunks/dust.js +33 -0
  70. package/vue/chunks/ebnf.js +40 -0
  71. package/vue/chunks/elixir.js +241 -0
  72. package/vue/chunks/elm.js +103 -0
  73. package/vue/chunks/erb.js +17 -0
  74. package/vue/chunks/erlang-repl.js +41 -0
  75. package/vue/chunks/erlang.js +236 -0
  76. package/vue/chunks/excel.js +562 -0
  77. package/vue/chunks/fix.js +30 -0
  78. package/vue/chunks/flix.js +60 -0
  79. package/vue/chunks/fortran.js +543 -0
  80. package/vue/chunks/fsharp.js +440 -0
  81. package/vue/chunks/gams.js +134 -0
  82. package/vue/chunks/gauss.js +167 -0
  83. package/vue/chunks/gcode.js +131 -0
  84. package/vue/chunks/gherkin.js +41 -0
  85. package/vue/chunks/glsl.js +25 -0
  86. package/vue/chunks/gml.js +3119 -0
  87. package/vue/chunks/go.js +140 -0
  88. package/vue/chunks/golo.js +72 -0
  89. package/vue/chunks/gradle.js +181 -0
  90. package/vue/chunks/graphql.js +68 -0
  91. package/vue/chunks/groovy.js +159 -0
  92. package/vue/chunks/haml.js +96 -0
  93. package/vue/chunks/handlebars.js +191 -0
  94. package/vue/chunks/haskell.js +149 -0
  95. package/vue/chunks/haxe.js +142 -0
  96. package/vue/chunks/hsp.js +45 -0
  97. package/vue/chunks/http.js +77 -0
  98. package/vue/chunks/hy.js +92 -0
  99. package/vue/chunks/inform7.js +45 -0
  100. package/vue/chunks/ini.js +94 -0
  101. package/vue/chunks/irpf90.js +52 -0
  102. package/vue/chunks/isbl.js +112 -0
  103. package/vue/chunks/java.js +237 -0
  104. package/vue/chunks/javascript.js +570 -0
  105. package/vue/chunks/jboss-cli.js +46 -0
  106. package/vue/chunks/json.js +45 -0
  107. package/vue/chunks/julia-repl.js +18 -0
  108. package/vue/chunks/julia.js +353 -0
  109. package/vue/chunks/kotlin.js +216 -0
  110. package/vue/chunks/lasso.js +127 -0
  111. package/vue/chunks/latex.js +206 -0
  112. package/vue/chunks/ldif.js +25 -0
  113. package/vue/chunks/leaf.js +72 -0
  114. package/vue/chunks/less.js +953 -0
  115. package/vue/chunks/lisp.js +119 -0
  116. package/vue/chunks/livecodeserver.js +86 -0
  117. package/vue/chunks/livescript.js +309 -0
  118. package/vue/chunks/llvm.js +77 -0
  119. package/vue/chunks/lsl.js +55 -0
  120. package/vue/chunks/lua.js +49 -0
  121. package/vue/chunks/makefile.js +62 -0
  122. package/vue/chunks/markdown.js +194 -0
  123. package/vue/chunks/mathematica.js +7317 -0
  124. package/vue/chunks/matlab.js +70 -0
  125. package/vue/chunks/maxima.js +38 -0
  126. package/vue/chunks/mel.js +24 -0
  127. package/vue/chunks/mercury.js +62 -0
  128. package/vue/chunks/mipsasm.js +53 -0
  129. package/vue/chunks/mizar.js +10 -0
  130. package/vue/chunks/mojolicious.js +27 -0
  131. package/vue/chunks/monkey.js +158 -0
  132. package/vue/chunks/moonscript.js +102 -0
  133. package/vue/chunks/n1ql.js +346 -0
  134. package/vue/chunks/nestedtext.js +66 -0
  135. package/vue/chunks/nginx.js +127 -0
  136. package/vue/chunks/nim.js +174 -0
  137. package/vue/chunks/nix.js +334 -0
  138. package/vue/chunks/node-repl.js +20 -0
  139. package/vue/chunks/nsis.js +515 -0
  140. package/vue/chunks/objectivec.js +235 -0
  141. package/vue/chunks/ocaml.js +52 -0
  142. package/vue/chunks/openscad.js +66 -0
  143. package/vue/chunks/oxygene.js +58 -0
  144. package/vue/chunks/parser3.js +40 -0
  145. package/vue/chunks/perl.js +454 -0
  146. package/vue/chunks/pf.js +30 -0
  147. package/vue/chunks/pgsql.js +196 -0
  148. package/vue/chunks/php-template.js +43 -0
  149. package/vue/chunks/php.js +527 -0
  150. package/vue/chunks/plaintext.js +10 -0
  151. package/vue/chunks/pony.js +60 -0
  152. package/vue/chunks/powershell.js +208 -0
  153. package/vue/chunks/processing.js +407 -0
  154. package/vue/chunks/profile.js +38 -0
  155. package/vue/chunks/prolog.js +62 -0
  156. package/vue/chunks/properties.js +45 -0
  157. package/vue/chunks/protobuf.js +63 -0
  158. package/vue/chunks/puppet.js +87 -0
  159. package/vue/chunks/purebasic.js +42 -0
  160. package/vue/chunks/python-repl.js +19 -0
  161. package/vue/chunks/python.js +357 -0
  162. package/vue/chunks/q.js +21 -0
  163. package/vue/chunks/qml.js +134 -0
  164. package/vue/chunks/r.js +145 -0
  165. package/vue/chunks/reasonml.js +134 -0
  166. package/vue/chunks/rib.js +16 -0
  167. package/vue/chunks/roboconf.js +54 -0
  168. package/vue/chunks/routeros.js +109 -0
  169. package/vue/chunks/rsl.js +138 -0
  170. package/vue/chunks/ruby.js +322 -0
  171. package/vue/chunks/ruleslanguage.js +26 -0
  172. package/vue/chunks/rust.js +296 -0
  173. package/vue/chunks/sas.js +533 -0
  174. package/vue/chunks/scala.js +173 -0
  175. package/vue/chunks/scheme.js +118 -0
  176. package/vue/chunks/scilab.js +45 -0
  177. package/vue/chunks/scss.js +900 -0
  178. package/vue/chunks/shell.js +18 -0
  179. package/vue/chunks/smali.js +113 -0
  180. package/vue/chunks/smalltalk.js +59 -0
  181. package/vue/chunks/sml.js +49 -0
  182. package/vue/chunks/sqf.js +2599 -0
  183. package/vue/chunks/sql.js +624 -0
  184. package/vue/chunks/stan.js +471 -0
  185. package/vue/chunks/stata.js +33 -0
  186. package/vue/chunks/step21.js +53 -0
  187. package/vue/chunks/stylus.js +925 -0
  188. package/vue/chunks/subunit.js +34 -0
  189. package/vue/chunks/swift.js +699 -0
  190. package/vue/chunks/taggerscript.js +37 -0
  191. package/vue/chunks/tap.js +30 -0
  192. package/vue/chunks/tcl.js +165 -0
  193. package/vue/chunks/thrift.js +65 -0
  194. package/vue/chunks/tp.js +155 -0
  195. package/vue/chunks/twig.js +232 -0
  196. package/vue/chunks/typescript.js +672 -0
  197. package/vue/chunks/vala.js +39 -0
  198. package/vue/chunks/vbnet.js +86 -0
  199. package/vue/chunks/vbscript-html.js +14 -0
  200. package/vue/chunks/vbscript.js +200 -0
  201. package/vue/chunks/verilog.js +534 -0
  202. package/vue/chunks/vhdl.js +190 -0
  203. package/vue/chunks/vim.js +54 -0
  204. package/vue/chunks/wasm.js +111 -0
  205. package/vue/chunks/wren.js +229 -0
  206. package/vue/chunks/x86asm.js +64 -0
  207. package/vue/chunks/xl.js +192 -0
  208. package/vue/chunks/xml.js +175 -0
  209. package/vue/chunks/xquery.js +303 -0
  210. package/vue/chunks/yaml.js +159 -0
  211. package/vue/chunks/zephir.js +74 -0
  212. package/vue/components.css +119 -85
  213. package/vue/editor/LoomaEditor.d.ts +7 -7
  214. package/vue/editor/code-language-catalog.d.ts +196 -0
  215. package/vue/editor/index.js +290 -20
@@ -0,0 +1,49 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/lua.js
2
+ function lua(hljs) {
3
+ const OPENING_LONG_BRACKET = "\\[=*\\[";
4
+ const CLOSING_LONG_BRACKET = "\\]=*\\]";
5
+ const LONG_BRACKETS = {
6
+ begin: OPENING_LONG_BRACKET,
7
+ end: CLOSING_LONG_BRACKET,
8
+ contains: ["self"]
9
+ };
10
+ const COMMENTS = [hljs.COMMENT("--(?!\\[=*\\[)", "$"), hljs.COMMENT("--\\[=*\\[", CLOSING_LONG_BRACKET, {
11
+ contains: [LONG_BRACKETS],
12
+ relevance: 10
13
+ })];
14
+ return {
15
+ name: "Lua",
16
+ aliases: ["pluto"],
17
+ keywords: {
18
+ $pattern: hljs.UNDERSCORE_IDENT_RE,
19
+ literal: "true false nil",
20
+ keyword: "and break do else elseif end for goto if in local not or repeat return then until while",
21
+ built_in: "_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"
22
+ },
23
+ contains: COMMENTS.concat([
24
+ {
25
+ className: "function",
26
+ beginKeywords: "function",
27
+ end: "\\)",
28
+ contains: [hljs.inherit(hljs.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }), {
29
+ className: "params",
30
+ begin: "\\(",
31
+ endsWithParent: true,
32
+ contains: COMMENTS
33
+ }].concat(COMMENTS)
34
+ },
35
+ hljs.C_NUMBER_MODE,
36
+ hljs.APOS_STRING_MODE,
37
+ hljs.QUOTE_STRING_MODE,
38
+ {
39
+ className: "string",
40
+ begin: OPENING_LONG_BRACKET,
41
+ end: CLOSING_LONG_BRACKET,
42
+ contains: [LONG_BRACKETS],
43
+ relevance: 5
44
+ }
45
+ ])
46
+ };
47
+ }
48
+ //#endregion
49
+ export { lua as default };
@@ -0,0 +1,62 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/makefile.js
2
+ function makefile(hljs) {
3
+ const VARIABLE = {
4
+ className: "variable",
5
+ variants: [{
6
+ begin: "\\$\\(" + hljs.UNDERSCORE_IDENT_RE + "\\)",
7
+ contains: [hljs.BACKSLASH_ESCAPE]
8
+ }, { begin: /\$[@%<?\^\+\*]/ }]
9
+ };
10
+ const QUOTE_STRING = {
11
+ className: "string",
12
+ begin: /"/,
13
+ end: /"/,
14
+ contains: [hljs.BACKSLASH_ESCAPE, VARIABLE]
15
+ };
16
+ const FUNC = {
17
+ className: "variable",
18
+ begin: /\$\([\w-]+\s/,
19
+ end: /\)/,
20
+ keywords: { built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value" },
21
+ contains: [VARIABLE, QUOTE_STRING]
22
+ };
23
+ const ASSIGNMENT = { begin: "^" + hljs.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)" };
24
+ const META = {
25
+ className: "meta",
26
+ begin: /^\.PHONY:/,
27
+ end: /$/,
28
+ keywords: {
29
+ $pattern: /[\.\w]+/,
30
+ keyword: ".PHONY"
31
+ }
32
+ };
33
+ const TARGET = {
34
+ className: "section",
35
+ begin: /^[^\s]+:/,
36
+ end: /$/,
37
+ contains: [VARIABLE]
38
+ };
39
+ return {
40
+ name: "Makefile",
41
+ aliases: [
42
+ "mk",
43
+ "mak",
44
+ "make"
45
+ ],
46
+ keywords: {
47
+ $pattern: /[\w-]+/,
48
+ keyword: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
49
+ },
50
+ contains: [
51
+ hljs.HASH_COMMENT_MODE,
52
+ VARIABLE,
53
+ QUOTE_STRING,
54
+ FUNC,
55
+ ASSIGNMENT,
56
+ META,
57
+ TARGET
58
+ ]
59
+ };
60
+ }
61
+ //#endregion
62
+ export { makefile as default };
@@ -0,0 +1,194 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/markdown.js
2
+ function markdown(hljs) {
3
+ const regex = hljs.regex;
4
+ const INLINE_HTML = {
5
+ begin: /<\/?[A-Za-z_]/,
6
+ end: ">",
7
+ subLanguage: "xml",
8
+ relevance: 0
9
+ };
10
+ const HORIZONTAL_RULE = {
11
+ begin: "^[-\\*]{3,}",
12
+ end: "$"
13
+ };
14
+ const CODE = {
15
+ className: "code",
16
+ variants: [
17
+ { begin: "(`{3,})[^`](.|\\n)*?\\1`*[ ]*" },
18
+ { begin: "(~{3,})[^~](.|\\n)*?\\1~*[ ]*" },
19
+ {
20
+ begin: "```",
21
+ end: "```+[ ]*$"
22
+ },
23
+ {
24
+ begin: "~~~",
25
+ end: "~~~+[ ]*$"
26
+ },
27
+ { begin: "`.+?`" },
28
+ {
29
+ begin: "(?=^( {4}|\\t))",
30
+ contains: [{
31
+ begin: "^( {4}|\\t)",
32
+ end: "(\\n)$"
33
+ }],
34
+ relevance: 0
35
+ }
36
+ ]
37
+ };
38
+ const LIST = {
39
+ className: "bullet",
40
+ begin: "^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",
41
+ end: "\\s+",
42
+ excludeEnd: true
43
+ };
44
+ const LINK_REFERENCE = {
45
+ begin: /^\[[^\n]+\]:/,
46
+ returnBegin: true,
47
+ contains: [{
48
+ className: "symbol",
49
+ begin: /\[/,
50
+ end: /\]/,
51
+ excludeBegin: true,
52
+ excludeEnd: true
53
+ }, {
54
+ className: "link",
55
+ begin: /:\s*/,
56
+ end: /$/,
57
+ excludeBegin: true
58
+ }]
59
+ };
60
+ const LINK = {
61
+ variants: [
62
+ {
63
+ begin: /\[.+?\]\[.*?\]/,
64
+ relevance: 0
65
+ },
66
+ {
67
+ begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,
68
+ relevance: 2
69
+ },
70
+ {
71
+ begin: regex.concat(/\[.+?\]\(/, /[A-Za-z][A-Za-z0-9+.-]*/, /:\/\/.*?\)/),
72
+ relevance: 2
73
+ },
74
+ {
75
+ begin: /\[.+?\]\([./?&#].*?\)/,
76
+ relevance: 1
77
+ },
78
+ {
79
+ begin: /\[.*?\]\(.*?\)/,
80
+ relevance: 0
81
+ }
82
+ ],
83
+ returnBegin: true,
84
+ contains: [
85
+ { match: /\[(?=\])/ },
86
+ {
87
+ className: "string",
88
+ relevance: 0,
89
+ begin: "\\[",
90
+ end: "\\]",
91
+ excludeBegin: true,
92
+ returnEnd: true
93
+ },
94
+ {
95
+ className: "link",
96
+ relevance: 0,
97
+ begin: "\\]\\(",
98
+ end: "\\)",
99
+ excludeBegin: true,
100
+ excludeEnd: true
101
+ },
102
+ {
103
+ className: "symbol",
104
+ relevance: 0,
105
+ begin: "\\]\\[",
106
+ end: "\\]",
107
+ excludeBegin: true,
108
+ excludeEnd: true
109
+ }
110
+ ]
111
+ };
112
+ const BOLD = {
113
+ className: "strong",
114
+ contains: [],
115
+ variants: [{
116
+ begin: /_{2}(?!\s)/,
117
+ end: /_{2}/
118
+ }, {
119
+ begin: /\*{2}(?!\s)/,
120
+ end: /\*{2}/
121
+ }]
122
+ };
123
+ const ITALIC = {
124
+ className: "emphasis",
125
+ contains: [],
126
+ variants: [{
127
+ begin: /\*(?![*\s])/,
128
+ end: /\*/
129
+ }, {
130
+ begin: /_(?![_\s])/,
131
+ end: /_/,
132
+ relevance: 0
133
+ }]
134
+ };
135
+ const BOLD_WITHOUT_ITALIC = hljs.inherit(BOLD, { contains: [] });
136
+ const ITALIC_WITHOUT_BOLD = hljs.inherit(ITALIC, { contains: [] });
137
+ BOLD.contains.push(ITALIC_WITHOUT_BOLD);
138
+ ITALIC.contains.push(BOLD_WITHOUT_ITALIC);
139
+ let CONTAINABLE = [INLINE_HTML, LINK];
140
+ [
141
+ BOLD,
142
+ ITALIC,
143
+ BOLD_WITHOUT_ITALIC,
144
+ ITALIC_WITHOUT_BOLD
145
+ ].forEach((m) => {
146
+ m.contains = m.contains.concat(CONTAINABLE);
147
+ });
148
+ CONTAINABLE = CONTAINABLE.concat(BOLD, ITALIC);
149
+ return {
150
+ name: "Markdown",
151
+ aliases: [
152
+ "md",
153
+ "mkdown",
154
+ "mkd"
155
+ ],
156
+ contains: [
157
+ {
158
+ className: "section",
159
+ variants: [{
160
+ begin: "^#{1,6}",
161
+ end: "$",
162
+ contains: CONTAINABLE
163
+ }, {
164
+ begin: "(?=^.+?\\n[=-]{2,}$)",
165
+ contains: [{ begin: "^[=-]*$" }, {
166
+ begin: "^",
167
+ end: "\\n",
168
+ contains: CONTAINABLE
169
+ }]
170
+ }]
171
+ },
172
+ INLINE_HTML,
173
+ LIST,
174
+ BOLD,
175
+ ITALIC,
176
+ {
177
+ className: "quote",
178
+ begin: "^>\\s+",
179
+ contains: CONTAINABLE,
180
+ end: "$"
181
+ },
182
+ CODE,
183
+ HORIZONTAL_RULE,
184
+ LINK,
185
+ LINK_REFERENCE,
186
+ {
187
+ scope: "literal",
188
+ match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/
189
+ }
190
+ ]
191
+ };
192
+ }
193
+ //#endregion
194
+ export { markdown as default };