@atlaskit/editor-core 167.0.0 → 167.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/CHANGELOG.md +26 -0
- package/dist/cjs/i18n/cs.js +1 -23
- package/dist/cjs/i18n/da.js +1 -23
- package/dist/cjs/i18n/de.js +1 -23
- package/dist/cjs/i18n/es.js +1 -23
- package/dist/cjs/i18n/et.js +1 -23
- package/dist/cjs/i18n/fr.js +1 -23
- package/dist/cjs/i18n/hu.js +1 -23
- package/dist/cjs/i18n/is.js +1 -23
- package/dist/cjs/i18n/it.js +1 -23
- package/dist/cjs/i18n/ko.js +1 -23
- package/dist/cjs/i18n/nb.js +1 -9
- package/dist/cjs/i18n/nl.js +0 -3
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +1 -8
- package/dist/cjs/i18n/pt_PT.js +1 -11
- package/dist/cjs/i18n/ro.js +1 -23
- package/dist/cjs/i18n/sk.js +1 -23
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/plugins/card/styles.js +1 -1
- package/dist/cjs/plugins/date/actions.js +1 -1
- package/dist/cjs/plugins/insert-block/index.js +1 -1
- package/dist/cjs/plugins/layout/styles.js +1 -1
- package/dist/cjs/plugins/list/styles.js +3 -1
- package/dist/cjs/plugins/paste/handlers.js +40 -14
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
- package/dist/cjs/plugins/paste/pm-plugins/main.js +17 -0
- package/dist/cjs/plugins/quick-insert/search.js +3 -1
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/table/utils/paste.js +16 -3
- package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +1 -23
- package/dist/es2019/i18n/da.js +1 -23
- package/dist/es2019/i18n/de.js +1 -23
- package/dist/es2019/i18n/es.js +1 -23
- package/dist/es2019/i18n/et.js +1 -23
- package/dist/es2019/i18n/fr.js +1 -23
- package/dist/es2019/i18n/hu.js +1 -23
- package/dist/es2019/i18n/is.js +1 -23
- package/dist/es2019/i18n/it.js +1 -23
- package/dist/es2019/i18n/ko.js +1 -23
- package/dist/es2019/i18n/nb.js +1 -9
- package/dist/es2019/i18n/nl.js +0 -3
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +1 -8
- package/dist/es2019/i18n/pt_PT.js +1 -11
- package/dist/es2019/i18n/ro.js +1 -23
- package/dist/es2019/i18n/sk.js +1 -23
- package/dist/es2019/i18n/sv.js +0 -1
- package/dist/es2019/plugins/card/styles.js +3 -0
- package/dist/es2019/plugins/date/actions.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/layout/styles.js +2 -1
- package/dist/es2019/plugins/list/styles.js +8 -0
- package/dist/es2019/plugins/paste/handlers.js +39 -12
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +14 -0
- package/dist/es2019/plugins/quick-insert/search.js +1 -1
- package/dist/es2019/plugins/table/ui/common-styles.js +2 -1
- package/dist/es2019/plugins/table/utils/paste.js +16 -3
- package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +1 -23
- package/dist/esm/i18n/da.js +1 -23
- package/dist/esm/i18n/de.js +1 -23
- package/dist/esm/i18n/es.js +1 -23
- package/dist/esm/i18n/et.js +1 -23
- package/dist/esm/i18n/fr.js +1 -23
- package/dist/esm/i18n/hu.js +1 -23
- package/dist/esm/i18n/is.js +1 -23
- package/dist/esm/i18n/it.js +1 -23
- package/dist/esm/i18n/ko.js +1 -23
- package/dist/esm/i18n/nb.js +1 -9
- package/dist/esm/i18n/nl.js +0 -3
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +1 -8
- package/dist/esm/i18n/pt_PT.js +1 -11
- package/dist/esm/i18n/ro.js +1 -23
- package/dist/esm/i18n/sk.js +1 -23
- package/dist/esm/i18n/sv.js +0 -1
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/date/actions.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/layout/styles.js +1 -1
- package/dist/esm/plugins/list/styles.js +2 -1
- package/dist/esm/plugins/paste/handlers.js +40 -13
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +16 -0
- package/dist/esm/plugins/quick-insert/search.js +3 -1
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/utils/paste.js +16 -3
- package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +7 -0
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +0 -22
- package/dist/types/i18n/da.d.ts +0 -22
- package/dist/types/i18n/de.d.ts +0 -22
- package/dist/types/i18n/es.d.ts +0 -22
- package/dist/types/i18n/et.d.ts +0 -22
- package/dist/types/i18n/fr.d.ts +0 -22
- package/dist/types/i18n/hu.d.ts +0 -22
- package/dist/types/i18n/is.d.ts +0 -22
- package/dist/types/i18n/it.d.ts +0 -22
- package/dist/types/i18n/ko.d.ts +0 -22
- package/dist/types/i18n/nb.d.ts +0 -8
- package/dist/types/i18n/nl.d.ts +0 -3
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -7
- package/dist/types/i18n/pt_PT.d.ts +0 -10
- package/dist/types/i18n/ro.d.ts +0 -22
- package/dist/types/i18n/sk.d.ts +0 -22
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/plugins/paste/handlers.d.ts +1 -1
- package/package.json +13 -13
|
@@ -15,7 +15,7 @@ exports.handleMention = handleMention;
|
|
|
15
15
|
exports.handleParagraphBlockMarks = handleParagraphBlockMarks;
|
|
16
16
|
exports.handlePasteAsPlainText = handlePasteAsPlainText;
|
|
17
17
|
exports.handlePasteIntoCaption = handlePasteIntoCaption;
|
|
18
|
-
exports.
|
|
18
|
+
exports.handlePasteIntoTaskOrDecisionOrPanel = handlePasteIntoTaskOrDecisionOrPanel;
|
|
19
19
|
exports.handlePasteLinkOnSelectedText = handlePasteLinkOnSelectedText;
|
|
20
20
|
exports.handlePastePreservingMarks = handlePastePreservingMarks;
|
|
21
21
|
exports.handleRichText = handleRichText;
|
|
@@ -91,25 +91,39 @@ function handleMention(slice, schema) {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
function
|
|
94
|
+
function handlePasteIntoTaskOrDecisionOrPanel(slice) {
|
|
95
95
|
return function (state, dispatch) {
|
|
96
|
+
var _slice$content$firstC, _slice$content$firstC2, _transformedSlice$con;
|
|
97
|
+
|
|
96
98
|
var schema = state.schema,
|
|
97
99
|
selection = state.tr.selection;
|
|
98
100
|
var codeMark = schema.marks.code,
|
|
99
101
|
_schema$nodes = schema.nodes,
|
|
100
102
|
decisionItem = _schema$nodes.decisionItem,
|
|
101
|
-
decisionList = _schema$nodes.decisionList,
|
|
102
103
|
emoji = _schema$nodes.emoji,
|
|
103
104
|
hardBreak = _schema$nodes.hardBreak,
|
|
104
105
|
mention = _schema$nodes.mention,
|
|
105
106
|
paragraph = _schema$nodes.paragraph,
|
|
106
|
-
taskList = _schema$nodes.taskList,
|
|
107
107
|
taskItem = _schema$nodes.taskItem,
|
|
108
|
-
text = _schema$nodes.text
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
text = _schema$nodes.text,
|
|
109
|
+
panel = _schema$nodes.panel,
|
|
110
|
+
bulletList = _schema$nodes.bulletList,
|
|
111
|
+
orderedList = _schema$nodes.orderedList,
|
|
112
|
+
expand = _schema$nodes.expand,
|
|
113
|
+
heading = _schema$nodes.heading;
|
|
114
|
+
var selectionIsValidNode = state.selection instanceof _prosemirrorState.NodeSelection && ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(state.selection.node.type.name);
|
|
115
|
+
var selectionHasValidParentNode = (0, _prosemirrorUtils.hasParentNodeOfType)([decisionItem, taskItem, panel])(state.selection);
|
|
116
|
+
var selectionIsPanel = (0, _prosemirrorUtils.hasParentNodeOfType)([panel])(state.selection); // Some types of content should be handled by the default handler, not this function.
|
|
117
|
+
|
|
118
|
+
var sliceFirstNodeType = (_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type;
|
|
119
|
+
var sliceIsInvalid = sliceFirstNodeType === bulletList || sliceFirstNodeType === orderedList || sliceFirstNodeType === expand || sliceFirstNodeType === heading; // If the selection is a panel,
|
|
120
|
+
// and the slice's first node is a paragraph
|
|
121
|
+
// and it is not from a depth that would indicate it being from inside from another node (e.g. text from a decision)
|
|
122
|
+
// then we can rely on the default behaviour.
|
|
123
|
+
|
|
124
|
+
var sliceIsAPanelReceivingLowDepthText = selectionIsPanel && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) === paragraph && slice.openEnd < 2;
|
|
125
|
+
|
|
126
|
+
if (sliceIsInvalid || sliceIsAPanelReceivingLowDepthText || !selectionIsValidNode && !selectionHasValidParentNode) {
|
|
113
127
|
return false;
|
|
114
128
|
}
|
|
115
129
|
|
|
@@ -126,11 +140,15 @@ function handlePasteIntoTaskAndDecision(slice) {
|
|
|
126
140
|
var transformedSlice = _utils.compose.apply(null, filters)(slice);
|
|
127
141
|
|
|
128
142
|
var tr = (0, _prosemirrorHistory.closeHistory)(state.tr);
|
|
129
|
-
var transformedSliceIsValidNode = transformedSlice.content.firstChild.type.inlineContent || ['decisionList', 'decisionItem', 'taskList', 'taskItem'].includes(transformedSlice.content.firstChild.type.name);
|
|
143
|
+
var transformedSliceIsValidNode = transformedSlice.content.firstChild.type.inlineContent || ['decisionList', 'decisionItem', 'taskList', 'taskItem', 'panel'].includes(transformedSlice.content.firstChild.type.name); // If the slice or the selection are valid nodes to handle,
|
|
144
|
+
// and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
|
|
145
|
+
// or the slice's first node is a paragraph,
|
|
146
|
+
// then we can replace the selection with our slice.
|
|
130
147
|
|
|
131
|
-
if (transformedSliceIsValidNode ||
|
|
148
|
+
if ((transformedSliceIsValidNode || selectionIsValidNode) && !(transformedSlice.openStart === 1 && transformedSlice.openEnd === 0) || ((_transformedSlice$con = transformedSlice.content.firstChild) === null || _transformedSlice$con === void 0 ? void 0 : _transformedSlice$con.type) === paragraph) {
|
|
132
149
|
tr.replaceSelection(transformedSlice).scrollIntoView();
|
|
133
150
|
} else {
|
|
151
|
+
// This maintains both the selection (destination) and the slice (paste content).
|
|
134
152
|
(0, _prosemirrorUtils.safeInsert)(transformedSlice.content)(tr).scrollIntoView();
|
|
135
153
|
}
|
|
136
154
|
|
|
@@ -459,13 +477,21 @@ function handleMediaSingle(inputMethod) {
|
|
|
459
477
|
};
|
|
460
478
|
}
|
|
461
479
|
|
|
480
|
+
var checkExpand = function checkExpand(slice) {
|
|
481
|
+
var hasExpand = false;
|
|
482
|
+
slice.content.forEach(function (node) {
|
|
483
|
+
if (node.type.name === 'expand') {
|
|
484
|
+
hasExpand = true;
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
return hasExpand;
|
|
488
|
+
};
|
|
489
|
+
|
|
462
490
|
function handleExpandPasteInTable(slice) {
|
|
463
491
|
return function (state, dispatch) {
|
|
464
|
-
var _slice$content$firstC;
|
|
465
|
-
|
|
466
492
|
// Do not handle expand if it's not being pasted into a table
|
|
467
493
|
// OR if it's nested within another node when being pasted into a table
|
|
468
|
-
if (!(0, _utils.insideTable)(state) || (
|
|
494
|
+
if (!(0, _utils.insideTable)(state) || !checkExpand(slice)) {
|
|
469
495
|
return false;
|
|
470
496
|
}
|
|
471
497
|
|
|
@@ -247,7 +247,7 @@ var handlePasteAsPlainTextWithAnalytics = function handlePasteAsPlainTextWithAna
|
|
|
247
247
|
exports.handlePasteAsPlainTextWithAnalytics = handlePasteAsPlainTextWithAnalytics;
|
|
248
248
|
|
|
249
249
|
var handlePasteIntoTaskAndDecisionWithAnalytics = function handlePasteIntoTaskAndDecisionWithAnalytics(view, event, slice, type) {
|
|
250
|
-
return (0, _utils.pipe)(_handlers.
|
|
250
|
+
return (0, _utils.pipe)(_handlers.handlePasteIntoTaskOrDecisionOrPanel, pasteCommandWithAnalytics(view, event, slice, {
|
|
251
251
|
type: type
|
|
252
252
|
}))(slice);
|
|
253
253
|
};
|
|
@@ -373,6 +373,23 @@ function createPlugin(schema, dispatchAnalyticsEvent, plainTextPasteLinkificatio
|
|
|
373
373
|
|
|
374
374
|
if ((0, _analytics.handlePastePreservingMarksWithAnalytics)(view, event, slice, _analytics2.PasteTypes.richText)(state, dispatch)) {
|
|
375
375
|
return true;
|
|
376
|
+
} // Check that we are pasting in a location that does not accept
|
|
377
|
+
// breakout marks, if so we strip the mark and paste. Note that
|
|
378
|
+
// breakout marks are only valid in the root document.
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
if (selectionParentType !== state.schema.nodes.doc) {
|
|
382
|
+
var sliceCopy = _prosemirrorModel.Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
383
|
+
|
|
384
|
+
sliceCopy.content.descendants(function (node) {
|
|
385
|
+
node.marks = node.marks.filter(function (mark) {
|
|
386
|
+
return mark.type.name !== 'breakout';
|
|
387
|
+
}); // as breakout marks should only be on top level nodes,
|
|
388
|
+
// we don't traverse the entire document
|
|
389
|
+
|
|
390
|
+
return false;
|
|
391
|
+
});
|
|
392
|
+
slice = sliceCopy;
|
|
376
393
|
}
|
|
377
394
|
|
|
378
395
|
if ((0, _analytics.handleExpandWithAnalytics)(view, event, slice)(state, dispatch)) {
|
|
@@ -45,7 +45,9 @@ function find(query, items) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
return fuse.search(query)
|
|
48
|
+
return fuse.search(query).map(function (result) {
|
|
49
|
+
return result.item;
|
|
50
|
+
});
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
var searchQuickInsertItems = function searchQuickInsertItems(quickInsertState, options) {
|
|
@@ -38,7 +38,7 @@ var sentinelStyles = ".".concat(_types.TableCssClassName.TABLE_CONTAINER, " {\n
|
|
|
38
38
|
var tableStyles = function tableStyles(props) {
|
|
39
39
|
var _props$featureFlags;
|
|
40
40
|
|
|
41
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " button {\n background: ", ";\n color: ", ";\n cursor: none;\n }\n\n .", ":not(.", ") button:hover {\n background: ", ";\n color: ", " !important;\n cursor: pointer;\n }\n\n .ProseMirror {\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n .", " {\n margin-bottom: 0;\n }\n\n .", " {\n td.", ", th.", " {\n position: relative;\n overflow: visible;\n }\n\n td.", " {\n background-color: ", ";\n }\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", "\n }\n\n /* Delete button */\n ", "\n /* Ends Delete button */\n\n /* sticky styles */\n .", " .", " .", ":first-of-type {\n margin-top: ", "px;\n width: ", "px;\n\n position: fixed !important;\n z-index: ", " !important;\n box-shadow: 0px -", "px ", ";\n border-right: 0 none;\n /* top set by NumberColumn component */\n }\n\n .", " .", ".sticky {\n position: fixed !important;\n /* needs to be above row controls */\n z-index: ", " !important;\n background: ", ";\n\n width: ", "px;\n height: ", "px;\n }\n\n .", ".sticky .", " {\n border-bottom: 0px none;\n border-right: 0px none;\n\n height: ", "px;\n width: ", "px;\n }\n\n .", " .", " {\n z-index: 0;\n }\n\n .", "\n .", "\n .", ".sticky {\n position: fixed !important;\n z-index: ", " !important;\n display: flex;\n border-left: ", "px solid\n ", ";\n margin-left: -", "px;\n }\n\n .", " col:first-of-type {\n /* moving rows out of a table layout does weird things in Chrome */\n border-right: 1px solid ", ";\n }\n\n tr.sticky {\n padding-top: ", "px;\n position: fixed;\n display: grid;\n\n /* to keep it above cell selection */\n z-index: ", ";\n\n overflow-y: visible;\n overflow-x: hidden;\n\n grid-auto-flow: column;\n\n /* background for where controls apply */\n background: ", ";\n box-sizing: content-box;\n\n margin-top: 2px;\n\n box-shadow: ", ";\n margin-left: -1px;\n\n &.no-pointer-events {\n pointer-events: none;\n }\n }\n\n .", " .", " {\n left: unset;\n position: fixed;\n z-index: ", ";\n }\n\n .", ".", "\n .", " {\n padding-bottom: ", "px;\n }\n\n tr.sticky th {\n border-bottom: ", "px solid\n ", ";\n margin-right: -1px;\n }\n\n .", " tr.sticky > th:last-child {\n border-right-width: 1px;\n }\n\n /* add left edge for first cell */\n .", " tr.sticky > th:first-of-type {\n margin-left: 0px;\n }\n\n /* add a little bit so the scroll lines up with the table */\n .", " tr.sticky::after {\n content: ' ';\n width: 1px;\n }\n\n /* To fix jumpiness caused in Chrome Browsers for sticky headers */\n .", " .sticky + tr {\n min-height: 0px;\n }\n\n /* move resize line a little in sticky bar */\n .", ".", " {\n tr.sticky\n td.", ",\n tr.sticky\n th.", " {\n .", "::after {\n right: ", "px;\n }\n }\n\n /* when selected put it back to normal -- :not selector would be nicer */\n tr.sticky\n td.", ".", ",\n tr.sticky\n th.", ".", " {\n .", "::after {\n right: ", "px;\n }\n }\n }\n\n tr.sticky\n .", ",\n tr.sticky\n .", " {\n z-index: 1;\n }\n\n .", " tr.sticky {\n padding-top: ", "px;\n }\n\n .", ".", "\n .", "\n .", ":first-of-type {\n margin-top: ", "px;\n }\n\n .", ".sticky {\n border-top: ", "px solid\n ", ";\n }\n\n ", "\n ", "\n\n .", " .", " {\n height: 0; // stop overflow flash & set correct height in update-overflow-shadows.ts\n }\n\n .less-padding {\n padding: 0 ", "px;\n\n .", " {\n padding: 0 ", "px;\n }\n\n &.", "[data-number-column='true'] {\n padding-left: ", "px;\n }\n\n .", " {\n left: 6px;\n }\n\n .", " {\n left: calc(100% - 6px);\n }\n }\n\n > .", " {\n /**\n * Prevent margins collapsing, aids with placing the gap-cursor correctly\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing\n *\n * TODO: Enable this, many tests will fail!\n * border-top: 1px solid transparent;\n */\n }\n\n /* Breakout only works on top level */\n > * .", " .", " {\n margin-left: unset !important;\n width: 100% !important;\n }\n\n ", ";\n\n /* Corner controls */\n .", " {\n width: ", "px;\n height: ", "px;\n display: none;\n\n .", " {\n position: relative;\n\n ", ";\n }\n\n .", " {\n position: relative;\n\n ", ";\n }\n }\n\n .", ".sticky {\n .", " {\n /* sticky row insert dot overlaps other row insert and messes things up */\n display: none !important;\n }\n }\n\n .", " {\n position: absolute;\n top: 0;\n width: ", "px;\n height: ", "px;\n border: 1px solid ", ";\n border-radius: 0;\n border-top-left-radius: ", "px;\n background: ", ";\n box-sizing: border-box;\n padding: 0;\n :focus {\n outline: none;\n }\n }\n .active .", " {\n border-color: ", ";\n background: ", ";\n }\n\n .", "[data-number-column='true'] {\n .", ", .", " {\n width: ", "px;\n }\n .", " .", " {\n border-right-width: 0;\n }\n }\n\n :not(.", ") .", ":hover {\n border-color: ", ";\n background: ", ";\n cursor: pointer;\n }\n\n :not(.", ")\n .", ".", " {\n border-color: ", ";\n background: ", ";\n }\n\n /* Row controls */\n .", " {\n width: ", "px;\n box-sizing: border-box;\n display: none;\n position: relative;\n\n ", ";\n\n .", " {\n display: flex;\n flex-direction: column;\n }\n .", ":last-child > button {\n border-bottom-left-radius: ", "px;\n }\n .", " {\n position: relative;\n margin-top: -1px;\n }\n .", ":hover,\n .", ".active,\n .", ":hover {\n z-index: ", ";\n }\n\n ", "\n }\n\n :not(.", ") .", " {\n ", "\n ", "\n }\n\n /* Numbered column */\n .", " {\n position: relative;\n float: right;\n margin-left: ", "px;\n top: ", "px;\n width: ", "px;\n box-sizing: border-box;\n }\n\n .", " {\n border: 1px solid ", ";\n box-sizing: border-box;\n margin-top: -1px;\n padding-bottom: 2px;\n padding: 10px 2px;\n text-align: center;\n font-size: ", ";\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n\n :first-child {\n margin-top: 0;\n }\n :last-child {\n border-bottom: 1px solid ", ";\n }\n }\n\n .", " {\n .", ", .", " {\n display: block;\n }\n .", " {\n padding-left: 1px;\n .", " {\n border-left: 0 none;\n }\n\n .", ".active {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n }\n }\n :not(.", ") .", " {\n .", " {\n cursor: pointer;\n }\n .", ":hover {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n .", ".", " {\n background-color: ", ";\n border: 1px solid ", ";\n border-left: 0;\n color: ", ";\n position: relative;\n z-index: ", ";\n }\n }\n\n /* Table */\n .", " > table {\n table-layout: fixed;\n\n .", " + * {\n margin-top: 0;\n }\n\n /*\n * Headings have a top margin by default, but we don't want this on the\n * first heading within table header cells.\n *\n * This specifically sets margin-top for the first heading within a header\n * cell when center/right aligned.\n */\n th.", " > .fabric-editor-block-mark {\n > h1:first-of-type,\n > h2:first-of-type,\n > h3:first-of-type,\n > h4:first-of-type,\n > h5:first-of-type,\n > h6:first-of-type {\n margin-top: 0;\n }\n }\n\n .", ", .", " {\n position: relative;\n }\n /* Give selected cells a blue overlay */\n .", "::after,\n .", "::after {\n z-index: ", ";\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n .", " {\n border: 1px solid ", ";\n }\n .", "::after {\n background: ", ";\n }\n th.", "::after,\n td.", "::after {\n background: ", ";\n }\n }\n .", " {\n position: absolute;\n /* top of corner control is table margin top - corner control height + 1 pixel of table border. */\n top: ", "px;\n }\n .", ".", " {\n z-index: ", ";\n }\n .", " {\n left: -", "px;\n }\n .", " {\n /*\n compensating for half of the insert column button\n that is aligned to the right edge initially on hover of the top right column control when table overflown,\n its center should be aligned with the edge\n */\n padding-right: ", "px;\n margin-right: -", "px;\n padding-bottom: ", "px;\n margin-bottom: -", "px;\n /* fixes gap cursor height */\n overflow: auto;\n position: relative;\n }\n }\n\n .ProseMirror.", " {\n .", " {\n overflow-x: auto;\n ", ";\n }\n }\n\n .ProseMirror.", " {\n cursor: col-resize;\n }\n\n .ProseMirror .pm-table-cell-content-wrap ol[data-child-count='100+'] {\n padding-left: revert;\n }\n"])), _types.TableCssClassName.LAYOUT_BUTTON, (0, _tokens.token)('color.background.neutral', _colors.N20A), (0, _tokens.token)('color.icon', _colors.N300), _types.TableCssClassName.LAYOUT_BUTTON, _types.TableCssClassName.IS_RESIZING, (0, _tokens.token)('color.background.neutral.hovered', _colors.B300), (0, _tokens.token)('color.icon', 'white'), (0, _styles.tableSharedStyle)(props), (0, _uiStyles.columnControlsLineMarker)(props), _uiStyles.hoveredDeleteButton, _uiStyles.hoveredCell, _uiStyles.hoveredWarningCell, _uiStyles.resizeHandle, rangeSelectionStyles, _types.TableCssClassName.LAST_ITEM_IN_CELL, _types.TableCssClassName.TABLE_NODE_WRAPPER, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.TABLE_CELL, (0, _consts.tableCellBackgroundColor)(props), _types.TableCssClassName.CONTROLS_FLOATING_BUTTON_COLUMN, _uiStyles.insertColumnButtonWrapper, _types.TableCssClassName.CONTROLS_FLOATING_BUTTON_ROW, _uiStyles.insertRowButtonWrapper, _uiStyles.DeleteButton, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.stickyRowOffsetTop + 2, _editorSharedStyles.akEditorTableNumberColumnWidth, _editorSharedStyles.akEditorStickyHeaderZIndex, _consts.stickyRowOffsetTop, (0, _tokens.token)('elevation.surface', 'white'), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.CORNER_CONTROLS, _editorSharedStyles.akEditorSmallZIndex, (0, _tokens.token)('elevation.surface', 'white'), _consts.tableToolbarSize, _consts.tableToolbarSize, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableToolbarSize, _consts.tableToolbarSize, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _editorSharedStyles.akEditorStickyHeaderZIndex, _consts.tableToolbarSize, (0, _tokens.token)('elevation.surface', 'white'), _consts.tableToolbarSize, _types.TableCssClassName.TABLE_STICKY, (0, _tokens.token)('elevation.surface', 'green'), _consts.stickyRowOffsetTop, _consts.stickyRowZIndex, (0, _tokens.token)('elevation.surface', 'white'), (0, _tokens.token)('elevation.shadow.overflow', "0 6px 4px -4px ".concat(_colors.N40A)), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.stickyRowZIndex + 1, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.tableToolbarSize, _consts.stickyHeaderBorderBottomWidth, (0, _consts.tableBorderColor)(props), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, (_consts.resizeHandlerAreaWidth - _consts.resizeLineWidth) / 2 + 1, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, (_consts.resizeHandlerAreaWidth - _consts.resizeLineWidth) / 2, _types.TableCssClassName.HOVERED_CELL, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.WITH_CONTROLS, _consts.tableControlsSpacing, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableControlsSpacing + 2, _types.TableCssClassName.CORNER_CONTROLS, _consts.tableControlsSpacing - _consts.tableToolbarSize + 2, (0, _tokens.token)('elevation.surface', 'white'), (_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.stickyHeadersOptimization ? sentinelStyles : '', (0, _uiStyles.OverflowShadow)(props), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.tablePadding, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _consts.tablePadding, _types.TableCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth + _consts.tablePadding - 1, _types.TableCssClassName.TABLE_LEFT_SHADOW, _types.TableCssClassName.TABLE_RIGHT_SHADOW, _types.TableCssClassName.NODEVIEW_WRAPPER, _types.TableCssClassName.NODEVIEW_WRAPPER, _types.TableCssClassName.TABLE_CONTAINER, (0, _uiStyles.columnControlsDecoration)(props), _types.TableCssClassName.CORNER_CONTROLS, _consts.tableToolbarSize + 1, cornerControlHeight, _types.TableCssClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, (0, _uiStyles.InsertMarker)(props, "\n left: -11px;\n top: 9px;\n "), _types.TableCssClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER, (0, _uiStyles.InsertMarker)(props, "\n right: -1px;\n top: -12px;\n "), _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableToolbarSize + 1, _consts.tableToolbarSize + 1, (0, _consts.tableBorderColor)(props), _consts.tableBorderRadiusSize, (0, _consts.tableToolbarColor)(props), _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _editorSharedStyles.akEditorTableToolbarSize + _editorSharedStyles.akEditorTableNumberColumnWidth, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.CONTROLS_BUTTON, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableBorderDeleteColor, _consts.tableToolbarDeleteColor, _types.TableCssClassName.ROW_CONTROLS, _consts.tableToolbarSize, (0, _uiStyles.InsertMarker)(props, "\n bottom: -1px;\n left: -11px;\n "), _types.TableCssClassName.ROW_CONTROLS_INNER, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _consts.tableBorderRadiusSize, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.CONTROLS_BUTTON, _editorSharedStyles.akEditorUnitZIndex, (0, _uiStyles.HeaderButton)(props, "\n border-bottom: 1px solid ".concat((0, _consts.tableBorderColor)(props), ";\n border-right: 0px;\n border-radius: 0;\n height: 100%;\n width: ").concat(_consts.tableToolbarSize, "px;\n\n .").concat(_types.TableCssClassName.CONTROLS_BUTTON_OVERLAY, " {\n position: absolute;\n width: 30px;\n height: 50%;\n right: 0;\n bottom: 0;\n }\n .").concat(_types.TableCssClassName.CONTROLS_BUTTON_OVERLAY, ":first-of-type {\n top: 0;\n }\n ")), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.ROW_CONTROLS, (0, _uiStyles.HeaderButtonHover)(), (0, _uiStyles.HeaderButtonDanger)(), _types.TableCssClassName.NUMBERED_COLUMN, _editorSharedStyles.akEditorTableToolbarSize - 1, _editorSharedStyles.akEditorTableToolbarSize, _editorSharedStyles.akEditorTableNumberColumnWidth + 1, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, (0, _consts.tableBorderColor)(props), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), (0, _consts.tableToolbarColor)(props), (0, _consts.tableTextColor)(props), (0, _consts.tableBorderColor)(props), (0, _consts.tableBorderColor)(props), _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableBorderSelectedColor, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _editorSharedStyles.akEditorUnitZIndex, (0, _tokens.token)('color.text.inverse', _colors.N0), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableBorderSelectedColor, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _editorSharedStyles.akEditorUnitZIndex, (0, _tokens.token)('color.text.inverse', _colors.N0), _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, (0, _tokens.token)('color.text.inverse', _colors.R500), _editorSharedStyles.akEditorUnitZIndex, _types.TableCssClassName.TABLE_NODE_WRAPPER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _editorSharedStyles.akEditorSmallZIndex, _types.TableCssClassName.SELECTED_CELL, _consts.tableBorderSelectedColor, _types.TableCssClassName.SELECTED_CELL, _consts.tableCellSelectedColor, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableCellDeleteColor, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _styles.tableMarginTop - cornerControlHeight + 1, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _types.TableCssClassName.TABLE_LEFT_SHADOW, _editorSharedStyles.akEditorUnitZIndex, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _consts.tableToolbarSize, _types.TableCssClassName.TABLE_NODE_WRAPPER, _consts.tableInsertColumnButtonSize / 2, _consts.tableInsertColumnButtonSize / 2, _consts.tableScrollbarOffset, _consts.tableScrollbarOffset, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.TABLE_NODE_WRAPPER, _styles2.scrollbarStyles, _types.TableCssClassName.RESIZE_CURSOR);
|
|
41
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " button {\n background: ", ";\n color: ", ";\n cursor: none;\n }\n\n .", ":not(.", ") button:hover {\n background: ", ";\n color: ", " !important;\n cursor: pointer;\n }\n\n .ProseMirror {\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n .", " {\n margin-bottom: 0;\n }\n\n .", " {\n td.", ", th.", " {\n position: relative;\n overflow: visible;\n }\n\n td.", " {\n background-color: ", ";\n }\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", "\n }\n\n /* Delete button */\n ", "\n /* Ends Delete button */\n\n /* sticky styles */\n .", " .", " .", ":first-of-type {\n margin-top: ", "px;\n width: ", "px;\n\n position: fixed !important;\n z-index: ", " !important;\n box-shadow: 0px -", "px ", ";\n border-right: 0 none;\n /* top set by NumberColumn component */\n }\n\n .", " .", ".sticky {\n position: fixed !important;\n /* needs to be above row controls */\n z-index: ", " !important;\n background: ", ";\n\n width: ", "px;\n height: ", "px;\n }\n\n .", ".sticky .", " {\n border-bottom: 0px none;\n border-right: 0px none;\n\n height: ", "px;\n width: ", "px;\n }\n\n .", " .", " {\n z-index: 0;\n }\n\n .", "\n .", "\n .", ".sticky {\n position: fixed !important;\n z-index: ", " !important;\n display: flex;\n border-left: ", "px solid\n ", ";\n margin-left: -", "px;\n }\n\n .", " col:first-of-type {\n /* moving rows out of a table layout does weird things in Chrome */\n border-right: 1px solid ", ";\n }\n\n tr.sticky {\n padding-top: ", "px;\n position: fixed;\n display: grid;\n\n /* to keep it above cell selection */\n z-index: ", ";\n\n overflow-y: visible;\n overflow-x: hidden;\n\n grid-auto-flow: column;\n\n /* background for where controls apply */\n background: ", ";\n box-sizing: content-box;\n\n margin-top: 2px;\n\n box-shadow: ", ";\n margin-left: -1px;\n\n &.no-pointer-events {\n pointer-events: none;\n }\n }\n\n .", " .", " {\n left: unset;\n position: fixed;\n z-index: ", ";\n }\n\n .", ".", "\n .", " {\n padding-bottom: ", "px;\n }\n\n tr.sticky th {\n border-bottom: ", "px solid\n ", ";\n margin-right: -1px;\n }\n\n .", " tr.sticky > th:last-child {\n border-right-width: 1px;\n }\n\n /* add left edge for first cell */\n .", " tr.sticky > th:first-of-type {\n margin-left: 0px;\n }\n\n /* add a little bit so the scroll lines up with the table */\n .", " tr.sticky::after {\n content: ' ';\n width: 1px;\n }\n\n /* To fix jumpiness caused in Chrome Browsers for sticky headers */\n .", " .sticky + tr {\n min-height: 0px;\n }\n\n /* move resize line a little in sticky bar */\n .", ".", " {\n tr.sticky\n td.", ",\n tr.sticky\n th.", " {\n .", "::after {\n right: ", "px;\n }\n }\n\n /* when selected put it back to normal -- :not selector would be nicer */\n tr.sticky\n td.", ".", ",\n tr.sticky\n th.", ".", " {\n .", "::after {\n right: ", "px;\n }\n }\n }\n\n tr.sticky\n .", ",\n tr.sticky\n .", " {\n z-index: 1;\n }\n\n .", " tr.sticky {\n padding-top: ", "px;\n }\n\n .", ".", "\n .", "\n .", ":first-of-type {\n margin-top: ", "px;\n }\n\n .", ".sticky {\n border-top: ", "px solid\n ", ";\n }\n\n ", "\n ", "\n\n .", " .", " {\n height: 0; // stop overflow flash & set correct height in update-overflow-shadows.ts\n }\n\n .less-padding {\n padding: 0 ", "px;\n\n .", " {\n padding: 0 ", "px;\n }\n\n &.", "[data-number-column='true'] {\n padding-left: ", "px;\n }\n\n .", " {\n left: 6px;\n }\n\n .", " {\n left: calc(100% - 6px);\n }\n }\n\n > .", " {\n /**\n * Prevent margins collapsing, aids with placing the gap-cursor correctly\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing\n *\n * TODO: Enable this, many tests will fail!\n * border-top: 1px solid transparent;\n */\n }\n\n /* Breakout only works on top level */\n > * .", " .", " {\n margin-left: unset !important;\n width: 100% !important;\n }\n\n ", ";\n\n /* Corner controls */\n .", " {\n width: ", "px;\n height: ", "px;\n display: none;\n\n .", " {\n position: relative;\n\n ", ";\n }\n\n .", " {\n position: relative;\n\n ", ";\n }\n }\n\n .", ".sticky {\n .", " {\n /* sticky row insert dot overlaps other row insert and messes things up */\n display: none !important;\n }\n }\n\n .", " {\n position: absolute;\n top: 0;\n width: ", "px;\n height: ", "px;\n border: 1px solid ", ";\n border-radius: 0;\n border-top-left-radius: ", "px;\n background: ", ";\n box-sizing: border-box;\n padding: 0;\n :focus {\n outline: none;\n }\n }\n .active .", " {\n border-color: ", ";\n background: ", ";\n }\n\n .", "[data-number-column='true'] {\n .", ", .", " {\n width: ", "px;\n }\n .", " .", " {\n border-right-width: 0;\n }\n }\n\n :not(.", ") .", ":hover {\n border-color: ", ";\n background: ", ";\n cursor: pointer;\n }\n\n :not(.", ")\n .", ".", " {\n border-color: ", ";\n background: ", ";\n }\n\n /* Row controls */\n .", " {\n width: ", "px;\n box-sizing: border-box;\n display: none;\n position: relative;\n\n ", ";\n\n .", " {\n display: flex;\n flex-direction: column;\n }\n .", ":last-child > button {\n border-bottom-left-radius: ", "px;\n }\n .", " {\n position: relative;\n margin-top: -1px;\n }\n .", ":hover,\n .", ".active,\n .", ":hover {\n z-index: ", ";\n }\n\n ", "\n }\n\n :not(.", ") .", " {\n ", "\n ", "\n }\n\n /* Numbered column */\n .", " {\n position: relative;\n float: right;\n margin-left: ", "px;\n top: ", "px;\n width: ", "px;\n box-sizing: border-box;\n }\n\n .", " {\n border: 1px solid ", ";\n box-sizing: border-box;\n margin-top: -1px;\n padding-bottom: 2px;\n padding: 10px 2px;\n text-align: center;\n font-size: ", ";\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n :last-child {\n border-bottom: 1px solid ", ";\n }\n }\n\n .", " {\n .", ", .", " {\n display: block;\n }\n .", " {\n padding-left: 1px;\n .", " {\n border-left: 0 none;\n }\n\n .", ".active {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n }\n }\n :not(.", ") .", " {\n .", " {\n cursor: pointer;\n }\n .", ":hover {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n .", ".", " {\n background-color: ", ";\n border: 1px solid ", ";\n border-left: 0;\n color: ", ";\n position: relative;\n z-index: ", ";\n }\n }\n\n /* Table */\n .", " > table {\n table-layout: fixed;\n\n .", " + * {\n margin-top: 0;\n }\n\n /*\n * Headings have a top margin by default, but we don't want this on the\n * first heading within table header cells.\n *\n * This specifically sets margin-top for the first heading within a header\n * cell when center/right aligned.\n */\n th.", " > .fabric-editor-block-mark {\n > h1:first-of-type,\n > h2:first-of-type,\n > h3:first-of-type,\n > h4:first-of-type,\n > h5:first-of-type,\n > h6:first-of-type {\n margin-top: 0;\n }\n }\n\n .", ", .", " {\n position: relative;\n }\n /* Give selected cells a blue overlay */\n .", "::after,\n .", "::after {\n z-index: ", ";\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n .", " {\n border: 1px solid ", ";\n }\n .", "::after {\n background: ", ";\n }\n th.", "::after,\n td.", "::after {\n background: ", ";\n }\n }\n .", " {\n position: absolute;\n /* top of corner control is table margin top - corner control height + 1 pixel of table border. */\n top: ", "px;\n }\n .", ".", " {\n z-index: ", ";\n }\n .", " {\n left: -", "px;\n }\n .", " {\n /*\n compensating for half of the insert column button\n that is aligned to the right edge initially on hover of the top right column control when table overflown,\n its center should be aligned with the edge\n */\n padding-right: ", "px;\n margin-right: -", "px;\n padding-bottom: ", "px;\n margin-bottom: -", "px;\n /* fixes gap cursor height */\n overflow: auto;\n position: relative;\n }\n }\n\n .ProseMirror.", " {\n .", " {\n overflow-x: auto;\n ", ";\n }\n }\n\n .ProseMirror.", " {\n cursor: col-resize;\n }\n\n .ProseMirror .pm-table-cell-content-wrap ol[data-child-count='100+'] {\n padding-left: revert;\n }\n"])), _types.TableCssClassName.LAYOUT_BUTTON, (0, _tokens.token)('color.background.neutral', _colors.N20A), (0, _tokens.token)('color.icon', _colors.N300), _types.TableCssClassName.LAYOUT_BUTTON, _types.TableCssClassName.IS_RESIZING, (0, _tokens.token)('color.background.neutral.hovered', _colors.B300), (0, _tokens.token)('color.icon', 'white'), (0, _styles.tableSharedStyle)(props), (0, _uiStyles.columnControlsLineMarker)(props), _uiStyles.hoveredDeleteButton, _uiStyles.hoveredCell, _uiStyles.hoveredWarningCell, _uiStyles.resizeHandle, rangeSelectionStyles, _types.TableCssClassName.LAST_ITEM_IN_CELL, _types.TableCssClassName.TABLE_NODE_WRAPPER, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.TABLE_CELL, (0, _consts.tableCellBackgroundColor)(props), _types.TableCssClassName.CONTROLS_FLOATING_BUTTON_COLUMN, _uiStyles.insertColumnButtonWrapper, _types.TableCssClassName.CONTROLS_FLOATING_BUTTON_ROW, _uiStyles.insertRowButtonWrapper, _uiStyles.DeleteButton, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.stickyRowOffsetTop + 2, _editorSharedStyles.akEditorTableNumberColumnWidth, _editorSharedStyles.akEditorStickyHeaderZIndex, _consts.stickyRowOffsetTop, (0, _tokens.token)('elevation.surface', 'white'), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.CORNER_CONTROLS, _editorSharedStyles.akEditorSmallZIndex, (0, _tokens.token)('elevation.surface', 'white'), _consts.tableToolbarSize, _consts.tableToolbarSize, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableToolbarSize, _consts.tableToolbarSize, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _editorSharedStyles.akEditorStickyHeaderZIndex, _consts.tableToolbarSize, (0, _tokens.token)('elevation.surface', 'white'), _consts.tableToolbarSize, _types.TableCssClassName.TABLE_STICKY, (0, _tokens.token)('elevation.surface', 'green'), _consts.stickyRowOffsetTop, _consts.stickyRowZIndex, (0, _tokens.token)('elevation.surface', 'white'), (0, _tokens.token)('elevation.shadow.overflow', "0 6px 4px -4px ".concat(_colors.N40A)), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.stickyRowZIndex + 1, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.tableToolbarSize, _consts.stickyHeaderBorderBottomWidth, (0, _consts.tableBorderColor)(props), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, (_consts.resizeHandlerAreaWidth - _consts.resizeLineWidth) / 2 + 1, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, (_consts.resizeHandlerAreaWidth - _consts.resizeLineWidth) / 2, _types.TableCssClassName.HOVERED_CELL, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.WITH_CONTROLS, _consts.tableControlsSpacing, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableControlsSpacing + 2, _types.TableCssClassName.CORNER_CONTROLS, _consts.tableControlsSpacing - _consts.tableToolbarSize + 2, (0, _tokens.token)('elevation.surface', 'white'), (_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.stickyHeadersOptimization ? sentinelStyles : '', (0, _uiStyles.OverflowShadow)(props), _types.TableCssClassName.TABLE_STICKY, _types.TableCssClassName.TABLE_STICKY_SHADOW, _consts.tablePadding, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _consts.tablePadding, _types.TableCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth + _consts.tablePadding - 1, _types.TableCssClassName.TABLE_LEFT_SHADOW, _types.TableCssClassName.TABLE_RIGHT_SHADOW, _types.TableCssClassName.NODEVIEW_WRAPPER, _types.TableCssClassName.NODEVIEW_WRAPPER, _types.TableCssClassName.TABLE_CONTAINER, (0, _uiStyles.columnControlsDecoration)(props), _types.TableCssClassName.CORNER_CONTROLS, _consts.tableToolbarSize + 1, cornerControlHeight, _types.TableCssClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, (0, _uiStyles.InsertMarker)(props, "\n left: -11px;\n top: 9px;\n "), _types.TableCssClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER, (0, _uiStyles.InsertMarker)(props, "\n right: -1px;\n top: -12px;\n "), _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableToolbarSize + 1, _consts.tableToolbarSize + 1, (0, _consts.tableBorderColor)(props), _consts.tableBorderRadiusSize, (0, _consts.tableToolbarColor)(props), _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _editorSharedStyles.akEditorTableToolbarSize + _editorSharedStyles.akEditorTableNumberColumnWidth, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.CONTROLS_BUTTON, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.CONTROLS_CORNER_BUTTON, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableBorderDeleteColor, _consts.tableToolbarDeleteColor, _types.TableCssClassName.ROW_CONTROLS, _consts.tableToolbarSize, (0, _uiStyles.InsertMarker)(props, "\n bottom: -1px;\n left: -11px;\n "), _types.TableCssClassName.ROW_CONTROLS_INNER, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _consts.tableBorderRadiusSize, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.ROW_CONTROLS_BUTTON_WRAP, _types.TableCssClassName.CONTROLS_BUTTON, _editorSharedStyles.akEditorUnitZIndex, (0, _uiStyles.HeaderButton)(props, "\n border-bottom: 1px solid ".concat((0, _consts.tableBorderColor)(props), ";\n border-right: 0px;\n border-radius: 0;\n height: 100%;\n width: ").concat(_consts.tableToolbarSize, "px;\n\n .").concat(_types.TableCssClassName.CONTROLS_BUTTON_OVERLAY, " {\n position: absolute;\n width: 30px;\n height: 50%;\n right: 0;\n bottom: 0;\n }\n .").concat(_types.TableCssClassName.CONTROLS_BUTTON_OVERLAY, ":first-of-type {\n top: 0;\n }\n ")), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.ROW_CONTROLS, (0, _uiStyles.HeaderButtonHover)(), (0, _uiStyles.HeaderButtonDanger)(), _types.TableCssClassName.NUMBERED_COLUMN, _editorSharedStyles.akEditorTableToolbarSize - 1, _editorSharedStyles.akEditorTableToolbarSize, _editorSharedStyles.akEditorTableNumberColumnWidth + 1, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, (0, _consts.tableBorderColor)(props), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), (0, _consts.tableToolbarColor)(props), (0, _consts.tableTextColor)(props), (0, _consts.tableBorderColor)(props), (0, _consts.tableBorderColor)(props), _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.CORNER_CONTROLS, _types.TableCssClassName.ROW_CONTROLS, _types.TableCssClassName.NUMBERED_COLUMN, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableBorderSelectedColor, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _editorSharedStyles.akEditorUnitZIndex, (0, _tokens.token)('color.text.inverse', _colors.N0), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _consts.tableBorderSelectedColor, _consts.tableBorderSelectedColor, _consts.tableToolbarSelectedColor, _editorSharedStyles.akEditorUnitZIndex, (0, _tokens.token)('color.text.inverse', _colors.N0), _types.TableCssClassName.NUMBERED_COLUMN_BUTTON, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, (0, _tokens.token)('color.text.inverse', _colors.R500), _editorSharedStyles.akEditorUnitZIndex, _types.TableCssClassName.TABLE_NODE_WRAPPER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _editorSharedStyles.akEditorSmallZIndex, _types.TableCssClassName.SELECTED_CELL, _consts.tableBorderSelectedColor, _types.TableCssClassName.SELECTED_CELL, _consts.tableCellSelectedColor, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _consts.tableCellDeleteColor, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _styles.tableMarginTop - cornerControlHeight + 1, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _types.TableCssClassName.TABLE_LEFT_SHADOW, _editorSharedStyles.akEditorUnitZIndex, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _consts.tableToolbarSize, _types.TableCssClassName.TABLE_NODE_WRAPPER, _consts.tableInsertColumnButtonSize / 2, _consts.tableInsertColumnButtonSize / 2, _consts.tableScrollbarOffset, _consts.tableScrollbarOffset, _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.TABLE_NODE_WRAPPER, _styles2.scrollbarStyles, _types.TableCssClassName.RESIZE_CURSOR);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.tableStyles = tableStyles;
|
|
@@ -88,7 +88,7 @@ var transformSliceToFixHardBreakProblemOnCopyFromCell = function transformSliceT
|
|
|
88
88
|
exports.transformSliceToFixHardBreakProblemOnCopyFromCell = transformSliceToFixHardBreakProblemOnCopyFromCell;
|
|
89
89
|
|
|
90
90
|
var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpenTable(slice, schema) {
|
|
91
|
-
var _slice$content$
|
|
91
|
+
var _slice$content$firstC6;
|
|
92
92
|
|
|
93
93
|
// we're removing the table, tableRow and tableCell reducing the open depth by 3
|
|
94
94
|
var depthDecrement = 3; // Case 1: A slice entirely within a single CELL
|
|
@@ -96,13 +96,26 @@ var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpenTable(s
|
|
|
96
96
|
if ( // starts and ends inside of a cell
|
|
97
97
|
slice.openStart >= 4 && slice.openEnd >= 4 && // slice is a table node
|
|
98
98
|
slice.content.childCount === 1 && slice.content.firstChild.type === schema.nodes.table) {
|
|
99
|
-
|
|
99
|
+
var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _slice$content$firstC4, _slice$content$firstC5;
|
|
100
|
+
|
|
101
|
+
// prosemirror-view has a bug that it duplicates table entry when selecting multiple paragraphs in a table cell.
|
|
102
|
+
// https://github.com/ProseMirror/prosemirror/issues/1270
|
|
103
|
+
// The structure becomes
|
|
104
|
+
// table(genuine) > tableRow(genuine) > table(duplicated) > tableRow(duplicated) > tableCell/tableHeader(genuine) > contents(genuine)
|
|
105
|
+
// As we are removing wrapping table anyway, we keep duplicated table and tableRow for simplicity
|
|
106
|
+
var cleaned = slice;
|
|
107
|
+
|
|
108
|
+
if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : (_slice$content$firstC2 = _slice$content$firstC.content) === null || _slice$content$firstC2 === void 0 ? void 0 : (_slice$content$firstC3 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : (_slice$content$firstC4 = _slice$content$firstC3.content) === null || _slice$content$firstC4 === void 0 ? void 0 : (_slice$content$firstC5 = _slice$content$firstC4.firstChild) === null || _slice$content$firstC5 === void 0 ? void 0 : _slice$content$firstC5.type) === schema.nodes.table) {
|
|
109
|
+
cleaned = new _prosemirrorModel.Slice(slice.content.firstChild.content.firstChild.content, slice.openStart - 2, slice.openEnd - 2);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return new _prosemirrorModel.Slice((0, _slice.flatmap)(cleaned.content, unwrapContentFromTable), cleaned.openStart - depthDecrement, cleaned.openEnd - depthDecrement);
|
|
100
113
|
} // Case 2: A slice starting within a CELL and ending outside the table
|
|
101
114
|
|
|
102
115
|
|
|
103
116
|
if ( // starts inside of a cell but ends outside of the starting table
|
|
104
117
|
slice.openStart >= 4 && // slice starts from a table node (and spans across more than one node)
|
|
105
|
-
slice.content.childCount > 1 && ((_slice$content$
|
|
118
|
+
slice.content.childCount > 1 && ((_slice$content$firstC6 = slice.content.firstChild) === null || _slice$content$firstC6 === void 0 ? void 0 : _slice$content$firstC6.type) === schema.nodes.table) {
|
|
106
119
|
// repoint the slice's cutting depth so that cell content where the slice starts
|
|
107
120
|
// does not get lifted out of the cell on paste
|
|
108
121
|
return new _prosemirrorModel.Slice(slice.content, 1, slice.openEnd);
|
|
@@ -197,7 +197,7 @@ var buildRegex = function buildRegex(char) {
|
|
|
197
197
|
// Double X - https://regex101.com/r/pQUgjx/1/
|
|
198
198
|
|
|
199
199
|
var baseRegex = '^X(?=[^X\\s]).*?[^\\sX]X(?=[\\sOBJECT_REPLACEMENT_CHARACTER]COMBINATIONS|$)'.replace('OBJECT_REPLACEMENT_CHARACTER', _prosemirrorInputRules.leafNodeReplacementCharacter).replace('COMBINATIONS', combinations ? "|".concat(combinations) : '');
|
|
200
|
-
var replacedRegex =
|
|
200
|
+
var replacedRegex = String.prototype.hasOwnProperty('replaceAll') ? baseRegex.replaceAll('X', escapedChar) : baseRegex.replace(/X/g, escapedChar);
|
|
201
201
|
return new ReverseRegexExp(replacedRegex);
|
|
202
202
|
};
|
|
203
203
|
|
|
@@ -123,6 +123,13 @@ var InputQuery = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
123
123
|
break;
|
|
124
124
|
|
|
125
125
|
case 'Enter':
|
|
126
|
+
// ED-14758 - Under the W3C specification, any keycode sent under IME would return a keycode 229
|
|
127
|
+
// event.isComposing can't be used alone as this also included a virtual keyboard under a keyboardless device, therefore, it seems the best practice would be intercepting the event as below.
|
|
128
|
+
// Some suggested the other workaround maybe listen on`keypress` instead of `keydown`
|
|
129
|
+
if (event.isComposing && (event.which === 229 || event.keyCode === 229)) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
|
|
126
133
|
onItemSelect(event.shiftKey ? _typeAhead.SelectItemMode.SHIFT_ENTER : _typeAhead.SelectItemMode.ENTER);
|
|
127
134
|
break;
|
|
128
135
|
|
|
@@ -33,7 +33,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
33
33
|
|
|
34
34
|
var TableControlsPadding = 20;
|
|
35
35
|
exports.TableControlsPadding = TableControlsPadding;
|
|
36
|
-
var mainToolbarWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div >
|
|
36
|
+
var mainToolbarWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), (0, _constants.gridSize)(), (0, _constants.gridSize)(), (0, _tokens.token)('elevation.surface', 'white'), TableControlsPadding);
|
|
37
37
|
var stickyToolbarWrapperStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), (0, _constants.gridSize)(), _editorSharedStyles.akEditorGridLineZIndex + _editorSharedStyles.akEditorMenuZIndex, _editorSharedStyles.akEditorToolbarKeylineHeight, (0, _tokens.token)('color.border', _colors.N30));
|
|
38
38
|
|
|
39
39
|
var StickyToolbar = function StickyToolbar(props) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "167.0.
|
|
9
|
+
var version = "167.0.3";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
|
|
12
12
|
var nextMajorVersion = function nextMajorVersion() {
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Panel upozornění',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Přidat poznámku s varováním do barevného panelu',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Sbalit vpravo',
|
|
296
|
-
'fabric.editor.wrapRight': 'Sbalit vlevo'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Sbalit vlevo'
|
|
319
297
|
};
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Advarselspanel',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Tilføj en advarselsnote i et farvet panel',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Skub til venstre',
|
|
296
|
-
'fabric.editor.wrapRight': 'Skub til højre'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Skub til højre'
|
|
319
297
|
};
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Warn-Panel',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Hinweis zur Vorsicht in einem farbigen Panel einfügen',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Links umwickeln',
|
|
296
|
-
'fabric.editor.wrapRight': 'Rechts umwickeln'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Rechts umwickeln'
|
|
319
297
|
};
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Panel de advertencias',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Añadir una nota de precaución en un panel de color',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ajustar a la izquierda',
|
|
296
|
-
'fabric.editor.wrapRight': 'Ajustar a la derecha'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Ajustar a la derecha'
|
|
319
297
|
};
|
package/dist/es2019/i18n/et.js
CHANGED
|
@@ -164,27 +164,5 @@ export default {
|
|
|
164
164
|
'fabric.editor.warningPanel': 'Hoiatuse paneel',
|
|
165
165
|
'fabric.editor.warningPanel.description': 'Lisa värvilisse paneeli ettevaatlikusele viitav märkus',
|
|
166
166
|
'fabric.editor.wrapLeft': 'Aseta vasakule',
|
|
167
|
-
'fabric.editor.wrapRight': 'Aseta paremale'
|
|
168
|
-
'fabric.theme.blue': 'Blue',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
171
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
172
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
173
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
174
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
175
|
-
'fabric.theme.gray': 'Gray',
|
|
176
|
-
'fabric.theme.green': 'Green',
|
|
177
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
178
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
179
|
-
'fabric.theme.light-green': 'Light green',
|
|
180
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
181
|
-
'fabric.theme.light-red': 'Light red',
|
|
182
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
183
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
184
|
-
'fabric.theme.orange': 'Orange',
|
|
185
|
-
'fabric.theme.purple': 'Purple',
|
|
186
|
-
'fabric.theme.red': 'Red',
|
|
187
|
-
'fabric.theme.teal': 'Teal',
|
|
188
|
-
'fabric.theme.white': 'White',
|
|
189
|
-
'fabric.theme.yellow': 'Yellow'
|
|
167
|
+
'fabric.editor.wrapRight': 'Aseta paremale'
|
|
190
168
|
};
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': "Panneau d'avertissement",
|
|
294
294
|
'fabric.editor.warningPanel.description': "Ajouter une note d'avertissement dans un cadre coloré",
|
|
295
295
|
'fabric.editor.wrapLeft': 'Ajuster vers la gauche',
|
|
296
|
-
'fabric.editor.wrapRight': 'Ajuster vers la droite'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Ajuster vers la droite'
|
|
319
297
|
};
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -293,27 +293,5 @@ export default {
|
|
|
293
293
|
'fabric.editor.warningPanel': 'Figyelmeztető panel',
|
|
294
294
|
'fabric.editor.warningPanel.description': 'Figyelmeztető megjegyzés hozzáadása színes panelen',
|
|
295
295
|
'fabric.editor.wrapLeft': 'Balra igazítás',
|
|
296
|
-
'fabric.editor.wrapRight': 'Jobbra igazítás'
|
|
297
|
-
'fabric.theme.blue': 'Blue',
|
|
298
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
299
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
300
|
-
'fabric.theme.dark-purple': 'Dark purple',
|
|
301
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
302
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
303
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
304
|
-
'fabric.theme.gray': 'Gray',
|
|
305
|
-
'fabric.theme.green': 'Green',
|
|
306
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
307
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
308
|
-
'fabric.theme.light-green': 'Light green',
|
|
309
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
310
|
-
'fabric.theme.light-red': 'Light red',
|
|
311
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
312
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
313
|
-
'fabric.theme.orange': 'Orange',
|
|
314
|
-
'fabric.theme.purple': 'Purple',
|
|
315
|
-
'fabric.theme.red': 'Red',
|
|
316
|
-
'fabric.theme.teal': 'Teal',
|
|
317
|
-
'fabric.theme.white': 'White',
|
|
318
|
-
'fabric.theme.yellow': 'Yellow'
|
|
296
|
+
'fabric.editor.wrapRight': 'Jobbra igazítás'
|
|
319
297
|
};
|
package/dist/es2019/i18n/is.js
CHANGED
|
@@ -149,27 +149,5 @@ export default {
|
|
|
149
149
|
'fabric.editor.moreFormatting': 'Meira formatting',
|
|
150
150
|
'fabric.editor.bold': 'Djörf',
|
|
151
151
|
'fabric.editor.italic': 'Skáletrað',
|
|
152
|
-
'fabric.editor.selected': 'Valinn'
|
|
153
|
-
'fabric.theme.white': 'White',
|
|
154
|
-
'fabric.theme.light-blue': 'Light blue',
|
|
155
|
-
'fabric.theme.light-teal': 'Light teal',
|
|
156
|
-
'fabric.theme.light-green': 'Light green',
|
|
157
|
-
'fabric.theme.light-yellow': 'Light yellow',
|
|
158
|
-
'fabric.theme.light-red': 'Light red',
|
|
159
|
-
'fabric.theme.light-purple': 'Light purple',
|
|
160
|
-
'fabric.theme.light-gray': 'Light gray',
|
|
161
|
-
'fabric.theme.blue': 'Blue',
|
|
162
|
-
'fabric.theme.teal': 'Teal',
|
|
163
|
-
'fabric.theme.green': 'Green',
|
|
164
|
-
'fabric.theme.yellow': 'Yellow',
|
|
165
|
-
'fabric.theme.red': 'Red',
|
|
166
|
-
'fabric.theme.orange': 'Orange',
|
|
167
|
-
'fabric.theme.purple': 'Purple',
|
|
168
|
-
'fabric.theme.gray': 'Gray',
|
|
169
|
-
'fabric.theme.dark-blue': 'Dark blue',
|
|
170
|
-
'fabric.theme.dark-teal': 'Dark teal',
|
|
171
|
-
'fabric.theme.dark-green': 'Dark green',
|
|
172
|
-
'fabric.theme.dark-yellow': 'Dark yellow',
|
|
173
|
-
'fabric.theme.dark-red': 'Dark red',
|
|
174
|
-
'fabric.theme.dark-purple': 'Dark purple'
|
|
152
|
+
'fabric.editor.selected': 'Valinn'
|
|
175
153
|
};
|