sqlite-wasm-viewer 1.0.1 → 1.0.3
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/README.md +43 -0
- package/dist/DbViewerWorker.js +137 -0
- package/dist/DbWorker.js +7 -0
- package/dist/ListVirtualizer.js +90 -0
- package/dist/QueryRunner.js +52 -0
- package/dist/dbScanner.js +137 -0
- package/dist/index.js +129 -466
- package/dist/styles.css +65 -0
- package/dist/types.js +5 -0
- package/dist/viewerState.js +60 -0
- package/dist/views/EditCellView/EditCellView.js +74 -0
- package/dist/views/EditCellView/styles.css +23 -0
- package/dist/views/ExecuteSQLView/ExecuteSQLView.js +57 -0
- package/dist/views/ExecuteSQLView/styles.css +47 -0
- package/dist/views/ExplorerView/ExplorerView.js +91 -0
- package/dist/views/ExplorerView/styles.css +30 -0
- package/dist/views/SqlLogView/SqlLogView.js +40 -0
- package/dist/views/SqlLogView/styles.css +10 -0
- package/dist/views/TableView/TableView.js +239 -0
- package/dist/views/TableView/styles.css +81 -0
- package/package.json +6 -3
- package/dist/838.index.js +0 -2
- package/dist/838.index.js.LICENSE.txt +0 -1
- package/dist/index.js.LICENSE.txt +0 -1
- package/dist/src_DbWorker_ts.index.js +0 -118
package/dist/index.js
CHANGED
|
@@ -1,466 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ collectDbFiles: () => (/* binding */ collectDbFiles)\n/* harmony export */ });\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = \"function\" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, \"\"); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: \"normal\", arg: fn.call(obj, arg) }; } catch (err) { return { type: \"throw\", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { [\"next\", \"throw\", \"return\"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if (\"throw\" !== record.type) { var result = record.arg, value = result.value; return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke(\"next\", value, resolve, reject); }, function (err) { invoke(\"throw\", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke(\"throw\", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, \"_invoke\", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = \"suspendedStart\"; return function (method, arg) { if (\"executing\" === state) throw new Error(\"Generator is already running\"); if (\"completed\" === state) { if (\"throw\" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) { if (\"suspendedStart\" === state) throw state = \"completed\", context.arg; context.dispatchException(context.arg); } else \"return\" === context.method && context.abrupt(\"return\", context.arg); state = \"executing\"; var record = tryCatch(innerFn, self, context); if (\"normal\" === record.type) { if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = \"normal\", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: \"root\" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if (\"function\" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) { var ctor = \"function\" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, \"toString\", function () { return \"[object Generator]\"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if (\"throw\" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if (\"root\" === entry.tryLoc) return handle(\"end\"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, \"catchLoc\"), hasFinally = hasOwn.call(entry, \"finallyLoc\"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error(\"try statement without catch or finally\"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if (\"throw\" === record.type) throw record.arg; return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, \"catch\": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if (\"throw\" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _asyncIterator(iterable) { var method, async, sync, retry = 2; for (\"undefined\" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { if (async && null != (method = iterable[async])) return method.call(iterable); if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); async = \"@@asyncIterator\", sync = \"@@iterator\"; } throw new TypeError(\"Object is not async iterable\"); }\nfunction AsyncFromSyncIterator(s) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + \" is not an object.\")); var done = r.done; return Promise.resolve(r.value).then(function (value) { return { value: value, done: done }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { this.s = s, this.n = s.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, \"return\": function _return(value) { var ret = this.s[\"return\"]; return void 0 === ret ? Promise.resolve({ value: value, done: !0 }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); }, \"throw\": function _throw(value) { var thr = this.s[\"return\"]; return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(s); }\nfunction collectDbFiles(_x) {\n return _collectDbFiles.apply(this, arguments);\n}\nfunction _collectDbFiles() {\n _collectDbFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(isSqliteDatabase) {\n var root, dbFileHandlers;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return navigator.storage.getDirectory();\n case 2:\n root = _context.sent;\n _context.next = 5;\n return getDbFiles(root, isSqliteDatabase);\n case 5:\n dbFileHandlers = _context.sent;\n return _context.abrupt(\"return\", Promise.all(dbFileHandlers.map(function (dbFile) {\n return root.resolve(dbFile).then(function (parts) {\n return (parts === null || parts === void 0 ? void 0 : parts.join('/')) || '';\n });\n })));\n case 7:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _collectDbFiles.apply(this, arguments);\n}\nfunction getDbFiles(_x2, _x3) {\n return _getDbFiles.apply(this, arguments);\n}\nfunction _getDbFiles() {\n _getDbFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(root, isSqliteDatabase) {\n var dbs, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, handle, child, _dbs, childDbs;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n dbs = [];\n _iteratorAbruptCompletion = false;\n _didIteratorError = false;\n _context2.prev = 3;\n _iterator = _asyncIterator(root.values());\n case 5:\n _context2.next = 7;\n return _iterator.next();\n case 7:\n if (!(_iteratorAbruptCompletion = !(_step = _context2.sent).done)) {\n _context2.next = 21;\n break;\n }\n handle = _step.value;\n child = handle;\n if (!(child.kind === 'directory')) {\n _context2.next = 17;\n break;\n }\n _context2.next = 13;\n return getDbFiles(child, isSqliteDatabase);\n case 13:\n childDbs = _context2.sent;\n dbs = (_dbs = dbs).concat.apply(_dbs, [dbs].concat(_toConsumableArray(childDbs)));\n _context2.next = 18;\n break;\n case 17:\n if (isSqliteDatabase(child.name)) {\n dbs.push(child);\n }\n case 18:\n _iteratorAbruptCompletion = false;\n _context2.next = 5;\n break;\n case 21:\n _context2.next = 27;\n break;\n case 23:\n _context2.prev = 23;\n _context2.t0 = _context2[\"catch\"](3);\n _didIteratorError = true;\n _iteratorError = _context2.t0;\n case 27:\n _context2.prev = 27;\n _context2.prev = 28;\n if (!(_iteratorAbruptCompletion && _iterator[\"return\"] != null)) {\n _context2.next = 32;\n break;\n }\n _context2.next = 32;\n return _iterator[\"return\"]();\n case 32:\n _context2.prev = 32;\n if (!_didIteratorError) {\n _context2.next = 35;\n break;\n }\n throw _iteratorError;\n case 35:\n return _context2.finish(32);\n case 36:\n return _context2.finish(27);\n case 37:\n return _context2.abrupt(\"return\", dbs);\n case 38:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2, null, [[3, 23, 27, 37], [28,, 32, 36]]);\n }));\n return _getDbFiles.apply(this, arguments);\n}\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/dbScanner.ts?");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TableView: () => (/* binding */ TableView)\n/* harmony export */ });\n/* harmony import */ var _viewerState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../viewerState */ \"./src/viewerState.ts\");\n/* harmony import */ var _ListVirtualizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ListVirtualizer */ \"./src/ListVirtualizer.ts\");\n/* harmony import */ var _styles_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styles.css */ \"./src/views/TableView/styles.css\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n\n\nvar TableView = /*#__PURE__*/function () {\n function TableView(viewerElem, rootElement, queryRunner) {\n var _this = this;\n _classCallCheck(this, TableView);\n _defineProperty(this, \"columnNames\", []);\n _defineProperty(this, \"fitlers\", {});\n _defineProperty(this, \"updateTimer\", null);\n _defineProperty(this, \"selectedCell\", null);\n this.viewerElem = viewerElem;\n this.rootElement = rootElement;\n this.queryRunner = queryRunner;\n this.buildDomTemplate();\n this.viewerElem.addEventListener('tableSelected', function (event) {\n var selectedTable = event.detail;\n _this.setTable(selectedTable.tableName);\n });\n this.virtualizer = new _ListVirtualizer__WEBPACK_IMPORTED_MODULE_1__.ListVirtualizer({\n width: 500,\n height: 930,\n totalRows: 0,\n itemHeight: 40,\n contentRoot: this.bodyRoot,\n container: this.container,\n generatorFn: function generatorFn(i) {\n var _row$rowid;\n var row = _this.rows[i];\n if (!row) {\n return null;\n }\n var tr = document.createElement('tr');\n var rowId = (_row$rowid = row.rowid) !== null && _row$rowid !== void 0 ? _row$rowid : (i + 1).toString();\n Object.keys(row).forEach(function (columnKey) {\n if (columnKey === 'rowid') {\n return;\n }\n var value = row[columnKey];\n var td = document.createElement('td');\n var contentEl = document.createElement('div');\n if (value !== null) {\n contentEl.innerHTML = value;\n } else {\n contentEl.innerHTML = 'NULL';\n contentEl.className = 'nullValue';\n }\n td.onclick = function () {\n var _ViewerState$instance;\n _viewerState__WEBPACK_IMPORTED_MODULE_0__.ViewerState.instance.setSelectedCell({\n value: value,\n cellRowId: rowId,\n columnName: columnKey,\n tableName: ((_ViewerState$instance = _viewerState__WEBPACK_IMPORTED_MODULE_0__.ViewerState.instance.selectedTable) === null || _ViewerState$instance === void 0 ? void 0 : _ViewerState$instance.tableName) || ''\n });\n if (_this.selectedCell) {\n _this.selectedCell.classList.remove('selected');\n }\n td.classList.add('selected');\n _this.selectedCell = td;\n };\n td.appendChild(contentEl);\n tr.appendChild(td);\n });\n _this.bodyRoot.appendChild(tr);\n return tr;\n }\n });\n }\n _createClass(TableView, [{\n key: \"setTableResults\",\n value: function setTableResults(rows) {\n this.rows = rows;\n this.viewHeaderTitle.innerHTML = this.tableName;\n this.buildHeader(rows);\n this.virtualizer.setRowCount(rows.length);\n }\n }, {\n key: \"buildDomTemplate\",\n value: function buildDomTemplate() {\n var _this2 = this;\n this.viewHeader = document.createElement('div');\n this.viewHeader.className = 'viewHeader';\n this.viewHeaderTitle = document.createElement('span');\n this.viewHeaderTitle.id = 'table_view_header_title';\n this.viewHeader.appendChild(this.viewHeaderTitle);\n var updateBtn = document.createElement('button');\n updateBtn.innerText = 'Update';\n updateBtn.onclick = function () {\n _this2.requestRows();\n };\n this.viewHeader.appendChild(updateBtn);\n var saveBtn = document.createElement('button');\n saveBtn.innerText = 'Save changes';\n saveBtn.onclick = function () {\n _this2.saveChanges();\n };\n saveBtn.setAttribute('disabled', '');\n this.viewHeader.appendChild(saveBtn);\n var revertBtn = document.createElement('button');\n revertBtn.innerText = 'Revert changes';\n revertBtn.onclick = function () {\n _this2.revertChanges();\n };\n revertBtn.setAttribute('disabled', '');\n this.viewHeader.appendChild(revertBtn);\n this.rootElement.appendChild(this.viewHeader);\n this.container = document.createElement('div');\n this.container.id = 'table_container';\n var table = document.createElement('table');\n var tableHeader = table.createTHead();\n this.headerRow = document.createElement('tr');\n tableHeader.appendChild(this.headerRow);\n this.bodyRoot = table.createTBody();\n this.container.appendChild(table);\n this.rootElement.appendChild(this.container);\n this.viewerElem.addEventListener('hasChanges', function (event) {\n var hasChanges = event.detail;\n if (hasChanges) {\n saveBtn.removeAttribute('disabled');\n revertBtn.removeAttribute('disabled');\n } else {\n saveBtn.setAttribute('disabled', '');\n revertBtn.setAttribute('disabled', '');\n }\n });\n }\n }, {\n key: \"buildHeader\",\n value: function buildHeader(rows) {\n var _this3 = this;\n if (this.columnNames.length !== 0) {\n return;\n }\n var schema = rows.length > 0 ? Object.keys(rows[0]).filter(function (column) {\n return column !== 'rowid';\n }) : [];\n if (schema.length > 0) {\n this.columnNames = schema;\n }\n this.headerRow.innerHTML = '';\n this.columnNames.forEach(function (column) {\n var columnHeader = document.createElement('th');\n columnHeader.className = 'columnHeaderCell';\n columnHeader.innerHTML = column;\n var filterFieldCell = document.createElement('th');\n filterFieldCell.className = 'columnFilterCell';\n var filterField = document.createElement('input');\n filterField.oninput = function () {\n _this3.fitlers[column] = filterField.value;\n _this3.scheduleUpdate();\n };\n filterField.placeholder = 'Filter';\n filterFieldCell.appendChild(filterField);\n _this3.headerRow.appendChild(columnHeader);\n columnHeader.appendChild(filterFieldCell);\n });\n }\n }, {\n key: \"setTable\",\n value: function setTable(name) {\n if (this.tableName === name) {\n return;\n }\n this.tableName = name;\n this.columnNames = [];\n this.fitlers = {};\n this.requestRows();\n }\n }, {\n key: \"requestRows\",\n value: function requestRows() {\n var sql = \"SELECT \\\"_rowid_\\\",* FROM \".concat(this.tableName);\n var filterSql = [];\n Object.entries(this.fitlers).forEach(function (filterEntry) {\n var column = filterEntry[0];\n var filter = filterEntry[1];\n if (filter) {\n filterSql.push(\"\\\"\".concat(column, \"\\\" LIKE '%\").concat(filter, \"%'\"));\n }\n });\n if (filterSql.length > 0) {\n sql += \" WHERE \".concat(filterSql.join(' AND '), \" ESCAPE '\\\\'\");\n }\n this.queryRunner.runQuery({\n sql: sql,\n parameters: []\n }, 'tableView');\n }\n }, {\n key: \"saveChanges\",\n value: function saveChanges() {\n var sql = 'RELEASE \"RESTOREPOINT\";';\n this.queryRunner.runQuery({\n sql: sql,\n parameters: []\n });\n _viewerState__WEBPACK_IMPORTED_MODULE_0__.ViewerState.instance.setHasChanges(false);\n }\n }, {\n key: \"revertChanges\",\n value: function revertChanges() {\n var sql = 'ROLLBACK TO SAVEPOINT \"RESTOREPOINT\";';\n this.queryRunner.runQuery({\n sql: sql,\n parameters: []\n });\n this.requestRows();\n _viewerState__WEBPACK_IMPORTED_MODULE_0__.ViewerState.instance.setHasChanges(false);\n }\n }, {\n key: \"scheduleUpdate\",\n value: function scheduleUpdate() {\n var _this4 = this;\n if (this.updateTimer !== null) {\n window.clearTimeout(this.updateTimer);\n }\n this.updateTimer = window.setTimeout(function () {\n _this4.requestRows();\n _this4.updateTimer = null;\n }, 300);\n }\n }]);\n return TableView;\n}();\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/TableView/TableView.ts?");
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/***/ }),
|
|
132
|
-
|
|
133
|
-
/***/ "../node_modules/css-loader/dist/cjs.js!./src/views/ExecuteSQLView/styles.css":
|
|
134
|
-
/*!************************************************************************************!*\
|
|
135
|
-
!*** ../node_modules/css-loader/dist/cjs.js!./src/views/ExecuteSQLView/styles.css ***!
|
|
136
|
-
\************************************************************************************/
|
|
137
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
138
|
-
|
|
139
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#execute_sql_container {\n display: flex;\n flex-direction: column;\n}\n\n#execute_sql_editor {\n position: relative;\n background-color: white;\n height: 300px;\n}\n\n#execute_sql_textarea, #execute_sql_highlighting {\n resize: none;\n height: 300px;\n background-color: white;\n overflow: auto;\n white-space: nowrap;\n font-size: 10pt;\n font-family: monospace;\n line-height: 1.5;\n tab-size: 2;\n caret-color: black;\n}\n\n#execute_sql_highlighting {\n z-index: 0;\n margin: 0;\n padding: 2px;\n}\n\n.highlighting {\n color: blue;\n}\n\n.sql-hl-keyword {\n color: purple;\n /* font-weight: 600; */\n}\n\n.sql-hl-special {\n color: black;\n}\n\n.sql-hl-string {\n color: red;\n /* font-weight: 600; */\n}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/ExecuteSQLView/styles.css?../node_modules/css-loader/dist/cjs.js");
|
|
140
|
-
|
|
141
|
-
/***/ }),
|
|
142
|
-
|
|
143
|
-
/***/ "../node_modules/css-loader/dist/cjs.js!./src/views/ExplorerView/styles.css":
|
|
144
|
-
/*!**********************************************************************************!*\
|
|
145
|
-
!*** ../node_modules/css-loader/dist/cjs.js!./src/views/ExplorerView/styles.css ***!
|
|
146
|
-
\**********************************************************************************/
|
|
147
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
148
|
-
|
|
149
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#explorer_tree {\n padding: 8px;\n padding-left: 20px;\n}\n\n#explorer_tree > .db {\n position: relative;\n text-overflow: ellipsis;\n overflow-y: clip;\n}\n\n#explorer_tree .expand {\n position: absolute;\n top: 0;\n left: -15px;\n transition: all .3s ease-in;\n}\n\n#explorer_tree .expanded {\n transform: rotate(90deg);\n}\n\n#explorer_tree > .table {\n margin-left: 20px;\n cursor: pointer;\n}\n\n#explorer_tree > .table.selected {\n background-color: rgb(128, 128, 128);\n}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/ExplorerView/styles.css?../node_modules/css-loader/dist/cjs.js");
|
|
150
|
-
|
|
151
|
-
/***/ }),
|
|
152
|
-
|
|
153
|
-
/***/ "../node_modules/css-loader/dist/cjs.js!./src/views/SqlLogView/styles.css":
|
|
154
|
-
/*!********************************************************************************!*\
|
|
155
|
-
!*** ../node_modules/css-loader/dist/cjs.js!./src/views/SqlLogView/styles.css ***!
|
|
156
|
-
\********************************************************************************/
|
|
157
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
158
|
-
|
|
159
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#sql_log_container {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n}\n\n#query_log_text {\n resize: none;\n height: 100%;\n}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/SqlLogView/styles.css?../node_modules/css-loader/dist/cjs.js");
|
|
160
|
-
|
|
161
|
-
/***/ }),
|
|
162
|
-
|
|
163
|
-
/***/ "../node_modules/css-loader/dist/cjs.js!./src/views/TableView/styles.css":
|
|
164
|
-
/*!*******************************************************************************!*\
|
|
165
|
-
!*** ../node_modules/css-loader/dist/cjs.js!./src/views/TableView/styles.css ***!
|
|
166
|
-
\*******************************************************************************/
|
|
167
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
168
|
-
|
|
169
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"../node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"../node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#table_view {\n padding: 5px;\n flex: 1;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n\n#table_view_header {\n max-height: 20px;\n flex-basis: 20px;\n left: 0;\n right: 0;\n position: sticky;\n line-height: 1.1rem;\n padding: 8px;\n background-color: lightgray;\n}\n\n#table_view_header_title {\n padding: 8px;\n}\n\n#table_container {\n overflow-y: scroll;\n display: flex;\n}\n\n#table_container table {\n background-color: whitesmoke;\n border-collapse: collapse;\n border-spacing: 0;\n flex: 1;\n flex-direction: column;\n}\n\n#table_container tbody {\n flex: 1;\n overflow-y: scroll;\n position: relative;\n}\n\n#table_container .columnHeaderCell {\n height: 60px;\n position: sticky;\n top: 0;\n background-color: darkgray;\n z-index: 2;\n}\n\n#table_container .columnFilterCell {\n padding-top: 5px;\n}\n\n#table_container td, #table_container .columnHeaderCell {\n border: 1px solid lightgray;\n}\n\n#table_container td.selected {\n background-color: lightslategray;\n color: white;\n}\n\n#table_container td div {\n height: 40px;\n box-sizing: border-box;\n display: -webkit-box;\n padding: 4px;\n text-overflow: ellipsis;\n overflow: hidden;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n\n#table_container .nullValue {\n font-style: italic;\n color: gray;\n}`, \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/TableView/styles.css?../node_modules/css-loader/dist/cjs.js");
|
|
170
|
-
|
|
171
|
-
/***/ }),
|
|
172
|
-
|
|
173
|
-
/***/ "../node_modules/css-loader/dist/runtime/api.js":
|
|
174
|
-
/*!******************************************************!*\
|
|
175
|
-
!*** ../node_modules/css-loader/dist/runtime/api.js ***!
|
|
176
|
-
\******************************************************/
|
|
177
|
-
/***/ ((module) => {
|
|
178
|
-
|
|
179
|
-
eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/css-loader/dist/runtime/api.js?");
|
|
180
|
-
|
|
181
|
-
/***/ }),
|
|
182
|
-
|
|
183
|
-
/***/ "../node_modules/css-loader/dist/runtime/noSourceMaps.js":
|
|
184
|
-
/*!***************************************************************!*\
|
|
185
|
-
!*** ../node_modules/css-loader/dist/runtime/noSourceMaps.js ***!
|
|
186
|
-
\***************************************************************/
|
|
187
|
-
/***/ ((module) => {
|
|
188
|
-
|
|
189
|
-
eval("\n\nmodule.exports = function (i) {\n return i[1];\n};\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/css-loader/dist/runtime/noSourceMaps.js?");
|
|
190
|
-
|
|
191
|
-
/***/ }),
|
|
192
|
-
|
|
193
|
-
/***/ "./src/styles.css":
|
|
194
|
-
/*!************************!*\
|
|
195
|
-
!*** ./src/styles.css ***!
|
|
196
|
-
\************************/
|
|
197
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
198
|
-
|
|
199
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/styles.css?");
|
|
200
|
-
|
|
201
|
-
/***/ }),
|
|
202
|
-
|
|
203
|
-
/***/ "./src/views/EditCellView/styles.css":
|
|
204
|
-
/*!*******************************************!*\
|
|
205
|
-
!*** ./src/views/EditCellView/styles.css ***!
|
|
206
|
-
\*******************************************/
|
|
207
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
208
|
-
|
|
209
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/views/EditCellView/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/EditCellView/styles.css?");
|
|
210
|
-
|
|
211
|
-
/***/ }),
|
|
212
|
-
|
|
213
|
-
/***/ "./src/views/ExecuteSQLView/styles.css":
|
|
214
|
-
/*!*********************************************!*\
|
|
215
|
-
!*** ./src/views/ExecuteSQLView/styles.css ***!
|
|
216
|
-
\*********************************************/
|
|
217
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
218
|
-
|
|
219
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/views/ExecuteSQLView/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/ExecuteSQLView/styles.css?");
|
|
220
|
-
|
|
221
|
-
/***/ }),
|
|
222
|
-
|
|
223
|
-
/***/ "./src/views/ExplorerView/styles.css":
|
|
224
|
-
/*!*******************************************!*\
|
|
225
|
-
!*** ./src/views/ExplorerView/styles.css ***!
|
|
226
|
-
\*******************************************/
|
|
227
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
228
|
-
|
|
229
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/views/ExplorerView/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/ExplorerView/styles.css?");
|
|
230
|
-
|
|
231
|
-
/***/ }),
|
|
232
|
-
|
|
233
|
-
/***/ "./src/views/SqlLogView/styles.css":
|
|
234
|
-
/*!*****************************************!*\
|
|
235
|
-
!*** ./src/views/SqlLogView/styles.css ***!
|
|
236
|
-
\*****************************************/
|
|
237
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
238
|
-
|
|
239
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/views/SqlLogView/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/SqlLogView/styles.css?");
|
|
240
|
-
|
|
241
|
-
/***/ }),
|
|
242
|
-
|
|
243
|
-
/***/ "./src/views/TableView/styles.css":
|
|
244
|
-
/*!****************************************!*\
|
|
245
|
-
!*** ./src/views/TableView/styles.css ***!
|
|
246
|
-
\****************************************/
|
|
247
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
248
|
-
|
|
249
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"../node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"../node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"../node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"../node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!./styles.css */ \"../node_modules/css-loader/dist/cjs.js!./src/views/TableView/styles.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_styles_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://sqlite-wasm-viewer/./src/views/TableView/styles.css?");
|
|
250
|
-
|
|
251
|
-
/***/ }),
|
|
252
|
-
|
|
253
|
-
/***/ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
|
|
254
|
-
/*!*****************************************************************************!*\
|
|
255
|
-
!*** ../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
|
|
256
|
-
\*****************************************************************************/
|
|
257
|
-
/***/ ((module) => {
|
|
258
|
-
|
|
259
|
-
eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?");
|
|
260
|
-
|
|
261
|
-
/***/ }),
|
|
262
|
-
|
|
263
|
-
/***/ "../node_modules/style-loader/dist/runtime/insertBySelector.js":
|
|
264
|
-
/*!*********************************************************************!*\
|
|
265
|
-
!*** ../node_modules/style-loader/dist/runtime/insertBySelector.js ***!
|
|
266
|
-
\*********************************************************************/
|
|
267
|
-
/***/ ((module) => {
|
|
268
|
-
|
|
269
|
-
eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/insertBySelector.js?");
|
|
270
|
-
|
|
271
|
-
/***/ }),
|
|
272
|
-
|
|
273
|
-
/***/ "../node_modules/style-loader/dist/runtime/insertStyleElement.js":
|
|
274
|
-
/*!***********************************************************************!*\
|
|
275
|
-
!*** ../node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
|
|
276
|
-
\***********************************************************************/
|
|
277
|
-
/***/ ((module) => {
|
|
278
|
-
|
|
279
|
-
eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/insertStyleElement.js?");
|
|
280
|
-
|
|
281
|
-
/***/ }),
|
|
282
|
-
|
|
283
|
-
/***/ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":
|
|
284
|
-
/*!***********************************************************************************!*\
|
|
285
|
-
!*** ../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
|
|
286
|
-
\***********************************************************************************/
|
|
287
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
288
|
-
|
|
289
|
-
eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?");
|
|
290
|
-
|
|
291
|
-
/***/ }),
|
|
292
|
-
|
|
293
|
-
/***/ "../node_modules/style-loader/dist/runtime/styleDomAPI.js":
|
|
294
|
-
/*!****************************************************************!*\
|
|
295
|
-
!*** ../node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
|
|
296
|
-
\****************************************************************/
|
|
297
|
-
/***/ ((module) => {
|
|
298
|
-
|
|
299
|
-
eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/styleDomAPI.js?");
|
|
300
|
-
|
|
301
|
-
/***/ }),
|
|
302
|
-
|
|
303
|
-
/***/ "../node_modules/style-loader/dist/runtime/styleTagTransform.js":
|
|
304
|
-
/*!**********************************************************************!*\
|
|
305
|
-
!*** ../node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
|
|
306
|
-
\**********************************************************************/
|
|
307
|
-
/***/ ((module) => {
|
|
308
|
-
|
|
309
|
-
eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://sqlite-wasm-viewer/../node_modules/style-loader/dist/runtime/styleTagTransform.js?");
|
|
310
|
-
|
|
311
|
-
/***/ })
|
|
312
|
-
|
|
313
|
-
/******/ });
|
|
314
|
-
/************************************************************************/
|
|
315
|
-
/******/ // The module cache
|
|
316
|
-
/******/ var __webpack_module_cache__ = {};
|
|
317
|
-
/******/
|
|
318
|
-
/******/ // The require function
|
|
319
|
-
/******/ function __webpack_require__(moduleId) {
|
|
320
|
-
/******/ // Check if module is in cache
|
|
321
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
322
|
-
/******/ if (cachedModule !== undefined) {
|
|
323
|
-
/******/ return cachedModule.exports;
|
|
324
|
-
/******/ }
|
|
325
|
-
/******/ // Create a new module (and put it into the cache)
|
|
326
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
327
|
-
/******/ id: moduleId,
|
|
328
|
-
/******/ // no module.loaded needed
|
|
329
|
-
/******/ exports: {}
|
|
330
|
-
/******/ };
|
|
331
|
-
/******/
|
|
332
|
-
/******/ // Execute the module function
|
|
333
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
334
|
-
/******/
|
|
335
|
-
/******/ // Return the exports of the module
|
|
336
|
-
/******/ return module.exports;
|
|
337
|
-
/******/ }
|
|
338
|
-
/******/
|
|
339
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
340
|
-
/******/ __webpack_require__.m = __webpack_modules__;
|
|
341
|
-
/******/
|
|
342
|
-
/************************************************************************/
|
|
343
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
344
|
-
/******/ (() => {
|
|
345
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
346
|
-
/******/ __webpack_require__.n = (module) => {
|
|
347
|
-
/******/ var getter = module && module.__esModule ?
|
|
348
|
-
/******/ () => (module['default']) :
|
|
349
|
-
/******/ () => (module);
|
|
350
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
351
|
-
/******/ return getter;
|
|
352
|
-
/******/ };
|
|
353
|
-
/******/ })();
|
|
354
|
-
/******/
|
|
355
|
-
/******/ /* webpack/runtime/define property getters */
|
|
356
|
-
/******/ (() => {
|
|
357
|
-
/******/ // define getter functions for harmony exports
|
|
358
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
359
|
-
/******/ for(var key in definition) {
|
|
360
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
361
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
362
|
-
/******/ }
|
|
363
|
-
/******/ }
|
|
364
|
-
/******/ };
|
|
365
|
-
/******/ })();
|
|
366
|
-
/******/
|
|
367
|
-
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
368
|
-
/******/ (() => {
|
|
369
|
-
/******/ // This function allow to reference async chunks
|
|
370
|
-
/******/ __webpack_require__.u = (chunkId) => {
|
|
371
|
-
/******/ // return url for filenames based on template
|
|
372
|
-
/******/ return "" + chunkId + ".index.js";
|
|
373
|
-
/******/ };
|
|
374
|
-
/******/ })();
|
|
375
|
-
/******/
|
|
376
|
-
/******/ /* webpack/runtime/global */
|
|
377
|
-
/******/ (() => {
|
|
378
|
-
/******/ __webpack_require__.g = (function() {
|
|
379
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
380
|
-
/******/ try {
|
|
381
|
-
/******/ return this || new Function('return this')();
|
|
382
|
-
/******/ } catch (e) {
|
|
383
|
-
/******/ if (typeof window === 'object') return window;
|
|
384
|
-
/******/ }
|
|
385
|
-
/******/ })();
|
|
386
|
-
/******/ })();
|
|
387
|
-
/******/
|
|
388
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
389
|
-
/******/ (() => {
|
|
390
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
391
|
-
/******/ })();
|
|
392
|
-
/******/
|
|
393
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
394
|
-
/******/ (() => {
|
|
395
|
-
/******/ // define __esModule on exports
|
|
396
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
397
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
398
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
399
|
-
/******/ }
|
|
400
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
401
|
-
/******/ };
|
|
402
|
-
/******/ })();
|
|
403
|
-
/******/
|
|
404
|
-
/******/ /* webpack/runtime/publicPath */
|
|
405
|
-
/******/ (() => {
|
|
406
|
-
/******/ var scriptUrl;
|
|
407
|
-
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
408
|
-
/******/ var document = __webpack_require__.g.document;
|
|
409
|
-
/******/ if (!scriptUrl && document) {
|
|
410
|
-
/******/ if (document.currentScript)
|
|
411
|
-
/******/ scriptUrl = document.currentScript.src;
|
|
412
|
-
/******/ if (!scriptUrl) {
|
|
413
|
-
/******/ var scripts = document.getElementsByTagName("script");
|
|
414
|
-
/******/ if(scripts.length) {
|
|
415
|
-
/******/ var i = scripts.length - 1;
|
|
416
|
-
/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;
|
|
417
|
-
/******/ }
|
|
418
|
-
/******/ }
|
|
419
|
-
/******/ }
|
|
420
|
-
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
421
|
-
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
422
|
-
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
423
|
-
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
424
|
-
/******/ __webpack_require__.p = scriptUrl;
|
|
425
|
-
/******/ })();
|
|
426
|
-
/******/
|
|
427
|
-
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
428
|
-
/******/ (() => {
|
|
429
|
-
/******/ __webpack_require__.b = document.baseURI || self.location.href;
|
|
430
|
-
/******/
|
|
431
|
-
/******/ // object to store loaded and loading chunks
|
|
432
|
-
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
433
|
-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
434
|
-
/******/ var installedChunks = {
|
|
435
|
-
/******/ "main": 0
|
|
436
|
-
/******/ };
|
|
437
|
-
/******/
|
|
438
|
-
/******/ // no chunk on demand loading
|
|
439
|
-
/******/
|
|
440
|
-
/******/ // no prefetching
|
|
441
|
-
/******/
|
|
442
|
-
/******/ // no preloaded
|
|
443
|
-
/******/
|
|
444
|
-
/******/ // no HMR
|
|
445
|
-
/******/
|
|
446
|
-
/******/ // no HMR manifest
|
|
447
|
-
/******/
|
|
448
|
-
/******/ // no on chunks loaded
|
|
449
|
-
/******/
|
|
450
|
-
/******/ // no jsonp function
|
|
451
|
-
/******/ })();
|
|
452
|
-
/******/
|
|
453
|
-
/******/ /* webpack/runtime/nonce */
|
|
454
|
-
/******/ (() => {
|
|
455
|
-
/******/ __webpack_require__.nc = undefined;
|
|
456
|
-
/******/ })();
|
|
457
|
-
/******/
|
|
458
|
-
/************************************************************************/
|
|
459
|
-
/******/
|
|
460
|
-
/******/ // startup
|
|
461
|
-
/******/ // Load entry module and return exports
|
|
462
|
-
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
463
|
-
/******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
|
|
464
|
-
/******/
|
|
465
|
-
/******/ })()
|
|
466
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.hideViewer = hideViewer;
|
|
7
|
+
exports.setConfig = setConfig;
|
|
8
|
+
exports.showViewer = showViewer;
|
|
9
|
+
require("./styles.css");
|
|
10
|
+
var _TableView = require("./views/TableView/TableView");
|
|
11
|
+
var _ExecuteSQLView = require("./views/ExecuteSQLView/ExecuteSQLView");
|
|
12
|
+
var _QueryRunner = require("./QueryRunner");
|
|
13
|
+
var _SqlLogView = require("./views/SqlLogView/SqlLogView");
|
|
14
|
+
var _ExplorerView = require("./views/ExplorerView/ExplorerView");
|
|
15
|
+
var _dbScanner = require("./dbScanner");
|
|
16
|
+
var _EditCellView = require("./views/EditCellView/EditCellView");
|
|
17
|
+
var _viewerState = require("./viewerState");
|
|
18
|
+
var viewer = null;
|
|
19
|
+
var dbListEl = null;
|
|
20
|
+
var tableViewer = null;
|
|
21
|
+
var middlePanel = null;
|
|
22
|
+
var rightPanel = null;
|
|
23
|
+
var explorerView = null;
|
|
24
|
+
var queryRunner = null;
|
|
25
|
+
var defaultSqliteExtension = ['db', 'sqlite'];
|
|
26
|
+
var config = {
|
|
27
|
+
isSqliteDatabase: function isSqliteDatabase(filename) {
|
|
28
|
+
return defaultSqliteExtension.some(function (ext) {
|
|
29
|
+
return filename.endsWith(".".concat(ext));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function setConfig(userConfig) {
|
|
34
|
+
if (userConfig) {
|
|
35
|
+
Object.assign(config, userConfig);
|
|
36
|
+
}
|
|
37
|
+
Object.freeze(config);
|
|
38
|
+
}
|
|
39
|
+
function showViewer() {
|
|
40
|
+
if (!viewer) {
|
|
41
|
+
viewer = document.createElement('div');
|
|
42
|
+
viewer.id = 'viewer';
|
|
43
|
+
(0, _viewerState.initState)(viewer);
|
|
44
|
+
var closeBtn = document.createElement('div');
|
|
45
|
+
closeBtn.id = 'close_btn';
|
|
46
|
+
closeBtn.innerText = 'Close';
|
|
47
|
+
closeBtn.onclick = function () {
|
|
48
|
+
hideViewer();
|
|
49
|
+
};
|
|
50
|
+
viewer.appendChild(closeBtn);
|
|
51
|
+
dbListEl = document.createElement('div');
|
|
52
|
+
dbListEl.id = 'db_list';
|
|
53
|
+
viewer.appendChild(dbListEl);
|
|
54
|
+
|
|
55
|
+
// Middle Panel
|
|
56
|
+
middlePanel = document.createElement('div');
|
|
57
|
+
middlePanel.id = 'middle_panel';
|
|
58
|
+
var tableViewEl = document.createElement('div');
|
|
59
|
+
tableViewEl.id = 'table_view';
|
|
60
|
+
middlePanel.appendChild(tableViewEl);
|
|
61
|
+
viewer.append(middlePanel);
|
|
62
|
+
|
|
63
|
+
// Right Panel
|
|
64
|
+
rightPanel = document.createElement('div');
|
|
65
|
+
rightPanel.id = 'right_panel';
|
|
66
|
+
var executeSqlView = new _ExecuteSQLView.ExecuteSQLView(rightPanel);
|
|
67
|
+
var editCellView = new _EditCellView.EditCellView(viewer, rightPanel);
|
|
68
|
+
viewer.append(rightPanel);
|
|
69
|
+
var worker = new Worker(new URL('./DbWorker', import.meta.url), {
|
|
70
|
+
type: 'module'
|
|
71
|
+
});
|
|
72
|
+
explorerView = new _ExplorerView.ExplorerView(dbListEl);
|
|
73
|
+
var collectDbFilesPromise = (0, _dbScanner.collectDbFiles)(config.isSqliteDatabase);
|
|
74
|
+
var dbs = {};
|
|
75
|
+
worker.onmessage = function (message) {
|
|
76
|
+
if (message.data.type === 'onReady') {
|
|
77
|
+
collectDbFilesPromise.then(function (dbFiles) {
|
|
78
|
+
dbFiles.forEach(function (dbFile) {
|
|
79
|
+
var dbFilepath = dbFile;
|
|
80
|
+
var dbName = dbFile;
|
|
81
|
+
dbs[dbFilepath] = {
|
|
82
|
+
filename: dbName,
|
|
83
|
+
tables: []
|
|
84
|
+
};
|
|
85
|
+
worker.postMessage({
|
|
86
|
+
type: 'readSchema',
|
|
87
|
+
path: dbFile
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
} else if (message.data.type === 'onSchema') {
|
|
92
|
+
var _explorerView;
|
|
93
|
+
var tables = message.data.schema.map(function (tableSchema) {
|
|
94
|
+
return tableSchema[0];
|
|
95
|
+
});
|
|
96
|
+
dbs[message.data.dbName].tables = tables;
|
|
97
|
+
(_explorerView = explorerView) === null || _explorerView === void 0 ? void 0 : _explorerView.addDatabaseItem(dbs[message.data.dbName]);
|
|
98
|
+
} else if (message.data.type === 'onQuery') {
|
|
99
|
+
if (message.data.label === 'tableView') {
|
|
100
|
+
var _tableViewer;
|
|
101
|
+
(_tableViewer = tableViewer) === null || _tableViewer === void 0 ? void 0 : _tableViewer.setTableResults(message.data.result.resultRows || []);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var db = {
|
|
106
|
+
post: function post(message) {
|
|
107
|
+
worker.postMessage(message);
|
|
108
|
+
},
|
|
109
|
+
on: function on(message) {
|
|
110
|
+
var _worker$onmessage;
|
|
111
|
+
(_worker$onmessage = worker.onmessage) === null || _worker$onmessage === void 0 ? void 0 : _worker$onmessage.call(worker, message);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
queryRunner = new _QueryRunner.QueryRunner(db);
|
|
115
|
+
(0, _SqlLogView.initSqlLogView)(rightPanel, queryRunner);
|
|
116
|
+
tableViewer = new _TableView.TableView(viewer, tableViewEl, queryRunner);
|
|
117
|
+
executeSqlView.setDb(queryRunner);
|
|
118
|
+
editCellView.setDb(queryRunner);
|
|
119
|
+
worker.postMessage({
|
|
120
|
+
type: 'init'
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
document.body.appendChild(viewer);
|
|
124
|
+
}
|
|
125
|
+
function hideViewer() {
|
|
126
|
+
if (viewer) {
|
|
127
|
+
document.body.removeChild(viewer);
|
|
128
|
+
}
|
|
129
|
+
}
|