element-less 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/element-less.cjs +1 -0
- package/element-less.iife.js +1 -0
- package/element-less.js +21 -0
- package/element-less.umd.cjs +1 -0
- package/index-8a31b394.js +47595 -0
- package/index-cb07030d.cjs +1 -0
- package/innerItem-35ccf352.cjs +1 -0
- package/innerItem-93978714.js +793 -0
- package/mode-csharp-a0307975.js +459 -0
- package/mode-csharp-a79144c8.cjs +1 -0
- package/mode-css-71287a3d.cjs +1 -0
- package/mode-css-cb58066a.js +641 -0
- package/mode-javascript-3ad43e9a.js +1319 -0
- package/mode-javascript-43bb34bb.cjs +1 -0
- package/mode-json-0e205915.cjs +1 -0
- package/mode-json-6f21e553.js +314 -0
- package/mode-mysql-264c6403.cjs +1 -0
- package/mode-mysql-46a26bdd.js +194 -0
- package/package.json +13 -0
- package/style.css +1 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./index-8a31b394.js";
|
|
2
|
+
function _mergeNamespaces(n, m) {
|
|
3
|
+
for (var i = 0; i < m.length; i++) {
|
|
4
|
+
const e = m[i];
|
|
5
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const k in e) {
|
|
7
|
+
if (k !== "default" && !(k in n)) {
|
|
8
|
+
n[k] = e[k];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
14
|
+
}
|
|
15
|
+
var modeCss$2 = { exports: {} };
|
|
16
|
+
(function(module, exports) {
|
|
17
|
+
ace.define("ace/mode/css_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/mode/text_highlight_rules"], function(require2, exports2, module2) {
|
|
18
|
+
var oop = require2("../lib/oop");
|
|
19
|
+
require2("../lib/lang");
|
|
20
|
+
var TextHighlightRules = require2("./text_highlight_rules").TextHighlightRules;
|
|
21
|
+
var supportType = exports2.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
|
|
22
|
+
var supportFunction = exports2.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
|
23
|
+
var supportConstant = exports2.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
|
|
24
|
+
var supportConstantColor = exports2.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
|
|
25
|
+
var supportConstantFonts = exports2.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
|
26
|
+
var numRe = exports2.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
|
|
27
|
+
var pseudoElements = exports2.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
|
28
|
+
var pseudoClasses = exports2.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
|
29
|
+
var CssHighlightRules = function() {
|
|
30
|
+
var keywordMapper = this.createKeywordMapper({
|
|
31
|
+
"support.function": supportFunction,
|
|
32
|
+
"support.constant": supportConstant,
|
|
33
|
+
"support.type": supportType,
|
|
34
|
+
"support.constant.color": supportConstantColor,
|
|
35
|
+
"support.constant.fonts": supportConstantFonts
|
|
36
|
+
}, "text", true);
|
|
37
|
+
this.$rules = {
|
|
38
|
+
"start": [{
|
|
39
|
+
include: ["strings", "url", "comments"]
|
|
40
|
+
}, {
|
|
41
|
+
token: "paren.lparen",
|
|
42
|
+
regex: "\\{",
|
|
43
|
+
next: "ruleset"
|
|
44
|
+
}, {
|
|
45
|
+
token: "paren.rparen",
|
|
46
|
+
regex: "\\}"
|
|
47
|
+
}, {
|
|
48
|
+
token: "string",
|
|
49
|
+
regex: "@(?!viewport)",
|
|
50
|
+
next: "media"
|
|
51
|
+
}, {
|
|
52
|
+
token: "keyword",
|
|
53
|
+
regex: "#[a-z0-9-_]+"
|
|
54
|
+
}, {
|
|
55
|
+
token: "keyword",
|
|
56
|
+
regex: "%"
|
|
57
|
+
}, {
|
|
58
|
+
token: "variable",
|
|
59
|
+
regex: "\\.[a-z0-9-_]+"
|
|
60
|
+
}, {
|
|
61
|
+
token: "string",
|
|
62
|
+
regex: ":[a-z0-9-_]+"
|
|
63
|
+
}, {
|
|
64
|
+
token: "constant.numeric",
|
|
65
|
+
regex: numRe
|
|
66
|
+
}, {
|
|
67
|
+
token: "constant",
|
|
68
|
+
regex: "[a-z0-9-_]+"
|
|
69
|
+
}, {
|
|
70
|
+
caseInsensitive: true
|
|
71
|
+
}],
|
|
72
|
+
"media": [{
|
|
73
|
+
include: ["strings", "url", "comments"]
|
|
74
|
+
}, {
|
|
75
|
+
token: "paren.lparen",
|
|
76
|
+
regex: "\\{",
|
|
77
|
+
next: "start"
|
|
78
|
+
}, {
|
|
79
|
+
token: "paren.rparen",
|
|
80
|
+
regex: "\\}",
|
|
81
|
+
next: "start"
|
|
82
|
+
}, {
|
|
83
|
+
token: "string",
|
|
84
|
+
regex: ";",
|
|
85
|
+
next: "start"
|
|
86
|
+
}, {
|
|
87
|
+
token: "keyword",
|
|
88
|
+
regex: "(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"
|
|
89
|
+
}],
|
|
90
|
+
"comments": [{
|
|
91
|
+
token: "comment",
|
|
92
|
+
// multi line comment
|
|
93
|
+
regex: "\\/\\*",
|
|
94
|
+
push: [{
|
|
95
|
+
token: "comment",
|
|
96
|
+
regex: "\\*\\/",
|
|
97
|
+
next: "pop"
|
|
98
|
+
}, {
|
|
99
|
+
defaultToken: "comment"
|
|
100
|
+
}]
|
|
101
|
+
}],
|
|
102
|
+
"ruleset": [{
|
|
103
|
+
regex: "-(webkit|ms|moz|o)-",
|
|
104
|
+
token: "text"
|
|
105
|
+
}, {
|
|
106
|
+
token: "punctuation.operator",
|
|
107
|
+
regex: "[:;]"
|
|
108
|
+
}, {
|
|
109
|
+
token: "paren.rparen",
|
|
110
|
+
regex: "\\}",
|
|
111
|
+
next: "start"
|
|
112
|
+
}, {
|
|
113
|
+
include: ["strings", "url", "comments"]
|
|
114
|
+
}, {
|
|
115
|
+
token: ["constant.numeric", "keyword"],
|
|
116
|
+
regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
|
|
117
|
+
}, {
|
|
118
|
+
token: "constant.numeric",
|
|
119
|
+
regex: numRe
|
|
120
|
+
}, {
|
|
121
|
+
token: "constant.numeric",
|
|
122
|
+
// hex6 color
|
|
123
|
+
regex: "#[a-f0-9]{6}"
|
|
124
|
+
}, {
|
|
125
|
+
token: "constant.numeric",
|
|
126
|
+
// hex3 color
|
|
127
|
+
regex: "#[a-f0-9]{3}"
|
|
128
|
+
}, {
|
|
129
|
+
token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
|
130
|
+
regex: pseudoElements
|
|
131
|
+
}, {
|
|
132
|
+
token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
|
133
|
+
regex: pseudoClasses
|
|
134
|
+
}, {
|
|
135
|
+
include: "url"
|
|
136
|
+
}, {
|
|
137
|
+
token: keywordMapper,
|
|
138
|
+
regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
|
139
|
+
}, {
|
|
140
|
+
caseInsensitive: true
|
|
141
|
+
}],
|
|
142
|
+
url: [{
|
|
143
|
+
token: "support.function",
|
|
144
|
+
regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
|
|
145
|
+
push: [{
|
|
146
|
+
token: "support.function",
|
|
147
|
+
regex: "\\)",
|
|
148
|
+
next: "pop"
|
|
149
|
+
}, {
|
|
150
|
+
defaultToken: "string"
|
|
151
|
+
}]
|
|
152
|
+
}],
|
|
153
|
+
strings: [{
|
|
154
|
+
token: "string.start",
|
|
155
|
+
regex: "'",
|
|
156
|
+
push: [{
|
|
157
|
+
token: "string.end",
|
|
158
|
+
regex: "'|$",
|
|
159
|
+
next: "pop"
|
|
160
|
+
}, {
|
|
161
|
+
include: "escapes"
|
|
162
|
+
}, {
|
|
163
|
+
token: "constant.language.escape",
|
|
164
|
+
regex: /\\$/,
|
|
165
|
+
consumeLineEnd: true
|
|
166
|
+
}, {
|
|
167
|
+
defaultToken: "string"
|
|
168
|
+
}]
|
|
169
|
+
}, {
|
|
170
|
+
token: "string.start",
|
|
171
|
+
regex: '"',
|
|
172
|
+
push: [{
|
|
173
|
+
token: "string.end",
|
|
174
|
+
regex: '"|$',
|
|
175
|
+
next: "pop"
|
|
176
|
+
}, {
|
|
177
|
+
include: "escapes"
|
|
178
|
+
}, {
|
|
179
|
+
token: "constant.language.escape",
|
|
180
|
+
regex: /\\$/,
|
|
181
|
+
consumeLineEnd: true
|
|
182
|
+
}, {
|
|
183
|
+
defaultToken: "string"
|
|
184
|
+
}]
|
|
185
|
+
}],
|
|
186
|
+
escapes: [{
|
|
187
|
+
token: "constant.language.escape",
|
|
188
|
+
regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
|
|
189
|
+
}]
|
|
190
|
+
};
|
|
191
|
+
this.normalizeRules();
|
|
192
|
+
};
|
|
193
|
+
oop.inherits(CssHighlightRules, TextHighlightRules);
|
|
194
|
+
exports2.CssHighlightRules = CssHighlightRules;
|
|
195
|
+
});
|
|
196
|
+
ace.define("ace/mode/matching_brace_outdent", ["require", "exports", "module", "ace/range"], function(require2, exports2, module2) {
|
|
197
|
+
var Range = require2("../range").Range;
|
|
198
|
+
var MatchingBraceOutdent = function() {
|
|
199
|
+
};
|
|
200
|
+
(function() {
|
|
201
|
+
this.checkOutdent = function(line, input) {
|
|
202
|
+
if (!/^\s+$/.test(line))
|
|
203
|
+
return false;
|
|
204
|
+
return /^\s*\}/.test(input);
|
|
205
|
+
};
|
|
206
|
+
this.autoOutdent = function(doc, row) {
|
|
207
|
+
var line = doc.getLine(row);
|
|
208
|
+
var match = line.match(/^(\s*\})/);
|
|
209
|
+
if (!match)
|
|
210
|
+
return 0;
|
|
211
|
+
var column = match[1].length;
|
|
212
|
+
var openBracePos = doc.findMatchingBracket({ row, column });
|
|
213
|
+
if (!openBracePos || openBracePos.row == row)
|
|
214
|
+
return 0;
|
|
215
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
|
216
|
+
doc.replace(new Range(row, 0, row, column - 1), indent);
|
|
217
|
+
};
|
|
218
|
+
this.$getIndent = function(line) {
|
|
219
|
+
return line.match(/^\s*/)[0];
|
|
220
|
+
};
|
|
221
|
+
}).call(MatchingBraceOutdent.prototype);
|
|
222
|
+
exports2.MatchingBraceOutdent = MatchingBraceOutdent;
|
|
223
|
+
});
|
|
224
|
+
ace.define("ace/mode/css_completions", ["require", "exports", "module"], function(require2, exports2, module2) {
|
|
225
|
+
var propertyMap = {
|
|
226
|
+
"background": { "#$0": 1 },
|
|
227
|
+
"background-color": { "#$0": 1, "transparent": 1, "fixed": 1 },
|
|
228
|
+
"background-image": { "url('/$0')": 1 },
|
|
229
|
+
"background-repeat": { "repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1 },
|
|
230
|
+
"background-position": { "bottom": 2, "center": 2, "left": 2, "right": 2, "top": 2, "inherit": 2 },
|
|
231
|
+
"background-attachment": { "scroll": 1, "fixed": 1 },
|
|
232
|
+
"background-size": { "cover": 1, "contain": 1 },
|
|
233
|
+
"background-clip": { "border-box": 1, "padding-box": 1, "content-box": 1 },
|
|
234
|
+
"background-origin": { "border-box": 1, "padding-box": 1, "content-box": 1 },
|
|
235
|
+
"border": { "solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1 },
|
|
236
|
+
"border-color": { "#$0": 1 },
|
|
237
|
+
"border-style": { "solid": 2, "dashed": 2, "dotted": 2, "double": 2, "groove": 2, "hidden": 2, "inherit": 2, "inset": 2, "none": 2, "outset": 2, "ridged": 2 },
|
|
238
|
+
"border-collapse": { "collapse": 1, "separate": 1 },
|
|
239
|
+
"bottom": { "px": 1, "em": 1, "%": 1 },
|
|
240
|
+
"clear": { "left": 1, "right": 1, "both": 1, "none": 1 },
|
|
241
|
+
"color": { "#$0": 1, "rgb(#$00,0,0)": 1 },
|
|
242
|
+
"cursor": { "default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1 },
|
|
243
|
+
"display": { "none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1 },
|
|
244
|
+
"empty-cells": { "show": 1, "hide": 1 },
|
|
245
|
+
"float": { "left": 1, "right": 1, "none": 1 },
|
|
246
|
+
"font-family": { "Arial": 2, "Comic Sans MS": 2, "Consolas": 2, "Courier New": 2, "Courier": 2, "Georgia": 2, "Monospace": 2, "Sans-Serif": 2, "Segoe UI": 2, "Tahoma": 2, "Times New Roman": 2, "Trebuchet MS": 2, "Verdana": 1 },
|
|
247
|
+
"font-size": { "px": 1, "em": 1, "%": 1 },
|
|
248
|
+
"font-weight": { "bold": 1, "normal": 1 },
|
|
249
|
+
"font-style": { "italic": 1, "normal": 1 },
|
|
250
|
+
"font-variant": { "normal": 1, "small-caps": 1 },
|
|
251
|
+
"height": { "px": 1, "em": 1, "%": 1 },
|
|
252
|
+
"left": { "px": 1, "em": 1, "%": 1 },
|
|
253
|
+
"letter-spacing": { "normal": 1 },
|
|
254
|
+
"line-height": { "normal": 1 },
|
|
255
|
+
"list-style-type": { "none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1 },
|
|
256
|
+
"margin": { "px": 1, "em": 1, "%": 1 },
|
|
257
|
+
"margin-right": { "px": 1, "em": 1, "%": 1 },
|
|
258
|
+
"margin-left": { "px": 1, "em": 1, "%": 1 },
|
|
259
|
+
"margin-top": { "px": 1, "em": 1, "%": 1 },
|
|
260
|
+
"margin-bottom": { "px": 1, "em": 1, "%": 1 },
|
|
261
|
+
"max-height": { "px": 1, "em": 1, "%": 1 },
|
|
262
|
+
"max-width": { "px": 1, "em": 1, "%": 1 },
|
|
263
|
+
"min-height": { "px": 1, "em": 1, "%": 1 },
|
|
264
|
+
"min-width": { "px": 1, "em": 1, "%": 1 },
|
|
265
|
+
"overflow": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
|
|
266
|
+
"overflow-x": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
|
|
267
|
+
"overflow-y": { "hidden": 1, "visible": 1, "auto": 1, "scroll": 1 },
|
|
268
|
+
"padding": { "px": 1, "em": 1, "%": 1 },
|
|
269
|
+
"padding-top": { "px": 1, "em": 1, "%": 1 },
|
|
270
|
+
"padding-right": { "px": 1, "em": 1, "%": 1 },
|
|
271
|
+
"padding-bottom": { "px": 1, "em": 1, "%": 1 },
|
|
272
|
+
"padding-left": { "px": 1, "em": 1, "%": 1 },
|
|
273
|
+
"page-break-after": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
|
|
274
|
+
"page-break-before": { "auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1 },
|
|
275
|
+
"position": { "absolute": 1, "relative": 1, "fixed": 1, "static": 1 },
|
|
276
|
+
"right": { "px": 1, "em": 1, "%": 1 },
|
|
277
|
+
"table-layout": { "fixed": 1, "auto": 1 },
|
|
278
|
+
"text-decoration": { "none": 1, "underline": 1, "line-through": 1, "blink": 1 },
|
|
279
|
+
"text-align": { "left": 1, "right": 1, "center": 1, "justify": 1 },
|
|
280
|
+
"text-transform": { "capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1 },
|
|
281
|
+
"top": { "px": 1, "em": 1, "%": 1 },
|
|
282
|
+
"vertical-align": { "top": 1, "bottom": 1 },
|
|
283
|
+
"visibility": { "hidden": 1, "visible": 1 },
|
|
284
|
+
"white-space": { "nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1 },
|
|
285
|
+
"width": { "px": 1, "em": 1, "%": 1 },
|
|
286
|
+
"word-spacing": { "normal": 1 },
|
|
287
|
+
"filter": { "alpha(opacity=$0100)": 1 },
|
|
288
|
+
"text-shadow": { "$02px 2px 2px #777": 1 },
|
|
289
|
+
"text-overflow": { "ellipsis-word": 1, "clip": 1, "ellipsis": 1 },
|
|
290
|
+
"-moz-border-radius": 1,
|
|
291
|
+
"-moz-border-radius-topright": 1,
|
|
292
|
+
"-moz-border-radius-bottomright": 1,
|
|
293
|
+
"-moz-border-radius-topleft": 1,
|
|
294
|
+
"-moz-border-radius-bottomleft": 1,
|
|
295
|
+
"-webkit-border-radius": 1,
|
|
296
|
+
"-webkit-border-top-right-radius": 1,
|
|
297
|
+
"-webkit-border-top-left-radius": 1,
|
|
298
|
+
"-webkit-border-bottom-right-radius": 1,
|
|
299
|
+
"-webkit-border-bottom-left-radius": 1,
|
|
300
|
+
"-moz-box-shadow": 1,
|
|
301
|
+
"-webkit-box-shadow": 1,
|
|
302
|
+
"transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
|
|
303
|
+
"-moz-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 },
|
|
304
|
+
"-webkit-transform": { "rotate($00deg)": 1, "skew($00deg)": 1 }
|
|
305
|
+
};
|
|
306
|
+
var CssCompletions = function() {
|
|
307
|
+
};
|
|
308
|
+
(function() {
|
|
309
|
+
this.completionsDefined = false;
|
|
310
|
+
this.defineCompletions = function() {
|
|
311
|
+
if (document) {
|
|
312
|
+
var style = document.createElement("c").style;
|
|
313
|
+
for (var i in style) {
|
|
314
|
+
if (typeof style[i] !== "string")
|
|
315
|
+
continue;
|
|
316
|
+
var name = i.replace(/[A-Z]/g, function(x) {
|
|
317
|
+
return "-" + x.toLowerCase();
|
|
318
|
+
});
|
|
319
|
+
if (!propertyMap.hasOwnProperty(name))
|
|
320
|
+
propertyMap[name] = 1;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
this.completionsDefined = true;
|
|
324
|
+
};
|
|
325
|
+
this.getCompletions = function(state, session, pos, prefix) {
|
|
326
|
+
if (!this.completionsDefined) {
|
|
327
|
+
this.defineCompletions();
|
|
328
|
+
}
|
|
329
|
+
if (state === "ruleset" || session.$mode.$id == "ace/mode/scss") {
|
|
330
|
+
var line = session.getLine(pos.row).substr(0, pos.column);
|
|
331
|
+
var inParens = /\([^)]*$/.test(line);
|
|
332
|
+
if (inParens) {
|
|
333
|
+
line = line.substr(line.lastIndexOf("(") + 1);
|
|
334
|
+
}
|
|
335
|
+
if (/:[^;]+$/.test(line)) {
|
|
336
|
+
return this.getPropertyValueCompletions(state, session, pos, prefix);
|
|
337
|
+
} else {
|
|
338
|
+
return this.getPropertyCompletions(state, session, pos, prefix, inParens);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return [];
|
|
342
|
+
};
|
|
343
|
+
this.getPropertyCompletions = function(state, session, pos, prefix, skipSemicolon) {
|
|
344
|
+
skipSemicolon = skipSemicolon || false;
|
|
345
|
+
var properties = Object.keys(propertyMap);
|
|
346
|
+
return properties.map(function(property) {
|
|
347
|
+
return {
|
|
348
|
+
caption: property,
|
|
349
|
+
snippet: property + ": $0" + (skipSemicolon ? "" : ";"),
|
|
350
|
+
meta: "property",
|
|
351
|
+
score: 1e6
|
|
352
|
+
};
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
this.getPropertyValueCompletions = function(state, session, pos, prefix) {
|
|
356
|
+
var line = session.getLine(pos.row).substr(0, pos.column);
|
|
357
|
+
var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
|
|
358
|
+
if (!property)
|
|
359
|
+
return [];
|
|
360
|
+
var values = [];
|
|
361
|
+
if (property in propertyMap && typeof propertyMap[property] === "object") {
|
|
362
|
+
values = Object.keys(propertyMap[property]);
|
|
363
|
+
}
|
|
364
|
+
return values.map(function(value) {
|
|
365
|
+
return {
|
|
366
|
+
caption: value,
|
|
367
|
+
snippet: value,
|
|
368
|
+
meta: "property value",
|
|
369
|
+
score: 1e6
|
|
370
|
+
};
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
}).call(CssCompletions.prototype);
|
|
374
|
+
exports2.CssCompletions = CssCompletions;
|
|
375
|
+
});
|
|
376
|
+
ace.define("ace/mode/behaviour/css", ["require", "exports", "module", "ace/lib/oop", "ace/mode/behaviour", "ace/mode/behaviour/cstyle", "ace/token_iterator"], function(require2, exports2, module2) {
|
|
377
|
+
var oop = require2("../../lib/oop");
|
|
378
|
+
require2("../behaviour").Behaviour;
|
|
379
|
+
var CstyleBehaviour = require2("./cstyle").CstyleBehaviour;
|
|
380
|
+
var TokenIterator = require2("../../token_iterator").TokenIterator;
|
|
381
|
+
var CssBehaviour = function() {
|
|
382
|
+
this.inherit(CstyleBehaviour);
|
|
383
|
+
this.add("colon", "insertion", function(state, action, editor, session, text) {
|
|
384
|
+
if (text === ":" && editor.selection.isEmpty()) {
|
|
385
|
+
var cursor = editor.getCursorPosition();
|
|
386
|
+
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
|
387
|
+
var token = iterator.getCurrentToken();
|
|
388
|
+
if (token && token.value.match(/\s+/)) {
|
|
389
|
+
token = iterator.stepBackward();
|
|
390
|
+
}
|
|
391
|
+
if (token && token.type === "support.type") {
|
|
392
|
+
var line = session.doc.getLine(cursor.row);
|
|
393
|
+
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
|
394
|
+
if (rightChar === ":") {
|
|
395
|
+
return {
|
|
396
|
+
text: "",
|
|
397
|
+
selection: [1, 1]
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
if (/^(\s+[^;]|\s*$)/.test(line.substring(cursor.column))) {
|
|
401
|
+
return {
|
|
402
|
+
text: ":;",
|
|
403
|
+
selection: [1, 1]
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
this.add("colon", "deletion", function(state, action, editor, session, range) {
|
|
410
|
+
var selected = session.doc.getTextRange(range);
|
|
411
|
+
if (!range.isMultiLine() && selected === ":") {
|
|
412
|
+
var cursor = editor.getCursorPosition();
|
|
413
|
+
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
|
414
|
+
var token = iterator.getCurrentToken();
|
|
415
|
+
if (token && token.value.match(/\s+/)) {
|
|
416
|
+
token = iterator.stepBackward();
|
|
417
|
+
}
|
|
418
|
+
if (token && token.type === "support.type") {
|
|
419
|
+
var line = session.doc.getLine(range.start.row);
|
|
420
|
+
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
|
421
|
+
if (rightChar === ";") {
|
|
422
|
+
range.end.column++;
|
|
423
|
+
return range;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
this.add("semicolon", "insertion", function(state, action, editor, session, text) {
|
|
429
|
+
if (text === ";" && editor.selection.isEmpty()) {
|
|
430
|
+
var cursor = editor.getCursorPosition();
|
|
431
|
+
var line = session.doc.getLine(cursor.row);
|
|
432
|
+
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
|
433
|
+
if (rightChar === ";") {
|
|
434
|
+
return {
|
|
435
|
+
text: "",
|
|
436
|
+
selection: [1, 1]
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
this.add("!important", "insertion", function(state, action, editor, session, text) {
|
|
442
|
+
if (text === "!" && editor.selection.isEmpty()) {
|
|
443
|
+
var cursor = editor.getCursorPosition();
|
|
444
|
+
var line = session.doc.getLine(cursor.row);
|
|
445
|
+
if (/^\s*(;|}|$)/.test(line.substring(cursor.column))) {
|
|
446
|
+
return {
|
|
447
|
+
text: "!important",
|
|
448
|
+
selection: [10, 10]
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
oop.inherits(CssBehaviour, CstyleBehaviour);
|
|
455
|
+
exports2.CssBehaviour = CssBehaviour;
|
|
456
|
+
});
|
|
457
|
+
ace.define("ace/mode/folding/cstyle", ["require", "exports", "module", "ace/lib/oop", "ace/range", "ace/mode/folding/fold_mode"], function(require2, exports2, module2) {
|
|
458
|
+
var oop = require2("../../lib/oop");
|
|
459
|
+
var Range = require2("../../range").Range;
|
|
460
|
+
var BaseFoldMode = require2("./fold_mode").FoldMode;
|
|
461
|
+
var FoldMode = exports2.FoldMode = function(commentRegex) {
|
|
462
|
+
if (commentRegex) {
|
|
463
|
+
this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
|
|
464
|
+
this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
|
468
|
+
(function() {
|
|
469
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
|
470
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
|
471
|
+
this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
|
|
472
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
|
473
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
|
474
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
|
475
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
|
476
|
+
var line = session.getLine(row);
|
|
477
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
|
478
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
|
479
|
+
return "";
|
|
480
|
+
}
|
|
481
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
|
482
|
+
if (!fw && this.startRegionRe.test(line))
|
|
483
|
+
return "start";
|
|
484
|
+
return fw;
|
|
485
|
+
};
|
|
486
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
|
487
|
+
var line = session.getLine(row);
|
|
488
|
+
if (this.startRegionRe.test(line))
|
|
489
|
+
return this.getCommentRegionBlock(session, line, row);
|
|
490
|
+
var match = line.match(this.foldingStartMarker);
|
|
491
|
+
if (match) {
|
|
492
|
+
var i = match.index;
|
|
493
|
+
if (match[1])
|
|
494
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
|
495
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
|
496
|
+
if (range && !range.isMultiLine()) {
|
|
497
|
+
if (forceMultiline) {
|
|
498
|
+
range = this.getSectionRange(session, row);
|
|
499
|
+
} else if (foldStyle != "all")
|
|
500
|
+
range = null;
|
|
501
|
+
}
|
|
502
|
+
return range;
|
|
503
|
+
}
|
|
504
|
+
if (foldStyle === "markbegin")
|
|
505
|
+
return;
|
|
506
|
+
var match = line.match(this.foldingStopMarker);
|
|
507
|
+
if (match) {
|
|
508
|
+
var i = match.index + match[0].length;
|
|
509
|
+
if (match[1])
|
|
510
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
|
511
|
+
return session.getCommentFoldRange(row, i, -1);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
this.getSectionRange = function(session, row) {
|
|
515
|
+
var line = session.getLine(row);
|
|
516
|
+
var startIndent = line.search(/\S/);
|
|
517
|
+
var startRow = row;
|
|
518
|
+
var startColumn = line.length;
|
|
519
|
+
row = row + 1;
|
|
520
|
+
var endRow = row;
|
|
521
|
+
var maxRow = session.getLength();
|
|
522
|
+
while (++row < maxRow) {
|
|
523
|
+
line = session.getLine(row);
|
|
524
|
+
var indent = line.search(/\S/);
|
|
525
|
+
if (indent === -1)
|
|
526
|
+
continue;
|
|
527
|
+
if (startIndent > indent)
|
|
528
|
+
break;
|
|
529
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
|
530
|
+
if (subRange) {
|
|
531
|
+
if (subRange.start.row <= startRow) {
|
|
532
|
+
break;
|
|
533
|
+
} else if (subRange.isMultiLine()) {
|
|
534
|
+
row = subRange.end.row;
|
|
535
|
+
} else if (startIndent == indent) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
endRow = row;
|
|
540
|
+
}
|
|
541
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
|
542
|
+
};
|
|
543
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
|
544
|
+
var startColumn = line.search(/\s*$/);
|
|
545
|
+
var maxRow = session.getLength();
|
|
546
|
+
var startRow = row;
|
|
547
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
|
548
|
+
var depth = 1;
|
|
549
|
+
while (++row < maxRow) {
|
|
550
|
+
line = session.getLine(row);
|
|
551
|
+
var m = re.exec(line);
|
|
552
|
+
if (!m)
|
|
553
|
+
continue;
|
|
554
|
+
if (m[1])
|
|
555
|
+
depth--;
|
|
556
|
+
else
|
|
557
|
+
depth++;
|
|
558
|
+
if (!depth)
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
var endRow = row;
|
|
562
|
+
if (endRow > startRow) {
|
|
563
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
}).call(FoldMode.prototype);
|
|
567
|
+
});
|
|
568
|
+
ace.define("ace/mode/css", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text", "ace/mode/css_highlight_rules", "ace/mode/matching_brace_outdent", "ace/worker/worker_client", "ace/mode/css_completions", "ace/mode/behaviour/css", "ace/mode/folding/cstyle"], function(require2, exports2, module2) {
|
|
569
|
+
var oop = require2("../lib/oop");
|
|
570
|
+
var TextMode = require2("./text").Mode;
|
|
571
|
+
var CssHighlightRules = require2("./css_highlight_rules").CssHighlightRules;
|
|
572
|
+
var MatchingBraceOutdent = require2("./matching_brace_outdent").MatchingBraceOutdent;
|
|
573
|
+
var WorkerClient = require2("../worker/worker_client").WorkerClient;
|
|
574
|
+
var CssCompletions = require2("./css_completions").CssCompletions;
|
|
575
|
+
var CssBehaviour = require2("./behaviour/css").CssBehaviour;
|
|
576
|
+
var CStyleFoldMode = require2("./folding/cstyle").FoldMode;
|
|
577
|
+
var Mode = function() {
|
|
578
|
+
this.HighlightRules = CssHighlightRules;
|
|
579
|
+
this.$outdent = new MatchingBraceOutdent();
|
|
580
|
+
this.$behaviour = new CssBehaviour();
|
|
581
|
+
this.$completer = new CssCompletions();
|
|
582
|
+
this.foldingRules = new CStyleFoldMode();
|
|
583
|
+
};
|
|
584
|
+
oop.inherits(Mode, TextMode);
|
|
585
|
+
(function() {
|
|
586
|
+
this.foldingRules = "cStyle";
|
|
587
|
+
this.blockComment = { start: "/*", end: "*/" };
|
|
588
|
+
this.getNextLineIndent = function(state, line, tab) {
|
|
589
|
+
var indent = this.$getIndent(line);
|
|
590
|
+
var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
|
|
591
|
+
if (tokens.length && tokens[tokens.length - 1].type == "comment") {
|
|
592
|
+
return indent;
|
|
593
|
+
}
|
|
594
|
+
var match = line.match(/^.*\{\s*$/);
|
|
595
|
+
if (match) {
|
|
596
|
+
indent += tab;
|
|
597
|
+
}
|
|
598
|
+
return indent;
|
|
599
|
+
};
|
|
600
|
+
this.checkOutdent = function(state, line, input) {
|
|
601
|
+
return this.$outdent.checkOutdent(line, input);
|
|
602
|
+
};
|
|
603
|
+
this.autoOutdent = function(state, doc, row) {
|
|
604
|
+
this.$outdent.autoOutdent(doc, row);
|
|
605
|
+
};
|
|
606
|
+
this.getCompletions = function(state, session, pos, prefix) {
|
|
607
|
+
return this.$completer.getCompletions(state, session, pos, prefix);
|
|
608
|
+
};
|
|
609
|
+
this.createWorker = function(session) {
|
|
610
|
+
var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
|
|
611
|
+
worker.attachToDocument(session.getDocument());
|
|
612
|
+
worker.on("annotate", function(e) {
|
|
613
|
+
session.setAnnotations(e.data);
|
|
614
|
+
});
|
|
615
|
+
worker.on("terminate", function() {
|
|
616
|
+
session.clearAnnotations();
|
|
617
|
+
});
|
|
618
|
+
return worker;
|
|
619
|
+
};
|
|
620
|
+
this.$id = "ace/mode/css";
|
|
621
|
+
this.snippetFileId = "ace/snippets/css";
|
|
622
|
+
}).call(Mode.prototype);
|
|
623
|
+
exports2.Mode = Mode;
|
|
624
|
+
});
|
|
625
|
+
(function() {
|
|
626
|
+
ace.require(["ace/mode/css"], function(m) {
|
|
627
|
+
if (module) {
|
|
628
|
+
module.exports = m;
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
})();
|
|
632
|
+
})(modeCss$2);
|
|
633
|
+
var modeCssExports = modeCss$2.exports;
|
|
634
|
+
const modeCss = /* @__PURE__ */ getDefaultExportFromCjs(modeCssExports);
|
|
635
|
+
const modeCss$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
636
|
+
__proto__: null,
|
|
637
|
+
default: modeCss
|
|
638
|
+
}, [modeCssExports]);
|
|
639
|
+
export {
|
|
640
|
+
modeCss$1 as m
|
|
641
|
+
};
|