@modusoperandi/licit 1.0.5 → 1.0.7
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/BlockquoteInsertNewLineCommand.js +10 -11
- package/BlockquoteInsertNewLineCommand.js.flow +1 -2
- package/BlockquoteNodeSpec.js +2 -3
- package/BlockquoteNodeSpec.js.flow +1 -2
- package/BlockquoteToggleCommand.js +9 -9
- package/BookmarkNodeSpec.js +1 -1
- package/CodeBlockCommand.js +10 -10
- package/CodeBlockCommand.js.flow +1 -1
- package/ContentPlaceholderPlugin.js +17 -17
- package/ContentPlaceholderPlugin.js.flow +10 -12
- package/CursorPlaceholderPlugin.js +8 -8
- package/DocLayoutCommand.js +10 -12
- package/DocLayoutCommand.js.flow +1 -3
- package/EditorKeyMap.js +0 -1
- package/EditorKeyMap.js.flow +0 -2
- package/EditorMarks.js +1 -1
- package/EditorNodes.js +1 -2
- package/EditorNodes.js.flow +0 -1
- package/EditorPageLayoutPlugin.js +8 -8
- package/FontTypeMarkSpec.js +1 -1
- package/FontTypeMarkSpec.js.flow +1 -1
- package/HTMLMutator.js +4 -4
- package/HeadingNodeSpec.js +2 -12
- package/HeadingNodeSpec.js.flow +4 -14
- package/HistoryRedoCommand.js +9 -9
- package/HistoryUndoCommand.js +9 -9
- package/HorizontalRuleCommand.js +9 -9
- package/ImageUploadPlaceholderPlugin.js +13 -15
- package/ImageUploadPlaceholderPlugin.js.flow +5 -7
- package/LinkMarkSpec.js +6 -1
- package/LinkMarkSpec.js.flow +5 -0
- package/LinkSetURLCommand.js +126 -55
- package/LinkSetURLCommand.js.flow +61 -37
- package/LinkTooltipPlugin.js +119 -30
- package/LinkTooltipPlugin.js.flow +91 -20
- package/ListItemInsertNewLineCommand.js +10 -11
- package/ListItemInsertNewLineCommand.js.flow +1 -2
- package/ListItemMergeCommand.js +16 -15
- package/ListItemMergeCommand.js.flow +3 -4
- package/ListSplitCommand.js +9 -9
- package/ListToggleCommand.js +9 -9
- package/MarksClearCommand.js +9 -9
- package/MathEditCommand.js +10 -11
- package/MathEditCommand.js.flow +1 -2
- package/OrderedListNodeSpec.js +1 -1
- package/ParagraphNodeSpec.js +11 -2
- package/ParagraphNodeSpec.js.flow +9 -2
- package/ParagraphSpacingCommand.js +13 -14
- package/ParagraphSpacingCommand.js.flow +4 -9
- package/PrintCommand.js +9 -9
- package/SelectionPlaceholderPlugin.js +8 -8
- package/SpacerMarkSpec.js +1 -1
- package/StyleView.js +3 -4
- package/StyleView.js.flow +0 -1
- package/TableBackgroundColorCommand.js +12 -14
- package/TableBackgroundColorCommand.js.flow +2 -5
- package/TableBorderColorCommand.js +12 -14
- package/TableBorderColorCommand.js.flow +2 -7
- package/TableCellColorCommand.js +10 -11
- package/TableCellColorCommand.js.flow +1 -2
- package/TableCellMenuPlugin.js +16 -15
- package/TableCellMenuPlugin.js.flow +5 -7
- package/TableInsertCommand.js +11 -13
- package/TableInsertCommand.js.flow +2 -4
- package/TableMergeCellsCommand.js +13 -12
- package/TableMergeCellsCommand.js.flow +4 -3
- package/TableNodesSpecs.js +4 -2
- package/TableNodesSpecs.js.flow +4 -2
- package/TableResizePlugin.js +17 -16
- package/TableResizePlugin.js.flow +1 -1
- package/TextInsertTabSpaceCommand.js +9 -9
- package/Types.js +1 -0
- package/Types.js.flow +2 -5
- package/WebFontLoader.js +4 -4
- package/bom.xml +17623 -24512
- package/buildEditorPlugins.js +4 -4
- package/buildInputRules.js +8 -4
- package/buildInputRules.js.flow +8 -4
- package/client/CollabConnector.js +9 -9
- package/client/EditorConnection.js +8 -6
- package/client/EditorConnection.js.flow +3 -2
- package/client/Licit.js +22 -58
- package/client/Licit.js.flow +12 -44
- package/client/Licit.test.js +49 -39
- package/client/Licit.test.js.flow +40 -34
- package/client/Reporter.js +3 -3
- package/client/SimpleConnector.js +4 -4
- package/client/http.js +0 -6
- package/client/http.js.flow +0 -8
- package/client/throttle.js +8 -2
- package/client/throttle.js.flow +2 -2
- package/convertFromDOMElement.js +2 -4
- package/convertFromDOMElement.js.flow +2 -5
- package/convertFromHTML.js +2 -3
- package/convertFromHTML.js.flow +2 -4
- package/convertFromJSON.js +1 -2
- package/convertFromJSON.js.flow +1 -2
- package/convertToCSSPTValue.js +6 -10
- package/convertToCSSPTValue.js.flow +8 -11
- package/createCommand.js +9 -9
- package/createEditorKeyMap.js +1 -1
- package/createEmptyEditorState.js +2 -3
- package/createEmptyEditorState.js.flow +2 -4
- package/createTableResizingPlugin.js +6 -6
- package/createTableResizingPlugin.js.flow +1 -1
- package/findActiveMark.js +1 -1
- package/findActiveMark.js.flow +1 -1
- package/insertTable.js +0 -3
- package/insertTable.js.flow +0 -2
- package/joinDown.js +1 -3
- package/joinDown.js.flow +1 -3
- package/joinUp.js +1 -3
- package/joinUp.js.flow +1 -3
- package/lookUpElement.js +2 -1
- package/lookUpElement.js.flow +1 -1
- package/normalizeHTML.js +3 -1
- package/normalizeHTML.js.flow +3 -1
- package/package.json +21 -16
- package/patchAnchorElements.js +1 -1
- package/patchAnchorElements.js.flow +1 -1
- package/patchBreakElements.js +3 -2
- package/patchBreakElements.js.flow +2 -2
- package/patchElementInlineStyles.js +1 -1
- package/patchElementInlineStyles.js.flow +1 -1
- package/patchListElements.js +4 -4
- package/patchListElements.js.flow +5 -5
- package/patchMathElements.js +5 -7
- package/patchMathElements.js.flow +2 -4
- package/patchStyleElements.js +1 -1
- package/patchStyleElements.js.flow +7 -6
- package/patchTableElements.js +2 -3
- package/patchTableElements.js.flow +2 -3
- package/sanitizeURL.js +1 -1
- package/sanitizeURL.js.flow +1 -1
- package/splitListItem.js +2 -2
- package/splitListItem.js.flow +1 -1
- package/toggleBlockquote.js +4 -5
- package/toggleBlockquote.js.flow +5 -12
- package/toggleCodeBlock.js +6 -6
- package/toggleCodeBlock.js.flow +10 -10
- package/ui/AlertInfo.js +9 -9
- package/ui/BookmarkNodeView.js +13 -12
- package/ui/CommandButton.js +9 -9
- package/ui/CommandMenu.js +12 -12
- package/ui/CommandMenu.js.flow +1 -1
- package/ui/CommandMenuButton.js +11 -12
- package/ui/CommandMenuButton.js.flow +2 -3
- package/ui/CustomEditorView.js +13 -12
- package/ui/CustomEditorView.js.flow +1 -0
- package/ui/CustomMenu.js +8 -8
- package/ui/CustomMenuItem.js +10 -10
- package/ui/CustomNodeView.js +27 -16
- package/ui/CustomNodeView.js.flow +16 -9
- package/ui/CustomRadioButton.js +13 -15
- package/ui/CustomRadioButton.js.flow +2 -3
- package/ui/DocLayoutEditor.js +10 -11
- package/ui/DocLayoutEditor.js.flow +1 -2
- package/ui/Editor.js +16 -13
- package/ui/Editor.js.flow +7 -8
- package/ui/EditorFrameset.js +9 -9
- package/ui/EditorToolbar.js +24 -29
- package/ui/EditorToolbar.js.flow +22 -41
- package/ui/EditorToolbarConfig.js +5 -5
- package/ui/EditorToolbarConfig.js.flow +1 -1
- package/ui/FontSizeCommandMenuButton.js +10 -10
- package/ui/FontSizeCommandMenuButton.js.flow +1 -1
- package/ui/FontTypeCommandMenuButton.js +11 -12
- package/ui/FontTypeCommandMenuButton.js.flow +4 -5
- package/ui/Frag.js +8 -8
- package/ui/Icon.js +12 -12
- package/ui/ImageInlineEditor.js +9 -9
- package/ui/LinkTooltip.js +62 -27
- package/ui/LinkTooltip.js.flow +55 -22
- package/ui/LinkURLEditor.js +152 -34
- package/ui/LinkURLEditor.js.flow +177 -51
- package/ui/ListItemNodeView.js +4 -4
- package/ui/ListTypeButton.js +11 -14
- package/ui/ListTypeButton.js.flow +2 -5
- package/ui/ListTypeCommandButton.js +10 -10
- package/ui/ListTypeCommandButton.js.flow +1 -1
- package/ui/ListTypeMenu.js +11 -11
- package/ui/ListTypeMenu.js.flow +1 -1
- package/ui/LoadingIndicator.js +8 -8
- package/ui/MathEditor.js +10 -14
- package/ui/MathEditor.js.flow +1 -7
- package/ui/MathInlineEditor.js +13 -13
- package/ui/MathInlineEditor.js.flow +3 -4
- package/ui/MathNodeView.js +16 -15
- package/ui/MathNodeView.js.flow +10 -20
- package/ui/PasteMenu.js +11 -14
- package/ui/PasteMenu.js.flow +0 -4
- package/ui/ResizeObserver.js +1 -1
- package/ui/ResizeObserver.js.flow +1 -1
- package/ui/RichTextEditor.js +9 -9
- package/ui/SelectionObserver.js +6 -6
- package/ui/SelectionObserver.js.flow +2 -2
- package/ui/TableCellMenu.js +9 -9
- package/ui/TableGridSizeEditor.js +11 -12
- package/ui/TableGridSizeEditor.js.flow +6 -3
- package/ui/TableNodeView.js +15 -13
- package/ui/TableNodeView.js.flow +3 -3
- package/ui/bindScrollHandler.js +2 -1
- package/ui/bindScrollHandler.js.flow +1 -1
- package/ui/canUseCSSFont.js +5 -4
- package/ui/canUseCSSFont.js.flow +4 -5
- package/ui/czi-editor.css +1 -4
- package/ui/czi-form.css +102 -8
- package/ui/czi-image-view.css +1 -5
- package/ui/czi-link-tooltip.css +41 -0
- package/ui/czi-list.css +0 -4
- package/ui/czi-loading-indicator.css +1 -46
- package/ui/czi-table-cell-menu.css +3 -1
- package/ui/findActiveFontSize.js +2 -1
- package/ui/findActiveFontSize.js.flow +1 -4
- package/ui/findActiveFontType.js +4 -3
- package/ui/findActiveFontType.js.flow +3 -6
- package/ui/handleEditorDrop.js +1 -1
- package/ui/handleEditorDrop.js.flow +1 -1
- package/ui/handleEditorKeyDown.js +1 -1
- package/ui/handleEditorKeyDown.js.flow +1 -1
- package/ui/handleEditorPaste.js +1 -1
- package/ui/handleEditorPaste.js.flow +1 -1
- package/ui/injectStyleSheet.js +2 -2
- package/ui/injectStyleSheet.js.flow +2 -4
- package/ui/isElementFullyVisible.js +1 -10
- package/ui/isElementFullyVisible.js.flow +1 -13
- package/ui/mathquill-editor/MathQuillEditor.js +12 -13
- package/ui/mathquill-editor/MathQuillEditor.js.flow +0 -1
- package/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js +9 -9
- package/ui/mathquill-editor/mathquill-import-kludge.js +1 -8
- package/ui/mathquill-editor/mathquill-import-kludge.js.flow +0 -7
- package/ui/renderLaTeXAsHTML.js +3 -3
- package/ui/resolveImage.js +4 -5
- package/ui/resolveImage.js.flow +3 -5
- package/ui/toCSSLineSpacing.js +2 -3
- package/ui/toCSSLineSpacing.js.flow +2 -4
package/ui/RichTextEditor.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(
|
|
7
|
-
function _assertThisInitialized(
|
|
6
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(
|
|
10
|
-
function _inherits(
|
|
11
|
-
function _setPrototypeOf(
|
|
12
|
-
function _defineProperty(
|
|
9
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
11
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
import { Transform } from 'prosemirror-transform';
|
package/ui/SelectionObserver.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _defineProperty(
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
var EMPTY_SELECTION_VALUE = Object.freeze({
|
|
@@ -53,7 +53,7 @@ var SelectionObserver = /*#__PURE__*/function () {
|
|
|
53
53
|
selection: resolveSelectionValue(target)
|
|
54
54
|
};
|
|
55
55
|
});
|
|
56
|
-
callback
|
|
56
|
+
callback === null || callback === void 0 || callback(_this.takeRecords(), _this);
|
|
57
57
|
});
|
|
58
58
|
_defineProperty(this, "_check", function () {
|
|
59
59
|
var changed = false;
|
|
@@ -74,7 +74,7 @@ var SelectionObserver = /*#__PURE__*/function () {
|
|
|
74
74
|
selection: $selection
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
changed && callback
|
|
77
|
+
changed && (callback === null || callback === void 0 ? void 0 : callback(_this.takeRecords(), _this));
|
|
78
78
|
});
|
|
79
79
|
this._callback = _callback;
|
|
80
80
|
}
|
|
@@ -105,7 +105,7 @@ export default class SelectionObserver {
|
|
|
105
105
|
selection: resolveSelectionValue(target),
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
|
-
callback
|
|
108
|
+
callback?.(this.takeRecords(), this);
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
_check = (): void => {
|
|
@@ -129,6 +129,6 @@ export default class SelectionObserver {
|
|
|
129
129
|
selection: $selection,
|
|
130
130
|
};
|
|
131
131
|
});
|
|
132
|
-
changed && callback
|
|
132
|
+
changed && callback?.(this.takeRecords(), this);
|
|
133
133
|
};
|
|
134
134
|
}
|
package/ui/TableCellMenu.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(
|
|
7
|
-
function _assertThisInitialized(
|
|
6
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(
|
|
10
|
-
function _inherits(
|
|
11
|
-
function _setPrototypeOf(
|
|
12
|
-
function _defineProperty(
|
|
9
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
11
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
import { EditorState, PluginView } from 'prosemirror-state';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _defineProperty(
|
|
3
|
-
function _classCallCheck(
|
|
4
|
-
function _defineProperties(
|
|
5
|
-
function _createClass(
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
5
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
|
-
function _possibleConstructorReturn(
|
|
10
|
-
function _assertThisInitialized(
|
|
9
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
10
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
function _getPrototypeOf(
|
|
13
|
-
function _inherits(
|
|
14
|
-
function _setPrototypeOf(
|
|
12
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
13
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
14
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
15
|
import cx from 'classnames';
|
|
16
16
|
import * as React from 'react';
|
|
17
|
-
import ReactDOM from 'react-dom';
|
|
18
17
|
import { clamp } from '@modusoperandi/licit-ui-commands';
|
|
19
18
|
import htmlElementToRect from './htmlElementToRect.js';
|
|
20
19
|
import { fromHTMlElement, fromXY, isIntersected } from '@modusoperandi/licit-ui-commands';
|
|
@@ -97,7 +96,7 @@ var TableGridSizeEditor = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
97
96
|
}
|
|
98
97
|
});
|
|
99
98
|
_defineProperty(_this, "_onMouseMove", function (e) {
|
|
100
|
-
var el = _this._ref
|
|
99
|
+
var el = _this._ref;
|
|
101
100
|
var elRect = el ? htmlElementToRect(el) : null;
|
|
102
101
|
var mouseRect = fromXY(e.screenX, e.screenY, 10);
|
|
103
102
|
if (elRect && mouseRect && isIntersected(elRect, mouseRect, 50)) {
|
|
@@ -173,7 +172,7 @@ var TableGridSizeEditor = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
173
172
|
while (jj < cc) {
|
|
174
173
|
x += GUTTER_SIZE;
|
|
175
174
|
var selected = ii < rows && jj < cols;
|
|
176
|
-
cells.push(
|
|
175
|
+
cells.push(/*#__PURE__*/React.createElement(GridCell, {
|
|
177
176
|
key: "".concat(String(ii), "-").concat(String(jj)),
|
|
178
177
|
selected: selected,
|
|
179
178
|
x: x,
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import ReactDOM from 'react-dom';
|
|
6
5
|
|
|
7
6
|
import { clamp } from '@modusoperandi/licit-ui-commands';
|
|
8
7
|
import htmlElementToRect from './htmlElementToRect.js';
|
|
9
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
fromHTMlElement,
|
|
10
|
+
fromXY,
|
|
11
|
+
isIntersected,
|
|
12
|
+
} from '@modusoperandi/licit-ui-commands';
|
|
10
13
|
|
|
11
14
|
import './czi-table-grid-size-editor.css';
|
|
12
15
|
|
|
@@ -141,7 +144,7 @@ class TableGridSizeEditor extends React.PureComponent<any, any> {
|
|
|
141
144
|
};
|
|
142
145
|
|
|
143
146
|
_onMouseMove = (e: MouseEvent): void => {
|
|
144
|
-
const el = this._ref
|
|
147
|
+
const el = this._ref;
|
|
145
148
|
const elRect = el ? htmlElementToRect(el) : null;
|
|
146
149
|
const mouseRect = fromXY(e.screenX, e.screenY, 10);
|
|
147
150
|
|
package/ui/TableNodeView.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _possibleConstructorReturn(
|
|
9
|
-
function _assertThisInitialized(
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
11
|
+
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
12
|
+
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
|
|
13
|
+
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
14
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
15
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
16
17
|
import { Node } from 'prosemirror-model';
|
|
17
18
|
import { EditorView } from 'prosemirror-view';
|
|
18
19
|
import { TableView } from 'prosemirror-tables';
|
|
@@ -30,7 +31,7 @@ var TableNodeView = /*#__PURE__*/function (_TableView) {
|
|
|
30
31
|
return _createClass(TableNodeView, [{
|
|
31
32
|
key: "update",
|
|
32
33
|
value: function update(node) {
|
|
33
|
-
var updated =
|
|
34
|
+
var updated = _superPropGet(TableNodeView, "update", this, 3)([node]);
|
|
34
35
|
if (updated) {
|
|
35
36
|
this._updateMargin(node);
|
|
36
37
|
}
|
|
@@ -39,9 +40,10 @@ var TableNodeView = /*#__PURE__*/function (_TableView) {
|
|
|
39
40
|
}, {
|
|
40
41
|
key: "_updateMargin",
|
|
41
42
|
value: function _updateMargin(node) {
|
|
42
|
-
var
|
|
43
|
+
var _node$attrs, _node$attrs2;
|
|
44
|
+
var marginLeft = ((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.marginLeft) || 0;
|
|
43
45
|
this.table.style.marginLeft = marginLeft ? "".concat(marginLeft, "px") : '';
|
|
44
|
-
if (node.attrs &&
|
|
46
|
+
if ((_node$attrs2 = node.attrs) !== null && _node$attrs2 !== void 0 && _node$attrs2.vignette) {
|
|
45
47
|
this.table.style.border = 'none';
|
|
46
48
|
}
|
|
47
49
|
}
|
package/ui/TableNodeView.js.flow
CHANGED
|
@@ -16,10 +16,10 @@ export default class TableNodeView extends TableView {
|
|
|
16
16
|
return updated;
|
|
17
17
|
}
|
|
18
18
|
_updateMargin(node: Node): void {
|
|
19
|
-
const marginLeft =
|
|
19
|
+
const marginLeft = node.attrs?.marginLeft || 0;
|
|
20
20
|
this.table.style.marginLeft = marginLeft ? `${marginLeft}px` : '';
|
|
21
|
-
|
|
22
|
-
this.table.style.border='none'
|
|
21
|
+
if (node.attrs?.vignette) {
|
|
22
|
+
this.table.style.border = 'none';
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/ui/bindScrollHandler.js
CHANGED
|
@@ -22,8 +22,9 @@ export default function bindScrollHandler(target, callback) {
|
|
|
22
22
|
return {
|
|
23
23
|
dispose: function dispose() {
|
|
24
24
|
while (onScroll && els.length) {
|
|
25
|
+
var _el;
|
|
25
26
|
el = els.pop();
|
|
26
|
-
el
|
|
27
|
+
(_el = el) === null || _el === void 0 || _el.removeEventListener('scroll', onScroll, false);
|
|
27
28
|
}
|
|
28
29
|
onScroll = null;
|
|
29
30
|
rid && window.cancelAnimationFrame(rid);
|
|
@@ -36,7 +36,7 @@ export default function bindScrollHandler(
|
|
|
36
36
|
dispose() {
|
|
37
37
|
while (onScroll && els.length) {
|
|
38
38
|
el = els.pop();
|
|
39
|
-
el
|
|
39
|
+
el?.removeEventListener('scroll', onScroll, false);
|
|
40
40
|
}
|
|
41
41
|
onScroll = null;
|
|
42
42
|
rid && window.cancelAnimationFrame(rid);
|
package/ui/canUseCSSFont.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
var cached = {};
|
|
2
2
|
export default function canUseCSSFont(fontName) {
|
|
3
|
+
var _doc$fonts, _doc$fonts2, _doc$fonts3, _doc$fonts4;
|
|
3
4
|
var doc = document;
|
|
4
5
|
if (cached.hasOwnProperty(fontName)) {
|
|
5
6
|
return Promise.resolve(cached[fontName]);
|
|
6
7
|
}
|
|
7
|
-
if (!
|
|
8
|
+
if (!((_doc$fonts = doc.fonts) !== null && _doc$fonts !== void 0 && _doc$fonts.check) || !((_doc$fonts2 = doc.fonts) !== null && _doc$fonts2 !== void 0 && _doc$fonts2.ready) || !((_doc$fonts3 = doc.fonts) !== null && _doc$fonts3 !== void 0 && _doc$fonts3.status) || !((_doc$fonts4 = doc.fonts) !== null && _doc$fonts4 !== void 0 && _doc$fonts4.values)) {
|
|
8
9
|
// Feature is not supported, install the CSS anyway
|
|
9
10
|
// https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check#Browser_compatibility
|
|
10
11
|
// TODO: Polyfill this.
|
|
@@ -14,9 +15,9 @@ export default function canUseCSSFont(fontName) {
|
|
|
14
15
|
return new Promise(function (resolve) {
|
|
15
16
|
// https://stackoverflow.com/questions/5680013/how-to-be-notified-once-a-web-font-has-loaded
|
|
16
17
|
// All fonts in use by visible text have loaded.
|
|
17
|
-
var
|
|
18
|
+
var _check = function check() {
|
|
18
19
|
if (doc.fonts.status !== 'loaded') {
|
|
19
|
-
setTimeout(
|
|
20
|
+
setTimeout(_check, 350);
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
23
|
// Do not use `doc.fonts.check()` because it may return falsey result.
|
|
@@ -28,6 +29,6 @@ export default function canUseCSSFont(fontName) {
|
|
|
28
29
|
cached[fontName] = result;
|
|
29
30
|
resolve(result);
|
|
30
31
|
};
|
|
31
|
-
doc.fonts.ready.then(
|
|
32
|
+
doc.fonts.ready.then(_check);
|
|
32
33
|
});
|
|
33
34
|
}
|
package/ui/canUseCSSFont.js.flow
CHANGED
|
@@ -10,11 +10,10 @@ export default function canUseCSSFont(fontName: string): Promise<boolean> {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
if (
|
|
13
|
-
!doc.fonts ||
|
|
14
|
-
!doc.fonts
|
|
15
|
-
!doc.fonts
|
|
16
|
-
!doc.fonts
|
|
17
|
-
!doc.fonts.values
|
|
13
|
+
!doc.fonts?.check ||
|
|
14
|
+
!doc.fonts?.ready ||
|
|
15
|
+
!doc.fonts?.status ||
|
|
16
|
+
!doc.fonts?.values
|
|
18
17
|
) {
|
|
19
18
|
// Feature is not supported, install the CSS anyway
|
|
20
19
|
// https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check#Browser_compatibility
|
package/ui/czi-editor.css
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@import './czi-vars.css';
|
|
6
6
|
|
|
7
7
|
.czi-text-selection {
|
|
8
|
-
/* var(--czi-selection-highlight-color-dark); */
|
|
9
8
|
background: red;
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -45,8 +44,6 @@
|
|
|
45
44
|
.ProseMirror .tableWrapper {
|
|
46
45
|
/* [FS] IRAD-993 2020-06-26
|
|
47
46
|
Fix:Table exceeds the canvas */
|
|
48
|
-
|
|
49
|
-
/* overflow-x: visible; */
|
|
50
47
|
width: 100%;
|
|
51
48
|
}
|
|
52
49
|
|
|
@@ -123,7 +120,7 @@
|
|
|
123
120
|
box-shadow: unset;
|
|
124
121
|
min-height: unset;
|
|
125
122
|
padding: unset;
|
|
126
|
-
width:
|
|
123
|
+
width: 78vw;
|
|
127
124
|
}
|
|
128
125
|
|
|
129
126
|
@media only print {
|
package/ui/czi-form.css
CHANGED
|
@@ -8,16 +8,29 @@
|
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 20px;
|
|
10
10
|
color: black;
|
|
11
|
-
height: auto !important;
|
|
12
11
|
display: grid;
|
|
13
12
|
}
|
|
13
|
+
#select-toc-tooltip {
|
|
14
|
+
max-width: 400px;
|
|
15
|
+
margin-top: -5px;
|
|
16
|
+
}
|
|
17
|
+
.tab-container {
|
|
18
|
+
background: #fff;
|
|
19
|
+
border: none;
|
|
20
|
+
font-family: var(--czi-font-family);
|
|
21
|
+
font-size: var(--czi-font-size);
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 10px;
|
|
24
|
+
color: black;
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
14
27
|
|
|
15
28
|
.czi-form legend {
|
|
16
29
|
border: none;
|
|
17
30
|
font-size: var(--czi-content-font-size-h2);
|
|
18
31
|
margin-top: 0;
|
|
19
32
|
margin-right: 0;
|
|
20
|
-
margin-bottom:
|
|
33
|
+
margin-bottom: 3px;
|
|
21
34
|
margin-left: 0;
|
|
22
35
|
padding: 0;
|
|
23
36
|
user-select: none;
|
|
@@ -39,6 +52,7 @@
|
|
|
39
52
|
border: none;
|
|
40
53
|
margin: 0;
|
|
41
54
|
padding: 0;
|
|
55
|
+
margin-top: 20px;
|
|
42
56
|
}
|
|
43
57
|
|
|
44
58
|
.czi-form input[type='text'] {
|
|
@@ -48,7 +62,7 @@
|
|
|
48
62
|
display: block;
|
|
49
63
|
font-family: var(--czi-font-family);
|
|
50
64
|
font-size: var(--czi-font-size);
|
|
51
|
-
margin-top:
|
|
65
|
+
margin-top: 5px;
|
|
52
66
|
margin-right: 0;
|
|
53
67
|
margin-bottom: 8px;
|
|
54
68
|
margin-left: 0;
|
|
@@ -77,11 +91,7 @@
|
|
|
77
91
|
display: flex;
|
|
78
92
|
flex-direction: row;
|
|
79
93
|
justify-content: flex-end;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.czi-form-buttons .czi-custom-button {
|
|
83
|
-
margin: 0 5px;
|
|
84
|
-
}
|
|
94
|
+
}
|
|
85
95
|
|
|
86
96
|
.licit-alert {
|
|
87
97
|
background-color: #f44336;
|
|
@@ -105,3 +115,87 @@
|
|
|
105
115
|
.closebtn:hover {
|
|
106
116
|
color: black;
|
|
107
117
|
}
|
|
118
|
+
|
|
119
|
+
/* Style the tab */
|
|
120
|
+
.tab {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
float: left;
|
|
123
|
+
border: 1px solid #ccc;
|
|
124
|
+
background-color: #f1f1f1;
|
|
125
|
+
width: 30%;
|
|
126
|
+
height: 260px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Style the buttons that are used to open the tab content */
|
|
130
|
+
.tab button {
|
|
131
|
+
display: block;
|
|
132
|
+
background-color: inherit;
|
|
133
|
+
color: black;
|
|
134
|
+
padding: 23px 13px;
|
|
135
|
+
width: 100%;
|
|
136
|
+
border: none;
|
|
137
|
+
outline: none;
|
|
138
|
+
text-align: center;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
transition: 0.3s;
|
|
141
|
+
height: 130px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Change background color of buttons on hover */
|
|
145
|
+
.tab button:hover {
|
|
146
|
+
background-color: #ddd;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Create an active/current "tab button" class */
|
|
150
|
+
.tab button.active {
|
|
151
|
+
background-color: #ccc;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.tablinks.active {
|
|
155
|
+
background-color: #ccc; /* Style for the active button */
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Style the tab content */
|
|
159
|
+
.tabcontent {
|
|
160
|
+
display: none;
|
|
161
|
+
float: left;
|
|
162
|
+
padding: 0px 12px;
|
|
163
|
+
padding-top: inherit;
|
|
164
|
+
border: 1px solid #ccc;
|
|
165
|
+
width: 70%;
|
|
166
|
+
border-left: none;
|
|
167
|
+
height: 260px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#toc {
|
|
171
|
+
margin-bottom: 10px;
|
|
172
|
+
margin-top: 10px;
|
|
173
|
+
outline: 0;
|
|
174
|
+
border: 4px solid lightslategray;
|
|
175
|
+
padding: 7px;
|
|
176
|
+
border-radius: 9px;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 180px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
#toc option {
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
padding: 3px;
|
|
186
|
+
background-color: white;
|
|
187
|
+
color: black;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.czi-form-buttons .czi-custom-button {
|
|
191
|
+
margin: 0 5px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.highlighted {
|
|
195
|
+
color: yellow;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#toc option:checked {
|
|
199
|
+
background-color: #1967d2;
|
|
200
|
+
color: white;
|
|
201
|
+
}
|
package/ui/czi-image-view.css
CHANGED
|
@@ -100,11 +100,7 @@
|
|
|
100
100
|
.czi-image-view-body.active {
|
|
101
101
|
background-color: transparent;
|
|
102
102
|
box-shadow: 0 0 0 2px var(--czi-selection-highlight-color-dark);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.czi-image-view-body.error {
|
|
106
|
-
/* outline: var(--czi-border-red); */
|
|
107
|
-
}
|
|
103
|
+
}
|
|
108
104
|
|
|
109
105
|
@media only print {
|
|
110
106
|
.czi-image-view-body.active {
|
package/ui/czi-link-tooltip.css
CHANGED
|
@@ -69,3 +69,44 @@
|
|
|
69
69
|
display: none;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
.czi-link-tooltip-body-toc {
|
|
74
|
+
background: #fff;
|
|
75
|
+
border-radius: var(--czi-overlay-radius);
|
|
76
|
+
box-shadow: var(--czi-overlay-shadow);
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
font-family: var(--czi-font-family);
|
|
80
|
+
font-size: 16px;
|
|
81
|
+
max-width: 300px;
|
|
82
|
+
max-height: 300px;
|
|
83
|
+
padding: 10px;
|
|
84
|
+
pointer-events: auto;
|
|
85
|
+
overflow-y: auto;
|
|
86
|
+
margin-top: 30px;
|
|
87
|
+
}
|
|
88
|
+
.czi-link-tooltip-body-toc::after {
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.26);
|
|
91
|
+
content: '';
|
|
92
|
+
height: 20px;
|
|
93
|
+
left: 35%;
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 22px;
|
|
96
|
+
transform: rotate(45deg);
|
|
97
|
+
width: 20px;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.czi-link-tooltip-row-toc {
|
|
102
|
+
|
|
103
|
+
z-index: 2;
|
|
104
|
+
background-color: #fff;
|
|
105
|
+
padding: 5px;
|
|
106
|
+
margin-top: 5px;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
text-overflow: ellipsis;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
}
|
|
112
|
+
|
package/ui/czi-list.css
CHANGED
|
@@ -48,8 +48,6 @@ html {
|
|
|
48
48
|
/* https://css-tricks.com/numbering-in-style/ */
|
|
49
49
|
.ProseMirror ul li > p::before {
|
|
50
50
|
color: var(--czi-list-style-color);
|
|
51
|
-
|
|
52
|
-
/* content: '\2022'; */
|
|
53
51
|
display: inline-block;
|
|
54
52
|
font-size: 1em;
|
|
55
53
|
left: -5px;
|
|
@@ -62,8 +60,6 @@ html {
|
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
.ProseMirror ol {
|
|
65
|
-
/* counter-reset: czi-counter;
|
|
66
|
-
list-style-type: none; */
|
|
67
63
|
--czi-counter-name: czi-counter-0;
|
|
68
64
|
--czi-list-style-type: decimal;
|
|
69
65
|
--czi-counter-reset: 0;
|