@atlaskit/renderer 108.15.14 → 108.15.15

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.
Files changed (98) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/i18n/da.js +6 -1
  3. package/dist/cjs/i18n/de.js +6 -1
  4. package/dist/cjs/i18n/es.js +6 -1
  5. package/dist/cjs/i18n/fr.js +6 -1
  6. package/dist/cjs/i18n/hu.js +6 -1
  7. package/dist/cjs/i18n/it.js +6 -1
  8. package/dist/cjs/i18n/ko.js +6 -1
  9. package/dist/cjs/i18n/nb.js +6 -1
  10. package/dist/cjs/i18n/nl.js +6 -1
  11. package/dist/cjs/i18n/pl.js +6 -1
  12. package/dist/cjs/i18n/sv.js +6 -1
  13. package/dist/cjs/i18n/th.js +6 -1
  14. package/dist/cjs/i18n/tr.js +6 -1
  15. package/dist/cjs/i18n/uk.js +1 -1
  16. package/dist/cjs/i18n/vi.js +6 -1
  17. package/dist/cjs/i18n/zh.js +6 -1
  18. package/dist/cjs/i18n/zh_TW.js +6 -1
  19. package/dist/cjs/react/marks/textColor.js +64 -1
  20. package/dist/cjs/react/nodes/tableCell.js +175 -133
  21. package/dist/cjs/ui/Renderer/index.js +1 -1
  22. package/dist/es2019/i18n/da.js +6 -1
  23. package/dist/es2019/i18n/de.js +6 -1
  24. package/dist/es2019/i18n/es.js +6 -1
  25. package/dist/es2019/i18n/fr.js +6 -1
  26. package/dist/es2019/i18n/hu.js +6 -1
  27. package/dist/es2019/i18n/it.js +6 -1
  28. package/dist/es2019/i18n/ko.js +6 -1
  29. package/dist/es2019/i18n/nb.js +6 -1
  30. package/dist/es2019/i18n/nl.js +6 -1
  31. package/dist/es2019/i18n/pl.js +6 -1
  32. package/dist/es2019/i18n/sv.js +6 -1
  33. package/dist/es2019/i18n/th.js +6 -1
  34. package/dist/es2019/i18n/tr.js +6 -1
  35. package/dist/es2019/i18n/uk.js +1 -1
  36. package/dist/es2019/i18n/vi.js +6 -1
  37. package/dist/es2019/i18n/zh.js +6 -1
  38. package/dist/es2019/i18n/zh_TW.js +6 -1
  39. package/dist/es2019/react/marks/textColor.js +65 -1
  40. package/dist/es2019/react/nodes/tableCell.js +180 -106
  41. package/dist/es2019/ui/Renderer/index.js +1 -1
  42. package/dist/esm/i18n/da.js +6 -1
  43. package/dist/esm/i18n/de.js +6 -1
  44. package/dist/esm/i18n/es.js +6 -1
  45. package/dist/esm/i18n/fr.js +6 -1
  46. package/dist/esm/i18n/hu.js +6 -1
  47. package/dist/esm/i18n/it.js +6 -1
  48. package/dist/esm/i18n/ko.js +6 -1
  49. package/dist/esm/i18n/nb.js +6 -1
  50. package/dist/esm/i18n/nl.js +6 -1
  51. package/dist/esm/i18n/pl.js +6 -1
  52. package/dist/esm/i18n/sv.js +6 -1
  53. package/dist/esm/i18n/th.js +6 -1
  54. package/dist/esm/i18n/tr.js +6 -1
  55. package/dist/esm/i18n/uk.js +1 -1
  56. package/dist/esm/i18n/vi.js +6 -1
  57. package/dist/esm/i18n/zh.js +6 -1
  58. package/dist/esm/i18n/zh_TW.js +6 -1
  59. package/dist/esm/react/marks/textColor.js +64 -1
  60. package/dist/esm/react/nodes/tableCell.js +177 -135
  61. package/dist/esm/ui/Renderer/index.js +1 -1
  62. package/dist/types/i18n/da.d.ts +5 -0
  63. package/dist/types/i18n/de.d.ts +5 -0
  64. package/dist/types/i18n/es.d.ts +5 -0
  65. package/dist/types/i18n/fr.d.ts +5 -0
  66. package/dist/types/i18n/hu.d.ts +5 -0
  67. package/dist/types/i18n/it.d.ts +5 -0
  68. package/dist/types/i18n/ko.d.ts +5 -0
  69. package/dist/types/i18n/nb.d.ts +5 -0
  70. package/dist/types/i18n/nl.d.ts +5 -0
  71. package/dist/types/i18n/pl.d.ts +5 -0
  72. package/dist/types/i18n/sv.d.ts +5 -0
  73. package/dist/types/i18n/th.d.ts +5 -0
  74. package/dist/types/i18n/tr.d.ts +5 -0
  75. package/dist/types/i18n/vi.d.ts +5 -0
  76. package/dist/types/i18n/zh.d.ts +5 -0
  77. package/dist/types/i18n/zh_TW.d.ts +5 -0
  78. package/dist/types/react/marks/textColor.d.ts +2 -2
  79. package/dist/types/react/nodes/tableCell.d.ts +5 -62
  80. package/dist/types-ts4.5/i18n/da.d.ts +5 -0
  81. package/dist/types-ts4.5/i18n/de.d.ts +5 -0
  82. package/dist/types-ts4.5/i18n/es.d.ts +5 -0
  83. package/dist/types-ts4.5/i18n/fr.d.ts +5 -0
  84. package/dist/types-ts4.5/i18n/hu.d.ts +5 -0
  85. package/dist/types-ts4.5/i18n/it.d.ts +5 -0
  86. package/dist/types-ts4.5/i18n/ko.d.ts +5 -0
  87. package/dist/types-ts4.5/i18n/nb.d.ts +5 -0
  88. package/dist/types-ts4.5/i18n/nl.d.ts +5 -0
  89. package/dist/types-ts4.5/i18n/pl.d.ts +5 -0
  90. package/dist/types-ts4.5/i18n/sv.d.ts +5 -0
  91. package/dist/types-ts4.5/i18n/th.d.ts +5 -0
  92. package/dist/types-ts4.5/i18n/tr.d.ts +5 -0
  93. package/dist/types-ts4.5/i18n/vi.d.ts +5 -0
  94. package/dist/types-ts4.5/i18n/zh.d.ts +5 -0
  95. package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -0
  96. package/dist/types-ts4.5/react/marks/textColor.d.ts +2 -2
  97. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +5 -62
  98. package/package.json +13 -7
@@ -1,11 +1,75 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
+ import { isHex, isRgb, rgbToHex } from '@atlaskit/adf-schema';
3
4
  import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
5
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
+ import { useThemeObserver } from '@atlaskit/tokens';
7
+ /**
8
+ * This function is duplicated in
9
+ * - @atlaskit/adf-schema
10
+ * - ../nodes/tableCell.tsx
11
+ * it takes a color string, and if the color string is a hex or rgb value
12
+ * it will invert the color and return the inverted color.
13
+ */
14
+ function invertCustomColor(customColor) {
15
+ let hex;
16
+ if (isHex(customColor)) {
17
+ hex = customColor;
18
+ } else if (isRgb(customColor)) {
19
+ hex = rgbToHex(customColor);
20
+ } else {
21
+ return customColor;
22
+ }
23
+ const hexWithoutHash = hex.replace('#', '');
24
+
25
+ // This inverts the hex color by
26
+ // 1. converting the hex code to a number
27
+ // 2. XORing it with 0xffffff
28
+ // 3. Converting the result back to hex
29
+ // 4. Removing the leading 1 from the result
30
+ return `#${(Number(`0x1${hexWithoutHash}`) ^ 0xffffff).toString(16).substring(1).toUpperCase()}`;
31
+ }
4
32
  export default function TextColor(props) {
33
+ const {
34
+ colorMode
35
+ } = useThemeObserver();
5
36
  // Note -- while there is no way to create custom colors using default tooling
6
37
  // the editor does supported ad hoc color values -- and there may be content
7
38
  // which has been migrated or created via apis which use such values.
8
- const paletteColorValue = hexToEditorTextPaletteColor(props.color) || props.color;
39
+ let paletteColorValue;
40
+ if (getBooleanFF('platform.editor.dm-invert-text-color_cvho2')) {
41
+ /**
42
+ * The Editor persists custom text colors when content has been migrated from the old editor, or created via
43
+ * apis.
44
+ *
45
+ * This behaviour predates the introduction of dark mode.
46
+ *
47
+ * Without the inversion logic below, text with custom colors, can be hard to read when the user loads the page in dark mode.
48
+ *
49
+ * This introduces inversion of the presentation of the custom text colors when the user is in dark mode.
50
+ *
51
+ * This can be done without additional changes to account for users copying and pasting content inside the Editor, because of
52
+ * how we detect text colors copied from external editor sources. Where we load the background color from a
53
+ * seperate attribute (data-text-custom-color), instead of the inline style.
54
+ *
55
+ * See the following document for more details on this behaviour
56
+ * https://hello.atlassian.net/wiki/spaces/CCECO/pages/2908658046/Unsupported+custom+text+colors+in+dark+theme+Editor+Job+Story
57
+ */
58
+ const tokenColor = hexToEditorTextPaletteColor(props.color);
59
+ if (tokenColor) {
60
+ paletteColorValue = hexToEditorTextPaletteColor(props.color) || props.color;
61
+ } else {
62
+ if (colorMode === 'dark') {
63
+ // if we have a custom color, we need to check if we are in dark mode
64
+ paletteColorValue = invertCustomColor(props.color);
65
+ } else {
66
+ // if we are in light mode, we can just set the color
67
+ paletteColorValue = props.color;
68
+ }
69
+ }
70
+ } else {
71
+ paletteColorValue = hexToEditorTextPaletteColor(props.color) || props.color;
72
+ }
9
73
  const style = useMemo(() => ({
10
74
  ['--custom-palette-color']: paletteColorValue
11
75
  }), [paletteColorValue]);
@@ -1,15 +1,15 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
1
  import _extends from "@babel/runtime/helpers/extends";
3
2
  import React from 'react';
4
- import { tableBackgroundColorPalette } from '@atlaskit/adf-schema';
5
- import { compose } from '@atlaskit/editor-common/utils';
3
+ import { isHex, isRgb, rgbToHex, tableBackgroundColorPalette } from '@atlaskit/adf-schema';
4
+ import { useThemeObserver } from '@atlaskit/tokens';
6
5
  import { SortOrder } from '@atlaskit/editor-common/types';
7
6
  import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
7
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
8
  import SortingIcon from '../../ui/SortingIcon';
9
9
  import { MODE, PLATFORM } from '../../analytics/events';
10
10
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
11
11
  import { RendererCssClassName } from '../../consts';
12
- import { injectIntl } from 'react-intl-next';
12
+ import { useIntl } from 'react-intl-next';
13
13
  import { tableCellMessages } from '../../messages';
14
14
  const IgnoreSorting = ['LABEL', 'INPUT'];
15
15
  const nextStatusOrder = currentSortOrder => {
@@ -64,13 +64,77 @@ const getDataAttributes = (colwidth, background) => {
64
64
  }
65
65
  return attrs;
66
66
  };
67
- const getStyle = (background, colGroupWidth, offsetTop) => {
67
+
68
+ /**
69
+ * This function is duplicated in
70
+ * - @atlaskit/adf-schema
71
+ * - ../marks/textColor.tsx
72
+ * it takes a color string, and if the color string is a hex or rgb value
73
+ * it will invert the color and return the inverted color.
74
+ */
75
+ function invertCustomColor(customColor) {
76
+ let hex;
77
+ if (isHex(customColor)) {
78
+ hex = customColor;
79
+ } else if (isRgb(customColor)) {
80
+ hex = rgbToHex(customColor);
81
+ } else {
82
+ return customColor;
83
+ }
84
+ const hexWithoutHash = hex.replace('#', '');
85
+
86
+ // This inverts the hex color by
87
+ // 1. converting the hex code to a number
88
+ // 2. XORing it with 0xffffff
89
+ // 3. Converting the result back to hex
90
+ // 4. Removing the leading 1 from the result
91
+ return `#${(Number(`0x1${hexWithoutHash}`) ^ 0xffffff).toString(16).substring(1).toUpperCase()}`;
92
+ }
93
+ const getStyle = ({
94
+ background,
95
+ colGroupWidth,
96
+ offsetTop,
97
+ colorMode
98
+ }) => {
68
99
  const style = {};
69
100
  if (background &&
70
101
  // ignore setting inline styles if ds neutral token is detected
71
102
  !background.includes('--ds-background-neutral')) {
72
- const tokenColor = hexToEditorBackgroundPaletteRawValue(background) || background;
73
- style.backgroundColor = tokenColor;
103
+ if (getBooleanFF('platform.editor.dm-invert-tablecell-bgcolor_9fz6s')) {
104
+ /**
105
+ * The Editor supports users pasting content from external sources with custom table cell backgrounds and having those
106
+ * backgrounds persisted.
107
+ *
108
+ * This feature predates the introduction of dark mode.
109
+ *
110
+ * Without the inversion logic below, tokenised content (ie. text), can be hard to read when the user loads the page in dark mode.
111
+ *
112
+ * This introduces inversion of the presentation of the custom background color when the user is in dark mode.
113
+ *
114
+ * This can be done without additional changes to account for users copying and pasting content inside the Editor, because of
115
+ * how we detect table cell background colors copied from external editor sources. Where we load the background color from a
116
+ * seperate attribute (data-cell-background), instead of the inline style.
117
+ *
118
+ * See the following document for more details on this behaviour
119
+ * https://hello.atlassian.net/wiki/spaces/CCECO/pages/2892247168/Unsupported+custom+table+cell+background+colors+in+dark+theme+Editor+Job+Story
120
+ */
121
+ const tokenColor = hexToEditorBackgroundPaletteRawValue(background);
122
+ if (tokenColor) {
123
+ style.backgroundColor = tokenColor;
124
+ } else {
125
+ // if we have a custom color, we need to check if we are in dark mode
126
+ if (colorMode === 'dark') {
127
+ // if we are in dark mode, we need to invert the color
128
+ style.backgroundColor = invertCustomColor(background);
129
+ } else {
130
+ // if we are in light mode, we can just set the color
131
+ style.backgroundColor = background;
132
+ }
133
+ }
134
+ } else {
135
+ const tokenColor = hexToEditorBackgroundPaletteRawValue(background) || background;
136
+ style.backgroundColor = tokenColor;
137
+ }
74
138
  }
75
139
  if (colGroupWidth) {
76
140
  style.width = colGroupWidth;
@@ -81,113 +145,123 @@ const getStyle = (background, colGroupWidth, offsetTop) => {
81
145
  }
82
146
  return style;
83
147
  };
84
- const withCellProps = WrapperComponent => {
85
- return class WithCellProps extends React.Component {
86
- render() {
87
- const {
88
- children,
89
- className,
90
- onClick,
91
- colwidth,
92
- colGroupWidth,
93
- rowspan,
94
- colspan,
148
+ const getWithCellProps = WrapperComponent => {
149
+ return function WithCellProps(props) {
150
+ const {
151
+ colorMode
152
+ } = useThemeObserver();
153
+ const {
154
+ children,
155
+ className,
156
+ onClick,
157
+ colwidth,
158
+ colGroupWidth,
159
+ rowspan,
160
+ colspan,
161
+ background,
162
+ offsetTop,
163
+ ariaSort
164
+ } = props;
165
+
166
+ // This is used to set the background color of the cell
167
+ // to a dark mode color in mobile dark mode
168
+ const colorName = background ? tableBackgroundColorPalette.get(background) : '';
169
+ return /*#__PURE__*/React.createElement(WrapperComponent, _extends({
170
+ rowSpan: rowspan,
171
+ colSpan: colspan
172
+ // Note: When content from a renderer is pasted into an editor
173
+ // the background color is not taken from the inline style.
174
+ // Instead it is taken from the data-cell-background attribute
175
+ // (added via getDataAttributes below).
176
+ ,
177
+ style: getStyle({
95
178
  background,
179
+ colGroupWidth,
96
180
  offsetTop,
97
- ariaSort
98
- } = this.props;
99
- const colorName = background ? tableBackgroundColorPalette.get(background) : '';
100
- return /*#__PURE__*/React.createElement(WrapperComponent, _extends({
101
- rowSpan: rowspan,
102
- colSpan: colspan,
103
- style: getStyle(background, colGroupWidth, offsetTop),
104
- colorname: colorName,
105
- onClick: onClick,
106
- className: className
107
- }, getDataAttributes(colwidth, background), {
108
- "aria-sort": ariaSort
109
- }), children);
110
- }
181
+ colorMode
182
+ }),
183
+ colorname: colorName,
184
+ onClick: onClick,
185
+ className: className
186
+ }, getDataAttributes(colwidth, background), {
187
+ "aria-sort": ariaSort
188
+ }), children);
111
189
  };
112
190
  };
191
+ const TH = getWithCellProps('th');
113
192
  export const withSortableColumn = WrapperComponent => {
114
- class WithSortableColumn extends React.Component {
115
- constructor(props) {
116
- super(props);
117
- _defineProperty(this, "onKeyPress", event => {
118
- const keys = [' ', 'Enter', 'Spacebar'];
119
- const {
120
- tagName
121
- } = event.target;
122
- // trigger sorting if space or enter are clicked but not when in an input field (template variables)
123
- if (keys.includes(event.key) && !IgnoreSorting.includes(tagName)) {
124
- event.preventDefault();
125
- this.sort();
126
- }
127
- });
128
- _defineProperty(this, "sort", () => {
129
- const {
130
- fireAnalyticsEvent,
131
- onSorting,
132
- columnIndex,
133
- sortOrdered
134
- } = this.props;
135
- if (onSorting && columnIndex != null) {
136
- const sortOrder = nextStatusOrder(sortOrdered);
137
- onSorting(columnIndex, sortOrder);
138
- fireAnalyticsEvent && fireAnalyticsEvent({
139
- action: ACTION.SORT_COLUMN,
140
- actionSubject: ACTION_SUBJECT.TABLE,
141
- attributes: {
142
- platform: PLATFORM.WEB,
143
- mode: MODE.RENDERER,
144
- columnIndex,
145
- sortOrder
146
- },
147
- eventType: EVENT_TYPE.TRACK
148
- });
149
- } else {
150
- fireAnalyticsEvent && fireAnalyticsEvent({
151
- action: ACTION.SORT_COLUMN_NOT_ALLOWED,
152
- actionSubject: ACTION_SUBJECT.TABLE,
153
- attributes: {
154
- platform: PLATFORM.WEB,
155
- mode: MODE.RENDERER
156
- },
157
- eventType: EVENT_TYPE.TRACK
158
- });
159
- }
160
- });
193
+ return function THWithSortableColumn(props) {
194
+ const intl = useIntl();
195
+ const {
196
+ allowColumnSorting,
197
+ onSorting,
198
+ children,
199
+ sortOrdered,
200
+ isHeaderRow
201
+ } = props;
202
+ const sortOrderedClassName = sortOrdered === SortOrder.NO_ORDER ? RendererCssClassName.SORTABLE_COLUMN_NO_ORDER : '';
203
+ if (!allowColumnSorting || !isHeaderRow) {
204
+ return /*#__PURE__*/React.createElement(WrapperComponent, props);
205
+ }
206
+ return /*#__PURE__*/React.createElement(WrapperComponent, _extends({}, props, {
207
+ className: RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
208
+ ariaSort: getSortOrderLabel(intl, sortOrdered)
209
+ }), /*#__PURE__*/React.createElement("div", {
210
+ className: RendererCssClassName.SORTABLE_COLUMN
211
+ }, children, /*#__PURE__*/React.createElement("figure", {
212
+ className: `${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} ${sortOrderedClassName}`
213
+ }, /*#__PURE__*/React.createElement(SortingIcon, {
214
+ isSortingAllowed: !!onSorting,
215
+ sortOrdered: sortOrdered,
216
+ onClick: sort,
217
+ onKeyDown: onKeyPress
218
+ }))));
219
+ function onKeyPress(event) {
220
+ const keys = [' ', 'Enter', 'Spacebar'];
221
+ const {
222
+ tagName
223
+ } = event.target;
224
+ // trigger sorting if space or enter are clicked but not when in an input field (template variables)
225
+ if (keys.includes(event.key) && !IgnoreSorting.includes(tagName)) {
226
+ event.preventDefault();
227
+ sort();
228
+ }
161
229
  }
162
- render() {
230
+ function sort() {
163
231
  const {
164
- allowColumnSorting,
232
+ fireAnalyticsEvent,
165
233
  onSorting,
166
- children,
167
- sortOrdered,
168
- isHeaderRow,
169
- intl
170
- } = this.props;
171
- const sortOrderedClassName = sortOrdered === SortOrder.NO_ORDER ? RendererCssClassName.SORTABLE_COLUMN_NO_ORDER : '';
172
- if (!allowColumnSorting || !isHeaderRow) {
173
- return /*#__PURE__*/React.createElement(WrapperComponent, this.props);
234
+ columnIndex,
235
+ sortOrdered
236
+ } = props;
237
+ if (onSorting && columnIndex != null) {
238
+ const sortOrder = nextStatusOrder(sortOrdered);
239
+ onSorting(columnIndex, sortOrder);
240
+ fireAnalyticsEvent && fireAnalyticsEvent({
241
+ action: ACTION.SORT_COLUMN,
242
+ actionSubject: ACTION_SUBJECT.TABLE,
243
+ attributes: {
244
+ platform: PLATFORM.WEB,
245
+ mode: MODE.RENDERER,
246
+ columnIndex,
247
+ sortOrder
248
+ },
249
+ eventType: EVENT_TYPE.TRACK
250
+ });
251
+ } else {
252
+ fireAnalyticsEvent && fireAnalyticsEvent({
253
+ action: ACTION.SORT_COLUMN_NOT_ALLOWED,
254
+ actionSubject: ACTION_SUBJECT.TABLE,
255
+ attributes: {
256
+ platform: PLATFORM.WEB,
257
+ mode: MODE.RENDERER
258
+ },
259
+ eventType: EVENT_TYPE.TRACK
260
+ });
174
261
  }
175
- return /*#__PURE__*/React.createElement(WrapperComponent, _extends({}, this.props, {
176
- className: RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
177
- ariaSort: getSortOrderLabel(intl, sortOrdered)
178
- }), /*#__PURE__*/React.createElement("div", {
179
- className: RendererCssClassName.SORTABLE_COLUMN
180
- }, children, /*#__PURE__*/React.createElement("figure", {
181
- className: `${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} ${sortOrderedClassName}`
182
- }, /*#__PURE__*/React.createElement(SortingIcon, {
183
- isSortingAllowed: !!onSorting,
184
- sortOrdered: sortOrdered,
185
- onClick: this.sort,
186
- onKeyDown: this.onKeyPress
187
- }))));
188
262
  }
189
- }
190
- return injectIntl(WithSortableColumn);
263
+ };
191
264
  };
192
- export const TableHeader = compose(withSortableColumn, withCellProps)('th');
193
- export const TableCell = withCellProps('td');
265
+ export const TableHeader = withSortableColumn(TH);
266
+ const TD = getWithCellProps('td');
267
+ export const TableCell = TD;
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
35
35
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
36
36
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
37
37
  const packageName = "@atlaskit/renderer";
38
- const packageVersion = "108.15.14";
38
+ const packageVersion = "108.15.15";
39
39
  export class Renderer extends PureComponent {
40
40
  constructor(props) {
41
41
  super(props);
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopiering mislykkedes',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ En tabel med flettede celler kan ikke sorteres',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Sortér kolonnen fra A til Å',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'ingen'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'ingen',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Stigende sortering anvendt',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sortér kolonnen',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Faldende sortering anvendt',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Du kan ikke sortere en tabel med flettede celler',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Ingen sortering anvendt på kolonnen'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Tabellen mit zusammengeführten Zellen können nicht sortiert werden.',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Spalte von A nach Z sortieren',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Keine'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Keine',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Aufsteigend sortiert',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Spalte sortieren',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Absteigend sortiert',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Tabellen mit zusammengeführten Zellen können nicht sortiert werden.',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Keine Sortierung auf die Spalte angewendet'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Copia fallida',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ No puedes ordenar una tabla con celdas combinadas',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Ordenar columna de la A a la Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'ninguno'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'ninguno',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Se ha aplicado el orden ascendente',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Ordenar la columna',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Se ha aplicado el orden descendente',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'No puedes ordenar una tabla con celdas combinadas',
25
+ 'fabric.editor.tableHeader.sorting.no': 'No hay ningún orden aplicado a la columna'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Copie impossible',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Impossible de trier un tableau comportant des cellules fusionnées',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Trier la colonne de A à Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Néant'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Néant',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Tri par ordre croissant appliqué',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Trier la colonne',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Tri par ordre décroissant appliqué',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Impossible de trier un tableau comportant des cellules fusionnées',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Aucun tri appliqué à la colonne'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'A másolás nem sikerült',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Nem rendezhetsz egyesített cellákat tartalmazó táblázatot',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Oszlop rendezése: A → Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Nincs'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Nincs',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Növekvő sorrendbe állítva',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Oszlop rendezése',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Csökkenő sorrendbe állítva',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Nem rendezhetsz egyesített cellákat tartalmazó táblázatot',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Az oszlop nincs rendezve'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Copia non riuscita',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Non puoi ordinare una tabella con celle unite',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Ordina colonna da A a Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'nessuno'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'nessuno',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Ordinamento crescente applicato',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Ordina la colonna',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Ordinamento decrescente applicato',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Non puoi ordinare una tabella con celle unite',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Nessun ordinamento applicato alla colonna'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': '복사 실패',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ 병합된 셀이 있는 표를 정렬할 수 없습니다',
19
19
  'fabric.editor.headingLink.noOrderLabel': '오름차순으로 열 정렬',
20
- 'fabric.editor.headingLink.noneSortingLabel': '없음'
20
+ 'fabric.editor.headingLink.noneSortingLabel': '없음',
21
+ 'fabric.editor.tableHeader.sorting.asc': '오름차순 정렬 적용',
22
+ 'fabric.editor.tableHeader.sorting.default': '열 정렬',
23
+ 'fabric.editor.tableHeader.sorting.desc': '내림차순 정렬 적용',
24
+ 'fabric.editor.tableHeader.sorting.invalid': '병합된 셀이 있는 표를 정렬할 수 없습니다',
25
+ 'fabric.editor.tableHeader.sorting.no': '열에 적용한 정렬이 없습니다'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopiering mislyktes',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Du kan ikke sortere en tabell med sammenslåtte celler',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Sorter kolonne A til Å',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'ingen'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'ingen',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Stigende sortering brukt',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sorter kolonnen',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Synkende sortering brukt',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Du kan ikke sortere en tabell med sammenslåtte celler',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Ingen sortering brukt for kolonnen'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopiëren mislukt',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Je kan een tabel met samengevoegde cellen niet rangschikken',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Rangschik kolom van A tot Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Geen'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Geen',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Oplopende sortering toegepast',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sorteer de kolom',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Aflopende sortering toegepast',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Je kunt een tabel met samengevoegde cellen niet rangschikken',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Geen sortering toegepast op de kolom'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopiowanie nie powiodło się',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Nie można sortować tabeli ze scalonymi komórkami',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Sortuj kolumnę od A do Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Brak'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Brak',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Posortowano rosnąco',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sortuj kolumnę',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Posortowano malejąco',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Nie można sortować tabeli ze scalonymi komórkami',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Do kolumny nie zastosowano żadnego sortowania'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopiering misslyckades',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Du kan inte sortera en panelvy med sammanslagna celler',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Sortera kolumn A till Ö',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'Ingen'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'Ingen',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Stigande sortering används',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sortera kolumnen',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Fallande sortering används',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Du kan inte sortera en tabell med sammanslagna celler',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Ingen sortering används på kolumnen'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'การคัดลอกไม่สำเร็จ',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ คุณไม่สามารถจัดเรียงตารางด้วยช่องข้อมูลที่ถูกรวมได้',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'เรียงจากคอลัมน์ A ไป Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'ไม่มี'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'ไม่มี',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'ใช้การเรียงลำดับจากน้อยไปมาก',
22
+ 'fabric.editor.tableHeader.sorting.default': 'จัดเรียงคอลัมน์',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'ใช้การเรียงลำดับจากมากไปน้อย',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'คุณไม่สามารถจัดเรียงตารางด้วยช่องข้อมูลที่ถูกรวมได้',
25
+ 'fabric.editor.tableHeader.sorting.no': 'ไม่มีการใช้การจัดเรียงกับคอลัมน์'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Kopyalama işlemi başarısız oldu',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Birleştirilmiş hücre içeren bir tabloyu sıralayamazsınız',
19
19
  'fabric.editor.headingLink.noOrderLabel': "Sütunu A'dan Z'ye sırala",
20
- 'fabric.editor.headingLink.noneSortingLabel': 'yok'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'yok',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Artan biçimde sıralama uygulandı',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sütunu sırala',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Azalan biçimde sıralama uygulandı',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Birleştirilmiş hücre içeren bir tabloyu sıralayamazsınız',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Sütuna sıralama uygulanmadı'
21
26
  };
@@ -22,5 +22,5 @@ export default {
22
22
  'fabric.editor.tableHeader.sorting.default': 'Сортувати стовпець',
23
23
  'fabric.editor.tableHeader.sorting.desc': 'Застосовано сортування за спаданням',
24
24
  'fabric.editor.tableHeader.sorting.invalid': 'Не можна сортувати таблицю, у якій є об’єднані клітинки',
25
- 'fabric.editor.tableHeader.sorting.no': 'До стовпця не застосовано сортування'
25
+ 'fabric.editor.tableHeader.sorting.no': 'Стовпець не сортувався'
26
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': 'Sao chép không thành công',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ Bạn không thể sắp xếp bảng có các ô đã hợp nhất',
19
19
  'fabric.editor.headingLink.noOrderLabel': 'Sắp xếp cột theo thứ tự từ A đến Z',
20
- 'fabric.editor.headingLink.noneSortingLabel': 'không có'
20
+ 'fabric.editor.headingLink.noneSortingLabel': 'không có',
21
+ 'fabric.editor.tableHeader.sorting.asc': 'Đã áp dụng kiểu sắp xếp tăng dần',
22
+ 'fabric.editor.tableHeader.sorting.default': 'Sắp xếp cột',
23
+ 'fabric.editor.tableHeader.sorting.desc': 'Đã áp dụng kiểu sắp xếp giảm dần',
24
+ 'fabric.editor.tableHeader.sorting.invalid': 'Bạn không thể sắp xếp bảng có các ô đã hợp nhất',
25
+ 'fabric.editor.tableHeader.sorting.no': 'Không có kiểu sắp xếp nào được áp dụng cho cột'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': '复制失败',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ 无法对包含合并单元格的表格进行排序',
19
19
  'fabric.editor.headingLink.noOrderLabel': '按照 A 到 Z 进行列排序',
20
- 'fabric.editor.headingLink.noneSortingLabel': '无'
20
+ 'fabric.editor.headingLink.noneSortingLabel': '无',
21
+ 'fabric.editor.tableHeader.sorting.asc': '已应用升序排序',
22
+ 'fabric.editor.tableHeader.sorting.default': '对列进行排序',
23
+ 'fabric.editor.tableHeader.sorting.desc': '已应用降序排序',
24
+ 'fabric.editor.tableHeader.sorting.invalid': '无法对包含合并单元格的表格进行排序',
25
+ 'fabric.editor.tableHeader.sorting.no': '未对该列应用任何排序'
21
26
  };
@@ -17,5 +17,10 @@ export default {
17
17
  'fabric.editor.headingLink.failedToCopy': '複製失敗',
18
18
  'fabric.editor.headingLink.invalidLabel': '⚠️ 您無法排序包含合併儲存格的表格',
19
19
  'fabric.editor.headingLink.noOrderLabel': '從 A 欄排序到 Z 欄',
20
- 'fabric.editor.headingLink.noneSortingLabel': '無'
20
+ 'fabric.editor.headingLink.noneSortingLabel': '無',
21
+ 'fabric.editor.tableHeader.sorting.asc': '已套用遞增排序',
22
+ 'fabric.editor.tableHeader.sorting.default': '排序直欄',
23
+ 'fabric.editor.tableHeader.sorting.desc': '已套用遞減排序',
24
+ 'fabric.editor.tableHeader.sorting.invalid': '您無法使用合併的儲存格來排序表格',
25
+ 'fabric.editor.tableHeader.sorting.no': '沒有套用至直欄的排序'
21
26
  };