@ni/nimble-components 20.1.17 → 20.1.19
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/dist/all-components-bundle.js +436 -76
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1033 -954
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/rich-text-editor/index.d.ts +97 -6
- package/dist/esm/rich-text-editor/index.js +198 -30
- package/dist/esm/rich-text-editor/index.js.map +1 -1
- package/dist/esm/rich-text-editor/styles.js +74 -16
- package/dist/esm/rich-text-editor/styles.js.map +1 -1
- package/dist/esm/rich-text-editor/template.js +13 -1
- package/dist/esm/rich-text-editor/template.js.map +1 -1
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.d.ts +7 -20
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.js +38 -22
- package/dist/esm/rich-text-editor/testing/rich-text-editor.pageobject.js.map +1 -1
- package/dist/esm/src/rich-text-editor/index.d.ts +97 -6
- package/dist/esm/src/rich-text-editor/testing/rich-text-editor.pageobject.d.ts +7 -20
- package/dist/esm/src/table-column/number-text/index.d.ts +1 -1
- package/dist/esm/table-column/number-text/index.d.ts +1 -1
- package/dist/esm/table-column/number-text/index.js +1 -1
- package/dist/esm/table-column/number-text/models/{table-column-number-text-validitor.js → table-column-number-text-validator.js} +1 -1
- package/dist/esm/table-column/number-text/models/{table-column-number-text-validitor.js.map → table-column-number-text-validator.js.map} +1 -1
- package/package.json +12 -11
- /package/dist/esm/src/table-column/number-text/models/{table-column-number-text-validitor.d.ts → table-column-number-text-validator.d.ts} +0 -0
- /package/dist/esm/table-column/number-text/models/{table-column-number-text-validitor.d.ts → table-column-number-text-validator.d.ts} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
1
|
+
import { ARIAGlobalStatesAndProperties, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
2
3
|
import type { ToggleButton } from '../toggle-button';
|
|
4
|
+
import type { ErrorPattern } from '../patterns/error/types';
|
|
3
5
|
declare global {
|
|
4
6
|
interface HTMLElementTagNameMap {
|
|
5
7
|
'nimble-rich-text-editor': RichTextEditor;
|
|
@@ -8,7 +10,54 @@ declare global {
|
|
|
8
10
|
/**
|
|
9
11
|
* A nimble styled rich text editor
|
|
10
12
|
*/
|
|
11
|
-
export declare class RichTextEditor extends FoundationElement {
|
|
13
|
+
export declare class RichTextEditor extends FoundationElement implements ErrorPattern {
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
editor: HTMLDivElement;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
tiptapEditor: Editor;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to disable user from editing and interacting with toolbar buttons
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
* HTML Attribute: disabled
|
|
27
|
+
*/
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to hide the footer of the rich text editor
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
* HTML Attribute: footer-hidden
|
|
34
|
+
*/
|
|
35
|
+
footerHidden: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to display the error state.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
* HTML Attribute: error-visible
|
|
41
|
+
*/
|
|
42
|
+
errorVisible: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* A message explaining why the value is invalid.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
* HTML Attribute: error-text
|
|
48
|
+
*/
|
|
49
|
+
errorText?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* HTML Attribute: placeholder
|
|
53
|
+
*/
|
|
54
|
+
placeholder?: string;
|
|
55
|
+
/**
|
|
56
|
+
* True if the editor is empty or contains only whitespace, false otherwise.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
get empty(): boolean;
|
|
12
61
|
/**
|
|
13
62
|
* @internal
|
|
14
63
|
*/
|
|
@@ -25,17 +74,21 @@ export declare class RichTextEditor extends FoundationElement {
|
|
|
25
74
|
* @internal
|
|
26
75
|
*/
|
|
27
76
|
numberedListButton: ToggleButton;
|
|
77
|
+
/**
|
|
78
|
+
* The width of the vertical scrollbar, if displayed.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
scrollbarWidth: number;
|
|
28
82
|
/**
|
|
29
83
|
* @internal
|
|
30
84
|
*/
|
|
31
85
|
editorContainer: HTMLDivElement;
|
|
32
|
-
private
|
|
33
|
-
private
|
|
86
|
+
private resizeObserver?;
|
|
87
|
+
private updateScrollbarWidthQueued;
|
|
34
88
|
private readonly markdownParser;
|
|
35
89
|
private readonly markdownSerializer;
|
|
36
90
|
private readonly domSerializer;
|
|
37
91
|
private readonly xmlSerializer;
|
|
38
|
-
constructor();
|
|
39
92
|
/**
|
|
40
93
|
* @internal
|
|
41
94
|
*/
|
|
@@ -44,6 +97,19 @@ export declare class RichTextEditor extends FoundationElement {
|
|
|
44
97
|
* @internal
|
|
45
98
|
*/
|
|
46
99
|
disconnectedCallback(): void;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
disabledChanged(): void;
|
|
104
|
+
/**
|
|
105
|
+
* Update the placeholder text and view of the editor.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
placeholderChanged(): void;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
ariaLabelChanged(): void;
|
|
47
113
|
/**
|
|
48
114
|
* Toggle the bold mark and focus back to the editor
|
|
49
115
|
* @internal
|
|
@@ -98,6 +164,8 @@ export declare class RichTextEditor extends FoundationElement {
|
|
|
98
164
|
* @internal
|
|
99
165
|
*/
|
|
100
166
|
stopEventPropagation(event: Event): boolean;
|
|
167
|
+
private createEditor;
|
|
168
|
+
private createTiptapEditor;
|
|
101
169
|
/**
|
|
102
170
|
* This function takes the Fragment from parseMarkdownToDOM function and return the serialized string using XMLSerializer
|
|
103
171
|
*/
|
|
@@ -105,7 +173,6 @@ export declare class RichTextEditor extends FoundationElement {
|
|
|
105
173
|
private initializeMarkdownParser;
|
|
106
174
|
private initializeMarkdownSerializer;
|
|
107
175
|
private parseMarkdownToDOM;
|
|
108
|
-
private initializeEditor;
|
|
109
176
|
/**
|
|
110
177
|
* Binding the "transaction" event to the editor allows continuous monitoring the events and updating the button state in response to
|
|
111
178
|
* various actions such as mouse events, keyboard events, changes in the editor content etc,.
|
|
@@ -115,5 +182,29 @@ export declare class RichTextEditor extends FoundationElement {
|
|
|
115
182
|
private unbindEditorTransactionEvent;
|
|
116
183
|
private updateEditorButtonsState;
|
|
117
184
|
private keyActivatesButton;
|
|
185
|
+
private unbindEditorUpdateEvent;
|
|
186
|
+
/**
|
|
187
|
+
* input event is fired when there is a change in the content of the editor.
|
|
188
|
+
*
|
|
189
|
+
* https://tiptap.dev/api/events#update
|
|
190
|
+
*/
|
|
191
|
+
private bindEditorUpdateEvent;
|
|
192
|
+
/**
|
|
193
|
+
* Stopping the native input event propagation emitted by the contenteditable element in the Tiptap
|
|
194
|
+
* since there is an issue (linked below) in ProseMirror where selecting the text and removing it
|
|
195
|
+
* does not trigger the native HTMLElement input event. So using the "update" event emitted by the
|
|
196
|
+
* Tiptap to capture it as an "input" customEvent in the rich text editor.
|
|
197
|
+
*
|
|
198
|
+
* Prose Mirror issue: https://discuss.prosemirror.net/t/how-to-handle-select-backspace-delete-cut-type-kind-of-events-handletextinput-or-handledomevents-input-doesnt-help/4844
|
|
199
|
+
*/
|
|
200
|
+
private stopNativeInputEventPropagation;
|
|
201
|
+
private unbindNativeInputEvent;
|
|
202
|
+
private queueUpdateScrollbarWidth;
|
|
203
|
+
private updateScrollbarWidth;
|
|
204
|
+
private onResize;
|
|
205
|
+
private getTipTapExtension;
|
|
206
|
+
private setEditorTabIndex;
|
|
207
|
+
}
|
|
208
|
+
export interface RichTextEditor extends ARIAGlobalStatesAndProperties {
|
|
118
209
|
}
|
|
119
210
|
export declare const richTextEditorTag: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { observable } from '@microsoft/fast-element';
|
|
3
|
-
import { DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { observable, attr, DOM } from '@microsoft/fast-element';
|
|
3
|
+
import { applyMixins, ARIAGlobalStatesAndProperties, DesignSystem, FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
import { keyEnter, keySpace } from '@microsoft/fast-web-utilities';
|
|
5
5
|
import { Editor } from '@tiptap/core';
|
|
6
6
|
import { schema, defaultMarkdownParser, MarkdownParser, MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown';
|
|
@@ -13,6 +13,7 @@ import Italic from '@tiptap/extension-italic';
|
|
|
13
13
|
import ListItem from '@tiptap/extension-list-item';
|
|
14
14
|
import OrderedList from '@tiptap/extension-ordered-list';
|
|
15
15
|
import Paragraph from '@tiptap/extension-paragraph';
|
|
16
|
+
import Placeholder from '@tiptap/extension-placeholder';
|
|
16
17
|
import Text from '@tiptap/extension-text';
|
|
17
18
|
import { template } from './template';
|
|
18
19
|
import { styles } from './styles';
|
|
@@ -21,12 +22,57 @@ import { styles } from './styles';
|
|
|
21
22
|
*/
|
|
22
23
|
export class RichTextEditor extends FoundationElement {
|
|
23
24
|
constructor() {
|
|
24
|
-
super();
|
|
25
|
+
super(...arguments);
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
this.editor = this.createEditor();
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
this.tiptapEditor = this.createTiptapEditor();
|
|
34
|
+
/**
|
|
35
|
+
* Whether to disable user from editing and interacting with toolbar buttons
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
* HTML Attribute: disabled
|
|
39
|
+
*/
|
|
40
|
+
this.disabled = false;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to hide the footer of the rich text editor
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
* HTML Attribute: footer-hidden
|
|
46
|
+
*/
|
|
47
|
+
this.footerHidden = false;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to display the error state.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
* HTML Attribute: error-visible
|
|
53
|
+
*/
|
|
54
|
+
this.errorVisible = false;
|
|
55
|
+
/**
|
|
56
|
+
* The width of the vertical scrollbar, if displayed.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
this.scrollbarWidth = -1;
|
|
60
|
+
this.updateScrollbarWidthQueued = false;
|
|
25
61
|
this.markdownParser = this.initializeMarkdownParser();
|
|
26
62
|
this.markdownSerializer = this.initializeMarkdownSerializer();
|
|
27
63
|
this.domSerializer = DOMSerializer.fromSchema(schema);
|
|
28
64
|
this.xmlSerializer = new XMLSerializer();
|
|
29
|
-
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* True if the editor is empty or contains only whitespace, false otherwise.
|
|
68
|
+
*
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
get empty() {
|
|
72
|
+
// Tiptap [isEmpty](https://tiptap.dev/api/editor#is-empty) returns false even if the editor has only whitespace.
|
|
73
|
+
// However, the expectation is to return true if the editor is empty or contains only whitespace.
|
|
74
|
+
// Hence, by retrieving the current text content using Tiptap state docs and then trimming the string to determine whether it is empty or not.
|
|
75
|
+
return this.tiptapEditor.state.doc.textContent.trim().length === 0;
|
|
30
76
|
}
|
|
31
77
|
/**
|
|
32
78
|
* @internal
|
|
@@ -37,6 +83,10 @@ export class RichTextEditor extends FoundationElement {
|
|
|
37
83
|
this.editorContainer.append(this.editor);
|
|
38
84
|
}
|
|
39
85
|
this.bindEditorTransactionEvent();
|
|
86
|
+
this.bindEditorUpdateEvent();
|
|
87
|
+
this.stopNativeInputEventPropagation();
|
|
88
|
+
this.resizeObserver = new ResizeObserver(() => this.onResize());
|
|
89
|
+
this.resizeObserver.observe(this);
|
|
40
90
|
}
|
|
41
91
|
/**
|
|
42
92
|
* @internal
|
|
@@ -44,6 +94,38 @@ export class RichTextEditor extends FoundationElement {
|
|
|
44
94
|
disconnectedCallback() {
|
|
45
95
|
super.disconnectedCallback();
|
|
46
96
|
this.unbindEditorTransactionEvent();
|
|
97
|
+
this.unbindEditorUpdateEvent();
|
|
98
|
+
this.unbindNativeInputEvent();
|
|
99
|
+
this.resizeObserver?.disconnect();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
disabledChanged() {
|
|
105
|
+
this.tiptapEditor.setEditable(!this.disabled);
|
|
106
|
+
this.setEditorTabIndex();
|
|
107
|
+
this.editor.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Update the placeholder text and view of the editor.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
placeholderChanged() {
|
|
114
|
+
const placeholderExtension = this.getTipTapExtension('placeholder');
|
|
115
|
+
placeholderExtension.options.placeholder = this.placeholder ?? '';
|
|
116
|
+
this.tiptapEditor.view.dispatch(this.tiptapEditor.state.tr);
|
|
117
|
+
this.queueUpdateScrollbarWidth();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
ariaLabelChanged() {
|
|
123
|
+
if (this.ariaLabel !== null && this.ariaLabel !== undefined) {
|
|
124
|
+
this.editor.setAttribute('aria-label', this.ariaLabel);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
this.editor.removeAttribute('aria-label');
|
|
128
|
+
}
|
|
47
129
|
}
|
|
48
130
|
/**
|
|
49
131
|
* Toggle the bold mark and focus back to the editor
|
|
@@ -142,6 +224,39 @@ export class RichTextEditor extends FoundationElement {
|
|
|
142
224
|
event.stopPropagation();
|
|
143
225
|
return false;
|
|
144
226
|
}
|
|
227
|
+
createEditor() {
|
|
228
|
+
const editor = document.createElement('div');
|
|
229
|
+
editor.className = 'editor';
|
|
230
|
+
editor.setAttribute('aria-multiline', 'true');
|
|
231
|
+
editor.setAttribute('role', 'textbox');
|
|
232
|
+
editor.setAttribute('aria-disabled', 'false');
|
|
233
|
+
return editor;
|
|
234
|
+
}
|
|
235
|
+
createTiptapEditor() {
|
|
236
|
+
/**
|
|
237
|
+
* For more information on the extensions for the supported formatting options, refer to the links below.
|
|
238
|
+
* Tiptap marks: https://tiptap.dev/api/marks
|
|
239
|
+
* Tiptap nodes: https://tiptap.dev/api/nodes
|
|
240
|
+
*/
|
|
241
|
+
return new Editor({
|
|
242
|
+
element: this.editor,
|
|
243
|
+
extensions: [
|
|
244
|
+
Document,
|
|
245
|
+
Paragraph,
|
|
246
|
+
Text,
|
|
247
|
+
BulletList,
|
|
248
|
+
OrderedList,
|
|
249
|
+
ListItem,
|
|
250
|
+
Bold,
|
|
251
|
+
Italic,
|
|
252
|
+
History,
|
|
253
|
+
Placeholder.configure({
|
|
254
|
+
placeholder: '',
|
|
255
|
+
showOnlyWhenEditable: false
|
|
256
|
+
})
|
|
257
|
+
]
|
|
258
|
+
});
|
|
259
|
+
}
|
|
145
260
|
/**
|
|
146
261
|
* This function takes the Fragment from parseMarkdownToDOM function and return the serialized string using XMLSerializer
|
|
147
262
|
*/
|
|
@@ -208,32 +323,6 @@ export class RichTextEditor extends FoundationElement {
|
|
|
208
323
|
}
|
|
209
324
|
return this.domSerializer.serializeFragment(parsedMarkdownContent.content);
|
|
210
325
|
}
|
|
211
|
-
initializeEditor() {
|
|
212
|
-
// Create div from the constructor because the TipTap editor requires its host element before the template is instantiated.
|
|
213
|
-
this.editor = document.createElement('div');
|
|
214
|
-
this.editor.className = 'editor';
|
|
215
|
-
this.editor.setAttribute('aria-multiline', 'true');
|
|
216
|
-
this.editor.setAttribute('role', 'textbox');
|
|
217
|
-
/**
|
|
218
|
-
* For more information on the extensions for the supported formatting options, refer to the links below.
|
|
219
|
-
* Tiptap marks: https://tiptap.dev/api/marks
|
|
220
|
-
* Tiptap nodes: https://tiptap.dev/api/nodes
|
|
221
|
-
*/
|
|
222
|
-
this.tiptapEditor = new Editor({
|
|
223
|
-
element: this.editor,
|
|
224
|
-
extensions: [
|
|
225
|
-
Document,
|
|
226
|
-
Paragraph,
|
|
227
|
-
Text,
|
|
228
|
-
BulletList,
|
|
229
|
-
OrderedList,
|
|
230
|
-
ListItem,
|
|
231
|
-
Bold,
|
|
232
|
-
Italic,
|
|
233
|
-
History
|
|
234
|
-
]
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
326
|
/**
|
|
238
327
|
* Binding the "transaction" event to the editor allows continuous monitoring the events and updating the button state in response to
|
|
239
328
|
* various actions such as mouse events, keyboard events, changes in the editor content etc,.
|
|
@@ -262,7 +351,82 @@ export class RichTextEditor extends FoundationElement {
|
|
|
262
351
|
return false;
|
|
263
352
|
}
|
|
264
353
|
}
|
|
354
|
+
unbindEditorUpdateEvent() {
|
|
355
|
+
this.tiptapEditor.off('update');
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* input event is fired when there is a change in the content of the editor.
|
|
359
|
+
*
|
|
360
|
+
* https://tiptap.dev/api/events#update
|
|
361
|
+
*/
|
|
362
|
+
bindEditorUpdateEvent() {
|
|
363
|
+
this.tiptapEditor.on('update', () => {
|
|
364
|
+
this.$emit('input');
|
|
365
|
+
this.queueUpdateScrollbarWidth();
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Stopping the native input event propagation emitted by the contenteditable element in the Tiptap
|
|
370
|
+
* since there is an issue (linked below) in ProseMirror where selecting the text and removing it
|
|
371
|
+
* does not trigger the native HTMLElement input event. So using the "update" event emitted by the
|
|
372
|
+
* Tiptap to capture it as an "input" customEvent in the rich text editor.
|
|
373
|
+
*
|
|
374
|
+
* Prose Mirror issue: https://discuss.prosemirror.net/t/how-to-handle-select-backspace-delete-cut-type-kind-of-events-handletextinput-or-handledomevents-input-doesnt-help/4844
|
|
375
|
+
*/
|
|
376
|
+
stopNativeInputEventPropagation() {
|
|
377
|
+
this.tiptapEditor.view.dom.addEventListener('input', event => {
|
|
378
|
+
event.stopPropagation();
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
unbindNativeInputEvent() {
|
|
382
|
+
this.tiptapEditor.view.dom.removeEventListener('input', () => { });
|
|
383
|
+
}
|
|
384
|
+
queueUpdateScrollbarWidth() {
|
|
385
|
+
if (!this.$fastController.isConnected) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
if (!this.updateScrollbarWidthQueued) {
|
|
389
|
+
this.updateScrollbarWidthQueued = true;
|
|
390
|
+
DOM.queueUpdate(() => this.updateScrollbarWidth());
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
updateScrollbarWidth() {
|
|
394
|
+
this.updateScrollbarWidthQueued = false;
|
|
395
|
+
this.scrollbarWidth = this.tiptapEditor.view.dom.offsetWidth
|
|
396
|
+
- this.tiptapEditor.view.dom.clientWidth;
|
|
397
|
+
}
|
|
398
|
+
onResize() {
|
|
399
|
+
this.scrollbarWidth = this.tiptapEditor.view.dom.offsetWidth
|
|
400
|
+
- this.tiptapEditor.view.dom.clientWidth;
|
|
401
|
+
}
|
|
402
|
+
getTipTapExtension(extensionName) {
|
|
403
|
+
return this.tiptapEditor.extensionManager.extensions.find(extension => extension.name === extensionName);
|
|
404
|
+
}
|
|
405
|
+
setEditorTabIndex() {
|
|
406
|
+
this.tiptapEditor.setOptions({
|
|
407
|
+
editorProps: {
|
|
408
|
+
attributes: {
|
|
409
|
+
tabindex: this.disabled ? '-1' : '0'
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
}
|
|
265
414
|
}
|
|
415
|
+
__decorate([
|
|
416
|
+
attr({ mode: 'boolean' })
|
|
417
|
+
], RichTextEditor.prototype, "disabled", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
attr({ attribute: 'footer-hidden', mode: 'boolean' })
|
|
420
|
+
], RichTextEditor.prototype, "footerHidden", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
attr({ attribute: 'error-visible', mode: 'boolean' })
|
|
423
|
+
], RichTextEditor.prototype, "errorVisible", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
attr({ attribute: 'error-text' })
|
|
426
|
+
], RichTextEditor.prototype, "errorText", void 0);
|
|
427
|
+
__decorate([
|
|
428
|
+
attr
|
|
429
|
+
], RichTextEditor.prototype, "placeholder", void 0);
|
|
266
430
|
__decorate([
|
|
267
431
|
observable
|
|
268
432
|
], RichTextEditor.prototype, "boldButton", void 0);
|
|
@@ -275,6 +439,10 @@ __decorate([
|
|
|
275
439
|
__decorate([
|
|
276
440
|
observable
|
|
277
441
|
], RichTextEditor.prototype, "numberedListButton", void 0);
|
|
442
|
+
__decorate([
|
|
443
|
+
observable
|
|
444
|
+
], RichTextEditor.prototype, "scrollbarWidth", void 0);
|
|
445
|
+
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
278
446
|
const nimbleRichTextEditor = RichTextEditor.compose({
|
|
279
447
|
baseName: 'rich-text-editor',
|
|
280
448
|
template,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rich-text-editor/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAA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AAS5B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;oDAC1B;AAS5B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;iDACR;AAO1B;IADC,IAAI;mDACuB;AAkB5B;IADC,UAAU;kDACsB;AAMjC;IADC,UAAU;qDACyB;AAMpC;IADC,UAAU;wDAC4B;AAMvC;IADC,UAAU;0DAC8B;AAOzC;IADC,UAAU;sDACgB;AA8Z/B,WAAW,CAAC,cAAc,EAAE,6BAA6B,CAAC,CAAC;AAE3D,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,CAAC;IAChD,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor, borderWidth, smallDelay, standardPadding } from '../theme-provider/design-tokens';
|
|
3
|
+
import { bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor, borderWidth, controlLabelFontColor, controlLabelDisabledFontColor, failColor, iconSize, smallDelay, standardPadding } from '../theme-provider/design-tokens';
|
|
4
|
+
import { styles as errorStyles } from '../patterns/error/styles';
|
|
4
5
|
export const styles = css `
|
|
5
6
|
${display('inline-flex')}
|
|
7
|
+
${errorStyles}
|
|
6
8
|
|
|
7
9
|
:host {
|
|
8
10
|
font: ${bodyFont};
|
|
@@ -12,6 +14,9 @@ export const styles = css `
|
|
|
12
14
|
--ni-private-rich-text-editor-hover-indicator-width: calc(
|
|
13
15
|
${borderWidth} + 1px
|
|
14
16
|
);
|
|
17
|
+
${
|
|
18
|
+
/** Initial height of rich text editor with one line space when the footer is visible. */ ''}
|
|
19
|
+
height: 82px;
|
|
15
20
|
--ni-private-rich-text-editor-footer-section-height: 40px;
|
|
16
21
|
${
|
|
17
22
|
/** Minimum width is added to accommodate all the possible buttons in the toolbar and to support the mobile width. */ ''}
|
|
@@ -19,6 +24,7 @@ export const styles = css `
|
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
.container {
|
|
27
|
+
box-sizing: border-box;
|
|
22
28
|
display: flex;
|
|
23
29
|
flex-direction: column;
|
|
24
30
|
position: relative;
|
|
@@ -50,37 +56,55 @@ export const styles = css `
|
|
|
50
56
|
}
|
|
51
57
|
}
|
|
52
58
|
|
|
59
|
+
:host([disabled]) .container {
|
|
60
|
+
color: ${bodyDisabledFontColor};
|
|
61
|
+
border: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([error-visible]) .container {
|
|
65
|
+
border-bottom-color: ${failColor};
|
|
66
|
+
}
|
|
67
|
+
|
|
53
68
|
:host(:hover) .container::after {
|
|
54
|
-
width: 100
|
|
69
|
+
width: calc(100% + 2 * ${borderWidth});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([disabled]:hover) .container::after {
|
|
73
|
+
width: 0px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([error-visible]) .container::after {
|
|
77
|
+
border-bottom-color: ${failColor};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.editor-container {
|
|
81
|
+
display: contents;
|
|
55
82
|
}
|
|
56
83
|
|
|
57
84
|
.editor {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
58
87
|
border: ${borderWidth} solid transparent;
|
|
59
88
|
border-radius: 0px;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
);
|
|
63
|
-
overflow: auto;
|
|
89
|
+
flex: 1;
|
|
90
|
+
overflow: hidden;
|
|
64
91
|
}
|
|
65
92
|
|
|
66
|
-
.editor
|
|
67
|
-
|
|
93
|
+
:host([footer-hidden]) .editor {
|
|
94
|
+
height: 100%;
|
|
68
95
|
}
|
|
69
96
|
|
|
70
97
|
.ProseMirror {
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Min height represents the one line space for the initial view and max height is referred from the visual design.
|
|
74
|
-
* However, max height will be `fit-content` when the `fit-to-content` attribute for the editor component is implemented.
|
|
75
|
-
*/ ''}
|
|
76
|
-
min-height: 32px;
|
|
77
|
-
max-height: 132px;
|
|
98
|
+
overflow: auto;
|
|
78
99
|
height: 100%;
|
|
79
|
-
border:
|
|
100
|
+
border: 0px;
|
|
80
101
|
border-radius: 0px;
|
|
81
102
|
background-color: transparent;
|
|
82
103
|
font: inherit;
|
|
83
104
|
padding: 8px;
|
|
105
|
+
${
|
|
106
|
+
/* This padding ensures that showing/hiding the error icon doesn't affect text layout */ ''}
|
|
107
|
+
padding-right: calc(${iconSize});
|
|
84
108
|
box-sizing: border-box;
|
|
85
109
|
position: relative;
|
|
86
110
|
color: inherit;
|
|
@@ -127,15 +151,38 @@ export const styles = css `
|
|
|
127
151
|
margin-block: 0;
|
|
128
152
|
}
|
|
129
153
|
|
|
154
|
+
${
|
|
155
|
+
/**
|
|
156
|
+
* Styles provided by Tiptap are necessary to display the placeholder value when the editor is empty.
|
|
157
|
+
* Tiptap doc reference: https://tiptap.dev/api/extensions/placeholder#additional-setup
|
|
158
|
+
*/ ''}
|
|
159
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
160
|
+
color: ${controlLabelFontColor};
|
|
161
|
+
content: attr(data-placeholder);
|
|
162
|
+
float: left;
|
|
163
|
+
height: 0;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
word-break: break-word;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([disabled]) .ProseMirror p.is-editor-empty:first-child::before {
|
|
169
|
+
color: ${controlLabelDisabledFontColor};
|
|
170
|
+
}
|
|
171
|
+
|
|
130
172
|
.footer-section {
|
|
131
173
|
display: flex;
|
|
132
174
|
justify-content: space-between;
|
|
175
|
+
flex-shrink: 0;
|
|
133
176
|
border: ${borderWidth} solid transparent;
|
|
134
177
|
border-top-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
135
178
|
height: var(--ni-private-rich-text-editor-footer-section-height);
|
|
136
179
|
overflow: hidden;
|
|
137
180
|
}
|
|
138
181
|
|
|
182
|
+
:host([footer-hidden]) .footer-section {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
139
186
|
nimble-toolbar::part(positioning-region) {
|
|
140
187
|
background: transparent;
|
|
141
188
|
padding-right: 8px;
|
|
@@ -152,5 +199,16 @@ export const styles = css `
|
|
|
152
199
|
gap: ${standardPadding};
|
|
153
200
|
place-items: center;
|
|
154
201
|
}
|
|
202
|
+
|
|
203
|
+
:host([error-visible]) .error-icon {
|
|
204
|
+
display: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:host([error-visible]) .error-icon.scrollbar-width-calculated {
|
|
208
|
+
display: inline-flex;
|
|
209
|
+
position: absolute;
|
|
210
|
+
top: calc(${standardPadding} / 2);
|
|
211
|
+
right: var(--ni-private-rich-text-editor-scrollbar-width);
|
|
212
|
+
}
|
|
155
213
|
`;
|
|
156
214
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/rich-text-editor/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EAClB,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