Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run npm run build command on repo to generate minified files #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 18 additions & 25 deletions dist/demo/demo1.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "b2ee69a9ed01aab8434c";
/******/ var hotCurrentHash = "7c1a0f2951cfd8773c10";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
Expand Down Expand Up @@ -271,7 +271,6 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ var chunkId = 0;
/******/ // eslint-disable-next-line no-lone-blocks
/******/ {
/******/ /*globals chunkId */
/******/ hotEnsureUpdateChunk(chunkId);
/******/ }
/******/ if (
Expand Down Expand Up @@ -869,6 +868,7 @@ module.exports = "<?xml version=\"1.0\" standalone=\"no\"?><!doctype html><svg c
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: external {"commonjs":"quill","commonjs2":"quill","amd":"quill","root":"Quill"}
Expand Down Expand Up @@ -1669,9 +1669,7 @@ class table_TableContainer extends Container {
return this.children.head;
}

deleteColumns(compareRect) {
let delIndexes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
let editorWrapper = arguments.length > 2 ? arguments[2] : undefined;
deleteColumns(compareRect, delIndexes = [], editorWrapper) {
const [body] = this.descendants(TableBody);
if (body == null || body.children.head == null) return;
const tableCells = this.descendants(TableCell);
Expand Down Expand Up @@ -1808,9 +1806,7 @@ class table_TableContainer extends Container {
}
}

insertColumn(compareRect, colIndex) {
let isRight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
let editorWrapper = arguments.length > 3 ? arguments[3] : undefined;
insertColumn(compareRect, colIndex, isRight = true, editorWrapper) {
const [body] = this.descendants(TableBody);
const [tableColGroup] = this.descendants(TableColGroup);
const tableCols = this.descendants(TableCol);
Expand Down Expand Up @@ -2122,10 +2118,10 @@ class table_selection_TableSelection {

this.dragging = false;
this.selectingHandler = this.mouseDownHandler.bind(this);
this.clearSelectionHandler = this.clearSelection.bind(this);
this.clearSelectionHandler = this.clearSelection.bind(this);
this.helpLinesInitial();
this.quill.root.addEventListener('mousedown', this.selectingHandler, false);
this.quill.on('text-change', this.clearSelectionHandler );
this.quill.on('text-change', this.clearSelectionHandler);
}

helpLinesInitial() {
Expand Down Expand Up @@ -2267,7 +2263,7 @@ class table_selection_TableSelection {
this[direction] = null;
});
this.quill.root.removeEventListener('mousedown', this.selectingHandler, false);
this.quill.off('text-change', this.clearSelectionHandler );
this.quill.off('text-change', this.clearSelectionHandler);
return null;
}

Expand Down Expand Up @@ -2540,12 +2536,11 @@ class table_operation_menu_TableOperationMenu {
return null;
}

menuInitial(_ref) {
let {
table,
left,
top
} = _ref;
menuInitial({
table,
left,
top
}) {
this.domNode = document.createElement('div');
this.domNode.classList.add('qlbt-operation-menu');
css(this.domNode, {
Expand Down Expand Up @@ -2618,12 +2613,11 @@ class table_operation_menu_TableOperationMenu {
return node;
}

menuItemCreator(_ref2) {
let {
text,
iconSrc,
handler
} = _ref2;
menuItemCreator({
text,
iconSrc,
handler
}) {
const node = document.createElement('div');
node.classList.add('qlbt-operation-menu-item');
const iconSpan = document.createElement('span');
Expand Down Expand Up @@ -2990,8 +2984,7 @@ class quill_better_table_BetterTable extends Module {
});
}

getTable() {
let range = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.quill.getSelection();
getTable(range = this.quill.getSelection()) {
if (range == null) return [null, null, null, -1];
const [cellLine, offset] = this.quill.getLine(range.index);

Expand Down
117 changes: 1 addition & 116 deletions dist/demo/demo1.js.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 1 addition & 116 deletions dist/quill-better-table.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading