@ckeditor/ckeditor5-link 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 (177) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/augmentation.d.ts +28 -28
  3. package/dist/autolink.d.ts +74 -74
  4. package/dist/index-content.css +3 -0
  5. package/dist/index-content.css.map +1 -0
  6. package/dist/index-editor.css +170 -161
  7. package/dist/index-editor.css.map +1 -0
  8. package/dist/index.css +144 -137
  9. package/dist/index.css.map +1 -1
  10. package/dist/index.d.ts +31 -29
  11. package/dist/index.js +3084 -3515
  12. package/dist/index.js.map +1 -1
  13. package/dist/link.d.ts +26 -26
  14. package/dist/linkcommand.d.ts +134 -134
  15. package/dist/linkconfig.d.ts +313 -313
  16. package/dist/linkediting.d.ts +87 -88
  17. package/dist/linkimage.d.ts +25 -26
  18. package/dist/linkimageediting.d.ts +39 -39
  19. package/dist/linkimageui.d.ts +41 -41
  20. package/dist/linkui.d.ts +361 -350
  21. package/dist/translations/af.js +1 -1
  22. package/dist/translations/af.umd.js +5 -3
  23. package/dist/translations/ar.js +1 -1
  24. package/dist/translations/ar.umd.js +5 -3
  25. package/dist/translations/ast.js +1 -1
  26. package/dist/translations/ast.umd.js +5 -3
  27. package/dist/translations/az.js +1 -1
  28. package/dist/translations/az.umd.js +5 -3
  29. package/dist/translations/be.js +1 -1
  30. package/dist/translations/be.umd.js +5 -3
  31. package/dist/translations/bg.js +1 -1
  32. package/dist/translations/bg.umd.js +5 -3
  33. package/dist/translations/bn.js +1 -1
  34. package/dist/translations/bn.umd.js +5 -3
  35. package/dist/translations/bs.js +1 -1
  36. package/dist/translations/bs.umd.js +5 -3
  37. package/dist/translations/ca.js +1 -1
  38. package/dist/translations/ca.umd.js +5 -3
  39. package/dist/translations/cs.js +1 -1
  40. package/dist/translations/cs.umd.js +5 -3
  41. package/dist/translations/da.js +1 -1
  42. package/dist/translations/da.umd.js +5 -3
  43. package/dist/translations/de-ch.js +1 -1
  44. package/dist/translations/de-ch.umd.js +5 -3
  45. package/dist/translations/de.js +1 -1
  46. package/dist/translations/de.umd.js +5 -3
  47. package/dist/translations/el.js +1 -1
  48. package/dist/translations/el.umd.js +5 -3
  49. package/dist/translations/en-au.js +1 -1
  50. package/dist/translations/en-au.umd.js +5 -3
  51. package/dist/translations/en-gb.js +1 -1
  52. package/dist/translations/en-gb.umd.js +5 -3
  53. package/dist/translations/en.js +1 -1
  54. package/dist/translations/en.umd.js +5 -3
  55. package/dist/translations/eo.js +1 -1
  56. package/dist/translations/eo.umd.js +5 -3
  57. package/dist/translations/es-co.js +1 -1
  58. package/dist/translations/es-co.umd.js +5 -3
  59. package/dist/translations/es.js +1 -1
  60. package/dist/translations/es.umd.js +5 -3
  61. package/dist/translations/et.js +1 -1
  62. package/dist/translations/et.umd.js +5 -3
  63. package/dist/translations/eu.js +1 -1
  64. package/dist/translations/eu.umd.js +5 -3
  65. package/dist/translations/fa.js +1 -1
  66. package/dist/translations/fa.umd.js +5 -3
  67. package/dist/translations/fi.js +1 -1
  68. package/dist/translations/fi.umd.js +5 -3
  69. package/dist/translations/fr.js +1 -1
  70. package/dist/translations/fr.umd.js +5 -3
  71. package/dist/translations/gl.js +1 -1
  72. package/dist/translations/gl.umd.js +5 -3
  73. package/dist/translations/gu.js +1 -1
  74. package/dist/translations/gu.umd.js +5 -3
  75. package/dist/translations/he.js +1 -1
  76. package/dist/translations/he.umd.js +5 -3
  77. package/dist/translations/hi.js +1 -1
  78. package/dist/translations/hi.umd.js +5 -3
  79. package/dist/translations/hr.js +1 -1
  80. package/dist/translations/hr.umd.js +5 -3
  81. package/dist/translations/hu.js +1 -1
  82. package/dist/translations/hu.umd.js +5 -3
  83. package/dist/translations/hy.js +1 -1
  84. package/dist/translations/hy.umd.js +5 -3
  85. package/dist/translations/id.js +1 -1
  86. package/dist/translations/id.umd.js +5 -3
  87. package/dist/translations/it.js +1 -1
  88. package/dist/translations/it.umd.js +5 -3
  89. package/dist/translations/ja.js +1 -1
  90. package/dist/translations/ja.umd.js +5 -3
  91. package/dist/translations/jv.js +1 -1
  92. package/dist/translations/jv.umd.js +5 -3
  93. package/dist/translations/kk.js +1 -1
  94. package/dist/translations/kk.umd.js +5 -3
  95. package/dist/translations/km.js +1 -1
  96. package/dist/translations/km.umd.js +5 -3
  97. package/dist/translations/kn.js +1 -1
  98. package/dist/translations/kn.umd.js +5 -3
  99. package/dist/translations/ko.js +1 -1
  100. package/dist/translations/ko.umd.js +5 -3
  101. package/dist/translations/ku.js +1 -1
  102. package/dist/translations/ku.umd.js +5 -3
  103. package/dist/translations/lt.js +1 -1
  104. package/dist/translations/lt.umd.js +5 -3
  105. package/dist/translations/lv.js +1 -1
  106. package/dist/translations/lv.umd.js +5 -3
  107. package/dist/translations/ms.js +1 -1
  108. package/dist/translations/ms.umd.js +5 -3
  109. package/dist/translations/nb.js +1 -1
  110. package/dist/translations/nb.umd.js +5 -3
  111. package/dist/translations/ne.js +1 -1
  112. package/dist/translations/ne.umd.js +5 -3
  113. package/dist/translations/nl.js +1 -1
  114. package/dist/translations/nl.umd.js +5 -3
  115. package/dist/translations/no.js +1 -1
  116. package/dist/translations/no.umd.js +5 -3
  117. package/dist/translations/oc.js +1 -1
  118. package/dist/translations/oc.umd.js +5 -3
  119. package/dist/translations/pl.js +1 -1
  120. package/dist/translations/pl.umd.js +5 -3
  121. package/dist/translations/pt-br.js +1 -1
  122. package/dist/translations/pt-br.umd.js +5 -3
  123. package/dist/translations/pt.js +1 -1
  124. package/dist/translations/pt.umd.js +5 -3
  125. package/dist/translations/ro.js +1 -1
  126. package/dist/translations/ro.umd.js +5 -3
  127. package/dist/translations/ru.js +1 -1
  128. package/dist/translations/ru.umd.js +5 -3
  129. package/dist/translations/si.js +1 -1
  130. package/dist/translations/si.umd.js +5 -3
  131. package/dist/translations/sk.js +1 -1
  132. package/dist/translations/sk.umd.js +5 -3
  133. package/dist/translations/sl.js +1 -1
  134. package/dist/translations/sl.umd.js +5 -3
  135. package/dist/translations/sq.js +1 -1
  136. package/dist/translations/sq.umd.js +5 -3
  137. package/dist/translations/sr-latn.js +1 -1
  138. package/dist/translations/sr-latn.umd.js +5 -3
  139. package/dist/translations/sr.js +1 -1
  140. package/dist/translations/sr.umd.js +5 -3
  141. package/dist/translations/sv.js +1 -1
  142. package/dist/translations/sv.umd.js +5 -3
  143. package/dist/translations/th.js +1 -1
  144. package/dist/translations/th.umd.js +5 -3
  145. package/dist/translations/ti.js +1 -1
  146. package/dist/translations/ti.umd.js +5 -3
  147. package/dist/translations/tk.js +1 -1
  148. package/dist/translations/tk.umd.js +5 -3
  149. package/dist/translations/tr.js +1 -1
  150. package/dist/translations/tr.umd.js +5 -3
  151. package/dist/translations/tt.js +1 -1
  152. package/dist/translations/tt.umd.js +5 -3
  153. package/dist/translations/ug.js +1 -1
  154. package/dist/translations/ug.umd.js +5 -3
  155. package/dist/translations/uk.js +1 -1
  156. package/dist/translations/uk.umd.js +5 -3
  157. package/dist/translations/ur.js +1 -1
  158. package/dist/translations/ur.umd.js +5 -3
  159. package/dist/translations/uz.js +1 -1
  160. package/dist/translations/uz.umd.js +5 -3
  161. package/dist/translations/vi.js +1 -1
  162. package/dist/translations/vi.umd.js +5 -3
  163. package/dist/translations/zh-cn.js +1 -1
  164. package/dist/translations/zh-cn.umd.js +5 -3
  165. package/dist/translations/zh.js +1 -1
  166. package/dist/translations/zh.umd.js +5 -3
  167. package/dist/ui/linkbuttonview.d.ts +27 -27
  168. package/dist/ui/linkformview.d.ts +159 -141
  169. package/dist/ui/linkpreviewbuttonview.d.ts +27 -27
  170. package/dist/ui/linkpropertiesview.d.ts +79 -80
  171. package/dist/ui/linkprovideritemsview.d.ts +105 -106
  172. package/dist/unlinkcommand.d.ts +26 -26
  173. package/dist/utils/automaticdecorators.d.ts +54 -54
  174. package/dist/utils/conflictingdecorators.d.ts +32 -32
  175. package/dist/utils/manualdecorator.d.ts +59 -62
  176. package/dist/utils.d.ts +62 -62
  177. package/package.json +12 -12
@@ -1,154 +1,172 @@
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 link/ui/linkformview
7
- */
8
- import { ButtonView, LabeledFieldView, View, ViewCollection, type InputTextView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import '../../theme/linkform.css';
6
+ * @module link/ui/linkformview
7
+ */
8
+ import { ButtonView, LabeledFieldView, View, ViewCollection, type InputTextView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
11
10
  /**
12
- * The link form view.
13
- */
11
+ * The link form view.
12
+ */
14
13
  export declare class LinkFormView extends View {
15
- /**
16
- * Tracks information about DOM focus in the form.
17
- */
18
- readonly focusTracker: FocusTracker;
19
- /**
20
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
21
- */
22
- readonly keystrokes: KeystrokeHandler;
23
- /**
24
- * The Back button view displayed in the header.
25
- */
26
- backButtonView: ButtonView;
27
- /**
28
- * The Save button view.
29
- */
30
- saveButtonView: ButtonView;
31
- /**
32
- * The "Displayed text" input view.
33
- */
34
- displayedTextInputView: LabeledFieldView<InputTextView>;
35
- /**
36
- * The URL input view.
37
- */
38
- urlInputView: LabeledFieldView<InputTextView>;
39
- /**
40
- * A collection of child views.
41
- */
42
- readonly children: ViewCollection;
43
- /**
44
- * A collection of child views in the providers list.
45
- */
46
- readonly providersListChildren: ViewCollection<ButtonView>;
47
- /**
48
- * An array of form validators used by {@link #isValid}.
49
- */
50
- private readonly _validators;
51
- /**
52
- * A collection of views that can be focused in the form.
53
- */
54
- private readonly _focusables;
55
- /**
56
- * Helps cycling over {@link #_focusables} in the form.
57
- */
58
- private readonly _focusCycler;
59
- /**
60
- * Creates an instance of the {@link module:link/ui/linkformview~LinkFormView} class.
61
- *
62
- * Also see {@link #render}.
63
- *
64
- * @param locale The localization services instance.
65
- * @param validators Form validators used by {@link #isValid}.
66
- */
67
- constructor(locale: Locale, validators: Array<LinkFormValidatorCallback>);
68
- /**
69
- * @inheritDoc
70
- */
71
- render(): void;
72
- /**
73
- * @inheritDoc
74
- */
75
- destroy(): void;
76
- /**
77
- * Focuses the fist {@link #_focusables} in the form.
78
- */
79
- focus(): void;
80
- /**
81
- * Validates the form and returns `false` when some fields are invalid.
82
- */
83
- isValid(): boolean;
84
- /**
85
- * Cleans up the supplementary error and information text of the {@link #urlInputView}
86
- * bringing them back to the state when the form has been displayed for the first time.
87
- *
88
- * See {@link #isValid}.
89
- */
90
- resetFormStatus(): void;
91
- /**
92
- * Creates a back button view that cancels the form.
93
- */
94
- private _createBackButton;
95
- /**
96
- * Creates a save button view that inserts the link.
97
- */
98
- private _createSaveButton;
99
- /**
100
- * Creates a header view for the form.
101
- */
102
- private _createHeaderView;
103
- /**
104
- * Creates a view for the providers list.
105
- */
106
- private _createProvidersListView;
107
- /**
108
- * Creates a labeled input view for the "Displayed text" field.
109
- */
110
- private _createDisplayedTextInput;
111
- /**
112
- * Creates a labeled input view for the URL field.
113
- *
114
- * @returns Labeled field view instance.
115
- */
116
- private _createUrlInput;
117
- /**
118
- * Populates the {@link #children} collection of the form.
119
- */
120
- private _createFormChildren;
121
- /**
122
- * The native DOM `value` of the {@link #urlInputView} element.
123
- *
124
- * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
125
- * which works one way only and may not represent the actual state of the component in the DOM.
126
- */
127
- get url(): string | null;
14
+ /**
15
+ * Tracks information about DOM focus in the form.
16
+ */
17
+ readonly focusTracker: FocusTracker;
18
+ /**
19
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
20
+ */
21
+ readonly keystrokes: KeystrokeHandler;
22
+ /**
23
+ * The Back button view displayed in the header.
24
+ */
25
+ backButtonView: ButtonView;
26
+ /**
27
+ * The Save button view.
28
+ */
29
+ saveButtonView: ButtonView;
30
+ /**
31
+ * A button that opens the {@link module:link/ui/linkpropertiesview~LinkPropertiesView} allowing the user to
32
+ * configure manual decorators for the link handled by this form.
33
+ */
34
+ manualDecoratorsButtonView: ButtonView;
35
+ /**
36
+ * The "Displayed text" input view.
37
+ */
38
+ displayedTextInputView: LabeledFieldView<InputTextView>;
39
+ /**
40
+ * The URL input view.
41
+ */
42
+ urlInputView: LabeledFieldView<InputTextView>;
43
+ /**
44
+ * A collection of child views.
45
+ */
46
+ readonly children: ViewCollection;
47
+ /**
48
+ * A collection of child views in the providers list.
49
+ */
50
+ readonly providersListChildren: ViewCollection<ButtonView>;
51
+ /**
52
+ * An array of form validators used by {@link #isValid}.
53
+ */
54
+ private readonly _validators;
55
+ /**
56
+ * A collection of views that can be focused in the form.
57
+ */
58
+ private readonly _focusables;
59
+ /**
60
+ * Helps cycling over {@link #_focusables} in the form.
61
+ */
62
+ private readonly _focusCycler;
63
+ /**
64
+ * Creates an instance of the {@link module:link/ui/linkformview~LinkFormView} class.
65
+ *
66
+ * Also see {@link #render}.
67
+ *
68
+ * @param locale The localization services instance.
69
+ * @param validators Form validators used by {@link #isValid}.
70
+ */
71
+ constructor(locale: Locale, validators: Array<LinkFormValidatorCallback>);
72
+ /**
73
+ * @inheritDoc
74
+ */
75
+ override render(): void;
76
+ /**
77
+ * @inheritDoc
78
+ */
79
+ override destroy(): void;
80
+ /**
81
+ * Focuses the fist {@link #_focusables} in the form.
82
+ */
83
+ focus(): void;
84
+ /**
85
+ * Validates the form and returns `false` when some fields are invalid.
86
+ */
87
+ isValid(): boolean;
88
+ /**
89
+ * Cleans up the supplementary error and information text of the {@link #urlInputView}
90
+ * bringing them back to the state when the form has been displayed for the first time.
91
+ *
92
+ * See {@link #isValid}.
93
+ */
94
+ resetFormStatus(): void;
95
+ /**
96
+ * Creates a back button view that cancels the form.
97
+ */
98
+ private _createBackButton;
99
+ /**
100
+ * Creates a save button view that inserts the link.
101
+ */
102
+ private _createSaveButton;
103
+ /**
104
+ * Creates a button that opens the link properties view.
105
+ */
106
+ private _createManualDecoratorsButton;
107
+ /**
108
+ * Creates a header view for the form.
109
+ */
110
+ private _createHeaderView;
111
+ /**
112
+ * Creates a view for the providers list.
113
+ */
114
+ private _createProvidersListView;
115
+ /**
116
+ * Creates a labeled input view for the "Displayed text" field.
117
+ */
118
+ private _createDisplayedTextInput;
119
+ /**
120
+ * Creates a labeled input view for the URL field.
121
+ *
122
+ * @returns Labeled field view instance.
123
+ */
124
+ private _createUrlInput;
125
+ /**
126
+ * Populates the {@link #children} collection of the form.
127
+ */
128
+ private _createFormChildren;
129
+ /**
130
+ * The native DOM `value` of the {@link #urlInputView} element.
131
+ *
132
+ * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
133
+ * which works one way only and may not represent the actual state of the component in the DOM.
134
+ */
135
+ get url(): string | null;
128
136
  }
129
137
  /**
130
- * Callback used by {@link ~LinkFormView} to check if passed form value is valid.
131
- *
132
- * * If `undefined` is returned, it is assumed that the form value is correct and there is no error.
133
- * * If string is returned, it is assumed that the form value is incorrect and the returned string is displayed in the error label
134
- */
138
+ * Callback used by {@link ~LinkFormView} to check if passed form value is valid.
139
+ *
140
+ * * If `undefined` is returned, it is assumed that the form value is correct and there is no error.
141
+ * * If string is returned, it is assumed that the form value is incorrect and the returned string is displayed in the error label
142
+ */
135
143
  export type LinkFormValidatorCallback = (form: LinkFormView) => string | undefined;
136
144
  /**
137
- * Fired when the form view is submitted (when one of the children triggered the submit event),
138
- * for example with a click on {@link ~LinkFormView#saveButtonView}.
139
- *
140
- * @eventName ~LinkFormView#submit
141
- */
145
+ * Fired when the form view is submitted (when one of the children triggered the submit event),
146
+ * for example with a click on {@link ~LinkFormView#saveButtonView}.
147
+ *
148
+ * @eventName ~LinkFormView#submit
149
+ */
142
150
  export type LinkFormSubmitEvent = {
143
- name: 'submit';
144
- args: [];
151
+ name: "submit";
152
+ args: [];
145
153
  };
146
154
  /**
147
- * Fired when the form view is canceled, for example with a click on {@link ~LinkFormView#backButtonView}.
148
- *
149
- * @eventName ~LinkFormView#cancel
150
- */
155
+ * Fired when the form view is canceled, for example with a click on {@link ~LinkFormView#backButtonView}.
156
+ *
157
+ * @eventName ~LinkFormView#cancel
158
+ */
151
159
  export type LinkFormCancelEvent = {
152
- name: 'cancel';
153
- args: [];
160
+ name: "cancel";
161
+ args: [];
162
+ };
163
+ /**
164
+ * Fired when the {@link ~LinkFormView#manualDecoratorsButtonView} is pressed, requesting the link properties
165
+ * (manual decorators) view to be displayed.
166
+ *
167
+ * @eventName ~LinkFormView#showDecorators
168
+ */
169
+ export type LinkFormShowDecoratorsEvent = {
170
+ name: "showDecorators";
171
+ args: [];
154
172
  };
@@ -1,35 +1,35 @@
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 link/ui/linkpreviewbuttonview
7
- */
8
- import { ButtonView } from '@ckeditor/ckeditor5-ui';
9
- import type { Locale } from '@ckeditor/ckeditor5-utils';
6
+ * @module link/ui/linkpreviewbuttonview
7
+ */
8
+ import { ButtonView } from "@ckeditor/ckeditor5-ui";
9
+ import type { Locale } from "@ckeditor/ckeditor5-utils";
10
10
  /**
11
- * The link button class. Rendered as an `<a>` tag with link opening in a new tab.
12
- *
13
- * Provides a custom `navigate` cancelable event.
14
- */
11
+ * The link button class. Rendered as an `<a>` tag with link opening in a new tab.
12
+ *
13
+ * Provides a custom `navigate` cancelable event.
14
+ */
15
15
  export declare class LinkPreviewButtonView extends ButtonView {
16
- /**
17
- * The value of the "href" attribute of the link.
18
- *
19
- * @observable
20
- */
21
- href: string | undefined;
22
- /**
23
- * @inheritDoc
24
- */
25
- constructor(locale: Locale);
16
+ /**
17
+ * The value of the "href" attribute of the link.
18
+ *
19
+ * @observable
20
+ */
21
+ href: string | undefined;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ constructor(locale: Locale);
26
26
  }
27
27
  /**
28
- * Fired when the button view is clicked.
29
- *
30
- * @eventName ~LinkPreviewButtonView#navigate
31
- */
28
+ * Fired when the button view is clicked.
29
+ *
30
+ * @eventName ~LinkPreviewButtonView#navigate
31
+ */
32
32
  export type LinkPreviewButtonNavigateEvent = {
33
- name: 'navigate';
34
- args: [href: string, cancel: () => void];
33
+ name: "navigate";
34
+ args: [href: string, cancel: () => void];
35
35
  };
@@ -1,88 +1,87 @@
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 link/ui/linkpropertiesview
7
- */
8
- import { ButtonView, View, ViewCollection, type SwitchButtonView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import '../../theme/linkproperties.css';
6
+ * @module link/ui/linkpropertiesview
7
+ */
8
+ import { ButtonView, View, ViewCollection, type SwitchButtonView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
11
10
  /**
12
- * The link properties view controller class.
13
- *
14
- * See {@link module:link/ui/linkpropertiesview~LinkPropertiesView}.
15
- */
11
+ * The link properties view controller class.
12
+ *
13
+ * See {@link module:link/ui/linkpropertiesview~LinkPropertiesView}.
14
+ */
16
15
  export declare class LinkPropertiesView extends View {
17
- /**
18
- * Tracks information about DOM focus in the form.
19
- */
20
- readonly focusTracker: FocusTracker;
21
- /**
22
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
23
- */
24
- readonly keystrokes: KeystrokeHandler;
25
- /**
26
- * The Back button view displayed in the header.
27
- */
28
- backButtonView: ButtonView;
29
- /**
30
- * A collection of child views.
31
- */
32
- readonly children: ViewCollection;
33
- /**
34
- * A collection of {@link module:ui/button/switchbuttonview~SwitchButtonView},
35
- * which corresponds to {@link module:link/linkcommand~LinkCommand#manualDecorators manual decorators}
36
- * configured in the editor.
37
- */
38
- readonly listChildren: ViewCollection<SwitchButtonView>;
39
- /**
40
- * A collection of views that can be focused in the form.
41
- */
42
- private readonly _focusables;
43
- /**
44
- * Helps cycling over {@link #_focusables} in the form.
45
- */
46
- private readonly _focusCycler;
47
- /**
48
- * Creates an instance of the {@link module:link/ui/linkpropertiesview~LinkPropertiesView} class.
49
- *
50
- * Also see {@link #render}.
51
- *
52
- * @param locale The localization services instance.
53
- */
54
- constructor(locale: Locale);
55
- /**
56
- * @inheritDoc
57
- */
58
- render(): void;
59
- /**
60
- * @inheritDoc
61
- */
62
- destroy(): void;
63
- /**
64
- * Focuses the fist {@link #_focusables} in the form.
65
- */
66
- focus(): void;
67
- /**
68
- * Creates a back button view.
69
- */
70
- private _createBackButton;
71
- /**
72
- * Creates a header view for the form.
73
- */
74
- private _createHeaderView;
75
- /**
76
- * Creates a form view that displays the {@link #listChildren} collection.
77
- */
78
- private _createListView;
16
+ /**
17
+ * Tracks information about DOM focus in the form.
18
+ */
19
+ readonly focusTracker: FocusTracker;
20
+ /**
21
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
22
+ */
23
+ readonly keystrokes: KeystrokeHandler;
24
+ /**
25
+ * The Back button view displayed in the header.
26
+ */
27
+ backButtonView: ButtonView;
28
+ /**
29
+ * A collection of child views.
30
+ */
31
+ readonly children: ViewCollection;
32
+ /**
33
+ * A collection of {@link module:ui/button/switchbuttonview~SwitchButtonView},
34
+ * which corresponds to {@link module:link/linkcommand~LinkCommand#manualDecorators manual decorators}
35
+ * configured in the editor.
36
+ */
37
+ readonly listChildren: ViewCollection<SwitchButtonView>;
38
+ /**
39
+ * A collection of views that can be focused in the form.
40
+ */
41
+ private readonly _focusables;
42
+ /**
43
+ * Helps cycling over {@link #_focusables} in the form.
44
+ */
45
+ private readonly _focusCycler;
46
+ /**
47
+ * Creates an instance of the {@link module:link/ui/linkpropertiesview~LinkPropertiesView} class.
48
+ *
49
+ * Also see {@link #render}.
50
+ *
51
+ * @param locale The localization services instance.
52
+ */
53
+ constructor(locale: Locale);
54
+ /**
55
+ * @inheritDoc
56
+ */
57
+ override render(): void;
58
+ /**
59
+ * @inheritDoc
60
+ */
61
+ override destroy(): void;
62
+ /**
63
+ * Focuses the fist {@link #_focusables} in the form.
64
+ */
65
+ focus(): void;
66
+ /**
67
+ * Creates a back button view.
68
+ */
69
+ private _createBackButton;
70
+ /**
71
+ * Creates a header view for the form.
72
+ */
73
+ private _createHeaderView;
74
+ /**
75
+ * Creates a form view that displays the {@link #listChildren} collection.
76
+ */
77
+ private _createListView;
79
78
  }
80
79
  /**
81
- * Fired when the {@link ~LinkPropertiesView#backButtonView} is pressed.
82
- *
83
- * @eventName ~LinkPropertiesView#back
84
- */
80
+ * Fired when the {@link ~LinkPropertiesView#backButtonView} is pressed.
81
+ *
82
+ * @eventName ~LinkPropertiesView#back
83
+ */
85
84
  export type LinkPropertiesBackEvent = {
86
- name: 'back';
87
- args: [];
85
+ name: "back";
86
+ args: [];
88
87
  };