1 |
- {"version":3,"file":"ext-statusbar-5609b971.js","sources":["../../node_modules/ace-builds/src-noconflict/ext-statusbar.js"],"sourcesContent":["ace.define(\"ace/ext/statusbar\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/lang\"], function(require, exports, module){\"use strict\";\nvar dom = require(\"../lib/dom\");\nvar lang = require(\"../lib/lang\");\nvar StatusBar = /** @class */ (function () {\n function StatusBar(editor, parentNode) {\n this.element = dom.createElement(\"div\");\n this.element.className = \"ace_status-indicator\";\n this.element.style.cssText = \"display: inline-block;\";\n parentNode.appendChild(this.element);\n var statusUpdate = lang.delayedCall(function () {\n this.updateStatus(editor);\n }.bind(this)).schedule.bind(null, 100);\n editor.on(\"changeStatus\", statusUpdate);\n editor.on(\"changeSelection\", statusUpdate);\n editor.on(\"keyboardActivity\", statusUpdate);\n }\n StatusBar.prototype.updateStatus = function (editor) {\n var status = [];\n function add(str, separator) {\n str && status.push(str, separator || \"|\");\n }\n add(editor.keyBinding.getStatusText(editor));\n if (editor.commands.recording)\n add(\"REC\");\n var sel = editor.selection;\n var c = sel.lead;\n if (!sel.isEmpty()) {\n var r = editor.getSelectionRange();\n add(\"(\" + (r.end.row - r.start.row) + \":\" + (r.end.column - r.start.column) + \")\", \" \");\n }\n add(c.row + \":\" + c.column, \" \");\n if (sel.rangeCount)\n add(\"[\" + sel.rangeCount + \"]\", \" \");\n status.pop();\n this.element.textContent = status.join(\"\");\n };\n return StatusBar;\n}());\nexports.StatusBar = StatusBar;\n\n}); (function() {\n ace.require([\"ace/ext/statusbar\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","dom","lang","StatusBar","editor","parentNode","statusUpdate","status","add","str","separator","sel","c","r","m"],"mappings":"gaAAA,IAAI,OAAO,oBAAoB,CAAC,UAAU,UAAU,SAAS,cAAc,cAAc,EAAG,SAASA,EAASC,EAASC,EAAO,CAC9H,IAAIC,EAAMH,EAA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