yks-element 1.5.2 → 1.5.4
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/lib/019e34e85139cfc611bf23efa096c980.js +18 -0
- package/lib/07567125b93045706d81f17f7d04e262.js +120 -0
- package/lib/0d56a1f26e052a1bafd10a87782fc74b.js +3380 -0
- package/lib/27846e85433e54a3ec0ab34d62233dc5.js +186 -0
- package/lib/2f25a4dc442bc9aebc58cae30c50c3e2.js +192 -0
- package/lib/2f55cddc8eb85b63ee5b4ce0e5488230.js +67 -0
- package/lib/2fe2904fc024afaf81732563cb83e547.js +116 -0
- package/lib/3b02cca9e95276a74f3ed2bbc7a64ce6.js +409 -0
- package/lib/70efbabef77fb217f904f41dbf7fe8bf.js +380 -0
- package/lib/7cec85e554cfaf2464511da505025098.js +74 -0
- package/lib/852f0ecd7b17e3bfd700a821ff438f7e.js +330 -0
- package/lib/88730abfeb4a23e692ac7933882f12eb.js +255 -0
- package/lib/8b8336037f074d9dcbd20eab535b803f.js +227 -0
- package/lib/9979f39c4d2773e02151a6cf1558101b.js +768 -0
- package/lib/af6e31c060c273848b5fec9fdba8814d.js +3066 -0
- package/lib/babd8df6809ef43238f1b280c2cebfe3.js +265 -0
- package/lib/bb1365c0983ce5ad50060b24788b9630.js +459 -0
- package/lib/c0a8aa1d5e0611259e47c2008cb203ee.js +197 -0
- package/lib/c530988d2b1966fd10a4d99fa3877e1b.js +9 -0
- package/lib/c8acc93023012737a3bf8fb767b66838.js +1293 -0
- package/lib/d0415105402964718010284fcfa8b2ea.js +48 -0
- package/lib/d11ab4aa7dd9123fdecb075ff5c5a748.js +790 -0
- package/lib/d1907231dc06c32481fefd6d47da973b.js +344 -0
- package/lib/d429602e0ebf3c1ec040e070e9b05b9b.js +184 -0
- package/lib/e4fc956693373117f057fe9914e983fc.js +7090 -0
- package/lib/f15362a7feef894b2e7f706252e6c510.js +45 -0
- package/lib/f666b5647087bcfdf6623f8b14d56657.js +136 -0
- package/lib/fac0ce75e0690947a9e9e6f5b35c1ea8.js +1067 -0
- package/lib/fec23c6964d6cf25681d1f3e24b076a4.js +56 -0
- package/lib/yks.js +1 -1
- package/package.json +1 -1
- package/lib/6c6d192b6860b4508a14c2d04769a35e.js +0 -15404
- package/lib/c3832579be376308fa819b04e7b0c66f.js +0 -3788
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"], function(require, exports, module){"use strict";
|
|
2
|
+
var dom = require("../lib/dom");
|
|
3
|
+
var lang = require("../lib/lang");
|
|
4
|
+
var StatusBar = /** @class */ (function () {
|
|
5
|
+
function StatusBar(editor, parentNode) {
|
|
6
|
+
this.element = dom.createElement("div");
|
|
7
|
+
this.element.className = "ace_status-indicator";
|
|
8
|
+
this.element.style.cssText = "display: inline-block;";
|
|
9
|
+
parentNode.appendChild(this.element);
|
|
10
|
+
var statusUpdate = lang.delayedCall(function () {
|
|
11
|
+
this.updateStatus(editor);
|
|
12
|
+
}.bind(this)).schedule.bind(null, 100);
|
|
13
|
+
editor.on("changeStatus", statusUpdate);
|
|
14
|
+
editor.on("changeSelection", statusUpdate);
|
|
15
|
+
editor.on("keyboardActivity", statusUpdate);
|
|
16
|
+
}
|
|
17
|
+
StatusBar.prototype.updateStatus = function (editor) {
|
|
18
|
+
var status = [];
|
|
19
|
+
function add(str, separator) {
|
|
20
|
+
str && status.push(str, separator || "|");
|
|
21
|
+
}
|
|
22
|
+
add(editor.keyBinding.getStatusText(editor));
|
|
23
|
+
if (editor.commands.recording)
|
|
24
|
+
add("REC");
|
|
25
|
+
var sel = editor.selection;
|
|
26
|
+
var c = sel.lead;
|
|
27
|
+
if (!sel.isEmpty()) {
|
|
28
|
+
var r = editor.getSelectionRange();
|
|
29
|
+
add("(" + (r.end.row - r.start.row) + ":" + (r.end.column - r.start.column) + ")", " ");
|
|
30
|
+
}
|
|
31
|
+
add(c.row + ":" + c.column, " ");
|
|
32
|
+
if (sel.rangeCount)
|
|
33
|
+
add("[" + sel.rangeCount + "]", " ");
|
|
34
|
+
status.pop();
|
|
35
|
+
this.element.textContent = status.join("");
|
|
36
|
+
};
|
|
37
|
+
return StatusBar;
|
|
38
|
+
}());
|
|
39
|
+
exports.StatusBar = StatusBar;
|
|
40
|
+
|
|
41
|
+
}); (function() {
|
|
42
|
+
ace.require(["ace/ext/statusbar"], function(m) {
|
|
43
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
44
|
+
module.exports = m;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
})();
|
|
48
|
+
|