@ckeditor/ckeditor5-find-and-replace 48.8.1-alpha.4 → 49.0.0-alpha.0

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 (171) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/augmentation.d.ts +26 -26
  3. package/dist/findandreplace.d.ts +39 -39
  4. package/dist/findandreplaceconfig.d.ts +26 -26
  5. package/dist/findandreplaceediting.d.ts +70 -71
  6. package/dist/findandreplacestate.d.ts +102 -105
  7. package/dist/findandreplaceui.d.ts +73 -73
  8. package/dist/findandreplaceutils.d.ts +68 -68
  9. package/dist/findcommand.d.ts +39 -39
  10. package/dist/findnextcommand.d.ts +29 -29
  11. package/dist/findpreviouscommand.d.ts +13 -13
  12. package/dist/index-content.css +3 -0
  13. package/dist/index-content.css.map +1 -0
  14. package/dist/index-editor.css +154 -145
  15. package/dist/index-editor.css.map +1 -0
  16. package/dist/index.css +156 -149
  17. package/dist/index.css.map +1 -1
  18. package/dist/index.d.ts +21 -19
  19. package/dist/index.js +1407 -1536
  20. package/dist/index.js.map +1 -1
  21. package/dist/replaceallcommand.d.ts +30 -30
  22. package/dist/replacecommand.d.ts +16 -16
  23. package/dist/replacecommandbase.d.ts +26 -26
  24. package/dist/translations/af.js +1 -1
  25. package/dist/translations/af.umd.js +5 -3
  26. package/dist/translations/ar.js +1 -1
  27. package/dist/translations/ar.umd.js +5 -3
  28. package/dist/translations/ast.js +1 -1
  29. package/dist/translations/ast.umd.js +5 -3
  30. package/dist/translations/az.js +1 -1
  31. package/dist/translations/az.umd.js +5 -3
  32. package/dist/translations/be.js +1 -1
  33. package/dist/translations/be.umd.js +5 -3
  34. package/dist/translations/bg.js +1 -1
  35. package/dist/translations/bg.umd.js +5 -3
  36. package/dist/translations/bn.js +1 -1
  37. package/dist/translations/bn.umd.js +5 -3
  38. package/dist/translations/bs.js +1 -1
  39. package/dist/translations/bs.umd.js +5 -3
  40. package/dist/translations/ca.js +1 -1
  41. package/dist/translations/ca.umd.js +5 -3
  42. package/dist/translations/cs.js +1 -1
  43. package/dist/translations/cs.umd.js +5 -3
  44. package/dist/translations/da.js +1 -1
  45. package/dist/translations/da.umd.js +5 -3
  46. package/dist/translations/de-ch.js +1 -1
  47. package/dist/translations/de-ch.umd.js +5 -3
  48. package/dist/translations/de.js +1 -1
  49. package/dist/translations/de.umd.js +5 -3
  50. package/dist/translations/el.js +1 -1
  51. package/dist/translations/el.umd.js +5 -3
  52. package/dist/translations/en-au.js +1 -1
  53. package/dist/translations/en-au.umd.js +5 -3
  54. package/dist/translations/en-gb.js +1 -1
  55. package/dist/translations/en-gb.umd.js +5 -3
  56. package/dist/translations/en.js +1 -1
  57. package/dist/translations/en.umd.js +5 -3
  58. package/dist/translations/eo.js +1 -1
  59. package/dist/translations/eo.umd.js +5 -3
  60. package/dist/translations/es-co.js +1 -1
  61. package/dist/translations/es-co.umd.js +5 -3
  62. package/dist/translations/es.js +1 -1
  63. package/dist/translations/es.umd.js +5 -3
  64. package/dist/translations/et.js +1 -1
  65. package/dist/translations/et.umd.js +5 -3
  66. package/dist/translations/eu.js +1 -1
  67. package/dist/translations/eu.umd.js +5 -3
  68. package/dist/translations/fa.js +1 -1
  69. package/dist/translations/fa.umd.js +5 -3
  70. package/dist/translations/fi.js +1 -1
  71. package/dist/translations/fi.umd.js +5 -3
  72. package/dist/translations/fr.js +1 -1
  73. package/dist/translations/fr.umd.js +5 -3
  74. package/dist/translations/gl.js +1 -1
  75. package/dist/translations/gl.umd.js +5 -3
  76. package/dist/translations/gu.js +1 -1
  77. package/dist/translations/gu.umd.js +5 -3
  78. package/dist/translations/he.js +1 -1
  79. package/dist/translations/he.umd.js +5 -3
  80. package/dist/translations/hi.js +1 -1
  81. package/dist/translations/hi.umd.js +5 -3
  82. package/dist/translations/hr.js +1 -1
  83. package/dist/translations/hr.umd.js +5 -3
  84. package/dist/translations/hu.js +1 -1
  85. package/dist/translations/hu.umd.js +5 -3
  86. package/dist/translations/hy.js +1 -1
  87. package/dist/translations/hy.umd.js +5 -3
  88. package/dist/translations/id.js +1 -1
  89. package/dist/translations/id.umd.js +5 -3
  90. package/dist/translations/it.js +1 -1
  91. package/dist/translations/it.umd.js +5 -3
  92. package/dist/translations/ja.js +1 -1
  93. package/dist/translations/ja.umd.js +5 -3
  94. package/dist/translations/jv.js +1 -1
  95. package/dist/translations/jv.umd.js +5 -3
  96. package/dist/translations/kk.js +1 -1
  97. package/dist/translations/kk.umd.js +5 -3
  98. package/dist/translations/km.js +1 -1
  99. package/dist/translations/km.umd.js +5 -3
  100. package/dist/translations/kn.js +1 -1
  101. package/dist/translations/kn.umd.js +5 -3
  102. package/dist/translations/ko.js +1 -1
  103. package/dist/translations/ko.umd.js +5 -3
  104. package/dist/translations/ku.js +1 -1
  105. package/dist/translations/ku.umd.js +5 -3
  106. package/dist/translations/lt.js +1 -1
  107. package/dist/translations/lt.umd.js +5 -3
  108. package/dist/translations/lv.js +1 -1
  109. package/dist/translations/lv.umd.js +5 -3
  110. package/dist/translations/ms.js +1 -1
  111. package/dist/translations/ms.umd.js +5 -3
  112. package/dist/translations/nb.js +1 -1
  113. package/dist/translations/nb.umd.js +5 -3
  114. package/dist/translations/ne.js +1 -1
  115. package/dist/translations/ne.umd.js +5 -3
  116. package/dist/translations/nl.js +1 -1
  117. package/dist/translations/nl.umd.js +5 -3
  118. package/dist/translations/no.js +1 -1
  119. package/dist/translations/no.umd.js +5 -3
  120. package/dist/translations/oc.js +1 -1
  121. package/dist/translations/oc.umd.js +5 -3
  122. package/dist/translations/pl.js +1 -1
  123. package/dist/translations/pl.umd.js +5 -3
  124. package/dist/translations/pt-br.js +1 -1
  125. package/dist/translations/pt-br.umd.js +5 -3
  126. package/dist/translations/pt.js +1 -1
  127. package/dist/translations/pt.umd.js +5 -3
  128. package/dist/translations/ro.js +1 -1
  129. package/dist/translations/ro.umd.js +5 -3
  130. package/dist/translations/ru.js +1 -1
  131. package/dist/translations/ru.umd.js +5 -3
  132. package/dist/translations/si.js +1 -1
  133. package/dist/translations/si.umd.js +5 -3
  134. package/dist/translations/sk.js +1 -1
  135. package/dist/translations/sk.umd.js +5 -3
  136. package/dist/translations/sl.js +1 -1
  137. package/dist/translations/sl.umd.js +5 -3
  138. package/dist/translations/sq.js +1 -1
  139. package/dist/translations/sq.umd.js +5 -3
  140. package/dist/translations/sr-latn.js +1 -1
  141. package/dist/translations/sr-latn.umd.js +5 -3
  142. package/dist/translations/sr.js +1 -1
  143. package/dist/translations/sr.umd.js +5 -3
  144. package/dist/translations/sv.js +1 -1
  145. package/dist/translations/sv.umd.js +5 -3
  146. package/dist/translations/th.js +1 -1
  147. package/dist/translations/th.umd.js +5 -3
  148. package/dist/translations/ti.js +1 -1
  149. package/dist/translations/ti.umd.js +5 -3
  150. package/dist/translations/tk.js +1 -1
  151. package/dist/translations/tk.umd.js +5 -3
  152. package/dist/translations/tr.js +1 -1
  153. package/dist/translations/tr.umd.js +5 -3
  154. package/dist/translations/tt.js +1 -1
  155. package/dist/translations/tt.umd.js +5 -3
  156. package/dist/translations/ug.js +1 -1
  157. package/dist/translations/ug.umd.js +5 -3
  158. package/dist/translations/uk.js +1 -1
  159. package/dist/translations/uk.umd.js +5 -3
  160. package/dist/translations/ur.js +1 -1
  161. package/dist/translations/ur.umd.js +5 -3
  162. package/dist/translations/uz.js +1 -1
  163. package/dist/translations/uz.umd.js +5 -3
  164. package/dist/translations/vi.js +1 -1
  165. package/dist/translations/vi.umd.js +5 -3
  166. package/dist/translations/zh-cn.js +1 -1
  167. package/dist/translations/zh-cn.umd.js +5 -3
  168. package/dist/translations/zh.js +1 -1
  169. package/dist/translations/zh.umd.js +5 -3
  170. package/dist/ui/findandreplaceformview.d.ts +283 -284
  171. package/package.json +7 -7
@@ -1,308 +1,307 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module find-and-replace/ui/findandreplaceformview
7
- */
8
- import { View, LabeledFieldView, FocusCycler, ViewCollection, type InputView } from '@ckeditor/ckeditor5-ui';
9
- import { type Locale } from '@ckeditor/ckeditor5-utils';
10
- import '../../theme/findandreplaceform.css';
6
+ * @module find-and-replace/ui/findandreplaceformview
7
+ */
8
+ import { View, LabeledFieldView, FocusCycler, ViewCollection, type InputView } from "@ckeditor/ckeditor5-ui";
9
+ import { type Locale } from "@ckeditor/ckeditor5-utils";
11
10
  /**
12
- * The find and replace form view class.
13
- *
14
- * See {@link module:find-and-replace/ui/findandreplaceformview~FindAndReplaceFormView}.
15
- */
11
+ * The find and replace form view class.
12
+ *
13
+ * See {@link module:find-and-replace/ui/findandreplaceformview~FindAndReplaceFormView}.
14
+ */
16
15
  export declare class FindAndReplaceFormView extends View {
17
- /**
18
- * A collection of child views.
19
- */
20
- children: ViewCollection;
21
- /**
22
- * Stores the number of matched search results.
23
- *
24
- * @readonly
25
- * @observable
26
- */
27
- matchCount: number;
28
- /**
29
- * The offset of currently highlighted search result in {@link #matchCount matched results}.
30
- *
31
- * @observable
32
- */
33
- readonly highlightOffset: number;
34
- /**
35
- * `true` when the search params (find text, options) has been changed by the user since
36
- * the last time find was executed. `false` otherwise.
37
- *
38
- * @readonly
39
- * @observable
40
- */
41
- isDirty: boolean;
42
- /**
43
- * A live object with the aggregated `isEnabled` states of editor commands related to find and
44
- * replace. For instance, it may look as follows:
45
- *
46
- * ```json
47
- * {
48
- * findNext: true,
49
- * findPrevious: true,
50
- * replace: false,
51
- * replaceAll: false
52
- * }
53
- * ```
54
- *
55
- * @internal
56
- * @observable
57
- */
58
- readonly _areCommandsEnabled: Record<string, boolean>;
59
- /**
60
- * The content of the counter label displaying the index of the current highlighted match
61
- * on top of the find input, for instance "3 of 50".
62
- *
63
- * @internal
64
- * @readonly
65
- * @observable
66
- */
67
- _resultsCounterText: string;
68
- /**
69
- * The flag reflecting the state of the "Match case" switch button in the search options
70
- * dropdown.
71
- *
72
- * @internal
73
- * @readonly
74
- * @observable
75
- */
76
- _matchCase: boolean;
77
- /**
78
- * The flag reflecting the state of the "Whole words only" switch button in the search options
79
- * dropdown.
80
- *
81
- * @internal
82
- * @readonly
83
- * @observable
84
- */
85
- _wholeWordsOnly: boolean;
86
- /**
87
- * This flag is set `true` when some matches were found and the user didn't change the search
88
- * params (text to find, options) yet. This is only possible immediately after hitting the "Find" button.
89
- * `false` when there were no matches (see {@link #matchCount}) or the user changed the params (see {@link #isDirty}).
90
- *
91
- * It is used to control the enabled state of the replace UI (input and buttons); replacing text is only possible
92
- * if this flag is `true`.
93
- *
94
- * @internal
95
- * @observable
96
- */
97
- readonly _searchResultsFound: boolean;
98
- /**
99
- * The find in text input view that stores the searched string.
100
- *
101
- * @internal
102
- */
103
- readonly _findInputView: LabeledFieldView<InputView>;
104
- /**
105
- * The replace input view.
106
- */
107
- private readonly _replaceInputView;
108
- /**
109
- * The find button view that initializes the search process.
110
- */
111
- private readonly _findButtonView;
112
- /**
113
- * The find previous button view.
114
- */
115
- private readonly _findPrevButtonView;
116
- /**
117
- * The find next button view.
118
- */
119
- private readonly _findNextButtonView;
120
- /**
121
- * A collapsible view aggregating the advanced search options.
122
- */
123
- private readonly _advancedOptionsCollapsibleView;
124
- /**
125
- * A switch button view controlling the "Match case" option.
126
- */
127
- private readonly _matchCaseSwitchView;
128
- /**
129
- * A switch button view controlling the "Whole words only" option.
130
- */
131
- private readonly _wholeWordsOnlySwitchView;
132
- /**
133
- * The replace button view.
134
- */
135
- private readonly _replaceButtonView;
136
- /**
137
- * The replace all button view.
138
- */
139
- private readonly _replaceAllButtonView;
140
- /**
141
- * The `div` aggregating the inputs.
142
- */
143
- private readonly _inputsDivView;
144
- /**
145
- * The `div` aggregating the action buttons.
146
- */
147
- private readonly _actionButtonsDivView;
148
- /**
149
- * Tracks information about the DOM focus in the form.
150
- */
151
- private readonly _focusTracker;
152
- /**
153
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
154
- */
155
- private readonly _keystrokes;
156
- /**
157
- * A collection of views that can be focused in the form.
158
- */
159
- private readonly _focusables;
160
- /**
161
- * Helps cycling over {@link #_focusables} in the form.
162
- */
163
- readonly focusCycler: FocusCycler;
164
- locale: Locale;
165
- /**
166
- * Creates a view of find and replace form.
167
- *
168
- * @param locale The localization services instance.
169
- */
170
- constructor(locale: Locale);
171
- /**
172
- * @inheritDoc
173
- */
174
- render(): void;
175
- /**
176
- * @inheritDoc
177
- */
178
- destroy(): void;
179
- /**
180
- * @inheritDoc
181
- */
182
- focus(direction?: 1 | -1): void;
183
- /**
184
- * Resets the form before re-appearing.
185
- *
186
- * It clears error messages, hides the match counter and disables the replace feature
187
- * until the next hit of the "Find" button.
188
- *
189
- * **Note**: It does not reset inputs and options, though. This way the form works better in editors with
190
- * disappearing toolbar (e.g. BalloonEditor): hiding the toolbar by accident (together with the find and replace UI)
191
- * does not require filling the entire form again.
192
- */
193
- reset(): void;
194
- /**
195
- * Returns the value of the find input.
196
- */
197
- private get _textToFind();
198
- /**
199
- * Returns the value of the replace input.
200
- */
201
- private get _textToReplace();
202
- /**
203
- * Configures and returns the `<div>` aggregating all form inputs.
204
- */
205
- private _createInputsDiv;
206
- /**
207
- * The action performed when the {@link #_findButtonView} is pressed.
208
- */
209
- private _onFindButtonExecute;
210
- /**
211
- * Configures an injects the find results counter displaying a "N of M" label of the {@link #_findInputView}.
212
- */
213
- private _injectFindResultsCounter;
214
- /**
215
- * Creates the collapsible view aggregating the advanced search options.
216
- */
217
- private _createAdvancedOptionsCollapsible;
218
- /**
219
- * Configures and returns the `<div>` element aggregating all form action buttons.
220
- */
221
- private _createActionButtonsDiv;
222
- /**
223
- * Creates, configures and returns and instance of a dropdown allowing users to narrow
224
- * the search criteria down. The dropdown has a list with switch buttons for each option.
225
- */
226
- private _createMatchCaseSwitch;
227
- /**
228
- * Creates, configures and returns and instance of a dropdown allowing users to narrow
229
- * the search criteria down. The dropdown has a list with switch buttons for each option.
230
- */
231
- private _createWholeWordsOnlySwitch;
232
- /**
233
- * Initializes the {@link #_focusables} and {@link #_focusTracker} to allow navigation
234
- * using <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keystrokes in the right order.
235
- */
236
- private _initFocusCycling;
237
- /**
238
- * Initializes the keystroke handling in the form.
239
- */
240
- private _initKeystrokeHandling;
241
- /**
242
- * Creates a button view.
243
- *
244
- * @param options The properties of the `ButtonView`.
245
- * @returns The button view instance.
246
- */
247
- private _createButton;
248
- /**
249
- * Creates a labeled input view.
250
- *
251
- * @param label The input label.
252
- * @returns The labeled input view instance.
253
- */
254
- private _createInputField;
16
+ /**
17
+ * A collection of child views.
18
+ */
19
+ children: ViewCollection;
20
+ /**
21
+ * Stores the number of matched search results.
22
+ *
23
+ * @readonly
24
+ * @observable
25
+ */
26
+ matchCount: number;
27
+ /**
28
+ * The offset of currently highlighted search result in {@link #matchCount matched results}.
29
+ *
30
+ * @observable
31
+ */
32
+ readonly highlightOffset: number;
33
+ /**
34
+ * `true` when the search params (find text, options) has been changed by the user since
35
+ * the last time find was executed. `false` otherwise.
36
+ *
37
+ * @readonly
38
+ * @observable
39
+ */
40
+ isDirty: boolean;
41
+ /**
42
+ * A live object with the aggregated `isEnabled` states of editor commands related to find and
43
+ * replace. For instance, it may look as follows:
44
+ *
45
+ * ```json
46
+ * {
47
+ * findNext: true,
48
+ * findPrevious: true,
49
+ * replace: false,
50
+ * replaceAll: false
51
+ * }
52
+ * ```
53
+ *
54
+ * @internal
55
+ * @observable
56
+ */
57
+ readonly _areCommandsEnabled: Record<string, boolean>;
58
+ /**
59
+ * The content of the counter label displaying the index of the current highlighted match
60
+ * on top of the find input, for instance "3 of 50".
61
+ *
62
+ * @internal
63
+ * @readonly
64
+ * @observable
65
+ */
66
+ _resultsCounterText: string;
67
+ /**
68
+ * The flag reflecting the state of the "Match case" switch button in the search options
69
+ * dropdown.
70
+ *
71
+ * @internal
72
+ * @readonly
73
+ * @observable
74
+ */
75
+ _matchCase: boolean;
76
+ /**
77
+ * The flag reflecting the state of the "Whole words only" switch button in the search options
78
+ * dropdown.
79
+ *
80
+ * @internal
81
+ * @readonly
82
+ * @observable
83
+ */
84
+ _wholeWordsOnly: boolean;
85
+ /**
86
+ * This flag is set `true` when some matches were found and the user didn't change the search
87
+ * params (text to find, options) yet. This is only possible immediately after hitting the "Find" button.
88
+ * `false` when there were no matches (see {@link #matchCount}) or the user changed the params (see {@link #isDirty}).
89
+ *
90
+ * It is used to control the enabled state of the replace UI (input and buttons); replacing text is only possible
91
+ * if this flag is `true`.
92
+ *
93
+ * @internal
94
+ * @observable
95
+ */
96
+ readonly _searchResultsFound: boolean;
97
+ /**
98
+ * The find in text input view that stores the searched string.
99
+ *
100
+ * @internal
101
+ */
102
+ readonly _findInputView: LabeledFieldView<InputView>;
103
+ /**
104
+ * The replace input view.
105
+ */
106
+ private readonly _replaceInputView;
107
+ /**
108
+ * The find button view that initializes the search process.
109
+ */
110
+ private readonly _findButtonView;
111
+ /**
112
+ * The find previous button view.
113
+ */
114
+ private readonly _findPrevButtonView;
115
+ /**
116
+ * The find next button view.
117
+ */
118
+ private readonly _findNextButtonView;
119
+ /**
120
+ * A collapsible view aggregating the advanced search options.
121
+ */
122
+ private readonly _advancedOptionsCollapsibleView;
123
+ /**
124
+ * A switch button view controlling the "Match case" option.
125
+ */
126
+ private readonly _matchCaseSwitchView;
127
+ /**
128
+ * A switch button view controlling the "Whole words only" option.
129
+ */
130
+ private readonly _wholeWordsOnlySwitchView;
131
+ /**
132
+ * The replace button view.
133
+ */
134
+ private readonly _replaceButtonView;
135
+ /**
136
+ * The replace all button view.
137
+ */
138
+ private readonly _replaceAllButtonView;
139
+ /**
140
+ * The `div` aggregating the inputs.
141
+ */
142
+ private readonly _inputsDivView;
143
+ /**
144
+ * The `div` aggregating the action buttons.
145
+ */
146
+ private readonly _actionButtonsDivView;
147
+ /**
148
+ * Tracks information about the DOM focus in the form.
149
+ */
150
+ private readonly _focusTracker;
151
+ /**
152
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
153
+ */
154
+ private readonly _keystrokes;
155
+ /**
156
+ * A collection of views that can be focused in the form.
157
+ */
158
+ private readonly _focusables;
159
+ /**
160
+ * Helps cycling over {@link #_focusables} in the form.
161
+ */
162
+ readonly focusCycler: FocusCycler;
163
+ locale: Locale;
164
+ /**
165
+ * Creates a view of find and replace form.
166
+ *
167
+ * @param locale The localization services instance.
168
+ */
169
+ constructor(locale: Locale);
170
+ /**
171
+ * @inheritDoc
172
+ */
173
+ override render(): void;
174
+ /**
175
+ * @inheritDoc
176
+ */
177
+ override destroy(): void;
178
+ /**
179
+ * @inheritDoc
180
+ */
181
+ focus(direction?: 1 | -1): void;
182
+ /**
183
+ * Resets the form before re-appearing.
184
+ *
185
+ * It clears error messages, hides the match counter and disables the replace feature
186
+ * until the next hit of the "Find" button.
187
+ *
188
+ * **Note**: It does not reset inputs and options, though. This way the form works better in editors with
189
+ * disappearing toolbar (e.g. BalloonEditor): hiding the toolbar by accident (together with the find and replace UI)
190
+ * does not require filling the entire form again.
191
+ */
192
+ reset(): void;
193
+ /**
194
+ * Returns the value of the find input.
195
+ */
196
+ private get _textToFind();
197
+ /**
198
+ * Returns the value of the replace input.
199
+ */
200
+ private get _textToReplace();
201
+ /**
202
+ * Configures and returns the `<div>` aggregating all form inputs.
203
+ */
204
+ private _createInputsDiv;
205
+ /**
206
+ * The action performed when the {@link #_findButtonView} is pressed.
207
+ */
208
+ private _onFindButtonExecute;
209
+ /**
210
+ * Configures an injects the find results counter displaying a "N of M" label of the {@link #_findInputView}.
211
+ */
212
+ private _injectFindResultsCounter;
213
+ /**
214
+ * Creates the collapsible view aggregating the advanced search options.
215
+ */
216
+ private _createAdvancedOptionsCollapsible;
217
+ /**
218
+ * Configures and returns the `<div>` element aggregating all form action buttons.
219
+ */
220
+ private _createActionButtonsDiv;
221
+ /**
222
+ * Creates, configures and returns and instance of a dropdown allowing users to narrow
223
+ * the search criteria down. The dropdown has a list with switch buttons for each option.
224
+ */
225
+ private _createMatchCaseSwitch;
226
+ /**
227
+ * Creates, configures and returns and instance of a dropdown allowing users to narrow
228
+ * the search criteria down. The dropdown has a list with switch buttons for each option.
229
+ */
230
+ private _createWholeWordsOnlySwitch;
231
+ /**
232
+ * Initializes the {@link #_focusables} and {@link #_focusTracker} to allow navigation
233
+ * using <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keystrokes in the right order.
234
+ */
235
+ private _initFocusCycling;
236
+ /**
237
+ * Initializes the keystroke handling in the form.
238
+ */
239
+ private _initKeystrokeHandling;
240
+ /**
241
+ * Creates a button view.
242
+ *
243
+ * @param options The properties of the `ButtonView`.
244
+ * @returns The button view instance.
245
+ */
246
+ private _createButton;
247
+ /**
248
+ * Creates a labeled input view.
249
+ *
250
+ * @param label The input label.
251
+ * @returns The labeled input view instance.
252
+ */
253
+ private _createInputField;
255
254
  }
256
255
  /**
257
- * Fired when the find next button is triggered.
258
- *
259
- * @eventName ~FindAndReplaceFormView#findNext
260
- * @param data The event data.
261
- */
256
+ * Fired when the find next button is triggered.
257
+ *
258
+ * @eventName ~FindAndReplaceFormView#findNext
259
+ * @param data The event data.
260
+ */
262
261
  export type FindNextEvent = {
263
- name: 'findNext';
264
- args: [data?: FindNextEventData];
262
+ name: "findNext";
263
+ args: [data?: FindNextEventData];
265
264
  };
266
265
  export type FindNextEventData = FindEventBaseData & {
267
- matchCase: boolean;
268
- wholeWords: boolean;
266
+ matchCase: boolean;
267
+ wholeWords: boolean;
269
268
  };
270
269
  /**
271
- * Fired when the find previous button is triggered.
272
- *
273
- * @eventName ~FindAndReplaceFormView#findPrevious
274
- * @param data The event data.
275
- */
270
+ * Fired when the find previous button is triggered.
271
+ *
272
+ * @eventName ~FindAndReplaceFormView#findPrevious
273
+ * @param data The event data.
274
+ */
276
275
  export type FindPreviousEvent = {
277
- name: 'findPrevious';
278
- args: [data?: FindEventBaseData];
276
+ name: "findPrevious";
277
+ args: [data?: FindEventBaseData];
279
278
  };
280
279
  /**
281
- * Base type for all find/replace events.
282
- */
280
+ * Base type for all find/replace events.
281
+ */
283
282
  export type FindEventBaseData = {
284
- searchText: string;
283
+ searchText: string;
285
284
  };
286
285
  /**
287
- * Fired when the replace button is triggered.
288
- *
289
- * @eventName ~FindAndReplaceFormView#replace
290
- * @param data The event data.
291
- */
286
+ * Fired when the replace button is triggered.
287
+ *
288
+ * @eventName ~FindAndReplaceFormView#replace
289
+ * @param data The event data.
290
+ */
292
291
  export type ReplaceEvent = {
293
- name: 'replace';
294
- args: [data: ReplaceEventData];
292
+ name: "replace";
293
+ args: [data: ReplaceEventData];
295
294
  };
296
295
  export type ReplaceEventData = FindEventBaseData & {
297
- replaceText: string;
296
+ replaceText: string;
298
297
  };
299
298
  /**
300
- * Fired when the replaceAll button is triggered.
301
- *
302
- * @eventName ~FindAndReplaceFormView#replaceAll
303
- * @param data The event data.
304
- */
299
+ * Fired when the replaceAll button is triggered.
300
+ *
301
+ * @eventName ~FindAndReplaceFormView#replaceAll
302
+ * @param data The event data.
303
+ */
305
304
  export type ReplaceAllEvent = {
306
- name: 'replaceAll';
307
- args: [data: ReplaceEventData];
305
+ name: "replaceAll";
306
+ args: [data: ReplaceEventData];
308
307
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-find-and-replace",
3
- "version": "48.8.1-alpha.4",
3
+ "version": "49.0.0-alpha.0",
4
4
  "description": "Find and replace feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,12 +26,12 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.4",
30
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.4",
31
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.4",
32
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.4",
33
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.4",
34
- "es-toolkit": "1.45.1"
29
+ "@ckeditor/ckeditor5-core": "49.0.0-alpha.0",
30
+ "@ckeditor/ckeditor5-engine": "49.0.0-alpha.0",
31
+ "@ckeditor/ckeditor5-icons": "49.0.0-alpha.0",
32
+ "@ckeditor/ckeditor5-ui": "49.0.0-alpha.0",
33
+ "@ckeditor/ckeditor5-utils": "49.0.0-alpha.0",
34
+ "es-toolkit": "1.52.0"
35
35
  },
36
36
  "files": [
37
37
  "dist",