@nanahoshi/mona-ui 0.24.9 → 0.24.11

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 (53) hide show
  1. package/chart/README.md +223 -77
  2. package/fesm2022/nanahoshi-mona-ui-chart.mjs +1882 -644
  3. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +2 -2
  4. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +3 -1
  5. package/fesm2022/nanahoshi-mona-ui-editor.mjs +1054 -452
  6. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +126 -1
  7. package/fesm2022/nanahoshi-mona-ui-internal.mjs +131 -13
  8. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +94 -1
  9. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +86 -1
  10. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +86 -1
  11. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +83 -2
  12. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +73 -1
  13. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +86 -1
  14. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +73 -1
  15. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +73 -1
  16. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +86 -1
  17. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +88 -1
  18. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +86 -1
  19. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +73 -1
  20. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +73 -1
  21. package/fesm2022/nanahoshi-mona-ui-window.mjs +3 -1
  22. package/i18n/catalogs/en-US.messages.json +77 -5
  23. package/locales/ar-sa/ar-sa.messages.json +73 -1
  24. package/locales/de-de/de-de.messages.json +73 -1
  25. package/locales/es-es/es-es.messages.json +73 -1
  26. package/locales/fr-fr/fr-fr.messages.json +74 -2
  27. package/locales/id-id/id-id.messages.json +73 -1
  28. package/locales/it-it/it-it.messages.json +73 -1
  29. package/locales/ja-jp/ja-jp.messages.json +73 -1
  30. package/locales/ko-kr/ko-kr.messages.json +73 -1
  31. package/locales/pt-br/pt-br.messages.json +73 -1
  32. package/locales/ru-ru/ru-ru.messages.json +73 -1
  33. package/locales/tr-tr/tr-tr.messages.json +73 -1
  34. package/locales/zh-cn/zh-cn.messages.json +73 -1
  35. package/locales/zh-tw/zh-tw.messages.json +73 -1
  36. package/package.json +1 -1
  37. package/types/nanahoshi-mona-ui-chart.d.ts +519 -527
  38. package/types/nanahoshi-mona-ui-editor.d.ts +118 -21
  39. package/types/nanahoshi-mona-ui-i18n.d.ts +110 -0
  40. package/types/nanahoshi-mona-ui-internal.d.ts +24 -2
  41. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +72 -0
  42. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +72 -0
  43. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +72 -0
  44. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +72 -0
  45. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +72 -0
  46. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +72 -0
  47. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +72 -0
  48. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +72 -0
  49. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +72 -0
  50. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +72 -0
  51. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +72 -0
  52. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +72 -0
  53. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +72 -0
@@ -1,8 +1,9 @@
1
+ import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
2
+ import { MonaEditorMessages } from '@nanahoshi/mona-ui/i18n';
1
3
  import * as _angular_core from '@angular/core';
2
4
  import { ElementRef } from '@angular/core';
5
+ import { FormValueControl } from '@angular/forms/signals';
3
6
  import { JSONContent, Editor } from '@tiptap/core';
4
- import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
5
- import { MonaEditorMessages } from '@nanahoshi/mona-ui/i18n';
6
7
  import { ImmutableSet } from '@mirei/ts-collections';
7
8
  import { EditorState } from '@tiptap/pm/state';
8
9
  import { Subject } from 'rxjs';
@@ -22,6 +23,11 @@ interface EditorSettings {
22
23
  fontHighlight: boolean;
23
24
  fontList: Iterable<string>;
24
25
  fontSize: boolean;
26
+ /**
27
+ * The font sizes the font size dropdown offers, as CSS lengths (`"14px"`, `"1.25rem"`). Empty keeps the
28
+ * default list.
29
+ */
30
+ fontSizeList: Iterable<string>;
25
31
  headings: boolean;
26
32
  history: boolean;
27
33
  horizontalRule: boolean;
@@ -40,76 +46,167 @@ interface EditorSettings {
40
46
 
41
47
  declare class EditorService {
42
48
  #private;
43
- readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaEditorMessages>;
44
49
  readonly blur$: Subject<void>;
45
50
  readonly create$: Subject<void>;
46
51
  readonly focus$: Subject<void>;
47
52
  readonly fontSizes: _angular_core.WritableSignal<ImmutableSet<string>>;
48
53
  readonly fonts: _angular_core.WritableSignal<ImmutableSet<string>>;
49
- readonly state: _angular_core.Signal<EditorState>;
54
+ /**
55
+ * True while the document has no content; false before the editor exists too, so nothing shows over it.
56
+ */
57
+ readonly isEmpty: _angular_core.Signal<boolean>;
58
+ /**
59
+ * True while an editor exists. The toolbar renders only then, so its components can use {@link editor}.
60
+ */
61
+ readonly ready: _angular_core.Signal<boolean>;
50
62
  readonly selectionUpdate$: Subject<void>;
63
+ /**
64
+ * The resolved settings of the current editor. Set before the editor is created, so the toolbar never renders a
65
+ * feature the editor doesn't have.
66
+ */
51
67
  readonly settings: _angular_core.WritableSignal<Partial<EditorSettings>>;
68
+ readonly state: _angular_core.Signal<EditorState | null>;
52
69
  readonly update$: Subject<void>;
53
70
  destroy(): void;
54
- setupEditor(element: HTMLDivElement, settings: Partial<EditorSettings>): void;
71
+ /**
72
+ * Replaces the document without emitting an update, as for a value set from outside.
73
+ */
74
+ setContent(content: string | JSONContent): void;
75
+ setEditable(editable: boolean, attributes: Record<string, string>): void;
76
+ /**
77
+ * Creates the editor, or rebuilds it for new settings. A rebuilt editor keeps its document: it is carried over as
78
+ * HTML, so content that a removed feature can't hold falls back to plain text instead of being lost.
79
+ */
80
+ setupEditor(element: HTMLElement, settings: Partial<EditorSettings>, options: EditorSetupOptions): void;
81
+ /**
82
+ * The Tiptap editor. Available while {@link ready} is true.
83
+ */
55
84
  get editor(): Editor;
56
- private getExtensionsFromSettings;
57
- private getCustomizedStarterKitExtension;
58
85
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditorService, never>;
59
86
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<EditorService>;
60
87
  }
61
88
 
62
- declare class EditorComponent {
89
+ declare class EditorComponent implements FormValueControl<string> {
63
90
  #private;
64
91
  protected readonly baseClass: _angular_core.Signal<string>;
65
92
  protected readonly containerClass: _angular_core.Signal<string>;
66
93
  protected readonly editorContainer: _angular_core.Signal<ElementRef<HTMLDivElement>>;
67
94
  protected readonly editorService: EditorService;
95
+ protected readonly invalidState: _angular_core.Signal<boolean>;
96
+ protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaEditorMessages>;
97
+ protected readonly placeholderClass: _angular_core.Signal<string>;
68
98
  protected readonly toolbarClass: _angular_core.Signal<string>;
99
+ protected readonly toolbarElement: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
100
+ /**
101
+ * @description The id of an element that describes the content, such as a hint or an error message.
102
+ */
103
+ readonly ariaDescribedBy: _angular_core.InputSignal<string>;
104
+ /**
105
+ * @description The accessible name of the content. Without it or `aria-labelledby`, the content is named "Rich
106
+ * text editor" (translated).
107
+ */
108
+ readonly ariaLabel: _angular_core.InputSignal<string>;
109
+ /**
110
+ * @description The id of a visible label for the content, such as a `<label>` next to the editor.
111
+ */
112
+ readonly ariaLabelledBy: _angular_core.InputSignal<string>;
69
113
  /**
70
114
  * @description Emits when the editor loses focus.
115
+ * @deprecated Use `editorBlur`.
71
116
  */
72
117
  readonly blur: _angular_core.OutputEmitterRef<void>;
73
118
  /**
74
- * @description Emits when the editor is created for the first time and is ready to be used.
119
+ * @description The initial content of the editor, as HTML or a {@link JSONContent} document. A later change
120
+ * replaces the document, unless it is the content the editor already has.
121
+ * @deprecated Use `value` (HTML), or `[formField]` with a signal form. To read the JSON, use the `update` event or
122
+ * the `json` property.
123
+ */
124
+ readonly content: _angular_core.InputSignal<string | JSONContent | undefined>;
125
+ /**
126
+ * @description Emits when the editor is created and ready to be used, and again when it is rebuilt for new
127
+ * `settings`.
75
128
  */
76
129
  readonly create: _angular_core.OutputEmitterRef<void>;
130
+ /**
131
+ * @description Disables the editor: the content can't be edited or focused for editing, and the toolbar is inert.
132
+ * When bound to a signal form field via `[formField]`, the form sets it.
133
+ */
134
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
135
+ /**
136
+ * @description Emits when the editor loses focus.
137
+ */
138
+ readonly editorBlur: _angular_core.OutputEmitterRef<void>;
77
139
  /**
78
140
  * @description Emits when the editor gains focus.
79
141
  */
80
- readonly focus: _angular_core.OutputEmitterRef<void>;
142
+ readonly editorFocus: _angular_core.OutputEmitterRef<void>;
143
+ /**
144
+ * @description Marks the editor as invalid once it has been touched. When bound to a signal form field via
145
+ * `[formField]`, the form sets it.
146
+ */
147
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
148
+ /**
149
+ * @description Text shown in the empty editor, and given to assistive technology as `aria-placeholder`. It is not
150
+ * a name: use a label or `aria-label` too.
151
+ */
152
+ readonly placeholder: _angular_core.InputSignal<string>;
153
+ /**
154
+ * @description Makes the content read-only and hides the toolbar. When bound to a signal form field via
155
+ * `[formField]`, the form sets it.
156
+ */
157
+ readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
158
+ /**
159
+ * @description Marks the editor as required: once touched, an empty editor is invalid.
160
+ */
161
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
81
162
  /**
82
163
  * @description Emits when the selection of the editor changes.
83
164
  */
84
165
  readonly selectionUpdate: _angular_core.OutputEmitterRef<void>;
85
166
  /**
86
- * @description Emits when the content of the editor changes.
167
+ * @description The settings of the editor. Changing them rebuilds the editor and keeps its document.
87
168
  */
88
- readonly update: _angular_core.OutputEmitterRef<ContentChangeEvent>;
169
+ readonly settings: _angular_core.InputSignal<Partial<EditorSettings>>;
89
170
  /**
90
- * @description The initial content of the editor.
171
+ * @description Emits when the editor loses focus.
172
+ * Form directives (`[formField]`, `ngModel`, `formControl`) listen to this to mark the field as touched.
91
173
  */
92
- readonly content: _angular_core.InputSignal<string | JSONContent | undefined>;
174
+ readonly touch: _angular_core.OutputEmitterRef<void>;
93
175
  /**
94
- * @description The settings of the editor.
176
+ * @description Sets the touched state. When bound to a signal form field via `[formField]`, the form sets it.
95
177
  */
96
- readonly settings: _angular_core.InputSignal<Partial<EditorSettings>>;
178
+ readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
179
+ /**
180
+ * @description Emits when the user changes the content. It isn't emitted when `value` or `content` is set from
181
+ * outside.
182
+ */
183
+ readonly update: _angular_core.OutputEmitterRef<ContentChangeEvent>;
97
184
  readonly userClass: _angular_core.InputSignal<string>;
185
+ /**
186
+ * @description The content of the editor as HTML. An empty editor has the value `""`. Use `[(value)]`, or
187
+ * `[formField]` with a signal form.
188
+ */
189
+ readonly value: _angular_core.ModelSignal<string>;
98
190
  constructor();
99
- private loadEditorContent;
100
- private setSubscriptions;
101
191
  /**
102
- * Returns the HTML content of the editor.
192
+ * Returns the HTML content of the editor, or `""` before the editor is created.
103
193
  * It can be used to save the content of the editor in a database and restore it later.
104
194
  */
105
195
  get html(): string;
106
196
  /**
107
- * Returns the JSON content of the editor in the {@link JSONContent} format.
197
+ * Returns the JSON content of the editor in the {@link JSONContent} format, or an empty document before the editor
198
+ * is created.
108
199
  * It can be used to save the content of the editor in a database and restore it later.
109
200
  */
110
201
  get json(): JSONContent;
202
+ /**
203
+ * Moves focus into the editor, keeping the selection it had.
204
+ */
205
+ focus(options?: FocusOptions): void;
206
+ protected onToolbarFocusIn(event: FocusEvent): void;
207
+ protected onToolbarKeydown(event: KeyboardEvent): void;
111
208
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditorComponent, never>;
112
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditorComponent, "mona-editor", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "blur": "blur"; "create": "create"; "focus": "focus"; "selectionUpdate": "selectionUpdate"; "update": "update"; }, never, never, true, never>;
209
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditorComponent, "mona-editor", never, { "ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "blur": "blur"; "create": "create"; "editorBlur": "editorBlur"; "editorFocus": "editorFocus"; "selectionUpdate": "selectionUpdate"; "touch": "touch"; "update": "update"; "value": "valueChange"; }, never, never, true, never>;
113
210
  }
114
211
 
115
212
  declare const EDITOR_DEFAULT_MESSAGES: MonaEditorMessages;
@@ -46,33 +46,125 @@ interface MonaCardMessages {
46
46
  }
47
47
 
48
48
  interface MonaChartMessages {
49
+ /** Joins the parts of a screen reader announcement (", " in English). */
50
+ readonly announcementSeparator: string;
51
+ /** Announced when a keyboard brush is committed. */
52
+ readonly brushApplied: (count: number) => string;
53
+ /** Announced when a keyboard brush is canceled. */
54
+ readonly brushCleared: string;
55
+ /** Announced while a keyboard brush is extended. */
56
+ readonly brushRange: (from: string, to: string) => string;
57
+ /** The data table's first column header when the X axis has no title. */
58
+ readonly category: string;
59
+ /** The name of a radar category without a value. */
60
+ readonly categoryFallbackName: (index: number) => string;
61
+ /** The category range of a Cartesian chart, in its description. */
62
+ readonly categoryRange: (from: string, to: string) => string;
49
63
  readonly change: string;
64
+ /** The price change in a financial announcement. */
65
+ readonly changeValue: (change: string) => string;
50
66
  readonly chart: string;
51
67
  readonly chartLegend: string;
68
+ /** What screen readers call the chart (`aria-roledescription`). */
69
+ readonly chartRoleDescription: string;
52
70
  readonly close: string;
53
71
  readonly closeAbbreviation: string;
54
72
  readonly colorScale: string;
55
73
  readonly conversion: string;
74
+ /** A funnel stage's conversion from the previous stage, in an announcement. */
75
+ readonly conversionOfPrevious: (rate: string) => string;
76
+ /** Below the data table when it shows only the first rows. */
77
+ readonly dataTableTruncated: (shown: number, total: number) => string;
78
+ /** The waterfall legend's name for falling steps. */
79
+ readonly decrease: string;
80
+ readonly decreaseAnnouncement: (delta: string, from: string, to: string) => string;
56
81
  readonly divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
57
82
  readonly dropOff: string;
83
+ readonly dropOffValue: (value: string) => string;
58
84
  readonly falling: string;
85
+ /** A gauge's scale, in an announcement. */
86
+ readonly gaugeRange: (minimum: string, maximum: string) => string;
59
87
  readonly high: string;
60
88
  readonly highAbbreviation: string;
89
+ /** The waterfall legend's name for rising steps. */
90
+ readonly increase: string;
91
+ readonly increaseAnnouncement: (delta: string, from: string, to: string) => string;
92
+ readonly itemDeselected: (item: string) => string;
93
+ /** The name of a pie, donut, rose or radial bar item without a category. */
94
+ readonly itemFallbackName: (index: number) => string;
95
+ readonly itemSelected: (item: string) => string;
96
+ /** The keyboard instructions at the end of the chart's description. */
97
+ readonly keyboardHelp: string;
61
98
  readonly labelValueSeparator: string;
99
+ readonly labeledValue: (label: string, value: string) => string;
62
100
  readonly low: string;
63
101
  readonly lowAbbreviation: string;
102
+ /** The waterfall legend's name for unchanged steps. */
103
+ readonly noChange: string;
104
+ readonly noChangeAnnouncement: (value: string) => string;
64
105
  readonly noData: string;
106
+ /** A candlestick or OHLC point's prices, in an announcement. */
107
+ readonly ohlcValues: (open: string, high: string, low: string, close: string) => string;
65
108
  readonly open: string;
66
109
  readonly openAbbreviation: string;
67
110
  readonly overall: string;
111
+ readonly overallConversion: (rate: string) => string;
112
+ readonly pannedDown: string;
113
+ readonly pannedLeft: string;
114
+ readonly pannedRight: string;
115
+ readonly pannedUp: string;
116
+ /** Joins a treemap node's path (" / " in English). */
117
+ readonly pathSeparator: string;
118
+ /** A point's position among the points it is navigated with, in an announcement. */
119
+ readonly pointPosition: (position: number, total: number) => string;
68
120
  readonly range: string;
69
121
  readonly rangeDescription: (title: string, minimum: string, maximum: string) => string;
122
+ /** A range value, in an announcement. */
123
+ readonly rangeValue: (from: string, to: string) => string;
70
124
  readonly rising: string;
71
125
  readonly runningTotal: string;
126
+ /** The name of a series without a name. */
127
+ readonly seriesFallbackName: (index: number) => string;
128
+ /** Announced when a legend item hides a series or item. */
129
+ readonly seriesHidden: (series: string) => string;
130
+ /** Announced when a legend item shows a series or item. */
131
+ readonly seriesShown: (series: string) => string;
132
+ /** The series of the chart, in its description. */
133
+ readonly seriesSummary: (count: number, names: string) => string;
134
+ /** A series' lowest and highest value, in the chart's description. */
135
+ readonly seriesValueRange: (series: string, minimum: string, maximum: string) => string;
136
+ /** A treemap node's share of the whole, in an announcement. */
137
+ readonly shareOfTotal: (share: string) => string;
72
138
  readonly size: string;
139
+ /** A bubble's size, in an announcement. */
140
+ readonly sizeValue: (size: string) => string;
141
+ /** A point's share of its 100% stack, in an announcement. */
142
+ readonly stackShare: (share: string) => string;
143
+ /** The name of a funnel stage without a category. */
144
+ readonly stageFallbackName: (index: number) => string;
145
+ readonly stagePosition: (position: number, total: number) => string;
146
+ /** The name of a waterfall step without a category. */
147
+ readonly stepFallbackName: (index: number) => string;
148
+ readonly stepPosition: (position: number, total: number) => string;
149
+ /** The waterfall legend's name for subtotal steps. */
150
+ readonly subtotal: string;
151
+ readonly subtotalAnnouncement: (value: string) => string;
152
+ /** The waterfall legend's name for total steps. */
153
+ readonly total: string;
154
+ readonly totalAnnouncement: (value: string) => string;
155
+ /** A treemap group, in an announcement. */
156
+ readonly treemapGroup: (count: number) => string;
157
+ /** A treemap leaf, in an announcement. */
158
+ readonly treemapLeaf: string;
73
159
  readonly unchanged: string;
74
160
  readonly value: string;
161
+ /** A range value in the tooltip ("10 – 20" in English). */
162
+ readonly valueRange: (from: string, to: string) => string;
163
+ readonly viewportResetToDefault: string;
164
+ readonly viewportResetToFull: string;
75
165
  readonly visualIndicatorClamped: string;
166
+ readonly zoomedIn: string;
167
+ readonly zoomedOut: string;
76
168
  }
77
169
 
78
170
  interface MonaChipMessages {
@@ -151,24 +243,35 @@ interface MonaEditorMessages {
151
243
  readonly addRowAfter: string;
152
244
  readonly addRowBefore: string;
153
245
  readonly alignCenter: string;
246
+ readonly alignEnd: string;
247
+ /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
154
248
  readonly alignLeft: string;
249
+ readonly alignmentGroup: string;
250
+ /** @deprecated No longer rendered: the toolbar aligns to the start and end with `alignStart` and `alignEnd`. */
155
251
  readonly alignRight: string;
252
+ readonly alignStart: string;
156
253
  readonly altText: string;
254
+ readonly apply: string;
157
255
  readonly backgroundColor: string;
158
256
  readonly bold: string;
159
257
  readonly cancel: string;
160
258
  readonly codeBlock: string;
161
259
  readonly color: string;
260
+ readonly contentLabel: string;
261
+ readonly defaultFontFamily: string;
162
262
  readonly deleteColumn: string;
163
263
  readonly deleteRow: string;
164
264
  readonly deleteTable: string;
265
+ readonly editLink: string;
165
266
  readonly enterUrl: string;
166
267
  readonly fontSize: string;
167
268
  readonly format: string;
168
269
  readonly heading: (level: number) => string;
169
270
  readonly heightPx: string;
271
+ readonly historyGroup: string;
170
272
  readonly imageUrl: string;
171
273
  readonly indent: string;
274
+ readonly indentGroup: string;
172
275
  readonly insert: string;
173
276
  readonly insertImage: string;
174
277
  readonly insertLink: string;
@@ -176,8 +279,11 @@ interface MonaEditorMessages {
176
279
  readonly insertTable: string;
177
280
  readonly insertTaskList: string;
178
281
  readonly insertUnorderedList: string;
282
+ readonly invalidUrl: string;
179
283
  readonly italic: string;
180
284
  readonly justify: string;
285
+ readonly linkGroup: string;
286
+ readonly listGroup: string;
181
287
  readonly mergeCells: string;
182
288
  readonly outdent: string;
183
289
  readonly paragraph: string;
@@ -190,7 +296,11 @@ interface MonaEditorMessages {
190
296
  readonly strikethrough: string;
191
297
  readonly subscript: string;
192
298
  readonly superscript: string;
299
+ readonly tableGroup: string;
300
+ readonly tableSize: (rows: number, columns: number) => string;
301
+ readonly textStyleGroup: string;
193
302
  readonly toggleHeaderRow: string;
303
+ readonly toolbar: string;
194
304
  readonly underline: string;
195
305
  readonly undo: string;
196
306
  readonly widthPx: string;
@@ -97,7 +97,11 @@ declare const createElementControlId: (level?: number, length?: number) => strin
97
97
  */
98
98
  declare function focusCanReturn(document: Document, ...containers: ReadonlyArray<Element | null | undefined>): boolean;
99
99
 
100
- declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): void;
100
+ /**
101
+ * Focuses an element given directly, by reference, or by a selector inside `host`, and returns it (or `null` when the
102
+ * selector matches nothing).
103
+ */
104
+ declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
101
105
 
102
106
  /**
103
107
  * Makes everything outside a modal overlay inert, so assistive technology, the pointer and Tab can't reach the page
@@ -132,6 +136,24 @@ declare const positionGlobalOverlay: (overlayRef: OverlayRef, position: GlobalOv
132
136
 
133
137
  declare const rxFromResize: (target: Element | Iterable<Element>, options?: ResizeObserverOptions) => Observable<ResizeObserverEntry[]>;
134
138
 
139
+ /**
140
+ * The keyboard of an APG toolbar over controls that other components render: one Tab stop, Left and Right (mirrored
141
+ * in right-to-left text) to move between controls, Home and End to the ends. Disabled and hidden controls are
142
+ * skipped; a control inside another one (a button inside a combobox) belongs to it.
143
+ *
144
+ * Call {@link sync} after every render, so controls added later join the Tab stop, and forward the toolbar's
145
+ * `focusin` and `keydown` events.
146
+ */
147
+ declare class RovingToolbar {
148
+ #private;
149
+ constructor(element: () => HTMLElement | null | undefined);
150
+ /** The Tab stop follows focus, also when a control is clicked. */
151
+ onFocusIn(event: FocusEvent): void;
152
+ onKeydown(event: KeyboardEvent): void;
153
+ /** Gives the active control the Tab stop and takes it from the others. */
154
+ sync(): void;
155
+ }
156
+
135
157
  declare const rxTimeout: (destroyRef: DestroyRef, fn: Action, delay?: number) => void;
136
158
 
137
159
  type VariantInputs<T> = {
@@ -275,5 +297,5 @@ declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => b
275
297
  declare const TYPEAHEAD_RESET_DELAY = 200;
276
298
  declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
277
299
 
278
- export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, NavigationKeys, NavigationKeysList, TYPEAHEAD_RESET_DELAY, addAriaReference, createElementControlId, focusCanReturn, focusElement, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, isValidHsla, isValidRgb, listenForHover, onDisconnect, overlaySidePositions, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, string2Hsla, string2rgba, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, toCssValue };
300
+ export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, NavigationKeys, NavigationKeysList, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, createElementControlId, focusCanReturn, focusElement, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, isValidHsla, isValidRgb, listenForHover, onDisconnect, overlaySidePositions, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, string2Hsla, string2rgba, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, toCssValue };
279
301
  export type { Action, AttributeConfig, Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
@@ -32,33 +32,89 @@ declare const MONA_AR_SA_LOCALE: {
32
32
  actionsLabel: string;
33
33
  };
34
34
  chart: {
35
+ announcementSeparator: string;
36
+ brushApplied: (count: number) => string;
37
+ brushCleared: string;
38
+ brushRange: (from: string, to: string) => string;
39
+ category: string;
40
+ categoryFallbackName: (index: number) => string;
41
+ categoryRange: (from: string, to: string) => string;
35
42
  change: string;
43
+ changeValue: (change: string) => string;
36
44
  chart: string;
37
45
  chartLegend: string;
46
+ chartRoleDescription: string;
38
47
  close: string;
39
48
  closeAbbreviation: string;
40
49
  colorScale: string;
41
50
  conversion: string;
51
+ conversionOfPrevious: (rate: string) => string;
52
+ dataTableTruncated: (shown: number, total: number) => string;
53
+ decrease: string;
54
+ decreaseAnnouncement: (delta: string, from: string, to: string) => string;
42
55
  divergingRangeDescription: (title: string, minimum: string, midpoint: string, maximum: string) => string;
43
56
  dropOff: string;
57
+ dropOffValue: (value: string) => string;
44
58
  falling: string;
59
+ gaugeRange: (minimum: string, maximum: string) => string;
45
60
  high: string;
46
61
  highAbbreviation: string;
62
+ increase: string;
63
+ increaseAnnouncement: (delta: string, from: string, to: string) => string;
64
+ itemDeselected: (item: string) => string;
65
+ itemFallbackName: (index: number) => string;
66
+ itemSelected: (item: string) => string;
67
+ keyboardHelp: string;
47
68
  labelValueSeparator: string;
69
+ labeledValue: (label: string, value: string) => string;
48
70
  low: string;
49
71
  lowAbbreviation: string;
72
+ noChange: string;
73
+ noChangeAnnouncement: (value: string) => string;
50
74
  noData: string;
75
+ ohlcValues: (open: string, high: string, low: string, close: string) => string;
51
76
  open: string;
52
77
  openAbbreviation: string;
53
78
  overall: string;
79
+ overallConversion: (rate: string) => string;
80
+ pannedDown: string;
81
+ pannedLeft: string;
82
+ pannedRight: string;
83
+ pannedUp: string;
84
+ pathSeparator: string;
85
+ pointPosition: (position: number, total: number) => string;
54
86
  range: string;
55
87
  rangeDescription: (title: string, minimum: string, maximum: string) => string;
88
+ rangeValue: (from: string, to: string) => string;
56
89
  rising: string;
57
90
  runningTotal: string;
91
+ seriesFallbackName: (index: number) => string;
92
+ seriesHidden: (series: string) => string;
93
+ seriesShown: (series: string) => string;
94
+ seriesSummary: (count: number, names: string) => string;
95
+ seriesValueRange: (series: string, minimum: string, maximum: string) => string;
96
+ shareOfTotal: (share: string) => string;
58
97
  size: string;
98
+ sizeValue: (size: string) => string;
99
+ stackShare: (share: string) => string;
100
+ stageFallbackName: (index: number) => string;
101
+ stagePosition: (position: number, total: number) => string;
102
+ stepFallbackName: (index: number) => string;
103
+ stepPosition: (position: number, total: number) => string;
104
+ subtotal: string;
105
+ subtotalAnnouncement: (value: string) => string;
106
+ total: string;
107
+ totalAnnouncement: (value: string) => string;
108
+ treemapGroup: (count: number) => string;
109
+ treemapLeaf: string;
59
110
  unchanged: string;
60
111
  value: string;
112
+ valueRange: (from: string, to: string) => string;
113
+ viewportResetToDefault: string;
114
+ viewportResetToFull: string;
61
115
  visualIndicatorClamped: string;
116
+ zoomedIn: string;
117
+ zoomedOut: string;
62
118
  };
63
119
  chip: {
64
120
  removeLabel: (label?: string) => string;
@@ -123,24 +179,33 @@ declare const MONA_AR_SA_LOCALE: {
123
179
  addRowAfter: string;
124
180
  addRowBefore: string;
125
181
  alignCenter: string;
182
+ alignEnd: string;
126
183
  alignLeft: string;
127
184
  alignRight: string;
185
+ alignStart: string;
186
+ alignmentGroup: string;
128
187
  altText: string;
188
+ apply: string;
129
189
  backgroundColor: string;
130
190
  bold: string;
131
191
  cancel: string;
132
192
  codeBlock: string;
133
193
  color: string;
194
+ contentLabel: string;
195
+ defaultFontFamily: string;
134
196
  deleteColumn: string;
135
197
  deleteRow: string;
136
198
  deleteTable: string;
199
+ editLink: string;
137
200
  enterUrl: string;
138
201
  fontSize: string;
139
202
  format: string;
140
203
  heading: (level: number) => string;
141
204
  heightPx: string;
205
+ historyGroup: string;
142
206
  imageUrl: string;
143
207
  indent: string;
208
+ indentGroup: string;
144
209
  insert: string;
145
210
  insertImage: string;
146
211
  insertLink: string;
@@ -148,8 +213,11 @@ declare const MONA_AR_SA_LOCALE: {
148
213
  insertTable: string;
149
214
  insertTaskList: string;
150
215
  insertUnorderedList: string;
216
+ invalidUrl: string;
151
217
  italic: string;
152
218
  justify: string;
219
+ linkGroup: string;
220
+ listGroup: string;
153
221
  mergeCells: string;
154
222
  outdent: string;
155
223
  paragraph: string;
@@ -162,7 +230,11 @@ declare const MONA_AR_SA_LOCALE: {
162
230
  strikethrough: string;
163
231
  subscript: string;
164
232
  superscript: string;
233
+ tableGroup: string;
234
+ tableSize: (rows: number, columns: number) => string;
235
+ textStyleGroup: string;
165
236
  toggleHeaderRow: string;
237
+ toolbar: string;
166
238
  underline: string;
167
239
  undo: string;
168
240
  widthPx: string;